Integrate translation service: Masthead

james-dow created the following on Sep 10:
User Story

As a [user role below]:
A IBM.com user

I need to:
The latest navigation content for IBM.com

so that I can:
get where I need to go in my native language.

Additional information
As follow up work for #777  now that the translation service base work has been created we need to integrate it into the masthead component.
Acceptance criteria

[x] content is dynamically loaded from the service

Original issue: https://github.ibm.com/webstandards/digital-design/issues/1667

On Sep 18, hahnrob commented:
Presented in Sept 18 sprint review meeting.  Closing.

On Sep 18, james-dow commented:
@linda-carotenuto @Kenny-Lam & @Jeff-Chew spent much of their time on this topic in relation to the masthead. With that said, I didn't quite glaze over it either in context to the footer. Using the new translation service available in @carbon/ibmdotcom-services I leveraged the new TranslationAPI which extends the getTranslation() method that makes a call to the translation API located here (it's the same api that v18 uses at the moment). Right now it's fixed to only us-en, but it probably wouldn't be too hard to get that switched over after #1665 is prioritized and goes in. The big thing here is we're not hard coding dummy data anymore. We're making a call to a service, and getting the content back dynamically. Visually there should be no change to the masthead or footer.
Here is a screenshot of the new call being made.

I hope that helps give a recap from the review this morning.

On Sep 18, linda-carotenuto commented:
I didn’t see the translated content in demo James.  How is that supposed to work?

On Sep 19, Kenny-Lam commented:
@linda-carotenuto Yes Linda, James is correct. Right now the TranslationAPI only gets en-us. I plan on adding a feature to specify the exactly country/language soon. Will work with @james-dow on this to be able to sync masthead/footer with the language change.


Architecture-agnostic coordinate converter and checkerboard gauge transformations.

Moved from dwavesystems/dimod#460
This is an implementation of the transformations proposed in Adachi's paper.
However, in order to be able to perform those transformations, regardless of the target graph (chimera, pegasus), and the label style, I had to come up with 2 things:

Have a way of retrieving the information of the underlying architecture.
I did this by passing the full graph (target_graph_dnx) as a dwave_networkx graph. However, it would be great to have a way of getting all that information from a Structured Sampler. In fact, only the graph attribute is needed.

I had to create an "architecture-agnostic" coordinates class that returns a qubit's "shore" and "tile".
This would be better suited for dwave_networkx but had to implement it here for proof of concept.

@joseppinilla , thanks for the PR. I am waiting a bit for the resolution to https://github.com/dwavesystems/dwave_networkx/issues/113 which we are working on (and it sounds like you've been in contact with @boothby ) before addressing this.
Thanks for your patience!

What do you think about putting this in the same module as SpinReversalTransformComposite?
The idea would be to remove some duplicate code by making a general TransformComposite (or FlipComposite or other) that can take different patterns/distributions to flip spins in the problem.

@joseppinilla , I think because it is Chimera/Pegasus specific, it makes more sense in D-Wave system. We could look at say subclassing one of those though.

Codecov Report

Merging #174 into master will decrease coverage by 5.94%.
The diff coverage is 68.26%.

@@            Coverage Diff             @@
##           master     #174      +/-   ##
==========================================
- Coverage   94.81%   88.86%   -5.95%
==========================================
  Files          18       19       +1
  Lines         713      817     +104
==========================================
+ Hits          676      726      +50
- Misses         37       91      +54

Impacted Files
Coverage Δ

dwave/system/composites/__init__.py
100% <100%> (ø)
:arrow_up:

dwave/system/composites/checkerboard_transform.py
67.96% <67.96%> (ø)

dwave/system/samplers/dwave_sampler.py
64.35% <0%> (-18.82%)
:arrow_down:

dwave/system/flux_bias_offsets.py
81.48% <0%> (-3.71%)
:arrow_down:

dwave/system/composites/embedding.py
97.08% <0%> (-1.46%)
:arrow_down:

dwave/system/cache/database_manager.py
96.18% <0%> (-0.77%)
:arrow_down:

dwave/system/testing.py
100% <0%> (+4.87%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 105a722...234f8bf. Read the comment docs.


Updated header template and target file for version up script

This PR has updated the procedures of version-up script to make it up to date with the current project structure.
No changes in the library source codes.

coverage: 100.0%. remained the same
when pulling cc9fab92a7171e8b0da72939f79c089a6778b5fe on feature/update_ver_up_scripts
into 8e07ec8960924694fb2969fa9bd6575338409224 on develop.


PowerToys Run ran into an issue - "Something went wrong."

Microsoft PowerToys version
<IP_ADDRESS>
Installation method
GitHub, PowerToys auto-update
Running as admin
Yes
Area(s) with issue?
General
Steps to reproduce
Occurred during normal pc operation, with ~3 days uptime.
All my 3 displays suddenly went black and flashed ~5 times; when images were briefly displayed during flashes it looked like all windows were being redrawn.
After ~15 seconds everything went back to normal and the PowerToys error window popped up.
Version: <IP_ADDRESS>
OS Version: Microsoft Windows NT 10.0.19045.0
IntPtr Length: 8
x64: True
Date: 23/05/2024 12:03:33
Exception:
System.Runtime.InteropServices.COMException (0x80263001): {Composizione del desktop disabilitata} Impossibile completare l'operazione. La composizione del desktop è disabilitata. (0x80263001)
   at Standard.NativeMethods.DwmExtendFrameIntoClientArea(IntPtr hwnd, MARGINS& pMarInset)
   at System.Windows.Shell.WindowChromeWorker._ExtendGlassFrame()
   at System.Windows.Shell.WindowChromeWorker._UpdateFrameState(Boolean force)
   at System.Windows.Shell.WindowChromeWorker._HandleDwmCompositionChanged(WM uMsg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Shell.WindowChromeWorker._WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

2024-05-23.txt
✔ Expected Behavior
Normal operation
❌ Actual Behavior
System.Runtime.InteropServices.COMException (0x80263001)
Other Software
No response

/dup #30507
We've released a hopeful fix for this on 0.81.0, so please update to the latest.

Just saw there was an update after submitting the issue, thanks.
I also updated my graphics driver, although I'd have hoped it would be more stable since I always use the "reference" as opposed to "game-ready" version.
For future reference one of my displays is occasionally disconnected/reconnected, so that might have contributed to the issue.


API Implementation Tracker [your wanted APIs go here]

This is a list of APIs that are known to be wanted, but yet to be implemented into gcloud-node. We will update this issue to give visibility into the prioritization and progress of each.
To Be Prioritized

App Engine Admin API
App Engine Task Queue
Cloud CDN
Cloud Endpoints
Cloud Functions
Cloud SQL
Compute Engine Beta API
Compute Engine Metadata API
Container Engine
Apiary Photos API

New Requests
If you'd like us to support an API that is not on this list, feel free to add your request in a comment. If a comment has already been made with your request, +1 it.

Guys, I would really like to see a cloud endpoints and CDN.  I might deploy a loopback api gateway with cloud datastore in the meantime.

Would it make sense to keep the discrete source issues open so users can still comment/upvote a specific issue?  Might help determine a customer-driven priority.

Having multiple issues led to repeated issues and lots of noise. I'd like to see how far we can stretch making this one issue work. Anyone can feel free to vote for their wanted APIs here / +1 the last person's comment that requested something. Ultimately, @jgeewax will officiate the ordering of the implementations.

Upvote this comment if you want Cloud Functions support!  ;)

Search & Images! I have to use outsource to Python modules to accomplish some simple tasks from my Node.js default module

Images API

Please implement get_serving_url() in ptyhon api to node like as seen here
https://cloud.google.com/appengine/docs/standard/python/refdocs/google.appengine.api.images#Image_get_serving_url

I wish i could take advantage of magic image urls in node api like referenced as there
https://cloud.google.com/appengine/docs/python/refdocs/google.appengine.api.images#Image_get_serving_url

Sequelize CLI

Cloud Functions Admin API (list/create/delete)

Google Cloud Container Builder (GCB)

@theacodes  @danoscarmike guessing this is not how we're tracking this stuff now :)  Should I just close this out?

These are user requests, so having a channel for this type of feedback, whether here or somewhere else, is valuable.

@stephenplusplus any status on these? Where is the new place you guys are tracking this? Cloud SQL and App Engine APIs would be absolutely exceptional.

Recommendations AI (via @klaussilveira in #2960)

Hey folks following up here - there are a variety of new APIs available now:

https://github.com/googleapis/nodejs-functions
https://github.com/googleapis/nodejs-cloudbuild

The complete list for those looking, is in the README here:
https://github.com/googleapis/google-cloud-node

Hi, do you have any ETA for Recommendations AI?

@Mistic92 no concrete time, but I believe it is on our list of APIs to generate soon.

This thread is a bit stale (and hasn't had many updates recently) so closing out.
Since 2016, we have introduced 100s of client libraries, and continuing to provide client libraries for GA GCP products continues to be a top priority for the team.


HQ Mission only let you fire the laser 3 times

Despite you have 99 charges displayed in the hud. The game will only fire you the taser 3 times.
L1 wrongly starts with 99 charges instead of the level set

made changes, check now @themangomago


SQL Language Syntax - Comments not working well

Hi Guys,
I'm working on Bracket on Mac OS High Sierra 10.13.6 (17G65) and noted a little issue.
Using the SQL language syntax, talking about the "comments", please look the issue below:

Using "--" (WITHOUT space) the line is not commented:

Using "-- " (WITH space) the line is commented like as required:

Thanks,
Junio Vitor

Hi, I have a potential fix for this.
Not sure as to if this should be changed but just in case I sent a question to the guys in the google-dev-group. :)
https://groups.google.com/d/msg/brackets-dev/t8MfCg7hspY/mY0tJRefBQAJ

Actually this looks like a CodeMirror issue. This is a part of the ThirdParty folder. I will take a look with them instead and check if this is working as intended or not.


Switch to go modules and initialize v8 of the project

This sets up go modules for this repository and changes the base version to v8.
Additionally, this removes the checked in vendor folder of the project.
This resolves https://github.com/twitchtv/twirp/issues/169
Changes to imports
Imports are now updated to github.com/twitchtv/twirp/v8 for users of v8.0.0 and above.
Other than that, no major changes for even users of dep as long as they are using a version of go > LATEST - 3.
Future major revisions will need to go into the ./v9 folder of the repository if there comes a need for another major revision.
Disclaimer
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Opened this to start a conversation around our go modules approach.
Looks fairly heavy handed in terms of folks providing libraries that wrap twirp. They will have to update their libraries every major version release which is not ideal. Exploring a few things so folks won't need to.


Add ARM64 support for Windows

This PR makes possible to build OpenBLAS for Windows on ARM using MSVC. Changes are made in order to bring arm64-windows support for vcpkg,

Oh, that comment was only about the MB/WMB/RMB implementations in common_arm64.h where you appear to have put empty loops. From my cursory reading of the documentation page, it looked as if _dmb(_ARM64_BARRIER_ISH) etc. were
direct equivalents of the dmb ish etc. assembly used on the Unixoid platforms.
For the kernels, the generic C versions are certainly sufficient (though it is a pity that the existing assembly kernels are not usable with MSVC)

Thank you for the comments👍. I do not have enough expertise to say that it can be helpful or right to use these intrinsics in MB/RMB/WMB. I will check that.

though it is a pity that the existing assembly kernels are not usable with MSVC
The same feeling.

I know very little about the MS platform, but I know what happened with multithreaded code on other "weakly-ordered" systems when there were no proper barriers in place.

will llvm for woa64 get detected?

will llvm for woa64 get detected?

I see no reason why it shouldn't. This PR is specifically about MSVC, which seems to have the same restrictions w.r.t. assembly code as on x86

@martin-frbg Could you please help me with providing some details on how to test the changes (specifically saying rpcc, mb, lock)? As I understand these changes are included into the build only if USE_OPENMP is on. I wanted to run cpp_thread_test, but it seems that it requires Fortran and also changes in tests to be compilable by MSVC.
I will be glad to hear any other suggestions or your concerns about the code changes 👍

cpp_thread_test should not depend on Fortran at all, this is C++ code that only uses BLAS functions. Maybe there are some details e.g. in the use of the random number generator that are not compatible with MSVC.
The effects of rpcc and the memory barriers should be visible in multithreaded code even without OPENMP, in particular in BLAS3 functions like GEMM or SYMM where Goto's paralellization algorithm distributes the workload across multiple threads.
I agree that it is somewhat cursed that a C implementation of BLAS comes with tests (in the test and ctest folders) that are written in Fortran - otherwise ctest/xdcblat3 etc. should be sufficient to check the implementation (e.g. #2363 exposed a bug in the original placement of the barriers that rendered them useless)

Did you need to make any changes in the cpp_thread_test sources to get them to compile with MSVC ?

Yes, of course. std::getline to getline and std::stoul to std::strtoul

I have meant for CI. It would be the same as for windows-cl job, but you need to pass -A arm64 and maybe forcing -DCMAKE_SYSTEM_PROCESSOR=ARM64 as mentioned here.

That does not do any corectness tests. Fact that artifact is generated does not mean new platfrm (combination) porting is complete

Are there any more concerns about the PR?

Time constraints on my end only, sorry. Plan to merge this after the C versions of CTEST build on all platforms. (Minor nit: the KERNEL.generic could probably be simplified to just "include $(KERNELDIR)/../arm/KERNEL.ARMV5" but that can be done after the merge)


How to fix "Error: Could not find device for Wi-Fi" on Windows 11

Hello! I'm not sure if this is the right place to do this but i recently stumbled upon this error a little bit ago on windows 11 even tho this command was working perfectly before. Running spoof list returned devices without a name but with a MAC address and i couldnt do anything to randomize my adapter. I just figured out how to fix it so i thought i'd save you guys the time and effort

Simply open your settings, go to Network & Internet > Advanced Network Settings

Under Network Adapters, find your Wifi Adapter. For me it was the second one.

Click the Dropdown and under "Rename this adapter", rename it to something like wi-fi

Restart your command line and then run spoof list. You should see Wi-Fi come back

Run spoof randomize Wi-Fi or whatever the device name is under that command

I hope this is helpful to anyone. I know nothing about node js so i cant really help much, i kind of just aimlessly stumbled upon a solution after two days. Thank you feross for creating this amazing command, it's saved me a bunch :)

This saved me so much time! Thank you 🙌


[JP] Blogs page

Improvement suggestions for the following

Blogs --> Kubernetesブログ
The preview page: Link

LGTM

I tested where these fields are used.
---
title: Kubernetesブログ(title)
linkTitle: ブログ(linkTitle)
menu:
  main:
    title: "ブログ(title-in-main)"
    weight: 40
    post: >

Kubernetesやコンテナ全般に関する最新ニュースを読んで、技術的なハウツーをいち早く入手しましょう。

---

I don't know where the title field in the main is used, but it would be good to keep it the same as the original file.

/retitle [ja] Translate title and linkTitle for Blogs page

@t-inu may can you recheck?

I seem the modified file is fine.
We'd like to solve Netlify's deploy failed.
The following comment may be helpful to you.
https://github.com/kubernetes/website/pull/39528#issuecomment-1449197631

/assign @inductor @nasa9084


Auto flatten FrameColumns after hold and aggregate.

When using unfold or groupBy aggregations, it always feels bit cumbersome to call flatten on the result to pull the columns out of the FrameColumn.
I'd argue that by default the user always expects a flattened result because that's the behavior in r and python.

I'd argue that it is easy to call flatten but it is much harder to put the columns back into FrameColumn for those of us (me included) who needs it. As a minimum this should be configurable, something like groupBy(flatten = false) {}
P.S. I could not find hold or even fold operator and really curious about it :)

Clearly, having sub-data-frame is a nice concept that probably has its applications, so I'd also favor a configuration parameter here, which should imho default to true. This is because in a typical exploratory analysis protocols, at least I use dozens of aggregate calls (or currently their equivalent summarize since I still do them in R). When doing so, I never felt the need to keep the aggregates separate from the remaining columns.
I'd think that the setting would rather need to be added when doing the aggregation:
    irisData
                .groupBy("Species")
                .aggregate(flatten = false) {  // <- config option
                    mean() into "mean"
                    std() into "sd"
                }

PS hold was added in v0.9

Well, in comparison to R and Python, DataFrame does have hierarchical data frames, so it makes more sense in the context of DataFrame to create a nested data frame here. Like @pacher said, it's more difficult to put it back after flattening than it is to just .flatten() the result.
That said, a configuration option that defaults to false is not out of the question.

The concept of nested data (https://tidyr.tidyverse.org/articles/nest.html which is a great intro into the subject btw) is clearly beautiful. Though, in my experience, it's rarely used among data scientists who often prefer sticking to simple flat tables.  When using nesting, it's always something I do intentionally and would never expect as a default.

We all have different background, use cases and preferred workflows.
I use kdf with collections of objects in kotlin JVM and for me hierarchical nature of kdf is really awesome and spot-on.
So in my case unfolding or flattening is something I do intentionally and I would argue against doing it automatically just because there is no universal way to undo it.
As you said, hierarchical frames are beautiful, but I guess there is a bit of a learning curve to fully appreciate it.
Back to the topic

We can add config option to AggregateDsl instead of being a parameter of aggregate function
We can add a bunch of shortcuts, something like unfoldFlat() with a better name which is just unfold().flatten(). I think this is pretty common practice in kotlin standard libraries.

Sure any API needs to be opinionated. I intentionally try to work out a data-scientist-who-is-now-but-interested-in-kotlin perspective here, that is a less technical but a more R/python based background. I guess without attracting these folks, kotlin will face a very hard time becoming competitive in data-science.
Another argument for default-flattening: aggregate has imho no consistent contract as the output structure depends on the number of aggregates. For 1 its a value-column, for multiple ones it's a column-group. This type of inconsistency is confusing and imho should be avoided. It's very similar to the classical base-R  confusion example:

df[, "a"] returns a vector while df[, c("a", "b")] returns a data.frame

Not sure if more utility functions improve readability: Calling it aggregateFlat lacks beauty in my taste compared to dplyr/pandas.

I understand and respect your perspective with python data-scientist in mind. It was clear from the previous answer.
But we have a very common, old and hard dilemma here. Of course the famous quote of Henry Ford immediately comes to mind

If I had asked people what they wanted, they would have said faster horses.

But I am getting off-topic again.

aggregate has imho no consistent contract as the output structure depends on the number of aggregates. For 1 its a value-column, for multiple ones it's a column-group.

I find it very consistent that new columns don't appear without explicit add or something like flatten. Unfold and aggregate are transformations of the columns, which take a column and produce a column. Together with convert and update, they are just more specific versions of map/replace. I see ColumnGroup as a single column (it inherits BaseColumn) just like value or frame column. I would find it confusing if List.map could produce more elements than in the original list. Unlike List.flatMap. So if transformations output more than one column, it grows depth-first to keep the number of columns the same unless specifically told not to.

Not sure if more utility functions improve readability: Calling it aggregateFlat lacks beauty in my taste compared to dplyr/pandas.

I agree.  I was just throwing in options. In kotlin coroutines there is flatMapMerge(f) = map(f).flattenMerge(), flatMapConcat(f) = map(f).flattenConcat() etc. I think I've seen similar shortcuts with .flatten() even in stdlib, just don't remember.
Disclaimer: I am not a developer of kdf, not even a data scientist. Just a passer-by speculating on the topic. I might change my opinion after doing dozens of aggregations per day like you.

@holgerbrandl Actually, while of course, we would welcome data library users from other programming paradigms such as Python or R, that's not our intended target audience per se. We are more interested in reaching folks that know Kotlin already, enjoy its syntax and features, and have started to gain an interest in Data Science. These days, Data Science becomes bigger and more common. So, if your application requires some data wrangling it makes sense you don't want to learn a whole new language + export/import to just modify your data a bit. That's where DataFrame comes in! Not to convert Python Data Scientists to use Kotlin, but to convert Kotlin users to Data Scientists :)

Hmm, I was hoping for more ambition than some data wrangling + import/export, but thanks for the clarification. :-/
I keep my fingers crossed that the project doesn't fall into the same trap as many other JVM libs that are technical beauties but lack the pragmatism to be as useful as more simplistic counterparts built for scripting languages.  Learning and adopting design patterns  (such as flat tables as main working horse in table processing APIs) from years of community work and consolidation in data-science stacks in R or python could be clearly helpful here.
I hope I did not come across too negative in this thread, but I at least wanted to share my impressions & concerns.

Well of course we are also focussing on data exploration and representation, combined with explicit integration with tooling and the IDE. For data representation, the types, nullability, and also hierarchy are IMO solid and unique strengths of DataFrame. If you print out your table in the console, a flat table is preferable, but if you can click around and collapse/expand cells (which we can do), hierarchy is awesome.
But of course, we want to strike a balance between this exploration, onboarding Kotlin users, and data science, so your input is definitely appreciated :)

As @pacher and @Jolanrensen mentioned, Kotlin DataFrame is balancing between common data science use cases and more general/functional API for manipulations with hierarchical data objects, similar to Kotlin stdlib.
I think we should keep basic DataFrame API general and consistent, and to avoid excessive shortcut functions, such as aggregateFlat.  Such shortcuts may be not only background-specific (e.g. R data scientist vs. Kotlin data engineer), but also domain-specific and they can be easily created by user and stored in some util library for reuse in several data projects. And we can provide a tutorial on how to do that.
We can also provide preconfigured sets of such shortcuts as a separate lib, e.g. dataframe-r, with familiar dataframe API for R users.


Update Cumulus 35f60b1

This PR is an update to match the next commits:

Polkadot @ 102aa6f
Substrate Parachain Template @ df2cecc
Polkadot JS Apps @ c09f8c8

superceded by #28


Add some information to the homepage

Currently there's no info on the website about me, or what this website is actually about. I need to assess that. Maybe add some short info just below the header. Something short, like "I make games and apps. Check them out, they're cool."

Currently looks like this:

Maybe convert this to a basic nav later?


Implement go-prompt

To make the Kubicorn experience even better we can implement go-promp. Basically it will add auto completion and some other fancy stuff with not a lot of effect I think.
Implementation idea:

Let's implement go-prompt for non-Windows OS-es. It looks very good, and it would be awesome to have something like this for kubicorn.
Here's the my implementation idea:

Add prompt.go file to cmd package which will contain the code.
Add prompt_windows.go to cmd package which will show not available error for Windows.
Instead of defining everything manually, use cobra to obtain all commands and flags and build structure like this.
Cobra has many functions for obtaining flags, commands and descriptions, such as Commands.
Full cobra docs available @ godoc

If you'd like to learn more about kubicorn project, you can read The Project Walkthrough.
If you have any question, comment on the issue, join us on the #kubicorn channel in the Gophers Slack community or open a PR. We'll always do everything we can to get the PR though.

It looks good, but does we know about portability between terminals and OSes? Would it work good on Windows?
About the completions, we have Bash and ZSH completions. This one looks better, but the I don't see does it work with every shell.

Good question, looks like windows support is still in the works https://github.com/c-bata/go-prompt/pull/2. We will have to wait unit this works before implementing. We should not kill windows support just for some fancy options.

Sounds good to me. Let's leave this issue open, it's definitely good idea once they add Windows support. We definitely have at least one Windows user, so it wouldn't be good idea to drop support for it :joy:

Let's implement go-prompt for non-Windows OS-es. It looks very good, and it would be awesome to have something like this for kubicorn.
Here's the my implementation idea:

Add prompt.go file to cmd package which will contain the code.
Add prompt_windows.go to cmd package which will show not available error for Windows.
Instead of defining everything manually, use cobra to obtain all commands and flags and build structure like this.
Cobra has many functions for obtaining flags, commands and descriptions, such as Commands.
Full cobra docs available @ godoc

If you'd like to learn more about kubicorn project, you can read The Project Walkthrough.
If you have any question, comment on the issue, join or #kubicorn channel @ Gophers Slack, or open a PR. We'll always try our best to help you get your PR merged.
I'll update the original issue comment with this info.

I'm having a try at this, will make a WIP PR when I've got something useful.
Busy trying to see if I can generate it similarly to how Cobra generates zsh and bash completions.

@xmudrii I just opened a PR #428 for this. Since this is my first contribution to a Golang project, I'd appreciate some feedback on the code quality. If something is not written in idiomatic Go, I'd be happy to change that.


Try gradient accumulation and checkpointing for Linux training on smaller GPUs

https://huggingface.co/docs/transformers/v4.38.2/perf_train_gpu_one#gradient-accumulation
In the TrainingArguments passed to SFTTrainer, we can likely reduce the total GPU memory required to train on Linux by enabling gradient accumulation and checkpointing. This can sometimes meaningfully reduce total GPU memory required, with a tradeoff in overall performance.
I don't yet have a GPU to test this on myself, but perhaps some of the other GPU training on Linux testers can poke at this. The code already checks the free GPU memory and warns the user if they don't have enough - we could perhaps turn that from a pure warning into enabling of some of these options automatically if the memory requires are substantially lessened with them enabled.

@bbrowning @tiran is this issue still relevant or can it be closed?

@RobotSail @Maxusmusti @JamesKunstle what did you fellas have in mind?

@nathan-weinberg This is the legacy linux training script, are we still supporting updates to it?

@RobotSail That's what I'm asking :smile:


V3.21: FiYir Changes for Arena Open Support

3.21 Bump
Update Python Libraries
FiYir Arena Open Support README update

Hey, could you update the release notes to say "FiYir added support for the Arena Open, Qualifier, and Arena Direct events"? I think the other notes from my pull request can be skipped. Just add the links for #23 and #26 to the release page.
Also, any plans to release this today? JaggerMin and others might use it for the Qualifier tomorrow, and I'm curious to see if it's working.


Throw error when complete is called twice

Purpose

Resolve https://github.com/ballerina-platform/ballerina-lang/issues/28473

Approach

Throw error when complete is called twice

Samples

N/A

Remarks

N/A

Check List

[x] Read the Contributing Guide
[ ] Updated Change Log
[ ] Checked Tooling Support (#)
[ ] Added necessary tests

[ ] Unit Tests
[ ] Spec Conformance Tests
[ ] Integration Tests
[ ] Ballerina By Example Tests

[ ] Increased Test Coverage
[ ] Added necessary documentation

[ ] API documentation
[ ] Module documentation in Module.md files
[ ] Ballerina By Examples

@warunalakshitha I did try to write a test, but there was no way to validate the exception because it is written to the ballerina-internal log.

LGTM


The order of the pasted message text is inconsistent with the sorted messages

Storage Explorer Version: 1.33.0-dev (96)
Build Number: 20231220.4
Branch: main
Platform/OS: Windows 10/Linux Ubuntu 22.04/MacOS Sonoma 14.2(Apple M1 Pro)
Architecture: x64/x64/arm64
How Found: From running test cases
Regression From: Not a regression
Steps to Reproduce

Expand one storage account -> Queues.
Open one queue which contains messages.
Sort messages by one column.
Click 'Select All' -> Right click messages -> Click 'Copy Message Text'.
Paste the message text to notepad.
Check whether the order of pasted message text is consistent with the sorted messages.

Expected Experience
The order of pasted message text is consistent with the sorted messages.
Actual Experience
The order of pasted message text is inconsistent with the sorted messages.
Additional Context
Here is the record:

Verified this issue on the build 20240203.7. Fixed. So, we are going to close it.

CTI is reproducing this issue. Here are the new data:
Storage Explorer Version: 1.35.0-dev (98)
Build Number: 20240530.2
Branch: main
Platform/OS: Windows 11/Windows 10/Linux Ubuntu 22.04/MacOS Sonoma 14.5(Apple M1 Pro)
Architecture: arm64/x64/x64/arm64
How Found: From running test cases
Regression From: Previous release (1.34.0)

Verified this issue on the main build 20240613.1. Fixed.


Possibly allow putting a hostname as an option for --address for ios9

Hi
Would it be possible to allow using a hostname/dns name for --address.
Currently seems to only allow IP's
It will allow adding it as allowed for http in plist file to work around the ios9 changes.
Thanks for an awesome project :)

Greetings @timhaak!
My sensors indicate that you need to update your issue through our custom issue form. We are now requiring all issues to be submitted this way, to ensure that we have all of the information necessary to fix them as quickly as possible.
Click Here To Update Your Issue
I will have no choice but to close this issue if it is not resubmitted through the form. Please fill out the rest of the form, so that I may use my friendly robot powers to assist you.
Thank you!

Hi @timhaak, mind filing an issue here? https://github.com/driftyco/ionic-cli/issues


sendMulticast() successfully sends notifications but they never arrive

The bug
I've an issue with the sendMulticast() method. I want to send a notification to three different devices, 1 Android and 2 iOS.
When I send the notification to one device at a time with the send() method, the notification arrives immediately on the choosen device.
But when I group the notifications with the sendMulticast() method, the notifications never arrive.
To Reproduce
Here's what I do:
$tokens = ['abc....','def.....'];

if(!empty($tokens)){
    $message = Messaging\CloudMessage::new()
                    ->withNotification(Notification::create($title,$content));

    $report = $this->firebaseMessaging->sendMulticast($message, $tokens);

    echo 'Successful sends: '.$report->successes()->count().PHP_EOL;
    echo 'Failed sends: '.$report->failures()->count().PHP_EOL;
 }

The result of this call is:
Successful sends: 3
Failed sends: 0

But no device recieves the notification...
Did I miss something somewhere in the configuration process or in the sendMulticast() call?
Expected behavior
I expect the call of sendMulticast() would send in one batch the same notification to several devices.
Developping Environment (please complete the following information):

OS: MacOS 10.15.4
PHP version: 7.3.11
Symfony version: 4.4
kreait/clock version: 1.0.1
kreait/firebase-bundle version: 2.0.0
kreait/firebase-php version: 5.1.1
kreait/firebase-tokens version: 1.10.0

Additional context
I didn't try on the staging or prod environment. But as it works when sending the notifications individually, I presume the multicast send should work as well.

You didn't miss anything, and that the Firebase APIs returned 3 successes for the 3 messages indicates that the message didn't contain errors and the three targets were valid.
The difference between send() and sendMulticast() from the SDK perspective is that instead of sending one request to the https://fcm.googleapis.com/v1/projects/<project-id>/messages:send endpoint, three individual requests are "concatenated" and sent as one request to the https://fcm.googleapis.com/batch endpoint (I hope the explanation makes sense, I'm not quite sure myself at the moment :)).
Long story short, I believe this is a (hopefully temporary) delivery issue on the FCM side, from the SDK side there is not much I can do 😞
(Just to be clear, I would prefer it to be an SDK bug, because then I could fix it 😅)

That totally makes sense... it so makes sense that you were right: I just resent the notification and the three devices received the notification instantly.
So the issue was indeed on the FCM side and not on the SDK side.
Thank you very much for your really quick answer and keep on the good work.

Thank you, and you're welcome 🌺. Glad it was just a glitch in the FCmatrix (it's bad-puns-wednesday 😅)


torch.distributed.elastic.multiprocessing.errors.ChildFailedError

torch ：1.13.1+cu117
nvcc -V ： cuda_11.7.r11.7/compiler.31442593_0
CUDA Version ：12.4
Does anyone know how to solve this situation? There should be no problem with the corresponding versions.

The test part can run normally

Hi, there is a bug of pytorch 1.X and 2.X, in which the name of local rank args are different. You may try local-rank or local_rank for multi-gpu training.


2.7.x

What is the purpose of the change
XXXXX
Brief changelog
XXXXX
Verifying this change
XXXXX
Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Make sure there is a GITHUB_issue field for the change (usually before you start working on it). Trivial changes like typos do not require a GITHUB issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[ ] Format the pull request title like [Dubbo-XXX] Fix UnknownException when host config not exist #XXX. Each commit in the pull request should have a meaningful subject line and body.
[ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[ ] Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add sample in dubbo samples project.
[ ] Run mvn clean install -DskipTests=false & mvn clean test-compile failsafe:integration-test to make sure unit-test and integration-test pass.
[ ] If this contribution is large, please follow the Software Donation Guide.

2.7.x

Codecov Report

:exclamation: No coverage uploaded for pull request base (2.7.x@cd68437). Click here to learn what that means.
The diff coverage is 64.90%.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cd68437...b32e57c. Read the comment docs.

we can't accept this such huge PR without any detail provided.
Feel free to reopen it when you think it's ready


Native code compile failed…Cannot find module './build/Release/shell'

While trying to install on OS X I get:
><EMAIL_ADDRESS>install /Users/dnewton/Sites/gh/great/node_modules/grunt-favicons/node_modules/execSync
> node install.js

[execsync v1.0.2] Attempting to compile native extensions.
[execSync v1.0.2]
    Native code compile failed!!
<EMAIL_ADDRESS>node_modules/grunt-favicons
├──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>└──<EMAIL_ADDRESS><EMAIL_ADDRESS>
…and when I try to run it anyway:
Loading "favicons.js" tasks...ERROR
>> Error: Cannot find module './build/Release/shell'
Warning: Task "favicons" not found. Use --force to continue.

Aborted due to warnings.

See this related issue and possible solution: https://github.com/mgutz/execSync/issues/38

This plugin is no longer using execSync since e2e5885087415432337c034dfa741ed6a862a042, @gleero needs to bump the version number to fix this issue.


buffers without spaces

You check if something is a buffer by testing it for /==$/. The problem is that new Buffer('foo').toString('base64') == 'Zm9v'.
The dirty way would be to add whitespace to serialized buffers and remove that afterwards. But if we already do that we could also just replace them with { _buffer : "Zm9v" }.

I think this can be closed?
> new Buffer('foo')
<Buffer 66 6f 6f>
> JSONB.parse(JSONB.stringify(new Buffer('foo')))
<Buffer 66 6f 6f>
> new Buffer(' foo')
<Buffer 20 66 6f 6f>
> JSONB.parse(JSONB.stringify(new Buffer(' foo')))
<Buffer 20 66 6f 6f>


Simple Project List

https://www.figma.com/file/IfEmcJeuNY6ucgjYctlKB7/Cord-Field?node-id=1%3A3
Requirements

[ ] Projects component acting as sub-router (and parent styling - maybe none)

Organizations could be used as an example.

[ ] ProjectList component connecting API to a list of ProjectListItemCards.

The list component/route should be at /projects.
List does not need to handle pagination, sorting, or filtering.
[ ] Page Title
[ ] Stub Sort Options and Filter Options buttons.
Use the outline variant - we can tweak it later to make it look more like designs.
[ ] Display list total

[ ] Make a ProjectListItem GQL fragment
[ ] Update ProjectListItemCard to take a single project prop of type ProjectListItemFragment

Actually try using a <Card variant="outlined" /> for sorting and filter options. Will need to use ` inside.

Do you mean sorting and filter button should be inside this card?


HADOOP-18874: [ABFS] Adding Server returned request id in Exception Message thrown to caller.

Jira Ticket: https://issues.apache.org/jira/browse/HADOOP-18874
Description of PR
Each request made to Azure server has its unique ActivityId (rid) which is returned in response of the request whether is succeed or fails.
When a HDFS call fails due to an error from Azure service, An ABFSRestOperationException is throws to the caller. This task is to add a server returned activity id (rid) in the exception message which can be used to investigate the failure on service side.
How was this patch tested?
For code changes:

[ ] Does the title or this PR starts with the corresponding JIRA issue id (e.g. 'HADOOP-17799. Your PR title ...')?
[ ] Object storage: have the integration tests been executed and the endpoint declared according to the connector-specific documentation?
[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[ ] If applicable, have you updated the LICENSE, LICENSE-binary, NOTICE-binary files?

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
0m 38s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  0s

codespell was not available.

+0 :ok:
detsecrets
0m  0s

detect-secrets was not available.

+1 :green_heart:
@author
0m  1s

The patch does not contain any @author tags.

+1 :green_heart:
test4tests
0m  0s

The patch appears to include 1 new or modified test files.

_ trunk Compile Tests _

+1 :green_heart:
mvninstall
43m 52s

trunk passed

+1 :green_heart:
compile
0m 42s

trunk passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04

+1 :green_heart:
compile
0m 39s

trunk passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05

+1 :green_heart:
checkstyle
0m 36s

trunk passed

+1 :green_heart:
mvnsite
0m 43s

trunk passed

+1 :green_heart:
javadoc
0m 42s

trunk passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04

+1 :green_heart:
javadoc
0m 39s

trunk passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05

+1 :green_heart:
spotbugs
1m  9s

trunk passed

-1 :x:
shadedclient
32m 44s

branch has errors when building and testing our client artifacts.

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
0m 31s

the patch passed

+1 :green_heart:
compile
0m 32s

the patch passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04

+1 :green_heart:
javac
0m 32s

the patch passed

+1 :green_heart:
compile
0m 29s

the patch passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05

+1 :green_heart:
javac
0m 29s

the patch passed

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

+1 :green_heart:
checkstyle
0m 21s

the patch passed

+1 :green_heart:
mvnsite
0m 32s

the patch passed

+1 :green_heart:
javadoc
0m 28s

the patch passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04

+1 :green_heart:
javadoc
0m 27s

the patch passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05

+1 :green_heart:
spotbugs
1m  3s

the patch passed

-1 :x:
shadedclient
32m 59s

patch has errors when building and testing our client artifacts.

_ Other Tests _

+1 :green_heart:
unit
2m 12s

hadoop-azure in the patch passed.

+1 :green_heart:
asflicense
0m 39s

The patch does not generate ASF License warnings.

126m 37s

Subsystem
Report/Notes

Docker
ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6004/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/6004

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets

uname
Linux 96d78c6f10a8 4.15.0-212-generic #223-Ubuntu SMP Tue May 23 13:09:22 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / 77e2bb82f3a87f71648d139ca3c74a0eb599f661

Default Java
Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6004/1/testReport/

Max. process+thread count
411 (vs. ulimit of 5500)

modules
C: hadoop-tools/hadoop-azure U: hadoop-tools/hadoop-azure

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6004/1/console

versions
git=2.25.1 maven=3.6.3 spotbugs=4.2.2

Powered by
Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
0m 38s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  1s

codespell was not available.

+0 :ok:
detsecrets
0m  1s

detect-secrets was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

+1 :green_heart:
test4tests
0m  0s

The patch appears to include 1 new or modified test files.

_ trunk Compile Tests _

+1 :green_heart:
mvninstall
44m 24s

trunk passed

+1 :green_heart:
compile
0m 43s

trunk passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04

+1 :green_heart:
compile
0m 39s

trunk passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05

+1 :green_heart:
checkstyle
0m 36s

trunk passed

+1 :green_heart:
mvnsite
0m 44s

trunk passed

+1 :green_heart:
javadoc
0m 42s

trunk passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04

+1 :green_heart:
javadoc
0m 38s

trunk passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05

+1 :green_heart:
spotbugs
1m 10s

trunk passed

+1 :green_heart:
shadedclient
34m 15s

branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
0m 31s

the patch passed

+1 :green_heart:
compile
0m 31s

the patch passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04

+1 :green_heart:
javac
0m 31s

the patch passed

+1 :green_heart:
compile
0m 29s

the patch passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05

+1 :green_heart:
javac
0m 29s

the patch passed

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

+1 :green_heart:
checkstyle
0m 21s

the patch passed

+1 :green_heart:
mvnsite
0m 32s

the patch passed

+1 :green_heart:
javadoc
0m 28s

the patch passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04

+1 :green_heart:
javadoc
0m 26s

the patch passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05

+1 :green_heart:
spotbugs
1m  4s

the patch passed

+1 :green_heart:
shadedclient
34m  5s

patch has no errors when building and testing our client artifacts.

_ Other Tests _

+1 :green_heart:
unit
2m 11s

hadoop-azure in the patch passed.

+1 :green_heart:
asflicense
0m 39s

The patch does not generate ASF License warnings.

129m 44s

Subsystem
Report/Notes

Docker
ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6004/2/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/6004

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets

uname
Linux e3db3a0687e5 4.15.0-212-generic #223-Ubuntu SMP Tue May 23 13:09:22 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / e586bf963e63c0a25a3b7a548ab4d1fe9e6d2470

Default Java
Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6004/2/testReport/

Max. process+thread count
734 (vs. ulimit of 5500)

modules
C: hadoop-tools/hadoop-azure U: hadoop-tools/hadoop-azure

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6004/2/console

versions
git=2.25.1 maven=3.6.3 spotbugs=4.2.2

Powered by
Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

Thanks for the review @steveloughran
Added all the assertions as per  yoir advice.
Checked for any reference not getting closed.

Recent Test Run

:::: AGGREGATED TEST RESULT ::::
HNS-OAuth
[INFO] Results:
[INFO]
[WARNING] Tests run: 141, Failures: 0, Errors: 0, Skipped: 5
[INFO] Results:
[INFO]
[WARNING] Tests run: 339, Failures: 0, Errors: 0, Skipped: 41
HNS-SharedKey
[INFO] Results:
[INFO]
[WARNING] Tests run: 141, Failures: 0, Errors: 0, Skipped: 5
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR]   ITestAbfsFileSystemContractDistCp>AbstractContractDistCpTest.testUpdateDeepDirectoryStructureToRemote:259->AbstractContractDistCpTest.distCpUpdateDeepDirectoryStructure:334->AbstractContractDistCpTest.assertCounterInRange:294->Assert.assertTrue:42->Assert.fail:89 Files Copied value 2 above maximum 1
[INFO]
[ERROR] Tests run: 339, Failures: 1, Errors: 0, Skipped: 41
NonHNS-SharedKey
[INFO] Results:
[INFO]
[WARNING] Tests run: 141, Failures: 0, Errors: 0, Skipped: 11
[INFO] Results:
[INFO]
[WARNING] Tests run: 591, Failures: 0, Errors: 0, Skipped: 274
[INFO] Results:
[INFO]
[WARNING] Tests run: 339, Failures: 0, Errors: 0, Skipped: 44
AppendBlob-HNS-OAuth
[INFO] Results:
[INFO]
[WARNING] Tests run: 141, Failures: 0, Errors: 0, Skipped: 5
[INFO] Results:
[INFO]
[WARNING] Tests run: 586, Failures: 0, Errors: 0, Skipped: 52
[INFO] Results:
[INFO]
[WARNING] Tests run: 339, Failures: 0, Errors: 0, Skipped: 41
Time taken: 27 mins 20 secs.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
12m 44s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  0s

codespell was not available.

+0 :ok:
detsecrets
0m  0s

detect-secrets was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

+1 :green_heart:
test4tests
0m  0s

The patch appears to include 1 new or modified test files.

_ trunk Compile Tests _

+1 :green_heart:
mvninstall
43m 54s

trunk passed

+1 :green_heart:
compile
0m 38s

trunk passed with JDK Ubuntu-<IP_ADDRESS>+1-post-Ubuntu-0ubuntu120.04

+1 :green_heart:
compile
0m 34s

trunk passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05

+1 :green_heart:
checkstyle
0m 31s

trunk passed

+1 :green_heart:
mvnsite
0m 39s

trunk passed

+1 :green_heart:
javadoc
0m 37s

trunk passed with JDK Ubuntu-<IP_ADDRESS>+1-post-Ubuntu-0ubuntu120.04

+1 :green_heart:
javadoc
0m 33s

trunk passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05

+1 :green_heart:
spotbugs
1m  2s

trunk passed

+1 :green_heart:
shadedclient
32m  2s

branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
0m 28s

the patch passed

+1 :green_heart:
compile
0m 28s

the patch passed with JDK Ubuntu-<IP_ADDRESS>+1-post-Ubuntu-0ubuntu120.04

+1 :green_heart:
javac
0m 28s

the patch passed

+1 :green_heart:
compile
0m 26s

the patch passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05

+1 :green_heart:
javac
0m 26s

the patch passed

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

-0 :warning:
checkstyle
0m 19s
/results-checkstyle-hadoop-tools_hadoop-azure.txt
hadoop-tools/hadoop-azure: The patch generated 1 new + 0 unchanged - 0 fixed = 1 total (was 0)

+1 :green_heart:
mvnsite
0m 28s

the patch passed

+1 :green_heart:
javadoc
0m 25s

the patch passed with JDK Ubuntu-<IP_ADDRESS>+1-post-Ubuntu-0ubuntu120.04

+1 :green_heart:
javadoc
0m 25s

the patch passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05

+1 :green_heart:
spotbugs
1m  3s

the patch passed

+1 :green_heart:
shadedclient
32m 10s

patch has no errors when building and testing our client artifacts.

_ Other Tests _

+1 :green_heart:
unit
2m 15s

hadoop-azure in the patch passed.

+1 :green_heart:
asflicense
0m 35s

The patch does not generate ASF License warnings.

135m 44s

Subsystem
Report/Notes

Docker
ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6004/3/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/6004

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets

uname
Linux 01581b5c665e 5.15.0-86-generic #96-Ubuntu SMP Wed Sep 20 08:23:49 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / 6bb403de1677533209964edaa5fa535ee77f8022

Default Java
Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-<IP_ADDRESS>+1-post-Ubuntu-0ubuntu120.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6004/3/testReport/

Max. process+thread count
555 (vs. ulimit of 5500)

modules
C: hadoop-tools/hadoop-azure U: hadoop-tools/hadoop-azure

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6004/3/console

versions
git=2.25.1 maven=3.6.3 spotbugs=4.2.2

Powered by
Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.


Request Pages on XMLPort

Hello,
We're aware the request pages on XMLPorts are a limitation but we would like to know if this is being considered in the future or we should move over it.

They are considered and until the base application uses them they will be considered.

Support for request pages on XmlPorts has been shipped with the Wave 2 2019 release.


Boolean switch adds double-quotes which conflicts with Obsidian's Properties.

Obsidian version: 1.5.8
MM version: 0.8.5
When using boolean types, MM adds quotation marks to "true" and "false" like so:
exercise: "true"

As opposed to how Obsidian Properties does this:
exercise: true

I'm not sure if I'm missing something or if this is how it should behave but it causes a warning in the Obsidian Properties panel and I would love to avoid that where possible and MM doesn't see any issue when the boolean values do not have quotations.
Here is a video of the issue:
https://github.com/mdelobelle/metadatamenu/assets/610197/fbbf220f-f434-445b-8ac6-6543067dd461

Good catch, this will be fixed in the next release

fixed in 0.8.6


Why running PluginClean will remove vundle itself?

I think that vundle will remove itself is absurd

my plugin config:
set nocompatible              " be iMproved, required
filetype off                  " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'Valloric/YouCompleteMe'
Plugin 'dracula/vim'
Plugin 'fatih/vim-go'
Plugin 'rust-lang/rust.vim'
call vundle#end()
filetype indent plugin on     " turn on after vundle

You should be including Vundle in the plugin list before the others.
Plugin 'VundleVim/Vundle.vim'

thanks, it works


Call for Contributions

pomdp-py has been useful to many since it was released two years ago. It is encouraging to receive emails from users of different backgrounds. I believe there is value and beauty in keep improving this library for what it is and making POMDP-related research more accessible to more people programmatically. This is the basis of pomdp-py.
I will keep maintaining this library, but I have also graduated from my PhD and am moving on to the next chapter. Therefore, I am calling for contributors who are willing to take part in improving & maintaining this library. Below, I provide some guidelines for how you could contribute. In the end, I include my own todo-list -- open for anybody. Feel free to contact me at<EMAIL_ADDRESS>if you have any thoughts or comments.
How to Contribute
There are multiple ways you could contribute:

Open an issue. If you identify a problem or have questions, feel free to open an issue about it.

Fork & make a pull request.

Existing tests under pomdp-py/tests should pass. Run python test_all.py before making your pull request.

If you make breaking changes, please write your own tests under the same directory and overwrite previous tests (and justify why).

Communicate effectively what you have done, how it works, and how should people use it. Effective communication is not limited to text writing.

Blog. If you have used pomdp-py, it would be useful to others if you blog about the process of your use and your thoughts. Share your link with me - thanks!

Coding

Follow Google Python style guide. In particular:

Use 4 spaces instead of tabs.
Use Google style docstrings (examples)

Documentation

We use Sphinx, which uses RST (reStructuredText).

The documentation source code is in pomdp-py/docs/_sphinx_src.
The generated website is in pomdp-py/docs/html.

Read about how to build the docs on this documentation page.
Git and Github

Follow Github's Best Practices for Projects. In particular:

Break down large issues into smaller issues
Communicate
Make use of the description and README
Have a single source of truth

Caveats

Building a Cython-Python project for PyPI release is tricky. Make sure both Cython (.pyx, .pxd) and Python (.py) source files are included in the PyPI source package.
Writing documentation for a Cython-Python combined project is tricky.

TODO List
Your contribution could be about, but not limited to, the following TODO items in my notes. The ordering is somewhat random; they are each assigned to a potential future release.

[ ] (v1.3.3) Add a tutorial for writing tabular domains; Add crying-baby example; Add the tabular models into pomdp-py/utils/templates.py

[ ] (v1.3.3) Add a tutorial for using the functions in value_functions.py.

[ ] (v1.4.0) Add DESPOT support. It is best to integrate with the official DESPOT repository.

[ ] (v1.4.0) Add OctreeDistribution (octree belief; ref) as one of the distribution reps in pomdp_py.

[ ] (v1.4.0) Finish solving the light-dark domain; Existing B-LQR planning implementation does not work.

[ ] Implement POMCPOW, AdaOPS, and apply them to this domain.

[ ] (v1.4.0) Add support for multi-agent POMDPs.

Issues requesting Dec-POMDP https://github.com/h2r/pomdp-py/issues/19, https://github.com/h2r/pomdp-py/issues/14

[ ] (v1.4.0) Add examples and solvers / planners for continuous POMDPs.

[ ] (v1.4.1) Benchmark comparison against David Silver's C++ codebase on RockSample. The codebase could be found in this repo: https://github.com/kyr-pol/pomcp

Hi, Thank you for the great library. I am using it for one of my projects. I would love to contribute to the project.
Specifically, I want to contribute to v1.4.0: "Add OctreeDistribution (octree belief; ref) as one of the distribution reps in pomdp_py."
I have already gone through the code and have updated parts of it for my current project so I can get started on this soon. Please let me know if there's anything else I need to know before getting started.
Thank you.

@RajeshDM Fantastic.
I have implemented OctreeDistribution here, which is better (more comprehensive) than the code for the paper you linked. I was imagining porting that over to pomdp_py and adding tests would be great. Tests have also been written here.

@RajeshDM Fantastic.
I have implemented OctreeDistribution here, which is better (more comprehensive) than the code for the paper you linked. I was imagining porting that over to pomdp_py and adding tests would be great. Tests have also been written here.

Thanks for pointing me to the updated code base. If the code already exists, I believe the work should not be too extensive except for adding some more testing perhaps? Maybe the useful thing might be also adding an example problem that actually uses the octTree belief so that it would be useful to learn from for someone trying to use the OctTree belief for their own use later down the line. What do you think about that?

Agree. I think the original 3D object search domain is a good candidate but needs to be greatly simplified for this. If there is something you are working on that can be an example that would be wonderful.

Agree. I think the original 3D object search domain is a good candidate but needs to be greatly simplified for this. If there is something you are working on that can be an example that would be wonderful.

That sounds good. I am currently working on a domain but that might take a while to be completed. It might be easier to use the existing domain. I will look at how to simplify it. Thank you


Update how-to-write-use-markdown.md

merging a slight change from my fork to remove the VSTS CLI language tag (should just be Azure CLI instead).

LGTM. Do we need to scan for how many pages use this language, and do a bulk update, or how to fan out?

It's already been removed from the vsts-docs repo, so I don't think we need to bulk updates from the top down. Just don't want people to use it in the future.


(SERVER-1150) Add support for custom oid mappings

Add support for Puppet's custom trusted oid mapping feature.
This is a cherry-pick of the commit in https://github.com/puppetlabs/puppet-server/pull/996

@fpringvaldsen the puppet agent version will need updating to a version that includes in OID work as well

I've updated the submodule commit and fixed the failing test

@haus

the puppet agent version will need updating to a version that includes in OID work as well

Do you mean for the CI Pipeline to pass? Do you know where I can set this?

acceptance/lib/helper.rb has a sha listed. the sha will need to be an agent version that includes the puppet changes. you can see #1007 for an example.

And yea, I meant for acceptance tests to pass.

submodule SHA looks good, I think this is ready except for the change @haus mentioned

@KevinCorcoran @haus I've updated the puppet-agent dependency, hopefully that should make CI green

👍

:+1: will merge once travis goes green


Using phone number as auth method is now limited by global parameter

Coverage increased (+0.03%) to 88.269% when pulling 27f23cc45b5929d66a3ad14ce92b2993e6a06f06 on 3255_phone_number_limit into 0ada9da1ef635c5721ed9025bc2c99aa7ec33847 on develop.


add kill() call

A kill() call (could also be called raise(), which sounds less alarming) can be used to send a signal to the current process. I imagine it would be used by security teams in some situations, as a zero-day workaround. Eg, to issue a kill(9) after a certain kprobe/uprobe program.
I don't see a kernel function for this[1], so this probably involves adding the BPF kernel function first.
[1] https://github.com/iovisor/bcc/blob/master/docs/kernel-versions.md

This is possible today with { system('kill -9 %d\n', pid); }, but I'm guessing in the security example you gave this should be a synchronous operation, right?

I think this is superseded by #693


Extend Steps template functionality

Please add this functionality to Allure Steps
This will be really useful for my framework
Thanks!

@Supreme85 thanks for the contribution.
I not feel like merge this to Allure1, the templates processing is already overcomplicated at this point. But such feature is already scheduled in Allure 2.
IMHO templates in steps should work as following:
@Step("Some step method {method}, {class}")
void step1() {
   ...
}

@Step("Has parameters {a.field}, {a.field.subField}, {b.otherField}")
void step2(A a, B b) {
   ...
}

@Step("Fields from instance {this.field1}, {this.field2}")
void step3() {
   ...
}

Our team decided to not merge this since Allure 2 was released. And new java adaptors already supports this


Revert "Use public subnet for tests"

This reverts commit 10c6b84d723a1b66fa1986c63c58558bd7019dd8.
This is a dummy commit so we can run tests using updated GitHub workflow with a public subnet.

Testing succeeded - closing review as the prior commit is working as expected


breadcrumbs

Hello, in the admin panel there is breadcrumbs?

Implemented in 22684439d4fc5f04bb492670fa8970f135de7733
Update to 1.5.x to use it
$content->breadcrumb(
    ['text' => 'xxx', 'url' => '/xxx/xxx'],
    ['text' => 'yyy']
);


Upgrade to quasar 0.15

Lots of changes: https://github.com/quasarframework/quasar/releases
Upgrade and check if the page still looks the same and things work. Maybe a good chance to add more end-to-end tests?

Let me quote here some parts of the release notes.

The Quasar CLI has been rewritten from scratch to allow for a stellar development experience (Mobile App developers and Electron will fall in love with it!). Only one starter kit is required in order to handle websites, PWAs, Mobile Apps and Electron Apps.

Take some time to read all "Guide" pages once again. It will help you understand the true power of Quasar v0.15 and what you can do with it.
http://quasar-framework.org/guide/

Observe the new project structure. Start to port out files to the new project folder, taking into account the far superior structure. Using the new starter kit will allow you to take advantage of future seamless upgrades! In any case, do not simply copy your /src folder over to the new starter kit.

Quasar 0.15 comes with a new directory structure, which they recommend to use. It doesn't seem very different to our existing one: http://quasar-framework.org/guide/app-directory-structure.html
The main different I can spot is then introduction of a separate src-pwa and src-cordova folder. But there seems to be more:

You'll notice the new starter kit doesn't provide a /build or /config folders. They are no longer required. Everything can be easily configured from /quasar.conf.js now. You don't need to know Webpack.

I fear that this is less powerful than our existing approach where we configure webpack directly and more like the create-react-app approach where you need to eject in order to have full power.

No main.js? Yes. It's no longer there because you don't need it anymore. For initialization code and importing libraries into your website/app, read about App Plugins.

In earlier Quasar versions, to run code before the root Vue instance was instantiated, you could alter the /src/main.js file and add any code you needed to execute.
There is one problem with this approach. With a growing project size your main.js file most likely would get very cluttered and hard to maintain, which breaks with Quasars concept of encouraging developers to write maintainable and elegant cross-platform applications.
An app plugin is a simple JavaScript file which needs to export a function. Quasar will then call the exported function when it boots the application.

I guess that makes the project less of a Vue project and more of a Quasar project with every custom functionality bundled into plugins. Might be good because it's more separated.

Other relevant changes:

QLayout had major changes:
Alert and Toast have been merged into new Notify plugin
QSideLink is gone
Modals, Popovers, Tooltips, Layout Drawer, Dialog, Notify (just to name a few) now use Promises instead of taking a callback parameter.
Vue refs no longer necessary for a lot of components
Form Components: now you can listen to @input for immediate changes or @change for lazy update.
I18n for Quasar Components needs to know the current language

All in all, I think the upgrade will take a week of work and move/change significant parts of our codebase. I would try to do it soon because 0.15.7 is already released which makes the 0.15 release look stable to me.
Maybe end of March or beginning of April.

I wonder if there's a way to switch to the new components separately from new quasar-cli. Could be a good first step.

Managed to get it partially working! Topbar is missing, many buttons don't work and console is full of red text, but hey...

It seems indeed possible to get Quasar 0.15 without the new CLI, see here: https://github.com/yunity/karrot-frontend/pull/974


Cannot set property 'sources' of undefined at node_modules/@ionic/app-script/dist/webpack/loader-impl.js:35:37

Note: for support questions, please use one of these channels:
https://forum.ionicframework.com/
http://ionicworldwide.herokuapp.com/
Short description of the problem:
Error when building with --prod flag. App is blank after loading screen. However, things just work when building without --prod flag.
What behavior are you expecting?
--prod should not trigger any error.
Steps to reproduce:

ionic build android --prod
mfp cordova run -d

insert any relevant code between the above and below backticks

Which @ionic/app-scripts version are you using?
0.0.48
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)

Make sure you have sourceMap set to "true" in tsconfig.json like this file does.
https://github.com/driftyco/ionic2-app-base/blob/master/tsconfig.json#L13
Thanks,
Dan


ASP.NET 5 on IIS 7.5

I understand that Beta8 changed over to use the HttpPlatformHandler module when running under IIS.  Unfortunately, it appears that the module is only supported on IIS 8+, so officially ASP.NET 5 only works on those versions of IIS.  I've tested locally on a dev machine using IIS 7.5 and the module appears to work, but I haven't done any extensive testing.  Will the module be officially supported on IIS 7.5 or lower, or how would be use ASP.NET 5 on IIS machines that are not supported by the HttpPlatformHandler module?

@saluce65 The min supported version is Windows 2008 R2, which is IIS 7.5. https://github.com/aspnet/Hosting/issues/364#issuecomment-150293300

I can confirm that it is working fine on IIS 7.5, but you need to have platform handler 1.2 installed (see @GuardRex comments for links).


Pdf not working (Error load css file)

Summary of problem or feature request
I tried to print pdf but i got the same error always

Code snippet of problem
RuntimeException
The exit status code '1' says something went wrong: stderr: "Loading pages (1/6)
 [> ] 0%
[======> ] 10%
[=======> ] 12%
Error: Failed to load https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css, with network status code 3 and http status code 0 - Host not found
 Error: Failed to load https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css, with network status code 3 and http status code 0 - Host not found
 [============================================================] 100%
Counting pages (2/6)
 [============================================================] Object 1 of 1
Resolving links (4/6)
 [============================================================] Object 1 of 1
Loading headers and footers (5/6)
 Printing pages (6/6)
 [> ] Preparing
[============================================================] Page 1 of 1
Done
 Exit with code 1 due to network error: HostNotFoundError
 " stdout: "" command: "C:\Program Files\wkhtmltopdf\bin\wkhtmltopdf" --lowquality --margin-bottom "10mm" --margin-left "0" --margin-right "0" --margin-top "10mm" --orientation "landscape" --no-outline "C:\Users\rayha\AppData\Local\Temp\knp_snappy5f8160e1afaee3.50313238.html" "C:\Users\rayha\AppData\Local\Temp\knp_snappy5f8160e1afe0e9.47420459.pdf".

I've tried using this
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">

and tried this locally
<link href="{{ asset('vendor/bootstrap/css/bootstrap.min.css') }}" rel="stylesheet">
<link href="{{ asset('vendor/fontawesome/css/all.min.css') }}" rel="stylesheet">

but still get the same problem. I was think that my wkhtmltopdf doesn't work and i tried whktmltopdf https://google.com google.pdf as administrator it works!. So the problem not in the wkhtmltopdf. Either the css import or command problem

System details

Operating System : Windows 10
PHP Version : 7.3
Laravel Version : 6.2
Laravel-DataTables Version :
"barryvdh/laravel-snappy": "^0.4.8",
"maatwebsite/excel": "^3.1",
"yajra/laravel-datatables-buttons": "~4.6",
"yajra/laravel-datatables-oracle": "~9.0"

I solved my problem change  to  from this solution https://stackoverflow.com/a/36695827/13077309
So in print.blade.pdf
<base href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<base href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">

The workaround you found might be the solution. Anyways, I think this is a WKHTML issue. Thanks!


"Can't send message" - however send is successful.

RainLoop version, browser, OS:
Nextcloud 11 with Rainloop 4.27.
Expected behavior and actual behavior:
Expected - press send and window closes
Actual - press send and receive "can't send message" error. However despite the error, the email is sent okay.
Steps to reproduce the problem:
Write email, press send.
Logs or screenshots:

Hi, please enable logging in application.ini and include logfiles with the bug report. Thank you.

v4.28 of the plugin for Nextcloud is out, maybe you can try again and tell us?

Hi there,
I've since moved from Nextcloud Snap to the normal Nextcloud, and it works fine. I imagine it may have had something to do with a lot of the Snap config files being read-only.


mvn fabric8:apply -pl starter-mysql fails

[ERROR] Could not find goal 'apply' in plugin io.fabric8:fabric8-maven-plugin:3.1.63 among available goals app-catalog, build, cluster-start, cluster-stop, debug, deploy, distro, helm, helm-index, help, import, install, log, manifest-index, push, resource, resource-apply, run, setup, start, stop, undeploy, watch -> [Help 1]

We've moved to f-m-p 3.x but our documentation is out of sync. I'll update the docs asap.

Thanks for the PR from @levackt we have the docs updated now


test: Simulate outages

Adds the ability to simulate outages by toggling between publishable keys.

Note: Going from Normal to Outage sometimes requires a reload. Any ideas on how we can eliminate this?

@razor-x I keep getting 401 errors in CI. Is this an issue on my end?

Note: Going from Normal to Outage sometimes requires a reload. Any ideas on how we can eliminate this?

It may be something with the react query cache, it's possible if there is an error the behavior is to keep the latest data. Is there a way to reset the cache when switching the global arg?
Actually, this may be a more general issue I posted here: https://github.com/seamapi/react/issues/462
Might be more serious then I originally thought.

@razor-x Yeah, probably the cache. We can manually reset it either via the queryClient or by a new QueryCache(), but I don't know the opportune time to do this (I tried adding the latter logic in preview.tsx but it didn't seem to have an effect; may need to be nested within the QueryProvider).
Is this cache clearing logic something we'd like to add to our primary provider or do we want to encapsulate it within Storybook (if possible)?
In any case, is this a blocker for this PR?


Search bar not behaving es expected

Issues
The search bar does not behave in an expected way, when I enter a search term and hit enter, nothing happens.
How it seems to work is that when I enter a term  about 5 pages with that term show up in a drop down, but if I click enter that goes away as well
Improvements
I would think hitting enter would bring me to a page which listed all of the search results
Additional discussion
The search also seems to be searching for pages that are either not current or not public.
For example when I search for "reducer" it shows me this page "https://www.opencilk.org/doc/reference/hyperobjects/" and the little blurb in the search results seem to indicate that their is content on the page, but I get a page that just shows
Content not found.
Go home.

Thanks for this report, @wheatman. With our static-site architecture, we rely on a third-party service, Algolia, to provide dynamic search functionality. I will look into the Algolia setup. I may not be able to resolve the enter-clicking, but the missing content seems like a definite problem. I'll let you know what I turn up. Thank again.


Kibana versions

This pull request adds versioned Kibana formulae for the 4.1.x and 4.2.x lines of Kibana.

Blocked by #47500.

The 4.2.x build is effectively the same as the main Kibana formula for the latest stable, but the 4.1.x build does have some modifications.

Have triggered a rebuild for this.

@mikemcquaid I pushed a pair of commits to address the failing style checks. (I'm pushing pairs so it's easier to reorder and squash the commits for each formula on a rebase.)

Thanks again @jasontedor and particularly for making it easier to squash!


Fixed a few issues with installing from github

Thanks for the fixes! I haven't seen much movement on my PR for the upstream project. The owner said that his "upstream", which is based on the Flow types in Relay has fixed a similar issue and that he wanted to try to pull those fixes rather than merge mine in order to stay more maintainable. I offered to test when its ready, but haven't heard back.


where is the multi_agent_log

multiple files have referred to from agentlite.logging.multi_agent_log import AgentLogger and i cannot find the file.

Thanks for pointing this out. Some examples may not be up-to-date. The multi_agent_log should refer to  current termimal logger.


IO -> Execution

Conversion between scalaz.effect.IO and scalding Execution

version bump?

Maybe add a ~> natural transformation?  (Not essential.)

@rowandavies I really like the ~> idea but think that if we are doing that we should write ~> instances for all of the things we are converting from (not just IO) and have a general
def from[M[_], V](m: M[V])(implicit nat: M ~> Execution): Execution[V] = ...

This feels like a bit of a refactor and probably should be in a separate PR

@vineethvarghese I bumped the version. Other than that are you happy for me to merge?

👍


Subscription - Checkboxes under "Subscription details" are always in dark mode

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 1.4.81-7
Reproducible in staging?: Y
Reproducible in production?: N
Email or phone of affected tester (no customers): https://github.com/Expensify/App/pull/42990
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team
Action Performed:

Go to staging.new.expensify.com
Log in with a Gmail account with workspaces.
Go to https://staging.new.expensify.com/settings/subscription
Switch the theme to light and dark mode.

Expected Result:
The checkboxes under Subscription details will update accordingly to the theme.
Actual Result:
The checkboxes under Subscription details are always in dark mode.
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

Screenshots/Videos
https://github.com/Expensify/App/assets/115492554/3cb40fed-7a38-437a-868b-b08b8b7b246f

View all open jobs on GitHub

This is being fixed here - https://github.com/Expensify/App/pull/43122

Also not a deploy blocker, because the new subscription page is only accessible from a deep link while we develop it.


Fix Typos in Open Standards at TBD Blog Post

Fix Typos in Open Standards at TBD Blog Post
🚀 Goal
We want to ensure our website's blog posts don't have any mistakes.
🤔 Background
This issue focuses specifically on fixing typos across our team's blogs. Your contributions here make a difference!
🤝 How You Can Contribute
We've broken it down into specific typos for you to address. Every contribution counts!
🔑 Tasks and Acceptance Criteria

Open Standards at TBD blog

[ ] Change "This allows users to share only" to "This allows users to selectively share" in the Selective Disclosure bullet point.

[ ] Change "verifiable credentials or DIDs" to "Verifiable Credentials (VCs) or decentralized identifiers (DIDs)"

Make sure all tests are passing.

🌟 Resources

Open Standards at TBD Blog post
Blog, Developer Website

Getting Started

Comment ".take" on this issue to get assigned
Fork the repository and create a new branch for this task
Follow the tasks outlined above
Submit a pull request with your changes
Respond to any feedback during the review process

Questions?
If you have any questions or need clarification, please comment on this issue or join our Discord community.
Happy coding! 🎉

.take

.take

Congrats @aniketh-varma on the first contribution for TBD x Hacktoberfest 2024 projects! 🥂


High-Level API questions

Hello! Big fan of the work you're doing here! I apologize in advance if these questions have already been answered elsewhere

(from the readme)

...in our testing we've found that [support for generics] introduce unsafety into pattern matching...

could you provide example(s) of this unsafety? Maybe using ts-adt?

What is the purpose of making these sum-types serializable into tuples?

It seems like the major improvement is that it eliminates the need for a named 'discriminant' (e.g. _tag for fp-ts types, type for redux Actions, _type by default in ts-adt)
Does that provide some safety advantage relating to question 1)?

Hey there!

could you provide example(s) of the unsafety?

It's been quite a while since we looked at this, but there's a branch with a failing test here. If memory serves the issue often presented itself with nested pattern matches like this:
match({
  X: match({
    Y: () => 'this will not be inferred correctly',
  })
})

If there's some way to make this typesafe I'd love to support generic/polymorphic pattern matching.

It seems like the major improvement is that it eliminates the need for a named 'discriminant'

It's primarily to push consumers towards more idiomatic solutions than accessing the discriminant manually. If you do x.tag in fp-ts there's no sort of guide to warn you that it's unidiomatic.
We do still use a private symbol as a discriminant under the hood but the consumer should be thinking in terms of sum types a la Haskell rather than in terms of how it's technically implemented in TypeScript.

What is the purpose of making these sum-types serializable into tuples?

It's just the least opinionated way to hold two pieces of data.
If you'd prefer to serialise to an object you can define your own serialisation function as follows. I'm not sure how to avoid the assertion:
// We don't export these as generally you'd use tuple serialisation or something like the io-ts bindings.
type Tag<A> = A extends Sum.Member<infer B, any> ? B : never;
type Value<A> = A extends Sum.Member<any, infer B> ? B : never;

// The conditional type distributes over the union members.
export type SerializedO<A> = A extends Sum.AnyMember
  ? { tag: Tag<A>; value: Value<A>; }
  : never

// Inferrence is a bit iffy, need to be pointful to access `A` in the assertion.
export const serializeToObject = <A extends Sum.AnyMember>(x: A): SerializedO<A> =>
  pipe(x, Sum.serialize, ([tag, value]) => ({ tag, value }) as SerializedO<A>)

type Weather = Sum.Member<'Sun'> | Sum.Member<'Rain', number>
declare const w: Weather
serializeToObject(w) // { tag: "Sun"; value: null; } | { tag: "Rain"; value: number; }

got it - so this is less of a utility for working with existing discriminated unions, and more of a soup-to-nuts sum type library that aims to mirror Haskell as closely as possible, encapsulated to prevent unidiomatic usage. Does that sound right?
I'll investigate that nested pattern matching error on my own - I'd love to help out!

That's exactly it, and please do! :+1:


kanban for the code reviewer

kanban board for group project
We are 2 coding partners in the team

STATUS: APPROVED! 🍾 🎆 🥇
Hi Team! @OsvaldoBC @Gdiazdiaz,
I'm Andres.
You did a great job working on this milestone, your project is complete! 🚀
There is nothing else to say other than... it's time to merge it 🤖
Congratulations! 🎉

Highlights
✅ Great use of GitHub's project feature! 🥇
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.

As described in the Code reviews limits policy  you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.


Remove unnecessary whitespace in the permission field

Some users will copy/paste permissions and may sometimes leave whitespace (spaces/tabs) at the end of them which then get added with the node. Use JS to strip extra whitespace on input blur.

Yes, I was going to use trim() which only affects the beginning and end of a string and should not affect prefixes/suffixes with spaces.

Yes it will. As they can have intended trailing whitespace.

I thought they had to be wrapped in quotes if they had spaces?

Only in the commands.


install, upgrade: fix installation attempt check

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.

[x] Have you successfully run brew typecheck with your changes locally?
[ ] Have you successfully run brew tests with your changes locally?

In #12024, I moved rescue FormulaInstallationAlreadyAttemptedError to Upgrade.install_formula but also should have moved formula_installer.check_installation_already_attempted

@FnControlOption Oops looks like a CI failure: https://github.com/Homebrew/brew/pull/12045/checks?check_run_id=3588586166#step:5:10


changed @connection directives make amplify push unusable

Describe the bug
It seems like the @connection directives are broken in some fundamental way with respect to amplify push.
To Reproduce
Steps to reproduce the behavior:

Create a GraphQL api
Use some @connection directives
After a couple pushes involving deleting a directive, and maybe adding it back under a different field or name, amplify push will stop working with the Resource is not in the state stackUpdateComplete error.

Stack Trace
I can post a stack trace the next time this happens.
Expected behavior
When I use Amplify, I have this constant fear that my app will fall into this push state where it's completely unrecoverable. What I expect/would be nice is some way to back out, or rollback, to a point where everything works again. This has happened now a couple times now and the only way forward, which it now looks like I will have to do yet again, is to nuke the entire API and start over.

This is related to #982 same happened to me.

Rollback would be nice. It would also be nice to get a --dry-run option like git gives to see what changes would be made without actually modifying cloud resources.

I had something similar. After the initial push the updates to the schema need to be small.
As soon as I add more than one @connection directive the push failed. I believe it is due to some cloudformation update restrictions with dynamoDB.
Creating a new stack through amplify env add does not suffer from this.

Updating this:
I re-thought my schema and managed to simplify it (considerably) since I was encountering these problems. So far, so good. No errors.
Thinking on this more, it might be that recursive database relationships are currently allowed by Amplify, but should not be allowed. Put differently, in my case at least, this error seemed to stem from an improper understanding @connection, which led to a recursive situation.
Feel free to close this issue.

The same thing happened to me as well. I had to checkout to a new environment for it to work. Seems weird. A rollback is a much-needed feature

Thanks for the feedback. I comment on the @connection issues under "Proposal 2" in this RFC (https://github.com/aws-amplify/amplify-cli/issues/1062) and hope this addresses your concerns. I appreciate any feedback on the RFC.

So far, so good. No errors.

Scratch that.
It really just seems like currently this CLI is not suited towards iterative product development, where you are changing the model a lot.

What would be a good temporary strategy if this happens in a production environment?
Checking out to a new env would mean new datasources (which we dont want) and at the same point cannot stop updating the models if there is an urgent need.

@grudra7714 Under the Amplify paradigm, once you get into production, you'd be developing new schema changes on a different environment than master. (Like development). Doing that kind of stuff on master will likely result in bad times.
Just to unpack this - the environments feature models itself (roughly) after git, where you'd check out a new branch and work on it before merging it back in. So, with Amplify, you'd "check out" a new environment, use it for a bit, and then merge it back in. They are not "different" data stores so much as "development" ones. As such, they are designed to be somewhat transient in nature.
It depends on your specific needs, so this is just my two cents, but if you don't want any environments in addition to master, you might want to take a step back and consider if Amplify is the right choice in the long-term.

@grudra7714 Under the Amplify paradigm, once you get into production, you'd be developing new schema changes on a different environment than master. (Like development). Doing that kind of stuff on master will likely result in bad times.

@hew I'm also concerned about pushing new features to production. Even after coding and testing in a dev-something environment, sometime the new schema will be merged with the old one - and at this point I feel that the problems will arise. Right now my plan is to deploy a new master with all the features, transfer the data from old to new database and finally change the clients endpoint.
During development iterations I did several changes to the API, but 99% of them were not pushed by amplify api push. I believe the worst part is the time that the CLI take to figure the errors or send the updates. With ~10 types, the stack takes around 20 minutes to complete. Depending the stage it fails, it takes 30 minutes for one try.
I'm afraid that due some deadlines there won't be another option to deliver our product, but I'm counting the amplify-cli will evolve in such a way that the push will work flawlessly.

Depending the stage it fails, it takes 30 minutes for one try.

Worth noting that the newest version of the CLI (1.1.7) clears the previous builds, which were all being uploaded to S3 prior to 1.1.7, slowing things down considerably past the first couple pushes. If you have really slow pushes, this could be why.

I believe there is something else causing the slowdown, @hew. The delete push is roughly equivalent to the create push, even with brand new stacks.

It would be really nice if it were easier to spin up/down entire projects. If things were a bit more ephemeral.
At work, I have a branch where I've set up our monorepo (which includes amplify) to move all of the lambda logic out of amplify/backend/function/name/src/, and into Lerna-managed /packages. These "mirrors"  are then installed back into their respective folders:

Besides Lerna itself, this has one main benefit:

Amplify is now much more ephemeral, where if you need to delete the amplify project, setting up the lambdas in the new project requires a 1:1 installation that is easily scripted and requires way less git diffs and all that.

This has a couple downfalls.

Because Amplify's update feature is change-based, any changes to the Lerna-managed lambdas will not inherently be reflected in the amplify ones. You need to version-bump and reinstall the packages each time you want to update Amplify (some might consider this a good thing).

You are increasing overall complexity by bringing in another CLI tool.

With respect to this one:

You are increasing overall complexity by bringing in another CLI tool.

What would be nice is to move this kind of functionality out of a need for Lerna, where Amplify has some kind of structure like this:
 amplify/
   automated/
   user-code/

Different names, probably, but basically the user-code should be able to survive an amplify project delete, which would clear out everything in automated. Then, an amplify project recover would spin up a completely new project, but using the lambdas, graphQL schema, etc that are sitting in user-code.
I'd even go for far as to say that the automated stuff should even be git-ignored.


Unable to include emojis in masked language modelling?

Hi,
I am new to Hugging Face and masked language modelling (MLM), and I was wondering how to include emojis when doing such a task.
I have a dataset with tweets, with each tweet containing an emoji at the end - here is a sample of my data:

ID
Tweet

1
Looking good today 😎

2
Weather is so hot, lol ☀

3
I hate you!!! 🤬

At the moment, I have fully trained my masked language model using my dataset, but when I predict something, it does NOT output or predict the emojis. It just predicts words.
This is my desired input from using my dataset for MLM:
"You look great [MASK]"

This is my desired output from using my dataset for MLM:
[{'score': 0.26041436195373535,
  'sequence': 'You look great 😎"',
  'token': 72,
  'token_str': '."'},
 {'score': 0.1813151091337204,
  'sequence': 'you look great 💯"',
  'token': 2901,
  'token_str': '!"'},
 {'score': 0.14516998827457428,
  'sequence': 'you look great 👌',
  'token': 328,
  'token_str': '!'},]

However, this is what I am actually getting from my output:
[{'score': 0.26041436195373535,
  'sequence': 'You look great?"',
  'token': 72,
  'token_str': '."'},
 {'score': 0.1813151091337204,
  'sequence': 'You look great."',
  'token': 2901,
  'token_str': '!"'},
 {'score': 0.14516998827457428,
  'sequence': 'You look great!',
  'token': 328,
  'token_str': '!'},]

I know it is possible to do this, but how do I do it? I am close, but not very.
Likewise, I have my model fully trained on my dataset, but it just does not seem to output emojis, even though I have included them in the training.
Does something need to be included to accept emoji? If so, what?
Thanks - I would really appreciate the help!

siapa loe
Dikirim dari Redmi 4A saya
Pada ANAND PRAJAPATI @.***>, 7 Jun 2021 3.29 PM menulis:
Hi,
I am new to Hugging Face and masked language modelling (MLM), and I was wondering how to include emojis when doing such a task.
I have a dataset with tweets, with each tweet containing an emoji at the end - here is a sample of my data:
ID      Tweet
1       Looking good today 😎
2       Weather is so hot, lol ☀
3       I hate you!!! 🤬
At the moment, I have fully trained my masked language model using my dataset, but when I predict something, it does NOT output or predict the emojis. It just predicts words.
This is my desired input from using my dataset for MLM:
"You look great [MASK]"
This is my desired output from using my dataset for MLM:
[{'score': 0.26041436195373535,
'sequence': 'You look great 😎"',
'token': 72,
'token_str': '."'},
{'score': 0.1813151091337204,
'sequence': 'you look great 💯"',
'token': 2901,
'token_str': '!"'},
{'score': 0.14516998827457428,
'sequence': 'you look great 👌',
'token': 328,
'token_str': '!'},]
However, this is what I am actually getting from my output:
[{'score': 0.26041436195373535,
'sequence': 'You look great?"',
'token': 72,
'token_str': '."'},
{'score': 0.1813151091337204,
'sequence': 'You look great."',
'token': 2901,
'token_str': '!"'},
{'score': 0.14516998827457428,
'sequence': 'You look great!',
'token': 328,
'token_str': '!'},]
I know it is possible to do this, but how do I do it? I am close, but not very.
Likewise, I have my model fully trained on my dataset, but it just does not seem to output emojis, even though I have included them in the training.
Does something need to be included to accept emoji? If so, what?
Thanks - I would really appreciate the help!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/google-research/bert/issues/1232, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFQHH7B4MBIODVQFW7TTW3TTRR7OVANCNFSM46HEPHDQ.


pdf binary contents

I'm trying to grab binary pdf contents.
Writing to file works fine.
In node pdf() returns Promise<Buffer>.
In deno promise always resolves to Uint8Array(2) [ 0, 0 ]
Can't get how to make work.
Any piece of advice?

Running into the same issues myself. The output of the .pdf() method will always return the same content.

Probably issue cause somewhere around this line, as of file written correctly.
I'm very new to deno and pptr, have no idea what this function should do.
https://github.com/lucacasonato/deno-puppeteer/blob/74f1e21845f7ded5e2408ce72b4765cd20f016ca/vendor/puppeteer-core/puppeteer/common/helper.js#L269

Fixed by #31


Write rawdata to response

Solving Issue #3.
Ran the tests and there were no failures.

Thanks! Somehow I completely missed this PR.


Vulnerability roundup 102: rpm-<IP_ADDRESS>: 1 advisory [4.9]

search, files

[ ] CVE-2021-20266 CVSSv3=4.9 (nixos-20.09)

Scanned versions: nixos-20.09: 76ed24ceab9.
Cc @copumpkin

NixOS 20.09 is EOL.