Issue #396: Don't hang dockerContainers() if docker.sock missing

If the docker socket isn't found at /var/run/docker.sock, calls to dockerContainers() will hang indefinitely. This commit adds an
additional else conditional to capture the failure branch and ensure the relevant promise is resolved.

@rdlowrey thank you, will have a look on it ... makes absolutely sense. Will check it this Weekend.

@rdlowrey Thank you. I just fixed it a little different. Version 4.27.10 just published


Question: both client and server side usage

For example, if i authorize my app for users using client-side authorization, and then will use received credentials for any backend queued calls - will this cause any problems for me?

There is no real issue to use the access token in the frontend and then, to send it to the backend.
There is 2 benefits of using the server side flow only:

The server side flow assure that the access token received in the backend is the good one (prevent spoofing)
If you have an existing XSS/CSRF vulnerability in your frontend, the attacker wont be able to retrieve the access token of the user (as it doesn't go by the frontend). Using Angular.js or such framework help a lot to prevent this vulnerability.

I have read your docs more properly and found next: http://docs.oauth.io/?PHP#authorizing-the-user-with-both-front-end-and-back-end-sdks
Think that is the best way for me.
Thanks for your help!


bring back "Team page key on ID"

[x] after release

cc @keybase/y2ksquad

CI fell over and related tests pass locally, merging


[EXT-SYSLIB] Add absl_py logging submodule to build flow.

Enable proper build when absl_py is external LOCAL_LIBS.
ERROR: /home/cbalint/rpmbuild/BUILD/tensorflow/tensorflow/tensorflow/python/distribute/BUILD:1733:11: no such package '@absl_py//absl/logging': BUILD file not found in directory 'absl/logging' of external repository @absl_py. Add a BUILD file to a directory to mark it as a package. and referenced by '//tensorflow/python/distribute:multi_process_runner'

Cc @perfinion
Thank You !

@perfinion ping


stencil responsive layout

Describe the feature you'd like to request
number of columns can auto adjust when stencil size change.
when components overflow, there should be a scrollbar.
Describe the solution you'd like
provide a switch in layout option
Describe alternatives you've considered
none
Your Example Website or App
No response
Screenshots or Videos

when you set stencilGraphHeight = 0, the height of the graph is adaptive,moreover, stencil provides resizeGroup method to dynamically resize the group.
but the columns of nodes can not change when I change the graph width, afterall scrollbar is not good experience.

If you need a flexible layout, use dnd to customize it. @jiang-zhong-xi


Include link to build logs in "build failed" comment

When the build fails, the bot user will leave a comment that states that. But because the build was for the testing branch, and not for the pull request branch, there is no single-click way to get from the pull request page to the build logs.
I suspect GitHub will include a detail url with the build status webhook. We can store it, and include it in the comment.

Additionally, we should include instructions on how to proceed. Sometimes a build fails due to a flake somewhere, not because a pull request is broken. In that case, approving again will not trigger a new build, but it is not clear from the message that it does not.


ENH: gammainc to support not regularized lower incomplete gamma function.

Is your feature request related to a problem? Please describe.
No response
Describe the solution you'd like.
It would be nice to add an argument regularized: bool and have the possibility to choose between regularized calculation and not regularized.
Describe alternatives you've considered.
No response
Additional context (e.g. screenshots, GIFs)
No response

@mdhaber you wrote a little about gamma and regularized in https://github.com/data-apis/array-api/issues/725. Any thoughts here?

+1. I imagine this is on the radar of @steppi and @izaid for the new library.

It's on the radar. https://github.com/scipy/scipy/pull/20539 adds normalised Legendre polynomials via a keyword argument, we'd use some of that to add a keyword argument for regularised gamma functions

Thanks @mdhaber and @izaid for your efforts and your quick response on this!  I have continued to try to find potential workarounds, but have been stymied at every turn!  Adding this functionality will unlock my problem.
Not to be a pest, but just to try to manage my own projects, is it possible to know a rough timeline for this?

I'll let the others reply about timeline, but perhaps I can help in the meantime. Can you describe a bit more of what you need? What workarounds are not working? For example, why is numerical integration not working (if it's something you need immediately)? If it's accuracy, why not use mpmath? If speed is the main concern, do you also need high accuracy?

Thanks, @mdhaber .  Yes, the first requirement is to get the unregularised incomplete gamma function, to allow us to consider a < 0.  As i say, this is possible with e.g. sympy or mpmath.  But the second requirement is to have something that we can use with pymc or numpyro, which seem (unless i'm mistaken?) to inherit the scipy gamma function definitions via jax.
I think our alternative is to try to code our own implementation of the unregularised incomplete gamma function using jax, but ... i'm a bit daunted by that prospect!


Still Maintained?

Looks like nothing has changed here in 5+ years. Was wondering if this is still maintained and/or if there are other jsonnet testing frameworks/methodologies to look at? Thanks!

Same I would like to know as well. This project seems to be the only testing framework. I would be open to contributing if this project isnt dead. @yugui lemme know

Our team uses this library at work. At the same time, unfortunately, I don't think it is very popular. Many people are satisfied with just trying manifesting Jsonnet templates.
This repo is not very active just because it satisfies my requirements. I am open to discussions if you have any specific requests.


SwiftUI Previews in Xcode 14 not working while adding the WindowsAzureMessaging dependency

Describe the bug
Xcode Version 14.1 (14B47b) is unable to generate the SwiftUI Preview when adding WindowsAzureMessaging (v3.1.5) reference from GitHub.
Exception or Stack Trace
HumanReadableSwiftError
SettingsError: noExecutablePath(<IDESwiftPackageStaticLibraryProductBuildable:ObjectIdentifier(0x0000600001a52820):'WindowsAzureMessaging'>)
To Reproduce

Start Xcode Version 14.1 (14B47b)
Load a Project referencing from GitHub the WindowsAzureMessaging library
The project will build without errors
Open a fire containing a View
The SwiftUI preview fails with error

Expected behavior
I expect to see the preview of my SwiftUI view
Screenshots

Setup (please complete the following information):

OS: macOS Ventura 13.0.1 (22A400)
IDE : Xcode Version 14.1 (14B47b)
WindowsAzureMessaging 3.1.5

Additional context
The issue I face seems to be similar to this: https://github.com/microsoft/appcenter-sdk-apple/pull/2433

Same problem happened with AppCenter and they fixed it. Hope these links will help to fix this problem.

Removing type: .static fixed problem for me, as I understand every package that contains it will fail previews. I'll create a PR and provide instructions how to fix it for your project until Azure team fixes it by themselves.

I'm really blind and didn't notice existing PR. If someone wants a quick fix of this problem before Azure team will merge it just replace your azure dependency with https://github.com/rafaelcalunga/azure-notificationhubs-ios url and choose main branch.

Thanks @getangar and @menteValidus for the bug report. I added a comment to the related PR and was hoping you'd be willing to comment on it too:
https://github.com/Azure/azure-notificationhubs-ios/pull/134#issuecomment-1422015515
The TL;DR is: it looks like this has been resolved in Xcode 14.2. Could either of you confirm that is the case?

Xcode 14.2 (14C18) solved this issue for my apps


As a user I want to update the component version of a component instance

... if the component has e.g. a new styling

@tilmx You mean you want to reload the preview? Cmd+R should be sufficient. Or maybe I don't get it.

It was meant that if a pattern has changed (via editing in Code editor etc), Alva detects that and reloads the page-element.

This may be a performance-consuming approach, as we would have to poll on all files regularly. Not too recommended.


feat(dependencies): Update k8s dependencies to 19.3. Fixes #4425

Checklist:

[ ] Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this is a chore.
[ ] The title of the PR is (a) conventional, (b) states what changed, and (c) suffixes the related issues number. E.g. "fix(controller): Updates such and such. Fixes #1234".
[ ] My organization is added to USERS.md.
[ ] I've signed the CLA.
[ ] I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
[ ] My builds are green. Try syncing with master if they are not.

This seems like something we want to target for v3. As a result we’d also need to update Argo events.

This seems like something we want to target for v3. As a result we’d also need to update Argo events.

ok, I have started the work for workflows and will take a look at evens when I succeed :). When is the target for v3 @alexec ?

@NikeNano @alexec when is v3 targeted? We also have a blocker dependency on moving to k8s client higher version asap.

@NikeNano when is v3 targeted? We also have a blocker dependency on moving to k8s client higher version asap.

Dont know, I try to look at this form time to time, but a lot of small things that needs to be updated @animeshsingh

v3 is target end of January. We should get this PR into that release.

See #4810

See #4810


PineconeNotFoundError: A call to https://api.pinecone.io/indexes/index1 returned HTTP status 404.

I am using 1.6.3 build and since morning I am not able to connect to my flow. I keep getting this error message when I try to query to my chatbot or upsert.
PineconeNotFoundError: A call to
https://api.pinecone.io/indexes/index1
returned HTTP status 404.
I am not using serverless index. Can someone please help.

Good afternoon
I'm facing an ERROR when connecting Flowise with Pinecone, it apparently doesn't upload the file and doesn't create the indexes
PineconeUnmappedHttpError: An unexpected error occurred while calling the
https://api.pinecone.io/indexes/firstindex
endpoint.
Error: Forbidden
Your client does not have permission to get URL /indexes/firstindex from this server.
Status: 403.
I tested it now by getting the API
{
"statusCode": 500,
"success": false,
"message": "Error: vectorsService.upsertVector - SyntaxError: Unexpected token k in JSON at position 1",
"stack": {}
}
One difference I saw in mentoring training is that now at Pinecone there is no longer the APi Enviroment
Error: vectorsService.upsertVector - Error: PineconeUnmappedHttpError: An unexpected error occurred while calling the https://api.pinecone.io/indexes/firstindex endpoint.   403 Forbidden   Error: Forbidden Your client does not have permission to get URL /indexes/firstindex from this server.
  Status: 403.

did you guys foubd solution?. i am experiencing same issue

should be resolved now with the pinecone version upgrade - https://github.com/FlowiseAI/Flowise/pull/2310
feel free to reopen if issue still persists

Looks like this is happening again!

2024-08-30 07:07:10 [ERROR]: PineconeUnmappedHttpError: An unexpected error occured while calling the https://api.pinecone.io/indexes/gondola-site-gen endpoint.

<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>403 Forbidden</title>

Error: Forbidden

Your client does not have permission to get URL /indexes/gondola-site-gen from this server.

 Status: 403.
Error: PineconeUnmappedHttpError: An unexpected error occured while calling the https://api.pinecone.io/indexes/gondola-site-gen endpoint.

<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>403 Forbidden</title>

Error: Forbidden

Your client does not have permission to get URL /indexes/gondola-site-gen from this server.

 Status: 403.
    at Pinecone_VectorStores.upsert (/usr/local/lib/node_modules/flowise/node_modules/flowise-components/dist/nodes/vectorstores/Pinecone/Pinecone.js:80:27)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async buildFlow (/usr/local/lib/node_modules/flowise/dist/utils/index.js:415:37)
    at async upsertVector (/usr/local/lib/node_modules/flowise/dist/utils/upsertVector.js:126:32)
    at async Object.upsertVectorMiddleware (/usr/local/lib/node_modules/flowise/dist/services/vectors/index.js:9:16)
    at async createInternalUpsert (/usr/local/lib/node_modules/flowise/dist/controllers/vectors/index.js:28:29)
2024-08-30 07:07:10 [ERROR]: [server]: Error: Error: PineconeUnmappedHttpError: An unexpected error occured while calling the https://api.pinecone.io/indexes/gondola-site-gen endpoint.

<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>403 Forbidden</title>

Error: Forbidden

Your client does not have permission to get URL /indexes/gondola-site-gen from this server.

 Status: 403.
Error: Error: PineconeUnmappedHttpError: An unexpected error occured while calling the https://api.pinecone.io/indexes/gondola-site-gen endpoint.

<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>403 Forbidden</title>

Error: Forbidden

Your client does not have permission to get URL /indexes/gondola-site-gen from this server.

 Status: 403.
    at buildFlow (/usr/local/lib/node_modules/flowise/dist/utils/index.js:493:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async upsertVector (/usr/local/lib/node_modules/flowise/dist/utils/upsertVector.js:126:32)
    at async Object.upsertVectorMiddleware (/usr/local/lib/node_modules/flowise/dist/services/vectors/index.js:9:16)
    at async createInternalUpsert (/usr/local/lib/node_modules/flowise/dist/controllers/vectors/index.js:28:29)

Yep, same from this side, getting Error: vectorsService.upsertVector - Error: PineconeNotFoundError: A call to https://api.pinecone.io/indexes/sawzilla-kb-stihl returned HTTP status 404.

Same error as the above, followed same steps and same outcomes as the above comments.

This happens almost once every 24h for my setup. A restart of flowise resolves it, but it is utterly annoying.

Also seeing this problem.


highlight color and occurrence color are alike

When I highlight a word (material dark), the color of occurrence is the same, this makes it difficult to tell them apart. Line 6 is the actual highlight and the rest are occurrences. I tried to look for the theme file to tweak the settings, but I was unable to find it in the user folder or the installation folder.

I'm starting to realized the initial port was a bit of a hack job that I missed alot of things. I intend to do some work this weekend to fix this and a couple of other differences between the original. I'll update once I push a commit to fix this. Thanks for the issue, sorry about the delay in response.

No worries, the theme is the best so far, a few rough edges can be
smoothened out over time.
On Dec 8, 2016 1:45 AM, "Jarvis Prestidge"<EMAIL_ADDRESS>wrote:

I'm starting to realized the initial port was a bit of a hack job that I
missed alot of things. I intend to do some work this weekend to fix this
and a couple of other differences between the original. I'll update once I
push a commit to fix this. Thanks for the issue, sorry about the delay in
response.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/JarvisPrestidge/vscode-material-theme/issues/1#issuecomment-265697631,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKgn2o_G391MMiLrt1GXdAVXAwPnrJZcks5rF9HEgaJpZM4LDBEN
.

@mcrajah I suggest you to try the original Material Theme for VSC
https://github.com/equinusocio/vsc-material-theme

@equinusocio  I approve this message!


imageCrop portrait/landscape - fill longest side

It is possible to fill the stage width for an image with imageCrop: 'width'. This works correctly with an landscape image, but if you load a portrait image it will fill the width, and you will loose most of the picture, something that is not desirable.
I propose an imageCrop parameter called "longest", that will fill the longest side of the image. So a landscape image will fill the width, and a portrait image will fill the height.

This was fixed with the new 'landscape' option in imageCrop.


403 Forbidden

[Enter feedback here]
nginx installed properly.
opening my ip address shows 'welcome on nginx'
after the last step (installing WP) and call : myipadrees/wordpress :
I got the issue 403 Forbidden, what setting am I missing

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 937f2d29-c487-7806-9021-a00bbb198303
Version Independent ID: 5eecf6c4-ee12-a2e4-bb1e-0d78334f3c37
Content: Tutorial - Deploy LEMP on a Linux virtual machine in Azure - Azure Linux Virtual Machines
Content Source: articles/virtual-machines/linux/tutorial-lemp-stack.md
Service: virtual-machines-linux
GitHub Login: @cynthn
Microsoft Alias: cynthn

@fanioz Thanks for the feedback! We are currently investigating and will update you shortly.

@fanioz The 403 Forbidden error means that your server is working, but you no longer have permission to view all or some of your site for some reason. Can you please provide the full error which you are getting while accessing the Wordpress ?
Moreover if you can provide me with your /etc/nginx/sites-available/default file by removing your public Ip Address from it that will help me to assist you further on the issue.
You can confirm the same from your side as well if you have added index index.php in the /etc/nginx/sites-available/default config. file since that won't be added in the script by default and we do need to do some changes manually as mentioned in the reference article.
You can either paste the script directly to the /etc/nginx/sites-available/default file and save it or you can make the required changes in the default files as per the documentation.

after vm deployment using Ubuntu 16.04 LTS

follow configuration from tutorial page:  /etc/nginx/sites-available/default
        location ~ \.php$ {
                include snippets/fastcgi-php.conf;
        #
        #       # With php7.0-cgi alone:
        #       fastcgi_pass <IP_ADDRESS>:9000;
        #       # With php7.0-fpm:
                fastcgi_pass unix:/run/php/php7.2-fpm.sock;
        }

got 403 forbidden page.
and then replace config with php7.0
        location ~ \.php$ {
                include snippets/fastcgi-php.conf;
        #
        #       # With php7.0-cgi alone:
        #       fastcgi_pass <IP_ADDRESS>:9000;
        #       # With php7.0-fpm:
                fastcgi_pass unix:/run/php/php7.0-fpm.sock;
        }

now everything is ok 👍

@fanioz Glad to hear that your issue is resolved.  We will now close this issue.


[Databag]/[Databag Item]  is not encrypted with your public key.  Contact an administrator of the vault item to encrypt for you!

Created Vault using
knife vault create databag_name databag_item -J databag_file.json -A root --mode client
Created Chef Vault using Chef Server user - root.
Able to create databag item successfully, without issues. Encryoted using root.pem file.
Created a recipe with the below details:

include_recipe 'chef-vault'
mydata = ChefVault::Item.load('databag_name', 'databag_item')
Chef::Log.info("The decrypted password is '#{mydata['username']}' ")

Uploaded the cookbook and ran chef-client.
This is throwing the error :
[Databag]/[Databag Item]  is not encrypted with your public key.  Contact an administrator of the vault item to encrypt for you!
I am not sure where i have made a mistake.
Please suggest!!

You encrypted the bag for your user, but not for any nodes.  Nodes have their own client identities with public keys (stored on the chef server) and private keys (stored in /etc/chef/client.pem).
You need to use '-S SOLR_QUERY' to search for clients so that they can decrypt the vault item.  You can use that at vault creation time, but having created the vault you can pass it to 'knife vault update' to change the query used to find clients.

Checking in the data bag with a dummy check in should also solve this problem. That will re run the knife search role again and so, the client(in this case, node is the client) will be able to find the databag.

@jf647 Hi am also facing same error is there any knife command which can be used to import public key of my client to my data bag item?


Etternagame suggestion

Button Delete in order to delete pack in etternagame;
2)switch in settings for switching rendering between d3d and opengl( Someone is better suited to opengl for its graphics adapter and theme);

connect old cpp libraries for old pc (cross-platform). Some still use winxp, and cannot install new cpp libraries. Do not play them in stepmania:3
4)bind the rgb panel to change the color of the interface, it’s more convenient)
5)Voice chat in multiplayer

I'll address these and ask that you edit and reopen this if you wish for them to remain.

We removed a functionality to delete songs from the game at some point because it seemed redundant with literally going to the song folder and deleting it yourself. It could be readded.
This makes sense to add, but would only be useful for Windows because d3d is not an option on Linux and Mac.
We don't support Windows XP, and neither should the rest of the world.
Done. I think?
Having a voice chat feature in a rhythm game would probably be something exclusive to us out of every rhythm game which is kind of interesting, but the utility or interest of that intersecting with the already low existing interest in multiplayer is not motivating. In addition, this is hard to implement, and if we did put it on a roadmap it would go behind a list of things to do so long it would literally never be done.


add PKMs and vscode-nvim

Add a section with 2 Personal Knowledge Management (PKM) Tools, and an alternative to the normal VSCode Vim Plugin.

Great contributions, thank you!


xst: 0.7.2 -> <IP_ADDRESS>

Motivation for this change
Update, old one had memory leaks.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

1 package built:
xst


Update project-21-The_OSU_ChemEs.md

@Farshudsor thanks! Can you also provide a link to a social media post? (E.g., LinkedIn)

@Farshudsor as we talked about, I'll make an exception about the social media post. Thanks!


Implement edit and delete feature for admin

Linked to and addressed by branch feature/add-clickable-table-rows-to-admin-view.

Probably merge this with feature/add-admin-auth first, before merging to main, so we can update the rowClick() function and test it all out.


Add a filter option for file watching

From slack (braxton and johnrazmus): It appears some editors (phpstorm/jetbrains) do funky things when files get modified. We should add an option to ignore watching changes to these filtered files.
Proposed config name: fs_watcher_filter

This would be greatly appreciated - local dev does infinite file change feedback loops all day, every day - on one of the most popular IDEs.
Sanity slowly fading...

Hi ya'll. I was trying to tackle this one because I'm having similar trouble to @johnrazmus. @glinton I was wondering if you had a recommendation on dealing with the following for now:
:::::::::::::::::::::::::::::::::::::::::::::::::::::::: INVALID BOXFILE.YML !!!

    Oops, it looks like a few issues need to be resolved in your boxfile.yml
    before we can continue. Please correct the following issues and try again:

    ---
    run.config:
      fs_watcher_filter: "Invalid node"

    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

I'm not sure I can find where the validation is happening anywhere in the code or other related packages. Perhaps its happening externally?
I think I can temporarily hack around this to move forward in any case.

Hey again - so it looks like this is happening in /opt/nanobox/hooks/boxfile and I don't think I can find this source in any of the repositories. I'm going to stash my work on the fs_watcher_filter option for now since I just need a small tweak (line 122 in notify.go strings.HasPrefix(name, "_") || is my problem). Plus I see ya'll are working hard on the other CLI nbx and nbx.yml. If help is still needed on this front with the new CLI I'm happy to start on this again. Excited for the new tools!


Stop modifying global config

because it can effect tests which will be executed afterwards.

Merged into master, 2.10, 2.9.


Introducing packages

This PR introduces packages to expose the api and hide internal classes and components.
I moved the core components into +siibra/+core/ and some utility functions and classes into +siibra/+internal, addressing #6.
The entry point functions are top level in +siibra, e.g. atlas.m.
Besides that I addressed the feedback you gave in the call.
I updated the examples so that the changes in the usage are visible.
Some highlights

no siibra = Siibra() anymore
human_atlas = siibra.atlas("human")
parcellation = siibra.parcellation("human", "julich 2.9")

@valentin-pinkau Great to see, I think this is definitely headed in the right direction!

I had to smile (😀) because I had previously landed on the pattern of having singular and plural form functions for the Brain Observatory Toolbox.
This still appeals to me as a developer! But over time we came to using verb form function names. One reason was user feedback preferring clarity over brevity. Another reason was handling the case of object array construction, which gets awkward with a singular function name.
For siibra, the "plural" function is simply listing the available items. Here I would suggest the verb "view", e.g. viewAtlases and so forth.
For the object creation functions, if we think we'll never ever create an object array, then the singular function names could be okay as is. But probably a verb is better :) One reason is to help clearly distinguish function compared to the viewXXX functions. Another reason is it helps group the related functions alphabetically in the directory listing.
I would suggest the verb "get" for object creation functions, e.g. getAtlas(). This matches a typical MATLAB style: use "get" for creation functions rather than say property access as in Java.

Might consider a more descriptive subpackage name than +core, such as +item .

@vijayiyer05 @dickscheid Thank you for your reviews!
I addressed most of your feedback and I think you can have another look!


finalise new API

Having a single command to run an analysis is better I think. Simpler.
Option 1
model = ModelHierarchicalME(...
	DataClass(datapath, 'files', allFilesInFolder(datapath, 'txt')),...
	'saveFolder', 'analysis_with_hierarchical_magnitude_effect',...
	'pointEstimateType','median',...		% {'mean', 'median', 'mode'}
	'sampler', 'jags',...					% {'jags', 'stan'}
	'shouldPlot', 'no',...					% {'no', 'yes'}
	'mcmcSamples', 10^4,...
	'chains', 3,...
	'burnin', 1000);

Option 2
One main analysis function/class, and the analysis model is passed in as an argument
% POSSIBLE NEW API 2
model = discountingAnalysis(...
	DataClass(datapath, 'files', allFilesInFolder(datapath, 'txt')),...
	'model', 'ModelHierarchicalME',...
	'saveFolder', 'analysis_with_hierarchical_magnitude_effect',...
	'pointEstimateType','median',...		% {'mean', 'median', 'mode'}
	'sampler', 'jags',...					% {'jags', 'stan'}
	'shouldPlot', 'no',...					% {'no', 'yes'}
	'mcmcSamples', 10^4,...
	'chains', 3,...
	'burnin', 1000);

Option 1 is currently implemented. However Option 2 gives extra flexibility been the command and the running of the models. For example, discountingAnalysis could even inspect the data provided and provide commentary on suitable models. Or even run multiple models on the same data. If I do this, then model can be an optional parameters.

I think for the moment, option 1 is best. Option 2 tries to be infinitely extendable for doing more complex things (e.g. repeated measures / multiple model fits etc). But we are not there at this point, so it would be artificially constraining.
Option 1 forms a nice, robust, extendible way of calling an analysis. Let's leave it at that for the moment


[Feature] After opening a project the map should focus on the project area

Currently when you open a project the map opens on Mali (presumably this is the centre point on a world map). It would be good if the map opened where the project was located e.g. zoomed in on any location pins on that map - that would save the user having to scroll and zoom to find their project's location.

Our current assumption is that users will be mostly in the place where they will be collecting data. I thought I had file a bug about this but I can't find it; I probably only added a TODO in the code. Filed #383 to track.

Closing this issue since it's roughly a dupe of #383.


AzureData - No way to add our own type adapters to Gson

Could you expose a way for us to add our own type adapters to the the gson instance used by the library?
 I'm sure there are other uses where it would or could be useful.

Fixed in #72
@skela Can you review and see if this handles your concerns?  Added an optional callback during .configure() that will allow you to do anything you want to the GsonBuilder


Performance Test Result document missing in test/ folder

Description
The Performance Test Result document is missing from the test/ folder. This document is essential for logging and analyzing the drone's performance during various tests such as flight duration, motor efficiency, and component temperatures.
Expected Behavior

A performance_test_results.md file should exist in the test/ folder, documenting detailed test results, including:

Motor thrust data
Battery performance
Temperature readings during flight
Flight duration logs

issue resolved #6


v1.1.0-dev

Feature testing only needed on this release. Test notes in #85.

Testing passed and logged in #85


OpenCV 4.0 couldn't be used from python 3.7 because a symbolic link was missing.

I built the Dockerfile and tried to execute  python -c "import cv2; print(cv2.__version__)" .
Though I got error.
Finally, I found a symbolic link was missing, and Added it.
Actually, I do not know if hard cording cv2.cpython-37m-x86_64-linux-gnu.so is allowed, though this modification fixed my issue.
Thank you.

see https://hub.docker.com/r/gorogoroyasu/docker-python3-opencv/ .
it was built by using the same modification as this branch, it was succeeded in executing the command python -c "import cv2; print(cv2.__version__)".

Thanks!

Its working perfectly, safe to close!


chore(main): release 3.3.2

:robot: I have created a release beep boop
3.3.2 (2024-08-23)
Bug Fixes

fix: Correct row of annotations when foldings exist (565f0c6)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

v3.3.2
:sunflower:


Failed: Update autorest version to prerelease 3.0.0-alpha.20240521.1

Triggered from pull request: https://github.com/Azure/autorest.csharp/pull/4707

API change check
API changes are not detected in this pull request.


JToken deserialization not working if DTO namespace is obfuscated

We are using JToken deserialization from JSON to object in our project:
string jsonFile = File.ReadAllText("path/to/file.json");
JObject jObject = JObject.Parse(jsonFile);
JToken jToken = jObject.SelectToken("path.to.token");
CustomObject customObject = jToken.ToObject<CustomObject>();

Our custom DTO objects are defined in the DTO namespace,
With the default configuration in obfuscar.xml, the deserialized objects are empty:
<?xml version='1.0'?>
<Obfuscator>
  <Var name="InPath" value=".\in\path" />
  <Var name="OutPath" value=".\out\path" />
  <Var name="KeepPublicApi" value="false" />
  <Var name="HidePrivateApi" value="true" />
  <Module file="$(InPath)\program.dll" />
</Obfuscator>

We are only able to make it work if we skip the DTO namespace where the object classes are defined:
<?xml version='1.0'?>
<Obfuscator>
  <Var name="InPath" value=".\in\path" />
  <Var name="OutPath" value=".\out\path" />
  <Var name="KeepPublicApi" value="false" />
  <Var name="HidePrivateApi" value="true" />
  <Module file="$(InPath)\program.dll">
    <SkipNamespace name="DTO" />
  </Module>
</Obfuscator>

Is there any way we can make the JToken serialization/deserialization work without excluding the DTO namespace?

Obfuscar itself won't be able to help. You might utilize serialization attributes to add more metadata for the runtime to know which properties to map a value to. Without such, by default the runtime uses name matching, which any obfuscation tool would break.

Yes, finally we managed to make it work by adding the JsonProperty attribute and specifying each PropertyName the following way:
public class CustomObject
{
    [JsonProperty(PropertyName = "Property01")]
    public CustomProperty01 Property01 { get; set; }

    [JsonProperty(PropertyName = "Property02")]
    public CustomProperty02 Property02 { get; set; }
}

Thanks a lot for your help Lex! The issue can be closed.


when i rotation horizontal your device and lock this window, then feature Front camera not scan.

I also have this issue.

Hi, @congtham
Could you be more specific about this issue? What're the steps to reproduce it?

When i open front camera for face detection and rotate me phone horizontally, it does not show a box with details around it.

Ok, but the face is recognized?


DXVK 1.1.1 broke "hacky" MoltenVK support..

until recently DXVK+MoltenVK was working..
but now using latest MoltenVK 1.0.35 with the "known patches" for getting MoltenVK support i.e. advertising:
 _features.shaderCullDistance = true;
 _features.geometryShader = true;
 _features.logicOp = true;

at least d3d11-triangle was working OK..
since DXVK 1.1.1 it fails:
[mvk-error] VK_ERROR_FEATURE_NOT_PRESENT: vkCreateEvent(): Vukan events are not supported.
err:   DXVK: Failed to create query reset event

as MoltenVK doesn't support event APIs like: vkCreateEvent..
I'm in doubt if it DXVK version>1.1 uses events (vkCreateEvent()) unconditionally or if it's because since recently MoltenVK exposes VK_EXT_host_query_reset and in that case it calls vkCreateEvent..
What's the recommended path asking to MoltenVK devs to support event calls or some fix in DXVK for MoltenVK case..
thanks..

So, are you using a MoltenVK version that supports VK_EXT_host_query_reset? Why not post the DXVK logs?
Note that event queries still require Vulkan events, so anything using those isn't going to work.

yes it supports VK_EXT_host_query_reset as I'm using MoltenVK compiled from master yesterday (so it reports 1.0.35).. and since 1.0.34 VK_EXT_host_query_reset is supported..
See:
https://github.com/KhronosGroup/MoltenVK/releases/tag/v1.0.34
"Support the VK_EXT_host_query_reset extension."
I attach full log below altough is not much use (also DXVK log is mixed with MoltenVK log)..
we need also:
export MVK_CONFIG_FULL_IMAGE_VIEW_SWIZZLE=1
with that DXVK 1.0 for ex runs:

but with DXVK 1.1.1 I get log:
wine d3d11-triangle
info:  Game: d3d11-triangle.exe
info:  DXVK: v1.1.1
warn:  OpenVR: Failed to locate module
info:  Enabled instance extensions:
info:    VK_KHR_get_physical_device_properties2
info:    VK_KHR_surface
info:    VK_KHR_win32_surface
[mvk-info] MoltenVK version 1.0.35. Vulkan version 1.0.106.
	The following 33 Vulkan extensions are supported:
		VK_KHR_16bit_storage v1
		VK_KHR_8bit_storage v1
		VK_KHR_bind_memory2 v1
		VK_KHR_dedicated_allocation v3
		VK_KHR_descriptor_update_template v1
		VK_KHR_get_memory_requirements2 v1
		VK_KHR_get_physical_device_properties2 v1
		VK_KHR_get_surface_capabilities2 v1
		VK_KHR_image_format_list v1
		VK_KHR_maintenance1 v2
		VK_KHR_maintenance2 v1
		VK_KHR_maintenance3 v1
		VK_KHR_push_descriptor v2
		VK_KHR_relaxed_block_layout v1
		VK_KHR_sampler_mirror_clamp_to_edge v1
		VK_KHR_shader_draw_parameters v1
		VK_KHR_shader_float16_int8 v1
		VK_KHR_storage_buffer_storage_class v1
		VK_KHR_surface v25
		VK_KHR_swapchain v70
		VK_KHR_swapchain_mutable_format v1
		VK_KHR_variable_pointers v1
		VK_EXT_debug_report v9
		VK_EXT_host_query_reset v1
		VK_EXT_memory_budget v1
		VK_EXT_shader_viewport_index_layer v1
		VK_EXT_vertex_attribute_divisor v3
		VK_EXTX_portability_subset v1
		VK_MVK_macos_surface v2
		VK_MVK_moltenvk v20
		VK_AMD_gpu_shader_half_float v1
		VK_AMD_negative_viewport_height v1
		VK_NV_glsl_shader v1
[mvk-error] VK_ERROR_INCOMPATIBLE_DRIVER: Request for Vulkan version 1.1.0 is not compatible with supported version 1.0.106.
[mvk-info] GPU device:
		model: AMD Radeon RX Vega 64
		type: Discrete
		vendorID: 0x1002
		deviceID: 0x687f
		pipelineCacheUUID: 00002733-0000-2715-C125-BBD2482815F2
	supports Metal Shading Language version 2.1 and the following Metal Feature Sets:
		macOS GPU Family 2 v1
		macOS GPU Family 1 v4
		macOS GPU Family 1 v3
		macOS GPU Family 1 v2
		macOS GPU Family 1 v1
[mvk-info] Created VkInstance with the following 3 Vulkan extensions enabled:
		VK_KHR_get_physical_device_properties2 v1
		VK_KHR_surface v25
		VK_MVK_macos_surface v2
004a:err:vulkan:wine_vkCreateInstance Failed to create instance, res=-9
warn:  Failed to create Vulkan 1.1 instance, falling back to 1.0
[mvk-info] MoltenVK version 1.0.35. Vulkan version 1.0.106.
	The following 33 Vulkan extensions are supported:
		VK_KHR_16bit_storage v1
		VK_KHR_8bit_storage v1
		VK_KHR_bind_memory2 v1
		VK_KHR_dedicated_allocation v3
		VK_KHR_descriptor_update_template v1
		VK_KHR_get_memory_requirements2 v1
		VK_KHR_get_physical_device_properties2 v1
		VK_KHR_get_surface_capabilities2 v1
		VK_KHR_image_format_list v1
		VK_KHR_maintenance1 v2
		VK_KHR_maintenance2 v1
		VK_KHR_maintenance3 v1
		VK_KHR_push_descriptor v2
		VK_KHR_relaxed_block_layout v1
		VK_KHR_sampler_mirror_clamp_to_edge v1
		VK_KHR_shader_draw_parameters v1
		VK_KHR_shader_float16_int8 v1
		VK_KHR_storage_buffer_storage_class v1
		VK_KHR_surface v25
		VK_KHR_swapchain v70
		VK_KHR_swapchain_mutable_format v1
		VK_KHR_variable_pointers v1
		VK_EXT_debug_report v9
		VK_EXT_host_query_reset v1
		VK_EXT_memory_budget v1
		VK_EXT_shader_viewport_index_layer v1
		VK_EXT_vertex_attribute_divisor v3
		VK_EXTX_portability_subset v1
		VK_MVK_macos_surface v2
		VK_MVK_moltenvk v20
		VK_AMD_gpu_shader_half_float v1
		VK_AMD_negative_viewport_height v1
		VK_NV_glsl_shader v1
[mvk-info] GPU device:
		model: AMD Radeon RX Vega 64
		type: Discrete
		vendorID: 0x1002
		deviceID: 0x687f
		pipelineCacheUUID: 00002733-0000-2715-C125-BBD2482815F2
	supports Metal Shading Language version 2.1 and the following Metal Feature Sets:
		macOS GPU Family 2 v1
		macOS GPU Family 1 v4
		macOS GPU Family 1 v3
		macOS GPU Family 1 v2
		macOS GPU Family 1 v1
[mvk-info] Created VkInstance with the following 3 Vulkan extensions enabled:
		VK_KHR_get_physical_device_properties2 v1
		VK_KHR_surface v25
		VK_MVK_macos_surface v2
info:  AMD Radeon RX Vega 64:
info:    Driver: 0.2.1843
info:    Vulkan: 1.0.106
info:    Memory Heap[0]:
info:      Size: 8176 MiB
info:      Flags: 0x1
info:      Memory Type[0]: Property Flags = 0x1
info:      Memory Type[1]: Property Flags = 0xb
info:      Memory Type[2]: Property Flags = 0xf
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_11_0
info:  D3D11CoreCreateDevice: Using feature level D3D_FEATURE_LEVEL_11_0
info:  Enabled device extensions:
info:    VK_EXT_shader_viewport_index_layer
info:    VK_EXT_vertex_attribute_divisor
info:    VK_KHR_dedicated_allocation
info:    VK_KHR_descriptor_update_template
info:    VK_KHR_get_memory_requirements2
info:    VK_KHR_image_format_list
info:    VK_KHR_maintenance1
info:    VK_KHR_maintenance2
info:    VK_KHR_sampler_mirror_clamp_to_edge
info:    VK_KHR_shader_draw_parameters
info:    VK_KHR_swapchain
004a:fixme:vulkan:wine_vk_device_convert_create_info Application requested a linked structure of type 0x3b9db032.
[mvk-info] Created VkDevice to run on GPU AMD Radeon RX Vega 64 with the following 11 Vulkan extensions enabled:
		VK_KHR_dedicated_allocation v3
		VK_KHR_descriptor_update_template v1
		VK_KHR_get_memory_requirements2 v1
		VK_KHR_image_format_list v1
		VK_KHR_maintenance1 v2
		VK_KHR_maintenance2 v1
		VK_KHR_sampler_mirror_clamp_to_edge v1
		VK_KHR_shader_draw_parameters v1
		VK_KHR_swapchain v70
		VK_EXT_shader_viewport_index_layer v1
		VK_EXT_vertex_attribute_divisor v3
info:  DXVK: Read 0 valid state cache entries
info:  DXVK: Using 2 compiler threads
[mvk-info] vkCreate_PLATFORM_SurfaceMVK(): You are not calling this function from the main thread. PLATFORM_VIEW_CLASS should only be accessed from the main thread. When using this function outside the main thread, consider passing the CAMetalLayer itself in Vk_PLATFORM_SurfaceCreateInfoMVK::pView, instead of the PLATFORM_VIEW_CLASS.
info:  Presenter: Actual swap chain properties:
  Format:       VK_FORMAT_B8G8R8A8_SRGB
  Present mode: VK_PRESENT_MODE_IMMEDIATE_KHR
  Buffer size:  632x453
  Image count:  2
[mvk-info] Created 2 swapchain images with initial size (632, 453).
info:  Presenter: Actual swap chain properties:
  Format:       VK_FORMAT_B8G8R8A8_SRGB
  Present mode: VK_PRESENT_MODE_IMMEDIATE_KHR
  Buffer size:  1024x600
  Image count:  3
[mvk-info] Created 3 swapchain images with initial size (1024, 600).
[mvk-error] VK_ERROR_FEATURE_NOT_PRESENT: vkCreateEvent(): Vukan events are not supported.
err:   DXVK: Failed to create query reset event
wine: Unhandled page fault on execute access to 0x00000000 at address 0x0 (thread 004f), starting debugger...
Unhandled exception: page fault on execute access to 0x00000000 in 64-bit code (0x0000000000000000).
Register dump:
 rip:0000000000000000 rsp:000000000117fb48 rbp:0000000000000000 eflags:00010246 (  R- --  I  Z- -P- )
 rax:00000000005244a0 rbx:000000000053bf40 rcx:0000000000075f80 rdx:0000000000000000
 rsi:0000000000570ed0 rdi:0000000000000000  r8:0000000000000000  r9:0000000000000001 r10:0000000000000001
 r11:0000000000000202 r12:0000000000000000 r13:00000000005434d8 r14:0000000000557bc0 r15:0000000000557e50
Stack dump:
0x000000000117fb48:  000000006a3c3e7a<PHONE_NUMBER>543490
0x000000000117fb58:<PHONE_NUMBER>543cf0<PHONE_NUMBER>000000
0x000000000117fb68:<PHONE_NUMBER>557e50<PHONE_NUMBER>000400
0x000000000117fb78:  000000006a3b489f<PHONE_NUMBER>000000
0x000000000117fb88:<PHONE_NUMBER>000000<PHONE_NUMBER>000000
0x000000000117fb98:<PHONE_NUMBER>000000<PHONE_NUMBER>000000
0x000000000117fba8:<PHONE_NUMBER>000000<PHONE_NUMBER>5434d8
0x000000000117fbb8:<PHONE_NUMBER>000000<PHONE_NUMBER>544598
0x000000000117fbc8:<PHONE_NUMBER>17fd80<PHONE_NUMBER>17fd70
0x000000000117fbd8:  000000006a3c3ffd<PHONE_NUMBER>000009
0x000000000117fbe8:  000000006a3b06e9<PHONE_NUMBER>000000
0x000000000117fbf8:<PHONE_NUMBER>543490<PHONE_NUMBER>000000
Backtrace:
=>0 0x0000000000000000 (0x0000000000000000)
0x0000000000000000: -- no code accessible --
Modules:
Module	Address					Debug info	Name (17 modules)
PE	          400000-          4e0000	Deferred        d3d11-triangle
PE	        401e0000-        401e4000	Deferred        vulkan-1
PE	        40550000-        40554000	Deferred        winevulkan
PE	        40590000-        40594000	Deferred        version
PE	        405d0000-        405d4000	Deferred        imm32
PE	        42150000-        4222a000	Deferred        user32
PE	        423c0000-        423c4000	Deferred        gdi32
PE	        42560000-        42564000	Deferred        advapi32
PE	        42600000-        42604000	Deferred        msvcrt
PE	        43810000-        43814000	Deferred        rpcrt4
PE	        43960000-        43964000	Deferred        winemac
PE	        6a340000-        6a58b000	Deferred        d3d11
PE	        6f200000-        6f384000	Deferred        dxgi
PE	        7b410000-        7b469000	Deferred        kernel32
PE	        7bc10000-        7bc14000	Deferred        ntdll
ELF	        7bf00000-        7bf03000	Deferred        <wine-loader>
PE	       180000000-       180404000	Deferred        d3dcompiler_47
Threads:
process  tid      prio (all id:s are in hex)
00000008 NewColossus_x64vk.exe
	00000034   -1
	00000033   -1
	00000031    2
	00000030    2
	0000002f    0
	0000002e    0
	0000002d    2
	0000002c    2
	0000002b    2
	0000002a   -1
	00000029    0
	00000009    0
0000000e services.exe
	00000020    0
	0000001b    0
	00000013    0
	00000010    0
	0000000f    0
00000011 winedevice.exe
	00000018    0
	00000017    0
	00000016    0
	00000012    0
00000019 plugplay.exe
	0000001d    0
	0000001c    0
	0000001a    0
0000001e winedevice.exe
	00000025    0
	00000022    0
	00000021    0
	0000001f    0
00000023 explorer.exe
	00000028    0
	00000027    0
	00000026    0
	00000024    0
00000049 (D) Z:\Users\oscar\21\dxvk\dxvk-1.1.1\x64\d3d11-triangle.exe
	0000004f    0 <==
	0000004e    0
	0000004d    0
	0000004c   -2
	0000004b   -2
	0000004a    0
System information:
    Wine build: wine-3.18-50-ga303f9cd10
    Platform: x86_64
    Version: Windows 7
    Host system: Darwin
    Host version: 18.6.0

DXVK logs attached below as you requested but just a question:
is there any mechanism to force DXVK not using an optional VK extension altough supported by Vulkan driver.. like VK_EXT_host_query_reset.. i.e. similar as to DXVK allows overriding GPU vendor/device id and device name.. can ask if not to MoltenVK devs a mechanism to hide exposed/supported extensions..
Here DXVK logs:
d3d11-triangle_d3d11.log
d3d11-triangle_dxgi.log

DXVK 1.1 has a new query implementation that relies on Vulkan Events.
You'll have to implement those in MoltenVK.

Ok guess can close now..

[mvk-error] VK_ERROR_INCOMPATIBLE_DRIVER: Request for Vulkan version 1.1.0 is not compatible with supported version 1.0.106.

1.0.106 not a typo ? 1.1.106 maybe? Just wondering.

no MoltenVK support is 1.0 right now..
things like subgroup ops missing or some other VK 1.1 ext..
this is no problem for DXVK 1.0 working

@K0bin it doesn't rely on Vulkan events if the extension is supported.
@oscarbg your issue is that while your MoltenVK seems to support the extension, your wine doesn't (among a ton of other extensions that seem to be missing).

@doitsujin yep updated to Wine 4.9 and now works.. false alarm.. sorry for wasting your time :-(

Support for Vulkan Events just dropped in MoltenVK btw:
https://github.com/KhronosGroup/MoltenVK/issues/192#issuecomment-520115778


Error render client side dynamic component

Version
2.3.4
Reproduction link
https://jsfiddle.net/50wL7mdz/50977/
Steps to reproduce
in link reproduction - worked
I think not working on me because i use webpack - i dont now
I use nuxt js
on server side - this good worked, but on the client-side i have error
[Vue warn]: You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.
[Vue warn]: The client-side rendered virtual DOM tree is not matching server-rendered content. This is likely caused by incorrect HTML markup, for example nesting block-level elements inside , or missing . Bailing hydration and performing full client-side render.
What is expected?
i want no errors
What is actually happening?
I have error and in browser not rendered myComponent

Hi, thanks for your interest but Github issues are for bug reports and feature requests only. You can ask questions on the forum, the official chat, or StackOverflow.

close
i found fix
in webpack config
resolve: {
alias: {
vue: 'vue/dist/vue.js'
}
}


Fixed LOG style errors

This PR fixes a few merging errors after #5620 was merged

@SchrodingersGat this can be merged - the only things that are not passing are exchange rate errors.

@matmair those checks are required. For now, can you please update the PR and comment out the exchange rate check? We will need to work out an alternative solution

@SchrodingersGat this can be merged now - a fix for exchange rates is in #5632


fix(explore): Adhoc columns don't display correctly

SUMMARY
Fix adhoc columns not displaying properly. When user added an adhoc column the label was blank and on click an empty popover was showing up instead of prefilled with custom sql.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before:

After:

TESTING INSTRUCTIONS

Add an adhoc column
Verify that it displays correctly
Click on the column to edit
Verify that popover opens on Custom SQL tab with column's sql expression prefilled

ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Required feature flags:
[ ] Changes UI
[ ] Includes DB Migration (follow approval process in SIP-59)

[ ] Migration is atomic, supports rollback & is backwards-compatible
[ ] Confirm DB migration upgrade and downgrade tested
[ ] Runtime estimates and downtime expectations provided

[ ] Introduces new feature or API
[ ] Removes existing feature or API

🏷 preset:2022.29


Changed package name for MariaDB Galera

in file: roles/mariadb/defaults/main.yml
from: mariadb-server-galera
to: mariadb-galera-server
I think the 'to' name is correct, the 'from' package does not exists.
At least the playbook applies correctly.
-Derik.

Thank you for your patch. We're using git reviews instead of pull requests, this is why we probably missed the patch here. Are you familiar with the process around git-review?

Personally, I feel the git review process is much more lightweight than git pull requests.
Nevertheless, thank you for your contribution, I took the freedom to submit it via
https://review.rdoproject.org/r/#/c/13326/1


Update README

Added instructions on how to check whether a user belongs to a group.
Method inGroup of the User class: https://github.com/wintercms/storm/blob/6855ef4280d2587367f6127a2bd56a89e727e490/src/Auth/Models/User.php#L376-L390

@WebVPF why did you close this?

@LukeTowers This doesn't work and throws an error:

Error: Call to a member function getKey() on string in /vendor/winter/storm/src/Auth/Models/User.php:384

It's expecting a Group instance, not a string key: * @param Group $group


🎛 Migrate conditional fields logic to use Stimulus controller w-cond

ℹ Part of the Stimulus 🎛 RFC 78

Is your proposal related to a problem?
We currently have two (potentially more) implementations of conditional fields JavaScript logic in Wagtail.
1. filtered-select
This jQuery implementation, driven by Python code, sets up a way for one select field to modify the available options in another select field.

2. image-url-generator
This jQuery implementation conditionally enables/disables three inputs fields based on the selection in the first (filter) field. This code does a few more things, but this issue's focus is on the conditional logic aspect.

Finally, there is a long-standing request for the building blocks for conditional fields in the Admin - https://github.com/wagtail/wagtail/issues/2172
It's proposed that we move the above two implementations to a Stimulus / vanilla JS solution that builds out a starting point for conditional fields in Wagtail's admin. Not only will this mean less jQuery (long term goal) but also avoids two implementations of code that do very similar things at their core.
Describe the solution you'd like
Build out a new CondController (up for name suggestions, ControlController felt odd, ConditionalController felt too long). This controller will have the ability to show/hide or enable/disable targets based on the data within the form or a sub-section of a form's values.
We should be able to keep the 'logic' attributes on the elements that get restricted, not on the container (e.g. the form) or on the elements that do the restricting.
Said another way, if select field A's values determine the visibility of input B, input B should be the element that declares this in its attributes.
We should avoid, where possible, major changes to the reporting widgets FilteredSelect (wagtail/admin/widgets/filtered_select.py) in Python, aside from a few data attribute changes. This logic is quite complex and robust, we merely want to change the JS that uses this logic output in the HTML.
We should not try to solve all potential problems and edge cases of conditional fields, nor do we want to build a full DSL, this space can be complex. We simply want to start with the ability to check another field's value and act accordingly. No fuzzy matching or nested boolean logic.
Describe alternatives you've considered

Leave code as is.
Avoid this pattern completely, maybe we just opt for simpler HTML validation of forms and let 'invalid' options just be ignored or show an error state? Maybe try to use OptionGroup (HTML) or some other pattern to communicate the UI items to the user.
Opt for a CSS only solution, in theory it could be possible if the fields were set up as siblings, but it would not have the ability to actually disable a field (bad for accessibility), only hide fields/options. Also would be risky for mobile devices (hiding select options with CSS is not necessarily supported in native select fields), we could convert these all to radio fields though.

Additional context

This is part of a larger goal to migrate to Stimulus and support CSP compliance.
Some other implementations of conditional field logic in JS

https://github.com/bomsn/mf-conditional-fields - fully featured, config driven, conditional fields with nested logic
https://stevenwanderski.github.io/conditional-field/ - jQuery util that instantiates with a config object
https://codepen.io/renvrant/pen/ogeeBY/ - nice codepen that has a simple data attributes approach
https://github.com/rguliev/conditionize2.js - a new library for conditionize - essentially builds out more complexity and adds eval type scripts to data attributes
https://thoughtbot.com/blog/dynamic-forms-with-stimulus

@Temidayo32  - sorry just read this, no need for now, thank you though.

Just updated this issue with a third usage that we would be able to replace. There is dynamic content (JS) based on the private page option selection in the change privacy dialog.
Hopefully once https://github.com/wagtail/wagtail/pull/11202 we will be easily able to fill out these use cases and replace jQuery in these areas of code.

See also https://jsonforms.io/docs/uischema/rules

Part one of this (the url image generator) has now been completed via https://github.com/wagtail/wagtail/pull/11202


Image orientation info appears not to be used leading to turned images

By Shyamal on mailing list.

Hm, did he post any further information? I haven't encountered this issue personally, both my portrait and landscape pics turn out okay.

For instance, a portrait pic that I uploaded: https://commons.wikimedia.org/wiki/File:Tree_in_autumn_2.jpg . I guess I'll contact Shyamal to see exactly what he means.

Shyamal's response to my post asking for details (I think he meant to post on the forum but just hit reply and  the email client only sent it to me, happened to me a few times too):

Shyamal L<EMAIL_ADDRESS>11:23 PM (2 hours ago)
to me
Unfortunately this was on a Google Nexus 5 that no longer runs. The images were fine on Commons. It seems to be something only on the phone preview. I am sure this will be gone when you make other exit related fixes. When is the app available again?

I think he means that the images are always displaying as 'landscape' on the main screen of the app. I think it was probably designed that way for aesthetic purposes, otherwise the grid would not look uniform. Is this something we want to change?

Would you mind posting a screenshot of how Tree_in_autumn_2.jpg looks in the app? Thanks :-)

Main activity:

Detailed view:

It looks perfect like this, I would say :-)

Haha yeah, I figured so too. All good then. :)


How to deal with model properties?

Thanks for this great library as it worked pretty well so far for me. Though, now I face an issue when I define properties on my models:
  public int $id;
  public string $name;

which is correctly transformed to:
export type Team = {
    id: number;
    name: string;
    ...
}

However, PHP complains now:
Typed property App\Models\Team::$id must not be accessed before initialization

Any idea how I can avoid this error? I also tried to use default values for the properties but then again my models lose the actual database values.
If I define them like this I can avoid the PHP error but then the Typescript type is also nullable:
private ?string $name = NULL;

P.S.: I use PHP 8.0

Hi @jaulz,
Could provide me the full backtrace of the exception, not sure where this is happening.

@rubenvanassche the exception was triggered by PHP itself I think. Though, eventually I just made it like in the examples in the docs and used separate classes that extend DataTransferObject. Thanks anyway! 😊


Workflow-init support

We should have a method that's guaranteed to initialize before signals and updates come in so handlers can use initialized values.

Duplicate of https://github.com/temporalio/sdk-java/issues/865


Integration Test - Release - 2021/10/15 15:05:54

Auto create for integration test. IssueCommandFlow

Just type '#pri3'

#assign PRMergerTest1

#assign NonAllowedUser

#reassign PRMergerTest2

#reassign NonAllowedUser


adding gitjob instructions

Closes #738

I punted on GitJob installation itself as my cluster already has it installed via Fleet.

This is quick and easy, good job! I wonder if there should be some link to this page in some other page. We don't have a "contents" section somewhere, do we?


contributor docs: Clarify how to find abandoned issues.

Current: https://zulip.readthedocs.io/en/latest/contributing/contributing.html

Updated

I ran the linter, so I'm not sure why it's still failing. :(


Look, a new Chrome extension for localForage!

I wasn't sure where to put this to let you know, so here it is...
I've created a Chrome extension to make it easy for people to view/edit their localForage stores.
https://chrome.google.com/webstore/detail/nebnfengdjloaaacibpdnjmahkobfeoe

Whoa, neato! That's really cool 😄
I'd love to see a Firefox version as well, given how involved Mozilla was with this project initially 🙂
I'm currently working away on major improvements to localForage's internals and on a new website with @sarahmonster. I'll call this out on the new site 👍
(I'll close this for now, but I've made a note of it in my website redesign notes, which will eventually live in https://github.com/localForage/localforage.org)

From what I can tell, Firefox follows similar conventions for extensions, so making this work for both could be trivial. I'll give it a try when I have a bit of time.

Yup! I actually worked at Mozilla on the Add-ons team during the migration to the WebExtensions API 🙂
Hopefully it's pretty straightforward, but if the project is open-source, feel free to ping me in any issues if you want a second set of eyes 😄

@tofumatt That's good to know. I used to build addons back in the early XUL days. The project is open-source, so I'll let you know when it's close and get your eyes on it.
I did a quick test yesterday and the UI loads alright and it just looks like there might be some compat updates needed on the crx-bridge library. (I'm pulling together a PR for that now, too)
Stay tuned. 😄

The crx-bridge project accepted my PR and I've updated the extension to work in Firefox (changes). Now the extension is awaiting approval on the Mozilla developer hub.

And the Firefox version of the extension is live!
https://addons.mozilla.org/en-US/firefox/addon/localforage-explorer/


[Engineering] Move build dependencies feed.

Upgrade the feeds to myget enterprise.

The API key for myget is also used to push packages for the ProjFS team.  I'm assuming with this new feed there will be a new API key to use and we will need to let them know.


Create non disabled data 173

Closes #173

We checked the figures for non-disabled and disabled in another LA and found that some percentages (those highlighted in yellow) only show 1 d.p. because the values to 2 d.p. include 0 (e.g. 93.10). This is probably due to the way that Excel reads values in the csv file. Do you think this is something worth reviewing?

I will be reviewing my code here and updating if necessary today. Thanks for your reviews.

We checked that the figures for disabled/non disabled summed to the total population. We noticed that there is no total population row (served+unserved). We created the yellow row as an example. Is this required? @james-westwood

I am pretty sure this would be necessary, yes. I will look into why this is not being created. It will be another ticket if the code needs to be changed.

We checked the figures for non-disabled and disabled in another LA and found that some percentages (those highlighted in yellow) only show 1 d.p. because the values to 2 d.p. include 0 (e.g. 93.10). This is probably due to the way that Excel reads values in the csv file. Do you think this is something worth reviewing?

This is defintely worth reviewing. I think, as you have suggested, this might be an issue with Excel not displaying the zero when it is the last digit. I will look into this though.

@paigeh1 it seems to be showing up in only one d.p. in Pandas too. Just taking the last line of your screenshot for example.


Does the modal view videos too?

I want to know if the modal gallery can view videos

Hi @ch-ivy not at the moment.
However if you want to contribute I'll really happy to help you.
As a sort of step by step procedure I propose something like this to everyone interested to contribute:

Try to understand all possible ways to include videos in a html page (with different formats) in smaller demo projects
Consider also YouTube and other sources
Base on these info, we should decide which scenarios we want to cover, for instance which formats, or we should support also videos from other sources like YouTube?
Define apis (probably simple)
Based 800 branch of this repo, start to implement everything
Test new stuff

This could be a very cool feature for a new major release (let say 9.0.0) and it could be done by any contributor, because it's a very specific feature, not like what I'm doing with 8.0.0.

I've not really contributed to an open source project before, where can i see a walkthrough in navigating the project to know exactly where i can implement my changes

Hi, what do you mean for "walkthrough"?


Refactor: move JsonParser to separate file

What type of PR is this：

[ ] bug
[ ] feature
[ ] enhancement
[x] others

Which issues of this PR fixes ：

Fixes: none.
Problem Summary(Required) ：

This PR moves JsonParser to separate .h/.cpp file to make json_scanner.h/.cpp simpler.

@mergifyio backport branch-2.2


[SPARK-48719][SQL][3.5] Fix the calculation bug of RegrSlope & RegrIntercept when the first parameter is null

What changes were proposed in this pull request?

This PR aims to fix the calculation bug of RegrSlope&RegrIntercept when the first parameter is null. Regardless of whether the first parameter(y) or the second parameter(x) is null, this tuple should be filtered out.
Why are the changes needed?

Fix bug.
Does this PR introduce any user-facing change?

Yes, the calculation changes when the first value of a tuple is null, but the value is truly correct.
How was this patch tested?

Pass GA and test with build/sbt "~sql/testOnly org.apache.spark.sql.SQLQueryTestSuite -- -z linear-regression.sql"
Was this patch authored or co-authored using generative AI tooling?

No.

thanks, merging to 3.5!


[jvm-packages] Model trained in Scala/Python package does not generate the same prediction when imported to Spark

I see discrepancy in the prediction of a booster trained in Scala and then imported to Spark. As an example, please follow the lines below to train a tree of depth one and see prediction both in Scala and Spark. (With the same exact data and parameters, I see the exact match for Scala and Python, so this issue would be discrepancy between Scala/Python and Spark)
Environment info
Operating System:
Linux (AWS EMR)
Installed pre-requisitues:
apache-maven-3.5.2-bin.tar.gz
cmake-3.10.2.tar.gz
For xgboost:
git clone --recursive https://github.com/dmlc/xgboost
cd xgboost/jvm-packages/
mvn package
Steps to reproduce

Create a training dataset with 10 rows ("train.libsvm") and copy it to HDFS as well:

1.0 1:0.0 2:0.0 3:0.0 4:1.0 5:0.0 6:17.0 7:13.0 8:16.0 9:155.0
1.0 1:1.0 2:0.0 3:1.0 4:2.0 5:0.0 6:53.0 7:15.0 8:118.0 9:756.0
0.0 1:4.0 2:4.0 3:2.0 4:3.0 5:3.0 6:0.0 7:2.0 8:2376.0 9:51.0
1.0 1:3.0 2:0.0 3:0.0 4:2.0 5:4.0 6:8.0 7:27.0 8:319.0 9:18.0
1.0 1:1.0 2:0.0 3:0.0 4:1.0 5:2.0 6:6.0 7:28.0 8:272.0 9:93.0
0.0 1:1.0 2:0.0 3:1.0 4:1.0 5:0.0 6:73.0 7:0.0 8:615.0 9:47.0
0.0 1:0.0 2:3.0 3:1.0 4:4.0 5:0.0 6:21.0 7:2.0 8:3284.0 9:91.0
0.0 1:2.0 2:3.0 3:0.0 4:0.0 5:4.0 6:37.0 7:2.0 8:381.0 9:475.0
1.0 1:2.0 2:3.0 3:1.0 4:7.0 5:0.0 6:0.0 7:9.0 8:1181.0 9:95.0
0.7 1:0.0 2:1.0 3:0.0 4:1.0 5:4.0 6:15.0 7:1.0 8:14.0 9:8.0

Start spark session:

spark-shell --jars xgboost4j-spark-0.8-SNAPSHOT-jar-with-dependencies.jar  , xgboost4j-0.8-SNAPSHOT-jar-with-dependencies.jar

Type in these commands

scala> import ml.dmlc.xgboost4j.scala.DMatrix
import ml.dmlc.xgboost4j.scala.DMatrix

scala> import ml.dmlc.xgboost4j.scala.XGBoost
import ml.dmlc.xgboost4j.scala.XGBoost

scala> val trainData = new DMatrix("train.libsvm")
trainData: ml.dmlc.xgboost4j.scala.DMatrix = ml.dmlc.xgboost4j.scala.DMatrix@3853beec

scala> val paramMap = Map("base_score" -> 0, "max_depth" -> 1, "eta" -> 1)
paramMap: scala.collection.immutable.Map[String,Int] = Map(base_score -> 0, max_depth -> 1, eta -> 1)

scala> val round = 1
round: Int = 1

scala> val scalaModel = XGBoost.train(trainData, paramMap, round)
[08:01:05] /home/hadoop/xgboost/src/tree/updater_prune.cc:74: tree pruning end, 1 roots, 2 extra nodes, 0 pruned nodes, max_depth=1
scalaModel: ml.dmlc.xgboost4j.scala.Booster = ml.dmlc.xgboost4j.scala.Booster@2f00d77d

scala> scalaModel.getModelDump()
res85: Array[String] =
Array("0:[f7<5.5] yes=1,no=2,missing=1
        1:leaf=0.116667
        2:leaf=0.833333
")

scala> import ml.dmlc.xgboost4j.scala.spark.XGBoostRegressionModel
import ml.dmlc.xgboost4j.scala.spark.XGBoostRegressionModel

scala> val sparkModel = new XGBoostRegressionModel(scalaModel)
sparkModel: ml.dmlc.xgboost4j.scala.spark.XGBoostRegressionModel = XGBoostRegressionModel_11397aab62d2

scala> val trainDF = spark.read.format("libsvm").load("train.libsvm")
trainDF: org.apache.spark.sql.DataFrame = [label: double, features: vector]

scala> sparkModel.transform(trainDF).show(false)
+-----+-----------------------------------------------------------+----------+
|label|features                                                   |prediction|
+-----+-----------------------------------------------------------+----------+
|1.0  |(9,[3,5,6,7,8],[1.0,17.0,13.0,16.0,155.0])                 |0.8333333 |
|1.0  |(9,[0,2,3,5,6,7,8],[1.0,1.0,2.0,53.0,15.0,118.0,756.0])    |0.8333333 |
|0.0  |(9,[0,1,2,3,4,6,7,8],[4.0,4.0,2.0,3.0,3.0,2.0,2376.0,51.0])|0.8333333 |
|1.0  |(9,[0,3,4,5,6,7,8],[3.0,2.0,4.0,8.0,27.0,319.0,18.0])      |0.8333333 |
|1.0  |(9,[0,3,4,5,6,7,8],[1.0,1.0,2.0,6.0,28.0,272.0,93.0])      |0.8333333 |
|0.0  |(9,[0,2,3,5,7,8],[1.0,1.0,1.0,73.0,615.0,47.0])            |0.8333333 |
|0.0  |(9,[1,2,3,5,6,7,8],[3.0,1.0,4.0,21.0,2.0,3284.0,91.0])     |0.8333333 |
|0.0  |(9,[0,1,4,5,6,7,8],[2.0,3.0,4.0,37.0,2.0,381.0,475.0])     |0.8333333 |
|1.0  |(9,[0,1,2,3,6,7,8],[2.0,3.0,1.0,7.0,9.0,1181.0,95.0])      |0.8333333 |
|0.7  |(9,[1,3,4,5,6,7,8],[1.0,1.0,4.0,15.0,1.0,14.0,8.0])        |0.8333333 |
+-----+-----------------------------------------------------------+----------+

scala> scalaModel.predict(trainData)
res86: Array[Array[Float]] = Array(Array(0.8333333), Array(0.8333333), Array(0.11666667), Array(0.8333333), Array(0.8333333), Array(0.11666667), Array(0.11666667), Array(0.11666667), Array(0.8333333), Array(0.11666667))

As displayed above, sparkModel and scalaModel predictions don't match.
What have you tried?

I created the test dataset below ("test.libsvm") and copied to HDFS too. All the rows are copied from row 1 of train.libsvm above except that in each row I changed one feature that is > 5.5 to 1.0. This is to examine which feature the model makes the decision on.

1.0 1:0.0 2:0.0 3:0.0 4:1.0 5:0.0 6:1.0 7:13.0 8:16.0 9:155.0
1.0 1:0.0 2:0.0 3:0.0 4:1.0 5:0.0 6:17.0 7:1.0 8:16.0 9:155.0
1.0 1:0.0 2:0.0 3:0.0 4:1.0 5:0.0 6:17.0 7:13.0 8:1.0 9:155.0
1.0 1:0.0 2:0.0 3:0.0 4:1.0 5:0.0 6:17.0 7:13.0 8:16.0 9:1.0

Scored it with saprkModel:

scala> val testDF = spark.read.format("libsvm").load("test.libsvm")
testDF: org.apache.spark.sql.DataFrame = [label: double, features: vector]

scala> sparkModel.transform(testDF).show(false)
+-----+-----------------------------------------+----------+
|label|features                                 |prediction|
+-----+-----------------------------------------+----------+
|1.0  |(9,[3,5,6,7,8],[1.0,1.0,13.0,16.0,155.0])|0.8333333 |
|1.0  |(9,[3,5,6,7,8],[1.0,17.0,1.0,16.0,155.0])|0.8333333 |
|1.0  |(9,[3,5,6,7,8],[1.0,17.0,13.0,1.0,155.0])|0.11666667|
|1.0  |(9,[3,5,6,7,8],[1.0,17.0,13.0,16.0,1.0]) |0.8333333 |
+-----+-----------------------------------------+----------+

scala> scalaModel.getFeatureScore()
res93: scala.collection.mutable.Map[String,Integer] = Map(f7 -> 1)

Clearly the prediction is based on feature 8 in libsvm format (f8) and not f7 as when f8 goes below 5.5 the score comes to 0.11666667. Note that libsvm uses 1 based indexing while the sparse vector in features column of dataframe uses 0 based indexing.

I guess the cause is that spark libsvm reader is a one-based reader while xgboost read zero-based libsvm file.
1.0 1:0.0 2:0.0 3:0.0 4:1.0 5:0.0 6:17.0 7:13.0 8:16.0 9:155.0
1.0 1:1.0 2:0.0 3:1.0 4:2.0 5:0.0 6:53.0 7:15.0 8:118.0 9:756.0
0.0 1:4.0 2:4.0 3:2.0 4:3.0 5:3.0 6:0.0 7:2.0 8:2376.0 9:51.0
1.0 1:3.0 2:0.0 3:0.0 4:2.0 5:4.0 6:8.0 7:27.0 8:319.0 9:18.0
1.0 1:1.0 2:0.0 3:0.0 4:1.0 5:2.0 6:6.0 7:28.0 8:272.0 9:93.0
0.0 1:1.0 2:0.0 3:1.0 4:1.0 5:0.0 6:73.0 7:0.0 8:615.0 9:47.0
0.0 1:0.0 2:3.0 3:1.0 4:4.0 5:0.0 6:21.0 7:2.0 8:3284.0 9:91.0
0.0 1:2.0 2:3.0 3:0.0 4:0.0 5:4.0 6:37.0 7:2.0 8:381.0 9:475.0
1.0 1:2.0 2:3.0 3:1.0 4:7.0 5:0.0 6:0.0 7:9.0 8:1181.0 9:95.0
0.7 1:0.0 2:1.0 3:0.0 4:1.0 5:4.0 6:15.0 7:1.0 8:14.0 9:8.0

If the data above is used for training the xgboost model, the model's feature length is 10.

can you try to load model into python package to see the booster.feature_names? I guess it should be [f0, f1 ... f9] of length 10.
my solution is using numpy.load_svmlight_file to figure out the file format. like,
X_train, y_train = load_svmlight_file('../data/dataset.train', zero_based=False, n_features=9)

Then create DMatrix and train a booster.

@NeilRon, apologies for the late reply; I was on vacation.
Well, I did what you suggested, except I used sklearn instead of numpy :
>>> import xgboost as xgb
>>> import sklearn.datasets as skds
>>> X_train, y_train = skds.load_svmlight_file('train.libsvm', zero_based=False, n_features=9)
>>> train_data_svmlight = xgb.DMatrix(X_train, label=y_train)
>>> params = {"base_score" : 0 , "max_depth" : 1 , "eta" : 1 }
>>> python_model = xgb.train(params, train_data_svmlight, 1)
>>> python_model.save_model("pythonModel")
>>> python_model.predict(train_data_svmlight)
array([0.8333333 , 0.8333333 , 0.11666667, 0.8333333 , 0.8333333 ,
       0.11666667, 0.11666667, 0.11666667, 0.8333333 , 0.11666667],
      dtype=float32)

Loading the model in Spark gives the same predictions:
scala> val pythonModel = XGBoost.loadModel("pythonModel")
pythonModel: ml.dmlc.xgboost4j.scala.Booster = ml.dmlc.xgboost4j.scala.Booster@5710ee86
scala> val pythonSparkModel = new XGBoostRegressionModel(pythonModel)
pythonSparkModel: ml.dmlc.xgboost4j.scala.spark.XGBoostRegressionModel = XGBoostRegressionModel_f95084dddbc5
scala> pythonSparkModel.transform(trainDF).show(false)
+-----+-----------------------------------------------------------+----------+
|label|features                                                   |prediction|
+-----+-----------------------------------------------------------+----------+
|1.0  |(9,[3,5,6,7,8],[1.0,17.0,13.0,16.0,155.0])                 |0.8333333 |
|1.0  |(9,[0,2,3,5,6,7,8],[1.0,1.0,2.0,53.0,15.0,118.0,756.0])    |0.8333333 |
|0.0  |(9,[0,1,2,3,4,6,7,8],[4.0,4.0,2.0,3.0,3.0,2.0,2376.0,51.0])|0.11666667|
|1.0  |(9,[0,3,4,5,6,7,8],[3.0,2.0,4.0,8.0,27.0,319.0,18.0])      |0.8333333 |
|1.0  |(9,[0,3,4,5,6,7,8],[1.0,1.0,2.0,6.0,28.0,272.0,93.0])      |0.8333333 |
|0.0  |(9,[0,2,3,5,7,8],[1.0,1.0,1.0,73.0,615.0,47.0])            |0.11666667|
|0.0  |(9,[1,2,3,5,6,7,8],[3.0,1.0,4.0,21.0,2.0,3284.0,91.0])     |0.11666667|
|0.0  |(9,[0,1,4,5,6,7,8],[2.0,3.0,4.0,37.0,2.0,381.0,475.0])     |0.11666667|
|1.0  |(9,[0,1,2,3,6,7,8],[2.0,3.0,1.0,7.0,9.0,1181.0,95.0])      |0.8333333 |
|0.7  |(9,[1,3,4,5,6,7,8],[1.0,1.0,4.0,15.0,1.0,14.0,8.0])        |0.11666667|
+-----+-----------------------------------------------------------+----------+

Which is what we want; however my original post was about discrepancy between Scala and Spark models. Is there a way to load a correct DMatrix in Scala? I could not find any parameters to path to DMatrix class in here: http://dmlc.ml/docs/scaladocs/xgboost4j/index.html#ml.dmlc.xgboost4j.scala.DMatrix
Thanks

is it necessary to have data in libsvm format only for training and scoring ? 2- how do i load a model trained in python package into spark package for scoring

@mostafa-time ，hi， I do test on python to spark, load data with dataframe not libsvm,  the prediction on python is not the same with spark, do you know why?

Yup @cengjingmengxiang ... I think it is the same issue as discuses here... check this out: https://github.com/dmlc/xgboost/pull/3232/files

@CodingCat I was re-doing the example above with the new release (version 0.80) and noticed this line does not work:
scala> val sparkModel = new XGBoostRegressionModel(scalaModel)

since one can not instantiate XGBoostRegressionModel from a booster anymore. Is there a way around this in v0.8.0?
Thanks

@mostafa-time See discussion at #3689. You should write a bridge class under package ml to get around access restriction.

Thanks @hcho3. I am not an expert Scala coder, so I won't be bale to contribute there. I understand that maintainers of the repo decided to eliminate it from 0.8 but I think they could have had the bridge class ready if it is so easy to do for them and include it in 0.8.


fix: send additional data to analytics for cloud hosted instance

Description

Send additional data required for cloud hosted instance.

Fixes #21857
Media

A video or a GIF is preferred. when using Loom, don’t embed because it looks like it’s a GIF. instead, just link to the video

Type of change

Bug fix (non-breaking change which fixes an issue)
Chore (housekeeping or task changes that don't impact user perception)

How Has This Been Tested?

Tested manually.

Test Plan

Add Testsmith test cases links that relate to this PR

Issues raised during DP testing

Link issues raised during DP testing for better visiblity and tracking (copy link from comments dropped on this PR)

Checklist:
Dev activity

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] PR is being merged under a feature flag

QA activity:

[ ] Test plan has been approved by relevant developers
[ ] Test plan has been peer reviewed by QA
[ ] Cypress test cases have been added and approved by either SDET or manual QA
[ ] Organized project review call with relevant stakeholders after Round 1/2 of QA
[ ] Added Test Plan Approved label after reveiwing all Cypress test

/ok-to-test sha=057a6ab


No public Mobike API

Currently there is no (intentionally) publicly available Mobike API with data for Washington, D.C.
Per https://github.com/ubahnverleih/WoBike#mobike-china-italy-uk-japan it's possible to send a POST request to https://mwx.mobike.com/mobike-api/rent/nearbyBikesInfo.do and receive bike data in return. You have to change the Referer and user-agent headers to match a possible WeChat client though.
To me this is an indication that this endpoint is not intended for public use. I don't feel comfortable obtaining data from it. There's also a good chance I'd run into CORS issues trying to access it via client side JavaScript.
If anybody knows of Mobike releasing an intentionally public API please comment on this issue.

Mobike left the DC market in July 2018. Closing since there's no longer a need to map them for DC.


Layout customization failed

I followed the instructions below, but couldn't find how to insert environment variables ITC_USER, ITC_PASSWORD,...  I just want to modify the file en.yml.

Install the Heroku CLI
Download and install the Heroku CLI.
If you haven't already, log in to your Heroku account and follow the prompts to create a new SSH public key.
$ heroku login
Clone the repository
Use Git to clone edificiocuritybas's source code to your local machine.
$ heroku git:clone -a edificiocuritybas
$ cd edificiocuritybas
Deploy your changes
Make some changes to the code you just cloned and deploy them to Heroku using Git.
$ git add .
$ git commit -am "make it better"
$ git push heroku master

@berasamas The heroic environment variables can be modified through the Heroku web dashboard (see image below) or with a Heroic CLI command heroku config:set<EMAIL_ADDRESS>
Happy fastlaning 🚀


recover panic for partitions

Signed-off-by: kuba--<EMAIL_ADDRESS>Closes: https://github.com/src-d/go-mysql-server/issues/625

@ajnavarro - what we wanna test in this case?

Per example, a dummy partition throwing a panic. We should test that in this case the panic message is thrown as a standard error, and close is called.

OK, this simple thing can be tested, but the main concern was about memory corruption etc.
So checking internally if globally everything was cleared, would be hard.

Added TestExchangePanicRecover


Fix Flickering

For some reason on the executable version of the program I see occasional flickering.
Need to investigate why it's happening and how to fix it.

Fixed: https://github.com/notatallshaw/fall_guys_ping_estimate/pull/26


Fixed issue with MSSQL NOT IN clause.

This adds support for the NOT IN clause. IN was already handled.
Updated test cases for MSSQL and IN clauses and NOT IN clauses.

:+1: radical. :sunglasses:
I'll merge all your PRs and push a new version. stay tuned!


customization of url

Is it possible to change URL for loginpage, list roles, list users and action log?

i have added for logs. Now i need only for login page!!


Added support to split on dots in cheat sheet

fixes #469

@pokey Shouldn't the vendor files be excluded from the linting test?

We could, but given it's such a trivial diff I'd be tempted to just run black on it for now 🤷

I already have. Running black on the file locally gives zero changes.

maybe need to update your black?  my hypothesis is that it's due to an update to black

looks like the black thing is fixed on #529 so maybe let's get that one in and then you can just rebase onto it

looks like the black thing is fixed on #529 so maybe let's get that one in and then you can just rebase onto it

Sounds good


[Question] Any plan for integration with piccolo

Hi @uriyyo thanks for all the hardwork that has been put into this project. Would you plan on an integration with piccolo-orm (https://piccolo-orm.com/) in the coming days. We use piccolo for simplicity in its migrations and usage like django but with async capabilities.
If you get sometime to look over piccolo please do suggest any ideas you'd get on paginating a piccolo queryset with fast api.

Hi @satishdash,
I will take a closer look as soon as possible.

piccolo integration available at version 0.8.3

thanks a lot @uriyyo . the example is also clean. it is based on limit offset pagination. can it be extended to cursor based pagination too.?

It can be used with both. For cursor purposes you can use fastapi_pagination.Page class.


Distributing tasks and giving tasks different "value"

I've been playing around with pyschedule and was wondering if it was possible to get the either or both of the following behaviors given the libraries current features:

Distribute tasks more evenly between resources. Say I have 3 resources each with a capacity of 3, and then I schedule 3 tasks that all occur at the same time. Given the following code, I end up with one of the 3 resources assigned with all 3 tasks, and the other two get no work. Is there a way to make it so that each resource is assigned 1 of the tasks instead?

from pyschedule import Scenario, solvers, plotters
import pyschedule

def test_setup():
    task_dt = 2
    task_len = 2*task_dt
    task_time = 10

    S = Scenario('test', horizon=20)
    resources = {name: S.Resource(name, size=3) for name in ['A', 'B', 'C']}
    tasks = {}
    for k in xrange(3):
        tasks[str(k)] = S.Task('task_{}'.format(k), task_len)
        T = tasks[str(k)]
        S += T >= task_time - task_dt
        S += T < task_time + task_dt

    for k in tasks:
        tasks[k] += pyschedule.alt(S.resources())
    return S

S = test_setup()
# Solve and plot scenario
if solvers.mip.solve(S, kind='CBC', msg=1, random_seed=6):
    %matplotlib inline
    plotters.matplotlib.plot(S, fig_size=(12,5))
else:
    print('no solution found')

Given tasks that are scheduled at a fixed time (as in the above example), and there are not enough resources available at certain times to process all of the tasks that need to be completed, I'd like to assign each task a value, make each optional and them schedule them such that the sum of the values of the tasks that are assigned is maximized (or conversely the total value of the skipped tasks at a certain time is minimized). Is there a way to do this?

Thanks in advance for any insight anyone can provide.

Hi,
sorry for the late answer, not sure if this is still work in progress.
First, since all your resources have size 3, they can run three tasks in parallel, so its valid that all tasks are assigned to one resource. Clearly, that is not a good solution. However, to equally balance tasks, you could write a small heuristic that iteratively decreases the resource size until no solution is found any more and then moves one step back. The current framework does not allow more involved objective functions at the moment, but I think that doing load balancing using some heuristic is ok.
Second, you would like to have some price-collecting setting. That would be a nice feature, but is currently not supported, I thought about this at some point, it is definitely sth that could be easily done if there is need. There is a little work-around by assigning different weights to the tasks in a flow-time objective, and then leave enough buffer time in the end to store all tasks which could not be finished within the "regular" time, like in https://github.com/timnon/pyschedule-notebooks/blob/master/crew-scheduling.ipynb
Did this help? Please post also complete problems you would like to solve:)

Hi @timnon - is there a direct way to contact you? I've been playing with pyschedule all weekend and want to figure it out in the case of hotel room bookings where the rooms are resources with different sizes. I know we can add a size for resources but that will mean that they can schedule multiple tasks in parallel, leading to multiple bookings of the same room in parallel.

Hi,
thanks for the interest, what exactly do you want to express with the room
size? Maybe you want to express different room sizes as different resource
types, and then e.g. ensure that booking tasks with one person can be
assigned to room resources of type one or larger, etc. I am happy to
receive some feedback on the functionality and use cases, my number for
whatsapp is<PHONE_NUMBER>260.
Best, Tim
On Feb 5, 2017 6:01 PM, "sandragreiss"<EMAIL_ADDRESS>wrote:

Hi @timnon https://github.com/timnon - is there a direct way to contact
you? I've been playing with pyschedule all weekend and want to figure it
out in the case of hotel room bookings where the rooms are resources with
different sizes. I know we can add a size for resources but that will mean
that they can schedule multiple tasks in parallel, leading to multiple
bookings of the same room in parallel.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/timnon/pyschedule/issues/9#issuecomment-277532665,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFVo1dgapLxxqTYUAtGwxoVrI8ar8WfYks5rZgBUgaJpZM4I2s4Z
.

duty roster:
morning-charge: 05:00 - 13:30
afternoon-charge: 13:30 - 22:00
7 days a week
3 colleagues as permanent staff and 1 colleague for holiday replacement
one free weekend per month for each colleague
36 continous hours free per week for each colleaque
when today afternoon-charge next day no morning-charge for the same colleague
only one charge a day from the same colleague
specify days when a colleaque cannot make his charge
for example:
permanent staff J(an), M(arie), K(arl)
holiday replacem. Ka(ti)
V	N
J	M
M	K
M	K
M	J
M	J
M	K
J	K
J	K
J	M
J	M
K	M
K	M
Ka	J
Ka	J
K	Ka
J	Ka
J	K
J	K
J	K
M	K
M	K
J	M
J	M
J	M
J	K
M	K
M	K
M	J
K	M
K	J
K	J
is this manageable by pyschedule?

@timnon is their anyway to limit number of tasks in a resource? not length


Skip installing Prisma Studio prompt? Auto-agree?

Is there a way to get around having to interact with the CLI asking, Do you want to view and edit your data by installing Prisma Studio in Nuxt DevTools?, on every second hot-reload? I'd like it to automatically default to yes, if possible.
Currently, I wonder about a dozen times a day why my dev app isn't online, only to look into console, and see it being stuck on this step after I changed some files.
Thanks a lot.

Thanks a lot. I hadn't used quite the right search terms and though there wasn't an issue about this already.


Update README.md

The changes are for the data returned by a get(), so using required was probably a copy/paste mistake.

thanks!


Please add country code information for AN https://en.wikipedia.org/wiki/Netherlands_Antilles

Please add country code information for AN https://en.wikipedia.org/wiki/Netherlands_Antilles

Kosovo and Accession are also some of the missing ones.

@amirvenus https://github.com/nager/Nager.Country/issues/14

What is the current status of the country it was dissolved in 2010?


Remove bespoke telemetry intstrumentation

These 10 commands automatically fire start events BUT have custom/bespoke telemetry exit events and manually fire CliEvent.aborted or CliEvent.failed.

src/meltano/cli/add.py
src/meltano/cli/config.py
src/meltano/cli/elt.py
src/meltano/cli/environment.py
src/meltano/cli/install.py
src/meltano/cli/invoke.py
src/meltano/cli/job.py
src/meltano/cli/lock.py
src/meltano/cli/run.py
src/meltano/cli/schedule.py

This should be update and transitioned to using InstrumentedCmd to automatically fire start AND completed/failed events. Removing these bespoke events will also allow for removing some try/except wrappers that were added solely to support firing the event.

/cc @aaronsteers not urgent, but we'd chatted about this out-of-band so wanted to flag it for you.


enum problems

e.g. /dataset/air-quality-monitoring-2014/issues
 Module ckanext.issues.controller.home:39 in _search_issues         view
>>  issues = toolkit.get_action('issue_search')(data_dict=params)
Module ckan.logic:425 in wrapped         view
>>  result = _action(context, data_dict, **kw)
Module ckan.logic:556 in wrapper         view
>>  return action(context, data_dict)
Module ckan.logic:523 in wrapper         view
>>  data_dict, errors = _validate(data_dict, schema, context)
Module ckan.lib.navl.dictization_functions:234 in validate         view
>>  converted_data, errors = _validate(flattened, schema, context)
Module ckan.lib.navl.dictization_functions:295 in _validate         view
>>  convert(converter, key, converted_data, errors, context)
Module ckan.lib.navl.dictization_functions:204 in convert         view
>>  value = converter(converted_data.get(key), context)
Module ckanext.issues.logic.validators.validators:19 in is_valid_sort         view
>>  return issuemodel.IssueFilter[filter_string]
TypeError: 'type' object has no attribute '__getitem__'

Is it because you are using a different enum library? There was none specified in the setup.py, so I just tried 'pip install enum' and it doesn't seem to like access using [].

enum34, it's a backport of the enum library from python 3, it's in the requirements.txt, I should add that to the read me.

Thanks, I didn't spot that. Probably simpler to put it in the setup.py
instead of having a requirements.txt.
On 8 April 2015 at 21:28, Joe Tsoi<EMAIL_ADDRESS>wrote:

enum34, it's a backport of the enum library from python 3, it's in the
requirements.txt, I should add that to the read me.
—
Reply to this email directly or view it on GitHub
https://github.com/okfn/ckanext-issues/issues/14#issuecomment-91027855.

Hmmm I still get the exception though. I'll figure it out.

Ah, forgot to restart.


Renewal

Which Cloudflare product(s) does this pertain to?
Magic Firewall, Network Interconnect
Subject Matter
How to renew domain name when it expires?
Content Location
How to renew domain name when it expires?
Additional information
How to renew domain name when it expires?

Howdy @Sormouas, from your issue description, it sounds like you're looking for Renew domains.
If that doesn't help, I'd suggest you reach out to the Cloudflare Community or Cloudflare Support.


Installation failure due to changes in Julia

Hi.
Installation (on Mac) fails with:
../src/Import.cpp:39:20: error: use of undeclared identifier 'jl_is_function'
         if(val && jl_is_function(val)) filteredNames.push_back(*s);

I have Julia 0.5.0

0.6.1 and still fails.
         if(val && jl_is_function(val)) filteredNames.push_back(*s);```


Support for creation of test file

Enable creation of test file if one does not exist.

Functionality added in commits 38e1c5ed458111be979bab68aab0ed56f9a60a88 and b8b04eb098d64641796115fcb7a0ff06e883c3a7.


Chore/rails 52

Rails 5.2 upgrade

Let's wait to bring up code coverage first before merging this. Although it's running on staging for a quite a while and I don't see any errors.


Empty json file on did create

Bug severity
Severity 1 as there is a work around of adding a service and if you don't want any services then remove the service
Describe the bug
When using veramo did create it creates and empty json instance {}with no id, keys etc. Not until you add a service do you get a true did with keys, id etc.
To Reproduce
Steps to reproduce the behaviour:

veramo did create
curl -o did.json -H "Host: <your github user>.github.io" http://localhost:3332/alice/did.json (example)
open did.json

Observed behaviour
no base did created
Expected behaviour
a did with at least
{   "id": "did:web:<your github user>.github.io:alice" } but even more so with keys etc. but no services
Versions (please complete the following information):

Veramo 5.5.2
Node 20.10.0
Ubuntu 22.04.3 LTS from a WSL instance

The DID is actually created, but the curl query needs to also match.
For your example to work, you'd have to create the did:web using <your github user>.github.io:alice as the alias.
If you're creating did:web:<your github user>.github.io as your DID (just hostname) you would use <your github user>.github.io as the alias and curl it using curl -o did.json -H "Host: <your github user>.github.io" http://localhost:3332/.well-known/did.json
The suggestion box is wide open for more easily managing did:web from the CLI, as the alias + curl combo is very awkward.
Please close this issue if this info is good enough for you.


Disable vim ==only== in notebook editors

Can support be added to turn off vim support ==only== in notebook editors?
The combination of notebook hotkeys and vim bindings creates a lot of unintentional behavior.  I find it much easier to edit notebooks with non-vim bindings.
Global disable of vim is an option, but is a pain when working with multiple types of files (notebook, c++, and python).

I believe this would be up to the VIM extension and not the jupyter extension.

They would have to detect when they're being loaded into a document that was inside of a notebook.


Update error message is not display in visual editor

Describe the issue:
Update error messages should be display for invalid login flow configurations and currently its not display on Visual editor. This was displayed On Classic editor view.

How to reproduce:

Login to console
Create application
Navigate to application edit phase
Click login flow
On visual editor remove default configuration added as username and password
Select add option in 1st step of the login flow
Select "Identifier first" option

Expected behavior:
Error update message should be displayed.


Redirected to an error page when user keeps the login page open for a long time and then tries to login

Description
When the login page is opened for a long time and then the user tries to login giving the username and password, the authentication flow will fail while directing to an error page with "INVALID REQUEST".
This error occurs only when the login page is opened for more than the session cache timeout time and a session data clean up task is run during that time.
Tested environment
WSO2IS version 5.4.1
Steps to reproduce
To reproduce the error frequently,

Reduce the time of session cleanup period in repository/conf/identity/identity.xml file
Disable cache by changing the configurations in repository/conf/identity/identity.xml file

Steps :

Create a service provider with OAuth/OpenID Connect Configuration in WSO2 IS.
Enter the URL given below and replace the client id and the redirect url relevant to the app registered in IS to load the login page

https://localhost:9443/oauth2/authorize?client_id=_<client_id>&grant_type=implicit&response_type=token&scope=SelfManage&redirect_uri=<redirect_url>_&prompt=login

Wait for a session clean up task to happen
Try to login using the credentials
"INVALID REQUEST" page will be shown.

This has been solved with https://github.com/wso2/product-is/issues/3202
Previously the issue was that when an OAuth2 login request was sent and when the user is prompted the login page, there were several cache entries added to IDN_AUTH_SESSION_STORE table up to that point.
As an example,
48fac047-a12e-4454-8147-a2feabef0779      OAuthSessionDataCache	STORE
48fac047-a12e-4454-8147-a2feabef0779	AuthenticationRequestCache	STORE
48fac047-a12e-4454-8147-a2feabef0779	AuthenticationRequestCache	DELETE
e47d0f16-0ebd-4e61-aefb-75472ea89b10	AuthenticationContextCache	STORE

At this instant if the Session Clean up task ran, it would delete all three entries with id ''48fac047-a12e-4454-8147-a2feabef0779". Thereafter even if the user is authenticated successfully the overall request would fail since context data required by OAuth2 component in entry is deleted.
48fac047-a12e-4454-8147-a2feabef0779      OAuthSessionDataCache	STORE
This deletion is a bug in the session data logic.
The improvements done with https://github.com/wso2/product-is/issues/3202 when a temporary cache entry is deleted it will only delete the entry belonging to the same cache type (not just blindly deleted by the cache entry id). So for the above example when the improved session cleanup task runs it will only delete the entry
48fac047-a12e-4454-8147-a2feabef0779	AuthenticationRequestCache	STORE
This would allow the request to complete even if the session data cleanup run in the middle of the request (ie. when user is waiting on the login page)


Slashes between numbers are not always fractions.

1/2 - fraction
2001/2 is a reference to a year.
If I do 2001/2 then I've hacked it (yay) but not when that is in a H1 H2 or H3, as anchors now contain -47- instead of the slash.

You can turn off automatic fractions. See documentation link below. If you want smarter fractions, post an issue at 970314
For further questions, please use http://discuss.gohugo.io/. Also see  Hugo Documentation.


server/home: create home workspace with final URL on ~ access

Solving this TODO:
// TODO: The way we build this URL here is not fully compatible with sharding long-term:
// - short term (what is done now): use genericConfig.ExternalAddress
// - medium term: shards will know their name eventually, and with that we can lookup the external URL of the shard
// - long-term: create home workspace already on `~` access in order to make scheduling happen and then we know the real external URL.

We need this earlier than we expected. In the sharded setup the ~ workspace has to point to the external URL, not the shard base URL.

/cherry-pick release-0.6

/lgtm

/lgtm