Download with service

hi , i was wondering if i can use your library to download file with  a service and show  progress in notification

Yes, Absolutely!


[extend] with useDefault=true doesn't work; only custom rules are matched

Describe the bug
When I create a .gitleaks.toml config and define a custom rule, it overrides the default ruleset and only the custom rules are detected. Adding the [extend] option with useDefault in .gitleaks.toml does not change that behavior.
If I stage the following file in git:
USER_POOL_ID="AKIAIOSFBBAA1EXAMPLE"
TEST_API="test-api-9bc40c3b-391f-487f-9ced-5da08af1481e"

And with the following .gitleaks.toml defined in the root:
[extend]
useDefault = true

[[rules]]
id = "test-api-token"
description = "Test API Tokens"
regex = '''test-api-[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[8|9aA|bB][0-9a-f]{3}-[0-9a-f]{12}'''
tags = ["credentials","hardcoded","api"]
keywords = [
  "authorization",
  "api",
  "token",
]

I get the result:
Finding:     TEST_API="REDACTED"
Secret:      REDACTED
RuleID:      sbom-api-token
Entropy:     4.124100
File:        env
Line:        2
Fingerprint: env:sbom-api-token:2

However, when I remove that .gitleaks.toml file, I get the following result"
Finding:     USER_POOL_ID="REDACTED"
Secret:      REDACTED
RuleID:      aws-access-token
Entropy:     3.684184
File:        env
Line:        1
Fingerprint: env:aws-access-token:1

To Reproduce
Steps to reproduce the behavior:

n/a

Expected behavior

both the default rules and the custom defined rules should be matched when using a .gitleaks.toml config with [extend] useDefault = true.

Screenshots

n/a

Basic Info (please complete the following information):

OS: macos 13.3.1
Gitleaks Version: 8.16.3

Additional context

running through pre-commit and through the cli both result in the same behavior.

cc @zricethezav

Do you see the following line if you enable --log-level=debug?
1:56PM DBG using gitleaks config .gitleaks.toml from `--config`
1:56PM DBG extending config with default config

I tested this with Gitleaks v8.16.3 on WSL (Ubuntu 22.04.2 LTS; Windows 10) and can't seem to reproduce the behaviour:
$ gitleaks detect --config .gitleaks.toml --verbose --log-level=debug --source ./gitleaks-1164/

    ○
    │╲
    │ ○
    ○ ░
    ░    gitleaks

1:58PM DBG using gitleaks config .gitleaks.toml from `--config`
1:58PM DBG extending config with default config
1:58PM DBG executing: /usr/bin/git -C gitleaks-1164 log -p -U0 --full-history --all
Finding:     TEST_API="test-api-9bc40c3b-391f-487f-9ced-5da08af1481e"
Secret:      test-api-9bc40c3b-391f-487f-9ced-5da08af1481e
RuleID:      test-api-token
Entropy:     4.079656
File:        env
Line:        2
Commit:      a58a0c7c68fbc37395bfbaded81758b29e8d6c61
Author:      Richard Gomez
Email<EMAIL_ADDRESS>Date:        2023-04-25T17:58:27Z
Fingerprint: a58a0c7c68fbc37395bfbaded81758b29e8d6c61:env:test-api-token:2

Finding:     USER_POOL_ID="AKIAIOSFBBAA1EXAMPLE"
Secret:      AKIAIOSFBBAA1EXAMPLE
RuleID:      aws-access-token
Entropy:     3.441446
File:        env
Line:        1
Commit:      a58a0c7c68fbc37395bfbaded81758b29e8d6c61
Author:      Richard Gomez
Email<EMAIL_ADDRESS>Date:        2023-04-25T17:58:27Z
Fingerprint: a58a0c7c68fbc37395bfbaded81758b29e8d6c61:env:aws-access-token:1

1:58PM INF 1 commits scanned.
1:58PM DBG Note: this number might be smaller than expected due to commits with no additions
1:58PM INF scan completed in 56.9ms
1:58PM WRN leaks found: 2

Thanks for the quick reply! I made a total dummy mistake, and everything was working as intended.
I left out the most relevant part of the config I had -- allowlist.
[allowlist]
description = "global allowlist."
paths = [
  '''test/*''',
  '''.yarn/*'''
]
stopwords = ['''EXAMPLE''']

When I take out stopwords, I saw both secrets and that's when I realized I put the word "EXAMPLE" in the USER_POOL_ID. I added more tests and confirmed that everything is working as expected.
The command I am running is gitleaks protect --config .gitleaks.toml --verbose --staged and yes, I do see that the extending is happening.
Thank you again! Closing this out.


🐛[BUG]: OmegaConf's ListConfig and DictConfig are not JSON serializable

Version
0.3.0
On which installation method(s) does this occur?
No response
Describe the issue
With the recent checkpoint refactor, there is a  constraint that the model arguments should be JSON serializable. The dominant approach for handling configs in Modulus is hydra configs, which relies on OmegaConf. Some of OmegaConf's data types are not serializable, including ListConfig and DictConfig, which limits the use of the new checkpointing feature with hydra configs. We need to custom JSON encoder to handle these types.
Minimum reproducible example
No response
Relevant log output
File "/usr/local/lib/python3.10/dist-packages/modulus/models/module.py", line 181, in save
    json.dump(self._args, f)
  File "/usr/lib/python3.10/json/__init__.py", line 179, in dump
    for chunk in iterable:
  File "/usr/lib/python3.10/json/encoder.py", line 431, in _iterencode
    yield from _iterencode_dict(o, _current_indent_level)
  File "/usr/lib/python3.10/json/encoder.py", line 405, in _iterencode_dict
    yield from chunks
  File "/usr/lib/python3.10/json/encoder.py", line 405, in _iterencode_dict
    yield from chunks
  File "/usr/lib/python3.10/json/encoder.py", line 438, in _iterencode
    o = _default(o)
  File "/usr/lib/python3.10/json/encoder.py", line 179, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type ListConfig is not JSON serializable

Environment details
No response

Hi @mnabian
Can you elaborate on what your running in this case? I'm imaging that the JSON saved in the model checkpoints is written by the checkpoint util, then read by the same util. Thus so long as the checkpoint functions can parse the JSON file in isolation, its fine.
How does this JSON get processed by hydra?

@NickGeneva this error occurs when saving the checkpoint and input arguments of a model instantiated using Hydra configs for the input arguments. In this case, the model arguments might contain some of OmegaConf's data types that aren't JSON-serializable. As a result, it gives an error when attempting to save the arguments in a JSON file

@mnabian Which model is accepting direct hydra configs into its constructor? And is that a strict constraint?
I'm assuming it is something like this?
@hydra.main(...)
def main(cfg: DictConfig):
    model = MyModel(cfg.model_params)

@akshaysubr currently only the models in the unified recipe for weather prediction accept direct hydra configs. But I would also like to change other examples and have them all using hydra configs as a unified approach for handling configs in Modulus-Launch: https://github.com/NVIDIA/modulus-launch/issues/91
No this is not a strict constraint as long as we have a proper way of instantiating models with args from hydra configs.

This will be fixed at the call site. See the discussions here: https://github.com/NVIDIA/modulus/pull/134


Fixes #4095 - Used Map instead of Set to store apps in Group.

@jmlvanre Thanks! LGTM. There are a couple of comments, that should be addressed before merge.
I'm also interested in the representation problems you mentioned - not 100% sure what you mean.

Does not think this has something to do with this PR.
*** 1 TEST FAILED ***
[14:06:38][Step 3/3] ResidentTaskIntegrationTest:
[14:06:38][Step 3/3]
[14:06:38][Step 3/3] - Restart *** FAILED *** (30 seconds, 509 milliseconds)
[14:06:38][Step 3/3]   java.lang.AssertionError: Waiting for event deployment_success to arrive took longer than 30 seconds. Give up.

Thanks!


Use lock for thread safety

FFTW is not thread safe, except for fftw_execute.
How about using c++11 locks around calls to fftw_plan_dft and fftw_destroy_plan for thread safety?

Sorry for not responding earlier, but this is a great idea! I was going to suggest you write a PR, and so you did, excellent!


Headless   computing

Headless   computing
Intermediate
Cloud   Two
Command   line intro, Git for Cloud computing

headless-computing

Put this on hold for now. Lets focus on Nectar services

shelving


Advanced and dynamic geology based on plate tectonics

We used to have randomly deposited basic minerals that just pop up just about wherever. We want to arrive at a dynamic system with a few major layer types, filled with a series of filler layers, veins, pockets, etc, similar to DF and RL geology. This way addon blocks can simply state what layer they should exist in and in what shape
This is not a simple system, but it is fairly independent so could be picked up early by a skilled contributor.
Relates somewhat to #140 as these veins and layers could hold a secondary resource

Definitely a dream-land thing, and by now I think it would be better located at https://github.com/Terasology/OreGeneration


not finding the metro tools in the toolbox reference dialog

i have installed all your processes from NUGET, and i have gotten the forms to adjust to the new framework but i cant find a listing of MetroFramework components to load in the toolbox.  Can you give me some assistance?
thanks
dave

Create a new entry in the toolbox call it Metro then drag and drop the MetroFramework.dll into it...you'll have your controls

Thanks for the help
I got the controls after adding the dll
-------- Original message --------From: loyalty  Date:06/01/2015  12:34 AM  (GMT+02:00) To: thielj/MetroFramework  Cc: Feras Dawod  Subject: Re: [MetroFramework] not finding the metro tools in the toolbox reference dialog (#37)

Create a new entry in the toolbox call it Metro then drag and drop the MetroFramework.dll into it...you'll have your controls

Reply to this email directly or view it on GitHub:
https://github.com/thielj/MetroFramework/issues/37#issuecomment-68794623

i have installed all your processes from NUGET, and i have gotten the forms to adjust to the new framework but i cant find a listing of MetroFramework components to load in the toolbox. Can you give me some assistance?
thanks
dave

After Download MetroFramework  then click on Toolbox then choose "Add Tab" from context menu strip  then give any name as you want after then right  Click on the tab which is create recently . then choose "Choose item.." from context menu strip like bellow...

Then "Choose Toolbox item" dialog box appear

then click "Browse.." button and select MetroFramework.dll (..\YoursSolutionName\packages\MetroModernUI.<IP_ADDRESS>\lib\net) then click "open"

then click finaly ok button...
then you get all MetroFramework tools from recently added tab section.

enjoy....
Thank you.👍🙂🙃

Now that is what i call a proper guide line. Many thanks buddy.

i have installed all your processes from NUGET, and i have gotten the forms to adjust to the new framework but i cant find a listing of MetroFramework components to load in the toolbox. Can you give me some assistance?
thanks
dave

After Download MetroFramework then click on Toolbox then choose "Add Tab" from context menu strip then give any name as you want after then right Click on the tab which is create recently . then choose "Choose item.." from context menu strip like bellow...

Then "Choose Toolbox item" dialog box appear

then click "Browse.." button and select MetroFramework.dll (..\YoursSolutionName\packages\MetroModernUI.<IP_ADDRESS>\lib\net) then click "open"

then click finaly ok button...
then you get all MetroFramework tools from recently added tab section.

enjoy....
Thank you

Thanks bro, Others should learn from you. this is a real help.


Overlapping Bar and Column Chart

Thank you for the excellent work being done here. I'm curious if you have an opinion on how hard it would be to implement an overlapping Bar or Column chart similar to this:
https://images.app.goo.gl/AMwqbdqhxMPiPJiB8
Do you think the mixed chart would be relevant here, with two or more bar charts stacked over the other with scaled margins? I'm willing to tackle this, but would like to get your estimation of effort and if possible a point in the right direction.
Thanks!

Please assign this issue to me


Support EBNF grammars as schema language

See https://www.npmjs.com/package/ebnf - supports BNF and W3C's EBNF notation.

Use case: configuration format of libsites-config.


Lark Notification Support

Lark Notification Support

I want to solve this problem. Please assign it to me.


xml schema not working

So I am setting up redisson with spring per the doc https://github.com/redisson/redisson/wiki/14.-Integration with frameworks#141-spring-framework. However the schema doesn't seem to be working. I'm getting 301 and is redirected to the homepage of redisson. Am I missing something?
Please check following links:
http://redisson.org/schema/redisson
http://redisson.org/schema/redisson/redisson.xsd
Thanks!

Hi, this feature is will be available in the next release. I just finished the documentation in preparation for it. Meanwhile you can checkout the master branch and use it in the same way as the tests were used. https://github.com/redisson/redisson/blob/master/redisson/src/test/resources/org/redisson/spring/support/namespace.xml

Fixed. Please reset cache before the try.


bigint arguments

Problem
For all of the functions that take in values that represent Clarity ints and uints, they should probably accept bigint | number, since these types can be larger than a number (128-bit vs 64-bit).
Solution
Update the parameter types to be bigint | number.
Additional context

🙏🏻 We typically have an IntegerType for this where was it missing?

Oh, nice. I see that now. I was getting an error from signPoxSignature. It looks like just the period and reward cycle were the problem. Maybe that's intentional though?

Yeah, those we left as number intentionally, but maybe there's a case they should be bigint.

I'll close for now, please reopen if you feel bigint would be better. Realistically it should never be reached/needed, so I hope number is more obvious to be a lower "number" in users' minds -- but who knows :)


Add template for PRs.

Solves #205

Shall we put it under .github instead? By putting it into docs, quarto will build it as part of the docs haha.
https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/creating-a-pull-request-template-for-your-repository


Feature request: Proxy data from github gist

At the moment when using gist id feature, it just loads the data from the gist and embeds it into the url. This creates a problem first when the the gist or any other snippet is too big due to max url length limits, second when you keep your snippets in github it can be tedious to update gist -> create carbon url -> update in the blog post on every change.
Would it be possible for carbon to act as a proxy so that for example url carbon.now.sh/GIST_ID_HERE would actually serve the gist content just enhanced with the carbon styling so it is directly embeddable and updated in case the gist is updated?

@aocenas this is WIP/beta functionality, but you can now create a file called ~carbon.json in any gist, and within that file, include the style for that Carbon screenshot as a JSON object.
Here is an example:
Gist: https://gist.github.com/mfix22/82d742f4efad9757cc826d20f2a5e5af
Carbon: https://carbon.now.sh/mfix22/82d742f4efad9757cc826d20f2a5e5af
Is that what you were thinking? If so, please close the issue 🙂

@mfix22 That is pretty handy. Sorry for dragging this so long, but I am not sure this makes the feature request go away :).
Can I at this moment embed https://carbon.now.sh/mfix22/82d742f4efad9757cc826d20f2a5e5af directly in the Medium (or other place)? Because that would be great, I could update the gist without needing to regenerate the embedded urls in my articles. What I see though is that I need to load the carbon website let it load the gist data and then generate embed url which has the content of the gist copied in the url query param. That would mean I have to repeat that process of loading the carbon web end generate embed url every time I change something in the gist. So this is kinda the crux of my issue.
On the other hand I get it that such a workflow would make carbon probably invisible (or at least much less visible) to the user and so maybe isn't the direction you want to go. If so you can probably close this with "not going to do".

@aocenas we actually merged a PR that implements exactly what you are describing, we just haven't deployed it yet. I am going to deploy it tomorrow though 👍

@mfix22 That is great, let me know when I can try it.

@aocenas our Embed.ly provider was just updated! Everything is working end to end now.
To see an example, check out this URL:
https://embed.ly/code?url=https%3A%2F%2Fcarbon.now.sh%2Fmfix22%2Ff08d913cf4a0792ed00332e876f5efd4
which shows Carbon proxying the Gist from https://gist.github.com/mfix22/f08d913cf4a0792ed00332e876f5efd4
Really excited so see how people use this functionality!

@mfix22 Thats great, exactly what I had in mind. Thanks for the work :)


Empty create workspace window

When I run on latest dev3 branch (gradlew run), and when I add jar files to recaf gui in windows, I get this "Create Workspace" window that I cannot close and it is empty. Can only kill the app.

Cannot reproduce on my end:
https://user-images.githubusercontent.com/21371686/196528833-22a10fe5-dda7-413b-be1e-fbb8feccaa57.mp4

java.lang.NullPointerException
at com.sun.prism.d3d.D3DResourceFactory.createPresentable(D3DResourceFactory.java:350)
at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:81)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at com.sun.javafx.tk.RenderJob.run(RenderJob.java:58)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:126)
at java.base/java.lang.Thread.run(Thread.java:834)
java.lang.NullPointerException
at com.sun.prism.d3d.D3DResourceFactory.createPresentable(D3DResourceFactory.java:350)
at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:81)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at com.sun.javafx.tk.RenderJob.run(RenderJob.java:58)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:126)
at java.base/java.lang.Thread.run(Thread.java:834)
java.lang.NullPointerException
at com.sun.prism.d3d.D3DResourceFactory.createPresentable(D3DResourceFactory.java:350)
at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:81)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at com.sun.javafx.tk.RenderJob.run(RenderJob.java:58)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:126)
at java.base/java.lang.Thread.run(Thread.java:834)

btw. is this one normal when opening jar?
22:01:51.559 [ContentSource:INFO] Read 9005 classes, 70 files 22:01:52.325 [CompileDependencyUpdater:INFO] Attempting to generate phantoms, analyzing 9005 classes... 22:02:02.102 [CompileDependencyUpdater:ERROR] Failed to generate phantom classes org.clyze.jphantom.exc.InsolvableConstraintException: java.lang.Object <: javafx.scene.Node 	at org.clyze.jphantom.constraints.solvers.BasicSolver.solveClassGraph(BasicSolver.java:176) 	at org.clyze.jphantom.constraints.solvers.InterfaceSolver.solve(InterfaceSolver.java:134) 	at org.clyze.jphantom.constraints.solvers.AbstractSolver.solve(AbstractSolver.java:54) 	at org.clyze.jphantom.constraints.solvers.InterfaceSolver.solve(InterfaceSolver.java:66) 	at org.clyze.jphantom.constraints.solvers.BasicSolver.solve(BasicSolver.java:147) 	at org.clyze.jphantom.constraints.solvers.BasicSolver.solve(BasicSolver.java:13) 	at org.clyze.jphantom.constraints.solvers.ForwardingSolver.solve(ForwardingSolver.java:36) 	at org.clyze.jphantom.constraints.solvers.ForwardingSolver.solve(ForwardingSolver.java:36) 	at org.clyze.jphantom.constraints.solvers.PruningSolver.solve(PruningSolver.java:19) 	at org.clyze.jphantom.JPhantom.run(JPhantom.java:105) 	at me.coley.recaf.util.JPhantomUtil.generate(JPhantomUtil.java:76) 	at me.coley.recaf.util.CompileDependencyUpdater.createPhantoms(CompileDependencyUpdater.java:55) 	at me.coley.recaf.util.CompileDependencyUpdater.lambda$install$0(CompileDependencyUpdater.java:37) 	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) 	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) 	at java.base/java.lang.Thread.run(Thread.java:834)

I think this is the reason of empty window (happens when empty window is shown).

You can use triple ` to create a prettier code block for logs and such:
foo {
  bar {
   ...
  }
}

Since its a java.lang.NullPointerException in the internal JFX logic (com.sun.prism.d3d.D3DResourceFactory.createPresentable(D3DResourceFactory.java:350)) this isn't really something we can fix ourselves AFAIK. Normally linux users encounter all the weird JFX bugs, odd that you're on Windows and its bugging out.
Can you share your specs? Recaf can output them for you under Help > System info

btw. is this one normal when opening jar?

JPhantom fails very often. We're looking at replacing it down the line because this is unfortunately common. Though you can ignore it. The error in the log just means it did not generate phantom classes. The workspace and such was created successfully.

**System**
| Name | Architecture | Processors |
| -------- | -------- | -------- |
| `Windows 10` | `amd64` | `12` |

**Java**
| Version | VM name | VM vendor | Home | Supports compiler | Supports attach |
| -------- | -------- | -------- | -------- | -------- | -------- |
| `11.0.9` | `Java HotSpot(TM) 64-Bit Server VM` | `Oracle Corporation` | `C:\Program Files\Java\jdk-11.0.9` | `true` | `true` |

**JavaFX**
| Version |
| -------- |
| `19` |

but we cannot be sure, there could be some weird JavaFX funnies going on but we sadly cannot reproduce the error at this current stage

could you try using a diffrent jdk / jre and see if it works there?

This also probably doesn't tell you anything :)

This also probably doesn't tell you anything :)

Hey, I'm just happy to see a debugger screenshot. But sadly yeah I'm not familiar enough with JFX internals to figure out whats wrong here.

This one fails in the end... nCreateTexture... will try other java version tomorrow...

my only advice is to either retry or use a diffrent jdk

same with 17. got this in console also both times (for 11 and 17):
Unsupported JavaFX configuration: classes were loaded from 'unnamed module @794cb805'

Unsupported JavaFX configuration: classes were loaded from 'unnamed module @794cb805'

JavaFX wants you to use to new Jigsaw module system from Java 9+ but we don't. Ideally we'd find a way to mute the warning since it doesn't affect behavior.

I actually know now how you can reproduce. Add a lot (e.g. 100 jar files) to workspace. Then when that "close workspace" window is rendered, the list control of jars is expanded to be as tall as it can - in my case it cannot fit the window and then in crashes...
What I actually wanted is to try running single .jar (which needs all those dependencies) with SSVM. Do I need to add those to workspace also, or is it possible to somehow specify classpath?

SSVM should be ran on java 8, in 3x you can define a remote jvm to load system libraries from because the modern ones are not implemented in SSVM yet

@Nowilltolife When I change that SSVM setting to JDK17, now I get this one:
java.lang.UnsatisfiedLinkError: sun/nio/fs/WindowsNativeDispatcher.GetFileAttributesEx0(JJ)V
	at sun.nio.fs.WindowsNativeDispatcher.GetFileAttributesEx0(Native Method)
	at sun.nio.fs.WindowsNativeDispatcher.GetFileAttributesEx(WindowsNativeDispatcher.java:380)
	at sun.nio.fs.WindowsFileAttributes.get(WindowsFileAttributes.java:308)
	at sun.nio.fs.WindowsFileAttributeViews$Basic.readAttributes(WindowsFileAttributeViews.java:51)
	at sun.nio.fs.WindowsFileAttributeViews$Basic.readAttributes(WindowsFileAttributeViews.java:38)
	at sun.nio.fs.WindowsFileSystemProvider.readAttributes(WindowsFileSystemProvider.java:198)
	at java.nio.file.Files.readAttributes(Files.java:1763)
	at java.util.zip.ZipFile$Source.get(ZipFile.java:1217)
	at java.util.zip.ZipFile$CleanableResource.<init>(ZipFile.java:727)
	at java.util.zip.ZipFile$CleanableResource.get(ZipFile.java:836)
	at java.util.zip.ZipFile.<init>(ZipFile.java:247)
	at java.util.zip.ZipFile.<init>(ZipFile.java:177)
	at java.util.jar.JarFile.<init>(JarFile.java:348)
	at jdk.internal.loader.URLClassPath$JarLoader.getJarFile(URLClassPath.java:834)
	at jdk.internal.loader.URLClassPath$JarLoader$1.run(URLClassPath.java:779)
	at jdk.internal.loader.URLClassPath$JarLoader$1.run(URLClassPath.java:772)
	at java.security.AccessController.doPrivileged(Native Method)
	at jdk.internal.loader.URLClassPath$JarLoader.ensureOpen(URLClassPath.java:771)
	at jdk.internal.loader.URLClassPath$JarLoader.<init>(URLClassPath.java:746)
	at jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:493)
	at jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:476)
	at java.security.AccessController.doPrivileged(Native Method)
	at jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:475)
	at jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:444)
	at jdk.internal.loader.URLClassPath.getResource(URLClassPath.java:313)
	at jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:695)
	at jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:621)
	at jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:579)
	at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)

OK. So if jar is compiled with java 11 it is not possible to run in SSVM? (or is it possible by just pointing to remote jvm in that config setting)?
I also tried to do Attach to remote. Getting this one:
Exception in thread "Attach Listener" java.lang.reflect.InvocationTargetException
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:513)
        at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:535)
Caused by: java.net.BindException: Address already in use: bind
        at java.base/sun.nio.ch.Net.bind0(Native Method)
        at java.base/sun.nio.ch.Net.bind(Net.java:461)
        at java.base/sun.nio.ch.Net.bind(Net.java:453)
        at java.base/sun.nio.ch.AsynchronousServerSocketChannelImpl.bind(AsynchronousServerSocketChannelImpl.java:164)
        at java.base/java.nio.channels.AsynchronousServerSocketChannel.bind(AsynchronousServerSocketChannel.java:198)
        at software.coley.instrument.Server.<init>(Server.java:50)
        at software.coley.instrument.Agent.agent(Agent.java:56)
        at software.coley.instrument.Agent.agentmain(Agent.java:39)
        ... 6 more

OK. So if jar is compiled with java 11 it is not possible to run in SSVM? (or is it possible by just pointing to remote jvm in that config setting)?
It is, it just doesn't support the internal native structure of jdk 10+, that is why you can use a diffrent vm structure to load these classes in Config -> SSVM -> Remote VM, which allows you to run ssvm on java 8

I also tried to do Attach to remote. Getting this one:
Remote is done by @Col-E whichs status i do not know

Remote isn't functional yet.

Closing, can open a new issue if this affects 4.X


Adding in support for Auto and manually curried functions unary/binary/nary

This is work to better add support for all function types.
This will sequentially apply the arguments and then recursively apply undefined until a non-function value is returned.
@evilsoft this is the work i promised a while back, i think it's the nicest i can make it for what its doing. What i'd like to know is could i make use of Function.bind or fn.apply here to clean it up more? googleing did not shed much light on the difference
Also i can't get the test to pass but i think it may be more around how the test is written, thoughts?

@evilsoft check this out if you like but I realised as I was falling asleep that I broke this for variadic functions. Will fix it

kk @evilsoft this one was painful, i understand your original hesitation now, this is committed to start discussion, going to let my mind think through ways to improve but would love some 👀

Looks like they'res some issues with liftN i'm going to have to address

We're going to approach this a different way


Handling images in theme aware apps

The theeming demo does not talk about handling of images. Please provide some guidance on that.
Best way i can think of:
My images are svg that are converted to png during build. Maui build should create two images for each light and dark theme. Creating two svg files with same content but different colors is not the best way.

Hi there! I don't think this repository is the best way to ask for advice on these things. You might want to try Microsoft Q&A, the Discussions tab on the .NET MAUI repo or Stack Overflow. This is for issues with the samples in this repository. Thanks!

I know, I was looking for a sample that does handle images with light and dark themes.


Typo in Social Media label

Currently there is a typo in the Social Media label where the text is "Connnect" instead of "Connect".
This typo is present across all themes.

Thank you - just fixed it in 1.0.11 version


changes to support dynamic deletion of doc-level monitor query indices

Description
changes to support dynamic deletion of doc-level monitor query indices
Related Issues
Resolves #[Issue number to be closed when this PR is merged]

Check List

[X] New functionality includes testing.
[ ] New functionality has been documented.
[ ] API changes companion pull request created.
[X] Commits are signed per the DCO using --signoff.
[ ] Public documentation issue/PR created.

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.

plz update the commit message and PR name to include flag name


Whether to support Traditional Chinese and Simplified Chinese？

I am a Chinese player. I found that when I switch the language to "Traditional Chinese" or "Simplified Chinese", there will be garbled characters, so I want to ask when Chinese will be supported.

Make a Pull Request with this language entries, I'm not a chinese speaker, so I can make wrong translations using tools for this


eas update - Error: Unable to determine runtime version for android

I've just created a new project with
npx create-expo-app new-expo-app

And trying to share the app with Expo Go with the following instructions https://docs.expo.dev/guides/sharing-preview-releases/
on eas update run I'm getting
Error: Unable to determine runtime version for android

thanks @brentvatne, this is missed step I needed.

I was following this instruction: https://docs.expo.dev/eas-update/github-actions/
and I've got this error:

hi there! run eas update:configure in your app before running eas update
this is not a very good error message though. also, we should change the command so that it runs eas update:configure for you automatically if you haven't. i made a couple tasks to follow up on these usability issues internally

Thanks ! Now it worked perfectly

@brentvatne Thanks!


[Intro to iOS] Yelp Client - Review my app

My app is complete, please review. /cc @codepathreview

:+1: nice work. The primary challenge of this homework was to learn how to use UITableView to manage a complex form, establish communication between view controllers, and apply the correct Auto Layout constraints. For each point in the homework feedback checklist, I'll either confirm that you're on the right track with the implementation, or I'll provide some feedback:

some warnings due to the fact your target OS version was 7.1, while you use some 8.0 only features
For the restaurant cell, nice work encapsulating the properties into the private class extension.
Nice work specifying the Auto Layout constraints.
Nice work linking the filter model with the controls. See this popular form library for an alternative to implementing forms manually.
Nice work connecting the view controllers via the custom filter delegate. This is a popular pattern for handling events between view controllers.

This was a challenging assignment, congrats on completing it successfully!
-- dirk


Issues with Streaming

Thank you so much for this incredible library.  I am trying to use this in a console based, streaming example.  I can create a Chat, and get all data back in one return message. However when I try to use streaming, I get an error. The following console code works fine. I submit my chat, and I get the entire answer back in one "event". I would like the same behavior as the ChatGPT website, so the tokens would be displayed as they are generated. My code is as follows...
var buf : TStringlist;
begin
...
var Chat := OpenAI.Chat.Create(
procedure(Params: TChatParams)
begin
Params.Messages([TChatMessageBuild.Create(TMessageRole.User, Buf.Text)]);
Params.MaxTokens(1024);
// Params.Stream(True);
end);
try
for var Choice in Chat.Choices do
begin
            Buf.Add(Choice.Message.Content);
            Writeln(Choice.Message.Content);
          end;
    finally
     Chat.Free;
  end;

This code works. When I try to turn on streaming, I get the EConversionError 'The input value is not a valid Object', which causes ChatGPT to return 'Empty or Invalid Response'. Any ideas appreciated.

Because it responds in this case not with a json object, but in its own special format.
`data: {"id": "cmpl-6wsVxtkU0TZrRAm4xPf5iTxyw9CTf", "object": "text_completion", "created":<PHONE_NUMBER>, "choices": [{"text": "\r", "index": 0, "logprobs": null, "finish_reason": null}], "model": "text-davinci-003"}
data: {"id": "cmpl-6wsVxtkU0TZrRAm4xPf5iTxyw9CTf", "object": "text_completion", "created":<PHONE_NUMBER>, "choices": [{"text": "\n", "index": 0, "logprobs": null, "finish_reason": null}], "model": "text-davinci-003"}
data: {"id": "cmpl-6wsVxtkU0TZrRAm4xPf5iTxyw9CTf", "object": "text_completion", "created":<PHONE_NUMBER>, "choices": [{"text": "1", "index": 0, "logprobs": null, "finish_reason": null}], "model": "text-davinci-003"}
data: {"id": "cmpl-6wsVxtkU0TZrRAm4xPf5iTxyw9CTf", "object": "text_completion", "created":<PHONE_NUMBER>, "choices": [{"text": ",", "index": 0, "logprobs": null, "finish_reason": null}], "model": "text-davinci-003"}
data: {"id": "cmpl-6wsVxtkU0TZrRAm4xPf5iTxyw9CTf", "object": "text_completion", "created":<PHONE_NUMBER>, "choices": [{"text": " 2", "index": 0, "logprobs": null, "finish_reason": null}], "model": "text-davinci-003"}
data: {"id": "cmpl-6wsVxtkU0TZrRAm4xPf5iTxyw9CTf", "object": "text_completion", "created":<PHONE_NUMBER>, "choices": [{"text": ",", "index": 0, "logprobs": null, "finish_reason": null}], "model": "text-davinci-003"}
data: {"id": "cmpl-6wsVxtkU0TZrRAm4xPf5iTxyw9CTf", "object": "text_completion", "created":<PHONE_NUMBER>, "choices": [{"text": " 3", "index": 0, "logprobs": null, "finish_reason": null}], "model": "text-davinci-003"}
data: {"id": "cmpl-6wsVxtkU0TZrRAm4xPf5iTxyw9CTf", "object": "text_completion", "created":<PHONE_NUMBER>, "choices": [{"text": ",", "index": 0, "logprobs": null, "finish_reason": null}], "model": "text-davinci-003"}
data: {"id": "cmpl-6wsVxtkU0TZrRAm4xPf5iTxyw9CTf", "object": "text_completion", "created":<PHONE_NUMBER>, "choices": [{"text": " 4", "index": 0, "logprobs": null, "finish_reason": null}], "model": "text-davinci-003"}
data: {"id": "cmpl-6wsVxtkU0TZrRAm4xPf5iTxyw9CTf", "object": "text_completion", "created":<PHONE_NUMBER>, "choices": [{"text": ",", "index": 0, "logprobs": null, "finish_reason": null}], "model": "text-davinci-003"}
data: {"id": "cmpl-6wsVxtkU0TZrRAm4xPf5iTxyw9CTf", "object": "text_completion", "created":<PHONE_NUMBER>, "choices": [{"text": " 5", "index": 0, "logprobs": null, "finish_reason": null}], "model": "text-davinci-003"}
data: {"id": "cmpl-6wsVxtkU0TZrRAm4xPf5iTxyw9CTf", "object": "text_completion", "created":<PHONE_NUMBER>, "choices": [{"text": ",", "index": 0, "logprobs": null, "finish_reason": null}], "model": "text-davinci-003"}
data: {"id": "cmpl-6wsVxtkU0TZrRAm4xPf5iTxyw9CTf", "object": "text_completion", "created":<PHONE_NUMBER>, "choices": [{"text": " 6", "index": 0, "logprobs": null, "finish_reason": null}], "model": "text-davinci-003"}
data: {"id": "cmpl-6wsVxtkU0TZrRAm4xPf5iTxyw9CTf", "object": "text_completion", "created":<PHONE_NUMBER>, "choices": [{"text": ",", "index": 0, "logprobs": null, "finish_reason": null}], "model": "text-davinci-003"}
data: {"id": "cmpl-6wsVxtkU0TZrRAm4xPf5iTxyw9CTf", "object": "text_completion", "created":<PHONE_NUMBER>, "choices": [{"text": " 7", "index": 0, "logprobs": null, "finish_reason": null}], "model": "text-davinci-003"}
data: {"id": "cmpl-6wsVxtkU0TZrRAm4xPf5iTxyw9CTf", "object": "text_completion", "created":<PHONE_NUMBER>, "choices": [{"text": ",", "index": 0, "logprobs": null, "finish_reason": null}], "model": "text-davinci-003"}
data: {"id": "cmpl-6wsVxtkU0TZrRAm4xPf5iTxyw9CTf", "object": "text_completion", "created":<PHONE_NUMBER>, "choices": [{"text": " 8", "index": 0, "logprobs": null, "finish_reason": null}], "model": "text-davinci-003"}
data: {"id": "cmpl-6wsVxtkU0TZrRAm4xPf5iTxyw9CTf", "object": "text_completion", "created":<PHONE_NUMBER>, "choices": [{"text": ",", "index": 0, "logprobs": null, "finish_reason": null}], "model": "text-davinci-003"}
data: {"id": "cmpl-6wsVxtkU0TZrRAm4xPf5iTxyw9CTf", "object": "text_completion", "created":<PHONE_NUMBER>, "choices": [{"text": " 9", "index": 0, "logprobs": null, "finish_reason": null}], "model": "text-davinci-003"}
data: {"id": "cmpl-6wsVxtkU0TZrRAm4xPf5iTxyw9CTf", "object": "text_completion", "created":<PHONE_NUMBER>, "choices": [{"text": ",", "index": 0, "logprobs": null, "finish_reason": null}], "model": "text-davinci-003"}
data: {"id": "cmpl-6wsVxtkU0TZrRAm4xPf5iTxyw9CTf", "object": "text_completion", "created":<PHONE_NUMBER>, "choices": [{"text": " 10", "index": 0, "logprobs": null, "finish_reason": null}], "model": "text-davinci-003"}
data: [DONE]
`

Thank you for your response.  In my sample code above, when I turn on streaming, (by uncommenting the line) the OpenAI.Chat.Create call fails after a few moments.  It is getting sent to the Chat website, but it apparently is not in the proper format.  I never get to the code within the TRY block in order to parse the response.

The event is fired multiple times as data arrives in the stream. Each line (--------) is a new event in the stream response

I haven't released it yet

Pushed a new method for working in stream mode

Example
OpenAI.Chat.CreateStream(
  procedure(Params: TChatParams)
  begin
    Params.Messages([TchatMessageBuild.User(Buf.Text)]);
    Params.MaxTokens(1024);
    Params.Stream;
  end,
  procedure(Chat: TChat; IsDone: Boolean; var Cancel: Boolean)
  begin
    if (not IsDone) and Assigned(Chat) then
      Writeln(Chat.Choices[0].Delta.Content)
    else if IsDone then
      Writeln('DONE!');
    Writeln('-------');
    Sleep(100);
  end);

But, for the same effect of writing a response sequentially, I would still use a regular query with a full answer and draw a conclusion by words manually. This is much easier to do than streaming.

Thank you so much.  This is incredible.  The reason that I am wanting streaming is that for complex answers, ChatGPT can take over 60 seconds.  Within my app, the user would submit a request, and see nothing happen for 60 seconds.  If I stream the answer, like the ChatGPT website does, the end result is that the user can start reading within a few seconds, when ChatGPT starts generating the answer.


Feature requets: Delete should handle dle 404s/invalid json gracefully.

On our website, we pull down a feed from a service that's sometimes flaky (invalid or unresponsive).
I love that FeedMe can import into Craft entries - it means Craft can trivially act as a caching mechanism for the data we want to show, and can update only when we want to, without relying on the service.
However, if the "Duplicate Entry Action" is set to "Delete" (we want to update only with the current data in the feed), and the service is down, the end result is that all of the feed's entries are deleted.
Instead, it seems like FeedMe should leave any entries alone if there's a failure (either connecting and/or parsing the data), and instead only do the full-delete if everything has been successfully read.
What do you think?

+1

Totally agreed, and has been added in Feed Me 2. See also #98.

nice, thanks @engram-design !

Awesome, thanks!


Continuous Integration (Travis), Linter(clang-format), and Unit Test

Currently, we have no unit testing. This is really really bad. For some examples of what happens when you don't test enough:

https://en.wikipedia.org/wiki/Mars_Climate_Orbiter
https://www.wired.com/2014/02/gotofail/
https://www.theguardian.com/business/2015/may/01/us-aviation-authority-boeing-787-dreamliner-bug-could-cause-loss-of-control
https://youtu.be/gp_D8r-2hwk?t=53s

There are a few options for C unit testing:

http://cunit.sourceforge.net/
https://cmocka.org/
http://www.throwtheswitch.org/unity/ (especially for embedded software apparently)
https://libcheck.github.io/check/doc/check_html/index.html (this is the only one I have any personal experience with)

100 years later we have unit testing bless your soul @SoleSun


Refine provisioning_uri section in README

Problem
The example code for provisioning_uri is not correct. I guess it is too old.

It does not have initialisation of ROTP::TOTP or ROTP::HOTP instance.

It is not clear to specify issuer.

The format is too old.

It does not have issuer parameter. issuer parameter exists since 6f5de15a0977bcf66e1c85aa062b628077a8e683

HOTP provisioning_uri is not actual output.

It does not include issuer actually, but the example includes it.

This pull request will fix the problem.
Note
ROTP::TOTP is aware of issuer option, but ROTP::HOTP is not aware.
I guess ROTP::HOTP should be aware of it also. https://github.com/google/google-authenticator/wiki/Key-Uri-Format
But this pull request touches only README example.

Thanks for this PR. Merged.


RED metrics for Java

Placeholder task. To be completed with subtasks when we design it.

close as duplicate epic in https://github.com/orgs/grafana/projects/371/views/1


Add Documenter workflow

The linked docs are out of date.

@Datseris rewrote the docs in this PR:
https://github.com/JuliaPlots/GeoMakie.jl/pull/93
Hope we can merge that soon :)

Ah, that would probably be better!

Thanks for the PR anyways! Hopefully that helps trigger to finally merge @Datseris pr :)


Convert inherit_from value to array

The value can be a single entry:
inherit_from: .rubocop_todo.yml

which will be parsed as just a string.
This change ensures we are always dealing with an array.

Could you add a test for this?

@jakecraige Done.

Other than that one comment. LGTM


Added tabindex as a new option.

I found a need to change the tab order of my fields. This very simple addition will allow for that. I am about to submit a PR for ampersand-select-view to include this as well.

looks ok to me.
each control getting a default tab index of 0 may be breaking (UX-wise) for some users.  because of this, i would suppose this gets a major.  thoughts?
further, i'm unsure how different browsers would handle duplicate index values.  i would guess that in-order depth traversal would yield the tab ordering when there are conflicts

would you add a bit to the changelog section in the bottom of the README about this, after we sync up on proper version bump & index conflicts?

Could tabindex be an attribute that does not default?  That would prevent it from showing up now by default where people aren't expecting it, and also prevent them all from being 0 if not specified.  At least I think that's what removing the true, 0 would do.

Tabindex being 0 is the browser default anyways... see here: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex . If 0, the indexing defaults to the browser default (usually the natural order of the elements on the page).

Hey that's great thank you.  One could argue this is now a minor.

Definitely a non-breaking feature enhancement minor release.

thanks all, +1

+1 from me also, thanks also for cleaning up the readme whitespace etc

Haha, I won't take too much credit for that. I have a beautifier plugin for Jade, MD, JS, CSS, and a couple other things active in my instance of Atom at work. It took the liberty of making it more "beautiful" for you. :-)

updated published as 5.0.1

Should that have been 5.1.0?

yeeep. bumped to 5.1.0 WITH changelog update.  deprecated 5.0.1 w/ note to use 5.0.0 or 5.1.0, just to be thorough


Attention Mechanism

Hey @bshao001,
can you please, tell me a little about the Attention Mechanism, i saw the implementation on the nmt site.
Thanks

@ArashHosseini It is a little complicated to understand and explain the attention mechanism. I can only give you an intuitive idea of the attention mechanism in the NMT model. It is used in other context though.
For the seq2seq model, without attention mechanism, the decoder can only generate output at each time step based on a fixed-length vector generated by the encoder and the previous outputs of the decoder. With the help of attention mechanism, the decoder can look at the input sentence (question) selectively based on the learned weights. With attention mechanism, the model can learn not only the mapping (relationship) of the question input as a whole to the answer output, but also other internal relationships. For example, it may very likely be able to learn these relationships:

who in the question -> a person (name) in the answer
How much or how many in the question -> a number in the answer.

The order to feed the input becomes less important with attention mechanism (whether to reverse the input), and so on.
If you really want to get some hands-on experience, I suggest you use a small training data set, such as 2000 to 5000 pairs of conversations, and then train this model with and without the attention mechanism, and see if that makes any differences. You might need to manually tweak some training samples to understand what you want.
Please share you findings if you do perform such an experiment. Thanks.

@bshao001  i found your example is really helpful, i will continue reading more about it......you have awakened my hunger, thanks a lot, will close this but post the diff between with(out)  attention mechanisms. .


feat: port CategoryTheory.WithTerminal

TODO:

[ ] decide how to handle the dubious translation-warnings for Hom, id, comp
[ ] fix instances Category.{v} (With... C), lift and map
[ ] fix failing aesop_cat in isIso_of_from_star and isIso_of_to_star

Can we teach aesop_cat to try to do those case splits automatically?

Can we teach aesop_cat to try to do those case splits automatically?

Or we can extend cases to allow cases * at * then simultaneously apply aesop_cat

I've started a zulip thread to ask @JLimperg about having aesop do the case analysis automatically.

@jjaassoonn, @mo271, I made some improvements to the automation, and left a porting note on the place I still couldn't perfect.
bors d+

LGTM bors r+

bors didn't seem to pick that up. I think it needs to be on its own line.
bors merge


Remove all on close

HI rsbonidi,
love your extension - I had something similar in Emacs and Sublime and use it all the time to review code quickly.
A configuration I miss: if highlights could be removed when the window/file is closed. This wuold be an easier way to "remove all" :)
Thanks for this!

The highlights span all files in the vscode instance, this is desirable for example looking at store or pubsub messages between components, so not sure, are the other editor's highlights per file?  When a window is opened, highlights are not preserved so closing a window effectively removes them.

Agreed, thanks.


I can't run the examples

My device is a brand new Raspberry Pi  3B ，and I don't install any software other than the system pre-installed software，I installed SungemSDK as the instructions guided，but I can't run the examples you provide.  The error message is as follows:

Traceback (most recent call last):
File "/home/pi/SungemSDK/examples/python/Hello2018.py", line 5, in
import cv2, sys, numpy as np
File "/usr/local/lib/python3.5/dist-packages/cv2/init.py", line 4, in
from .cv2 import *
ImportError: libhdf5_serial.so.100: cannot open shared object file: No such file or directory

Every example show the same error message. Can you tell me how to solve this problem?  Does SungemSDK contain OpenCV? Do I have to install OpenCV before I install SungemSDK?

Hi, thanks for buying our product. Yes, you will need to install OpenCV to run the examples. However this should be done through running the install.sh we provided.
Could you please first try:
python3
Import cv2

If this failed, you have to reinstall Python-OpenCV:
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple python-opencv

Please try to install some packages:
sudo apt-get install -y build-essential pkg-config
sudo apt-get install -y libjpeg-dev libtiff5-dev libjasper-dev libpng12-dev
sudo apt-get install -y libavcodec-dev libavformat-dev libswscale-dev libv4l-dev
sudo apt-get install -y libxvidcore-dev libx264-dev
sudo apt-get install -y libgtk2.0-dev libgtk-3-dev
sudo apt-get install -y libatlas-base-dev gfortran
sudo apt-get install -y libhdf5-dev libqtgui4 libqt4-test

https://pypi.tuna.tsinghua.edu.cn/simple 你提供的这个源里面根本就没有 python-opecv

请参考 #10 #5


[App Service]: Fixing issue where webapp config backup list was retuning backup configuration & not list of backups

Fixes #18742
Description

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change.
[Component Name 2] az command b: Add some customer-facing feature.

This checklist is used to make sure that common guidelines for a pull request are followed.

[ ] The PR title and description has followed the guideline in Submitting Pull Requests.

[ ] I adhere to the Command Guidelines.

[ ] I adhere to the Error Handling Guidelines.

App Service

Hi @panchagnula, could you resolve conflict first and then I could merge the PR?


[Toast]

Description
a prime react component for showing alert notifications based on action, i.e error, success, info and etc.
Screenshots
No response
Additional information
No response

Looks good but can you share some use cases? Like what errors could even occur in this project?

@krishguptadev  take a look at this pull request https://github.com/EddieHubCommunity/LinkFree/pull/533 and see the changes, and as for "what error could even occur", you should know there is no perfect code. and what i did on the pull request was to leverage the prime-react toast component rather than continue using the native js alert. we account for errors to make sure that when they occur we handle them better, not because we think they can't occur.


Implementation of using soft absorbing state in the forward process in training.

Hi,
thanks for your excellent work!
I can't seem to find the implementation of using soft absorbing state in forward process in DiffuSeq-v2.
Could you kindly point out the codes please?
Thank you :)

Sorry , I was in the wrong branch.. haha, never mind.


Add support for removing a menu item

Resolves #33

Nice addition, thanks. I think some code is needed for unix as well?

I'll have to give the Unix code a further look.  Quick glance says pruning the button ID from a slice and triggering a refresh.
Also, I did notice another memory leak I cannot quite figure out... Seems to be related to the Icon setting code on Darwin specifically.  If I use a test harness to delete/create a new MenuItem every few seconds, after a few hours the memory usage multiplies exponentially.  pprof nor Datadog show anything.  If I remove SetIcon from the loop, the memory does not balloon nearly as badly.  My thought is something is not freeing up no longer used resources, probably something in the cast from CGO -> NSData -> NSImage -> NSMenuItem.image.

Thanks, do post here if you need more assistance with the unix code.
With regards to icon memory leak, I think that also was reported in our usage in the toolkit at https://github.com/fyne-io/fyne/issues/3463, so you're not the only one to see it. The image data is obviously not being cleaned up in the C code.

Thanks, do post here if you need more assistance with the unix code.
With regards to icon memory leak, I think that also was reported in our usage in the toolkit at fyne-io/fyne#3463, so you're not the only one to see it. The image data is obviously not being cleaned up in the C code.

Should all be resolved now.  Tested the tray on Kali, that dbus system is pretty interesting!


Follow Link tooltip for urls in markdown files encode query string unnecessarily

Issue Type: Bug

Open a new file
(!important) Set file type to Markdown
Create a markdown link with a query string name-value pair containing an equals sign ("=") like [example](https://www.example.com?encoded=unnecessarily)
Hover over the url (i.e. "https://www.example.com?encoded=unnecessarily") to engage the Follow Link tooltip
Click "Follow link" link
Observe that the browser address bar shows an encoded equals sign ("=") in the url (i.e. "https://www.example.com/?encoded%3Dunnecessarily")

I cannot reproduce this issue with online monarch-editor (https://microsoft.github.io/monaco-editor/index.html) if that helps.
VS Code version: Code 1.50.0 (93c2f0fbf16c5a4b10e4d5f89737d9c2c25488a3, 2020-10-07T06:10:52.432Z)
OS version: Windows_NT x64 10.0.19042

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz (8 x 1498)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: disabled_offopengl: enabled_onprotected_video_decode: enabledrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
31.60GB (19.88GB free)

Process Argv
--crash-reporter-id 482ad8b0-81a6-4635-87db-d66b654487d1

Screen Reader
no

VM
0%

Extensions (7)

Extension
Author (truncated)
Version

gitlens
eam
10.2.2

prettier-vscode
esb
5.7.1

vscode-docker
ms-
1.6.0

remote-containers
ms-
0.145.0

vscode-typescript-tslint-plugin
ms-
1.2.3

debugger-for-chrome
msj
4.12.11

debugger-for-edge
msj
1.0.15

Hello, I would like to work on this bug. I have done a small amount of investigating so far, I am concluded that this only happens with the prompt and not when the command/control click shortcut is used. I also concluded that this only happens with markdown and not other extensions. This leaves me to believe that the issue lies within the "markdown-language-features" extension. I was hoping I might be able to get some guidance on how to find the code responsible for executing after the prompt is clicked on. I am thinking that I need to work on openDocumentLink.ts or documentLinkProvider.ts but from the debugging I have conducted so far I cant get any breakpoints to break. Thank you!

I think this is a duplicate of https://github.com/microsoft/vscode/issues/106097

YouTube links in Markdown don't longer work because of this bug. YouTube will redirect you to their homepage because it can't find the video.

The reason for this problem is that if you pass in a URI link, it'll call the toString function to display it .And the toString function of the URI will by default encode.
https://github.com/microsoft/vscode/blob/master/src/vs/base/common/uri.ts#L372

So is there a need for encode? If not, we can solve this problem by toString(true). @mjbvz


optelower for HITEMP

addressed #453
See test/integration/unittest_long/premodit/optgrid_test.py

this is a small change so self-merge


flatpickr: Improve look of Confirm button.

Instead of using JS to modify the content of the flatpickr after
it is rendered, we use css ::after pseudo class to do so.

Visually, this looks great!  See my comment on the i18n issue above.

Realized this was much simpler from docs - https://flatpickr.js.org/plugins/

Closing in favour of #20343 since it is more likely to get attention and has additional fixes.


Add a way to edit Golden Keys

Add a way to edit Golden Keys

I'd actually looked for that out of curiosity but couldn't find anything that looked like a golden key count in there.  Did you want to export the JSON on your own profile and see if you can find anything in there?  At the moment I'm thinking that the game might always just get that info from SHiFT.

Whenever i used a character save file from online and it broke my rank. I had to delete the profile.sav and it got ride of all my keys

Ah, okay, I suppose they must be in there somewhere then.  Well, if you're willing to take the time to look through the JSON yourself, definitely let me know if you find 'em.  I'll take a look at some point as well, though I admit that Golden Key editing is pretty low on my priority list.  It'd get moved along if you were able to point me right at 'em.  :)

How do i find it ?

https://github.com/apocalyptech/bl3-cli-saveedit/blob/master/README-profile.md#output-formats
Or specifically the line:
bl3-profile-edit profile.sav profile.json -o json

Which will leave you with a file named profile.json.  JSON files are just text files, so you can edit it in basically any text editor.  There's probably JSON-specific editors out there as well which would let you expand/collapse areas at will, if you want.

FYI, I did end up looking into this briefly earlier today, 'cause I'd been hopping between Steam+Epic versions and ended up noticing it while looking at some JSON diffs.  Specifically, golden keys use the bank_inventory_category_list attribute.  For instance in my current profile:
"bank_inventory_category_list": [
{
"base_category_definition_hash":<PHONE_NUMBER>,
"quantity": 146
}
],
The<PHONE_NUMBER> is a hash of the string /Game/Gear/_Shared/_Design/InventoryCategories/InventoryCategory_GoldenKey.InventoryCategory_GoldenKey, using the same algorithm used to hash the weapon skins/trinkets for those lookups.
So, I may end up adding a golden key set in here in a bit, after all.

Okay, yeah, easy enough once I saw how to do it.  This'll be in 1.6.0, which'll probably be released tomorrow after the new Takedown gets released and I have the time to update with new items, etc.


feature: TodoTelescope option to ignore directories

Did you check the docs?

[X] I have read all the todo-comments.nvim docs

Is your feature request related to a problem? Please describe.
Many of the projects I work in have generated code or git submodules. I'd like to check for a list of todos/fixmes/etc, but there's not currently a way to ignore certain paths.
Describe the solution you'd like
An additional parameter to TodoTelescope (and the other variants) would probably do it. Being able to provide multiple directories and/or globs would be solid.
Describe alternatives you've considered
Some projects have relevant code under a single dir, like proj/src with generated stuff at src/gen and src/protos. But that's a minority. Most share a parent directory, so providing explicit search paths would be unique per project.
Additional context
No response

We don't need a new feature for this. Add those generated directories to .ignore and telescope will skip them. Should close.

@b0ae989c: I see... it does seem to acknowledge .gitignore but I'm seeing more results than I'd expect from submodules still. Those can't be ignored, for obvious reasons.

.ignore and .gitignore are two different files.
Directories in .ignore are not skipped for Git, but they are skipped for Telescope's fuzzy searcher.


New package: SPM v0.1.0

Registering package: SPM
Repository: https://github.com/DedZago/SPM.jl
Created by: @DedZago
Version: v0.1.0
Commit: adcd40bfb2d75fb4153dd9d934f64657ce406402
Reviewed by: @DedZago
Reference: https://github.com/DedZago/SPM.jl/issues/2#issuecomment-1828825584
Description: Statistical Process Monitoring in Julia

Please delete this pull request. I renamed the package and opened another pull request which fixes the AutoMerge issues (#96045).


Remove UMD device reservation restrictions to allow access to all N300 cards in a system

create_device from tt_silicon_driver.cpp throws this error on a system with 4x N300's.
unknown file: Failure
C++ exception with description "Netlist requires device_id: 6 but insufficient number of devices reserved by user or unreserved: 4 on machine. Needed 3 more." thrown in SetUp().

system:
(python_env) ➜  tt-metal-2 git:(main) ✗ ./tt_metal/third_party/umd/device/bin/silicon/wormhole/create-ethernet-map eth_map.yaml
CHECKING: [0, 0, 0, 0]
CHECKING: [0, 1, 0, 0]
CHECKING: [0, 2, 0, 0]
CHECKING: [0, 3, 0, 0]
CHECKING: [0, 4, 0, 0]
CHECKING: [0, 5, 0, 0]
CHECKING: [0, 6, 0, 0]
CHECKING: [0, 7, 0, 0]
(python_env) ➜  tt-metal-2 git:(main) ✗ cat eth_map.yaml
chips: {
  0: [0,0,0,0],
  1: [0,1,0,0],
  2: [0,2,0,0],
  3: [0,3,0,0],
  4: [0,4,0,0],
  5: [0,5,0,0],
  6: [0,6,0,0],
  7: [0,7,0,0],
}

ethernet_connections: [
  [{chip: 0, chan: 8}, {chip: 1, chan: 0}],
  [{chip: 0, chan: 9}, {chip: 1, chan: 1}],
  [{chip: 2, chan: 8}, {chip: 3, chan: 0}],
  [{chip: 2, chan: 9}, {chip: 3, chan: 1}],
  [{chip: 4, chan: 8}, {chip: 5, chan: 0}],
  [{chip: 4, chan: 9}, {chip: 5, chan: 1}],
  [{chip: 6, chan: 8}, {chip: 7, chan: 0}],
  [{chip: 6, chan: 9}, {chip: 7, chan: 1}],
]

harvesting: [
  0: {noc_translation: True, harvest_mask: 3},
  1: {noc_translation: True, harvest_mask: 9},
  2: {noc_translation: True, harvest_mask: 9},
  3: {noc_translation: True, harvest_mask: 5},
  4: {noc_translation: True, harvest_mask: 65},
  5: {noc_translation: True, harvest_mask: 65},
  6: {noc_translation: True, harvest_mask: 33},
  7: {noc_translation: True, harvest_mask: 65},
]

chips_with_mmio: [
  0: 0,
  2: 1,
  4: 2,
  6: 3,
]

Going to mark this resolved.

Create-ethernet-map change Allan meregd at https://github.com/tenstorrent-metal/umd/commit/a2dc6ac7f6f401f44edcd1b9d26bd2264e851e80 fixed it,
and my changes https://github.com/tenstorrent-metal/umd/commit/71b7b1532c65f841a7028689d4d9285c1a53d41e (consumed by BBE) added support for non-sequential mmio-ids to resolve original and follow up errors I mentioned earlier.

FYI - When pulling in new UMD you'll need to make this tiny change in tt-metal to accommodate interface change. FYI @abhullar-tt we talked about this yesterday (though it's slightly smaller change than I mentioned, after fixing some more test regressions overnight, needed to keep both logical, availaable physical ids as arugments):
diff --git a/tt_metal/llrt/tt_cluster.cpp b/tt_metal/llrt/tt_cluster.cpp
index ec41fc5ac..d021b7c10 100644
--- a/tt_metal/llrt/tt_cluster.cpp
+++ b/tt_metal/llrt/tt_cluster.cpp
@@ -76,7 +76,7 @@ Cluster::Cluster() {
         for (chip_id_t logical_mmio_device_id = 0; logical_mmio_device_id < physical_mmio_device_ids.size(); logical_mmio_device_id++) {
             this->target_device_ids_.insert(logical_mmio_device_id);
         }
-        this->cluster_desc_ = tt_ClusterDescriptor::create_for_grayskull_cluster(this->target_device_ids_);
+        this->cluster_desc_ = tt_ClusterDescriptor::create_for_grayskull_cluster(this->target_device_ids_, physical_mmio_device_ids);
     } else {
         this->cluster_desc_ = tt_ClusterDescriptor::create_from_yaml(cluster_desc_path);
         for (chip_id_t logical_device_id = 0; logical_device_id < this->cluster_desc_->get_number_of_chips();

There is also this change (copied from UMD commit modification of get_closest_mmio_capable_chip()) …
-    for (const chip_id_t &c : this->chips_with_mmio) {
+    for (const auto &pair : this->chips_with_mmio) {
+        const chip_id_t &c = pair.first;

…now that this function returns a map (std::unordered_map<chip_id_t, chip_id_t> tt_ClusterDescriptor::get_chips_with_mmio()) instead of a set, where keys are logical and values physical, but I don't think tt-metal uses this for keys, only checking it's size.


'in' operator related bug

Bug Report

🔎 Search Terms
N/A
🕗 Version & Regression Information

This is the behavior in every version I tried, and I reviewed the FAQ for entries about Type System Behavior

⏯ Playground Link
Playground link with relevant code
💻 Code

type ISuccess = {
  status: "success",
  location: string,
};

type IUnsuccessful = {
  status: "error",
  code: number,
  message: string,
};

type IApiResponse = ISuccess | IUnsuccessful;

const apiResp: IApiResponse = {
    status: "success",
    location: "",
};

if("location" in apiResp) {
    console.log('success');
} else {
    console.log(apiResp.message); // This should not be an error
}

🙁 Actual behavior
Got the following error: Property 'message' does not exist on type 'never'. (2339)
🙂 Expected behavior
No error!

This is working as intended, and it's unrelated to the in operator.

The issue lies in this assignment:
const apiResp: IApiResponse = { status: "success", location: "" };

You mistakingly think that apiResp is typed IApiResponse, but this is not the case. It's actually typed ISuccess. As a result you get the never type in the else block, because it's typed ISuccess, and the ISuccess case is already handled. You can see this when you hover over apiResp in your if condition:

You can use a type assertion to get the expected behavior:
const apiResp: IApiResponse = { status: "success", location: "" } as IApiResponse;

Now the type of apiResp is IApiResponse, and you get the type IUnsuccessful in the else-block.

☝
Too smart for our own good sometimes 😉

@MartinJohns - Thank you!


dom.fromString doesn't unwrap elements it wraps

We overlooked a detail of dojo/dom-construct.toDom when we partially adopted its code for dom.fromString.  It wraps certain types of elements in order to avoid explosions when setting innerHTML.  However, it's then supposed to unwrap them again before returning, and we're not doing that.
For that matter, we need to double-check whether this is even necessary given Dojo 2 will only support IE9+ which may not pose a problem.

The wrapping/unwrapping is still needed for all table-related inner elements, and option at least on IE9.  These don't fail loudly, but the browser silently removes the elements we're interested in and replaces them with just a text node.

This was actually mostly implemented in fromString, but an excess unused variable was being used.  I fixed that and corrected the tests (which were expecting the wrong behavior and thus passing).


BeforeAll, Init before Tests

Hi @DavertMik
Is there a possibility like BeforeAll or Init to be run prior to the tests, but only once. The current implementation of Before runs before every Scenario.

Been looking at this today and seems like it shouldn't be that hard to implement, seems like most of the things are there to be dispatched, but just not hooked into call the helper.js ... though seems like all.before is never called

@fabioel Would that be solved with the beforeSuite hook on https://github.com/Codeception/CodeceptJS/pull/167 ?

There is BeforeSuite and AfterSuite hooks in scenario. They runs only one time before/after feature testing


Volto 16 final upgrade guide should include info on storybook

@ichim-david needed to check this commit for his storybook to run: https://github.com/plone/volto/pull/3689
@ichim-david Details on what you needed to do?

Hey, I am new to this project. I ran the project locally. Could anyone help me on how to fix this bug?

@Manan17 You need to check first if the storybook runs fine on your Volto 16 project.

I ran the project using docker-compose up, followed the readme file. Is that Volto 16?


network.SetExtraHTTPHeaders not working

(edit: This is duplicate of #181)
using chromedp
install puppeteer
$ npm install puppeteer

launch chrome bundled with puppeteer:
$ node_modules/puppeteer/.local-chromium/mac-564778/chrome-mac/Chromium.app/Contents/MacOS/Chromium --remote-debugging-port=9222

then use chromedp to connect to this instance:
package main

import (
	"context"
	"fmt"
	"log"
	"time"

	"github.com/chromedp/cdproto/emulation"
	"github.com/chromedp/cdproto/network"
	"github.com/chromedp/chromedp"
	"github.com/chromedp/chromedp/client"
)

func main() {
	var err error

	ctxt, cancel := context.WithCancel(context.Background())
	defer cancel()

	c, err := chromedp.New(ctxt, chromedp.WithLog(log.Printf), chromedp.WithTargets(client.New().WatchPageTargets(ctxt)))
	if err != nil {
		log.Fatal(err)
	}

	var res string
	err = c.Run(ctxt, chromedp.Tasks{
		emulation.SetUserAgentOverride("Chromedp"),
		network.SetExtraHTTPHeaders(network.Headers{
			"X-Request-By-Chromedp": "true",
		}),
		chromedp.Navigate(`http://p.vfork.tk`),
		chromedp.Sleep(10 * time.Second),
		chromedp.Evaluate(`document.body.innerText`, &res),
	})

	if err != nil {
		log.Println(err)
	}

	err = c.Shutdown(ctxt)
	if err != nil {
		log.Fatal(err)
	}

	err = c.Wait()
	if err != nil {
		log.Fatal(err)
	}

	fmt.Println(res)
}

outputs missing X-Request-By-Chromedp header:
User-Agent [Chromedp]
Accept [text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8]
Accept-Encoding [gzip, deflate]
Accept-Language [zh-CN,zh;q=0.9]
Connection [close]
Upgrade-Insecure-Requests [1]

while using puppeteer, it works
const puppeteer = require('puppeteer');

(async () => {
	const browser = await puppeteer.launch()
	const page = await browser.newPage();
	await page.setUserAgent('Puppeteer');
	await page.setExtraHTTPHeaders({'X-Request-By-Puppeteer':'true'});
	await page.goto('http://p.vfork.tk');
	let result = await page.evaluate(() => document.body.innerText);
	console.log(result);
	await browser.close();
})();

outputs with X-Request-By-Puppeteer header set:
Accept [text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8]
Accept-Encoding [gzip, deflate]
Connection [close]
Upgrade-Insecure-Requests [1]
X-Request-By-Puppeteer [true]
User-Agent [Puppeteer]

@Darren would it be possible to record the session and send the actual protocol messages sent by chromedp for puppeteer and for chromedp? I need to compare the two to determine what the issue is. I've never directly used this CDP command.

@Darren it's worth noting that chromedp-proxy makes recording the messages trivial.
Install via Go:
$ go get -u github.com/chromedp/chromedp-proxy

here's the logs:
chromedp.log
puppeteer.log

@Darren thanks, will take a look at this today.

@Darren I'm not sure if it's always been a requirement, but Network.enable() must be called prior to setting headers. I've added a headers example in https://github.com/chromedp/examples/.
For what it's worth, a new version of chromedp is coming shortly, and due to its redesign, it will be calling Network.enable() since it will be managing network events. Until that's generally available, you can manually call that CDP command in order to enable this functionality for any chromedp tasks.


Pagination showing same content

How can this bug be reproduced?
When on the archive page,

When on the archive page, click on the "2" for next page after the initial 10 posts
Same 10 posts appear again

What did you expect to happen?
It should click through to the next 10 posts
What happened instead?
The same 10 posts appeared
Please List the Following:

OS & version: OS X Version 10.11.6
Node version (node -v) [Node v4+ is required] : 7.10.0
FoundationPress version (see line 3 in package.json):  2.9.3
Foundation version (see dependencies in package.json) : 2.9.3

Include Test Case (if applicable):
Give us a link to a CodePen or JSFiddle that recreates the issue.

CodePen with Foundation 6 and MotionUI
CodePen with Foundation 6, Flexbox grid and MotionUI

@kayzoe since you closed this, is it safe to assume there is no bug here?

@colin-marshall That's correct. Thank you for the follow up.


⚠ Punto de Fuga has degraded performance

In f8a4fe7, Punto de Fuga (http://puntodefugapodcast.com) experienced degraded performance:

HTTP code: 200
Response time: 14993 ms

Resolved: Punto de Fuga performance has improved in ef3d9c2.


RandRotated rotating problem on y and z axis

**
The below code reads a .nii.gz file that has a mask after reading it randomly rotates in x, y, and z axis randomly slices the mask 5 times to get 5 rings, but on the output I'm getting on x-axis the individual rings are not parallel in orientation but in y and z axis the rings are parallel in orientation. Please refer to the video taken from 3D Slicer on the "Y" right bottom you can see the lines are not parallel but the "G" left bottom and "R" left top you can see the lines are parallel and at 90 degree. video
data
Python version 3.8
MONAI version 1.1.0
Numpy 1.24.2
Pytorch 2.0.0
import numpy as np
import torch
import math
from monai.transforms import LoadImaged, SaveImaged, RandRotated, RandRotate, Compose
from monai.utils import set_determinism
import nibabel as nib
#Set deterministic behavior
set_determinism(seed=7)
num_slices = 5
#1. Load a 3D medical image (.nii file)
keys = ["image"]
filename = "/path/to/input/trans_case_00000.nii.gz"
data = {"image": filename}
#Create a pipeline to load and rotate the image
load_transform = LoadImaged(keys)
affine = load_transform(data)['image_meta_dict']['original_affine']
original_mask  = load_transform(data)
rotate_x_transform = RandRotated(keys,range_x = 6, prob=1.0, padding_mode = 'zeros', keep_size= False)
rotate_y_transform = RandRotated(keys,range_y = 6, prob=1.0, padding_mode = 'zeros', keep_size= False)
rotate_z_transform = RandRotated(keys,range_z = 6, prob=1.0, padding_mode = 'zeros', keep_size= False)
r_transforms =  Compose([rotate_x_transform, rotate_y_transform, rotate_z_transform])
transforms = Compose([load_transform,r_transforms])
rotated_data = transforms(data)
image = rotated_data["image"]
dict_axis = {'x': 0, 'y': 1, 'z': 2}
noisy_mask = np.zeros_like(original_mask["image"])
print(noisy_mask.shape)
for i in range(num_slices):
print(i)
rotated_data = transforms(data)
image = rotated_data["image"]
random_item = random.choice(list(dict_axis.items()))
random_value = random_item[1]
image_one_slice = image.clone()
slice_indx = np.random.randint(image.shape[random_value])
print("Slice",random_item,random_value,slice_indx)
if (random_value == 0):
# x-axis
image_one_slice[:slice_indx, :, :] = 0
image_one_slice[slice_indx+1:, :, :] = 0
elif(random_value == 1):
# y-axs
image_one_slice[:, :slice_indx, :] = 0
image_one_slice[:, slice_indx+1:, :] = 0
else:
# z-axis
image_one_slice[:, :, :slice_indx] = 0
image_one_slice[:, :, slice_indx+1:] = 0
del random_item, random_value
#4. Apply the inverse transform to show the circular point in the original image
rotated_data["image"] = image_one_slice
original_data = r_transforms.inverse(rotated_data)
noisy_mask = noisy_mask + original_data["image"]

nib.save(nib.Nifti1Image(noisy_mask, affine), "/path/to/output_5rings.nii.gz")

Thank you it worked.

solved


Resource limit proxied clients whose IP addresses are known but

have no corresponding user. Unit tests for unlimited vs limited ports.
Import boost::beast::websocket insert custom headers for unit tests.

Here's diffs in the boost::beast::websocket files compared with boost 1.67:
diff -r websocket/impl/handshake.ipp /home/mtravis/proj/boost_1_67_0/boost/beast/websocket/impl/handshake.ipp
13c13
28d27
58,59c57
<             Decorator const& decorator,
<             std::unordered_map<std::string, std::string> const& headers = {})

        Decorator const& decorator)

63c61
<                 host, target, decorator, headers))

            host, target, decorator))

258,259c256
<     string_view target,
<     std::unordered_map<std::string, std::string> const& headers)

string_view target)

265c262
<         host, target, ec, headers);

    host, target, ec);

328,329c325
<     string_view target, error_code& ec,
<     std::unordered_map<std::string, std::string> const& headers)

string_view target, error_code& ec)

334c330
<         host, target, &default_decorate_req, ec, headers);

    host, target, &default_decorate_req, ec);

399,400c395
<     error_code& ec,
<     std::unordered_map<std::string, std::string> const& headers)

error_code& ec)

407c402
<             key, host, target, decorator, headers);

        key, host, target, decorator);

diff -r websocket/impl/stream.ipp /home/mtravis/proj/boost_1_67_0/boost/beast/websocket/impl/stream.ipp
13,16c13,16
35,36d34
637,638c635
<         Decorator const& decorator,
<         std::unordered_map<std::string, std::string> const& headers)

    Decorator const& decorator)

650,651d646
<     for (auto const& h : headers)
< 	req.set(h.first.c_str(), h.second.c_str());
diff -r websocket/stream.hpp /home/mtravis/proj/boost_1_67_0/boost/beast/websocket/stream.hpp
14,25c14,25
40d39
760,761c759
<         string_view target,
<         std::unordered_map<std::string, std::string> const& headers = {});

    string_view target);

976,977c974
<         error_code& ec,
<         std::unordered_map<std::string, std::string> const& headers = {});

    error_code& ec);

3459,3460c3456
<                 Decorator const& decorator,
<                 std::unordered_map<std::string, std::string> const& headers = {});

            Decorator const& decorator);

3557,3558c3553
<                 error_code& ec,
<                     std::unordered_map<std::string, std::string> const& headers = {});

            error_code& ec);

Jenkins Build Summary
Built from this commit
Built at 20190209 - 06:24:19
Test Results

Build Type
Log
Result
Status

msvc.Debug
logfile
1144 cases, 0 failed, t: 626s
PASS :white_check_mark:

gcc.Release -Dassert=ON, MANUAL_TESTS=true
logfile
915 cases, 0 failed, t: 6m12s
PASS :white_check_mark:

docs, TARGET=docs
logfile
1 cases, 0 failed, t: 0m1s
PASS :white_check_mark:

gcc.Debug -Dcoverage=ON, TARGET=coverage_report, SKIP_TESTS=true
logfile
1147 cases, 0 failed, t: 17m14s
PASS :white_check_mark:

clang.Debug
logfile
1147 cases, 0 failed, t: 3m10s
PASS :white_check_mark:

msvc.Debug, NINJA_BUILD=true
logfile
1144 cases, 0 failed, t: 645s
PASS :white_check_mark:

clang.Debug -Dunity=OFF
logfile
no test results, t: 300s
FAIL :red_circle:

rpm
logfile
1147 cases, 0 failed, t: n/a
PASS :white_check_mark:

gcc.Debug
logfile
1147 cases, 0 failed, t: 3m30s
PASS :white_check_mark:

gcc.Debug -Dunity=OFF
logfile
no test results, t: 292s
FAIL :red_circle:

clang.Release -Dassert=ON
logfile
1147 cases, 0 failed, t: 5m42s
PASS :white_check_mark:

gcc.Release -Dassert=ON
logfile
1147 cases, 0 failed, t: 6m9s
PASS :white_check_mark:

msvc.Debug -Dunity=OFF
console
no test results, t: n/a
FAIL :red_circle:

gcc.Debug -Dstatic=OFF
logfile
1147 cases, 0 failed, t: 3m28s
PASS :white_check_mark:

gcc.Debug -Dstatic=OFF -DBUILD_SHARED_LIBS=ON
logfile
1147 cases, 0 failed, t: 3m28s
PASS :white_check_mark:

msvc.Release
logfile
1144 cases, 0 failed, t: 415s
PASS :white_check_mark:

gcc.Debug, NINJA_BUILD=true
logfile
1147 cases, 0 failed, t: 3m3s
PASS :white_check_mark:

clang.Debug -Dunity=OFF -Dsan=address, PARALLEL_TESTS=false, DEBUGGER=false
logfile
no test results, t: 336s
FAIL :red_circle:

clang.Debug -Dunity=OFF -Dsan=undefined, PARALLEL_TESTS=false
logfile
no test results, t: 368s
FAIL :red_circle:

It is not necessary to add the beast websocket class to rippled, which will present a problem with upstream changes. You may need to rework the wsclient files in test to get it working.

How do I insert custom headers for websocket client connections?
On Thu, Feb 14, 2019 at 12:40 PM Miguel Portilla<EMAIL_ADDRESS>wrote:

It is not necessary to add the beast websocket class to rippled, which
will present a problem with upstream changes. You may need to rework the
wsclient files in test to get it working.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/ripple/rippled/pull/2849#issuecomment-463786302, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AHXsHdryv_FHTr0RN22dNJDFljf0S8PIks5vNcmpgaJpZM4ayZGQ
.

And I'm OK with not including that particular test--the only use for it in
our code is for this particular test, which actually isn't part of the
initial change I was trying to make. But I figured that since there was no
test coverage for the related code either, I should make tests for that as
well.
On Thu, Feb 14, 2019 at 1:11 PM Mark Travis<EMAIL_ADDRESS>wrote:

How do I insert custom headers for websocket client connections?
On Thu, Feb 14, 2019 at 12:40 PM Miguel Portilla<EMAIL_ADDRESS>wrote:

It is not necessary to add the beast websocket class to rippled, which
will present a problem with upstream changes. You may need to rework the
wsclient files in test to get it working.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/ripple/rippled/pull/2849#issuecomment-463786302, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AHXsHdryv_FHTr0RN22dNJDFljf0S8PIks5vNcmpgaJpZM4ayZGQ
.

Basically, here's where beast needs to change:
https://github.com/ripple/rippled/pull/2849/files#diff-66c131c3f746149a3a6c3da857c6ed52L140
The handshake() function is where the initial HTTP request is made. It upgrades the connection to websocket. There's no way to insert custom headers into this currently.

The handshake() function is where the initial HTTP request is made. It upgrades the connection to websocket. There's no way to insert custom headers into this currently.

Covered here:
https://www.boost.org/doc/libs/1_69_0/libs/beast/doc/html/beast/using_websocket/handshaking_clients.html#beast.using_websocket.handshaking_clients.decorators

The handshake() function is where the initial HTTP request is made. It upgrades the connection to websocket. There's no way to insert custom headers into this currently.

Covered here:
https://www.boost.org/doc/libs/1_69_0/libs/beast/doc/html/beast/using_websocket/handshaking_clients.html#beast.using_websocket.handshaking_clients.decorators

Thanks, @vinniefalco . @mellery451 pointed me to an overload of handshake_ex() that lets me pass in a lambda to set custom headers. I'll try that instead.

It is not necessary to add the beast websocket class to rippled, which will present a problem with upstream changes. You may need to rework the wsclient files in test to get it working.

@miguelportilla fixed

I agree with @miguelportilla ... we can't be duplicating beast source code here like this. What's more, I guess I don't understand why you can't use the existing handshake method that let's you pass a lambda that can modify the req object: https://github.com/boostorg/beast/blob/develop/include/boost/beast/websocket/stream.hpp#L975-L980

@mellery451 fixed

Based on your suggestions, I refactored the forwardedFor() function to more efficiently extract those headers, including case insensitivity, locale-awareness, and eliminating string copies.


Crash for SaveFileDialog when using root directory

Bug crash of VistaFolderBrowserDialog when using root directory path (same for VistaSaveFileDialog when directory is "C:\" and default file name is empty)

Hi @zappu9x, thanks for reporting this and for taking the time to submit PR #10.
Could you please add here the steps to reproduce this crash, screenshot, error message (if any), as well more details of your environment (OS, .NET version, NuGet package version, etc.)?
I tested  VistaFolderBrowserDialog, VistaSaveFileDialog , and VistaOpenFileDialog, by setting the initial directory to C:\ (also tested C:) and default file name to empty (and null), and didn't see any crash.
Tested on Windows 10, .NET 4.8, latest commit from master as of this writing.

Hi @caioproiete , thanks for reviewing my PR https://github.com/caioproiete/ookii-dialogs-wpf/pull/10.
Sorry, my below issue is not clearly!
You had published 2 libraries ookii-dialogs-wpf and ookii-dialogs-winforms. Thank you very much for your libraries. I think it is same, and i got some issues on ookii-dialogs-winforms so i want to PR both to fix them!
There 2 points i want to update on the PR:

I got different result when using 2 options VistaSaveFileDialog and System.Windows.Forms.SaveFileDialog

Option1:

var saveFileDialog = new VistaSaveFileDialog();

Option2:

//forceDownLevel using System.Windows.Forms.SaveFileDialog
var saveFileDialog = new VistaSaveFileDialog(true);
//or saveFileDialog = new SaveFileDialog()

And using the same following code
saveFileDialog.FileName= @"E:\OneDrive";
saveFileDialog.InitialDirectory = @"D:\NewFolder";

Result:

System.Windows.Forms.SaveFileDialog:  FileName is E:\OneDrive.txt, Folder is D:\NewFolder
VistaSaveFileDialog: FileName is OneDrive.txt, Folder is E:\
I think the should be consistency, and result should be same

I got crash if using VistaSaveFileDialog but not with System.Windows.Forms.SaveFileDialog
Try to pass not an existing directory like @"L:\" or @"E:\OneDrivexxxx"

var saveFileDialog = new VistaSaveFileDialog();
saveFileDialog.InitialDirectory = @"E:\OneDrivexxxx"; //OneDrivexxxx is not exist directory

They will crash!
Please review this, and if have any question please send to me!


Fix orientation of procedural material texture on walls

Texture is upside down on vertical wall.

Closed by https://github.com/Vixenka/bevy_dev/commit/65342a0c5f1c83e7536dce880f8366b12e13c490


Add support for - [ ] to specify task

Often, I'll want to embed tasks into a larger document, but only want the tasks to be injested into Todo MD. It'd be nice to be able to allow Todo MD to parse all markdown files, but only see lines that start with - [ ] to be parsed as tasks. And it'd be great if checking the checkbox in the webview (or via command pallet) for a task checked the box in the markdown file, e.g. - [X].

That would be really nice, I would love to centralize all the todos from my markdown files!
Any chance to see this implemented?

I just don't see the intersection of this extensions features with - [ ]...
Do you want to use tags/projects/contexts when writing - [ ] or priority (A) or anything else? Or is it a desire to have a command to assign a keyboard shortcut to toggle - [ ] to - [x]?

Maybe I misunderstand the aim of this extension,  if it is the case, sorry for that.
I would like to use the todo sidebar of todoMD to see and act on TODOs defined and spread in many markdown files (with the markdown list-checkbox syntax - [ ]).
I have one markdown file per project (with lots of information about the project, not only todos) and todos are defined in each (markdown) project file; I need a way to see all my todos in one place and though the sidebar of todoMD would be perfect.

This extension is not going to work with multiple files. It only ever uses active text editor or default file "todomd.defaultFile".

ok, sorry for the noise then and thank for your quick answers.

@benqua did you ever find a solution to centralize all your markdown todos in vscode?

I ended up using https://github.com/Gruntfuggly/todo-tree and adding the following to settings
"todo-tree.general.tags": [
        "BUG",
        "HACK",
        "FIXME",
        "TODO",
        "XXX",
        "- [ ]"
    ]

and adding a todo-tree.filtering.includeGlobs filter for **/*.md files


Fix net fdb test cases

Stacktrace:
https://gist.github.com/wojtek0806/9ffee29644fca45872f6dad5e3dab366

Looks like this also failing in tmsh:
root@(restlab4)(cfg-sync Standalone)(Active)(/Common)(tmos)# modify net fdb tunnel http-tunnel records add { 02:00:00:00:00:01 }
01070734:3: Configuration error: The tunnel FDB record (/Common/http-tunnel 02:00:00:00:00:01) has an empty entry.
Checking docs as we seem to be missing something here

looks like we need extra mandatory parameter:
tmsh  modify net fdb tunnel http-tunnel records add { 02:00:00:00:00:01 { endpoint <IP_ADDRESS>}}
root@(restlab4)(cfg-sync Standalone)(Active)(/Common)(tmos)# list net fdb tunnel http-tunnel
net fdb tunnel http-tunnel {
records {
02:00:00:00:00:01 {
endpoint <IP_ADDRESS>
}
}
}


Defined new revisions for golang dep: github.com/grpc-ecosystem/grpc-health-probe

Ran component through the scanners since I noticed it had not been harvested yet. PR matches curation site. Closing.


Compilation log in RunONNXModel.py

This patch improves RunONNXModel.py in which compilation log is dumped into a file for debugging.

I am also making a few changes, some benchmarks use booleans and I added support to generate / tests boolean results.

Thank you!

@jenkins-droid test this please

@jenkins-droid test this please

@tungld Can I ask for a change of names in the options?
  --save-data PATH      Path to a folder to save the inputs and outputs in protobuf
  --data-folder DATA_FOLDER
                        Path to a folder containing inputs and outputs stored in protobuf. If --verify=ref, inputs and outputs are reference data for verification

I would remember these options better if the first one remains save-folder and the second one was renamed to use-folder.

And that might be too much work within that script (we could do a meta script that would do that), but it might be useful to have something like this:
-compile-args and -reference-compile-args. It would compile twice, the reference args would be used to define the save-data and the normal compile args would be used normally, and the results of the normal compilation would be compared to the reference compilation.

Or since in verify you use ref as the saved data, we could rename it to save-ref and use-ref... that would be most consistent.

We have --save-so and --load-so for .so file. How about using --save-ref and --load-ref to make them consistent.

And that might be too much work within that script (we could do a meta script that would do that), but it might be useful to have something like this:
-compile-args and -reference-compile-args. It would compile twice, the reference args would be used to define the save-data and the normal compile args would be used normally, and the results of the normal compilation would be compared to the reference compilation.

I see. Got what you mean, a meta script looks better.

Jenkins Linux ppc64le Build #9089 [push] Compilation log in RunON... started at 03:19

Jenkins Linux amd64 Build #10024 [push] Compilation log in RunON... started at 02:14

Jenkins Linux s390x Build #10036 [push] Compilation log in RunON... started at 03:14

Jenkins Linux s390x Build #10036 [push] Compilation log in RunON... passed after 1 hr 21 min

Jenkins Linux amd64 Build #10024 [push] Compilation log in RunON... passed after 1 hr 24 min

Jenkins Linux ppc64le Build #9089 [push] Compilation log in RunON... passed after 1 hr 46 min


ClassgraphJavaTypeSignatureBuilder.jvmTypes is always null in test.

The ClassgraphJavaTypeSignatureBuilder#classSignature fallback on line 92 always returns "{undefined}", since the map is null.

We can't have jvmType interfere with the tests. We'll need to add mock classes to substitutes the classes in JavaTypeGoat


Put clulab in charge of its own holidays

Nice, thank you @kwalcock !

I think this is good enough for now.  It gives us access to newer holidays even though it uses an older JollyDay, and we can (and have) added our own holidays.  The HolidayNormalizer should be multiple times faster because it doesn't go through holidays of every separate state and it matches based on keys rather than descriptions, which are an extra call away.

P.S. This should prevent eidos from crashing while processing habitus files and SEC software from crashing on interviews.


etcdmain: reject unreasonably high values of -election-timeout

This helps users to detect setting problem early.
fixes #3139
/cc @jedsmith Could you help to review this one?

LGTM

it is changed to:
$ ./bin/etcd -election-timeout 60000
2015/07/24 15:05:20 etcdmain: error verifying flags, -election-timeout[60000ms] is unreasonably long, and should be set less than 50000ms. See 'etcd --help'.
$ ./bin/etcd --help
...
	--election-timeout '1000'
		time (in milliseconds) for an election to timeout. See tuning documentation for details.

LGTM

please squash the commits though


Update Excel Export to Include %MAD Values - WALLY

As a WALLY user I want the %MAD values exported into the Excel so that I am able to further analyze EFN (Environmental Flow Needs) risk or make further adjustments as necessary.
Acceptance Criteria

[ ] Given a WALLY user selects the %MAD values data to export, when they export the data, then they are given all data and summary information in a format compatible with Excel.
[ ] Export should have this data in the Summary tab

Additional Context

Data to be included in the Excel export that is not currently being exported and is manually added into Excel to evaluate EFN risk
Export function: This function allows users to export to Excel (or as a shapefile).  However, the current output from WALLY into Excel only contains partial information that is found in the online staging environment.
Data is already in Wally
Currently only includes MMD (m3/s) values
This does not require any calculations

This data has been included in PR #714 and will be released with #707

Private Zenhub Image


Night Mode: HR elements should be lighter so as to be visible

The HR color should probably match the color of night mode text.

@QuincyLarson Would you have any advice on how one could get started tackling something like this?

You can add a hr class nested within the .night class of main.less file

@benmcmahon100 @hallaathrad

done :) merge at will

@hallaathrad I think your PR #8056 was trying going to close this but missed the keywords in the commit message. Good to close?

Yeah this is good to close.


Firebase Deployment

The tutorial at https://www.canner.io/docs/tutorial-community-firebase.html describes a deployment to Firebase, but it looks like this got removed (https://github.com/Canner/canner-firebase-cms/commit/ab8f9e7beb9b0272e95e36dc18e61395fc0961c2).
Is there any information why that happened? Or are there any plans to reenable it?

Hi, @hffmnn, sorry about the late response. In ab8f9e7 , we change to use nextJS(a framework for server-side react app) to build the CMS and now to deploy it because we were trying to implement SSR feature in our CMS.
For the example without NextJS, we are going to create a new repo, you can watch and follow there.

Hi, thanks for the info. Will have a look a the repo.

@hffmnn done! you can check out https://github.com/Canner/canner-firestore-cms


Localhost Create Customer Account : blocked by CORS policy

i wanted to create a customer account sending data from frontend to my wordpress woocommerce restful api and i have this error.
Access to XMLHttpRequest at '[http://localhost:3080/wp-json/wc/v3/customers?oauth_consumer_key=ck_xxx&oauth_nonce=WFJEpYVFEoL2tQjX10vfJWrjl3ksFav0&oauth_signature_method=HMAC-SHA256&oauth_timestamp=1641581338&oauth_version=1.0&oauth_signature=x6eRfi7mO1F%2FfJT34hamqd%2Bwux%2BMKFx8SVViayUDIgE%3D](http://localhost:3080/wp-json/wc/v3/customers?oauth_consumer_key=ck_ca8dc3da04a18c79601e7b49c6e8e216da06cf82&oauth_nonce=WFJEpYVFEoL2tQjX10vfJWrjl3ksFav0&oauth_signature_method=HMAC-SHA256&oauth_timestamp=1641581338&oauth_version=1.0&oauth_signature=x6eRfi7mO1F%2FfJT34hamqd%2Bwux%2BMKFx8SVViayUDIgE%3D)' from origin '[http://localhost:3000](http://localhost:3000/)' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.

here is my post code
    import WooCommerceRestApi from "@woocommerce/woocommerce-rest-api"

     // initialise the WooCommerceRestApi //
    const api = new WooCommerceRestApi({
        url: "http://localhost:3080",
        consumerKey: "ck_xxx",
        consumerSecret: "cs_xxx",
        version: "wc/v3"
    });

         async registerUsers() {
                await api.post('customers', {
                    data: {
                        email: this.email,
                        username: this.username,
                        password: this.password,
                    }
                }).then((response) => {
                    console.log('Response: ', response.data)
                    console.log("consumer create")
                }).catch((e) => {
                    throw new Error('Could not register users, please try again')
                    console.log("Response Status:", error.response.status);
                    console.log("Response Headers:", error.response.headers);
                    console.log("Response Data:", error.response.data);
                })
            },

anyone facing this problem, how do i bypass the CORS policy ? i am testing on localhost

I have the same problem, did you figure out a solution?

Strangely, when querying a specific few WP/WC rest endpoints the CORS issue seems to come up. I discovered that when NOT fetching these endpoints with basic auth (as is the default setting), but via the query string instead (which does mean exposing the consumer key and secrets via URL), the CORS issue does not seem to come up.
Using this library that would look like:
const api = new WooCommerceRestApi({
url: shopSettings?.url,
consumerKey: shopSettings?.consumer_key,
consumerSecret: shopSettings?.consumer_secret,
version: "wc/v3",
queryStringAuth: true,
});
Hope this helps!