VSCode Causes Windows 10 to Freeze and Crash

VSCode Version: 1.9.1
OS Version: Windows 10 Enterprise x64
Graphics Cards: Intel HD Graphics 530 (<IP_ADDRESS>31) / Nvidia Quadro M2000M (<IP_ADDRESS>49)
Laptop: Dell Precision 7510 - Latest drivers for everything (as of 28/02/2017)
i7-6820HQ - 64GB RAM - 512GB Toshiba NVMe - Intel Display Audio + Realtek Audio

Steps to Reproduce:

Open VSCode
Let or put laptop to sleep / power save.
Wake laptop up and start using.
After a short amount of time, the entire Windows GUI stops responding after a few more click the mouse freezes.

No ability to recover from this except a hard power cycle.
Windows outputs no errors in the Windows event logs.
This happens every time with VS code. It does not happen with anything else we have running.
The same thing on multiple laptops of the same spec.
Compatibility mode (Win 7 / 8 ) does not help.
Not sure exactly where the problem lies (Windows 10 / Intel Graphics / Nvidia Graphics / VSCode) but as its only VSCode that does it, i'm starting by posting it here.
Thanks for any help/pointers or fixes.
If you need more info or logs please ask.
Extensions:
abusaidm.html-snippets-0.1.0
christian-kohler.npm-intellisense-1.3.0
christian-kohler.path-intellisense-1.2.0
dbaeumer.vscode-eslint-1.2.6
donjayamanne.bower-0.0.3
eg2.tslint-0.8.1
fknop.vscode-npm-3.3.0
msjsdiag.debugger-for-chrome-2.5.5
pflannery.vscode-versionlens-0.12.1
robertohuertasm.vscode-icons-7.3.0
robinbentley.sass-indented-1.3.0
seanmcbreen.Spell-0.9.1
wayou.vscode-todo-highlight-0.4.0
Zignd.html-css-class-completion-1.0.3

Does it reproduce when you run code --disable-gpu

Typically after weeks of non-stop crashing, I cant replicate the issue anymore?!

Either the Intel (from the Intel website rather then Dell website) drivers i updated today (Bluetooth and Wireless) fixed a bug.
I updated some of the extensions and maybe one fixed the bug.
I also ran the Windows 10 compatibility troubleshooter which put it into Win 8 mode, iv since unchecked the mode to test but the wizard might have changed something else as well.
Or i'm just not hitting the bug at the moment.

I haven't tried the switch you supplied, but if it resurfaces i will test it out.
Thanks for the suggestion.
Closing the issue for the time being.


Catching up

Catching up thomsonreuters/jira-plugin with jenkinsci/jira-plugin

We found a workaround and no longer need to make the bug fix we were planning.


Port Delimiter

White-space separated is common, but not the only option. Let the user specify what delimiter to use.

Added. Will be available in Revision 0.1.2.


Develop Host-Page API

An injectable application may expose a message-based API to the host page it is embedded into. This project focuses on enabling the host page to appropriately influence the operation of the application. Examples of potential API calls for a host page include selections of fonts and font sizes, maximum length of content, etc.

I am 3rd year computer engineering student from Jamia Millia Islamia,India I have been programming in HTML, CSS, JS, Java, C, C++ for the past 3 years.
Can you please guide me further, as to what are the prerequisites for the project, and any other "tasks" that I might complete to improve my chances of selection.

Howdy @rachidasen
The first steps are to work your way through the "Levels" found here: https://priv.ly/pages/develop#StartingWithBasics
Following that we can start talking about more specific tasks that will prepare you to submit an awesome proposal. In the meantime, it would be good to track the changes of this pull request since it is implementing a message interface that would be used by this project.
-Sean

People are asking for more details on this "idea" so I will add them in the form of a list of problems we hope this project would address.

Privly-applications break the styling of web applications since their contents are not necessarily using the same fonts and formatting.
Privly-applications don't abide by the limits of host-pages in terms of acceptable length, content, etc. So it is possible to post a very long status update to Facebook or Twitter in a way that bypasses these community controls.
Websites may display user-submitted content in multiple places, but some of these places might not be suitable for injection.

Hi @smcgregor sir,
So basically the idea of the API would be to get the URL where injection will take place and then send the CSS and JS files/changes accordingly, right sir? One more thing that can be done is get the CSS of the input field using its ID and then accordingly inject data. This can be handled in the front end.
This would also require us to create a good database with details of major sites where injection of the extension will take place.
All major things and database interaction can be done using AJAX calls with JSON data being sent according to the URL.
Am I correct sir? Anything I am missing or need more information about?

The problem with a server-side database is that a server will be able to log the websites visited by users. Perhaps an approach would be to analyze the styling of the host page using a content script, then send a stylesheet into the injected application with postMessage.

Intent on being part of Google Summer of Code Team
Hello smcgregor,
I am Akinwale Alexander, A final year student at Bluecrest college, Accra, Ghana. After scanning through some participating organisation in GSOC 2015, I found Privly, and some of the projects within the program, of particular interest.
So I have taken the time to check out Privly on Github to understand its inner workings with a view to contributing some codes before a day or two. I am preparing a proposal on this project as well as completing the puzzles on the organisation's website. Based on what you have said above, let me quickly make the following comments( I stand corrected):

That the application is injectable means it will indirectly work in the host page it is embedded
This will be decoupled from a particular implementation,
An example that is not far-fetched, even though that may not be thought of yet, is for the application to process pages written in markdown.
The application can be displayed in a seamless way with same look and feel of the host-page.

** Making the application work across the open web with different service endpoints and making it work in an agnostic way poses an initial challenge challenge.

Hi @smcgregor sir,

The problem with a server-side database is that a server will be able to log the websites visited by users.

Yes sir. What I meant by database is collecting all the information that vary or have certain restriction and then send specific data to the injected application. I am not proposing to use MySQL or any other DB but something(a list of things) we can refer to for adding checks.

Perhaps an approach would be to analyze the styling of the host page using a content script, then send a stylesheet into the injected application with postMessage.

Yes sir. This approach sounds good. We can analyze the page for certain checks using source code, URL etc using content script and then send specific changes and not all to be applied. Specific changes and not all to make transfer faster and fast rendering since major CSS and JS portion will remain the same. One more thing that should be done is to keep things responsive.
A question arises in my mind if API will be posted on priv.ly's server or there is a plan to include it in the extension itself. I would suggest former as it will give the ability to make changes without touching the extension. Also new changes can be deployed soon.
Please correct me if I am wrong.

Websites may display user-submitted content in multiple places, but some of these places might not be suitable for injection.

This point remains untouched. Sir could you please elaborate the same.

@waleander I believe your characterization is correct. If you submit a proposal for GSoC, we expect you to open a few pull requests to showcase your ability to work with out code base. Since there are only 4 days left to submit a proposal, you are running out of time.
@ManrajGrover I think you may be wanting to put too much trust in a remote service. We don't want to enable content servers or other services to track the web pages visited by our users. Similarly, we can put API docs on the priv.ly site, but we don't want to build a system that places trust in the priv.ly site or any other site. We place some trust in the content server, but that is only to support users who don't have the extension installed yet.
For the last point, see this issue.

@smcgregor sir,
Then I think we would have to handle all this in the entension itself. We first would have to check the domain and call the API in content-script and make checks accordingly before posting changes. All this will take place in background within extension itself. Therefore we would need to release updates later on for every other fix related to this, if missed.
I went through this issue and tried reproducing it but was not successful. I guess its fixed. But yes I did see the lock appear in broken positions and the ways extension is effecting user experience on Facebook.
So to summarize:
We have three problems to address:
1.Privly-applications break the styling of web applications since their contents are not necessarily using the same fonts and formatting.
We will have to check the page or manually create a reference for major websites with things like font-size, input box size etc. This can be done dynamically as well as statically. For dynamic solution we would need to check CSS properties related to the box message is going to enter before setting properties of the injection. I would prefer this as this would allow minimum changes if website is revamped and sounds future proof.
2.Privly-applications don't abide by the limits of host-pages in terms of acceptable length, content, etc. So it is possible to post a very long status update to Facebook or Twitter in a way that bypasses these community controls.
Here we would have to create checks manually(static checks). I don't think there is any other way possible. Therefore a reference data set will be required here.
3.Websites may display user-submitted content in multiple places, but some of these places might not be suitable for injection.
I guess this is more of bugs related to Point 1 itself and will be fixed when Point 1 is completed.
So work would be:

Create a reference set for major websites where CSS is not working properly. Also check character limits and anything else that is required. Also reference set of properties that will be checked.
Handle CSS properties in Content-Script according to the properties of the input field. Also add a parameter for number of characters to the lock to limit characters on new.html
Handle character limits on new.html before getting link.
Fixing styling related to point 3 for text and injected text. Again requires reference set.
Testing of entension on various websites and fixing bugs.

Sir please correct me if I am wrong. I have started working on the proposal. Also please add if anything I am missing or would be required.


Feat/preprate 2023.2.pre1 premium default

Starting with dpf_server_2023.2.pre1, the licensing logic changes to an operator-based logic where each operator is tagged as either requiring a given (specific or any among a list) license to be checked-out, or as only requiring a license to exist.
This means the ServerContext being Premium means operators are allowed to check-out a license, and is the default behavior.
The ServerContext being Entry means operators are not allowed to check-out a license and will throw an error.
A DPF Server started with a Premium ServerContext cannot be set back to Entry.
Thus, the server_context.py/set_default_server_context() function should not try to apply an new default Entry context to an already running global server started as Premium.
For testing, having new servers being Premium by default means that:

no more need to set the default context as Premium in the conftest.py.
features to be tested as Entry should use a specific server started as Entry.

For examples:

still need to mark the examples as requiring Premium
no more need to set_default_server_context(Premium) in the first lines.

@cbellot000 working on setting Premium as default


helm list shows base version of 1.0.0

Is this the right place to submit this?

[X] This is not a security vulnerability or a crashing bug
[X] This is not a question about how to use Istio

Bug Description
while rest is 1.21.
helm list -n istio-system

NAME      	NAMESPACE   	REVISION	UPDATED                             	STATUS  	CHART         	APP VERSION
istio-base	istio-system	3       	2024-04-17 15:53:05.19476 -0400 EDT 	deployed	base-1.0.0    	1.0.0
istio-cni 	istio-system	2       	2024-04-17 16:07:30.425063 -0400 EDT	deployed	cni-1.21.1    	1.21.1
istiod    	istio-system	3       	2024-04-17 16:19:43.656976 -0400 EDT	deployed	istiod-1.21.1 	1.21.1
ztunnel   	istio-system	2       	2024-04-17 15:53:57.091139 -0400 EDT	deployed	ztunnel-1.21.1	1.21.1

Version
1.21

Additional Information
No response

Weird it does for all the others. And looks right here:
$ helm search repo istio
NAME                    CHART VERSION   APP VERSION     DESCRIPTION
istio/istiod            1.21.1          1.21.1          Helm chart for istio control plane
istio/base              1.21.1          1.21.1          Helm chart for deploying Istio cluster resource...
istio/cni               1.21.1          1.21.1          Helm chart for istio-cni components
istio/gateway           1.21.1          1.21.1          Helm chart for deploying Istio gateways
istio/ztunnel           1.21.1          1.21.1          Helm chart for istio ztunnel components

are you sure you installed 1.21?

Ah, i think i know why, my bad, i used local dir to install base somehow for testing earlier.  Thanks for taking a look!


[IDEA] Improve organization and discoverability of projects

Is your feature request related to a problem?
There are now so many projects on mainnet that discovering projects is getting arduous.
Some ideas for solving this:

Allow project owners to tag their project, allowing projects to be filtered by category
Allow searching for project text (may require a new subgraph version https://thegraph.com/docs/developer/create-subgraph-hosted#defining-fulltext-search-fields)

closing this so we can track this open-ended goal on Notion


RV32M1 SPI loopback needs DEBUG_OPTIMIZATIONS

Not enabling DEBUG_OPTIMIZATIONS in the spi_loopback test leads to reset loops in the code execution on RV32M1 / the vega board.
This was discovered while actually enabling the vegaboard for the spi loopback
https://github.com/zephyrproject-rtos/zephyr/pull/20428
To Reproduce
Take https://github.com/zephyrproject-rtos/zephyr/pull/20428 and remove  CONFIG_DEBUG_OPTIMIZATIONS=y from the board config for the spi loopback test. This will work once, but a reset via the reset button will trigger a loop of aborted and restarted UART output.

***** Booting Zephyr OS build zephyr-v2.0.0-1813-gcbc791fdf249 *****
Running test suite test_spi
===================================================================
starting test - testing_spi
I: SPI test on buffers TX/RX 0x2000004c/0x200003e0
I: Start
I: CS control inhibited (no GPIO device)�***** Booting Zephyr OS build zephyr-v2.0.0-1813-gcbc791fdf249 *****
Running test suite test_spi
===================================================================
starting test - testing_spi
I: SPI test on buffers TX/RX 0x2000004c/0x200003e0
I: Start
I: CS control inhibited (no GPIO device)�***** Booting Zephyr OS build zephyr-v2.0.0-1813-gcbc791fdf249 *****
Running test suite test_spi
===================================================================
starting test - testing_spi
I: SPI test on buffers TX/RX 0x2000004c/0x200003e0
I: Start
I: CS control inhibited (no GPIO device)�***** Booting Zephyr OS build zephyr-v2.0.0-1813-gcbc791fdf249 *****
Running test suite test_spi

Expected behavior
No crash/restarts
Impact
This is limited to the spi_loopback sample on RV32M1 for now
Environment (please complete the following information):
Toolchain from open-isa.org

karsten@katzenklo:~/rv32m1/riscv32-unknown-elf-gcc/bin> ./riscv32-unknown-elf-gcc --version
riscv32-unknown-elf-gcc (GCC) 7.1.1 20170509

Additional context
Commenting out or shuffling around some of the tests will eventually start to a stable test execution, in particular the spi_complete_loop(spi_slow, &spi_cfg_slow) || spi_rx_half_start(spi_slow, &spi_cfg_slow) || 	    spi_rx_half_end(spi_slow, &spi_cfg_slow) || spi_rx_every_4(spi_slow, &spi_cfg_slow) || spi_async_call(spi_slow, &spi_cfg_slow)) before spi_resource_lock_test blocks (for spi_slow and spi_fast) but that could be down to anything. Also the IRQ table seems to be generated correctly, all the pointers are valid and sensible

Not so sure what my actual chances at finding the root cause of this are, I usually find issues around optimization flags to be awfully hard to isolate. But alas it sounds like a good opportunity to figure out how hardfault like handling on risc-v works :-)

With https://github.com/zephyrproject-rtos/zephyr/pull/26031 the crash/restart is fixed, but now the async nature seems to fail if the debug optimization level is disabled again.

Running test suite test_spi
===================================================================
starting test - test_spi_loopback
I: SPI test on buffers TX/RX 0x20000074/0x200005b4
I: SPI test slow config
I: Start complete multiple
I: CS control inhibited (no GPIO device)
I: Passed
I: Start complete loop
I: Passed
I: Start null tx
E: Rx Buffer should contain NOP frames but got: 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
Assertion failed at /home/karsten/zephyrproject/zephyr/tests/drivers/spi/spi_loopback/src/spi.c:266: spi_null_tx_buf: (1 is true)
Buffer not as expected
FAIL - test_spi_loopback
===================================================================
Test suite test_spi failed.
===================================================================
PROJECT EXECUTION FAILED
Assertion failed at /home/karsten/zephyrproject/zephyr/tests/drivers/spi/spi_loopback/src/spi.c:483: spi_async_call_cb: (ret is true)
one or more events are not ready

Ok found the root cause for the async fail and made PR #26032 for that. Together with PR #26031 this issue should be fixed.

Fixed by #26032 #26031 together. Thanks @karstenkoenig !


Update documentation on processors page

Thanks @kwalcock ! Looks great.

On the installation page I'd make a distinction between installing for use with Maven and for SBT.  Some people might think that both somehow apply at the same time.

Good idea! You want to do it, or should I?

+1 for you two, thanks for caring so deeply about the quality of your library and its users!

I need to describe having Maven get the http artifacts.  Plus the tests failed and need to be looked at.  Eric from the lab was going to help with arranging for https.

This is working now.  I'd like to save changes to the installation page for a different PR and go ahead and merge this one.


Fix some typos

As $subject describes.

Hi there, we have some failing tests on main after your latest PR was merged; can you look into these? Until these are passing, further merging is blocked.

I forgot to update columnar_aggregates.out after only updating columnar_aggregates_2.out and testing on my local machine.

Create a new PR #260  to fix this.


Support alternate signal handling for killing shell processes

Snakemake currently kills shell sub-processes vai the subprocess.kill() method, which sends a SIGKILL signal on POSIX OSs.  The underlying process has no chance to clean up or exit gracefullly.
While the default SIGKILL works well in most cases for snakemake, this does not allow the underlying sub-process to handle any error.  While snakemake may clean up intermediate output files and the like, the sub-process may be want to close a http connection or do some other final cleanup with some remote API (ex. aws batch).  Consider using snakemake to run snakemake with the --keep-going option for a silly example.
It would be nice if one of the following would be implemented:

either send SIGTERM via subprocess.terminate
or SIGNINT via subprocess.send_signal, with the former preferred, but consider support configurability for the signal.
have a timeout such that if the process doesn't terminate using the above signal within the period of time, a SIGKILL is called.  This can default to zero to just use SIGKILL right away.

Currently, the work-around is to use the onerror to parse the logs to find if the given process you care about terminated and do the clean up manually.

I should mention, I'd be happy to submit a PR if @johanneskoester think it would be merged.

Hello -- I don't want to write a duplicate of this by mistake so I will add on here. I think it would be a great improvement if this issue with snakemake execution termination could be addressed (text quoted below): https://groups.google.com/forum/#!topic/snakemake/HbKd1_QsMNs
It poses a fairly serious problem when running snakemake in a non-interactive environment such as within a flask application -- where ctrl+C is not possible. It seems like killing snakemake requires grabbing the whole process tree and supplying it to SIGINT. Is that correct? I am fairly novice when it comes to messaging so it would be great to hear your take.

Hello, I haven't found anything on the docs about this
so I made a few tests and it raised some questions.
all tests were made with snakemake running this rule:
rule a:
output: touch('flag')
shell: 'sleep 500'

ctrl+c: with ctrl+c on the terminal the rule stops executing and snakemake prints:
Terminating processes on user request
seems to work fine, but I am looking for a non-interactive solution.

It seems the best way to handle this non-interactively is to send signals (with the kill command):

SIGTERM: snakemake dies and the shell prints "terminated", but the rule keeps running in the background.
it seems snakemake doesn't handle the signal at all.  the directory stays in "locked" state.
(obs. do not confuse this with SIGKILL, TERM can be handled, KILL cannot.)

SIGHUP: pretty much the same behavior as SIGTERM, rule keeps running in the background.

SIGINT: this is the same signal that is sent to the process on ctrl+c, but to my surprise the behavior
was a bit different. sending SIGINT to snakemake makes it print: "Terminating processes on user request."
but it doesn't stop right away like with ctrl+c, I waited a bit but both snakemake and the rule keeps running.
Sending a second SIGINT causes snakemake to print "Cancelling snakemake on user request." but nothing else
changes apparently.
Sending a third SIGINT causes snakemake to die with a KeyboardInterrupt exception but the rule keeps running in the background.

So after a bit more of searching it seems that ctrl+c is actually sending SIGINT to the whole process tree,
fortunately the kill command can do that too with "kill -s SIGINT -$PID", and I get the same results as using ctrl+c.
So this left me wondering: if snakemake is not actually ending the processes itself what is it doing when it prints:
Terminating processes on user request.
Cancelling snakemake on user request.
I don't mind sending the signal to the process tree like ctrl+c does, I just want to understand whats going on in the background.


Use WPSCAN_API_TOKEN env var and fix scan finishing state

This pull request brings the following improvements:

Simplified API token handling
Previously, when running a vulcan-wpscan check, the SDK command helper logged the command and its parameters, including the WPScan API token. To address this, we have switched to using the "official" WPSCAN_API_TOKEN environment variable. This change eliminates the possibility of the token being leaked in the logs.

Improved scan finishing status
Previously, when scanning targets that returned unauthorized or redirect errors, the check was marked as failed. However, this misleadingly indicated a failure, rather than the actual status. In this pull request, we have enhanced the handling of such scenarios. Instead of categorizing the check as failed, we now classify it as inconclusive. This adjustment provides a more accurate representation of the scan result.

Please review the changes and share your feedback.

Why don't to refactor to use the WPSCAN_API_TOKEN env?

Very good point @jesusfcr .
Thank you for pointing out the availability of the WPSCAN_API_TOKEN environment variable. It's much clearer now.
I have made two additional considerations while implementing these changes:

Maintaining retrocompatibility:
To ensure compatibility with existing agent configurations, I have retained the original WPVULNDB_API_TOKEN environment variable. By keeping this variable intact, we avoid breaking any configurations that rely on it.

Added functionality for license usage metrics:
In order to gather metrics on license usage, I have introduced a new function that performs a request and queries the API token status. This enhancement will provide valuable insights into how the license is being utilized.


Increase Primitive Usage.

Hi all,
Based on the contents of #169 we can improve the performance by lowering our code nearer to lax. The amount to which this is effective will, I think, vary. In most cases jax does all the lowering itself giving so it will not be worth the effort but in other cases I think it will give us better performance. For example, consider my MWE using np.linspace below. This is a micro-optimisation, but when we are using the coordinates function as much as we do something like this might be handy.

Regards
Jordan

Here is another example,

This one actually blows my mind.

So Jake Vanderpass suggested (not strictly speaking) against this and said to "trust the compiler". When I suggested it I was under the impression that the jaxpr roughly translated into runtime performance, but Jake said this is not the case. It is still nice to have a fine level of control over the jaxpr (still an important step) since using primitives is almost one to one. However, for the most case I don't think we need to go that far.


gcov cannot write coverage data from child processes

At the end of a successful test, the test process itself ends normally, but ct kills any remaining child of the test process with SIGKILL. This is a problem if that child is executing code under test, because it means gcov has no chance to write coverage data for that process.
In #12 there's some discussion of how gcov writes coverage data.

Please see my comment: https://github.com/beanstalkd/beanstalkd/pull/448#discussion_r301603328.
Maybe we can use SIGTERM instead of SIGKILL?

@kr, we can close it down since it was fixed in beanstalkd.
As slightly related improvement can I suggest following patch? https://github.com/kr/ct/pull/19

This still seems like a gotcha for other projects using ct, so I'd like to keep it open.

I think the ideal behavior here from ct would be:

if the test process finishes the test successfully, it kills all descendants with SIGTERM
it waits for them to complete
if they don't all complete within some time limit, ct then kills the whole process group with SIGKILL (as it already does)

Some things that make this difficult:

We can't do most of this in the test driver process, since we're concerned with children of the test process. The test process itself must be the one to wait.
While ct does have the chance to execute logic in the test process after the test itself has returned successfully, it doesn't know what the children are or even how many there are.
After sending SIGTERM, the test process isn't doing anything but waiting for its children to exit. Arguably ct could begin another test during this time, but it would take some doing to make that happen, since the driver process currently uses termination of the test process to indicate that the test is done and therefore it's okay to start another.

My rough plan for how to do this happens mostly in start at the end of the child branch. Here's what it does currently:
...              // setup test process state
t->f();          // run the test
if (fail) {
    ctfailnow(); // send SIGABRT to self, indicating failure to driver
}
exit(0);         // indicate success to driver process

I'd like to add some logic immediately before that last line.

Set a timer to call exit(0) after a short timeout. (Maybe 1s?) This will ensure that the process exits successfully eventually, no matter how long its children take.
Ignore SIGTERM in the current process (the test process). this is okay because this process has nothing left to do but signal its children and wait for them, and we've already ensured it'll exit soon.
Signal the whole current process group with SIGTERM. This will signal all descendants without having to enumerate them. It'll also signal the current process but we just ignored SIGTERM so that's okay.
Call wait in a loop until there are no children.
Finally, exit(0) as before.

If the children exit promptly, these steps will complete in order. If any child takes too long, the timer will fire and the test process will just exit. Either way, the driver process will kill the process group with SIGKILL as it already does, cleaning up any stragglers. Note that we need this final SIGKILL even if all the immediate children exited promptly, because there could be deeper descendants still running in the process group.


Support usql --version

Support --version in generated usql binaries. Currently displays:
usql 0.0.0-dev

Closed by #34 .


PCSUP-22899 Doc Updates

Please always provide the GitHub issue(s) your PR is for, as well as test URLs where your change can be observed (before and after):
Fix #
Test URLs:

Before: https://main--prisma-cloud-docs--hlxsites.hlx.page/
After: https://--prisma-cloud-docs--hlxsites.hlx.page/
Worker: https://prisma-cloud-docs-production.adobeaem.workers.dev/?branch=

Content updates reviewed & signed-off by Kulvinder Bisla


PhantonJS keeps crashing (almost) consistently

We have an internal application, which has a user journey consisting of several pages. After running through the first 4 pages, Phantom JS crashes on 5th page. Only occassional it can get past the 5th page.
Phantom version: 1.9.2
OS: Windows 7
I have the dump file, but I do not know how to convert it to stack trace on windows.
Thanks!

Please upgrade to PhantomJS 2. 1.9.x is no longer supported, and known to have many crasher bugs that are fixed in 2 version.


[ NEW PAGE ] Retrieving and saving results

Note: on hold until we figure out where in docs to put this and overall patterns structure
Content to include
### Tasks
- [ ] move to this page: https://docs.quantum.ibm.com/run/monitor-job#retrieve-job-results-at-a-later-time

Fixed with #956


issues submitted by our group

Issue submitted to https://github.com/PythonDataScience24/Group26_FilmFinder/issues/12 by me :)


How do I enable it for .scss (sass) files?

By doing "Open all with current extension as... > Tailwind CSS" doesn't work for nested classes.

As the name says this package provides CSS syntax. It extends ST's default CSS syntax package.
Supporting SCSS/SASS in the same way would require ST to provide those base syntaxes, too.
Extending any other 3rd-party package is not possible, because there is no way for a package to declare another one as dependency.


Problem in redirect after CAS server redirects the user's browser to the page of application with the ticketas a parameter.

In the above diagram, till step3, everything is working fine, and CAS server redirects the user's browser back to the application page with a service ticket in the URL, i.e. CAS server is redirecting to a page of application studentlogin.php?ticket=ticket_value. But in step4, phpCAS does not gets the ticket URL out of the URL due to which page is still on studentlogin.php?ticket=ticket_value instead of studentlogin.php, it should go to studentlogin.php. How can we fix this problem?

Please have a look at our the troubleshooting guide.
https://wiki.jasig.org/plugins/servlet/mobile#content/view/6619672

No activity for 6 month


Refactor action.rs

Code cleanup on action.rs. New utility function: initial_setup, sets up the required game account, user account and fungible asset.

@Abhay-2811 Can you please change the base to develop


New networkx versions causing failure in tests

In case you were wondering why the current tests fails after merging here is the reason. With some deprecation of networkx module some tests directly fail (e.g., https://github.com/networkx/networkx/pull/7415). For example a test that calls nx.random_tree. Here is the failure summary for context
FAILED tests/datasets/test_dataset.py::TestSimulateData::test_quad_term_tree[3-7] - AttributeError: module 'networkx' has no attribute 'random_tree'
FAILED tests/datasets/test_dataset.py::TestSimulateData::test_quad_term_tree[6-None] - AttributeError: module 'networkx' has no attribute 'random_tree'
FAILED tests/datasets/test_dataset.py::TestSimulateData::test_quad_term_tree[6-4] - AttributeError: module 'networkx' has no attribute 'random_tree'
FAILED tests/datasets/test_dataset.py::TestSimulateData::test_quad_term_tree[6-7] - AttributeError: module 'networkx' has no attribute 'random_tree'
FAILED tests/datasets/test_dataset.py::TestSimulateData::test_quad_term_tree[3-None] - AttributeError: module 'networkx' has no attribute 'random_tree'
FAILED tests/datasets/test_dataset.py::TestSimulateData::test_quad_term_tree[3-4] - AttributeError: module 'networkx' has no attribute 'random_tree'
ERROR tests/problems/time/test_lineage_problem.py::TestLineageProblem::test_trees_pipeline - AttributeError: module 'networkx' has no attribute 'random_tree'

ping: @MUCDK

fixed in #747


Exception when running a TensorFlow frozen graph model

I get the following exception, when I try to run a TF frozen graph model:
java.lang.RuntimeException: offset + length is higher than original length
java.lang.RuntimeException: java.lang.RuntimeException: offset + length is higher than original length
	at org.nd4j.nativeblas.OpaqueDataBuffer.createView(OpaqueDataBuffer.java:150)
	at org.nd4j.linalg.cpu.nativecpu.buffer.BaseCpuDataBuffer.<init>(BaseCpuDataBuffer.java:168)
	at org.nd4j.linalg.cpu.nativecpu.buffer.FloatBuffer.<init>(FloatBuffer.java:85)
	at org.nd4j.linalg.cpu.nativecpu.buffer.DefaultDataBufferFactory.create(DefaultDataBufferFactory.java:68)
	at org.nd4j.linalg.factory.Nd4j.createBuffer(Nd4j.java:1061)
	at org.nd4j.linalg.api.ndarray.BaseNDArray.<init>(BaseNDArray.java:194)
	at org.nd4j.linalg.api.ndarray.BaseNDArray.<init>(BaseNDArray.java:189)
	at org.nd4j.linalg.cpu.nativecpu.NDArray.<init>(NDArray.java:91)
	at org.nd4j.linalg.cpu.nativecpu.CpuNDArrayFactory.create(CpuNDArrayFactory.java:420)
	at org.nd4j.linalg.factory.Nd4j.create(Nd4j.java:4032)
	at org.nd4j.linalg.api.ndarray.BaseNDArray.create(BaseNDArray.java:2002)
	at org.nd4j.linalg.api.ndarray.BaseNDArray.get(BaseNDArray.java:4284)
	at org.nd4j.autodiff.samediff.internal.InferenceSession.getOutputsHelperTensorArrayOps(InferenceSession.java:709)
	at org.nd4j.autodiff.samediff.internal.InferenceSession.doExec(InferenceSession.java:462)
	at org.nd4j.autodiff.samediff.internal.InferenceSession.getOutputs(InferenceSession.java:222)
	at org.nd4j.autodiff.samediff.internal.InferenceSession.getOutputs(InferenceSession.java:68)
	at org.nd4j.autodiff.samediff.internal.AbstractSession.output(AbstractSession.java:391)
	at org.nd4j.autodiff.samediff.SameDiff.directExecHelper(SameDiff.java:2579)
	at org.nd4j.autodiff.samediff.SameDiff.batchOutputHelper(SameDiff.java:2547)
	at org.nd4j.autodiff.samediff.SameDiff.output(SameDiff.java:2522)
	at org.nd4j.autodiff.samediff.config.BatchOutputConfig.output(BatchOutputConfig.java:143)
...
Caused by: java.lang.RuntimeException: offset + length is higher than original length
	at org.nd4j.nativeblas.Nd4jCpu.dbCreateView(Native Method)
	at org.nd4j.nativeblas.OpaqueDataBuffer.createView(OpaqueDataBuffer.java:133)

        byte[] data = new byte[inputTensorSize * inputTensorSize * 3];
        // initilize data with image data
        INDArray input = Nd4j.create(data, new long[]{1, inputTensorSize, inputTensorSize, 3}, DataType.UINT8);

        SameDiff sd = SameDiff.importFrozenTF(modelFile);
        Map<String, INDArray> result = sd.batchOutput()
                .input("image_tensor", input)
                .output("detection_boxes", "detection_classes", "detection_scores")
                .output();

Expected behavior: it works and I get output INDArrays.
Encountered behavior: it crashes with an exception.
Deeplearning4j version: 1.0.0-beta7
Platform information: macOS Big Sur (11.1 (20C69)).

@b005t3r mind posting the TF file for me to look at? I may have already fixed this issue in master.

@agibsonccc sure, here's the model I tried: https://wetransfer.com/downloads/1e92dddd5696a50ffe7a0614bf30f61220210201141718/4221182af24f33ebd738ef6db1d416b820210201141731/029be8
Let me know if it works on your side and if there's anything I can do to make it work on my end :)

@agibsonccc sorry for being so inpatient, but have you tried the model yet?

@b005t3r  no I haven't yet. We're in the middle of released QA. I'll do this when I get time. I plan on testing this against the current release. I'll try to get to this tomorrow. It shouldn't be too much for me to just try to load the model yet. If you need a guaranteed SLA, please DM me on the forums: https://community.konduit.ai/

@agibsonccc no problem, just please let me know here once you checked it and, if it works, what are my options to make it work on my end as well. Thanks!

@b005t3r  when/if there's a workaround it will be problem specific. If something can work for beta7 I'll suggest that otherwise you might have to build from source till we get the release out.

@agibsonccc thanks, hopefully build from source won't be necessary :)

@b005t3r JFYI I didn't forget about you, I cracked this open tonight but need to look at this a bit tomorrow morning my time (asia)

@agibsonccc great, good luck :) let me know how it went :)

@b005t3r I managed to reproduce this on a few different models.  I'll make sure to get this fixed before release. Thanks for the bug report!

@agibsonccc thank you. When do you plan to release the new version? Matter of days, or weeks/months?

Weeks at the latest but I'll let you know when I get the fix merged in to master. We're preparing for a 1.0 release release candidate so there's a bit of a higher bar for this.

@agibsonccc great, thank you

@agibsonccc, any news about the release? Do you think you will be able to release it this month?

@b005t3r sorry looking in to this now. We're about to do a release so I'm processing these issues in batches. Before that I was focused on build infra. If you want a guaranteed SLA, you are welcome to sign a commercial agreement with us.
I appreciate your patience as I look in to this.

@agibsonccc thanks for the info, I think I should be able to test your snapshots next week. What should I get and where can I get it? Are they available via maven?

@agibsonccc I wanted to try out the snapshots, but it looks like there's no macOS build of 1.0.0-SNAPSHOT and 0.9.2-SNAPSHOT is 3 years old, so probably not what you wanted me to test. Is there a reason why there's no macOS build for this version?

@b005t3r  reuploading snapshots for mac. Let me look at the other ones. The snapshots tend to time out after a few days so they need to be refreshed. Luckily we're working on final testing for the M1 release coming up here as well. Should be this week depending on what comes up in testing.

Sounds great! I'll test things out once the macOS builds are uploaded.
BTW, this is the repo I tried for snapshots: https://oss.sonatype.org/content/repositories/snapshots/org/nd4j/nd4j-native/1.0.0-SNAPSHOT/
Is it the correct one?

Yes it is thanks!
On Tue, Apr 20, 2021, 20:47 Łukasz Łazarecki @.***>
wrote:

Sounds great! I'll test things out once the macOS builds are uploaded.
BTW, this is the repo I tried for snapshots:
https://oss.sonatype.org/content/repositories/snapshots/org/nd4j/nd4j-native/1.0.0-SNAPSHOT/
Is it the correct one?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/eclipse/deeplearning4j/issues/9171#issuecomment-823208530,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAIXL4WB773VQ4BDD7YFRALTJVSVPANCNFSM4W4Y6KEQ
.

Just wanted to make sure - you're still uploading the macOS snapshot builds?

@b005t3r  I'm having it upload snapshots for osx now, it might take a bit.  Ping me tomorrow (sorry I live in asia so it's late here) if there's any issues.

@agibsonccc I'm afraid something went wrong with uploading the macOS snapshots, they are still not available:
 The following artifacts could not be resolved: org.nd4j:nd4j-native-preset:jar:macosx-x86_64:1.0.0-SNAPSHOT, org.nd4j:nd4j-native:jar:macosx-x86_64:1.0.0-SNAPSHOT: Could not find artifact org.nd4j:nd4j-native-preset:jar:macosx-x86_64:1.0.0-SNAPSHOT in snapshots-repo (https://oss.sonatype.org/content/repositories/snapshots)

@b005t3r  sorry the mac GH actions workers are a bit flaky. Let me try again tomorrow. I'm  simultaneously working on publishing a staging repo for internal testing so that's clashing with the snapshot allocation we have. Alternatively, feel free to DM me on the forums: https://community.konduit.ai and I can try the model when I get a chance. Make sure to send me a new link.

I managed to download the macOS files and run it. I think it loads up the model correctly (however with warnings, given below), but for some reason it crashes when I try to run it.
I uploaded my project with all that's needed to run it to github, so would be great if you could give it a go:
https://github.com/b005t3r/dl4j-snapshot-test
Also, it creates some weird files when run:
ops-added-old.txt
ops-imported-old.txt
ops-removed-old.txt
variables-added-old.txt
Console output, along with the exception:
Warning: Versions of org.bytedeco:javacpp:1.5.5 and org.bytedeco:opencv:4.3.0-1.5.3 do not match.
10:11:49.304 [main] INFO org.nd4j.linalg.factory.Nd4jBackend - Loaded [CpuBackend] backend
10:11:49.308 [main] ERROR org.nd4j.common.config.ND4JClassLoading - Cannot find class [org.nd4j.linalg.jblas.JblasBackend] of provided class-loader.
10:11:49.308 [main] ERROR org.nd4j.common.config.ND4JClassLoading - Cannot find class [org.canova.api.io.data.DoubleWritable] of provided class-loader.
10:11:49.309 [main] ERROR org.nd4j.common.config.ND4JClassLoading - Cannot find class [org.nd4j.linalg.jblas.JblasBackend] of provided class-loader.
10:11:49.309 [main] ERROR org.nd4j.common.config.ND4JClassLoading - Cannot find class [org.canova.api.io.data.DoubleWritable] of provided class-loader.
10:11:50.103 [main] INFO org.nd4j.nativeblas.NativeOpsHolder - Number of threads used for linear algebra: 1
10:11:50.106 [main] WARN org.nd4j.linalg.cpu.nativecpu.CpuNDArrayFactory - *********************************** CPU Feature Check Warning ***********************************
10:11:50.106 [main] WARN org.nd4j.linalg.cpu.nativecpu.CpuNDArrayFactory - Warning: Initializing ND4J with Generic x86 binary on a CPU with AVX/AVX2 support
10:11:50.106 [main] WARN org.nd4j.linalg.cpu.nativecpu.CpuNDArrayFactory - Using ND4J with AVX/AVX2 will improve performance. See deeplearning4j.org/cpu for more details
10:11:50.106 [main] WARN org.nd4j.linalg.cpu.nativecpu.CpuNDArrayFactory - Or set environment variable ND4J_IGNORE_AVX=true to suppress this warning
10:11:50.106 [main] WARN org.nd4j.linalg.cpu.nativecpu.CpuNDArrayFactory - *************************************************************************************************
10:11:50.346 [main] INFO org.nd4j.nativeblas.Nd4jBlas - Number of threads used for OpenMP BLAS: 6
10:11:50.507 [main] INFO org.nd4j.linalg.api.ops.executioner.DefaultOpExecutioner - Backend used: [CPU]; OS: [Mac OS X]
10:11:50.507 [main] INFO org.nd4j.linalg.api.ops.executioner.DefaultOpExecutioner - Cores: [12]; Memory: [8.0GB];
10:11:50.507 [main] INFO org.nd4j.linalg.api.ops.executioner.DefaultOpExecutioner - Blas vendor: [OPENBLAS]
10:11:50.510 [main] INFO org.nd4j.linalg.cpu.nativecpu.CpuBackend - Backend build information:
 Clang: "12.0.0 (clang-1<IP_ADDRESS>)"
STD version: 201103L
DEFAULT_ENGINE: samediff::ENGINE_CPU
HAVE_FLATBUFFERS
HAVE_OPENBLAS
10:11:51.115 [main] WARN org.nd4j.imports.converters.ImportClassMapping - Duplicate TF op mapping found for op Pow: org.nd4j.linalg.api.ops.impl.scalar.Pow vs org.nd4j.linalg.api.ops.impl.transforms.custom.Pow
10:11:51.119 [main] WARN org.nd4j.imports.converters.ImportClassMapping - Duplicate TF op mapping found for op FloorMod: org.nd4j.linalg.api.ops.impl.transforms.pairwise.arithmetic.FModOp vs org.nd4j.linalg.api.ops.impl.transforms.pairwise.arithmetic.FloorModOp
10:11:51.811 [main] INFO org.nd4j.autodiff.samediff.SameDiff - Creating new InferenceSession for thread 1
Error at [/Users/runner/work/deeplearning4j/deeplearning4j/libnd4j/include/ops/declarable/generic/shape/reshape.cpp:173:0]:
Reshape: lengths before and after reshape should match, but got 0 vs 1
10:11:52.671 [main] ERROR org.nd4j.linalg.cpu.nativecpu.ops.NativeOpExecutioner - Failed to calculate output shapes for op reshape. Attempted to execute with 2 inputs, 0 outputs, 0 targs, 0 iargs, 0 bargs and 0 dargs. Inputs: [(LONG,[],c), (INT,[1],c)]. Input var names: [Postprocessor/BatchMultiClassNonMaxSuppression/map/while/MultiClassNonMaxSuppression/FilterGreaterThan_82/Where, Postprocessor/BatchMultiClassNonMaxSuppression/map/while/MultiClassNonMaxSuppression/FilterGreaterThan_82/Reshape/shape]. Output var names: [Postprocessor/BatchMultiClassNonMaxSuppression/map/while/MultiClassNonMaxSuppression/FilterGreaterThan_82/Reshape] - Please see above message (printed out from c++) for a possible cause of error.
Exception in thread "main" java.lang.RuntimeException: Op reshape with name Postprocessor/BatchMultiClassNonMaxSuppression/map/while/MultiClassNonMaxSuppression/FilterGreaterThan_82/Reshape failed to execute.org.nd4j.linalg.cpu.nativecpu.ops.CpuOpContext@3dc95b8b Here is the error from c++: Op validation failed
	at org.nd4j.linalg.cpu.nativecpu.ops.NativeOpExecutioner.calculateOutputShape(NativeOpExecutioner.java:1690)
	at org.nd4j.linalg.api.ops.DynamicCustomOp.calculateOutputShape(DynamicCustomOp.java:545)
	at org.nd4j.autodiff.samediff.internal.InferenceSession.getAndParameterizeOp(InferenceSession.java:876)
	at org.nd4j.autodiff.samediff.internal.InferenceSession.getAndParameterizeOp(InferenceSession.java:60)
	at org.nd4j.autodiff.samediff.internal.AbstractSession.output(AbstractSession.java:385)
	at org.nd4j.autodiff.samediff.SameDiff.directExecHelper(SameDiff.java:2579)
	at org.nd4j.autodiff.samediff.SameDiff.batchOutputHelper(SameDiff.java:2547)
	at org.nd4j.autodiff.samediff.SameDiff.output(SameDiff.java:2522)
	at org.nd4j.autodiff.samediff.config.BatchOutputConfig.output(BatchOutputConfig.java:142)
	at TestTFModel.testPoseRecognition(TestTFModel.java:47)
	at TestTFModel.main(TestTFModel.java:22)

I tried running my code again with the new version (1..0.0-M1.1), but it still does not work, call stack below:
15:29:48.842 [Test worker] INFO org.nd4j.linalg.factory.Nd4jBackend - Loaded [CpuBackend] backend
15:29:53.088 [Test worker] INFO org.nd4j.nativeblas.NativeOpsHolder - Number of threads used for linear algebra: 1
15:29:53.091 [Test worker] INFO org.nd4j.linalg.cpu.nativecpu.CpuNDArrayFactory - Binary level Generic x86 optimization level AVX/AVX2
15:29:53.336 [Test worker] INFO org.nd4j.nativeblas.Nd4jBlas - Number of threads used for OpenMP BLAS: 6
15:29:53.500 [Test worker] INFO org.nd4j.linalg.api.ops.executioner.DefaultOpExecutioner - Backend used: [CPU]; OS: [Mac OS X]
15:29:53.500 [Test worker] INFO org.nd4j.linalg.api.ops.executioner.DefaultOpExecutioner - Cores: [12]; Memory: [0.5GB];
15:29:53.500 [Test worker] INFO org.nd4j.linalg.api.ops.executioner.DefaultOpExecutioner - Blas vendor: [OPENBLAS]
15:29:53.503 [Test worker] INFO org.nd4j.linalg.cpu.nativecpu.CpuBackend - Backend build information:
 Clang: "12.0.0 (clang-1<IP_ADDRESS>)"
STD version: 201103L
DEFAULT_ENGINE: samediff::ENGINE_CPU
HAVE_FLATBUFFERS
HAVE_OPENBLAS
15:29:54.081 [Test worker] WARN org.nd4j.imports.converters.ImportClassMapping - Duplicate TF op mapping found for op Pow: org.nd4j.linalg.api.ops.impl.scalar.Pow vs org.nd4j.linalg.api.ops.impl.transforms.custom.Pow
15:29:54.085 [Test worker] WARN org.nd4j.imports.converters.ImportClassMapping - Duplicate TF op mapping found for op FloorMod: org.nd4j.linalg.api.ops.impl.transforms.pairwise.arithmetic.FModOp vs org.nd4j.linalg.api.ops.impl.transforms.pairwise.arithmetic.FloorModOp

Cannot get array for ARRAY type SDVariable - use SDVariable.exec or SameDiff.output instead
java.lang.UnsupportedOperationException: Cannot get array for ARRAY type SDVariable - use SDVariable.exec or SameDiff.output instead
	at org.nd4j.autodiff.samediff.SameDiff.getArrForVarName(SameDiff.java:747)
	at org.nd4j.imports.graphmapper.tf.TFGraphMapper.initFunctionFromProperties(TFGraphMapper.java:826)
	at org.nd4j.linalg.api.ops.impl.shape.Gather.initFromTensorFlow(Gather.java:99)
	at org.nd4j.imports.graphmapper.tf.TFGraphMapper.importGraph(TFGraphMapper.java:356)
	at org.nd4j.imports.graphmapper.tf.TFGraphMapper.importGraph(TFGraphMapper.java:141)
	at org.nd4j.imports.graphmapper.tf.TFGraphMapper.importGraph(TFGraphMapper.java:87)
	at org.nd4j.imports.graphmapper.tf.TFGraphMapper.importGraph(TFGraphMapper.java:73)
	at org.nd4j.autodiff.samediff.SameDiff.importFrozenTF(SameDiff.java:5751)
	at com.ansharstudios.shoottracer.test.TensorFlowWithDL4JTest.testPoseRecognition(TensorFlowWithDL4JTest.java:50)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.runTestClass(JUnitTestClassExecutor.java:110)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:58)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:38)
	at org.gradle.api.internal.tasks.testing.junit.AbstractJUnitTestClassProcessor.processTestClass(AbstractJUnitTestClassProcessor.java:62)
	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:51)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
	at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
	at com.sun.proxy.$Proxy2.processTestClass(Unknown Source)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:119)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:182)
	at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:164)
	at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:414)
	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
	at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
	at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)
	at java.base/java.lang.Thread.run(Thread.java:832)

@b005t3r just letting you know I saw this. Let me take a look when I get some bandwidth. I'll revert either tomorrow or early next week. Thanks!

@agibsonccc just wanted to ask if you maybe found some time to look into this again?


Container Runtime CRD deployment

How to categorize this PR?
/area container-runtimes
/kind bug
/priority normal

What this PR does / why we need it:
Currently Gardener has a bug when a Shoot has multiple worker pools with a container runtime enabled.
This writes the correct worker pool name into the ContainerRuntime CRD.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note:

Fixed a bug when deploying ContainerRuntime custom resources for multiple worker pools

@danielfoehrKn Command "/kind bug" failed with "ConnectTimeout(MaxRetryError("HTTPSConnectionPool(host='api.github.com', port=443): Max retries exceeded with url: /orgs/gardener (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f571051dd10>, 'Connection to api.github.com timed out. (connect timeout=15)'))"))".

Additional Information
Redacted in public. Check backend logs.


Update setup section in contributing guide

Hi again,
I think the setup instructions in CONTRIBUTING.md were outdated since the requirements txt files were removed in previous commits.
I hope this helps!

@tvoirand Thanks for the update!


Make computed deep by default

Fixes #49.
In watcher.py I had to adjust the try/finally statement because when there is an exception, value will not be defined, so another exception will be thrown. And in the tests, we trigger such an exception (StateModifiedError).

LGTM!


service payload resiliency and verification

Changelog

internalize aws s3 cp and continue doing multipart GET
verify service payload contents

Issues fixed or closed
Closes #7
Questions (open the PR then click the check boxes)
Did you update the documentation related to your changes?

[x] Yes
[ ] My changes were not already documented

Did you run make before committing code and opening this PR?

[x] Yes
[ ] I didn't change any code

Did you run porter create-stack and porter sync-stack to verify provisioning
works?

[x] Yes
[ ] N/A

:+1:

👍


Add web tab

Description
Added web tabs. Add a web tab by clicking on the plus button on the top right.
Related Issue
None
Checklist

[x] Tab Persistance
[x] URL edit, refresh, back, forward
[x] Update tab title and url on navigation change

[x] I read and understood the contributing guide as well as the code of conduct
[x] My changes generate no new warnings
[x] My code builds and runs on my machine
[x] I documented my code
[x] Review requested

Screenshots

I'll merge this, but we really do need to decide what it's functionality is gonna be.


The WTFPL, also a choice

https://github.com/github/choosealicense.com/pull/210 which also implements, is currently open for discussion.

This license was intentionally left off of the list of choices, because one of the "Whatever you want" things to do, is "Sue the author for liability", which Seems Bad™. Thanks for submitting it though!

Still true ^^  - we shouldn't encourage people to choose licenses that open them up to legal liability

we shouldn't encourage people to choose licenses that open them up to legal liability

:100:% agree. The idea proposed in https://github.com/github/choosealicense.com/issues/273 (which would need to be resolved before it could be added), would be a class of hidden licenses, that would not be recomended, but, if for example, you come across a WTFPL-licensed project, we could at least provide a google-able page to explain what the use can and can't do (and why they shouldn't choose it for the reasons you mentioned). But again, wouldn't be presented as an option / recomendation anywhere.

@benbalter Into it


ThaliCore: TCPListener "Address already in use" doesn't trigger the retry logic

In ThaliCore we added a retry logic for transient errors, we need to figure out if we can recover from this error:
[ThaliCore] TCPListener.startListeningForConnections(on:connectionAccepted:completion:)
failed, error:Error Domain=NSPOSIXErrorDomain Code=48 "Address already in use"
UserInfo={NSLocalizedDescription=Address already in use,
NSLocalizedFailureReason=Error in bind() function}
2017-07-18 07:16:46 - DEBUG thaliMobileNativeWrapper: 'multiConnectResolved:
{"syncValue":"0","error":"Connection could not be established","portNumber":0}'

Another issue with this error is that TCPListener.startListeningForConnections() doesn't return an error to its direct caller (in this case is BrowserRelay.openRelay()), therefore the relay is not released.

Note: we use the GCDAsyncSocket library that seems to set SO_REUSEADDR
We need to verify if that covers our case.


'Run selected text' and other shortcuts not responding

Using fresh copies of IDEA Community Edition in both Ubuntu and Windows, some keyboard shortcuts don't work at all, or maybe the do once every 100 times - after random keystroking. If I set a custom combination to a command, it works, but after a while they are 'forgotten' again.
Thank you.

Correction: custom shortcuts seem to definitely work.


Update VERSION

I think we should make a new release, now that @FynnBe has moved the more complex functionality to bioimageio-python

are we sure that bioimage.core PRs will not make any changes here necessary? We have tests there, that test against main branch here, and that still fail.

I think the tests vs. main are actually passing.

cool let's go ahead

Awesome!
@FynnBe please go ahead and merge this if there are no objections from your side (i.e. nothing left in the refactoring that I forgot about)


There is no code actions available when use quick action on the "HttpProtocols" for 8.0 gRPC project

INSTALL STEPS

Clean machine: MacOS: Big Sur
Install 8.0 SDK from: https://aka.ms/dotnet/8.0.1xx/daily/dotnet-sdk-osx-x64.pkg
Feed: https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/index.json

REPRO STEPS
Create a gRPC service via Terminal Emulator and open it with VS Code
mkdir GrpcGreeter
cd GrpcGreeter
dotnet new grpc
code .
2. Install the required C# Extension [v1.25.3]
3. Open Program.cs and add the following code in this file.
builder.Services.AddGrpc();
builder.WebHost.ConfigureKestrel(options =>
{
// Setup a HTTP/2 endpoint without TLS.
options.ListenLocalhost(5000, o => o.Protocols = HttpProtocols.Http2);
});
var app = builder.Build();
4. On the 'HttpProtocols', use quick action to add "using Microsoft.AspNetCore.Server.Kestrel.Core;".
ACTUAL

Expected

Having the same issue here.

A lot has changed with O# code analysis since this issue was opened. If you are still having problems, please open a new issue at https://github.com/omnisharp/omnisharp-roslyn/issues


ISPN-12812 Set the server cache manager class loader

https://issues.redhat.com/browse/ISPN-12812

it looks good to me. It would be nice if @karesti could test this.

Just waiting on CI


Should we retain v1 spec on the site?

If people are still working with earlier versions of the API/tracers, there will be no way to access the specs once we commit v2 spec.
@bensigelman

It was always an "RC" because we knew there were some concerns with it... In the long run we should absolutely document and advertise earlier versions of the spec, but I'm not so sure in the short run.
That said, if someone else is willing to do the work (and the opentracing.io site makes it clear which version is current, etc), I wouldn't object to this. Just seems like it might be a lot of effort to do well.

I've been thinking of a simple way to do that with Jekyll, but haven't quite nailed it. We need:

[ ] individual specs documents to be under /vN.M/ path instead of root
[ ] links from specs to specs should be relative
[ ] the left-side menu must preserve the path prefix
[ ] the home page links should point to latest (can be just a copy of the latest vN.M dir, as a build step)
[ ] perhaps the navigation should be reworked to separate version-independent pages (like Contributors) from the actual specs pages


Optimized Sign and Abs functions by replacing comparison with bitwise operators

Here is a benchmark and a test to check that it really does the same:
https://dotnetfiddle.net/p5n8Oq
https://dotnetfiddle.net/aANrDr
The speedup is only about 8% in that online test, but in my computer (with an AMD FX-8350) it is twice as fast.

Hi, thanks a lot for the optimizations! I took the liberty of implementing them to Fixed32 as well, and cleaned up the implementations slightly to comply with the style of the codebase a bit better.


chore: clean up decode code

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

Project coverage is 100.00%. Comparing base (db589e5) to head (bbd9e60).

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #178   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           42        42
  Lines         3497      3494    -3
=========================================
- Hits          3497      3494    -3

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


Regression test and fix for ObservableCursor aliasing bug

Fixes #244

Note: I'm waiting for Travis to complete before I push the one-line fix into this branch.

Ping?


Inconsistent Naming Convention Of Generated API

I Generated a sample API on an existing project with "yo rest:api" which resulted to the files named as indicated:

Wondering if this is an upgrade, or something i'm yet to do as compared to this:

Thanks.

Yes, this is an upgrade. See the releases page.
I suggest you to use the v0.8.1 on existing projects.
npm install -g<EMAIL_ADDRESS>

@diegohaz Thanks. It works now.


find command output newline problem

Please use the following bug reporting template to help produce actionable and reproducible issues. Please try to ensure that the reproduction is minimal so that the team can go through more bugs!

A brief description
Bash on Ubuntu on Windows has some newline issue about find command.
Example command:
find .  -name '*.txt' > /mnt/c/ExpectResultHaveNoNewLine.txt

Expected results
In /mnt/c/ExpectResultHaveNoNewLine.txt
Should be line by line:
1.txt
2.txt
3.txt

Actual results (with terminal output if applicable)
Terminal output working well but while writing the ExpectResultHaveNoNewLine.txt
1.txt2.txt3.txt

Your Windows build number
14393.187

Steps / All commands required to reproduce the error from a brand new installation

Strace of the failing command
find .  -name '*.txt' > /mnt/c/ExpectResultHaveNoNewLine.txt
Required packages and commands to install

See our contributing instructions for assistance.

It's an issue in Notepad, WSL and Ubuntu in general do fine. It only recognizes \r\n as a new-line delimiter (thus called "Windows style"). In Linux and other Unix-derived systems \n is used to delimit new lines (called "Unix style").
NOTABUG.

Some history:
The \r (carriage return) and \n (line feed) thing is actually pretty cool, but first one thing I noticed just now: In linux, sometimes you have weird behavior that can occur in a *nix tty when the system is having a problem.  This behavior makes it so newlines in the tty will start directly beneath the end of the previous line.  There are all kinds of funny bugs that do this, and it's interesting because it's exactly what you would imagine a teletype (TTY, remember) would do if you only fed it a line feed without a preceding carriage return.
Microsoft's convention of new lines in text documents requiring both
carriage return \r and a line feed \n
comes from the old convention on teletypes, where these control codes respectively tell the carriage (the assembly containing the writing head mechanism) to return to the beginning of the line and then tell the teletype to feed the paper up by one line.
Microsoft is pretty old as far as software companies go, and it adopted the original convention used in teletypes.  As teletypes fell out of style in favor of electronic terminals and crt monitors, lots of other operating systems dropped the carriage return, but Microsoft has kept it all these years in order to support backwards compatibility (same reason as much of the weird stuff in Windows, like the UTF-16 little endian character set used in every single part of NT, from top to bottom, before UTF-8 became popular through the web).

VS Code can read those files fine though, and it's really nice and fast (and open source/free software and has a bunch of nice plugins with a central repository).  Or you can use SublimeText, which is free for personal use and also really nice, with lots of cool shiny features that integrate regexp and manual highlighting (multiple highlights and caret for multi-replace without having to manually create a regexp, a trivial case of which is allowing you to type on multiple lines at the same time, which is a demo on their site).

Can someone fix this please? It is affecting BoneOS(github.com/Bone-Project/BoneOS) , with the Root Makefile.. The variables get messed up with the carriage return. Thank you!

fix... what? the bug seems to indicate the rather well known phenomenon that Notepad doesn't deal correctly with Unix EOLs.  As far as I know, everything WSL side is working as it should?

Windows uses carriage return and new line . I am trying to say fix it so it has like *NIX Operating system just a new line.

@amanuel2 -- why are you trying to use Notepad?  I think this is not a bug; I think it is a case of your trying to use a program that is not appropriate for your task.

This issue is older than the internet. I'd suggest either using a different text editor or using the Linux tool dos2unix to change \r\n into \n.
Closing this out as by design.


DOCS: Indicate which ports should be used for both HDFS and Impala connections

And maybe where to find them in the various web UIs

We should at least link to this page in the docs: https://www.cloudera.com/documentation/enterprise/latest/topics/cdh_ig_ports_cdh5.html#topic_9_1
I found this very useful when setting up the docker image that we use for testing.


Fullscreen font rendering bug (space characters)

Godot version:
Today's build from https://hugo.pro/projects/godot-builds/
OS/device including version:
Windows 10.
Issue description:
I haven't used Godot for a while, but coming back to latest nightly builds, something seems to be wrong with font rendering.
Everything looks just as it should in windowed mode, but in fullscreen mode, space-characters are unproportionally large, and even vary in width.
I've tested this with a few different dynamic fonts.

I want to confirm there are issues when going fullscreen with RichTextLabel. I'm attaching a demo
, just insert a font of yours in RichTextLabel.tscn since I'm not sure if I'm allowed to post fonts.
Basically, press space three times. The first time, text is added to the RichTextLabel. On the second, the game goes fullscreen and if a custom font is used, the text previously added will be REMOVED, leaving the default bbcode_text value. The third space press just prints more text. This doesn't seem to happen without specifying a custom font.


failed to change window state to 'normal', current state is 'maximized'

Hi, several times I encountered this error:
 2023-10-15 15:24:22,586 - ERROR - StartScraper - start: 20: ExtensionScraper:start: 49: ExtensionScraper:scrapeCourse: 87: ExtensionScraper:scrapeTopic: 105: SeleniumBasicUtility:setWindowSize: 112: Message: unknown error: failed to change window state to 'normal', current state is 'maximized'
  (Session info: chrome=118.0.5993.70)

not sure what is the root cause

@irfansofyana i will look into the issue, i am currently out of station so for the time being can you comment line 105 in ExtensionScraperMain.py and test it?

@irfansofyana should be fixed by now, reclone.
also i will recommend you to redownload chrome binary and driver and delete the userdatadirectory


Build: Fix Demo/RX100_RX113-RSK_Renesas_e2studio RTOS demo project build error

Description
This PR fixes Demo/RX100_RX113-RSK_Renesas_e2studio RTOS demo project build error.
There are no changes in the runtime functionality.
Test Steps
I did the following steps on the e2 studio v7.8.0 and I used CC-RX V3.02.
(1) Import the project
(2) Update legacy e2 studio projects
(3) Select toolchain type and toolchain version
(4) Clean all projects and start a build
But I don't have the evaluation board therefore I can't check the program which are built.
If this isn't acceptable for you, please let me know.
Related Issue
Update Renesas GCC compiler ports #135
https://github.com/FreeRTOS/FreeRTOS-Kernel/pull/135#issuecomment-680172086
https://github.com/FreeRTOS/FreeRTOS-Kernel/pull/135#issuecomment-679215454
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

I did also the following steps with e2 studio v<IP_ADDRESS> and I used CC-RX V2.3.0. (According to .info file, the project was originally built with the same tools: e2 studio v<IP_ADDRESS> using CC-RX V2.3.0 (moreover, and old source code of FreeRTOS perhaps 4 ~ 5 years ago)).
(1) Import the project (compiler path is automatically changed)
(2) Clean all projects and start a build
But I don't have the evaluation board therefore I can't check the program which are built.
If this isn't acceptable for you, please let me know.

/bot run checks

Hello @dachalco,
I may understand what happened in the past. Before the following issue and pull request in Amazon FreeRTOS repository, I guess that the project was able to be built. But only port.c was changed and FreeRTOSConfig.h was NOT changed at the time, so the project become unable to be built.
Missing _VECT in #pragma interrupt (Renesas RX100 series) #1006
https://github.com/aws/amazon-freertos/issues/1006
Add missing _VECT to #pragma interrupt in RX100/port.c #1013
https://github.com/aws/amazon-freertos/pull/1013
More information is here.
Compiler error when building FreeRTOS for Renesas RX113 (RX100) Demo
https://forums.freertos.org/t/compiler-error-when-building-freertos-for-renesas-rx113-rx100-demo/9529/8
Best regards,
NoMaY


[coap] support new message with id.

This PR fixes #81 by setting message id when forwarding CoAP messages from external commissioner.
Since a request from external commissioner is responded with separate response, the response message id is not overridden with the message id from Thread leader.

I'm fine with merging this for now if it helps things.  However, does this completely solve the problem?  In particular, if we are copying the Message ID from the Commissioner, shouldn't we also forward/proxy the message via a UDP socket rather than via the CoAP agent?

I'm not clear how to forward with UDP socket. The connection between border agent and external commissioner is DTLS, simply forwarding UDP packets cannot work. Besides, the URI of CoAP message may change for some requests. This only forward message ID from external commissioner

As we discussed with @DuaneEllis-TI, the ideal case is that CoAP communication between the Commissioner and Leader is end-to-end - the Border Agent does not maintain any CoAP-related state.  For example, the Border Agent should not perform duplicate detection nor should it perform retransmissions on its own.  Communication between the Border Agent and Leader happen via UDP.

@jwhui Thanks for the explanation. It's a great idea to involving a UDP proxy on NCP side. I will submit a PR later.
This PR doesn't involving duplication detection nor retransmission into border agent. However, it keeps the its original behavior to respond separately as defined by the spec. Here's the current workflow on host-side border agent:

Commissioner sends a COMM_PET/COMM_KA to border agent.
Border agent responds a empty ACK message.
Border agent generates a new CoAP message LEAD_PET/LEAD_KA with the same message id of the original request and delivers it to to NCP.
If commissioner retransmits the request(for not receiving the empty message or bad implemented), border agent redo from step 2.
When border agent receives the response from leader it converts the response to non-confirmable message with a new message id and sends it to commissioner.

The fault of this implementation is that commissioner will not retransmit if it successfully handled the empty message. Since there's no retransmission in border agent, no retransmission will happen between border agent and leader in this case.
To save the retransmission performed on border agent, border agent should not reply empty ACK message on its own, besides, we may have to make a choice between:

Leader always responds LEAD_PET/LEAD_KA separately.
Border agent only converts the response from leader to non-confirmable if its type is ACK, thus pretending the empty ACK message is lost(CoAP agent should process the actual response as an ACK according to RFC7252).

Or shall we ignore the separate response requirement in the spec?

@bukepo I believe the right approach is to keep the CoAP layer at the Border Agent stateless.  That means that CoAP Responses from the Leader to Border Agent are translated into CoAP Responses to the Border Agent to Commissioner.
Can you point me to the location in the spec that states the Border Agent and Leader need to respond separately?

@jwhui Only border agent needs respond separately. As defined in section 8.6.1, transaction pattern of COMM_PET and COMM_KA are both defined as Req+Rsp_Separate (request part), which is different from LEAD_PET and LEAD_KA defined in section 8.8.1. I also wanna keep border agent stateless, so I asked in my last comment if we could ignore the separate response requirement for COMM_PET and COMM_KA.

@bukepo, yes I see the intended design with Section 8.6.1 now.  I think Section 8.6.1 could be made to work, but it is not completely stateless.  Rather than copying the Message ID between the two sides of the Border Agent, we actually copy the Token instead.  The process then looks like this:

Commissioner sends a COMM_PET.req/COMM_KA.req to border agent.
Border Agent responds a empty ACK message.
Border Agent sends a LEAD_PET.req/LEAD_KA.req with the same Token as the received COMM_PET.req/COMM_KA.req.
When Border Agent receives the LEAD_PET.rsp/LEAD_KA.rsp from the Leader, it sends the COMM_PET.rsp/COMM_KA.rsp as confirmable with the same Token as above.

Note that if the Commissioner does not receive a COMM_PET.rsp/COMM_KA.rsp, it should send a new COMM_PET.req/COMM_KA.req with a new Token.  That should cause the Border Agent to send a new LEAD_PET.req/LEAD_KA.req to the Leader.
I agree that this is not as ideal as the fully stateless approach.  The Border Agent still needs to maintain CoAP Request state for the LEAD_PET.req/LEAD_KA.req messages.  But it does allow the Commissioner to perform the necessary retransmissions.
At this point, I'm inclined to follow the existing Thread 1.1.1 Specification.  Thoughts?

The new process seems to be similar with the implementation before this PR from step 1 to step 3. The different of step 4 is that it sent non-confirmable response before this PR.
Does this solution still involves the UDP proxy on NCP side? If so, that means the border agent must do retransmission for requests to leader. Because the UDP proxy won't do that.
And if we respond confirmable response at step 4, we'll also have to implement retransmission too.
Besides, even responding an Empty ACK at step 2, there could still be retransmissions from commissioner, because the Empty ACK could be lost or delayed, that means, the duplication cannot be saved either.
As a result, it seems we'll have to enable full functionality of CoAP in border agent with this solution.
I'm considering the following solution, which only requires a duplication detection based on message id.
               detect duplication
commissioner <-------------------> border agent
                                        ^
                                        | ensure no duplicated message
                retransmission          v
 Leader      <------------------->     NCP

Border agent still response Empty ACK. NCP still use the CoAP agent to send messages, which does the retransmission. Once NCP got the response, it delivers to host side border agent. And border agent respond commissioner with non-confirmable message. Thoughts?

@bukepo, yes, because the Thread Spec requires maintaining CoAP state on the Border Agent, the UDP proxy approach no longer applies.  I should have made that more clear in my prior comment.
With my current understanding of the Thread Spec:

The Border Agent implements CoAP request duplicate detection for COMM_PET.req/COMM_KA.req message.
The Border Agent performs its own retransmissions of LEAD_PET.req/LEAD_KA.req.
The Border Agent generates COMM_PET.rsp/COMM_KA.rsp messages after receiving the LEAD_PET.rsp/LEAD_KA.rsp.
The Border Agent sends COMM_PET.rsp/COMM_KA.rsp as confirmable messages.

With the exception of my last point above, I believe this is inline with your current thinking as well.

@jwhui OK, I will create another PR for the final solution.

@jwhui  - Note that if the Commissioner does not receive a COMM_PET.rsp/COMM_KA.rsp, it should send a new COMM_PET.req/COMM_KA.req with a new Token. That should cause the Border Agent to send a new LEAD_PET.req/LEAD_KA.req to the Leader.
I'm no CoAP expert here - but I don't think there is a CoAP requirement to have a token, let alone make the token unique per transmission.


Document trustedAuthors input

Is your feature request related to a problem? Please describe.
trustedAuthors input is only mentioned in the README but the document doesn't explain what this input is used for or what its format is.
Describe the solution you'd like
There's a brief explanation about what this input does and that its expected format is a comma separated list.
Describe alternatives you've considered
Perhaps there would be a more elegant way to document all inputs in a table but as there are only two inputs, that might be unnecessary.

Solved by https://github.com/xalvarez/prevent-file-change-action/pull/836


Parsing pydantic dataclasses from objects

(pydantic 1.0, Python 3.6, macOS, conda)
Running the following:
@pydantic.dataclasses.dataclass
class Foo:
    a: int

    def b(self):
        pass

foo = Foo.__pydantic_model__.parse_obj({'a': 1})
print(foo)
print(type(foo).mro())
print(foo.b())

results in:
a=1
[<class '__main__.Foo'>, <class 'pydantic.main.BaseModel'>, <class 'object'>]
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
      9 print(foo)
     10 print(type(foo).mro())
---> 11 print(foo.b())

AttributeError: 'Foo' object has no attribute 'b'

Hmm... why is BaseModel in the MRO list? Where did all the attributes like methods of the original type go?.. Is there a better (official?) way to parse dataclasses from objects?

That's because you are working with the __pydantic_model__, which is, unsurprisingly, a pydantic model. Calling parse_obj on that model returns an instance of that model, not of the dataclass.
The dataclass wrapper is meant to give you a class that, besides the presence of the __pydantic_model__ attribute, has basically the same api as a regular dataclass. So, it doesn't have any methods a regular dataclass wouldn't have (and in particular, you'd have to implement object parsing yourself).
The purpose of the dataclass wrapper is just to get runtime validation of the types going into the dataclass.

This is a feature request, not a bug; and a duplicate of #481.


Non ASCII Email Decoding Error

Environment

Python version: 3.8
Nautobot version: 1.1.3
nautobot-circuit-maintenance version: 0.3.2

Expected Behavior
Extract email from mailbox with  attachments (attachment is encoded in UTF-16).

Observed Behavior
Notification retrieval failed with unhandled Exception.
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/nautobot_circuit_maintenance/handle_notifications/sources.py", line 610, in get_notifications
    raw_notifications = source.receive_notifications(job_logger, since_date)
  File "/usr/local/lib/python3.8/site-packages/nautobot_circuit_maintenance/handle_notifications/sources.py", line 389, in receive_notifications
    raw_notification = self.fetch_email(job_logger, msg_id)
  File "/usr/local/lib/python3.8/site-packages/nautobot_circuit_maintenance/handle_notifications/sources.py", line 339, in fetch_email
    return self.process_email(job_logger, email_message)
  File "/usr/local/lib/python3.8/site-packages/nautobot_circuit_maintenance/handle_notifications/sources.py", line 288, in process_email
    raw_payload=email_message.as_bytes(),
  File "/usr/local/lib/python3.8/email/message.py", line 178, in as_bytes
    g.flatten(self, unixfrom=unixfrom)
  File "/usr/local/lib/python3.8/email/generator.py", line 116, in flatten
    self._write(msg)
  File "/usr/local/lib/python3.8/email/generator.py", line 181, in _write
    self._dispatch(msg)
  File "/usr/local/lib/python3.8/email/generator.py", line 218, in _dispatch
    meth(msg)
  File "/usr/local/lib/python3.8/email/generator.py", line 276, in _handle_multipart
    g.flatten(part, unixfrom=False, linesep=self._NL)
  File "/usr/local/lib/python3.8/email/generator.py", line 116, in flatten
    self._write(msg)
  File "/usr/local/lib/python3.8/email/generator.py", line 181, in _write
    self._dispatch(msg)
  File "/usr/local/lib/python3.8/email/generator.py", line 218, in _dispatch
    meth(msg)
  File "/usr/local/lib/python3.8/email/generator.py", line 436, in _handle_text
    super(BytesGenerator,self)._handle_text(msg)
  File "/usr/local/lib/python3.8/email/generator.py", line 253, in _handle_text
    self._write_lines(payload)
  File "/usr/local/lib/python3.8/email/generator.py", line 155, in _write_lines
    self.write(line)
  File "/usr/local/lib/python3.8/email/generator.py", line 410, in write
    self._fp.write(s.encode('ascii', 'surrogateescape'))
UnicodeEncodeError: 'ascii' codec can't encode character '\u2019' in position 916: ordinal not in range(128)

Steps to Reproduce

Execute job to retrieve emails from mail source.

It looks like we cannot handle mails with the following encoding
MIME-Version: 1.0

Content-Transfer-Encoding: 7bit

Mails with encoding utf-8 work fine.
MIME-Version: 1.0

Content-Type: text/plain; charset=UTF-8


Created Dynamic Website that shows projects fetched from Github API

Description

About the Project
This project is a personal application that displays a user's GitHub projects in a visually appealing format. It fetches the user's repositories from GitHub and presents essential details about each project, including the project name, creation date, description, and a link to the GitHub repository.
List your tech stack and any dependencies that are required for this change. This information will help us review and integrate your contributions effectively.
Stack Used

Laravel
JavaScript
jQuery
HTML
CSS,
Bootstrap

Type of change

[X] Added New Project 'Dynamic Website for Showcasing Web Projects published on github'
[X] Fetches all github projects, the recent one also.
[ ] Bug fix

Issue number:
 #44
Checklist:

[X] I have included a README.md file for my project clearly explaining its purpose, functionality, and usage instructions (applicable for new projects, not bug fixes).
[X] My code adheres to the style guidelines outlined by this project.
[X] I have thoroughly reviewed my code to identify and address any potential errors or inconsistencies.
[X] I have added clear and concise comments to my code, especially in sections that might be challenging to understand at first glance.
[ ] I have reviewed and followed the project's Contributing Guidelines to ensure my contribution aligns with the project's requirements.

join the WhatsApp group and dm me please

@AqibAliMughal get the issue assigned to yourself, if you had already implemented the feature

Hi @farhan-sayeed, the issue was assigned to me last week, right?

@sudo-parnab Could you provide the WhatsApp link?

@sudo-parnab Could you provide the WhatsApp link?

you can find it on issues section when you clicked on new issue button

@sudo-parnab I've joined the group & sent you a message.

You need to submit PR before 11:45 PM


DEP: Bump numpy minversion to 1.19?

Currently:
https://github.com/scipy/scipy/blob/f34de3a87010bebf6cc1e9474dc58d315d75f52d/setup.py#L542
But one can still do the following (say, in Python 3.9.7):
pip install "numpy==1.18.5"
pip install "scipy==1.7.3"  # Does not attempt to upgrade numpy

and then encounter this error:
>>> from scipy import signal

...\scipy\signal\__init__.py in <module>
    308 from .spectral import *
    309 from .wavelets import *
--> 310 from ._peak_finding import *
    311 from .windows import get_window  # keep this one in signal namespace
    312

...\scipy\signal\_peak_finding.py in <modul
e>
      6
      7 from scipy.signal.wavelets import cwt, ricker
----> 8 from scipy.stats import scoreatpercentile
      9
     10 from ._peak_finding_utils import (

...\scipy\stats\__init__.py in <module>
    439 """
    440
--> 441 from .stats import *
    442 from .distributions import *
    443 from .morestats import *

...\scipy\stats\stats.py in <module>
     41 import scipy.special as special
     42 from scipy import linalg
---> 43 from . import distributions
     44 from . import mstats_basic
     45 from ._stats_mstats_common import (_find_repeats, linregress, theilslope
s,

...\scipy\stats\distributions.py in <module
>
      9
     10 from . import _continuous_distns
---> 11 from . import _discrete_distns
     12
     13 from ._continuous_distns import *

...\scipy\stats\_discrete_distns.py in <mod
ule>
     17     _check_shape)
     18 import scipy.stats._boost as _boost
---> 19 from .biasedurn import (_PyFishersNCHypergeometric,
     20                         _PyWalleniusNCHypergeometric,
     21                         _PyStochasticLib3)

biasedurn.pyx in init scipy.stats.biasedurn()

ModuleNotFoundError: No module named 'numpy.random.bit_generator'

Workaround: Manually upgrade numpy.
ref: https://numpy.org/doc/stable/release/1.19.0-notes.html#numpy-random-bit-generator-moved-to-numpy-random-bit-generator
cc @duytnguyendtn

Thanks for the report @pllim. This is a duplicate of gh-14541 I believe. We cannot change the minimum required NumPy for 1.8.0 anymore; we'll bump it in master to 1.18.x soon, and solve this bit_generator issue along the lines of https://github.com/scipy/scipy/issues/14541#issuecomment-968317738. If it turns out to be easy, then we could backport the fix to 1.8.1 or 1.8.2.
I'll close this issue. In case I missed something here and it's not an exact duplicate, please let me know.

Thanks for the quick reply!

Thank you @rgommers for the insight and @pllim for escalating this issue!


Install gitignore-in gitignore-in is a tool to generate .gitignore files from .gitignore.in file.

Codecov Report
All modified lines are covered by tests :white_check_mark:
:loudspeaker: Thoughts on this report? Let us know!.


Screenshot Info

Hate to ask this but don't no where else to ask - what theme is the README video using? Thanks.

It should be https://github.com/tanvirtin/monokai.nvim.
I'm not sure, the colorscheme has changed since.

Thanks!


missing coco score prediction

The YOLO converter take into account the prediction score but it is mising from the COCO importer.
I just added "score": annotation['score'] in create_bbox as a workaround but it must be pretty easy to integrate it fully.

@jribault could you make a PR?

done :
https://github.com/HumanSignal/label-studio-sdk/pull/352


Adding primitive extra white space tolerance

Mishandling of extra white space symbols caused some MySQL statements to be interpreted incorrectly, i.e.:
CREATE TABLE `sample` (
  `id`           int(11)      AUTO_INCREMENT NOT NULL
        COMMENT 'unique table key',
  `example`      char(36)     DEFAULT NULL
        COMMENT 'example field',
)  ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
;

results in
BEGIN TRANSACTION;
CREATE TABLE `sample` (
  `id`           int(11)      PRIMARY KEY AUTOINCREMENT NOT NULL
,
,  `example`      char(36)     DEFAULT NULL
,
);
END TRANSACTION;

Of course, it is unlikely that a software-facilitated dump would produce extra white-spaces, but the handling of such situations might prove useful when dealing with hand-crafted statements.  If this change is in conformance with the scope of this script, the same white-space lenience should be expanded to other regexes as well.

I've decided to take over just the possible multiple whitespace before INT. Should you really need the "whole line whitespace" patch, then please tell me what is it good for as the behavior of the script as is right now shouldn't probably differ (prev = "" shall stay set even after reading a "whole line whitespace" - but maybe I'm missing something).

The addition of the "whole line whitespace" was prompted by a real life example.
The problem arises when we have a MySQL statement with COMMENT statements that are folded into different lines, i.e.:
CREATE TABLE `example` (
  `id`               int(11)      AUTO_INCREMENT NOT NULL
        COMMENT 'unique table key',
  `uuid`             char(36)     NOT NULL
        COMMENT 'universally unique identifier',
  `type`    enum('A','B','C','D') DEFAULT NULL
        COMMENT 'the type of the example'
);

Output without the "whole line whitespace":
PRAGMA synchronous = OFF;
PRAGMA journal_mode = MEMORY;
BEGIN TRANSACTION;
CREATE TABLE `example` (
  `id` integer      PRIMARY KEY AUTOINCREMENT NOT NULL
,
,  `uuid`             char(36)     NOT NULL
,
,  `type`    text  DEFAULT NULL
,
);
END TRANSACTION;

Output with the "whole line whitespace":
PRAGMA synchronous = OFF;
PRAGMA journal_mode = MEMORY;
BEGIN TRANSACTION;
CREATE TABLE `example` (
  `id` integer      PRIMARY KEY AUTOINCREMENT NOT NULL
,  `uuid`             char(36)     NOT NULL
,  `type`    text  DEFAULT NULL
);
END TRANSACTION;

As it can be seen, the "whole line whitespace"-less version produces extra lines with commas in them.
However, this type of output is not produced by the MySQL dump, so I assume I was simply misusing Your tool.

Ok, now I understand. COMMENT fields are supported (they're deleted), but I share your point of view - the mysqldump tool does not produce them on a separate lines. Should it be so, I'll try to fix the script. But for now I'll just leave it as it is.


Pub/Sub modification for message ordering

Signed-off-by: Jigyasa<EMAIL_ADDRESS>Pull request
Description
Adding support for creating subscription with the option to enable/disable message ordering
Related
https://github.com/tremor-rs/tremor-runtime/issues/724
Checklist

[x] The RFC, if required, has been submitted and approved
[ ] Any user-facing impact of the changes is reflected in docs.tremor.rs
[x] The code is tested
[x] Use of unsafe code is reasoned about in a comment
[x] Update CHANGELOG.md appropriately, recording any changes, bug fixes, or other observable changes in behavior
[x] The performance impact of the change is measured (see below)

Performance

Coverage increased (+0.01%) to 83.925% when pulling 86b3ef2c2bef2fa7cefbb8726b8c7dea2c945051 on jigyasak05:pubsub-connector into 650bc0e7b58cc48bcc903bf4b103594334b0140b on tremor-rs:main.

Woop woop!


Change disk parameter after installation?

Regarding the disk allocated to cassandra nodes, the document says: "The amount of disk, in MB, allocated to a Cassandra node in the cluster. Note: Once this value is configured, it can not be changed." I'm using LVM as the underlying storage for cassandra, which enables me to dynamically expand the size of the logical volume and the file system. But if the disk parameter cannot be changed, I cannot benefit from this advantage.
Is it possible to add a feature to change the disk parameter after installation, or the only solution to increase the storage is add more agent nodes?

Alternatively, cassandra supports running across multiple disks. Can this be supported as well?

This repo is deprecated and will be archived in one week.  Please see the latest version of Cassandra or DSE for DC/OS:
https://docs.mesosphere.com/service-docs/cassandra/
https://docs.mesosphere.com/service-docs/dse/  (enterprise-only)


models: Remove type prefixes from __str__ values

The Django convention is for __repr__ to include the type and __str__ to omit it.  In fact its default __repr__ implementation for models automatically adds a type prefix to __str__, which has resulted in the type being duplicated:
>>> UserProfile.objects.first()
<UserProfile: <UserProfile<EMAIL_ADDRESS><Realm: zulipinternal 1>>>

I've been unhappy with these for a while but haven't gotten the attention to investigate; lgtm feel free to merge after possibly changing the item discussed above back to %s (and adjusting tests).