Updating css to show ordered lists as numbered

This is a quick fix. Real fix will come in https://github.com/pyviz-dev/sphinx_pyviz_theme/issues/3
Closes #742

Thanks!


Add new operation and executeCommand method

Add method to issue database commands. According to legacy PHP driver. http://php.net/manual/ru/mongodb.command.php
Add group operation. According to http://php.net/manual/en/mongocollection.group.php
I did not find any contribution conditions. Please let me know if I need to create seperate branches for this.

@tuyakhov: Thanks for the PR. I'm on holiday this week, but I'll look into this when I get a chance and hopefully get it merged in the coming week (by Nov 24).
I did intend to add a method to execute generic commands on a Database before 1.0.0 but forgot to make a ticket for it. I'll do so now just to ensure we're tracking it in the changelog :)

@jmikola Thank you for quick reply. I'm waiting for your review.
Enjoy your holiday :)

Just pinging this to poke @jmikola :-)

@jmikola Please let know if it could be merged in near future. Looks like CI failure is not related to my PR.

It is make sense especially if group could be deprecated. But if this library implements an API similar to that of the legacy PHP driver, may be it would be better to add this helper? Any way i removed this commit from current PR and created a separate branch for it.

I don't have any confirmation of it being deprecated, but there were internal discussions about not adding it to a new API. @alcaeus is actually working on a project that implements the legacy driver's API atop the new mongodb extension, so it would certainly have a place there.

@tuyakhov: I merged this in https://github.com/mongodb/mongo-php-library/commit/9d087e5ac58a4b97914fe76f1f0d920a94f8ab77. Some changes:

Renamed the helper method to command(), as that's what most other drivers are using for their helper.
Tweaked the exception message for the $command document argument.
Added a test case for an invalid $command argument

Thanks!


fix(versions): update Activiti/activiti-cloud-api versions into develop

UpdateBot pushed maven dependency: org.activiti.dependencies:activiti-dependencies to: 7.1.194

UpdateBot commands:
updatebot push-version --kind maven org.activiti.dependencies:activiti-dependencies 7.1.194 org.activiti.api:activiti-api-dependencies 7.1.194 org.activiti.core.common:activiti-core-common-dependencies 7.1.194


Why are related lists not in Security section?

Why are are not related lists of some of related lists added in Security section. To find awesome stuff you have to browse through related sections of awesome lists. Why are those lists not added at top level of security section or maybe there could be a subsection for related lists that would make it easier to search with tools like Awesome search. This is probably a problem with other awesomelists too. Examples of such lists include: https://github.com/onlurking/awesome-infosec, https://github.com/coreb1t/awesome-pentest-cheat-sheets, https://github.com/Cugu/awesome-forensics, https://github.com/enaqx/awesome-pentest and many more.
Maybe there could be a common format for related lists and those would get automattically included in a subsection maybe. But that is probably no-go if you want those lists curated, but I think something should be done to include more of these lists because there is vast amounts of those which are in related sections and are great but are not in the top list.

Either those lists were not submitted yet or they were previously declined. If they were not previously declined, feel free to submit them if they follow the guidelines. One list per pull request.

@sindresorhus Could you reconsider https://github.com/enaqx/awesome-pentest, PR https://github.com/sindresorhus/awesome/pull/841, looks like this list has fixed those concerns from PR.


Allow Constructors with TracerAttributes (NoTrace, TraceOn)

Hi,
apparently you didn't specify that the TracerAttributes can be applied to constructors also.
As you can also weave at constructors entering and leaving, it would be useful to use the attributes at constructors.
I would suggest to add AttributeTargets.Constructor to the TraceOn and NoTrace classes.
Kind regards,
Oliver

Ok. It will be added to the next update.


Mapping multiple tskit edges with the same parent/child to a single graph edge

There is an argument to be had about how to represent multiple tskit "edges" that have the same parent and child node IDs. These could either be overlaid as separate graph edges (i.e. a tskit edge == a graph edge in a "MultiDiGraph" in networkx terminology), or they could be mapped to a single edge with multiple intervals (i.e. multiple tskit edges could map to the same graph edge, and the graph is a simple DiGraph whose edges can contain a list of intervals).
The second one seems like it might work better for viz, even though you lose the exact 1:1 correspondence between tskit edges and graph edges. It might be worth getting input from other tskit developers here...

I would strongly support the addition of such a mapping of single edges with multiple intervals. This would enable a bunch of neat subsequent features, including highlighting all intervals when hovering over the edges and the visualization of edge importance or weights.

Jerome is keen on representing the ARG as a DiGraph, not a MultiDiGraph, as it makes the graph theoretical aspects somewhat easier. In retrospect, it seems perhaps unfortunate to call each separate interval an "edge" in tskit.

Yep, it's probably best to think of tskit edges as being denormalised for efficiency purposes. So the model is that there's a graph with a set of intervals associated with each edge. Tskit chooses a particular way of encoding that.

Yep, it's probably best to think of tskit edges as being denormalised for efficiency purposes. So the model is that there's a graph with a set of intervals associated with each edge. Tskit chooses a particular way of encoding that.

Yes, I like this take.

I created a new branch linked to this issue. Previously, each edge in the visualizer had a left and right attribute. That has now been changed to a bounds attribute. bounds is a list of lists (ex. [[left,right],[left,right],...]". Now, edges with the same parent/child combos are stored as a single edge. Tree highlighting then checks whether any of the bounds match.

One sticking point with completely converting to a DiGraph instead of the MultiDiGraph is how to handle "diamonds". At least when edge_type="ortho", I think it's clearest if these as are kept as separate edges. When edge_type="line", the two edges will always be on top of one another so I could see arguments for combining them or providing a better way to show that there are two edges present. Currently, the visualizer is using the parent/child combos determined by tskit IDs (2-RE-node ARG), so edges on either side of a diamond are kept separate.

Hmm, I see your point here. Usually, I think it would be natural to combine edges that are actually the same ancestral lineage and keep lineages apart that are different individuals/lineages. But not sure what the others think about this.

I think this is a (minor) defect in the tskit spec (see https://github.com/tskit-dev/what-is-an-arg-paper/issues/70#issuecomment-1032552476). Ideally we would have a MultiDiGraph in which each edge connecting a parent to a child can contain several  (potentially non-contiguous) intervals. Each "edge" of the graph (which could correspond to multiple tskit-edges) would then represent a single transmission path. In the case of a diamond, there would be 2 edges linking the same parent and child, hence it would make use of the MultiDiGraph rather than the simple Digraph structure. I'm not sure what you would do in the absence of information, but I suppose you might stick each interval on a separate edge.
Regardless, I agree that the answer for visualisation purposes isn't obvious. However, in the (special) case of an msprime-format recombination node, with 2 RE parents, I think we can infer that the left and right paths are different, and so make a specific exclusion for that purpose, showing the LHS image you have above.

For an ARG in the msprime-format, the edges will be kept separate if they have different child IDs. So in the LHS image, edges 21-17 and 21-18 would be stored separately, but edges 17-16 and 18-16 will be combined into a single edge as they are referring to the same path of inheritance. This is currently implemented on the branch alongside stroke-width stylization changes for #43.
The visualizer now always combines edges with the same parent/child combos. This means that if you pass in an ARG in 1-RE node format, diamonds will be lost. To prevent this, we will need slightly different functions between the two ARG formats. One step in making the visualizer more robust outside of the 2-RE node format.
Additionally and somewhat separate from this specific issue, though the edges are stored separately, diamonds are not clearly shown when edge_type="line" (RHS image). Maybe pathing the edges in an arc would help visualize that there are multiple lines of transmission, similar to a MultiDiGraph in networkx.

Added arced edges for diamonds. Still need to add documentation for how the edge remapping is being handled.

This has now been merged to main (don't know why it didn't automatically close)!


Logo of Organization is not visible on User's GitHub Profile

Is your feature request related to a problem? Please describe.
Student Code In logo is not visible on the GitHub profile of Organization Members.

Describe the solution you'd like
Change the logo to something visible.

@lelouchB @akanksha-raghav just increasing the size of the logo might help.

Logo Updated


feat add Slang lsp support

I have added support for the Slang shader language (a derivative of HLSL) to the registry.
I tried to comply with the contribution guidelines, however I'm not sure about the name "slang". It could be seen as a little ambiguous. Since the GitHub organization is named "shader-slang" would that be a better name?
I hope I didn't miss anything, please tell me otherwise.

Btw. I only could test it on Linux for the time being.

Yea that makes sense, I focused on the lsp and totally forgot that the compiler is in the same repo.
I also must have overlooked that I was still using an older version.
Thanks for fixing that.


add middleware support

because very useful see test.

Coverage increased (+1.6%) to 89.706% when pulling 6a9bbd6690b94cd47784239723a54133d95197c9 on beckend:add-ability-to-register-middlewares into 0a4fed3b99fd9c3892a1298d30e2fd8cb6f624f2 on mfellner:master.

Coverage increased (+1.6%) to 89.706% when pulling fdb60570c8dd4b4890dd84c80a5743890e19e1d2 on beckend:add-ability-to-register-middlewares into 0a4fed3b99fd9c3892a1298d30e2fd8cb6f624f2 on mfellner:master.

Coverage increased (+2.3%) to 90.411% when pulling 203de6e0ac2b77269e570ec0fb4b90644168e6f8 on beckend:add-ability-to-register-middlewares into 0a4fed3b99fd9c3892a1298d30e2fd8cb6f624f2 on mfellner:master.

Coverage increased (+2.3%) to 90.411% when pulling d8ceb64667cf189221261490c1d2f4179f938cf8 on beckend:add-ability-to-register-middlewares into 0a4fed3b99fd9c3892a1298d30e2fd8cb6f624f2 on mfellner:master.

Coverage increased (+2.3%) to 90.411% when pulling d6d61614c25e0e6b05e41cf552f0cf4e66a16f9c on beckend:add-ability-to-register-middlewares into 0a4fed3b99fd9c3892a1298d30e2fd8cb6f624f2 on mfellner:master.

Coverage increased (+2.3%) to 90.411% when pulling 6f2c6af3939e379dfe956b195c3c37b398c983af on beckend:add-ability-to-register-middlewares into 0a4fed3b99fd9c3892a1298d30e2fd8cb6f624f2 on mfellner:master.

Coverage increased (+2.3%) to 90.411% when pulling 210635adc3d30a0c48490b08e1fea8ec602009bb on beckend:add-ability-to-register-middlewares into 0a4fed3b99fd9c3892a1298d30e2fd8cb6f624f2 on mfellner:master.

Coverage increased (+2.4%) to 90.541% when pulling e8d748e3256e0ec3378d4ec83ae9954310f80222 on beckend:add-ability-to-register-middlewares into 0a4fed3b99fd9c3892a1298d30e2fd8cb6f624f2 on mfellner:master.

Coverage increased (+2.4%) to 90.541% when pulling af95b439042d4d3121ae60e37e0c03e79f01c0f9 on beckend:add-ability-to-register-middlewares into 0a4fed3b99fd9c3892a1298d30e2fd8cb6f624f2 on mfellner:master.

Coverage increased (+2.4%) to 90.541% when pulling ce38570eddb841a22e9426b6a4131ebb07db44c7 on beckend:add-ability-to-register-middlewares into 0a4fed3b99fd9c3892a1298d30e2fd8cb6f624f2 on mfellner:master.

Ended up adding regexp support also, because why not I guess

Thanks for the pull request! I realise that basing this project on koa-router necessarily leads to the need for supporting more features of koa-router together with Observables and Epics.
I now believe that a better approach would be to write a more generic middleware instead that can be combined with the regular koa-router. I'll take some time looking into this before coming back to this PR.


How to apply public symbol file?

Now I use 0x30 for packageId PP, how to apply exported symbol file in order to keep resource id not modify.
I have a try with aapt, it can easily export symble file by add "-P" param and copy symbol file to buildDir/intermediates/$buildType/res/values to apply it.
But when use aapt2,error will happed
Error:can't assign ID 0x30000000 to resource packageName:resourceType/resourceName with conflicting ID 0x7f000000.

AndresM only handle the output of AAPT, it will modify all the PP part in PPTTNNNN in final, So it can not support id-keeping for now. But we can add a small modification to enable it.

Now I changed the export symbol file from 0xPP to 0x7f in order to keep id , and then change the output file(like arsc) from 0x7f to 0xPP again. it woks fine!
But I found a new problem. I need to add -I param to refrence the files's resId like the android.jar. and the resId is 0x7f but it's in other reource ap file.  AndresM will also modify the id which can't be modified

AndresM now supports android-gradle-plugin 3.0+, maybe you can try it with android-gradle-plugin 3.0 if you are using aapt2


DOC: Inconsistency in README regarding LLAMA parameters - are they 7b or 13b?

There seems to be inconsistency in whether the llama model has 7b or 13b parameters.
The README states:

Then download the 15GB Llama 2 13B model like this:
llm mlc download-model Llama-2-7b-chat --alias llama2

And run a prompt through it:
llm -m llama2 'difference between a llama and an alpaca'
You can also start a chat session with the model using the llm chat command:
llm chat -m llama2
Chatting with mlc-chat-Llama-2-13b-chat-hf-q4f16_1
Type 'exit' or 'quit' to exit
Type '!multi' to enter multiple lines, then '!end' to finish

The install command seems to be for the 7b model. But the docs talk about 13b.

Thanks!


Define a small launcher CLI with a single 'start' command

Context

The wallet requires an underlying node. We should have a single command for starting both correctly.
Decision

Support the following CLI parameters

--wallet-server-port (the port we are serving the wallet API on)
--node-port (the port were communicating with the node on)
--network (mainnet or testnet)

Development Plan

PR

Number
Base

#?
master

QA

When briefly interacting with the old CLI code, I had a few concerns which I thought I'd mention, in case it is avoidable.
Firstly, I found the amount of needed spread out components a bit annoying:

Name of CLI flag https://github.com/input-output-hk/cardano-wallet-legacy/blob/a40258f4b61c7a9dbcb03dac010e8fe201e99e28/src/Cardano/Wallet/Server/CLI.hs#L200
Help for the CLI flag https://github.com/input-output-hk/cardano-wallet-legacy/blob/a40258f4b61c7a9dbcb03dac010e8fe201e99e28/src/Cardano/Wallet/Server/CLI.hs#L201
name of the parser https://github.com/input-output-hk/cardano-wallet-legacy/blob/a40258f4b61c7a9dbcb03dac010e8fe201e99e28/src/Cardano/Wallet/Server/CLI.hs#L199
The field-name of the record https://github.com/input-output-hk/cardano-wallet-legacy/blob/a40258f4b61c7a9dbcb03dac010e8fe201e99e28/src/Cardano/Wallet/Server/CLI.hs#L34
Comment for the field name https://github.com/input-output-hk/cardano-wallet-legacy/blob/a40258f4b61c7a9dbcb03dac010e8fe201e99e28/src/Cardano/Wallet/Server/CLI.hs#L35

(1), (4), (somewhat (3)) are the same, as are (2) and (5). The duplication of the help and doc comments actually bothers me the most, as I fear this makes it more difficult to maintain.
Also, it seemed quite easy to mess up the order here https://github.com/input-output-hk/cardano-wallet-legacy/blob/a40258f4b61c7a9dbcb03dac010e8fe201e99e28/src/Cardano/Wallet/Server/CLI.hs#L91-L101

@Anviking , for the CLI, I am going to suggest something which will probably make most Haskeller screams but, I'd like us to consider http://docopt.org/. This is a DSL to represent CLI which has implementation in various languages, including Haskell (cf: https://github.com/input-output-hk/cardano-sl/blob/develop/cluster/app/demo/Main.hs#L29-L44)
It gives us the ability to also have a specification for the CLI, and have a clear overview of what it is. Then, the Haskell code is merely about interpreting the CLI args and calling the right handlers. This is somewhat a bit less flexible, less powerful and less type-safe than the mighty optparse-applicative but has the main advantage at being simple and portable.
This is just a suggestion. Generally speaking however, we could definitely write MUCH simpler code with optparse-applicative and make the CLI definition fairly transparent (which isn't the case with the legacy implementation).

lgtm :+1:


[Bug] Doris Single Table Performance Issues

What happened

What you expected to happen
The performance of single table doris should be similar to multiple table, so it should directly access the BE node and these logs should not occur.
How to reproduce
Run a doris single table task
Environment
No response
InLong version
master
InLong Component
InLong Sort
Are you willing to submit PR?

[X] Yes, I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

this is harder to fix than a bug. Turing it into a feature due to the size of the pr, so closing the issue


When will the DINO-X API be available ?

@LandyGuo Hello, thanks so much for your attention to our work, we will release our API next week, please stay tuned.

Dear authors, thank you so much for your inspiring work. Is there any timeline to release the pretrained model?

@jeff2048 Hello, as we are currently exploring commercialization opportunities, we will only provide access to our model through an API for the time being.

@LandyGuo We have already release our API for open-set detection now.


Mayhem Heroes Integration

Initial PR

I don't want this one to count towards my 20, my apologies (must have submitted by mistake)


HKG: add sorento hev 4th gen camera fw

dongle id : 75ced1efe488a089

Can you drive a bit more so we can see what your lateral accel factor is?

Can you drive a bit more so we can see what your lateral accel factor is?

It's someone else's vehicle, so we haven't checked any further information yet, we've only checked some information after driving in the device pairing and dashcam status.
The other camera firmware is the same vehicle (USA) and it is not applied to the master wrench's fingerprint, so I added it together.

There was a lack of torque on that USA car, but you have a different camera part number, so interested in seeing what results you get.

Let me know when it's good for me to check

Closing since this user is no longer actively driving.


Use standard opensearch.version property

Description
After migrating from maven to gradle, the build script for security in OpenSearch-build was broken.  We could not use the default script and had to make modifications, see https://github.com/opensearch-project/opensearch-build/pull/1631
Testing
Built locally with opensearch-build 1.3.0 manifest, see https://github.com/opensearch-project/opensearch-build#building-from-source
Check List

[X] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #1622 (e387e83) into main (77d8861) will increase coverage by 0.03%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##               main    #1622      +/-   ##
============================================
+ Coverage     64.57%   64.60%   +0.03%
- Complexity     3214     3216       +2
============================================
  Files           247      247
  Lines         17352    17352
  Branches       3082     3082
============================================
+ Hits          11205    11211       +6
+ Misses         4597     4594       -3
+ Partials       1550     1547       -3

Impacted Files
Coverage Δ

...earch/security/ssl/util/SSLConnectionTestUtil.java
95.45% <0.00%> (+2.27%)
:arrow_up:

...urity/ssl/transport/SecuritySSLNettyTransport.java
73.40% <0.00%> (+4.25%)
:arrow_up:

Continue to review full report at Codecov.

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


WIP: Add bash completion script

Fixes #337

Seems to work :heart:
Is this still WIP?

Nice, packit works!!!
Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/packit-0.7.2.dev166+gf413789-1.fc31.x86_64
error: Installed (but unpackaged) file(s) found:
   /usr/share/bash_completion/completions/packit

RPM build errors:
    Installed (but unpackaged) file(s) found:
   /usr/share/bash_completion/completions/packit

you also need to put it %files section in packit.spec


Failed to set the 'selectionStart' property on 'HTMLInputElement': The input element's type ('email') does not support selection.

Recent change https://github.com/react-component/input/compare/v1.4.3...v1.4.4#diff-94b5cf5856a42bc2e70f9e2b690fda2b65151186e6b007466ff6c6744c40e2c8R30
currentTarget.selectionStart = target.selectionStart;   currentTarget.selectionEnd = target.selectionEnd;
breaks input type email functionality. With error:
Failed to set the 'selectionStart' property on 'HTMLInputElement': The input element's type ('email') does not support selection.

fix for it
0001-fix-ignore-selection-for-input-type-email.patch

I have re-produced this as well.

Fixed in https://github.com/react-component/input/pull/67


⚠ Bofrost.lu has degraded performance

In a7ec247, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1128 ms

Resolved: Bofrost.lu performance has improved in 00ad92d after 11 minutes.


feat(watcherx): allow requesting current data

Related issue
In many cases the data have to be retrieved when starting the watcher as well.

Proposed changes
This adds a possibility to signal to the watcher that you need it to send the current value as if it changed into the current state.

Test is running for 15 minutes already on windows - maybe a timeout?
https://github.com/ory/x/pull/243/checks?check_run_id=1516891652


how to create a linked clone vm out of a template?

According to this: https://github.com/vmware/pyvmomi/issues/362 you have to have a snapshot which is not possible on a template.
So, is it even possible to do a linked clone out of a template? If not, is there another method to create a VM fastly from template?

You would have to take a snapshot while it is still a VM, then mark it as a template and then link clone from that.
Note that some versions of vSphere don't handle this properly, so try it on a test vm before hooking that up to your main automation.

The govc client from the govmomi project lets you create a clone with the following.
$ govc ls -json /mydc/vm/user/template/eval-win81x86-enterprise | jq .elements[].Object.Config | grep -i Template
  "Template": true,
$ govc vm.clone -ds=mydc -vm=user/template/eval-win81x86-enterprise -link=true removethis
[05-08-20 17:24:22] Cloning /mydc/vm/user/template/eval-win81x86-enterprise to removethis...(42%)^C
$

So it's definitely possible...


Test for details on authentication error message

Included a verification on error message when authentication fails:

Wrong authentication
No authentication specified

Lgtm!


Elvish should not resolve symlinks when changing directory

This is extremely disruptive, when you need to launch a program with certain cwd, but elvish keeps implicitly changing it. Or a simple fact that cd dir; cd .. doesnt cancel out.

I disagree. I much prefer having $pwd reflect the current physical directory, independent of the history of how you got there. I think using the symlink from earlier invocations of cd is a misfeature of other shells that I'd rather be without. But I can sympathise: Once you have gotten used to this (mis)feature, it feels disruptive to have it gone.
That said, it would be useful to have an easy way to go back to the previous directory. Issue #1043 is one step towards achieving that, and more. Personally, I have hacked the location mechanism to keep a history of recently visited directories, updating the list of pinned locations from within a before-readline hook. With suitable keybindings, it is a mere couple of key presses to move back to the previous directory – in my case, M-g (bound to edit:location:start) followed by down arrow and return.

@hanche please note that a full directory history implementation is available in my dir.org module :) With this I can use Alt-left/right to navigate among directories (works smartly so you can still use them to move the cursor by word when the command line is not empty).
About the original question: I also prefer the directory to be expanded to its true value. But I can see how this could be a desirable option for people used to the behavior in other shells (TIL about the -P / -L options to cd available in bash, ksh, zsh). To be honest, with the dir module and location mode, I almost never use cd anymore ;)

This is a highly contentious topic and it's impossible to make everyone happy. When you say, @SolitudeSF, "launch a program with certain cwd" it's not clear if this is solely about being able to cd to a specific directory and cd back to the previous directory. Or, do you expect the program being launched to see the logical path as if the symlink was not converted to a physical path? The former is possible, the latter is impossible. And therein lies the problem.
I find it helps to use concrete examples. Assume the CWD is the physical path /a/b and it contains a symlink s => /usr/local/share. Consider the sequence cd s, vim some-file, cd ... We can certainly arrange for the cd .. to return to /a/b rather than /usr/local. But what if you do :e ../another-file inside vim? It will open /usr/local/another-file not /a/b/another-file. There is no way (or at least no established convention) by which the relative path inside vim will respect the /a/b/s logical path. If elvish were to use logical paths when executing cd it can result in confusion when external commands use relative paths. For that matter, what should cd s; path-abs some-file output? Should it be /a/b/s/some-file or /usr/local/share/some-file? Should builtins other than cd behave the same or different than external commands in this regard?
There are arguments for and against cd using physical or logical paths. I prefer that cd through a symlink not hide the fact a symlink was traversed; i.e., that it use physical paths. But, there should be an easy to use mechanism to do the equivalent of orig_wd = $pwd; cd s; some-command; cd $orig_wd. Resolving issue #1043 is one way to address that need.


Initializing shadcn/ui can be slow or stuck for a long time

Hi Alem,
First of all, thank you for making Remix Forge.
I've tried to generate the ESLint and Prettier config and it works fine.
I'm also trying to initialize shadcn/ui on the fresh Remix install (v1.17.1) but it just stuck like this:

There's an error from Output > Extension Host like this:

Thank you.

Thank you @mhaidarhanif for the kind words and the submission, the output is really helpful, I will fix this asap because I already think I knowwhat the issue is!

You're welcome @AlemTuzlak
Awesome! Looking forward to it.

In the meantime I'm following the docs in shadcn UI: https://ui.shadcn.com/docs/installation

@mhaidarhanif published a new release, should be up in 5-10m, let me know if this fixes the issue for you, it should because I think I found the culprit

@AlemTuzlak Thank you, it works now! Just had the time to try it again recently.
It's also nice to use the latest shadcn UI theming workflow.
Although there are some things we'll have to to fix manually:

This is from the fresh latest install of Remix.

@mhaidarhanif yeah after a discussion on discord yesterday I think I will need to mark this as experimental for now, I had to sit down and rewrite almost the whole code after shad changed the CLI and I have a feeling from his tweets it will happen again so until his CLI is stable I don't think this can be stable either

I will be updating the code to remove the tailwind stuff, for the folders I need to dee if there is a way for me to ask for permission to delete a folder when an extension doesn't have the right

@AlemTuzlak Yes, I think for now it's okay to just let people know that this particular part is experimental and we might have to fix just a little bit.
Also several days later shadcn will release the update for the theming again.

Looks like soon we had to be aware of the registry: https://ui.shadcn.com/docs/components/calendar

Interesting, I definitely will create a new version and update the fact accordingly that this is experimental until the final stable version lands then I will go through all of it again and make it work for Remix

Nice, it's already good by now :)
All workflows are working fine for this UI generator.
As shadcn UI also supports Remix from the website as well.


ImportError: No module named 'usb.core'; 'usb' is not a package

Hi
I installed pyusb-1.0.2 on my raspberry pi (Jessie) with the following:
pip3 install pyusb
I import in python with...
import usb.core
or just
import usb
Either way I get the following error...
ImportError: No module named 'usb.core'; 'usb' is not a package
...when running the following from terminal:
python3 testusb.py
It doesn't seem to matter if I run it as sudo or not.
What's really strange is that I managed to get it working the other day, but then I turned on the pi a day later and boom it started failing like this again.
Same happens in Python 2.7 by the way too.
Is this is a bug?  Am I doing something wrong?
Thanks very much!

I'm such a donkey.  I had called the file usb.py so it was trying to import itself!  Renamed the file and everything works perfectly.

I'm experiencing this issue.  What did you do to resolve it?

Any fix for this? I'm having the same problem.

It seems unlikely that you have the exact same setup as the OP.
Can you please open another issue and provide all relevant context, like OS type and version, Python version, PyUSB version and path (see pip show), the error message and the traceback?
Please also include the output of:
python -c "import usb; print(usb.__version__)"

P.S. Depending on your setup you may need to use pip3 and python3 or even specific paths to ensure the desired pip and Python versions are used.

Nevermind. My problem was that my script was called "usb.py" so it tried to import itself.

Nevermind. My problem was that my script was called "usb.py" so it tried to import itself.

Haha, me too. Anyway, thanks a lot!!!

I'm very glad that I found this thread.
Long live. Github !!


Fixed code for error handling and structure in shaku_rocket

Converted from map_failure to map_error and into_outcome to a match.

Hey, thanks for the PR. Was there a change that caused this code to break, or is this just for style?

Sorry for my poor writing. I am not a great writer or explainer, I just modified 2 parts.

into_outcome

into_outcome I couldn't find an equivalent for the last rocket version I just modified the code using a match statement.

into_failure

The Outcome variant was renamed to Error. into_failure -> into_error
It's my first pull request I am not very experienced, Please review the code for my use case and test pass.

I see, the library was written against the rocket 0.5.0 release candidates (e.g. 0.5.0-rc1), but the dependency semantics means the library also technically works with 0.5.0. In rocket 0.5.0 some things were changed, which causes compile time errors.


Embeded content not interative

I have a embed node with a button, but the button not receiver the click
This issue is also reported here: https://github.com/memspace/zefyr/issues/426

fixed in 1.1.0-dev.3


Python API: carla.Image depth convertion

Currently this code doesn't work
carla_image.convert(carla.ColorConverter.Depth)
carla_image_data_array = numpy.ndarray(
   shape=(carla_image.height, carla_image.width, 1),
   dtype=numpy.float32, buffer=carla_image.raw_data)

Actually method carla.Image.convert(carla.ColorConverter.Depth) converts to RGBA format. It's may be useful (in manual_contorl.py for example) but it's not user may expected. Possible solution may be to change and extend existing carla.ColorConverter values:
Raw
Depth # to float32 format
DepthImage # to bgra format
LogarithmicDepth # to float32 format
LogarithmicDepthImage # to bgra format
CityScapesPalette

Just to add some thoughts on why is done like this. The image.convert function calls the C++ ImageConverter::ConvertInPlace, this function is quite efficient because it avoids allocating data by overwriting the image buffer that we receive from the server, this is great cause the buffers we receive from the server are reused (i.e. when an image goes out of the scope its memory is reused for another image). The problem is that the pixel type is part of the image type, so changing the pixel type changes the type of the image and becomes a bit challenging converting an image in place.
Also at it is now images are always BGRA which simplifies the API for the user in my opinion.

Maybe we can add functions to create numpy arrays directly from the images?
image.to_numpy_array(cc=Raw, format='bgra')
image.to_numpy_array(cc=Depth, format='float32')

Hi, can you provide the function you used to convert to get a regular depth map please? I still cannot figure it out


Paste not working

Issue Type: Bug
Paste doesn't work anymore in the Overview page of a PR.
Extension version: 1.114.0
VS Code version: Code - Insiders 1.34.0-insider (0fde6619172c9f04c41f2e816479e432cc974b8b, 2019-04-25T05:14:44.969Z)
OS version: Darwin x64 18.0.0

I also have this problem. I cannot copy nor paste in the description or comment fields. This makes it a pain to add hyperlinks

I can't repro, so it should be fixed.


cursor changes its position while changing workspace

Hyprland Version
v0.29.1-61-gbe19773a
Bug or Regression?
Bug
Description
When I change workspace cursor changes it's position to the center of the active windows. Happens through keybinding and also through the waybar module.
How to reproduce
Change workspace by clicking on waybar module or just by keybindings.
Crash reports, logs, images, videos
No response

Duplicate, https://github.com/hyprwm/Hyprland/issues/3266


Verify execution mode in from_id()

What is the expected feature or enhancement?
Today Batch and Session both use the same from_id() method, and it doesn't verify if the execution mode matches the class. For example I can do
session = Session(...)
batch = Batch.from_id(session.session_id)

while this is technically supported by the server and a user error, it'd be nice to let the user know especially since we (will) already query session details upon initialization.
Note that this needs to wait for execution mode being returned by the server.
Acceptance criteria
An error is raise if one tries to use Batch.from_id() to initialize a session, and vice versa.

I don't think it's currently possible to check the execution mode given a session id and service - or at all for that matter.
Should it be added to session details?

It's returned by MCS API and runtime (paygo) APIs, so yeah it should be added to IQP API.

Thanks for creating the issue, beat me to it


Add support for (non-enterprise) api.greynoise.io

I've had a poke with this library, and although it would be really useful, it looks like the enterprise.api.greynoise.io endpoints are different from those on your public api. (Not that I noticed this until after I'd changed the GreyNoise object's BASE_URL to point to https://api.greynoise.io/v1...)
I'm not sure whether the enterprise API is planned to be a completely distinct product, if so then this incompatibility is understandable, but otherwise a flag to initialise the object in 'free' mode which would point it to the correct endpoints would be very handy.
In the mean time, I can just write the requests by hand which isn't going to be an issue.

Ah, fantastic to hear, I'll keep an eye on the repo 😄Best of luck with your v2 API!


caravel test fails

tries to run a rule call coco_test but no recipe exists in the makefile.
changing the rule to 'all' starts the test, which then fails with missing file:

can you run caravel test locally? maybe there are local dependencies that haven't been added to the repo?
The caravel-test works by copying the directory given in the info.yaml to verilog/dv/ , instantiating the module in upw, including the given sources in the uprj_netlists and then running make in the test directory.

Fixed in bf4810d5c2f17c7b0053d345165a38697df9be2a


Add Kakao SSO

Summary

Add Kakao SSO

Kakao is an IT company that provides various mobile and Internet services.
https://en.wikipedia.org/wiki/Kakao

Added in #19


Misc shell issues

I'm going to keep some misc shell issues here so I don't forget about them. I might move some of them out to their own issue once I do more research on them. Please feel free to take any of these up and put a message here telling me you are working on it and I'll help you out.

[x] new xdg-surface event can be triggered without a buffer (protocol violation) (#276)
[ ] test a pointer grab interrupted by another pointer grab (and back)
[ ] test pointer grab with no mouse button depressed
[ ] test two simultaneous pointer grabs for different seats (for the same surface and for different surfaces)
[x]  test a cancelled pointer grab
[ ] only use surface coordinates in xdg-toplevel popup finding
[ ] test wl_shell state transitions or deal with them in some way
[ ] refactor xdg-shell to use consistent function names
[ ] #260 - protocol error on unbinding a client with surfaces attached
[ ] find and test all of the major xdg-shell implementations in the wild
[x] some code assumes current.buffer means there is a buffer when it should be texture.valid instead. (#279)

Most of this isn't relevant anymore.


[e2e]: go release main config-ldflags-assets-tag slsa3

Repo: https://github.com/slsa-framework/example-package/tree/v23.0.368
Run: https://github.com/slsa-framework/example-package/actions/runs/5318469192
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.go.release.main.config-ldflags-assets-tag.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.go.release.main.config-ldflags-assets-tag.slsa3.yml
Trigger: release
Branch: v23.0.368
Date: Tue Jun 20 05:08:07 UTC 2023

Repo: https://github.com/slsa-framework/example-package/tree/v23.0.368
Run: https://github.com/slsa-framework/example-package/actions/runs/5318469192
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.go.release.main.config-ldflags-assets-tag.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.go.release.main.config-ldflags-assets-tag.slsa3.yml
Trigger: release
Branch: v23.0.368
Date: Wed Jun 21 00:52:25 UTC 2023
Tests are passing now. Closing this issue.


[BUG] Any online interactions suddenly unusable

I've been doing invasions in servername's server and after some time i suddenly couldn't invade anyone. My red eyes or signs would get cancelled, i would get invasions cancelled messages a lot and nobody could see my signs even if i manage to put them down.
I check Pyre Protecc's logs and see this message:
[libprotobuf ERROR ..\src\google\protobuf\message_lite.cc:123] Can't parse message of type "Frpg2RequestMessage.RequestGetSignListResponse" because it is missing required fields: (cannot determine missing fields for lite message)
Good luck. If you need more info my discord is: Pythoneer Reaper#8344

v0.12 fixes the protobuf error, give that a try and see if it helps. That said I'm not 100% sure if its related.
v0.12 is building at the moment, just monitor https://github.com/TLeonardUK/ds3os/releases, should be up in 15 minutes.


Fixes for the match grammar

added MatchArms to make things clearer
added attributes to both the match block and match arms
removed pipes before the patterns, since they're experimental

Pipes before the patterns are being stabilized in 1.25.

Pipes before the patterns are being stabilized in 1.25.

Are they really? Where can I follow that? Here:
https://github.com/rust-lang/rust/milestone/44 ?
I would prefer to only consider things stable when the stable build is published.

https://github.com/rust-lang/rust/pull/47947
https://github.com/rust-lang/rust/pull/48374
I added the pipes as a prerequisite for the stabilization, so please keep them.

I added the pipes as a prerequisite for the stabilization, so please keep them.

Ok, that makes all sense :+1: .

💟 Thanks!


Load user, role and policy data into dashboard and display in tables

close #191
Extra info about roles (permissions) / policies (description + code) will be displayed in pop-up modal on click of corresponding row in tables

the latest PR I merged caused some conflicts @rickygv99

resolved the merge conflict


Update to the latest kernel version (patch no longer needed)

This does a few things:

update the version of kernel to use
update the types to match the new names in kernel
remove the s3 patch. kernel now has a feature (cloud) that will enable this, and since this builds with --all-features it will be enabled

@samansmink, by default this won't build in debug mode. it fails with:
duckdb_delta/duckdb/src/include/duckdb/common/helper.hpp:242:57: error: cannot ‘dynamic_cast’ ‘source’ (of type ‘const struct duckdb::MultiFileReaderGlobalState*’) to type ‘const struct duckdb::DeltaMultiFileReaderGlobalState*’ (source type is not polymorphic)
  242 |         D_ASSERT(reinterpret_cast<const T *>(source) == dynamic_cast<const T *>(source));

it builds fine in release mode.
my c++ foo is good enough to fix this by adding:
        virtual ~MultiFileReaderGlobalState() {}

to that class, but not good enough to know if that's the correct fix or if something I've done here has broken things.

looks good, thanks!


Cannot convert imglib.Image to InputImage: the resulting image is not what it should be

I made an interesting experiment in which

I am either building myself an InputImage using InputImage.fromBytes() or get one through InputImage.fromFile() being exactly identical to the generated image
pass this image to ImageLabeler.processImage() using a pass-through TF Lite model (see below for the model)
verify that image data is flowing through the model successfully by reading the List<ImageLabel> values (output of the TF Lite model).

This test is interesting in that it allows developers to verify that a generated InputImage instance is valid. In other words, it allows to study/debug Image-to-InputImage conversion routines easily.
My question is: how to successfully create an InputImage from an imagelib Image? I have been trying all bits of code found on the web for weeks, to no avail.
This test is Android only for now.
Steps to reproduce the behavior:

Create a pass-through TF Lite custom model using the following code

import numpy as np
import tensorflow as tf
import os

model = tf.keras.models.Sequential([
    tf.keras.Input(shape=(32, 32, 3)),
    tf.keras.layers.Flatten()
])

converter = tf.lite.TFLiteConverter.from_keras_model(model)
tflite_model = converter.convert()
open('testnetµ.tflite', "wb").write(tflite_model)

Add model metadata using "passthrough" parameters : 0-mean, 1-std, numclasses=32x32x3 flattened=3072. To add metadata, I use metadata_writer_for_image_classifier.py, provided by the Tensorflow team.

Create an ML Kit image labeler this way:

    LocalLabelerOptions customImageLabelerOptions = LocalLabelerOptions(
        confidenceThreshold: 0, modelPath: modelPath!, maxCount: 1000000);

    imageLabeler = ImageLabeler(options: customImageLabelerOptions);

I want all logits to be passed through, I can therefore set maxCount to 3072 (=32x32x3, flattened) or any higher value (1000000).
Similarly, confidenceThreshold: 0 is meant to include all values.

Perform an inference using the following code:

import 'package:image/image.dart' as imglib;

    bool readFromDisk = true;
    if (readFromDisk) {
      // Here, I am using a 32x32 JPG image, completely red
      inputImage = InputImage.fromFilePath(...);
    }
    else {
      // Build a red image by myself and do not use
      // InputImage.fromFilePath
      var im = imglib.Image(width: 32, height: 32);
      for (int yy = 0; yy < 32; yy++) {
        for (int xx = 0; xx < 32; xx++) {
          im.setPixelRgba(xx, yy, 255, 0, 0, 255);
        }
      }
      inputImage = convertImage(im); // see below
    }

    final Future<List<ImageLabel>> pendingTask = imageLabeler!.processImage(inputImage);

    pendingTask.then((List<ImageLabel> imageLabels) {
       // Look at imageLabels with the debugger HERE (see Step 4 below)
    });

  InputImage convertImage(imglib.Image image) {
    final WriteBuffer allBytes = WriteBuffer();

    // Slow code, just for testing purposes
    for (int y = 0; y < image.height; y++) {
      for (int x = 0; x < image.width; x++) {
        final p = image.getPixel(x, y);
        int r = p.r.toInt();
        int g = p.g.toInt();
        int b = p.b.toInt();
        allBytes.putUint8(b);
        allBytes.putUint8(g);
        allBytes.putUint8(r);
        allBytes.putUint8(0xFF);
      }
    }
    final bytes = allBytes.done().buffer.asUint8List();

    final metadata = InputImageMetadata(
        // Using bgra8888 here on Android is expected to be supported, isn't it?
        // (CameraControllers have a limitation whereby yuv420 is the only supported value on Android,
        // note this is a different story since we are not using the Camera package here...)
        format: InputImageFormat.bgra8888,
        size: Size(image.width.toDouble(), image.height.toDouble()),
        rotation: InputImageRotation.rotation0deg,
        bytesPerRow: 32*4); // each pixel has 4 bytes, easy.

    return InputImage.fromBytes(bytes: bytes, metadata: metadata);
  }

Place a breakpoint in the then handler in the code above and inspect the values of imageLabels.

Expected behavior
Whether readFromDisk is true or false, I should get the same results. More specifically, I should get

3072 imageLabels
for all imageLabels, I should get 1024 labels (mapped to the red values) with confidence value = 255.0, 2048 labels (mapped to the green and blue values) with confidence = 0.0

Actual behavior
When readFromDisk is true I get the expected results.
When readFromDisk is false, I get:

3072 imageLabels
3 different confidence values, [242.0, 138.0, 0.0]. That's wrong. This means that the InputImage I created is not what it should be.

Additional testing
I rewrote the convertImage function so that an InputImage with yuv420 encoding is used: the results are also wrong.
Logits (label confidence values) are in this case: [239.0, 198.0, 61.0, 15.0, 9.0, 0.0]. Again, they should be [255.0] only (as in the InputImage.fromFilePath case, which shows that reading an image from disk works fine).
  Uint8List colorconvertRGB_IYUV_I420(imglib.Image image) {
    Uint8List aRGB = image.data!.toUint8List();
    int width = image.width;
    int height = image.height;
    int frameSize = width * height;
    int chromasize = (frameSize / 4).toInt();

    int yIndex = 0;
    int uIndex = frameSize;
    int vIndex = frameSize + chromasize;
    Uint8List yuv = Uint8List.fromList(
        List<int>.filled((width * height * 3 / 2).toInt(), 0));

    int a, R, G, B, Y, U, V;
    int index = 0;
    for (int j = 0; j < height; j++) {
      for (int i = 0; i < width; i++) {
        //a = (aRGB[index] & 0xff000000) >> 24; //not using it right now
        R = (aRGB[index] & 0xff0000) >> 16;
        G = (aRGB[index] & 0xff00) >> 8;
        B = (aRGB[index] & 0xff) >> 0;

        Y = ((66 * R + 129 * G + 25 * B + 128) >> 8) + 16;
        U = ((-38 * R - 74 * G + 112 * B + 128) >> 8) + 128;
        V = ((112 * R - 94 * G - 18 * B + 128) >> 8) + 128;

        yuv[yIndex++] = ((Y < 0) ? 0 : ((Y > 255) ? 255 : Y));

        if (j % 2 == 0 && index % 2 == 0) {
          yuv[vIndex++] = ((U < 0) ? 0 : ((U > 255) ? 255 : U));
          yuv[uIndex++] = ((V < 0) ? 0 : ((V > 255) ? 255 : V));
        }
        index++;
      }
    }
    return yuv;
  }

  InputImage imgLibImageToInputImage(imglib.Image image) {
    final bytes = colorconvertRGB_IYUV_I420(image);

    final metadata = InputImageMetadata(
        format: InputImageFormat.yuv420,
        size: Size(image.width.toDouble(), image.height.toDouble()),
        rotation: InputImageRotation.rotation0deg,
        bytesPerRow: 32);

    return InputImage.fromBytes(bytes: bytes, metadata: metadata);
  }

Platform (please complete the following information):

OS: Windows 11, VS Code
Device: Google Pixel 6a, real device
Android 13
Flutter 3.13.3
Plugin version:

google_mlkit_image_labeling: ^0.9.0
image: ^4.0.17

I just pushed the .tflite model to use for the repro (that way, it is not necessary to run the python script to create the model):
https://github.com/andynewman10/testrepo/blob/main/testnet.tflite

I did manage to read the Android code performing the inference, but I had to decompile the AAR - somehow it's very difficult to find the code on github sometimes.
Anyway, as @fbernaly mentionned (thank you!), the ML Kit code dealing with InputImage instances can be found here (for Android):
https://github.com/flutter-ml/google_ml_kit_flutter/blob/master/packages/google_mlkit_image_labeling/android/src/main/java/com/google_mlkit_image_labeling/ImageLabelDetector.java
Right away I see that the only supported format for the Flutter package is nv21. The native Android version supports yv12 and yuv_420_888, too. That's important to know!
The code that I pasted above (colorconvertRGB_IYUV_I420) uses yuv420 and has no hope to work.
Looking at the code I also discovered that the minimal image size is 32x32 (which is the size I am using, phew...)
So I went ahead with an RGB to NV21 converter, using the following code:
  static Uint8List encodeYUV420SP(imglib.Image image) {
    Uint8List argb = image.data!.toUint8List();
    int width = image.width;
    int height = image.height;

    int ySize = width * height;
    int uvSize = width * height * 2;
    var yuv420sp = List<int>.filled((width * height * 3) ~/ 2, 0);

    final int frameSize = width * height;
    int yIndex = 0;
    int uvIndex = frameSize;

    int a, R, G, B, Y, U, V;
    int index = 0;
    for (int j = 0; j < height; j++) {
      for (int i = 0; i < width; i++) {
        a = (argb[index] & 0xff000000) >> 24; // a is not used obviously
        R = (argb[index] & 0xff0000) >> 16;
        G = (argb[index] & 0xff00) >> 8;
        B = (argb[index] & 0xff) >> 0;

        // well known RGB to YUV algorithm
        Y = ((66 * R + 129 * G + 25 * B + 128) >> 8) + 16;
        U = ((-38 * R - 74 * G + 112 * B + 128) >> 8) + 128;
        V = ((112 * R - 94 * G - 18 * B + 128) >> 8) + 128;

        /* NV21 has a plane of Y and interleaved planes of VU each sampled by a factor of 2
        meaning for every 4 Y pixels there are 1 V and 1 U.
        Note the sampling is every otherpixel AND every other scanline.*/
        yuv420sp[yIndex++] = ((Y < 0) ? 0 : ((Y > 255) ? 255 : Y));
        if (j % 2 == 0 && index % 2 == 0) {
          yuv420sp[uvIndex++] = ((V < 0) ? 0 : ((V > 255) ? 255 : V));
          yuv420sp[uvIndex++] = ((U < 0) ? 0 : ((U > 255) ? 255 : U));
        }
        index++;
      }
    }

    return Uint8List.fromList(yuv420sp);
  }

This is some code I found on the web, and it looks pretty good to me, respecting the NV21 encoding where Y appears first then V and U are stored in interleaved form.
And it still doesn't work: InputImage.fromFilePath does work, and the same image, generated with my code, doesn't.

Following my previous message, things are now working as expected, so I am closing this issue.
Things indeed work when nv21 is used to generate the InputImage. I mistakenly believed I had to use yuv420 because a limitation in Flutter, but that limitation was on the camera package side (camera could not handle nv21 until recently), not on the ML Kit side.

Great, actually that is specify in the README, you need to use nv21 when using the camera plugin.
https://github.com/flutter-ml/google_ml_kit_flutter/tree/master/packages/google_mlkit_commons#creating-an-inputimage


Question: HOC order important

Hey there,
I'm using MobX with the HOCs instead of decorators and have run into a small problem today when I integrated i18next for translations (also with HOC).
I initially had it like
export default inject("navStore", "authStore")(observer(translate(["settings", "i18n"], { wait: true })(SettingsScreen)));

Which made the switch/checkbox not rerender on value change.
Then I changed it to:
export default inject("navStore", "authStore")(translate(["settings", "i18n"], { wait: true })(observer(SettingsScreen)));

Or to (so it's not mixed up anymore)
export default translate(["settings", "i18n"], { wait: true })(inject("navStore", "authStore")(observer(SettingsScreen)));

Which made the switch/checkbox value change work/rerender again.
Should mobx always be the most inner hoc if the  other hoc isn't depending on mobx?
Should I use some compose utility?
Should I just switch to decorator syntax :P?
Cheers!

Yes, as stated in the documentation, order is important, that is both the case when using the decorators as function or with decorator syntax. a(b(c)) is simply not the same as b(a(c)). observer should always applied first. So the most inner function call / right-most decorator.

Great, thanks for the quick and clear answer!


[Linux] SDL detects external mouse as joystick

While testing the QDriverStation on Linux (Ubuntu 14.04), I encountered a rather strange issue: SDL detects my external mouse as a joystick. Luckily, mouse movements did not affect at all the axes/buttons displayed in the Joysticks tab.
My idea to solve this issue is to create an option to 'blacklist' certain devices (using their UUID) and possibly, be able to upload the blacklist online, so that other QDriverStation installations use the online list as a reference.
Has anyone else encountered this issue? If so, what are your proposed solutions?

This is odd. I'v never encountered this before.

Attaching screenshot for further reference.

I've added an option to blacklist/whitelist the selected joystick in the latest commit. Its the best solution that I can come up with for the moment.


drop of frames in 446 high-speed cameras

possible reasons

wrong camera settings in the spinview.
something to do with the port that the camera is connected to the computer.

@XX-Yin Is this issue still occurring?

@XX-Yin it looks like there was a PR for this issue, is this resolved?

@XX-Yin could you please update this issue?

@XX-Yin could you please update this issue?

I don't follow up this issue. Could somebody confirm the issue of drop of frame?

It has been resolved on my rig


Cannot evaluate module react-native-cordova : Configuration with name 'default' not found.

Hi all,
I install as your instruction and I have a trouble as above. Please help me.

And I figured out that, this error is caused by losing file build.gradle. But I have seen it inside the forlder.

RCTCordova remove this line. Thank for all.


Put templates and tags in to namespaced directories

Templates and tags are currently just put in to templates and templatetags directives respectively. It wont be too hard depending on what people name djelm programs for clashes to occur.
Official Django docs do mention name spacing templates and tags so I think it makes sense to do that.


MERC-1272 Replace history.js with html5 history api shim

What?
MERC-1272: Use of URLs with a hashbang (#!) removes the hashbang from the URL and adds it back to window.location without the #
How?
This PR replaces history.js which is abandoned and buggy with HTML5-History-API which operates according to W3C specification.
@lord2800 @sherrybc

LGTM 👍

💚  Tested on integration on this store: https://store-uq4oft7hn6.my-integration.zone/manage


Change Assets from Array to Dict

There was solid consensus to change the 'assets' fields from an array to a dict. See summary of discussion.
This enables easier use of the assets for a variety of systems.

[x] Update the JSON Schema (in #57)
[x] Update the spec fields and narrative in json-spec/
[x] Update the OpenAPI doc and api spec narrative in api-spec/ #55
[x] Update the samples in the json-spec/
[x] Update the static STAC narrative and examples in static-catalog

All set on dev branch


updateMetadata() v3 workaround solution for free pricing

Fixes #674
Changes proposed in this PR:
Edit Metadata or Edit Compute Settings for Free Pricing Asset flow:

2 transaction: propose publisher address as the new minter and to accept the proposed.
1 transaction: ocean.assets.updateMetadata (no changes for here)
2 transaction: propose dispenser address as new minter and to accept the proposed.

This will be a workaround solution until V4 is released where we will have publisher and minter role. Hence, publisher may renounce minter role for the dispenser free pricing feature while retaining publisher role for Edit Metadata or Edit Compute Settings.

I did a test run through and it works ok now


The usage of lsp-wl integration with Emacs.

On Ubuntu 20.04, I try to use lsp-wl in the self compiled git master version of Emacs using the following settings in ~/.emacs.d/init.el according to the notes here:
(add-to-list 'lsp-language-id-configuration '(wolfram-mode . "Mathematica"))

(lsp-register-client
 (make-lsp-client :language-id 'wolfram
                  :new-connection (lsp-tcp-server-command
                                   (lambda (port)
                                     `("wolfram" ;; or "wolframscript"
                                       "-script" ;; or "-file"
                                       "~/Public/repo/github.com/kenkangxgwe/lsp-wl.git/init.wls"
                                       ,(concat
                                         "--socket="
                                         (number-to-string port)
                                         ))))
                  :major-modes '(wolfram-mode)
                  :server-id 'lsp-wl
                  ))

After Emacs has been started, I still don't know how to trigger/activate the corresponding functions supplied by lsp-wl, just as seen in vscode shown in the following screenshot:

Any hints will be highly appreciated.
Regards,
HY

Hi, have you run (require 'lsp-mode) or equivalent expr?

Thanks for your comments, I installed the lsp-mode from melpa and use the following settings in ~/.emacs.d/init.el:
(add-to-list 'lsp-language-id-configuration '(wolfram-mode . "Mathematica"))

(lsp-register-client
 (make-lsp-client :language-id 'wolfram
                  :new-connection (lsp-tcp-server-command
                                   (lambda (port)
                                     `("wolfram" ;; or "wolframscript"
                                       "-script" ;; or "-file"
                                       "~/Public/repo/github.com/kenkangxgwe/lsp-wl.git/init.wls"
                                       ,(concat
                                         "--socket="
                                         (number-to-string port)
                                         ))))
                  :major-modes '(wolfram-mode)
                  :server-id 'lsp-wl
                  ))

(require 'lsp-mode)

But I still encounter the same problem.
Regards,
HY

You should require it first

Thank you, see the following screenshot this time:

But I still don't know how to trigger the various features provided by this plugin, just as I have seen in vscode.
Regards,
HY

Yeah, it will be a little tough if you haven't used emacs with lsp-mode before. Config is supposed to be activated with wolfram-mode enabled, so you also need to install wolfram-mode (though it is out of maintenance for years) and require it in the config and then enable lsp-mode in the buffer you opened by calling (lsp).
The features in VSCode are not exactly coming out of the box for emacs, because for every feature, you have to install a corresponding package or tweak the config (see https://emacs-lsp.github.io/lsp-mode/page/main-features/).
I am not sure what's your proficiency with emacs, but at least you can get the exact results from your VSCode screenshot after you have the company-mode installed. For evaluation buttons, it should be trigger from dap-mode which is a sister mode of lsp-mode, but I forgot what config should you to register lsp-wl, I can look into it some day when I finish with some other issues in this repo.
There might be a long way to go, so you might want to go through the lsp-mode docs first and welcome to leave comments here so I can help you with potential problems.

Thank you. Let me discuss and deal with it in a divide-and-conquer manner.
The following is the file and directory hierarchy of Mathematica on my machine:
$ ls /opt/Wolfram/Mathematica/12.1/Executables/
math         Mathematica  mcc      WolframKernel
mathematica  MathKernel   wolfram  wolframscript

Based on the notes here, I figured out the following settings for my `~/.emacs.d/init.el':
  (autoload 'wolfram-mode "wolfram-mode" nil t)
  (autoload 'run-wolfram "wolfram-mode" nil t)
  (setq wolfram-program "/opt/Wolfram/Mathematica/12.1/Executables/MathKernel")
  (add-to-list 'auto-mode-alist '("\\.m$" . wolfram-mode))
  (setq wolfram-path "/opt/Wolfram/Mathematica/12.1/Executables")

For wolfram-mode, I just run (require 'wolfram-mode) after it is installed from Melpa and enable it in the buffer by (wolfram-mode). I haven't set other variables in your config, so I cannot tell if they are correct.

That said, presumably you've implemented the corresponding settings in the lsp-wl.

So the basic steps of setting up lsp-wl on emacs should be:

Install lsp-mode and wolfram-mode and require them in emacs config.
Add the config in the wiki.
Open a wolfram code file and make sure wolfram-mode is activated.
Activate lsp-mode by (lsp).
Enable lspfeatures by following the steps on its doc pages.

It's well known that Emacs its powerful and tricky. I am far away from an expert, but I still believe it is worth the effort and persistence, as you have said. Below is my tries, settings and problems till now based on your above comments and my own understanding, as well as corresponding official documentations for relevant packages of Emacs.
I use the following elisp code snippet in ~/.emacs.d/init.el to automatically install emacs packages  by specifying a list of package-name, in my case, the following packages lsp-mode company company-box dap-mode wolfram-mode will be installed automatically.
;https://github.com/bbatsov/prelude/blob/aaedc8537c04e4af7a53690b8bbb8522d5a35b9d/core/prelude-packages.el#L56
(defvar prelude-packages
  '(
    lsp-mode company company-box dap-mode wolfram-mode
   )
  "A list of packages to ensure are installed at launch.")

(defun prelude-packages-installed-p ()
  "Check if all packages in `prelude-packages' are installed."
  (cl-every #'package-installed-p prelude-packages))

(defun prelude-require-package (package)
  "Install PACKAGE unless already installed."
  (unless (memq package prelude-packages)
    (add-to-list 'prelude-packages package))
  (unless (package-installed-p package)
    (package-install package)))

(defun prelude-require-packages (packages)
  "Ensure PACKAGES are installed.
Missing packages are installed automatically."
  (mapc #'prelude-require-package packages))

(defun prelude-install-packages ()
  "Install all packages listed in `prelude-packages'."
  (unless (prelude-packages-installed-p)
    ;; check for new packages (package versions)
    (message "%s" "Emacs Prelude is now refreshing its package database...")
    (package-refresh-contents)
    (message "%s" " done.")
    ;; install the missing packages
    (prelude-require-packages prelude-packages)))

;; run package installation
(prelude-install-packages)

Then comes the corresponding configuration as follows:
(require 'wolfram-mode)
(require 'lsp-mode)
(add-to-list 'lsp-language-id-configuration '(wolfram-mode . "Mathematica"))

(lsp-register-client
 (make-lsp-client :language-id 'wolfram
                  :new-connection (lsp-tcp-server-command
                                   (lambda (port)
                                     `("wolfram" ;; or "wolframscript"
                                       "-script" ;; or "-file"
                                       "~/Public/repo/github.com/kenkangxgwe/lsp-wl.git/init.wls"
                                       ,(concat
                                         "--socket="
                                         (number-to-string port)
                                         ))))
                  :major-modes '(wolfram-mode)
                  :server-id 'lsp-wl
                  ))

;; With use-package:
(use-package company-box
  :hook (company-mode . company-box-mode))

;https://emacs-lsp.github.io/lsp-mode/page/main-features/
(setq company-minimum-prefix-length 1
      company-idle-delay 0.0) ;; default is 0.2

When I start Emacs with the above settings and open a Wolfram Mathematica package .m file, the screenshot is shown in the following:

As you can see, the wolfram-mode won't be enabled automatically, till I issue the 'M-x wolfram-mode RET' command, then the screenshot will look like below:

Then I try to activate lsp-mode by M-x lsp RET, so far, the screenshot is as follows:

But till now, I still can't see any clues to use the capabilities supplied by lsp-wl through Emacs. Ant hints will be highly appreciated.
Regards,
HY

For lsp-mode, you need to be in a project directory. You can create a file in a folder like ~/project/test.wl and then from the last screenshot, you can select the project folder with I. You can always look into the lsp log buffers to see the status or errors if any. I forget the buffer name but you may check from its doc.

See the following:
werner@X10DAi:~/project$ ls
'#11.wl#'   test.wl

Then I run the following in Emacs:
Ctrl+x i  test.wl RET
M+x wolfram-mode RET
M-x lsp RET

Then I see the following in Messages buffer:
../Public/repo/github.com/jwiegley/use-package.git/bind-key.el: Warning: Use keywords rather than deprecated positional arguments to `define-minor-mode'
../Public/repo/code.orgmode.org/bzg/org-mode.git/lisp/org-table.el: Warning: Use keywords rather than deprecated positional arguments to `define-minor-mode' [2 times]
../Public/repo/code.orgmode.org/bzg/org-mode.git/lisp/org-list.el: Warning: Use keywords rather than deprecated positional arguments to `define-minor-mode'
../Public/repo/code.orgmode.org/bzg/org-mode.git/lisp/org-src.el: Warning: Use keywords rather than deprecated positional arguments to `define-minor-mode'
../Public/repo/code.orgmode.org/bzg/org-mode.git/lisp/org.el: Warning: Use keywords rather than deprecated positional arguments to `define-minor-mode'
For information about GNU Emacs and the GNU system, type C-h C-a.
LSP :: test.wl not in project or it is blacklisted.

and then from the last screenshot, you can select the project folder with I.

I still can't figure out the exact command sequence of Emacs you meant above.
But, based on your above comments about projectile and the official guide here, I installed the projectile package and add the following configuration into my ~/.emacs.d/init.el:
(projectile-mode +1)
;; Recommended keymap prefix on macOS
;(define-key projectile-mode-map (kbd "s-p") 'projectile-command-map)
;; Recommended keymap prefix on Windows/Linux
(define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map)

Then I open the directory ~/project from Emacs, and then I click on the file located under this directory from within Emacs. Finally run the following commands:
M-x wolfram-mode RET
M-x lsp RET

Now, I see the following messages in lsp log buffers named as *lsp-log* as shown below:

And the following file editing window:

But I still can't see any clues to use/activate/trigger the capabilities supplied by lsp-wl through Emacs till now.
Regards,
HY

This records an MWE on my side. Please take a look if it helps.

Your record is based on spacemacs, and I'm using plain Emacs. This may bring some additional difficulty to my scenario.
Why do you run on a source file of this repo as following?
$ env term=xterm-256color emacs ~/projects/lsp-wl-develop/init.wls
I have tried it with the exact same config and command order as yours but still can't access the corresponding capabilities supplied by this plugin.
My next step is to study the following related documents and demonstrations:
https://github.com/emacs-lsp/lsp-mode#presentationsdemos
https://www.youtube.com/playlist?list=PLEoMzSkcN8oNvsrtk_iZSb94krGRofFjN
And try to ask it on official Emacs lists, if necessary.
Regards,
HY

Just tried with vanilla emacs on my side. It can connect to the server with no problem. Can you take a look at the *lsp-log* buffer if the server is connected successfully?

$ emacs /home/werner/Public/repo/github.com/kenkangxgwe/lsp-wl.git/init.wls

M-x wolfram-mode RET
M-x lsp RET

At this point, the lsp-log buffer on my side is shown below:

It seems that the wolfram executable might not be started correctly. Could you change the wolfram path in your config as a detailed path or try WolframKernel?

I tried with each of the following settings in ~/.emacs.d/init.el:
                                       "/opt/Wolfram/Mathematica/12.1/Executables/WolframKernel"
                                       "/opt/Wolfram/Mathematica/12.1/Executables/wolfram"
                                       "/opt/Wolfram/Mathematica/12.1/Executables/wolframscript"

But after I run the following commands:
$  emacs /home/werner/Public/repo/github.com/kenkangxgwe/lsp-wl.git/init.wls
M-x wolfram-mode RET
M-x lsp RET

I always noticed the following info in *Messages* buffer:

Could you please share with me the complete configuration of the vanilla Emacs used by you to do the test discussed here?

I finally switched to Wolfram Workbench considering the following reasons:

Wolfram Workbench is the official product of Wolfram.
Emacs' community doesn't support wolfram language due that it's a proprietary/close source language.
Eclipse is an IDE, while vscode is just an IDE-like editor.
The function set of the currently implemented in Wolfram Workbench is rich and powerful enough, so any third party implementation developed from scratch, just like the job done by this project, will require tremendous effort and time to be able to match it.

Despite my comments above, I still deeply admire your efforts in developing this project.


add region cache state test & fix some issues of replica selector

This PR add the selector replica test for stale read, cover the most possible errors, and fix the bug the test finds:
Fixes:

when fallback to followers from leader, stale-read flag should be removed.
in some cases, the fallback to follower not work.
when using stale read, allow async reload region when leader is exhausted, because leader may just be unavailable for a while, and the late update of region info won't affect stale read processing.

/cc @crazycs520


Refactor to be used outside of Jetty

Refactor S3ProxyHandler to be agnostic to Jetty. Added a new file, S3ProxyHandlerJetty, to have codes related to Jetty.

@andrewgaul can you check the 2nd commit?

@andrewgaul my service will be a micro-service which provide S3 API to inner applications. Our inner applications will use the micro-service to upload documents to object storage. And allow end users to download the documents from the micro-service.

@andrewgaul is it possible to generate a kind of s3proxy-1.5.0-SNAPSHOT-jar-with-dependencies.jar which doesn't contain these ?

javax.*
org.elipse.jetty
org.slf4j

@shenghu It may be possible to slim down the S3Proxy jar a bit, specifically removing the Main class.  However most of the dependencies come from jclouds.  Specifically we need to provide Jetty for those using S3Proxy for unit tests.  If you have some ideas on how to narrow the dependencies while preserving this use case please open another pull request!


pip install -r requirements.txt failing

Get the following error while running pip install -r requirements.txt. I am running Python 3.6.4 and leveldb is already installed on Mac OSX El Capitan. OpenSSL v0.9.8.
Using cached Twisted-17.9.0.tar.bz2
Complete output from command python setup.py egg_info:
Download error on https://pypi.python.org/simple/incremental/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777) -- Some packages may not be found!
Couldn't find index page for 'incremental' (maybe misspelled?)
Download error on https://pypi.python.org/simple/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (ssl.c:777) -- Some packages may not be found!
No local packages or working download links found for incremental>=16.10.1
Traceback (most recent call last):
File "", line 1, in
File "/private/var/folders/fm/vdptw9y110zb8h0lljx706zm0000gn/T/pip-build-tajxta4/Twisted/setup.py", line 21, in
setuptools.setup(**_setup"getSetupArgs")
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "/Users/sangeetalakra/Documents/navneet/neo-python/venv/lib/python3.6/site-packages/setuptools/dist.py", line 315, in init
self.fetch_build_eggs(attrs['setup_requires'])
File "/Users/sangeetalakra/Documents/navneet/neo-python/venv/lib/python3.6/site-packages/setuptools/dist.py", line 361, in fetch_build_eggs
replace_conflicting=True,
File "/Users/sangeetalakra/Documents/navneet/neo-python/venv/lib/python3.6/site-packages/pkg_resources/init.py", line 850, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "/Users/sangeetalakra/Documents/navneet/neo-python/venv/lib/python3.6/site-packages/pkg_resources/init.py", line 1122, in best_match
return self.obtain(req, installer)
File "/Users/sangeetalakra/Documents/navneet/neo-python/venv/lib/python3.6/site-packages/pkg_resources/init.py", line 1134, in obtain
return installer(requirement)
File "/Users/sangeetalakra/Documents/navneet/neo-python/venv/lib/python3.6/site-packages/setuptools/dist.py", line 429, in fetch_build_egg
return cmd.easy_install(req)
File "/Users/sangeetalakra/Documents/navneet/neo-python/venv/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 659, in easy_install
raise DistutilsError(msg)
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('incremental>=16.10.1')

What operating system are you using? The package is available here: https://pypi.python.org/pypi/incremental
Perhaps El Capitan is not supported anymore? Can you double-check in the incremental project?

Hi Chris, I was finally able to set it up. Did a few things:

Downloaded the certificate from pypi website and used it with pip install
Upgraded openssl from 0.9.8 to 1.0.2 in my Mac
Export cppflags and ldflags
$ export CPPFLAGS="-I/opt/local/include"
$ export  LDFLAGS="-L/opt/local/lib"

It worked after doing all these steps

Looks like it would not work on Mac though. Testnet sync is throwing bunch of errors.

What kind of errors? They may be normal.
Testnet has a lot of bad contract operations, and seeing errors in their execution is fairly normal.

oh, ok. I will let it sync then. Almost 50% done now.
I am seeing messages like these:
[E 180318 10:41:24 ExecutionEngine:924] (69) VMFault.SYSCALL_ERROR
[E 180318 10:41:27 ExecutionEngine:924] (69) VMFault.SYSCALL_ERROR
[E 180318 10:41:27 ExecutionEngine:829] COULD NOT EXECUTE OP (136): 'NoneType' object has no attribute 'GetBigInteger' b'\x9f' LT
[E 180318 10:41:27 ExecutionEngine:830] 'NoneType' object has no attribute 'GetBigInteger'
Traceback (most recent call last):
File "/Users/sangeetalakra/Documents/navneet/neo-python/neo/VM/ExecutionEngine.py", line 821, in StepInto
self.ExecuteOp(op, self.CurrentContext)
File "/Users/sangeetalakra/Documents/navneet/neo-python/neo/VM/ExecutionEngine.py", line 511, in ExecuteOp
x2 = estack.Pop().GetBigInteger()
AttributeError: 'NoneType' object has no attribute 'GetBigInteger'
[E 180318 10:41:27 ExecutionEngine:829] COULD NOT EXECUTE OP (136): 'NoneType' object has no attribute 'GetBigInteger' b'\x9f' LT
[E 180318 10:41:27 ExecutionEngine:830] 'NoneType' object has no attribute 'GetBigInteger'
Traceback (most recent call last):
File "/Users/sangeetalakra/Documents/navneet/neo-python/neo/VM/ExecutionEngine.py", line 821, in StepInto
self.ExecuteOp(op, self.CurrentContext)
File "/Users/sangeetalakra/Documents/navneet/neo-python/neo/VM/ExecutionEngine.py", line 511, in ExecuteOp
x2 = estack.Pop().GetBigInteger()
AttributeError: 'NoneType' object has no attribute 'GetBigInteger'
[E 180318 10:41:27 ExecutionEngine:924] (53) VMFault.SYSCALL_ERROR
[E 180318 10:41:27 ExecutionEngine:924] (53) VMFault.SYSCALL_ERROR
[E 180318 10:41:27 ExecutionEngine:924] (53) VMFault.SYSCALL_ERROR
[I 180318 10:41:48 NotificationDB:209] persist new NEP5 contract: b'ffde6a0d2d5319807176b9d6084b5e4f8dc81544'
[E 180318 10:42:43 ExecutionEngine:924] (53) VMFault.SYSCALL_ERROR
[E 180318 10:42:55 ExecutionEngine:587] Could not checksig: 'NoneType' object has no attribute 'GetMessage'
[E 180318 10:42:55 ExecutionEngine:587] Could not checksig: 'NoneType' object has no attribute 'GetMessage'
[E 180318 10:42:55 ExecutionEngine:587] Could not checksig: 'NoneType' object has no attribute 'GetMessage'

@navneetlakra , as @localhuman said that's normal because there are a lot of bad contract executions on the testnet. Nothing to worry about :)

Thanks for your help on this guys. Finally was able to setup the neo-python node.


Internacionalization

Any ideia how to implement a internacionalization at this doc?

I'd be happy to accept a PR to internationalize the docs. Maybe a docs directory with markdown files for each locale?

I can work on Spanish translation

@shmesa22 Are you still working on that?

I could translate to pt-br.

I can help with spanish, just wanted to ask before jumping on it

@ordazgustavo @shmesa22 Follow https://github.com/kentcdodds/all-contributors/pull/82 to update with spanish translation.

Done, now there is a exemple to internacionalization. Tks


Tasks seem to be executed multiple times

I need to build a distributed worker system where a group's tasks are worked in serial fashion.  This module looks to be exactly what I need; however, I am running into a problem where it looks like the task is being passed to the worker multiple times.  Is this a known issue and if I were to spend the time to code an example, is this code active so that the issue can be fixed quickly?
Thanks,
-Dan

@baoshan  @henryoswald  @danpres14
#11
Enjoy :)


"Host mode" link not working

In the "unsupported features" section, the "Host mode" link does not work correctly. It lands on a generic Docker Docs page.

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

ID: b3be8120-7fc1-9818-53d4-61e7d3f36175
Version Independent ID: 38825f46-278d-7da0-d538-a1c7d1d96557
Content: Windows container networking
Content Source: virtualization/windowscontainers/container-networking/architecture.md
Product: windows-server
Technology: windows-containers
GitHub Login: @daschott
Microsoft Alias: jgerend

We hugely appreciate your contribution, feedback, and support to our technical documentation.
We’ve phased out GitHub Issues on this repository as the feedback mechanism for content and have replaced it with a new feedback system. For more information see, Content User Feedback. As part of this rollout, we are migrating your issue where our team will use your comments to improve the documentation experience. Unfortunately, this does mean you won't be able to access this issue after the migration is complete.
All issues will be migrated by Thursday 29th August 2024.
Once again, thank you for your valuable feedback, we hope you’ll continue to contribute using our new feedback system.


unable to connect with openvas

command >>sudo docker run -d -p 443:443 -p 9390:9390 --name openvas mikesplain/openvas
output log>>
d8fe2d93b215df0230b6b393790e7d41a51ae5a3c8208c7db2ad946d682d3972
docker: Error response from daemon: driver failed programming external connectivity on endpoint openvas (2923ba0b96cc116bacb6b35f812d4ff0c8661a707091254227643bf589944bb4): Error starting userland proxy: listen tcp <IP_ADDRESS>:443: listen: address already in use.

Resolved..
after stopping apache2..


[metrics] Convert RPC bytes and DirectSend bytes metrics to histogram

Motivation
From network benchmarks (e.g. #1592), it can be seen that the message size greatly affects the network performance. As such, it will be good to track the size of messages being shuttled across the network. The metrics being converted were previously counters, but will not be histogram. To get throughput metrics, we will now need to use libra_network_rpc_bytes_rate instead of just libra_network_rpc_bytes.
Have you read the Contributing Guidelines on pull requests?
Yes

lgtm, to test this, you can start a local network, and curl the metric port to get a list of counters.
To update the dashboard, you can just edit the current grafana dashboard and export the json file, update the ~/libra/terraform/templates/dashboards/network.json file
@bors-libra delegate+

:v: @bothra90 can now approve this pull request

:v: @bothra90 can now approve this pull request

@bors-libra r+

:pushpin: Commit 0ca6c66 has been approved by bothra90

:hourglass: Testing commit 0ca6c666b136fd56c18e4fea865db3b233baef82 with merge f2d10f2c299ba730149662b5ac4cc5a3e1f5690a...

:sunny: Test successful - checks-circle_commit_workflow
Approved by: bothra90
Pushing f2d10f2c299ba730149662b5ac4cc5a3e1f5690a to master...


Trading into Safe on Xdai looks like might have decimal in wrong place for 'you get' amount

Overview
When trading into safe on xdai the receive amount is way overstated - looks like decimal is in the wrong spot. Havent been able to recreate with safe on eth or bnb
References and additional details

https://jam.dev/c/05eb33a0-08f8-48d6-ae4c-644ce09e340c
Acceptance Criteria
Should state actual amount going to receive
Need By Date
No response
Screenshots/Mockups
No response
Ownership

[X] If my bounty needs engineering or needs product I have added the respective labels on the right
[X] As the sponsor of this bounty I will review the changes in a preview environment (ops/product) or review the PR (engineering)

Estimated effort
No response
Sponsor / Stakeholder
No response
Bounty Hunters

Join our discord
Include an expected timeline for you to complete work in the work plan when you apply for this bounty!
Please refer to this link for some basic info
Please do not start work on this issue until you are approved in Gitcoin.

I think this is an error from CoW:
https://api.cow.fi/xdai/api/v1/quote/ is returning "buyAmount": "2038101678190893936", while the precision is 15 in the coingecko API:
{"chainId":100,"address":"0x4d18815d14fe5c3304e87b3fa18318baa5c23820","name":"Safe","symbol":"SAFE","decimals":15,"logoURI":"https://assets.coingecko.com/coins/images/27032/thumb/Artboard_1_copy_8circle-1.png?1696526084"},
Nothing we can do on our side for now, do we have a contact at coingecko?

Submitted a request to coingecko, we can close this issue as it's not under our hands


Timeout

I believe it times out on this line: page = urllib.urlopen(url) in the download_page method and then it shows the error asking to check that you have inputted the name of the crypto correctly, which I have. So perhaps we need to change that error  / or add the timeout exception.

Thanks for the PR!


During fresh install and Starting of glass-isc-dhcp on raspberry pi 3b

glass is freshly installed and starting up but failing and gives following error output. Can you please help?
/bin/sh: 1: ./bin/dhcpd-pools: Exec format error
child_process.js:645
throw err;
^
Error: Command failed: ./bin/dhcpd-pools -c /etc/dhcp/dhcpd.conf -l /var/lib/dhcp/dhcpd.leases -f j -A -s e
/bin/sh: 1: ./bin/dhcpd-pools: Exec format error
at checkExecSyncError (child_process.js:602:13)
at execSync (child_process.js:642:13)
at Timeout._onTimeout (/opt/glass-isc-dhcp/app.js:322:21)
at ontimeout (timers.js:498:11)
at tryOnTimeout (timers.js:323:5)
at Timer.listOnTimeout (timers.js:290:5)

This is because dhcpd-pools needs to be compiled on platforms that don't work out of the box
See: https://github.com/Akkadius/glass-isc-dhcp#building-dhcpd-pools-optional


Not all object on the stack were destroyed after exception

If there is only 1 non-trivial object on the stack, destruction takes place normally
Otherwise, with N + 1 objects on the stack, destructors are called only for N

The object constructed first remains undestroyed

https://github.com/DymOK93/KTL/blob/feature_vector/runtime/src/exc_engine/x64/frame_handler4.cpp#L235
The number of nodes in the unwindin graph looks correct in debugger (N + 1)


Split mesos_local_address to 2 variables - mesos_ip and mesos_hostname

We use it in 2 places to set -
/etc/mesos-master/ip
/etc/mesos-master/hostname

and for slaves too. Would be better if this was split to 2 variables for flexibility (if you want to set the hostname to a DNS name and the IP to an IP address for example).
We'd also need to update the Vagrantfile where it is injecting these values.

It looks like it has been done. The variable "mesos_hostname" doesn't exist in the project. I think we can close the issue.

Closing


Upgrade Octokit

Better fixes the issue that came up in https://github.com/octokit/plugin-rest-endpoint-methods.js/issues/172

For some reason elm-review 2.2.6 has a problem with the --elmjson option and the action is still using 2.2.6 to run. Will try again tomorrow.


tabbing out of autocomplete input selects the focused item in multiple mode

I've found an issue when using the autocomplete in the multiple mode. If I press the Tab key while the AutocompleteList is closed, it still selects the focused option. It seem this line has to do with it: https://github.com/anubra266/choc-autocomplete/blob/ffabbf7b45b66df387ead3034f9884888f88ea29/src/use-autocomplete.ts#L324
Expected behavior: the input should just blur and no extra selection should be made
Can we make it select item upon Tab press only if the autocomplete list is open?

Hello @Janekk and thank you for reporting this.  I think I was able to reproduce what you're saying with both multiple and single selects.  Let me know if the below sounds about right.

Click into the autocomplete (list opens)
Press escape (list closes, but focus remains)
Tab out of autocomplete (last focused item is selected)

This should be fixed in v5.2.9, but let me know if the issue still happens and I'll re-open this issue.


Added method to set the component's renderer.

After created, the component does not allow to set the renderer and the class has many constructors.

Hi @fincatto, thanks for your contribution.
I see one issue with your proposed change:
The nested DropDownChoice keeps its own reference to the renderer. So setting the renderer after initilialization of the editor (the DropDownChoice) will have no effect.

Hi @svenmeier.
I saw that passing the null model at startup has no practical effect on the class, so I'm using the parameter of the constructor.
I will close the PR and use it this way, which already serves me.
Thank you!


Use hash in README instructions

Good security practice? 🤷♀

Maybe it would be better to add a comment suggesting to prefer hashes? Otherwise we'll have to keep updating this with each release, which is too easy to forget

OK, done. Thanks for review!

Thanks @pllim !


Secondary label examples for radio and checkbox

Before merging this I'd like to look at the site docs

the row-gap should be spacing-50 (2,4,6,8) between labels and descriptions - could we update the examples please?


How can i load a DX12 Texture?

What to do from here?
bool TextureBase::Load(const wchar_t *lpCmdLine)
{
	TexMetadata mdata;
	HRESULT hr = GetMetadataFromDDSFile(lpCmdLine, DDS_FLAGS_NONE, mdata);
	if (FAILED(hr))
	{
		wchar_t buff[2048] = {};

		swprintf_s(buff, L"Failed to open texture file\n\nFilename = %ls\nHRESULT %08X", lpCmdLine, hr);

		OutputDebugString(buff);

		return false;
	}

	UINT g_iMaxIndex;

	if (mdata.dimension == TEX_DIMENSION_TEXTURE3D)
	{
		if (mdata.arraySize > 1)
		{
			wchar_t buff[2048] = {};
			swprintf_s(buff, L"Arrays of volume textures are not supported\n\nFilename = %ls\nArray size %zu", lpCmdLine, mdata.arraySize);
			OutputDebugString(buff);
			return 0;
		}

		g_iMaxIndex = static_cast<UINT>(mdata.depth);
	}
	else
	{
		g_iMaxIndex = static_cast<UINT>(mdata.arraySize);
	}

	ScratchImage image;
	hr = LoadFromDDSFile(lpCmdLine, DDS_FLAGS_NONE, &mdata, image);
	if (FAILED(hr))
	{
		wchar_t buff[2048] = {};

		swprintf_s(buff, L"Failed to load texture file\n\nFilename = %ls\nHRESULT %08X", lpCmdLine, hr);

		OutputDebugString(buff);

		return 0;
	}

	// Special case to make sure Texture cubes remain arrays
	mdata.miscFlags &= ~TEX_MISC_TEXTURECUBE;

// *****************************************************************************
// I have the Texture in image, but....HOW to store it on a DX12 Buffer?
// *****************************************************************************
Thanks

There are various ways to perform the upload of course, some more efficient than others.
In the DirectXTex library, you can make use of the functions CreateTexture or CreateTextureEx which will create the committed resource, then PrepareUpload to set up a vector of D3D12_SUBRESOURCE_DATA which points into the loaded Image. From there you can create a UPLOAD resource and then use the D3DX12 utility header's function UpdateSubresources. This is all covered in the wiki.
A more efficient solution is to use the DirectX Tool Kit for DX12 instead of DirectXTex which has light-weight texture loaders that utilize the ResourceUploadBatch helper. This can perform uploading of several textures in a batch, as well as supporting DirectCompute-based auto-generation for mipmaps.

If you are confused as to why I've implemented two different ways to load textures, see this blog post.

Great!!! I have it working now!!
Not, it's time for Generating MipMaps.... :)


Disable XLA with TensorFlow determinisim

Currently if someone runs https://keras.io/examples/keras_recipes/reproducibility_recipes/, gets an error:
(PR for fixing recipe https://github.com/keras-team/keras-io/pull/1941)
UnimplementedError: Graph execution error:

Detected at node gradient_tape/sequential_1/max_pooling2d_1_2/MaxPool2d/MaxPoolGrad defined at (most recent call last):
<stack traces unavailable>
GPU MaxPool gradient ops do not yet have a deterministic XLA implementation.
	 [[{{node gradient_tape/sequential_1/max_pooling2d_1_2/MaxPool2d/MaxPoolGrad}}]]
	tf2xla conversion failed while converting __inference_one_step_on_data_2978[]. Run with TF_DUMP_GRAPH_PREFIX=/path/to/dump/dir and --vmodule=xla_compiler=2 to obtain a dump of the compiled functions.
	 [[StatefulPartitionedCall]] [Op:__inference_one_step_on_iterator_3061]

Considering Keras 2, which had jit_compile = None (not enabled by default) it's better not to use XLA when TF determinism is enabled?
(I can check the failed tests if the team is willing to merge this PR)

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 57.44%. Comparing base (084b7e1) to head (afc2ecb).

:exclamation:  There is a different number of reports uploaded between BASE (084b7e1) and HEAD (afc2ecb). Click for more details.
HEAD has 6 uploads less than BASE

Flag
BASE (084b7e1)
HEAD (afc2ecb)

keras
4
1

keras-torch
1
0

keras-tensorflow
1
0

keras-jax
1
0

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #20315       +/-   ##
===========================================
- Coverage   78.83%   57.44%   -21.39%
===========================================
  Files         512      512
  Lines       48995    48998        +3
  Branches     9021     9022        +1
===========================================
- Hits        38624    28146    -10478
- Misses       8509    19043    +10534
+ Partials     1862     1809       -53

Flag
Coverage Δ

keras
57.44% <100.00%> (-21.26%)
:arrow_down:

keras-jax
?

keras-numpy
57.44% <100.00%> (+0.01%)
:arrow_up:

keras-tensorflow
?

keras-torch
?

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

Thanks for the PR! Yes, this seems like a reasonable change. Please take a look at the test failure: FAILED keras/src/trainers/trainer_test.py::TrainerDistributeTest::test_end_to_end_tf_distribute - RuntimeError: Random ops require a seed to be set when determinism is enabled. Please set a seed before running the op, e.g. by calling tf.random.set_seed(1).

Hi @fchollet, I have no idea why jax backend test failed since I specially decorated the test for tensorflow backend:
https://github.com/keras-team/keras/blob/f24c863e7814d52aff9a6eaad5ef28b3a908d8d2/keras/src/trainers/trainer_test.py#L1721-L1741
If I remove @pytest.mark.requires_trainable_backend, numpy backend fails on the same test. Any ideas?


Create eventclassifiercode / Actual, Planned, Estimated

Add file to store Actual, Planned, Estimated

@elulus - Can you rename the file to be a .csv file

Closing this PR as It has been reworked with #92


Missing of sourmap

When working with webpack, it warns as below:
WARNING in ./node_modules/react-draggable/web/react-draggable.min.js
Module Warning (from ./node_modules/source-map-loader/index.js):
(Emitted value instead of an instance of Error) Cannot find SourceMap 'react-draggable.min.js.map': Error: Can't resolve './react-draggable.min.js.map' in '/home/orzorzorzorz/github/mini-xmind/node_modules/react-draggable/web'

i have same error with<EMAIL_ADDRESS>

Fixed in 4.0.3


sockets: Connect doesn't send new SYN in case the first connection attempt fails

In the current implementation of the sockets, when doing a connect call, if the remote doesn't reply with SYN, ACK then the call will never return and no SYN will ever be re-sent.
This is because _impl_zsock_connect calls net_context_connect with a timeout value of K_FOREVER that means that after sending the SYN the function will wait forever for an answer, if none comes then we are stuck.
I think the comment of net_context_connect would benefit in being clarified because it reads like this:
 * @param timeout    The timeout value for the connection. Possible values:
 *                   * K_NO_WAIT: this function will return immediately,
 *                   * K_FOREVER: this function will block until the
 *                                      connection is established,
 *                   * >0: this function will wait the specified ms.

It is blocking until the connection is established, however it won't resend any SYN.
I personally made a modification so I can work with them but it changes the behaviours of the sockets to not being blocking. In Linux, correct me if I'm wrong, but by default sockets are blocking and on connect, the SYN will actually be resent until an answer is received at which point it will return.
Here is my modification, I had to do the net_conn_unregister otherwise, on the retries net_tcp_register complains a connection handler is already registered.
	err = net_context_connect(ctx, addr, addrlen, NULL, TCP_CONNECT_TIMEOUT, NULL);
	if (err < 0) {
		/* Cannot connect, we need to unregister the
		 * connection handler, otherwise net_tcp_register
		 * will complain during the next connection attempt
		 */
		if (net_conn_unregister(ctx->conn_handler) < 0) {
			SYS_LOG_WRN("Cannot unregister socket connection handler");
		}
		errno = -err;
		return -1;
	}

With this modification I can see on Wireshark that the new SYN are sent at every call, the only doubt I have is regarding the local port number, which stays the same on all retries. In net app I noticed the port is forced to be changed between each retries however I looked around in RFC etc... and didn't find anything that said this is mandatory so I left it like that.
In my opinion, to make a proper implementation you'd have to check the SOCK_NONBLOCK flag and then either do a loop in connect or let user call connect each time in case of non blocking.

Now all hopes are on https://github.com/zephyrproject-rtos/zephyr/pull/11443 to resolve this issue.

This will be not fixed in an existing TCP stack as it requires quite a re-engineering of the existing source.

what's a good workaround for this?

@leodido99 : Can you tell us in which file did you make your modification?

@leodido99 : Can you tell us in which file did you make your modification?

I kinda missed this question. The problem is located in subsys/net/lib/sockets/sockets.c in function zsock_connect_ctx. Specifically this call : https://github.com/zephyrproject-rtos/zephyr/blob/a30162be352646c4d9dc2cc9a0cf1dfd9911a476/subsys/net/lib/sockets/sockets.c#L328
Here K_FOREVER is passed to net_context_connect which eventually leads to a call to net_tcp_connect which takes a semaphore using this timeout. The semaphore is released by tcp_synack_received so if we never receive synack then we are stuck forever.

We have a timeout now for connect call, I think that can be considered as a workaround for this issue so closing this one.

We have a timeout now for connect call, I think that can be considered as a workaround

As a workaround, yes. As a solution - no. So, reopening. (Added "future" milestone, so there was less incentive to close this unfixed issue during release rush of a particular version.)

Adding low, since there seems to be a workaround, at least


Add server configuration option to add default set of labels for workflows that has no labels specified

Fixes #4324
Probably fixes #2634
Have not tested yet but wanted to open to get initial feedback

I'm already running this in our production (cherry-picked on v2.7.1) and currently all seems to work as expected so I think it's ready to review