Vertical tab escaping

Look at this program:
\\v

This outputs this error:
Traceback (most recent call last):
  File "/home/Vyxal/mysite/vyxal/main.py", line 131, in execute_vyxal
    code = transpile(code, ctx.dictionary_compression)
  File "/home/Vyxal/mysite/vyxal/transpile.py", line 40, in transpile
    vyxal.parse.parse(vyxal.lexer.tokenise(program)),
  File "/home/Vyxal/mysite/vyxal/parse.py", line 235, in parse
    structure.MonadicModifier(head.value, remaining[0])
IndexError: list index out of range

However, the expected output is
\v

Please fix.

https://chat.stackexchange.com/transcript/message/59959176#59959176

@AMiller42 I think having the interpreter crash with such a weird error should be considered a bug. We should add a friendlier error message.

@AMiller42 I think having the interpreter crash with such a weird error should be considered a bug. We should add a friendlier error message.

I mean, the parser could just know to ignore empty modifiers.

Dang actually I'mma go do that


link from scientific name to Wikipedia pages

[from Arok:] It would be good if entries with scientific names could link from the scientific name to the relevant Wikipedia page.

This is a very source-specific request, since some sources will have scientific names, and others won't. Also, some sources may have the scientific names pulled into separate fields, while others may have the scientific names lumped into the definition.
One way to handle this feature in a language-agnostic and source-agnostic way is with an "additional info" field or something similar, which the linguist could provide in markdown / HTML and would get displayed verbatim. Alternatively we could support an actual "scientific name" field with an optional link specified, since this is something that many dictionary sources will have.


The package javax.xml.stream is accessible from more than one module: , java.xml

Failed when running mvn clean install  under JDK 11
[ERROR] The package javax.xml.stream is accessible from more than one module: , java.xml
[ERROR] XMLStreamException cannot be resolved to a type
<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <configuration>
        <source>${java.version}</source>
        <target>${java.version}</target>
                            <annotationProcessorPaths>
                                <path>
                                    <groupId>org.projectlombok</groupId>
                                    <artifactId>lombok</artifactId>
                                    <version>${lombok.version}</version>
                                </path>
                            </annotationProcessorPaths>
        <compilerArgs>
                                    <arg>--add-exports</arg>
                                    <arg>java.xml/com.sun.org.apache.xerces.internal.jaxp.datatype=ALL-UNNAMED</arg>
        </compilerArgs>
        <fork>true</fork>
    </configuration>
</plugin>

 <plugin>
                        <groupId>dev.aspectj</groupId>
                        <artifactId>aspectj-maven-plugin</artifactId>
                        <version>1.13.1</version>
                        <configuration>
                            <complianceLevel>${java.version}</complianceLevel>
                            <source>${java.version}</source>
                            <target>${java.version}</target>
                            <showWeaveInfo>true</showWeaveInfo>
                            <verbose>true</verbose>
                            <Xlint>ignore</Xlint>
                           <forceAjcCompile>true</forceAjcCompile>
                           <weaveDirectories>
                                <weaveDirectory>${project.build.directory}/classes</weaveDirectory>
                            </weaveDirectories>
                        </configuration>
                        <executions>
                            <execution>
                                <goals>
                                    <goal>compile</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>

Please post a link to a full sample project on GitHub. It should be minimal, but complete, so I can reproduce the problem. This is called an MCVE. Thank you.

for simplicity, do we have example for "maven configure" for  lombok&aspectj,  and  jetty&aspectj?  (java 11 or later)

I asked you for an MCVE. So the answer cannot be that you ask me for one instead. If you like to get help and think there is a bug in the plugin, you need to make it easy for me to reproduce your problem, not for me to create a build-to-order MCVE for you. Feel free to hire me if you need that kind of service, though.

The actual situation is that the project dependencies are more complex and there is no way to simplify them, so I think if there is a standard reference project, maybe I can solve it myself.
That's why I asked if there were any relevant examples.

The error is:
The package org.w3c.dom is accessible from more than one module: , java.xml
I tried to add -add-exports but didn't work, is this configure correct?

--add-exports
java.xml/org.w3c.dom=ALL-UNNAMED

The actual situation is that the project dependencies are more complex and there is no way to simplify them

That statement is unworthy of a developer. You can always simplify. Simply strip off as much as possible, until only as much is left as is necessary to reproduce the problem. If I cannot reproduce your problem, I cannot help you. I do not feel so inclined to try and guess what kind of undisclosed situation you might have. I am closing this question as invalid. If you change your mind and provide an MCVE, we can re-open it.


ambient authority in net package (http, DNS, TCP, ...)

I'm interested to work on this; the Root capability looks like a straightforward mechanism to address this.
I originally raised this in cap-talk discussion in May and you seemed interested to have it addressed.
I just checked whether it's still an issue, and this test case shows: pony modules can launch missiles by default

We have something in place for this. I'm closing this issue as part of issue clean up.
If anyone would like to continue this discussion (as there was some disagreement, please pull it over to dev list):
https://pony.groups.io/g/dev


Screenshot for assigning rights for the gMSA

Hello,
in the screenshot, you are doming assigning the rights for the gMSA at the domain root level. I believe this should be avoided and it should be linked to an OU. According to security best practices, you should not create a link between on premise and cloud so a cloud admin in this example can reset the password for an admin account on the domain.
I know the screenshot is just "an indication" however, I think it would reflect better the requirement if linked to a user OU.
Thank you.
Csaba
[Enter feedback here]

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

ID: 9942b0e9-6ca2-fe02-d1df-0ac98d78c928
Version Independent ID: 9942b0e9-6ca2-fe02-d1df-0ac98d78c928
Content: Manage action accounts
Content Source: ATPDocs/manage-action-accounts.md
Service: microsoft-defender-for-identity
GitHub Login: @dcurwin
Microsoft Alias: dacurwin

Thank you for your comment. We'll investigate and get back to you.

Thanks for your comment. We've updated the screenshots.


fix: failure to rename css -> scss files during 6.2 -> 7.0 upgrade (#265)

While trying to repro the related issue I noticed that CSS files in the theme were not getting renamed despite me answering "y" at the prompts.
The cause was a broken test for promptResults[fileName], where fileName was something like "custom.css". This doesn't actually match the promptResults data structure, which looks like this:
{
  custom: {
    css: true,
  },
  main: {
    css: false,
  },
}

(where the true and false values reflect the answers given at the prompts.)
Test plan:

yarn test
yo ./packages/generator-liferay-theme/generators/import
Provide path to a 6.2 theme, eg. "./manzanita".
In the imported theme, edit the gulpfile to require('../packages/liferay-theme-tasks') so that we can test this change.
gulp upgrade.
Answer "y" and "n" at the prompts:

? Do you want to rename custom.css to _custom.scss? Yes
? Do you want to rename main.css to main.scss? No

In temporary logging statements that I added, see the first file is renamed and then deleted:

rename(): { dirname: '.', basename: 'custom', extname: '.css' }
delete: [ '/Users/greghurrell/code/liferay-js-themes-toolkit/manzanita-theme/src/css/custom.css' ]

In the imported theme, inspect "src/css" and see that the rename took effect.

Related: https://github.com/liferay/liferay-js-themes-toolkit/issues/265

Just started reviewing :)

LGTM


makefile: upload unit tests coverage to codecov

What problem does this PR solve?
Problem Summary:
upload unit tests coverage to codecov
What is changed and how it works?
Proposal:
codecov unit test coverage
What's Changed:
add scripts in makefile
How it Works:
make upload-coverage

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Can one of the admins verify this patch?


UIImageView extention is required

Text using special fonts is sometimes treated as an image. UIImageView extension is required to use different images for different languages.
The usage should look like this:
@Localized("Image.Earth")
@IBOutlet private var imageView: UIImageView!

Released in 1.0.2 https://github.com/MarioIannotta/LocalizedSwift/releases/tag/1.0.2


Tooltips on hover only if called, editor.hover.enabled + SHIFT key

The option editor.hover.enabled is annoying some times (like with CSS that all the code shows a tooltip) and there are lots of people that simply disable it. But this option is usefull and I think we can make it more usable just changing the way we call for it.
Instead of just hover a text to provide the tooltip, we could use the key SHIFT to check if the developer wants to see some hint on screen or not.
In settings we could provide:
editor.hover.enabled = true
editor.hover.keyShift = true
or
editor.hover.keyPress = 'shift' (shift, ctrl, alt, fn, control, option, command)

Interesting idea. I will make this as a feature request and let the community put up-votes on it.

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!


Refract/achievements

humm a lot of conflicts

maybe try to do a new branch?

maybe try to do a new branch?

Ah ok Im gonna try


Update .gitignore file to include .DS_Store and Travis CI files.

My ONLY hangup is that I don't think the wildcard is necessary for the .DS_Store here...may be a tad nit-picky but throwing that down for thoughts!

@kstack7 my vote is to keep it as a wildcard to help avoid any stray little buggers inside sub-directories, etc. More of a fail safe to help avoid any issues of it appearing in another PR.

Have you ever seen the  /.DS_Store approach for subdirectory catches? I've been seeing a couple approaches so I'm double-checking with git's docs: "A leading "" followed by a slash means match in all directories."

WOAH. git does NOT like double asterisks haha

@kstack7 I think it would be best to leave the "/" out of the way of the .DS_Store file to help avoid any confusion as to whether or not that file itself is a directory. The "*" helps avoid any stray files that might have hidden spaces in front of them or other things that might make them tricky to catch.
Looking forward to reading what you think and how best to move forward! :tada:

I'm down for taking your experience over the stuff I was reading today...I'm not sure I like the two lines I suggested anyways so let's go with your commits and we can always swap out if things go awry (super unlikely). Wanna do zee honors?

Awesome, thanks @kstack7! <3


Remove the pullers from readthedocs/privacy/backends/syncers.py

In readthedocs/privacy/backends/syncers.py there are two puller classes. These don't appear to be referenced anywhere in the codebase:
$ ack Puller
readthedocs/privacy/backends/syncers.py
79:class DoubleRemotePuller(object):
117:class RemotePuller(object):
$

These appear to be rotten - in particular the docstrings and logging seem to be wrong. DoubleRemotePuller appears to have bugs - it loops over for server in app_servers but doesn't use the server in its actual rsync command. Neither class has tests.
I would suggest deleting these classes.

Ah - I misread the code, it does use server.
However it does specify --delete to rsync, while specifying the same target, which appears odd - I would imagine that could cause syncs from each server to clobber each other's files.

Those Pullers are used as FILE_SYNCER setting and loaded at this file readthedocs.org/readthedocs/builds/syncers.py
The pullers are only used for production so, and the ops/settings code for production is under a private repo, but they are used. So, they can't be deleted.

However it does specify --delete to rsync, while specifying the same target, which appears odd - I would imagine that could cause syncs from each server to clobber each other's files.

I don't understand why it could cause problems. Can you elaborate it a bit more? Thanks!

Closing this as the user hasn't responded or given more information, feel free to reopen with more information if you are still having this problem :).


The "View Problem" positioning error in the code diagnosis pop-up window #926

Extension sample
lsp-user-input-sample
VS Code version
1.80.0
What went wrong?
Implement the code diagnosis plug-in and set the severity of Diagnostic to DiagnosticSeverity.Information. However, the "View Problem" of the code diagnosis pop-up window is incorrectly positioned and will jump to the error prompt box of other plug-ins (such as eslint).

After clicking, it will jump to the error report location of eslint.

How should I deal with this?

I am not sure I understand this: Goto next problem navigates to the next problem inside the same file. Can you attach a screen cast showing what you see and explaining what you expect to happen.

Diagnostic has a "View Problem" button. When I click "View Problem"

I want to display the diagnostic information currently clicked. However, the current situation is that after clicking "View Problem", it will jump to the same file. The location of the error diagnostic information and display the error diagnostic information

I am still not understanding it. Can you please create a screen cast demoing what you are seeing and what you expect to happen instead.
And please ensure that the diagnostics you are generating have correct ranges. Those define the traget location.

Desired result:
Display corresponding diagnostic information
actual results:
Jump to other diagnostic information locations and display other diagnostic information

This seems to be a VS Code problem. I was able to reproduce this and it indeed jumps to the next error instead of showing the current problem.
It works in the following situation:

the current problem has the highest severity in the file (e.g. executing View Problem on a wanring shows the warning if there is no error in the file)

It doesn't work:

current problem is a warning and there is another problem in the file with an error. The View Problem on the warning jumps to the next error.


Notifications of new VEX

Are there any docs on how it is envisioned downstreams can be notified of new VEX? Hoping we can see this eventing integrated into transparency log infra federation to enable automated evaluation on new vulns via recursive application of policy and context local transparency services (see ID security threats WG notes in linked SCITT PR).

References

https://www.w3.org/TR/activitypub/

https://linkedresearch.org/ldn/

https://ariadne.space/2022/12/03/building-fair-webs-of-trust-by-leveraging-the-ocap-model/

Ariadne mentioned a "Rapunzel" protocol/stack based on ActivityStream that might be most appropriate for this? Curious to hear more on that front.

https://github.com/ietf-scitt/use-cases/pull/18
https://github.com/ietf-wg-scitt/draft-ietf-scitt-architecture/issues/11#issue-1593708202

Hey @pdxjohnny,  We don't have any at the moment, this week we started discussing some of the discovery/delivery means for OpenVEX data in the community call. It is not yet online on the OpenSSF youtube channel but be sure to check it out when it's uploaded (community meeting of Jun 12th).
We are working on the tooling to publish OpenVEX data through repositories and OCI registries, but I'm sure the SIG would love to hear more ideas, please feel free to join and share your thoughts.

Awesome!! Glad to hear others are going with OCI registries as well. https://oras.land tooling has been helpful. :)

From @charliehart
https://mailarchive.ietf.org/arch/msg/scitt/aNCUl-1aRR5NXxajGHzfk4j6ak8/

The VEX document(s) are good candidates for SCITT especially for two key reasons:

There is no restriction on who can generate one (same for SBOM BTW) and it is essential to understand whether the issuer is trustworthy and/or any kind of source of authority.
A VEX, unlike an SBOM, can be issued at any time and in fact multiple VEXes and CSAFs will be the norm rather than exception.

But to facilitate this, there has to be a way to connect related VEXes and CSAFs (including with any applicable SBOMs, software attestations, and other similar data.

OpenVEX’s JSON-LD definition might be helpful for those connections.


missing wake word

HI,
[ERROR] could not find the pronunciation for 'trello'.
Is it possible to add this word to the dictionary?

Hi @kenarsa
Thank you very much!
I saw in the FAQ you say "We can provide you with requested keyword file and will add the word to optimizer's internal dictionary for next release."
Is it possible for you to create me a keywordfile 🙏 🙏 🙏

Next release if coming next week. Is it ok for you to wait a week? If not send an email to<EMAIL_ADDRESS>

delivered the model. closing the issue.


Runtime exception when calling the method CreateChangeFeedReaderAsync

Hi, Calling this method throws the exception "Method not found: CloudBlob.OpenReadAsync( Boolean, AccessCondition, BlobRequestOptions, OperationContext, CancellationToken)'. Intellisense on this method indicates it does not take a Boolean as the first parameter.

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

ID: 93995189-17c6-cbd5-6ad7-48998a2e8313
Version Independent ID: 7dca458a-81b4-40c2-be83-dee0fc9dc9d7
Content: Process change feed in Azure Blob Storage (Preview)
Content Source: articles/storage/blobs/storage-blob-change-feed-how-to.md
Service: storage
Sub-service: blobs
GitHub Login: @normesta
Microsoft Alias: normesta

@ssrikantan Thanks for your question. We are checking on this and will respond to you soon.

@ssrikantan May I know what exactly are you trying to accomplish? Can you please elaborate your query?
If the issue isn't related to document/article edit. I'd recommend posting your question in https://social.msdn.microsoft.com/forums/azure/en-US/home?forum=windowsazuredata. We would like to follow-up there

I am trying to follow the steps in this article, but the program throws a runtime exception that I indicated above. If this needs to be discussed in the forum you mentioned, then its fine

@ssrikantan Thank you! I would request you to please create forum thread as mentioned in the above link and share screen shot if you are getting any error message or code? We will follow-up there
We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.

@sumanthMarigowda-MSFT, When I raised the issue in the forum you suggested above, I was asked to raise that here instead

I have exactly the same problem. There is no CloudBlob.OpenReadAsync method override which takes the first argument of type bool. Guys, can you specify, from what package or exact package version this method comes from. I tried several different release and pre-release versions of Microsoft.Azure.Storage.Blob package (and others). Nothing helped me.


Get user stories for reviewers and populate backlog

Reviewers

I want to comment on matches
I want to review responses to my comments so I can continue or close the discussion
I want to see the status of my comments (dashboard)
I want to be able to see all comments which haven't been resolved
I want to be able to close or continue conversations from the dashboard view
I want to be able to endorse a proxy dataset or match
I want to be able to remove an endorsement
I want to be able to see my endorsements (dashboard)

Editors

I want to be able to see all comments (dashboard)
I want to be able to see all comments which haven't been resolved
I want to respond to comments
I want to be able to see all endorsements (dashboard)
I want to be able to see endorsements on process datasets


Increase workload retry internval and timeout

Raise retries to correspond to bootkube retries https://github.com/kubernetes-incubator/bootkube/pull/729
bootkube 60 tries every 10 seconds matches 10 minute timeout, 10 second interval

cc @aaronlevy

lgtm


Basket weights should only be max 4 decimal places (0.0005 kg)

And Minimum basket weight for this trip should be 0.0005 KG; fix anything entered as less than this to 0.0005 to match any specimen weights that have been adjusted


Confirm cube filtering requirements

um2nc provides command line arguments to specifically include/exclude stash codes (hence excluding iris data cubes from conversion & various data modification steps.
cube include/exclude filtering is performed in process():
https://github.com/ACCESS-NRI/um2nc-standalone/blob/main/src/um2netcdf.py#L294-L297
Several cube operations occur before include/exclude filtering:

https://github.com/ACCESS-NRI/um2nc-standalone/blob/main/src/um2netcdf.py#L247
https://github.com/ACCESS-NRI/um2nc-standalone/blob/main/src/um2netcdf.py#L252
https://github.com/ACCESS-NRI/um2nc-standalone/blob/main/src/um2netcdf.py#L259

Can the include/exclude filtering be performed at the iris.load() step, or are all cubes required should pressure level masking be required? (e.g. this block indicates specific cubes for masking https://github.com/ACCESS-NRI/um2nc-standalone/blob/main/src/um2netcdf.py#L259-L271)

@MartinDix is this something you can advise on?


Enhancement Request: Auto Adjust and Format Cells

Is there any way in the code to get the spreadsheet columns all to adjust automatically when generating it? Also to have the cells that contain dollar amounts to be formatted with $ ?

I second the formatting of the cells to contain dollar amounts or even round to 2 decimal places. If it was just me receiving this report it would not be an issue, but others are receiving this as well and they are requesting this.


fix(#359): Improve Cloud events send/receive

Make sure to not expect Ce-Id fields by default when receiving events. Dynamic id values are hard to predict and should be ignored when not specified in expected cloud event data.

Fixes #359


PostHog Early Access Features

PostHog can (optionally) allow users to opt in themselves to feature flags.
This sets up the UI to allow users to flip those toggles driven by PostHog.

Thanks @brentkulwicki!
Let's wait to merge to see what product thinks.

Exciting!  🎸


Include localepurge and post-install scritps to reduce the size

Probably a good idea to include scripts and other programs like localepurge to reduce the footprint of the distro. localepurge gets rid of non-used locales which according to my du is what takes the most space of the arch distro.
Other scripts could be included or builted in order to keep the distro slim.

It's a glorified bash script. So it shouldnt be that hard to just bundle it as post-install script.

You can use a pre-seed file to do that, or I can add that in, in a couple of days when I get time this weekend.


content transformer

added the possibility to change the content from each adaptor by an external transformer. the function is nearly equal to the metadata transformer but handles the content.

Thank you for your work.
I've left a couple of comments regarding following Google's style guide for Java source code.
Further, could you please add an example into the adaptor/examples directory?  Something simple like converting lower case to upper case.  I'd like to see better how this approach works in practice.
Thank you,
PJ

I will close this pull request and do another one with the expected behaviour, so that the merge history will get clean.

Note that if you do a forced push to your branch, the pull request will be updated with the new history. You can certainly choose to make a new pull request, but you don't need to in order to clean up the git history.


DO NOT MERGE - CI TEST

This PR is a test PR for confirming the workflow around testing new PRs.  I will close it as soon as I finish my testing.  Please do not merge this.

- What I did
- How I did it
- How to verify it
- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

aos-ci-test

aos-ci-test

aos-ci-test

aos-ci-test

aos-ci-test

aos-ci-test

aos-ci-test

aos-ci-test


~The cameras are a changing

Im not sure if  the viewpoints are moving. ie. the physical camera is pointing elsewhere.  Or, if the urls are changing.
I had seen the one camera which seemed to be frozen.  it was late at night and it was still well lit.  The time overlay was current though.
Now there is another problem.  The map and the urls need to be confirmed with chrome devtools.

added some additional cameras in case they change position


[QUESTION] Working with extra_headers for WebSocket authentication.

I am confused in reproducing same results from 2 different libraries.
import websocket
headers = {
        'X-QUME-SIGNATURE': signature,
        'X-QUME-TIMESTAMP': str(timestamp),
        'X-QUME-API-KEY': api_key,
        'X-QUME-PASSPHRASE': user_passphrase,
    }
ws = websocket.WebSocketApp("wss://websocket.qume.io/v1/trades",
                                on_message=on_message,
                                header=headers)

works fine and I get active connection with exchange but when I am using below
import websockets
send_message = {
                'X-QUME-SIGNATURE': signature,
                'X-QUME-TIMESTAMP': str(timestamp),
                'X-QUME-PASSPHRASE': self.api_passphrase,
                'X-QUME-API-KEY' : self.api_key,
            }
headers = websockets.http.Headers(send_message)
async with websockets.connect("wss://websocket.qume.io/v1/trades", extra_headers = headers) as websocket:

above lines gives me failed to Authenticate response from exchange. Do I need to add ssl certificates or any other authentication method? If so, How can I do that? I want to understand what I am missing here. Your help is greatly appreciated.

My help is unfortunately not available: https://websockets.readthedocs.io/en/latest/contributing.html#bitcoin-users


changelogs: Pre release cleanups

Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

/docs


eslint / console log

Submit a feature request or bug report

[X ] I've read the guidelines for Contributing to Roots Projects
[X ] This is a feature request
[ ] This is a bug report
[ X] This request isn't a duplicate of an existing issue
[ X] I've read the docs and NPM Debugging Guidelines post and followed them (if applicable)
[ X] This is not a personal support request that should be posted on the Roots Discourse forums

What is the current behavior?
console.log('foo') results in build errors
What is the expected or desired behavior?
console.log('foo') should simply log to console without error

Feature Request
add this to .eslintrc file
  "rules": {
    "no-console":0
}

We want it to fail if there is console output. If we ever have a need for console output, we can use eslint-disable-line no-console or something similar.
You're certainly free to set that rule on your own, though.

fair enough, thanks.


agedu: move to git

Source code for agedu is now tracked in git, so the use of snapshot tarballs is no longer needed.

Merged in https://github.com/Homebrew/homebrew-head-only/commit/c96a829cc4765efcb206067ffe3da9897a2d952f. Thank you for your contribution to head-only, we appreciate it! :smiley_cat:.
Just FYI, single quotes is actually the wrong style here. Everything should be double quotes these days, the head repo just isn't updated as often and tends to fall behind on that.


Hey, Added stack, queue, circular queue in c++, Hope you will like it & merge it

Hey there, I added data structures, array implementation of stack, queue and circular queue, in DSA/CPP folder.
I think this commit will surely expand the content of this repo.
Hope you will like it and merge it with the main repo.

Well done!


⚠ ClamAV has degraded performance

In 095bd00, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 479 ms

Resolved: ClamAV performance has improved in e8e0271.


scala: 2.13.2 -> 2.13.3

Semi-automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/scala/versions.
meta.description for scala is: "General purpose programming language"
meta.homepage for scala is: "https://www.scala-lang.org/"
meta.changelog for scala is: ""
Updates performed

Version update

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 2.13.3 with grep in /nix/store/hfd4hvb33r6cns1zkvp6w7jvfa05ggbh-scala-2.13.3

directory tree listing: https://gist.github.com/5397e8d46ef5768e9e57e1c27ba5c181

du listing: https://gist.github.com/b13a8c864b492025a0ab1dbcae365a3c

Rebuild report (if merged into master) (click to expand)

8 total rebuild path(s)

2 package rebuild(s)

2 x86_64-linux rebuild(s)
2 i686-linux rebuild(s)
2 x86_64-darwin rebuild(s)
2 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
scala
scala_2_13

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/hfd4hvb33r6cns1zkvp6w7jvfa05ggbh-scala-2.13.3 \
  --option binary-caches 'https://cache.nixos.org/ https://r-ryantm.cachix.org/' \
  --option trusted-public-keys '
  r-ryantm.cachix.org-1:gkUbLkouDAyvBdpBX0JOdIiD2/DP1ldF3Z3Y6Gqcc4c=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(r-ryantm's Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A scala https://github.com/r-ryantm/nixpkgs/archive/175e915b29b55c0f2cde0a6f4c326eff80bdc440.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/hfd4hvb33r6cns1zkvp6w7jvfa05ggbh-scala-2.13.3
ls -la /nix/store/hfd4hvb33r6cns1zkvp6w7jvfa05ggbh-scala-2.13.3/bin

Security vulnerability report

Security report (click to expand)

CVEs resolved by this update:
none
CVEs introduced by this update:
none
CVEs present in both versions:

CVE-2020-7907

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review 1

1 package built:
- scala

Maintainer pings

Reviewed points

[x] package name fits guidelines
[x] package version fits guidelines
[x] package build on Darwin
[x] executables tested on Darwin
[ ] all depending packages build

Possible improvements
Comments


Feature: Improve the JSON viewer inside the Job data

We can improve the JSON viewer by adding the followings,

Add a syntax highlighter
Add Copy to Clipboard button
Add some readability improvements

I like to work on this issue. @sajithaliyanage @poornimarangoda  can you guys provide a db dump ? Cause there is problem in my rabbimq connection .So scrapy server wont collect any data.

Never mind. I was able to fix it. Will add a PR soon regarding to this issue


Add Prototype Skeleton

Overview
This adds 2 base pages: http://localhost:4545/welcome and http://localhost:4545/main which correspond to the Welcome Modal and Map and Sidebar pages respectively, allowing them to be developed independently.
The Welcome Model has a Leaflet Map using ESRI's Raster Light Gray Canvas basemap centered to North Carolina in the background, with a non-dismissable Chakra UI Modal in the foreground. This corresponds to the Welcome Flow wireframes on Figma.
The Map and Sidebar page uses the same map, with a sidebar. This layout uses Chakra's Flex component.
Once this is in, we should make cards for the individual sub-pages. A reasonable attempt should be made to match the wireframes, in terms of colors / spacing / fonts.
Thanks to @mstone121, @jacobtylerwalls, and @rachelekm for their input in this work.
Closes #15
Demo

Notes
Seeing this warning in the Webpack output, will address this in a future PR:
WARNING in ./node_modules/leaflet/dist/leaflet.css (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].oneOf[5].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[2].oneOf[5].use[2]!./node_modules/source-map-loader/dist/cjs.js!./node_modules/leaflet/dist/leaflet.css)
Module Warning (from ./node_modules/postcss-loader/dist/cjs.js):
Warning

(655:3) autoprefixer: Replace color-adjust to print-color-adjust. The color-adjust shorthand is currently deprecated.

webpack compiled with 1 warning
Compiling...
Compiled with warnings.

Warning
(655:3) autoprefixer: Replace color-adjust to print-color-adjust. The color-adjust shorthand is currently deprecated.

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before

Testing Instructions

Check out this branch and update and server
Go to http://localhost:4545/

[ ] Ensure you are redirected to http://localhost:4545/welcome
[ ] Ensure you see the grayscale map in the background, with a modal on top

Go to http://localhost:4545/main

[ ] Ensure you see a blue-gray sidebar next to the map

Inspect the JavaScript console

[ ] Ensure there are no errors

Thanks for the reviews! I also made some changes to the Pull Request template, based on recent conversation and convention. If we end up liking it enough, we can patch the app template with it.
Going to merge this now.


Custom gRPC ports not honored by master.peers and weed shell envvars

Describe the bug
We have elected to use custom gRPC ports for each of master, volume, and filer instances. So far, there are two use-cases where weed unable  to interpret the port specifications outlined in the FAQ:
A) List of master peers
weed master -peers <IP_ADDRESS>:9333.9334,<IP_ADDRESS>:9333,9334,<IP_ADDRESS>:9333,9334
In this case, the master will for example try to connect to http://<IP_ADDRESS>:9333.9334 but then fail.
Possibly, after splitting on commas, the code directly interprets each string as HOST:PORT , without checking if it's HOST:PORT.gRPC_PORT.
B) weed shell
sudo docker run --rm -it -e SHELL_FILER=<IP_ADDRESS>:9330.9331 -e SHELL_MASTER=<IP_ADDRESS>:9333.9334 chrislusf/seaweedfs:3.52 shell fs.verify -v
In this case, the shell will report that it tried and failed to connect to http://<IP_ADDRESS>:9333.9334
** Apologies, I'd like to paste in the error output but right now when I try to reproduce, shell responds by printing an endless series of dots and I don't know what it's doing and why...
System Setup
version 30GB 3.52 fb4b61036 linux amd64

The code looks correct. Need to see logs.

B) weed shell
OK interesting .. shell fs.verify -v produces this output when envvar SHELL_MASTER doesn't include the gRPC port and logging is not mentioned:
sudo docker run --rm -it -e SHELL_FILER=<IP_ADDRESS>:9330.9331 -e SHELL_MASTER=<IP_ADDRESS>:9333 chrislusf/seaweedfs:3.52 shell fs.verify -v
.........total 0 directories, 0 files

Is it working properly? Not sure, but there are indeed 0 dirs, 0 files in this fresh cluster.
Now, same command, but with logging option -v 0 produces an endless stream of dots.
sudo docker run --rm -it -e SHELL_FILER=<IP_ADDRESS>:9330.9331 -e SHELL_MASTER=<IP_ADDRESS>:9333 chrislusf/seaweedfs:3.52 -v 0 shell fs.verify -v
.....................................................................................................................................................................................................................................................................................................................................................................................................................^C

and setting verbosity to 1 or higher produces:
sudo docker run --rm -it -e SHELL_FILER=<IP_ADDRESS>:9330.9331 -e SHELL_MASTER=<IP_ADDRESS>:9333 chrislusf/seaweedfs:3.52 -v 1 shell fs.verify -v
I0626 05:45:10.425807 config.go:46 Reading : Config File "security" Not Found in "[/data /root/.seaweedfs /usr/local/etc/seaweedfs /etc/seaweedfs]"
I0626 05:45:10.426492 config.go:46 Reading : Config File "shell" Not Found in "[/data /root/.seaweedfs /usr/local/etc/seaweedfs /etc/seaweedfs]"
I0626 05:45:10.426823 masterclient.go:127 .adminShell masterClient bootstraps with masters map[localhost:9333:localhost:9333]
I0626 05:45:10.426933 masterclient.go:172 .adminShell masterClient Connecting to master localhost:9333
I0626 05:45:10.430106 masterclient.go:180 .adminShell masterClient failed to keep connected to localhost:9333: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp [::1]:19333: connect: connection refused"
I0626 05:45:10.430170 masterclient.go:260 .adminShell masterClient failed to connect with master localhost:9333: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp [::1]:19333: connect: connection refused"
..........I0626 05:45:11.430612 masterclient.go:172 .adminShell masterClient Connecting to master localhost:9333
I0626 05:45:11.431317 masterclient.go:180 .adminShell masterClient failed to keep connected to localhost:9333: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp [::1]:19333: connect: connection refused"
I0626 05:45:11.431371 masterclient.go:260 .adminShell masterClient failed to connect with master localhost:9333: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp [::1]:19333: connect: connection refused"
...........I0626 05:45:12.431940 masterclient.go:172 .adminShell masterClient Connecting to master localhost:9333
I0626 05:45:12.432610 masterclient.go:180 .adminShell masterClient failed to keep connected to localhost:9333: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp [::1]:19333: connect: connection refused"
I0626 05:45:12.432649 masterclient.go:260 .adminShell masterClient failed to connect with master localhost:9333: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp [::1]:19333: connect: connection refused"
..........I0626 05:45:13.433681 masterclient.go:172 .adminShell masterClient Connecting to master localhost:9333
I0626 05:45:13.434384 masterclient.go:180 .adminShell masterClient failed to keep connected to localhost:9333: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp [::1]:19333: connect: connection refused"
I0626 05:45:13.434428 masterclient.go:260 .adminShell masterClient failed to connect with master localhost:9333: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp [::1]:19333: connect: connection refused"
........I0626 05:45:14.435477 masterclient.go:172 .adminShell masterClient Connecting to master localhost:9333
I0626 05:45:14.436282 masterclient.go:180 .adminShell masterClient failed to keep connected to localhost:9333: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp [::1]:19333: connect: connection refused"
I0626 05:45:14.436323 masterclient.go:260 .adminShell masterClient failed to connect with master localhost:9333: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp [::1]:19333: connect: connection refused"
.....^C

Let's do the same set of commands again, this time specifying the master gRPC port. The result doesn't change.
sudo docker run --rm -it -e SHELL_FILER=<IP_ADDRESS>:9330.9331 -e SHELL_MASTER=<IP_ADDRESS>:9333.9334 chrislusf/seaweedfs:3.52 shell fs.verify -v
....................................................................................................................................................................................................................................................................................................................................................^C

and again setting verbosity to 1 or higher (this time 4):
sudo docker run --rm -it -e SHELL_FILER=<IP_ADDRESS>:9330.9331 -e SHELL_MASTER=<IP_ADDRESS>:9333.9334 chrislusf/seaweedfs:3.52 -v 4 shell fs.verify -v
I0626 05:55:09.490348 config.go:46 Reading : Config File "security" Not Found in "[/data /root/.seaweedfs /usr/local/etc/seaweedfs /etc/seaweedfs]"
I0626 05:55:09.491262 config.go:46 Reading : Config File "shell" Not Found in "[/data /root/.seaweedfs /usr/local/etc/seaweedfs /etc/seaweedfs]"
I0626 05:55:09.491551 masterclient.go:127 .adminShell masterClient bootstraps with masters map[localhost:9333:localhost:9333]
I0626 05:55:09.491670 masterclient.go:172 .adminShell masterClient Connecting to master localhost:9333
I0626 05:55:09.493904 masterclient.go:180 .adminShell masterClient failed to keep connected to localhost:9333: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp [::1]:19333: connect: connection refused"
I0626 05:55:09.493942 masterclient.go:260 .adminShell masterClient failed to connect with master localhost:9333: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp [::1]:19333: connect: connection refused"
.........I0626 05:55:10.494917 masterclient.go:172 .adminShell masterClient Connecting to master localhost:9333
I0626 05:55:10.495651 masterclient.go:180 .adminShell masterClient failed to keep connected to localhost:9333: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp [::1]:19333: connect: connection refused"
I0626 05:55:10.495676 masterclient.go:260 .adminShell masterClient failed to connect with master localhost:9333: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp [::1]:19333: connect: connection refused"
..........I0626 05:55:11.495949 masterclient.go:172 .adminShell masterClient Connecting to master localhost:9333
I0626 05:55:11.496492 masterclient.go:180 .adminShell masterClient failed to keep connected to localhost:9333: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp [::1]:19333: connect: connection refused"
I0626 05:55:11.496519 masterclient.go:260 .adminShell masterClient failed to connect with master localhost:9333: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp [::1]:19333: connect: connection refused"
..........I0626 05:55:12.496919 masterclient.go:172 .adminShell masterClient Connecting to master localhost:9333
I0626 05:55:12.497630 masterclient.go:180 .adminShell masterClient failed to keep connected to localhost:9333: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp [::1]:19333: connect: connection refused"
I0626 05:55:12.497680 masterclient.go:260 .adminShell masterClient failed to connect with master localhost:9333: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp [::1]:19333: connect: connection refused"
........I0626 05:55:13.498713 masterclient.go:172 .adminShell masterClient Connecting to master localhost:9333
I0626 05:55:13.499484 masterclient.go:180 .adminShell masterClient failed to keep connected to localhost:9333: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp [::1]:19333: connect: connection refused"
I0626 05:55:13.499538 masterclient.go:260 .adminShell masterClient failed to connect with master localhost:9333: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp [::1]:19333: connect: connection refused"
.........I0626 05:55:14.499958 masterclient.go:172 .adminShell masterClient Connecting to master localhost:9333
I0626 05:55:14.500697 masterclient.go:180 .adminShell masterClient failed to keep connected to localhost:9333: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp [::1]:19333: connect: connection refused"
I0626 05:55:14.500735 masterclient.go:260 .adminShell masterClient failed to connect with master localhost:9333: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp [::1]:19333: connect: connection refused"
..^C

The master gRPC port is 9334, but shell attempts to connect to 19333 (9333 which is correct plus the assumed +10000).

it's connecting to localhost:9333, the SHELL_MASTER value is not passed in successfully. Try to use the binary directly.

it's connecting to localhost:9333, the SHELL_MASTER value is not passed in successfully. Try to use the binary directly.

Um .. Is this a defect that can be fixed in a release, or was I doing something incorrectly?

A) List of master peers
Error message:
{"error":"Leader URL http://<IP_ADDRESS>:9333.9334 Parse Error: parse "http://<IP_ADDRESS>:9333.9334": invalid port ":9333.9334" after host"}

Don't know if its useful info, but the masters are using -raftHashicorp.


Stable/mitaka

Thank you for contributing to openstack/python-ceilometerclient!
openstack/python-ceilometerclient uses Gerrit for code review.
If you have never contributed to OpenStack before make sure you have read the
getting started documentation:
http://docs.openstack.org/infra/manual/developers.html#getting-started
Otherwise please visit
http://docs.openstack.org/infra/manual/developers.html#development-workflow
and follow the instructions there to upload your change to Gerrit.


split datafusion-datasource module

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
(This section helps Arrow developers understand the context and why for this feature, in addition to  the what)
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

Hi @Jimexist, any progress on this? If you have started, maybe I can handle this.

Hi @Jimexist, any progress on this? If you have started, maybe I can handle this.

Please go ahead - been busy recently


Any plan to support Snooker?

Hi, it is a great project, do you have any plan to support Snooker ?

Hi @timiil. I certainly plan to support Snooker. No timeline on that but since you're interested I'll prioritize it. Thanks for taking a look at the project.

Hi @timiil. I certainly plan to support Snooker. No timeline on that but since you're interested I'll prioritize it. Thanks for taking a look at the project.

So great , So nice :)

hi,do you support jump ball?

Closing this issue, because snooker is now (partially) supported (https://github.com/ekiefl/pooltool/pull/99)


FR: Add events to dated notes in the future

I make my notes for the week at the beginning of the week. It would be great to have the plugin automatically add the events to each date, rather than me going and inserting them manually.

It works great if you link it with data view example, and get the date from a template when you create the new note.  I'm using the core templates plugin
var events = await app.plugins.getPlugin('ics').getEvents("{{date:YYYY-MM-DD}}");
var mdArray = [];
events.forEach((e) => {
	mdArray.push(`${e.time} ${e.summary} ${e.location}: ${e.description}`.trim())
})
dv.list(dv.array(mdArray))

Thanks @afonsoguerra , I updated the README to document that style of usage.

Wonderfull @afonsoguerra! It seems that, in my case, when there are multiple events, they get ordered from the latest to the earliest (ie.: I have before an event that occur at 6pm and after an event that is planned at 9am), would it be possible to "sort"  them? I don't know how to do it in dataviewjs....obrigado!

It works great if you link it with data view example, and get the date from a template when you create the new note. I'm using the core templates plugin
```dataviewjs
var events = await app.plugins.getPlugin('ics').getEvents("{{date:YYYY-MM-DD}}");
var mdArray = [];
events.forEach((e) => {
	mdArray.push(`${e.time} ${e.summary} ${e.location}: ${e.description}`.trim())
})
dv.list(dv.array(mdArray)) ```

@nestor50
Try sorting it as I do in the code  with events.sort((a,b) => a.utime - b.utime).forEach...

Thanks @muness, got it!


Json to form binding is broken for number and longNumber formats

The Json object is deconstructed to a Map[String, String]. Numbers are represented by their double format String, which in their turn cannot be parsed as an Integer or Long.
JsNumber stores values as a BigDecimal. If the value represents a real, it should be printed to a real string representation (so the long value, not the double value).

It seems Erwan has fixed this issue in a different way. See commit 2e660e8c0453184192a33e550913c92199e18c75


Bug with trans_choice and replacement parameters containing pipes

Laravel Version
8.83.16 && 10.0
PHP Version
7.4.33 && 8.2.7
Database Driver & Version
No response
Description
Strange bug that from my understanding of the source code should not happen, but I confirmed it is present in both Laravel 8 and 10. This is especially puzzling as Translator::choice from my understanding does the selection prior to and independent of any localization parameter replacement. It does not matter if I'm using the default translation files or directly passing the translation template as $key paremter.

I've dug deeper into the source code, and the issue is indeed that Translator::get already calls makeReplacements, adding a pipe symbol and throwing off MessageSelector::choose.

The Translator unfortunately cannot handle these sort of pipes when also present in replacements. I suggest you don't use these in replacements values, sorry.

I humbly request that this ticket stays open. This seems to be an obvious bug that could definitely be fixed, but at least needs to be documented, as developers need to be aware that user input breaks this common method. I am well aware that I am not entitled to any free labour, but closing this ticket effectively prevents a solution from ever being implemented, including by me - no contributor wants to put time and effort into a PR that goes nowhere.

Woooow this is weird. Laravel translator can't handle pipes? And that's acceptable?? Replacements are very often user input, not hard-coded. Should we tell users "please don't use pipes in your internet, we can't handle those"? 😮
Isn't the fix very simple? First choose the string, then replace the params.

I think this is all...
    public function choice($key, $number, array $replace = [], $locale = null)
    {
        $line = $this->get(
-           $key, $replace, $locale = $this->localeForChoice($locale)
+           $key, [], $locale = $this->localeForChoice($locale)
        );

Oh yeah, this issue 😀 I think we just solved it for us by doing some very ugly placeholder replacement hacks around it.
Half-serious and half-joking: I am unable to take the boasts of how little open issues there are in the Laravel repos as serious as I did before. The way these kind of bug reports are currently handled can easily be automated with an LLM 😜
As for @rudiedirkx - you can try just putting in a PR. If it’s a small diff, you might get lucky and it’ll be merged - worked for me once with a different bug.
also see #34777
also see https://twitter.com/taylorotwell/status/1256031217943818242

I am unable to take the boasts of how little open issues there are in the Laravel repos as serious as I did before.

Right?? 😢
I'm using cweagans/composer-patches to patch Laravel core a few times. I don't want to fight about very useful PR anymore. Some of them got it, some of them didn't, I make it work for me. OSS is exhausting.
This one seems truly silly though. How is "pipes don't work, sorry" acceptable? That's like saying "please don't SQL inject us, we don't handle quotes well".


Not enough space for 'Choose The Color' button

When using small screen, page layout is broken after click Add To Cart because there is not enough space for 'Choose The Color' button.

Thank You for send me a PR. now its being part of the next push~ @raywill :grin:


Allow for zero-byte objects

Fixes #503

@sarahwooders When you have a chance, please see if this works for the same command as #503


Remove status from default sort comparators

Also make urgency calculation more deterministic.

Fix for #439 and possibly #383.

Sorry for the confusion, but status must stay as one of the default order items. Open tasks should always be listed before done tasks by default.
#439 is about a change in order even for the tasks that keep their status.
Please re-open if I misunderstood.


Show more info for violations

Before:
app.rb:41:5: C: Replace class var @@registries with a class instance
var.
    @@registries ||= Registries.new(
    ^^^^^^^^^^^^

After:
app.rb:41:5: C: Style/ClassVars: Replace class var @@registries with a
class instance var.
(https://github.com/bbatsov/ruby-style-guide#no-class-vars)
    @@registries ||= Registries.new(
    ^^^^^^^^^^^^

Do you know if this will clobber project-specific args? It does seem like a sane default, regardless. :+1:

@benlovell we're only adding the args to user-supplied existing, so I think there's no risk of overwriting args.

Cool. :shipit:


Fix five bugs

Server: input edge clones were not getting attached to the artifacts
UI: whole graph edges were passed to the RunActionMenu
Fixes #279
Fixes long unbreakable notes being off screen
Fixes selectedRun refresh when navigating to new resolution

Also fixes #275.


smart catch while farming

Short Description:
While Farming, Keep single copy of pokemon with highest CP,  and exchange other for candy

you sure this works?

yeah It works for me

@mohitmun please add information about this feature in the README in the command-line description.

Yeah sure!

@mohitmun I was eager for your update. Gonna review!

I little bit confusing..... merged....

New to python :P

@solderzzc can you please try it. It works for me, not confident


rake build failing with RangeError

Hello,
When trying to build the initial database with the rake build command, I am getting the following error:
** Invoke importworld (first_time)
** Invoke configworld (first_time)
** Invoke config (first_time)
** Invoke env
** Execute config
[warn] Rakefile - 2015-02-02 17:43:00 +0300
rake aborted!
RangeError:<PHONE_NUMBER>6960 is out of range for ActiveRecord::Type::Integer with limit 4

I suspect that it could be happening in
## log all warns, errors, fatals to db
  LogDb.setup

but I could be wrong.
How should I deal with this?
Thanks in advance.

Thanks for reporting. What database are you using? e.g. SQlite, MySQL, PostgreSQL etc.?

@geraldb I am using sqlite. I have not modified the default settings.
However when I changed the tid field to add a limit of 8, the build command ran successfully

Thanks. Good catch. Cheers.

@geraldb I think this is really an issue with https://github.com/rubylibs/logutils-activerecord
so I'll close this.
Would you mind looking at the Pull Request I submitted there and give me your views?
Thanks.


Uptime

I'm assuming this is a duplicate of #75, so I'm closing this issue. If that's not the case, please free to open this issue again.


[GOBBLIN-988] Implement LocalFSJobStatusRetriever

Dear Gobblin maintainers,
Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!
JIRA

[x] My PR addresses the following Gobblin JIRA issues and references them in the PR title. For example, "[GOBBLIN-XXX] My Gobblin PR"

https://issues.apache.org/jira/browse/GOBBLIN-988

Description

[x] Here are some details about my PR, including screenshots (if applicable):

Currently GaaS only supports job statuses being emitted from Kafka
Create a simple mechanism to track job statuses that are completed in gobblin standalone. This is to be used in the GaaS K8s cluster as a sample.
Tests

[ ] My PR adds the following unit tests OR does not need testing for this extremely good reason:

Commits

[x] My commits all reference JIRA issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":

Subject is separated from body by a blank line
Subject is limited to 50 characters
Subject does not end with a period
Subject uses the imperative mood ("add", not "adding")
Body wraps at 72 characters
Body explains "what" and "why", not "how"

Codecov Report

Merging #2834 into master will decrease coverage by 0.02%.
The diff coverage is 0%.

@@             Coverage Diff              @@
##             master    #2834      +/-   ##
============================================
- Coverage     45.62%   45.59%   -0.03%
- Complexity     8971     8975       +4
============================================
  Files          1902     1904       +2
  Lines         71294    71361      +67
  Branches       7863     7879      +16
============================================
+ Hits          32526    32540      +14
- Misses        35775    35825      +50
- Partials       2993     2996       +3

Impacted Files
Coverage Δ
Complexity Δ

.../service/monitoring/LocalFsJobStatusRetriever.java
0% <0%> (ø)
0 <0> (?)

...ime/spec_executorInstance/LocalFsSpecProducer.java
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

.../apache/gobblin/runtime/task/BaseAbstractTask.java
61.11% <0%> (-3.6%)
6% <0%> (ø)

.../org/apache/gobblin/metrics/RootMetricContext.java
78.12% <0%> (-1.57%)
15% <0%> (-1%)

...in/source/extractor/extract/kafka/KafkaSource.java
0% <0%> (ø)
0% <0%> (ø)
:arrow_down:

...source/extractor/extract/kafka/KafkaExtractor.java
0% <0%> (ø)
0% <0%> (ø)
:arrow_down:

...lin/hive/metastore/HiveMetaStoreBasedRegister.java
0% <0%> (ø)
0% <0%> (ø)
:arrow_down:

...ache/gobblin/kafka/client/KafkaConsumerRecord.java
0% <0%> (ø)
0% <0%> (?)

...ctor/extract/kafka/KafkaExtractorStatsTracker.java
54.86% <0%> (+0.38%)
25% <0%> (+2%)
:arrow_up:

... and 6 more

Continue to review full report at Codecov.

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


Conditioned DMRG unittests

A unittest for the BE-DMRG functions that skips if dependencies are missing.

closes #44


community page content updates

Signed-off-by: michow<EMAIL_ADDRESS>What this PR does / why we need it

Which issue(s) this PR fixes

Fixes: #
Describe testing done for PR

Special notes for your reviewer

This looks ok to me, but want to get @kcoriordan feedback on it

Sorry - need to change the link for agenda / notes for monthly community meetings after a meeting I had today...


[BUG] inconsistency between CLI wallet balance and UI wallet balance

Describe the bug
flofie on keybase is seeing balance inconsistency
To Reproduce

Farm some coins
Compare the balances

Screenshots

Desktop (please complete the following information):

OS: Windows

This is actually a duplicate ticket, oops:
https://github.com/Chia-Network/chia-blockchain-gui/issues/20


Update README.md

Please try and fix this issue, either by removing the effect entirely or by optimising it for both light/dark modes.

@Void48 we need to do something for Cider, can you help?


Initial attempt at removing iron router

Work in progress
There is more work to do:

Make sure we are completely replicating Iron Router path/query parsing
Test that error reporting is the same
Make sure we are OK with subtle API changes like no longer throwing an error when a route is accessed with the wrong method (now it just does nothing and returns the normal Meteor HTML boilerplate)

Fixes #38 and maybe others.

One more question: Should routes be case-sensitive? Right now they are.

The routes should be case sensitive. I'm not sure why Iron Router chose to ignore the RFC standard. This could very well be API-breaking for some users, but I'm leaning towards releasing this as a major update (v0.7.0) with some other small API-breaking changes. I'm not sure if that follows semver conventions tightly enough, since technically this could be done without breaking the API, but it surely feels like a major change to me. And before 1.0 I feel like semver is fairly flexible. If that's the route we choose to go, I think it will make sense to create a release branch for 0.7.0 and merge these changes there, instead of dev. Just in case any small changes need to be made on 0.6.x before this release is ready. If that seems like overkill for something where API-breaking changes could potentially be avoided, we could always conform to Iron Router's case-insensitivity for an initial release (just to get rid of all the iron router errors for users under the existing API), and release a major update after. I will gladly accept any of your advice on this.
So far, these changes are passing all my tests, including some manual tests with multiple query params, and some additional manual testing on an API of mine that uses Restivus to expose a REST API for mobile apps. The only issue I've run into so far was that I had to update from <IP_ADDRESS> to the latest version of Meteor in that app in order to get it to run. It says it was due to a conflict in the dependency of webapp, which was previously 1.1.6, but now requires 1.2.0 for simple:json-routes. I wasn't sure if this was really an issue worth filing on that repo. Here's the output before I updated:

Is the dependency on the newer version of webapp necessary? I'm not even sure if the latest versions of Restivus truly support all the way back to 0.9.0. I tried testing on older releases, but I need to put together a sample app that doesn't have any other dependencies, since I get a ton of errors that prevent me from running on older releases, and I can't be sure if it's just all the other dependencies in the app. I'll try to be more specific when I have some more time to test. I'm not even sure I'm concerned with supporting anything earlier than 1.0 anyway. Is there somewhere I can see usage statistics for each version of Meteor?

Interesting! I just blindly went with the default dependency on Meteor <IP_ADDRESS>, but looks like it would be better for me to be more conservative with my dependencies. Going to fix that and release a new version!
I think your idea of releasing this as part of a bigger update is great - I don't think there is a big rush to make a backwards-compatible fix. Let me know if there is anything else I should improve in my PR.

Sorry for the delay on this. I finally had a chance to finish going over everything, and I think we can start getting these changes merged in.
All of the automated tests are passing (except for those few expected failures). As I mentioned, I also tested manually using an API from a Meteor app I'm working on, which includes endpoints that use all of the various params (URL, query, and body) and all the available HTTP methods. I extracted the API from the rest of the app into what I will likely make a Restivus sample app. I'll put that up on GitHub as soon as it's ready.
I was able to confirm that this update fixes #35 and #43.
And finally, just to make sure I've covered all the basics, I'll address all the points you made in the initial PR.
1. Make sure we are completely replicating Iron Router path/query parsing
So far so good. Manually tested with all types of params. Still need to setup some automated tests for this. Routes have been changed to be case-sensitive, which is an acceptable backwards-incompatible change, since it conforms to standards.
2. Test that error reporting is the same
From my manual tests, error reporting appears to work as expected. Thrown errors are returned as responses. The stack traces are much cleaner, too. Some automated tests can be added for this.
3. Make sure we are OK with subtle API changes like no longer throwing an error when a route is accessed with the wrong method (now it just does nothing and returns the normal Meteor HTML boilerplate)
This is something I would love to fix. Sending over a 200 response with static HTML is fairly useless to someone consuming a REST API. My goal is to provide a catchall endpoint on the base API path that users can override, in case they would like to change the default response. I still need to look into this further. This would be new functionality though, so it is outside the scope of this PR. It appears it may be related to this issue (at least the status code part of it): https://github.com/iron-meteor/iron-router/issues/1055. You actually commented on that issue a few days ago, saying it needed an issue filed on the meteor repo. I'll be glad to do that once I better understand the nature of the issue (if it isn't already done by then). I'll create a separate issue on this repo for this (and all the other 0.7.0 fixes from the roadmap) as soon as I have a chance.
I went ahead and created a 0.7.0 branch. Would you mind resubmitting this pull request to that branch (unless you know of an easier to way for me to move it to another branch)? Once you do, I'll pull these changes in there. If you think I missed anything please just let me know.


Incompatible connection to leafmap

Environment Information

hypercoast version: 0.7.3
Python version: 3.12
Operating System: Windows 11

Description
Trying to save AVIRIS HSI file as an image.
Have been failing due to an incompatible connection to leafmap
>> ds_pyramid= hypercoast.read_aviris(filepath)
>> hypercoast.aviris_to_image(ds_pyramid,None,'nearest',"test")

Traceback (most recent call last):
  File "C:\Users\Home\PycharmProjects\hsi\.venv\Lib\site-packages\IPython\core\interactiveshell.py", line 3577, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-15-1bb334ad2f28>", line 1, in <module>
    hypercoast.aviris_to_image(ds_pyramid,None,'nearest',"test")
  File "C:\Users\Home\PycharmProjects\hsi\.venv\Lib\site-packages\hypercoast\aviris.py", line 148, in aviris_to_image
    return array_to_image(
           ^^^^^^^^^^^^^^^
  File "C:\Users\Home\PycharmProjects\hsi\.venv\Lib\site-packages\leafmap\common.py", line 10641, in array_to_image
    raise ValueError("resolution must be provided if source is not provided")
ValueError: resolution must be provided if source is not provided

The array_to_image function uses rio.to_raster under the hood. You can try convert the xarray.DataArray to rioxarray by setting crs and transform.
https://corteva.github.io/rioxarray/html/examples/convert_to_raster.html#Converting-DataArray-to-raster

It seems like the missing part was:
hypercoast.aviris_to_image(ds,output="test4"**,cellsize=32,crs="EPSG:3857"**)
It is mandatory input for 'leafmap.array_to_image' (in both aviris_to_image and pace_to_image).
The only issue now is that when reading and immediately saving the ds, I get different file sizes (original vs. saved)

This issue has been fixed in the upstream leafmap package. See https://github.com/opengeos/leafmap/pull/869
Once the package is updated, you should be able to use the following to save the DataArray as an image.
hypercoast.aviris_to_image(dataset, wavelengths=[400, 500, 600], output="aviris.tif")

Leafmap v0.36.6 has been released. Please update it using pip install -U leafmap and try the aviris_to_image() function again.


Add a utility command for creating a new .env file

Since we're interested in super duper automatic things, why not add a utility funciton to create a generic env file? For example, it could determine the present working directory, then create a file .env with the contents use_env <pwd>.
Something like autoenv_new. Then users could alias it to newenv or even .env.

I don't really see a point in this. Maybe it's just obsolete now.


Add text align classes

I'd love to have classes like text-leftetc. to easily align text!

Sorry this is not a util-oriented library, please try Tailwind CSS for that.


permute_ and reshape_ return none

Function 'permute_' and 'reshape_' return None. For example:
A = cytnx.ones([2,3])
B = A.permute_(1,0)
print(B) #None

A = cytnx.UniTensor.ones([2,3])
B = A.permute_([1,0])
print(B) #None

I think the in-place version returns None is proper?

The behaviour was changed after #478.


generate v0.0.1

This is a large PR intended to resolve https://github.com/EthanThatOneKid/dengen/issues/1.
It consists of a module (mod.ts) and a CLI tool (main.ts).

Thanks for taking the time to review, @NfNitLoop! I appreciate your feedback. Allow me to address the main questions.

Why do I want to put //deno:generate <command> in a TypeScript file instead of just in deno task?

Using //deno:generate <command> in a TypeScript file instead of solely relying on deno task offers several advantages. Firstly, incorporating //deno:generate directly into the source code allows for better integration between the generators and the codebase. This approach enables developers to easily understand and manage the generators as an integral part of the project.
Additionally, by utilizing //deno:generate, we can conveniently run multiple generators that are closely tied to the specific TypeScript files. While it's technically feasible to write a deno task that mimics the functionality of a series of //deno:generate commands, this approach may not scale efficiently when the project relies on numerous generators. By placing the //deno:generate directives within the relevant TypeScript files, we achieve a more scalable and flexible solution for managing generator-related tasks.

If two files rely on some generated code, it is recommended to make a shared module from which the two files can import the generated code.

In situations where multiple files depend on the same generated code, it's highly recommended to create a shared module. This shared module serves as a central location from which both files can import the generated code. By doing so, we promote better code organization and encourage code reuse.
The shared module approach also simplifies future modifications and updates. If the generated code needs to be modified or enhanced, we can make the changes in a single place—the shared module—and have the updates reflect in both files that depend on it. This not only reduces code duplication but also improves maintainability by ensuring consistency throughout the project.
I hope this clarifies the benefits of using //deno:generate in TypeScript files and the advantages of employing a shared module when dealing with generated code dependencies. Please let me know if you have any further questions or concerns.


boot.binfmt.emulatedSystems doesn't work

Bug description
Setting boot.binfmt.emulatedSystems in configuration.nix doesn't work as expected, apparently because /proc/sys/fs/binfmt_misc is not mounted properly.
To Reproduce
In /etc/nixos/configuration.nix, set:
{
  boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
  wsl.interop.register = true;
}

Run sudo nixos-rebuild switch to apply the changes.
systemd-binfmt reports errors immediately:
Jan 06 12:21:51 nixos systemd[1]: Starting Set Up Additional Binary Formats...

Jan 06 12:21:51 nixos systemd[1]: Failed to start Set Up Additional Binary Formats.
warning: error(s) occurred while switching to the new configuration

Try to run an aarch64-linux binary, it will fail with Exec format error.
The problem is that systemd-binfmt cannot access /proc/sys/fs/binfmt_misc.
To see the problem, run ls /proc/sys/fs/binfmt_misc, it responds: ls: cannot access '/proc/sys/fs/binfmt_misc': Too many levels of symbolic links.
Expected behavior
systemd-binfmt should set up additional binary formats successfully, and the resulting system should be able to execute aarch64-linux binaries.
Workaround
sudo mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc
sudo systemctl restart systemd-binfmt

After running these commands, systemd-binfmt registers the additional binary formats successfully. To confirm, run sudo systemctl status systemd-binfmt:
● systemd-binfmt.service - Set Up Additional Binary Formats
     Loaded: loaded (/etc/systemd/system/systemd-binfmt.service; enabled; vendor preset: enabled)
     Active: active (exited) since Fri 2023-01-06 12:24:04 UTC; 9s ago
       Docs: man:systemd-binfmt.service(8)
             man:binfmt.d(5)
             https://www.kernel.org/doc/html/latest/admin-guide/binfmt-misc.html
             https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
    Process: 3626 ExecStart=/nix/store/dyxmql05ykvhgipv29l0vkq9xrcsxh0s-systemd-250.4/lib/systemd/systemd-binfmt (code=exi>
   Main PID: 3626 (code=exited, status=0/SUCCESS)
         IP: 0B in, 0B out

Jan 06 12:24:03 nixos systemd[1]: Starting Set Up Additional Binary Formats...
Jan 06 12:24:04 nixos systemd[1]: Finished Set Up Additional Binary Formats.

With this workaround I am able to execute aarch64-linux binaries successfully until the next reboot.

To see the problem, run ls /proc/sys/fs/binfmt_misc, it responds: ls: cannot access '/proc/sys/fs/binfmt_misc': Too many levels of symbolic links.

I only have WSLInterop turned on and that works for me:
 ▶ ls /proc/sys/fs/binfmt_misc
 register   status   WSLInterop

Weirdly the mount command in wrapper.sh is exactly what I'm running to workaround the problem. So I guess the mount is not taking effect for some reason.
Also I have no idea why the kernel is complaining Too many levels of symbolic links. There aren't any symbolic links in any part of the path /proc/sys/fs/binfmt_misc.
I see this suspicious line in my /proc/mounts:
systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=45,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=835776 0 0

This is not familiar to me but is probably normal. But notably it appears after the binfmt_misc mount that was presumably created by wrapper.sh.
It looks like some part of systemd is mounting autofs over the existing binfmt_misc mount, perhaps that's the problem? I guess my workaround works because it mounts binfmt_misc again over the existing mounts.
I had the same experience that WSLInterop on its own works as expected, but setting boot.binfmt.emulatedSystems causes this problem. I've no idea why that is.

It looks like the autofs mount is created by /etc/systemd/system/proc-sys-fs-binfmt_misc.automount.
It seems like the underlying issue might be that autofs is broken and always responds Too many levels of symbolic links?

Fixed upstream.


Plugin to output one (or more) histogram

Is this what Histogram1D and renderers.Histogram1D does?  (I separate the binning and the rendering into two steps, since one might want to render the same bins in different ways, or superimposed with other histograms and functions)


[offline/SW] Make worky offline

Later in the project, we need to add a service worker to make the whole offline thing happen.
#77 needs to be considered along with this, as it'll involve a code-update flow that may be out of step with updating the main app.

Question: assuming we'll use workbox or similar and not roll our own ya?

Ended up rolling my own. Wasn't exactly the plan, but with the deadline looming I didn't have time to learn workbox.

In addition to https://github.com/GoogleChromeLabs/squoosh/pull/234, I'm going to:

[ ] Alert the user when the app is first available offline.
[ ] Auto-reload the app if an update is installed before the user interacts.
[ ] Otherwise, alert the user to the update.
[ ] Create a changelog.
[ ] Show the user the changelog the first time they load a particular version. The changelog will be the difference between the version they have now and the previous version they saw.

re-tagging this for V2

closing this as clean up. let's add new issues about better offline support


cupyx.scipy.signal.convolve2d yields a JitifyException: Runtime compilation

Description
The following snipet of code produces a Jitify Exception at Runtime compilation:
from cupyx.scipy import signal
from scipy import misc
import cupy as cp

ascent = misc.ascent()
scharr = cp.array([[ -3-3j, 0-10j,  +3 -3j],
                   [-10+0j, 0+ 0j, +10 +0j],
                   [ -3+3j, 0+10j,  +3 +3j]]) # Gx + j*Gy
ascentcp = cp.array(ascent)
grad = signal.convolve2d(ascentcp, scharr, boundary='symm', mode='same')

The error info I have collected follows:
---------------------------------------------------
--- JIT compile log for /tmp/tmpv46hshqr/48d1e6d813e89a765e8f8cac84ee6955_2.cubin.cu ---
---------------------------------------------------
cupy/complex/complex.h(94): warning: __device__ annotation is ignored on a function("complex") that is explicitly defaulted on its first declaration

cupy/complex/complex.h(101): warning: __device__ annotation is ignored on a function("complex") that is explicitly defaulted on its first declaration

type_traits(1): warning: extra text after expected end of preprocessing directive

type_traits(2): warning: white space is required between the macro name "_JITIFY_INCLUDE_GUARD_C" and its replacement text

/tmp/tmpv46hshqr/48d1e6d813e89a765e8f8cac84ee6955_2.cubin.cu(24): error: no suitable conversion function from "W" to "Y" exists
          detected during instantiation of "std::enable_if<<expression>, B>::type cast<B,A>(A) [with B=Y, A=W]"
(81): here

1 error detected in the compilation of "/tmp/tmpv46hshqr/48d1e6d813e89a765e8f8cac84ee6955_2.cubin.cu".

---------------------------------------------------
JITIFY compilation error: Runtime compilation failed
-----
Name: /tmp/tmpv46hshqr/48d1e6d813e89a765e8f8cac84ee6955_2.cubin.cu
Options: --std=c++11 -DCUPY_USE_JITIFY -I/home/admpy/Scripting/anaconda3/lib/python3.8/site-packages/cupy/_core/include -I/home/admpy/Scripting/anaconda3/lib/python3.8/site-packages/cupy/_core/include/cupy/_cuda/cuda-11.2 -I/usr/local/cuda-11.2/include -ftz=true --device-debug --generate-line-info
CUDA source:
01 #include <cupy/complex.cuh>
02 #include <cupy/carray.cuh>
03 #include <cupy/atomics.cuh>
04
05     typedef complex<double> W;
06 typedef long long X;
07 typedef long long Y;
08
09
10 // workaround for HIP: line begins with #include
11 #include <type_traits>  // let Jitify handle this
12 #include <cupy/math_constants.h>
13
14 // Implements a casting function to make it compatible with scipy
15 // Use like cast<to_type>(value)
16 template<> struct std::is_floating_point<float16> : std::true_type {};
17 template<> struct std::is_signed<float16> : std::true_type {};
18 template<class T> struct std::is_signed<complex<T>> : std::is_signed<T> {};
19
20 template <class B, class A>
21 __device__ __forceinline__
22 typename std::enable_if<(!std::is_floating_point<A>::value
23                          || std::is_signed<B>::value), B>::type
24 cast(A a) { return (B)a; }
25
26 template <class B, class A>
27 __device__ __forceinline__
28 typename std::enable_if<(std::is_floating_point<A>::value
29                          && (!std::is_signed<B>::value)), B>::type
30 cast(A a) { return (a >= 0) ? (B)a : -(B)(-a); }
31
32 template <class T>
33 __device__ __forceinline__ bool nonzero(T x) { return x != static_cast<T>(0); }
34
35     extern "C" __global__ void cupyx_scipy_ndimage_correlate_2d_reflect_w3_3(const CArray<long long, 2, 1, 1> x, const CArray<complex<double>, 2, 0, 1> w, CArray<long long, 2, 1, 1> _raw_y, CIndexer<2> _ind) {
36       ;
37       CUPY_FOR(i, _ind.size()) {
38         _ind.set(i);
39         Y &y = _raw_y[_ind.get()];
40
41     int xsize_0=x.shape()[0], ysize_0 = _raw_y.shape()[0], xstride_0=x.strides()[0];
42 int xsize_1=x.shape()[1], ysize_1 = _raw_y.shape()[1], xstride_1=x.strides()[1];
43     int _i = i;
44 int ind_1 = _i % ysize_1 - 1; _i /= ysize_1;
45 int ind_0 = _i - 1;
46     // don't use a CArray for indexing (faster to deal with indexing ourselves)
47     const unsigned char* data = (const unsigned char*)&x[0];
48     int iws = 0;
49     W sum = (W)0;
50
51     for (int iw_0 = 0; iw_0 < 3; iw_0++)
52     {
53         int ix_0 = ind_0 + iw_0;
54
55         if (ix_0 < 0) {
56             ix_0 = - 1 -ix_0;
57         }
58         ix_0 %= xsize_0 * 2;
59         ix_0 = min(ix_0, 2 * xsize_0 - 1 - ix_0);
60         ix_0 *= xstride_0;
61
62
63     for (int iw_1 = 0; iw_1 < 3; iw_1++)
64     {
65         int ix_1 = ind_1 + iw_1;
66
67         if (ix_1 < 0) {
68             ix_1 = - 1 -ix_1;
69         }
70         ix_1 %= xsize_1 * 2;
71         ix_1 = min(ix_1, 2 * xsize_1 - 1 - ix_1);
72         ix_1 *= xstride_1;
73
74         // inner-most loop
75         W wval = w[iws];
76 if (nonzero(wval)) {
77             sum += cast<W>((*(X*)&data[ix_0 + ix_1])) * wval;
78         }
79         iws++;
80     }}
81     y = cast<Y>(sum);
82     ;
83       }
84       ;
85     }
86
-----
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
~/Scripting/anaconda3/lib/python3.8/site-packages/cupy/cuda/compiler.py in _jitify_prep(source, options, cu_path)
    245     try:
--> 246         name, options, headers, include_names = jitify(
    247             source, options, _jitify_header_source_map)

cupy/cuda/jitify.pyx in cupy.cuda.jitify.jitify()

cupy/cuda/jitify.pyx in cupy.cuda.jitify.jitify()

RuntimeError: Runtime compilation failed

During handling of the above exception, another exception occurred:

JitifyException                           Traceback (most recent call last)
<ipython-input-37-0806ad4d1efe> in <module>
----> 1 grad = signal.convolve2d(ascentcp, scharr, boundary='symm', mode='same')

~/Scripting/anaconda3/lib/python3.8/site-packages/cupyx/scipy/signal/signaltools.py in convolve2d(in1, in2, mode, boundary, fillvalue)
    343     .. seealso:: :func:`scipy.signal.convolve2d`
    344     """
--> 345     return _correlate2d(in1, in2, mode, boundary, fillvalue, True)
    346
    347

~/Scripting/anaconda3/lib/python3.8/site-packages/cupyx/scipy/signal/signaltools.py in _correlate2d(in1, in2, mode, boundary, fillvalue, convolution)
    409     if quick_out is not None:
    410         return quick_out
--> 411     return _st_core._direct_correlate(in1, in2, mode, in1.dtype, convolution,
    412                                       boundary, fillvalue, not convolution)
    413

~/Scripting/anaconda3/lib/python3.8/site-packages/cupyx/scipy/signal/_signaltools_core.py in _direct_correlate(in1, in2, mode, output, convolution, boundary, fillvalue, shift)
     73     in2 = _reverse(in2) if convolution else in2.conj()
     74     if not swapped_inputs or convolution:
---> 75         kernel(in1, in2, output)
     76     elif output.dtype.kind != 'c':
     77         # Avoids one array copy

cupy/_core/_kernel.pyx in cupy._core._kernel.ElementwiseKernel.__call__()

cupy/_core/_kernel.pyx in cupy._core._kernel.ElementwiseKernel._get_elementwise_kernel()

cupy/_util.pyx in cupy._util.memoize.decorator.ret()

cupy/_core/_kernel.pyx in cupy._core._kernel._get_elementwise_kernel()

cupy/_core/_kernel.pyx in cupy._core._kernel._get_simple_elementwise_kernel()

cupy/_core/core.pyx in cupy._core.core.compile_with_cache()

~/Scripting/anaconda3/lib/python3.8/site-packages/cupy/cuda/compiler.py in compile_with_cache(source, options, arch, cache_dir, extra_source, backend, enable_cooperative_groups, name_expressions, log_stream, jitify)
    458             name_expressions, log_stream, cache_in_memory)
    459     else:
--> 460         return _compile_with_cache_cuda(
    461             source, options, arch, cache_dir, extra_source, backend,
    462             enable_cooperative_groups, name_expressions, log_stream,

~/Scripting/anaconda3/lib/python3.8/site-packages/cupy/cuda/compiler.py in _compile_with_cache_cuda(source, options, arch, cache_dir, extra_source, backend, enable_cooperative_groups, name_expressions, log_stream, cache_in_memory, jitify)
    536     if backend == 'nvrtc':
    537         cu_name = '' if cache_in_memory else name + '.cu'
--> 538         ptx, mapping = compile_using_nvrtc(
    539             source, options, arch, cu_name, name_expressions,
    540             log_stream, cache_in_memory, jitify)

~/Scripting/anaconda3/lib/python3.8/site-packages/cupy/cuda/compiler.py in compile_using_nvrtc(source, options, arch, filename, name_expressions, log_stream, cache_in_memory, jitify)
    296                 cu_file.write(source)
    297
--> 298             return _compile(source, options, cu_path,
    299                             name_expressions, log_stream, jitify)
    300     else:

~/Scripting/anaconda3/lib/python3.8/site-packages/cupy/cuda/compiler.py in _compile(source, options, cu_path, name_expressions, log_stream, jitify)
    265
    266         if jitify:
--> 267             options, headers, include_names = _jitify_prep(
    268                 source, options, cu_path)
    269         else:

~/Scripting/anaconda3/lib/python3.8/site-packages/cupy/cuda/compiler.py in _jitify_prep(source, options, cu_path)
    252         if dump:
    253             cex.dump(sys.stderr)
--> 254         raise JitifyException(str(cex))
    255     assert name == cu_path
    256

JitifyException: Runtime compilation failed
------------------------------------------------------------------------------------------

To produce this error report I had the following environment variables.  %env in python:
 'CUPY_CUDA_COMPILE_WITH_DEBUG': '1',
 'CUPY_DUMP_CUDA_SOURCE_ON_ERROR': '1',
 'CUPY_CACHE_SAVE_CUDA_SOURCE': '1',

Thank you for reading.
To Reproduce
from cupyx.scipy import signal
from scipy import misc
import cupy as cp

ascent = misc.ascent()
scharr = cp.array([[ -3-3j, 0-10j,  +3 -3j],
                   [-10+0j, 0+ 0j, +10 +0j],
                   [ -3+3j, 0+10j,  +3 +3j]]) # Gx + j*Gy
ascentcp = cp.array(ascent)
grad = signal.convolve2d(ascentcp, scharr, boundary='symm', mode='same')

Installation
Conda-Forge (conda install ...)
Environment
my cupy config settings:
{40}>> cp.show_config()
OS                           : Linux-4.18.0-240.22.1.el8_3.x86_64-x86_64-with-glibc2.10
Python Version               : 3.8.5
CuPy Version                 : 9.5.0
CuPy Platform                : NVIDIA CUDA
NumPy Version                : 1.19.5
SciPy Version                : 1.6.2
Cython Build Version         : 0.29.24
Cython Runtime Version       : 0.29.23
CUDA Root                    : /usr/local/cuda-11.2
nvcc PATH                    : /usr/local/cuda-11.2/bin/nvcc
CUDA Build Version           : 11020
CUDA Driver Version          : 11020
CUDA Runtime Version         : 11020
cuBLAS Version               : (available)
cuFFT Version                : 10400
cuRAND Version               : 10203
cuSOLVER Version             : (11, 0, 2)
cuSPARSE Version             : (available)
NVRTC Version                : (11, 2)
Thrust Version               : 101000
CUB Build Version            : 101000
Jitify Build Version         : <unknown>
cuDNN Build Version          : 8201
cuDNN Version                : 8201
NCCL Build Version           : 21003
NCCL Runtime Version         : 21104
cuTENSOR Version             : 10303
cuSPARSELt Build Version     : 100
Device 0 Name                : GeForce RTX 2060 SUPER
Device 0 Compute Capability  : 75
Device 0 PCI Bus ID          : 0000:01:00.0

Additional Information
To produce this error report I had the following environment variables.  %env in python:
 'CUPY_CUDA_COMPILE_WITH_DEBUG': '1',
 'CUPY_DUMP_CUDA_SOURCE_ON_ERROR': '1',
 'CUPY_CACHE_SAVE_CUDA_SOURCE': '1',

regarding the installation I did it with the following command :
    {43}>> %hist -g conda-forge
...
182/413: !bin/conda install -c nvidia -c rapidsai -c conda-forge cupy cudatoolkit=11.2 cudnn cutensor nccl

I am a newby on CUDA. I have been learning and using Cupy for some time now. I was going through cupyx.scipy modules and functions when I came across this issue. I would love to have enough knowledge to have a go myself at fixing this issue, but I don't even know where to start even though I know Python and a bit of C++. That "Jitify" looks intimidating to me as  I don't know anything about it.
Any guidance / tutorials would be appreciated. This is my 1st issue found and reported.
I hope you find all the information needed.  Thank you for reading.

Thanks for reporting! Issue confirmed. Seems cast between complex128 are not defined.
I could workaround the issue by using ascentcp = cp.array(ascent, dtype=cp.complex128).

I can confirm that the workaround suggested does work.
Using the line
ascentcp = cp.array(ascent, dtype=cp.complex128)
instead. The error does not occur.
Thank you very much!!

Can reproduce it too. I think a proper fix is to add a cupy.can_cast(in1, in2, casting='safe') check somewhere in the call path for signal APIs.


Does Prisma WS endpoint support queries and mutations?

Does Prisma GraphQL database WebSockets endpoint support queries and mutations or only subscriptions?
I'm trying to send queries and mutations to Prisma over WebSockets (using wss://, not https:// endpoint), but get the following error:

The provided query doesn't include any known model name. Please check for the latest subscriptions API.

No, it doesn't 🙂
Would be great if you can open an according feature request for this!

@marktani Done, see #2607. :wink:


Support pathlib with asdf.open and AsdfFile.write_to

This resolves #616.
cc @Cadair

Coverage increased (+0.006%) to 95.105% when pulling af67f0f5fa5d564a8deb027de387bc2946230733 on drdavella:support-pathlib into 7a19b60c182ee5c2ff7c5d880db287834a15732d on spacetelescope:master.


Add Nature News link

Fantastic work, just adding the Nature News to the list of articles covering the study

Thanks, and thank you for the PR ❤


Watts or mAh Selection

Feature Request: A toggle to swap usage in Watts to usage in Milliamp hours.
Additional feature: If mAh is over 1,000, an option to display it in shortened form (-1.0K mAh)
Love the simplicity of the app, keep it up.

Related: https://github.com/dubrowgn/wattz/issues/15, https://github.com/dubrowgn/wattz/issues/16.
I have been planning to make the indicator value selectable from any of the values in the main app screen, but I unfortunately haven't gotten around to it yet.
Regarding showing mAh, the indicator really only has enough space for about 2 digits since it is square and I can't make it wider. If I make the text small enough to fit more digits, it probably wouldn't be readable.

You motivated me to finally take a look at implementing this.
Release https://github.com/dubrowgn/wattz/releases/tag/v1.13 added a units setting for the status bar indicator. It should show up in F-Droid in the next few days. Google Play is a different story due to new changes to their publishing requirements, so no ETA there at the moment. Feel free to try it out and let me know if that is at all what you were looking for.


[QUESTION] [BEGINNER] How to save image from 4d tensor? generating plain noise.

Hi, I am running the following code:
import torch
from dalle2_pytorch import DALLE2, DiffusionPriorNetwork, DiffusionPrior, Unet, Decoder, OpenAIClipAdapter

# openai pretrained clip - defaults to ViT/B-32

clip = OpenAIClipAdapter()

# mock data

text = torch.randint(0, 49408, (4, 256)).cuda()
images = torch.randn(4, 3, 256, 256).cuda()

# prior networks (with transformer)

prior_network = DiffusionPriorNetwork(
    dim = 512,
    depth = 6,
    dim_head = 64,
    heads = 8
).cuda()

diffusion_prior = DiffusionPrior(
    net = prior_network,
    clip = clip,
    timesteps = 100,
    cond_drop_prob = 0.2
).cuda()

loss = diffusion_prior(text, images)
loss.backward()

# do above for many steps ...

# decoder (with unet)

unet1 = Unet(
    dim = 128,
    image_embed_dim = 512,
    cond_dim = 128,
    channels = 3,
    dim_mults=(1, 2, 4, 8)
).cuda()

unet2 = Unet(
    dim = 16,
    image_embed_dim = 512,
    cond_dim = 128,
    channels = 3,
    dim_mults = (1, 2, 4, 8, 16)
).cuda()

decoder = Decoder(
    unet = (unet1, unet2),
    image_sizes = (128, 256),
    clip = clip,
    timesteps = 100,
    image_cond_drop_prob = 0.1,
    text_cond_drop_prob = 0.5,
    condition_on_text_encodings = False  # set this to True if you wish to condition on text during training and sampling
).cuda()

for unet_number in (1, 2):
    loss = decoder(images, unet_number = unet_number) # this can optionally be decoder(images, text) if you wish to condition on the text encodings as well, though it was hinted in the paper it didn't do much
    loss.backward()

# do above for many steps

dalle2 = DALLE2(
    prior = diffusion_prior,
    decoder = decoder
)

generating images:
images = dalle2(
    ['a butterfly trying to escape a tornado'],
    cond_scale = 2. # classifier free guidance strength (> 1 would strengthen the condition)
)

and trying to save:
from torchvision.utils import save_image
save_image(images[0], 'img.png')

but the img.png is just plain noise... what am I missing here? can anyone please tell me. I just want to try out the code, I am new to ML.

You're missing the part "use a large dataset and a GPU for many hours to do
a lot of forward, backward and optimization passes"
There is no pretrained model yet
On Tue, May 10, 2022, 10:14 dani3lh00ps @.***> wrote:

Hi, I am running the following code:
import torch
from dalle2_pytorch import DALLE2, DiffusionPriorNetwork, DiffusionPrior, Unet, Decoder, OpenAIClipAdapter
openai pretrained clip - defaults to ViT/B-32
clip = OpenAIClipAdapter()
mock data
text = torch.randint(0, 49408, (4, 256)).cuda()
images = torch.randn(4, 3, 256, 256).cuda()
prior networks (with transformer)
prior_network = DiffusionPriorNetwork(
dim = 512,
depth = 6,
dim_head = 64,
heads = 8
).cuda()
diffusion_prior = DiffusionPrior(
net = prior_network,
clip = clip,
timesteps = 100,
cond_drop_prob = 0.2
).cuda()
loss = diffusion_prior(text, images)
loss.backward()
do above for many steps ...
decoder (with unet)
unet1 = Unet(
dim = 128,
image_embed_dim = 512,
cond_dim = 128,
channels = 3,
dim_mults=(1, 2, 4, 8)
).cuda()
unet2 = Unet(
dim = 16,
image_embed_dim = 512,
cond_dim = 128,
channels = 3,
dim_mults = (1, 2, 4, 8, 16)
).cuda()
decoder = Decoder(
unet = (unet1, unet2),
image_sizes = (128, 256),
clip = clip,
timesteps = 100,
image_cond_drop_prob = 0.1,
text_cond_drop_prob = 0.5,
condition_on_text_encodings = False  # set this to True if you wish to condition on text during training and sampling
).cuda()
for unet_number in (1, 2):
loss = decoder(images, unet_number = unet_number) # this can optionally be decoder(images, text) if you wish to condition on the text encodings as well, though it was hinted in the paper it didn't do much
loss.backward()
do above for many steps
dalle2 = DALLE2(
prior = diffusion_prior,
decoder = decoder
)
generating images:
images = dalle2(
['a butterfly trying to escape a tornado'],
cond_scale = 2. # classifier free guidance strength (> 1 would strengthen the condition)
)
and trying to save:
from torchvision.utils import save_image
save_image(images[0], 'img.png')
but the img.png is just plain noise... what am I missing here? can anyone
please tell me. I just want to try out the code, I am new to ML.
—
Reply to this email directly, view it on GitHub
https://github.com/lucidrains/DALLE2-pytorch/issues/80, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAR437R2HWRZRCQBO7PEWB3VJILFZANCNFSM5VQXHNDQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

okay, so given we use clip model from openai,
we still need to train the prior and decoder...


VSCode IntelliSense not working with .fsx files

VSCode intellisense and tooltip not working only with .fsx files and I don't get errors message about that I have no idea what is the main reason in VSCode ! but it works fine with .fs files.

Hey @rebiiin. Which version of Ionide are you using?
I'm using Ionide v5.6.0 in Ubuntu 20.04 with dotnet version 5.0.201 and those features are working here for the .fsx files.

Also @rebiiin do you have the .net 6 previews installed? Currently FSX support in ionide is completely broken if they are. It's something we're looking into for the next release.

@64J0  thank you for your replay  Ionide v5.6.0 , dotnet version 5.0.302 and 6.0.100-preview.5.21302.13

@baronfel  thank you for replay, as you mentioned I have installed the .net 6 previews along .net 5.0.302 I got your answer.


react-tags breaks default dnd behaviour

I have an input field which I drag images to in my application. After adding tags to my application this no longer works.
demo: http://www.webpackbin.com/4Jji1CstZ

Hey! Thanks for raising this issue and creating the webpackbin link. However, I'm not sure if I'm able to replicate the issue. I removed <Tags> and I still couldn't see any difference with the image being dragged. Could you please clarify what exactly should I be expecting to see?
Thanks!

Im dragging the image into the input field. After adding a tag this is not possible anymore.
I created a gif showing how to reproduce it -> http://imgur.com/a/CRkLv

@twltwl does this issue happen v5.0.1 ?

this should be fixed via https://github.com/react-tags/react-tags/issues/637, feel free to reopen if it still persists.
The fix will be released in the next version.