Add option to target server or workstation

And potentially other targets in frameworks yet to be added.
Key prefix wasn't being added.
All 4 files generated correlate with each other 100%

Quick question: does using --target mean we can only produce mapping files for server OR workstation? If so, we should work towards a solution that puts both profiles into the same mappings file.

Quick question: does using --target mean we can only produce mapping files for server OR workstation? If so, we should work towards a solution that puts both profiles into the same mappings file.

I was thinking it would be easier to deal with if that stuff was in different files, I can add an option to combine them though.

Quick question: does using --target mean we can only produce mapping files for server OR workstation? If so, we should work towards a solution that puts both profiles into the same mappings file.

I was thinking it would be easier to deal with if that stuff was in different files, I can add an option to combine them though.

I think combining them is a good idea, makes for less files and a less cluttered Hiera hierarchy.

Quick question: does using --target mean we can only produce mapping files for server OR workstation? If so, we should work towards a solution that puts both profiles into the same mappings file.

I was thinking it would be easier to deal with if that stuff was in different files, I can add an option to combine them though.

I think combining them is a good idea, makes for less files and a less cluttered Hiera hierarchy.

Server and Workstation are added to each of the 4 files, although I don't like the way I did it.  Feels like I should be able to make it more dynamic.

I did, except I didn't save the file....
Fixed.


Crash on build, but build maybe successful?

SqlPackage or DacFx Version: 0.1.9-preview
.NET Framework (Windows-only) or .NET Core: 7.0.103 and 7.0.200-preview.22628.1
Environment (local platform and source/target platforms): Windows 11

Steps to Reproduce:

Build my project
Observe failure message.

Did this occur in prior versions?  If not - which version(s) did it work in?
Unknown, only tried this version.
The output I get is;
                     Creating a model to represent the project... (TaskId:46)
                     Loading project references... (TaskId:46)
                     Loading project files... (TaskId:46)
                     Building the project model and resolving object interdependencies... (TaskId:46)
                     Validating the project model... (TaskId:46)
                     Writing model to C:\Repos\MyOrg\myorg-sqldb\MyOrg.Database\obj\Debug\Model.xml... (TaskId:46)
                     Writing create script to MyOrg.Database_Create.sql... (TaskId:46)
14:23:08.634   1:7>C:\Users\RobHarwood\.nuget\packages\microsoft.build.sql\0.1.9-preview\tools\netstandard2.1\Microsoft.Data.Tools.Schema.SqlTasks.targets(525,5): Build error : Object reference not set to an instance of an object. [C:\Repos\MyOrg\myorg-sqldb\MyOrg.Database\MyOrg.Database.sqlproj]
                     Output Item(s):
                         FileWrites=
                             C:\Repos\MyOrg\myorg-sqldb\MyOrg.Database\obj\Debug\Model.xml
                             C:\Repos\MyOrg\myorg-sqldb\MyOrg.Database\obj\Debug\refactor.xml
                             C:\Repos\MyOrg\myorg-sqldb\MyOrg.Database\obj\Debug\postdeploy.sql
                             C:\Repos\MyOrg\myorg-sqldb\MyOrg.Database\obj\Debug\predeploy.sql
                             postdeploy.sql
                             refactor.xml (TaskId:46)
                   Done executing task "SqlBuildTask" -- FAILED. (TaskId:46)

A .dacpac does end up being generated as the failure seems to be very late in the build process. Is there any way to get a stack trace etc. out of this I can report? Thanks

Hello, can you run dotnet build with parameters -flp:diag -bl and share the msbuild.log and msbuild.binlog files here?

@RobTF I think I stumbled upon a repro for this issue. By any chance do you have a PackageReference to master.dacpac and <GenerateCreateScript>True</GenerateCreateScript> in your project?

A workaround for this is to set DatabaseVariableLiteralValue="master" in the PackageReference


Having issue while importing styles.scss file from node_modules

ERROR in ./node_modules/raw-loader!./node_modules/postcss-loader/lib??embedded!./node_modules/sass-loader/lib/loader.js??ref--8-3!./src/styles.scss
Module build failed:
undefined
^
File to import not found or unreadable: ../../node_modules/ui-select/dist/select.
in<EMAIL_ADDRESS>(line 8, column 1)
Getting this error while trying to import styles.scss file from node_modules to styles.scss file

Pay attention to the path shown in the error message.
Any ideas from that?

You mean the mention of liftkit.scss?

@RavaliPothepalli does<EMAIL_ADDRESS>looks weird. Any idea what node_modules@crown means?


remove duplicate unistd.h inclusion.

Continuing my long line of mostly worthless open source contributions I give you...
... a one line saving!

alas not by me ;( unless I misunderstand you somehow. I don't have write access.

Merged https://github.com/rain-1/linenoise/commit/ff246c9406c6fede63d78c25c4a2f6c3b2e61043


Ability to colourize baked lighting in real time.

Fairly simple addition. Using it as part of a day/night cycle effect as shown here (https://www.youtube.com/watch?v=sdOZBs28a-s). By no means a subsititute for a proper indirect lighting simulation, but still more convincing than just a flat tint.

Sounds like a pretty nice feature to have in 2.0 @reduz, though we may want to be cautious merge stuff just before the release (but here it's only added code, so at worse there a bugs in the added feature, no regressions).

+1

The renderer changes seem to be 100% opt-in, so let's merge :)


Silently fails to resolve $ref which does not exist

Noticed that speccy was giving a valid response on a spec which was $ref'ing a non-existent file.
Detailed description
When linting with the --verbose switch, $ref that points to a missing file shows something like this:
... everything is fine up here...
Creating initial clone of data at #/paths/~1foos/post/responses/400/content/application~1json/schema/properties/result
Skipping ref from other source /Users/psturgeon/src/rails-template/docs/components/schemas/foo.json
GET /Users/psturgeon/src/rails-template/docs/components/schemas/foo.json
{ Error: ENOENT: no such file or directory, open '/Users/psturgeon/src/rails-template/docs/components/schemas/foo.json'
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/Users/psturgeon/src/rails-template/docs/components/schemas/foo.json' }
Finished resolution!
Specification is valid, with 0 lint errors

That needs to fail much harder.
Your environment

Node Version: v8.11.1
Operating system: OSX
Speccy: master

I haven't done any serious NodeJS development but I think I know enough js to be able to help.
That said, I'll study the code a bit and give it a shot.

@boyanyordanov hey! Thank you for offering to help, but I had some time and needed to get this done. It was effecting things at work. 😅
https://github.com/wework/speccy/pull/66

I am sorry I couldn't get it done faster. 😅
Error handling in Node is awfully confusing to me. I will study your solution and will keep an eye for smaller issues in future.


Export UUID for zone creation event completion.

Action events have support for exporting their "first class entities" over the event bus, if it's turned on. This works mostly for BaseAsyncCmds and any synchronous command that operates on already-existing entities. They are populated by the ApiServer and found by ActionEventUtils.
Where it tends to falter is when dealing with synchronous creation commands. This commit makes createZone export the zone UUID over the event bus once the zone has been created.

LGTM for the code review

code LGTM. Started our internal CI run on this PR. It will post the results here. I will merge once CI is successful.

ACS CI BVT Run
Sumarry:
Build Number 95
Hypervisor xenserver
NetworkType Advanced
Passed=103
Failed=0
Skipped=4
Link to logs Folder (search by build_no): https://www.dropbox.com/sh/yj3wnzbceo9uef2/AAB6u-Iap-xztdm6jHX9SjPja?dl=0
Failed tests:
Skipped tests:
test_vm_nic_adapter_vmxnet3
test_static_role_account_acls
test_3d_gpu_support
test_deploy_vgpu_enabled_vm
Passed test suits:
test_deploy_vm_with_userdata.py
test_affinity_groups_projects.py
test_portable_publicip.py
test_over_provisioning.py
test_global_settings.py
test_scale_vm.py
test_service_offerings.py
test_routers_iptables_default_policy.py
test_loadbalance.py
test_routers.py
test_reset_vm_on_reboot.py
test_snapshots.py
test_deploy_vms_with_varied_deploymentplanners.py
test_network.py
test_router_dns.py
test_non_contigiousvlan.py
test_login.py
test_deploy_vm_iso.py
test_list_ids_parameter.py
test_public_ip_range.py
test_multipleips_per_nic.py
test_regions.py
test_affinity_groups.py
test_network_acl.py
test_pvlan.py
test_volumes.py
test_ssvm.py
test_nic.py
test_deploy_vm_root_resize.py
test_resource_detail.py
test_secondary_storage.py
test_vm_life_cycle.py
test_disk_offerings.py


Added descriptions for preProcess and postProcess.

Added the missing manual entries.
Cc: @marcoscaceres

Thanks @iherman!


fix: display Miner RPC/Helium API availability correctly

Why
As a diagnostics user, I should be able to clearly differentiate miner errors from Helium API errors so that I have a better sense of what is going wrong.
How

Update view template diagnostics_page.html to display the both of Miner RPC and Helium API status correctly.

References
https://github.com/NebraLtd/hm-diag/issues/235

@marvinmarnold  Do you know a fleet that can replicate an error when calling the helium miner api?

@posterzh you can replicate it in any fleet by just killing the miner container

@posterzh you can replicate it in any fleet by just killing the miner container

I want to replicate the error in helium blockchain api call.
https://github.com/NebraLtd/hm-diag/blob/7e26f354a01476273b03766fe33b16dc92d943fa/hw_diag/utilities/blockchain.py#L10
Sometimes, calling get_helium_blockchain_height() failed, but CURL command succeed.
I saw that behavior once before, but it's hard to replicate it now.

@posterzh I don't think there is a reliable way to replicate that. However one possible is during a snapshot load when the miner is using a lot of resources... This normally causes the API to fail.
@robputt might have some other ideas

The subject was the REST API call to get the helium blockchain height.
Marvin confirm that the API requests are no longer failing.

When diagnostics['BCH'] is None and diagnostics['MH'] is None:

When diagnostics['BCH'] is None:

When diagnostics['MH'] is None:

When all valid:

I want to replicate the error in helium blockchain api call.

I have a process for debugging this, but not its only useful if the API is actually returning 400. To do that, I SSH into a diagnostics container then run:
$ python3.10

>>> from hw_diag.utilities.blockchain import get_helium_blockchain_height
>>> get_helium_blockchain_height()

Depending on what mood the API is in, that request may or may not succeed. But even when that request fails, the corresponding curl request from the same diagnostics container will succeed: curl https://api.helium.io/v1/blocks/height


Fix misplaced parenthesis

Misplaced parenthesis causes Error object to be concatenated with a
string rather than passing concatenated string to the Error constructor.
This will result in a string being passed to the callback rather than
an Error object.

I've just a published a new version of this module which is a complete rewrite using Google's V4 Sheets API (v3 is being deprecated on March 3, 2020).
Docs available here - https://theoephraim.github.io/node-google-spreadsheet
I do believe this issue should be fixed in the new version.
Please test it out and if you find that there is still a problem, reopen the issue.
Thanks! 😄


SAGE 2021 job script update

upload job scripts

Codecov Report

Merging #238 (15f767b) into master (a59fd6a) will decrease coverage by 0.00%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #238      +/-   ##
==========================================
- Coverage   47.93%   47.92%   -0.01%
==========================================
  Files         118      118
  Lines       15353    15353
==========================================
- Hits         7359     7358       -1
- Misses       7994     7995       +1

Impacted Files
Coverage Δ

python/mspasspy/db/database.py
82.62% <0.00%> (-0.07%)
:arrow_down:

Continue to review full report at Codecov.

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


Move '_catch_remap_gax_error' to 'core.exceptions'.

Toward #3175.
This is the first step toward applying a more uniform mapping of GAX error codes to our exception hierarchy.  For a narrower, pubsub-only fix for #3175, see #3443.

@lukesneeringer Are you good with the dependency changes?

Note that this change will require releasing a new version of google-cloud-core before / with updated API libraries which use the new google.cloud.exceptions._catch_remap_gax_error.  It would obsolete #3443 (which is fine by me).

:+1: on the release (I think @lukesneeringer is somewhat anti to the idea of google-cloud-core churn)

@dhermes was there another new core feature / fix you thought would land soon?  Right now, I see three other PRs touching core since the core-0.24.1 release:

#3436 (forward-compatible feature)
#3373 (docs only)
#3424 (forward-compatible default change)

#3436 was what I was talking about. Looks like we've hit 24 hours, so LGTM?

@dhermes this PR wasn't in the penalty box :).  I'm fine to merge today unless @lukesneeringer has issues with us pushing a new core release to support the subsequent API-specific remapping work.

Is the core change backwards-compatible (from an API surface standpoint), or is it something where every single subpackage has to be updated?
I do not mind churn on core; back-incompat churn where everything has to move along with it makes me nervous.

@lukesneeringer the API surface changes are backward-compatible (the add a new, non-API helper function), but the dependency changes are maybe problematic (google-gax becomes an unconditional requirement for core).

That is a smidge concerning. It would mean that APIs based on HTTP only would now require the installation of (but not use of) GRPC.
Would it be possible to only do the mapping if GAX was present, but not require it? (e.g. try / except ImportError)

That is a smidge concerning. It would mean that APIs based on HTTP only would now require the installation of (but not use of) GRPC.

We already have this for "dual mode" APIs:  even on "classic" GAE they install grpc / gax.

Would it be possible to only do the mapping if GAX was present, but not require it? (e.g. try / except ImportError)

We can indeed revert to doing that:  this PR actually backs that stuff out.

I vote with Luke - can we do this in a way that doesn't require gRPC in core (for now)? I would really like to have this so I can move #3617 forward.

Redoing this on a new branch (recent core changes make me leery of messing up the original one).

Reworked in #3707.


[msdfgen] update to 1.12

Fixes https://github.com/microsoft/vcpkg/issues/39305
All features passed with following triplets:
x86-windows
x64-windows
x64-windows-static

[x] Changes comply with the maintainer guide.
[x] SHA512s are updated for each updated download.
[ ] ~The "supports" clause reflects platforms that may be fixed by this new version.~
[ ] ~Any fixed CI baseline entries are removed from that file.~
[ ] ~Any patches that are no longer applied are deleted from the port's directory.~
[x] The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
[x] Only one version is added to each modified port's versions file.

Thanks for the update!


Added a script to register both QA datasets

Linked issue(s):
Fixes KOL-4118
What change does this PR introduce and why?
Added a script that registers TruthfulQA and HaluEvalQA datasets.
Please check if the PR fulfills these requirements

[ ] Include reference to internal ticket and/or GitHub issue "Fixes #NNNN" (if applicable)
[ ] Relevant tests for the changes have been added
[ ] Relevant docs have been added / updated

TruthfulQA dataset
HaluEval-QA dataset


Don't instrument TestKit classpath if not requested

Fixes https://github.com/gradle/gradle/issues/28729

@bot-gradle test this

I've triggered the following builds for you. Click here to see all build failures.

PullRequestFeedback build

@bot-gradle test QF

I've triggered the following builds for you. Click here to see all build failures.

QuickFeedback build

@bot-gradle test this

I've triggered the following builds for you. Click here to see all build failures.

PullRequestFeedback build

@bot-gradle test this

I've triggered the following builds for you. Click here to see all build failures.

PullRequestFeedback build

@bot-gradle test this

@bot-gradle clean

@bot-gradle test this

I've triggered the following builds for you. Click here to see all build failures.

PullRequestFeedback build

@bot-gradle clean

@bot-gradle test this

I've triggered the following builds for you. Click here to see all build failures.

PullRequestFeedback build

@bot-gradle test this

I've triggered the following builds for you. Click here to see all build failures.

PullRequestFeedback build

@bot-gradle test this

I've triggered the following builds for you. Click here to see all build failures.

PullRequestFeedback build


Fix missing LA Keys in School Year facts

Some of the la_key values are missing in the fct_school_year table. This is because the offers df does not contain the right local authority data. Need to use offers_la as the basis. offers_la needs to be modified to retain the URNs and years as well so that the rest of the offers data can be joined back in.

Fixed by removing year from offers_la.


Bootstrap is unable if the Raspberry Pi doesn't have internet access

Looks like adding BOOTSTRAP_SERVE_LOCAL = True to config.py should take care of this. More info here.


Phlow: add composite Phlow tool

We want to display several GtPhlowTool instances for one object.

We need to finish #1225 first.

When we click in a Documenter on a class annotation, Documenter and Coder tools are spawned:

Phlow repository should not depend on Pager repository


Fails to download MC bedrock server

When attempting to start bedrockservice.exe for the first time with or without Minecraft Bedrock server already downloaded.
The output is as follows:
Checking MCS Version and fetching update if needed...
Updater resulted in error: An error occurred while sending the request.
Updates Enabled, will be checked in: 9909.057 seconds.
Starting service...
ERROR: Got zipfile exception! Could not find file 'D:\Games\Minecraft\BedrockService\MCSFiles\Update.zip'..
!!Deleting entire directory!! Press Enter to continue...
Checking your Updater.cs file, it appears to be failing at line 22: content = await client.GetStringAsync("https://www.minecraft.net/en-us/download/server/bedrock");
I've added bedrockservice.exe to both inbound and outbound firewall rules for good measure. There must be some other security setting I'm overlooking that is blocking this from working.
I am running Windows 10 21H1 build 19043.1165 with .NET v4.8.04084

Ok, I downloaded the code so I could do some debugging to try and figure out what is going wrong. It appears that the Minecraft website is rejecting your httpClient connection. It seems that some webservers employ some bot detection and reject clients they don't like. I referenced this article:
https://stackoverflow.com/questions/48790438/why-can-the-c-sharp-httpclient-not-call-this-url-always-times-out
I commented out your UserAgent request header and added the following:
        client.DefaultRequestHeaders.Add("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/apng,*/*;q=0.8");
        client.DefaultRequestHeaders.AcceptEncoding.Add(new StringWithQualityHeaderValue("gzip"));
        client.DefaultRequestHeaders.AcceptEncoding.Add(new StringWithQualityHeaderValue("deflate"));
        client.DefaultRequestHeaders.Add("Accept-Language", "en-GB,en;q=0.9,en-US;q=0.8");
        client.DefaultRequestHeaders.Add("Connection", "keep-alive");
        client.DefaultRequestHeaders.Add("Cache-Control", "no-cache");
        client.DefaultRequestHeaders.Add("Pragma", "no-cache");
        client.DefaultRequestHeaders.Add("User-Agent", "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko; Google Page Speed Insights) Chrome/27.0.1453 Safari/537.36");

That worked enough for the code to continue past line 22 in Updater.cs :
client.GetStringAsync("https://www.minecraft.net/en-us/download/server/bedrock");
However, now the pattern regex match isn't finding anything and the string DownloadPath is empty - perhaps due to the headers I used. I don't know enough about how you were parsing the page in order to fix this further.

Hello! Thanks for you interest! I have solved that issue, as well as quite a few other issues! Source is updated, but a few bugs still exist. This project was set aside for a while, but steady work will continue soon! If you want to fix your current copy, have a look at updater.cs as it stands now. You should be able to swap the whole file out. Let me know if you have any other issues!


Develop a controlled vocabulary and guidelines for tagging resources with biologically relevant information

related to #14, #15 -- how do we want to classify these resources to help make them easier to find?

If we don't want to have to tag them ourselves, we could pull the MH (mesh terms) and OT (other terms) which have been curated by the folks at NCBI from the publication associated with the resource.

possibly supplement / align with https://covid19primer.com/ categories?

LitCovid topics: https://www.ncbi.nlm.nih.gov/research/coronavirus/docsum?filters=topics.Prevention.

GENERAL
MECHANISM: Underlying cause(s) of covid-19 infections and transmission & possible drug mechanism of action
TRANSMISSION: Characteristics and modes of covid-19 transmissions, such as human-to-human
DIAGNOSIS: Disease assessment through symptoms, test results, and radiological features
TREATMENT: Treatment strategies, therapeutic procedures, and vaccine development
PREVENTION: Prevention, control, and management strategies
CASE REPORT: Descriptions of specific patient cases
FORECASTING: Modelling and estimating the trend of covid-19 spread

proposal at https://docs.google.com/spreadsheets/d/1eAYqX0Gq63iID-IYzfhlUO_ugjsdooSzNkJP4y6KFxc/edit#gid=2081989406


Improve VSCode/BSP integration

https://github.com/com-lihaoyi/mill/pull/2415 only tested the Bloop codepath, and left the BSP code path broken. This fixes it
Tested manually by setting switch build server in VSCode to BSP and then clicking around in the following examples:

example/basic/1-simple-scala
example/misc/3-import-file-ivy
example/misc/4-mill-build-folder

The following navigations work:

between foo and foo.test
between Foo and the Java and Scala std libs
between Foo and Scalatags
between build.sc and Mill library code
between build.sc and Scalatags
between build.sc and mill-build/src/
between mill-build/build.sc and Mill library code
between mill-build/build.sc and Java and Scala std libs

I re-used some code from GenIdeaImpl to gather the source jars of mill bundled modules in MillBuildServer.
TBH the code in both MillBuildServer and GenIdeaImpl is a mess and could use some housekeeping, and MillBuildServer could also use some unit/e2e tests to verify basic the basic shape of that workspaceBuildTargets, buildTargetSources, buildTargetDependencySources and others return in a few simple example cases. But that can probably come in a follow up

Gonne merge this first and work on the follow up cleanup


Clean up old issues in the repo

This is not important for now.
I feel that the issue tracker has too many open issues. Some of them are waiting for answers that never came. Some others are waiting for some action from the maintainers.
I think it would be useful to identify them, and close those that have been open for too long.
This will help with two things: maintenance and "repo hygiene". Having too many issues open does not signal a good thing. In the same way, seeing that a problem hasn't been fixed in years doesn't either. Identifying and prioritising issues is important to choose the right direction of this project.
And with this, this issue is the 600 open issue in the repo :smile:.

One way to tackle the GitHub issue growth is following Issues and Pull Requests more strictly, and move discussions to sbt-dev list. Or just give up and deal with many issues.

Yes. What I mean is that all issues in this repo that either:

Have not received any response from the original author; or
Are not following the current policy

should be closed.
On the other hand, I propose to use the issue tracker to identify the most important issues to fix, and give them priority for 1.0 releases.

https://www.codetriage.com is a good way of helping with this — I've been using it to update or close old issues. I encourage anyone interested in sbt to do the same


Recycle stuff from rst2ipynb?

Dear Sphinxcontrib-jupyter devs,
I just discovered this project. Having the same deep need for a rst to ipynb conversion, we have been dreaming for a while of exactly this: a jupyter export extension for Sphinx. Thank you!!! I am now impatient to try it out and see how it fits into our documents pipeline for SageMath. See e.g
https://more-sagemath-tutorials.readthedocs.io/ .
The jupyter notebooks that are linked from each page there are produced using a hacky solution rst-to-ipynb that we implemented on top of pandoc and notedown. You may want to briefly explore it in case you find something to recycle there; e.g. the test files.
The tricky part of such a converter is how to flatten the tree structure of a RST document into the linear (code, text, code, text, ...) structure of a Jupyter notebook, without too much degradation. The above tests exercise this a bit.
Cheers,
Nicolas
cc: @slel

Just an FYI to @nthiery and the devs here, nbsphinx is another project that can be used to convert notebooks for Sphinx docs.
Very cool to see this project moving forward 👍

Yes indeed, though nbsphinx goes the other way round: integrating existing notebooks into a sphinx collection of documents, rather than exporting sphinx documents as notebooks.

@nthiery Very glad it's useful for you!
We'll certainly explore rst-to-ipynb and see what we can combine.
I'm not one of the devs, I'm one of the authors of these lectures and, given that all source is RSTs, we had a pressing need to generate notebooks.  For example, we use them to test the code in our RSTs every night.  See the badges here:
https://lectures.quantecon.org/status.html
Anyway, I'm really pleased that some of what our project has put together is useful for others.  I hope we can share more of our tools over time.
@willingc Thanks for comments and PR ;-)
The lead devs of this project are on holiday but will be back in action in a couple of weeks.
(CC @NickSifniotis @myuuuuun @mmcky )

You are absolutely right @nthiery. Just giving a heads up...in case you hadn't seen. :sunny:
Very nice that folks are writing these tools. +1 for sharing. Happy holidays to all.

Thanks @nthiery I am working my way through the rst-to-ipynb project now - it will be an excellent resource. The collection of tests is great and I am currently trying to think of the best way to test the sphinx-extension. Would it be OK if we used many of those test cases? Also are those tests compared with known ipynb output or are they mainly for testing execution?

Thanks [1]@nthiery I am working my way through the rst-to-ipynb project
now - it will be an excellent resource. The [2]collection of tests is
great and I am currently trying to think of the best way to [3]test the
sphinx-extension. Would it be OK if we used many of those test cases?

Yes, please reuse whatever you can, in the tests or elsewhere.

Also are those tests compared with known ipynb output or are they
mainly for testing execution?

Testing execution, plus occasionally visually inspecting the produced
collated all.ipynb. Not great :-) Presumably, the right thing to do
would be to store a copy of the produced notebooks (after visual
inspection), and use nbdime [1] to automatically test later runs.
I can provide you with a copy of the currently produced ipynb if
helpful.
Cheers,
Nicolas
[1] https://github.com/jupyter/nbdime

fyi @vidarf re: nbdime

Thanks @nthiery -- a reference copy of the notebooks would be great for testing against. I will take a closer look at nbdime to see how to setup some automated testing.

I have setup some basic test infrastructure for testing a set of rst files against a known ipynb output as PR #34. Will populate with some test cases before merging.

Thanks [1]@nthiery -- a reference copy of the notebooks would be great
for testing against.

Please find it attached. Not implying it's necessarily the best possible output :-)

Oops, mail attachments don't work. Second attempt :-)
expected_outputs.zip

thanks @nthiery. It is great to get a set of corresponding notebooks -- not necessarily to use as a golden master :) -- but to get another perspective on the translation between rst and ipynb. Thanks for sending them through -- it is greatly appreciated.

Reviewing the rst2ipynb files has been really helpful. I have made a few changes so far to the extension as a result:

use html based image inclusion in markdown cells within the notebook. This allows support for directive attributes such as scale etc. See PR #45
updated display math to be simpler markdown output with default alignment properties as a result. Previously we had wrapped them in html tables.

@nthiery when integrating tests for tables I noticed one of the test cases has not header.
In the PR https://github.com/QuantEcon/sphinxcontrib-jupyter/pull/43 I have some discussion about how the extension supports tables and we currently export to markdown for readability rather than html. However this would mean that the extension couldn't parse tables without headers based on a restriction in markdown.
Do you have any thoughts from a sage perspective? Are tables (without a header) important to support?

[1]@nthiery when integrating tests for tables I noticed one of the test
cases has not header.
In the PR [2]#43 I have some discussion about how the extension
supports tables and we currently export to markdown for readability
rather than html. However this would mean that the extension couldn't
parse tables without headers based on a restriction in markdown.
Do you have any thoughts from a sage perspective? Are tables (without a
header) important to support?

Sorry, this went under the radar. From the top of my head, I don't
think this feature is used much, if at all, in Sage documents. Or
worst comes to worst, we could avoid it.
Given the readability benefits of Markdown vs HTML tables, this sounds
like a good compromise.

thanks @nthiery. Great I will go ahead and merge the table support that we have. I think down the track it would be good to support both html and markdown output.


Issue 24

resolves #24

Note, there has been some changes requested in the upstream library, please refer to : https://github.com/quarkusio/build-reporter/issues/180


"Object doesn't support this action" IE11

I've been fighting with getting Pixi to work with IE11 for some hours now, and keep encountering the same issue. I have zero idea what to do from this point.
IE11 says "Object doesn't support this action" and highlights initPlugins' for loop as the problematic part:

Has anyone seen this before? I've been through hell and back to get it this far, but now I'm just completely stumped :/

The plot gets much thicker.

It was trying to initialise a plugin called 'accessibility'.
In this 'for' loop, 't' was an an object called 'accessibility' and 'e' was a string called 'accessibility'
t[e] was undefined as accessibility{} did not have a key called 'accessibility'
I then tried to add an if(t[e]){} before doing the new t[e], which now throws a different error: t.enableTempParent is not a function
It does this in Edge too, but works in Chrome, FF and Safari
I am losing my entire mind what on earth is going on

Okay, I've narrowed it down a bit. Any time it falls back to pixi-legacy, AccessibilityManager and InteractionManager are both missing:
warning  in ./node_modules/pixi.js-legacy/lib/pixi-legacy.es.js
27:47-67 "export 'AccessibilityManager' was not found in 'pixi.js'
warning  in ./node_modules/pixi.js-legacy/lib/pixi-legacy.es.js
30:45-63 "export 'InteractionManager' was not found in 'pixi.js'
I've tried doing the weird alias resolutions here and here, but they haven't helped at all.
I have no idea what to do from here. The docs say:
"// The application will create a renderer using WebGL, if possible,
// with a fallback to a canvas render. It will also setup the ticker
// and the root stage PIXI.Container."
...but it evidently doesn't. Using pixi-legacy results in aforementioned dependencies missing, and doing anything with aliases seems to have the same issue.

Correction: it does this in any situation it needs to use canvas.
I've kind-of rectified the rest of the issues (by modifying the source of any Pixi plugins to use pixi.js-legacy), but enableTempParent not being a function is very much still an issue.

Could you run the unminified version and see if that gives us more info?

This appears to be the culprit. When CanvasRenderer calls render() the passed-in displayObject doesn't seem to support enableTempParent() in IE11.

This, in turn, is exclusively called by Pixi.Graphics' generateCanvasTexture:

So I'd hazard a guess that, for some reason, Pixi.Graphics' other methods (e.g getLocalBounds etc) appear to work fine in IE, but when it gets to enableTempParent it has a fit of some sort.
Here's the error, if it helps at all:

@ivanpopelyshev can you look at this? Enable temp parent is your recent addition.

@MitchEff Can you also create a standalone example (jsfiddle codepen etc) that reproduces the issue? It makes it easier for us to verify something is fixed.

Sure thing. I'll try find time this weekend.

Does it work without webpack?

@MitchEff We are trying to make a v5.3.1 release, but we want to make sure this isn't something more serious. Can you please help us debug? A reproduction would be best. Thanks!

Landed here from google, had the same problem:
TypeError: displayObject.enableTempParent is not a function
Unfortunately I don't have more details, yet.

Landed here from google, had the same problem:
TypeError: displayObject.enableTempParent is not a function
Unfortunately I don't have more details, yet.


feature - generate SQL

For example, one might embed a state machine directly into their Postgres/Supabase backend. Reference this and this as HOWTOs.

This looks interesting. It might be pretty easy too if it is just generating something like this (from the first link):
CREATE FUNCTION order_events_transition(state text, event text) RETURNS text
LANGUAGE sql AS
$$
  SELECT CASE state
    WHEN 'start' THEN
      CASE event
        WHEN 'create' THEN 'awaiting_payment'
        ELSE 'error'
      END
    WHEN 'awaiting_payment' THEN
      CASE event
        WHEN 'pay' THEN 'awaiting_shipment'
        WHEN 'cancel' THEN 'canceled'
        ELSE 'error'
      END
    WHEN 'awaiting_shipment' THEN
      CASE event
        WHEN 'cancel' THEN 'awaiting_refund'
        WHEN 'ship' THEN 'shipped'
        ELSE 'error'
      END
    WHEN 'awaiting_refund' THEN
      CASE event
        WHEN 'refund' THEN 'canceled'
        ELSE 'error'
      END
    ELSE 'error'
  END
$$;

Is this something you would be interested in helping with?

We can re-open if there is community interest in implementing this feature.


Allow users to namespace props from parent using map function

I have this question on StackOverflow:
https://stackoverflow.com/questions/60573849/how-to-namespace-parent-props-using-mapstate
looks like the end user can't control how props are received by the parent - they get namespaced by the parent onto the child as they are declared in the parent. But it would be nice if the child component could control how the parent props get mapped to own props, using a mapping function like this:
function mapEverythingToProps(state: RootState,  dispatch: Dispatch<any>, ownProps: OwnProps) {
  return {
    d: dispatch,
    s:  state,
    o: ownProps
  };
}

export default connect<StateProps, DispatchProps, AllProps, RootState>(
  null,
  null,
  mapEverythingToProps
)(OurComponent);

what I am looking for is a good way to namespace props from the parent component, so they don't clash with props from state, and so we can easily determine which props are from state and which are from the parent component.

Sorry, that's just not how React works.  A child has no control over the prop names it receives from the parent, at least in plain JS.

yeah mergeProps seems to work for this:
const mergeProps = (propsFromState: RootState, propsFromDispatch: AppDispatch<any>, ownProps: OwnProps) => {
  return {
    propsFromDispatch,
    propsFromState,
    ownProps
  };
};

// ...

export default connect<>(null, null, mergeProps)(Home);


feat(docs): Use released version of code snippets in docs

The doc site uses the include-code macro for loading code from the repository into the docs. However, it is always including what's on master, which may not reflect what's been released and is available to the user.
This commit changes how files are loaded so they are pulled from the currently released version (according to the release-please manifest) if building on netlify (ie for publishing). For working locally or on our CI, the latest is always used.
If loading a snippet from the last released version fails (because the file was moved, or it's new, or the identifier was recently added) triggers a fallback to the current content, which should work as guaranteed by the CI.

This makes sense, given people reading the docs will be using published package versions 99.9% of the time.
Can you include a note in the footer of the code block, next to the Source code link, to indicate which package version it was run against?

I think you also need to update the url in line 278 to point the source code link to the proper release instead of to master.

@critesjosh updated, it now looks like this!

beautiful :heart:


[Question] Why ignore iskeyword?

The README mentions:

ℹ This plugin ignores vim's iskeyword option.

Can you elaborate on why a user would choose this plugin over setting the iskeyword option, and why this plugin doesn't use that internally?
Is it possible to achieve similar behavior using the built-in iskeyword option?
Thank you for your work on these various plugins! :)

iskeyword defines what characters count as part of a word. If you just want to treat hyphens as weird characters, e.g. for  CSS, that's completely suffice.
However, subword motions as well as the skipping of insignificant punctuation cannot be achieved with that setting, which is why I created this plugin.
The plugin simply does not use the iskeyword-setting, since it wild complicate the user configuration as well as the internal working of the plugin to consider a vim setting and plugin settings at the same time. Any behavior you can achieve with iskeyword, you can also achieve with this plugin's advanced config.

iskeyword defines what characters count as part of a word. If for instance you just want to treat hyphens as word characters, e.g. for CSS, that completely suffices.
However, subword motions as well as the skipping of insignificant punctuation cannot be achieved with that setting, which is why I created this plugin.
The plugin simply does not use the iskeyword-setting, since it would overcomplicate the user configuration as well as the internal working of this plugin to consider a vim setting and plugin settings at the same time. Any behavior you can achieve with iskeyword, you can also achieve with this plugin's advanced config.

Thanks for the clarifcations & reply @chrisgrieser!


CSI livenessprobe project update 1.24 to 1.29 only

Description of changes:
CSI livenessprobe project update 1.24 to 1.29 only
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/lgtm
/approve


lint-staged for pushed code

Description
lint-staged is great for keeping bad code from commits, however, there are other validations that are often used in a pre-push hook. Though the use cases are different, there are many features in lint-staged that would be ideal in a "lint-pushed" hook, eg: listr in the cli, declaring the commands in a js file, using the filenames of pushed files, etc.

lint-prepush exists and mostly solves my usecase, thanks!


Refactor util functions in preparation for SSA

The updated util functions apply more directly on the fields of the bundle instead on the full bundle object.

/approve

/lgtm
/unhold


⚠ Secret Website 3 has degraded performance

In ddf836b, Secret Website 3 ($SECRET_WEBSITE_3) experienced degraded performance:

HTTP code: 200
Response time: 3119 ms

Resolved: Secret Website 3 performance has improved in e844dfb.


Update compute.json

When a customer tries to scale VMSS using Terraform, since the current definitions do not have publicIpPrefix property, the new VM will be assigned a random IP address which is outside the range of public Ip prefix. Customer has to resolve the issue by deleting the Vmss and recreating it. This PR tries to resolve the issue by adding the publicIpPrefix property in the JSON definition which is used to generate a request for VMSS update.
More details about the issue can be found here - https://github.com/Azure/azure-rest-api-specs/issues/10190
MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Changelog
Add a changelog entry for this PR by answering the following questions:

What's the purpose of the update?

[ ] new service onboarding
[ ] new API version
[ ] update existing version for new feature
[X] update existing version to fix swagger quality issue in s360
[ ] Other, please clarify

When are you targeting to deploy the new service/feature to public regions? Please provide the date or, if the date is not yet available, the month.
When do you expect to publish the swagger? Please provide date or, the the date is not yet available, the month.
If updating an existing version, please select the specific langauge SDKs and CLIs that must be refreshed after the swagger is published.

[ ] SDK of .NET (need service team to ensure code readiness)
[ ] SDK of Python
[ ] SDK of Java
[ ] SDK of Js
[ ] SDK of Go
[ ] PowerShell
[ ] CLI
[X] Terraform
[ ] No refresh required for updates in this PR

Contribution checklist:

[X] I commit to follow the Breaking Change Policy of "no breaking changes"
[X] I have reviewed the documentation for the workflow.
[ ] Validation tools were run on swagger spec(s) and errors have all been fixed in this PR. How to fix?

If any further question about AME onboarding or validation tools, please view the FAQ.
ARM API Review Checklist

Applicability: :warning:
If your changes encompass only the following scenarios, you should SKIP this section, as these scenarios do not require ARM review.

Change to data plane APIs
Adding new properties
All removals

Otherwise your PR may be subject to ARM review requirements. Complete the following:

[ ] Check this box if any of the following apply to the PR so that label “WaitForARMFeedback” will be added automatically to begin ARM API Review. Failure to comply may result in delays to the manifest.

Adding a new service
Adding new API(s)
Adding a new API version
-[ ] To review changes efficiently, ensure you copy the existing version into the new directory structure for first commit and then push new changes, including version updates, in separate commits.

[ ] Ensure you've reviewed following guidelines including ARM resource provider contract and REST guidelines. Estimated time (4 hours). This is required before you can request review from ARM API Review board.

[ ] If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.

Breaking Change Review Checklist
If any of the following scenarios apply to the PR, request approval from the Breaking Change Review Board as defined in the Breaking Change Policy.

[ ] Removing API(s) in a stable version
[ ] Removing properties in a stable version
[ ] Removing API version(s) in a stable version
[ ] Updating API in a stable or public preview version with Breaking Change Validation errors
[ ] Updating API(s) in public preview over 1 year (refer to Retirement of Previews)

Action: to initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Addition details on the process and office hours are on the Breaking change Wiki.
Please follow the link to find more details on PR review process.

/azp run

/azp run


jquery autocomplete values got disappear on mouse hover or on use of down arrow key

Hello team,
I am using below code for jquery autocomplete. But all jquery autocomplete values gets disappear on mouse hover or when i use down arrow key to select value. Could you please provide the solution for this.
In formview.ascx File :
<asp:TextBox ID="txtRootCause" runat="server" MaxLength="50" CssClass="txtboxForAutocomplete" Width="400px">/asp:TextBox

I have tried by using below funtion in the code, but is is not working for me. Also i tried by keeping autoFocus : false directly, but that also not worked.
focus: function ( e, ui ) {
if ( e.keyCode === undefined ) {
return false;
}
One more thing. i am also facing in CSS Style of textbox dropdown values, the outline of box is not appearing. I am using below code in Style.css File :
.txtboxForAutocomplete {
width: 260px;
border: 1px solid #9c9c9c;
background-color: #f9f9f9;
padding: 3px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
color: #3d3d3d;
font-size: 12px;
text-align: left;
margin-top:3px;
}
Please help me on above issue. Any suggestion is appreciable.

The error is caused because of a conflict that occurs when two jQuery UI files are loaded into the client's browser at the same time. If you peak into your  section you will probably see you have two different jQuery UI files referenced there. Just remove one and it will work.
https://stackoverflow.com/questions/14748193/jquery-ui-autocomplete-menu-disappears-on-hover


Custom Video Inference

Hi, I'm on the verge of publishing my own paper and to provide a comparative study, I wanted to use your algorithm as an alternative method. In doing so, I need to get a custom video inference from your network but I'm struggling to obtain an accurate result. I used the file  "Demo.py" with some changes from the last version of v.2 of this network but it wasn't helpful. I would highly appreciate it if you could share your visualization code.
Thank you very much for your help in advance.
Best,
Ali

@cfzd

@AliiiA
I'll try to upload a visualization code today.

@cfzd
I really appreciate your efforts.

@AliiiA
I have add the visualization code. You can see it in the Visualization part of README.

@cfzd
I'm so grateful. Thank you


Fix values in examples

Thanks for reviewing :wave: .

Pull Request Test Coverage Report for Build 355

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 78.254%

Totals

Change from base Build 354:
0.0%

Covered Lines:
511

Relevant Lines:
653

💛  - Coveralls

Thanks!


differently shaped and empty array tests for test_membership

commit c5b2447 also can be used to solve the issue in #9


Show notifications history

Sometimes user can't read notification because it disappears too fast. We have settings for it, but we need notification history too. Let's store 2 days notifications.

Done


VS Code hang after loading

VSCode Version: Code 1.11.2 (6eaebe3b9c70406d67c97779468c324a7a95db0e, 2017-04-13T08:01:14.464Z)
OS Version: Linux x64 4.4.0-72-generic
Extensions:

Extension
Author
Version

one-monokai
azemoh
0.2.4

vscode-markdownlint
DavidAnson
0.7.1

vscode-eslint
dbaeumer
1.2.8

EditorConfig
EditorConfig
0.9.3

tslint
eg2
0.12.0

cpptools
ms-vscode
0.10.5

vscode-icons
robertohuertasm
7.5.1

theme-panda
tinkertrain
0.5.0

Steps to Reproduce:

Open code with no extensions loaded.
Will hang for a long while after about 5 seconds from loading.

Code is unusable for me, have switched to alternative.

@rajinder-yadav what's in $HOME/.config/Code/User/settings.json?

{
    "workbench.sideBar.location": "right",
    // The number of spaces a tab is equal to. This setting is overriden based on the file contents when `editor.detectIndentation` is on.
    "editor.tabSize": 2,
    // Controls the font size in pixels.
    "editor.fontSize": 14,
    // Controls the font family.
    "editor.fontFamily": "'DejaVu Sans Mono'",
    // Controls the font size in pixels of the terminal.
    "terminal.integrated.fontSize": 12,
    // Controls the maximum amount of lines the terminal keeps in its buffer.
    "terminal.integrated.scrollback": 10000,
    // Configure glob patterns for excluding files and folders in searches.  Accepted values:  "off", "afterDelay", "onFocusChange" (editor loses focus), "onWindowChange" (window loses focus). If set to "afterDelay", you can configure the delay in "files.autoSaveDelay".
    "files.autoSave": "afterDelay",
    // Controls the delay in ms after which a dirty file is saved automatically. Only applies when "files.autoSave" is set to "afterDelay"
    "files.autoSaveDelay": 10000,
    // Controls the font size in pixels used in the markdown preview.
    "markdown.preview.fontSize": 16,
    // Check if a global install TypeScript compiler (e.g. tsc) differs from the used TypeScript language service.
    "typescript.check.tscVersion": false,
    // Enable the EasyMotion plugin for Vim.
    "vim.easymotion": true,
    // Show all matches of the most recent search pattern
    "vim.hlsearch": true,
    "editor.wordWrap": "on",
    // Enable some vim ctrl key commands that override otherwise common operations, like ctrl+c
    "vim.useCtrlKeys": false,
    // Width to word-wrap to when using gq.
    "vim.textwidth": 100,
    "workbench.colorTheme": "One Monokai",
    "workbench.iconTheme": "vscode-icons",
    "vsicons.projectDetection.autoReload": true,
    "[cpp]": {
      "editor.quickSuggestions": false
    },
    "[c]": {
      "editor.quickSuggestions": false
    },
    "window.zoomLevel": 0
  }

Hi it seem this issue just went away, I tired using code and doing a few things I was doing to cause the hang like pressing "CTRL+P" and scrolling up/down the command list.
Feel free to close this issue, if anything I'll reopen. Thanks!


bs-platform: 7.2.0 -> 7.3.1

Motivation for this change
https://github.com/BuckleScript/bucklescript/releases/tag/7.3.1
Things done

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

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

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

@GrahamcOfBorg build bs-platform


What's the pytorch version for your pre-trained model?

What's the pytorch version for your pre-trained model? My torch version is 1.7.1 but something abour pytorch goes wrong when I ran the script hand_detector_V2.py. Could you please add some information about your environment? Thanks!

I don't remember but when I created the project the PyTorch version was the last available in summer 2020. By the way what is your error?

Hi jesus,
I have the same problem with GuanqiHe.
I ran the script hand_detector_V2.py the error is below:
C:\Users\x\anaconda3\envs\test\lib\site-packages\torch\serialization.py:658: SourceChangeWarning: source code of class 'torchvision.models.detection.transform.GeneralizedRCNNTransform' has changed. Tried to save a patch, but couldn't create a writable file GeneralizedRCNNTransform.patch. Make sure it doesn't exist and your working directory is writable.
warnings.warn(msg, SourceChangeWarning)
C:\Users\x\anaconda3\envs\test\lib\site-packages\torch\serialization.py:658: SourceChangeWarning: source code of class 'torchvision.models.detection.backbone_utils.BackboneWithFPN' has changed. Tried to save a patch, but couldn't create a writable file BackboneWithFPN.patch. Make sure it doesn't exist and your working directory is writable.
warnings.warn(msg, SourceChangeWarning)
C:\Users\x\anaconda3\envs\test\lib\site-packages\torch\serialization.py:658: SourceChangeWarning: source code of class 'torch.nn.modules.conv.Conv2d' has changed. Tried to save a patch, but couldn't create a writable file Conv2d.patch. Make sure it doesn't exist and your working directory is writable.
warnings.warn(msg, SourceChangeWarning)
C:\Users\x\anaconda3\envs\test\lib\site-packages\torch\serialization.py:658: SourceChangeWarning: source code of class 'torchvision.ops.misc.FrozenBatchNorm2d' has changed. Tried to save a patch, but couldn't create a writable file FrozenBatchNorm2d.patch. Make sure it doesn't exist and your working directory is writable.
warnings.warn(msg, SourceChangeWarning)
C:\Users\x\anaconda3\envs\test\lib\site-packages\torch\serialization.py:658: SourceChangeWarning: source code of class 'torch.nn.modules.activation.ReLU' has changed. Tried to save a patch, but couldn't create a writable file ReLU.patch. Make sure it doesn't exist and your working directory is writable.
warnings.warn(msg, SourceChangeWarning)
C:\Users\x\anaconda3\envs\test\lib\site-packages\torch\serialization.py:658: SourceChangeWarning: source code of class 'torch.nn.modules.pooling.MaxPool2d' has changed. Tried to save a patch, but couldn't create a writable file MaxPool2d.patch. Make sure it doesn't exist and your working directory is writable.
warnings.warn(msg, SourceChangeWarning)
C:\Users\x\anaconda3\envs\test\lib\site-packages\torch\serialization.py:658: SourceChangeWarning: source code of class 'torch.nn.modules.container.Sequential' has changed. Tried to save a patch, but couldn't create a writable file Sequential.patch. Make sure it doesn't exist and your working directory is writable.
warnings.warn(msg, SourceChangeWarning)
C:\Users\x\anaconda3\envs\test\lib\site-packages\torch\serialization.py:658: SourceChangeWarning: source code of class 'torchvision.ops.feature_pyramid_network.FeaturePyramidNetwork' has changed. Tried to save a patch, but couldn't create a writable file FeaturePyramidNetwork.patch. Make sure it doesn't exist and your working directory is writable.
warnings.warn(msg, SourceChangeWarning)
C:\Users\x\anaconda3\envs\test\lib\site-packages\torch\serialization.py:658: SourceChangeWarning: source code of class 'torch.nn.modules.container.ModuleList' has changed. Tried to save a patch, but couldn't create a writable file ModuleList.patch. Make sure it doesn't exist and your working directory is writable.
warnings.warn(msg, SourceChangeWarning)
C:\Users\x\anaconda3\envs\test\lib\site-packages\torch\serialization.py:658: SourceChangeWarning: source code of class 'torchvision.ops.feature_pyramid_network.LastLevelMaxPool' has changed. Tried to save a patch, but couldn't create a writable file LastLevelMaxPool.patch. Make sure it doesn't exist and your working directory is writable.
warnings.warn(msg, SourceChangeWarning)
C:\Users\x\anaconda3\envs\test\lib\site-packages\torch\serialization.py:658: SourceChangeWarning: source code of class 'torchvision.models.detection.rpn.RegionProposalNetwork' has changed. Tried to save a patch, but couldn't create a writable file RegionProposalNetwork.patch. Make sure it doesn't exist and your working directory is writable.
warnings.warn(msg, SourceChangeWarning)
C:\Users\x\anaconda3\envs\test\lib\site-packages\torch\serialization.py:658: SourceChangeWarning: source code of class 'torchvision.models.detection.anchor_utils.AnchorGenerator' has changed. Tried to save a patch, but couldn't create a writable file AnchorGenerator.patch. Make sure it doesn't exist and your working directory is writable.
warnings.warn(msg, SourceChangeWarning)
C:\Users\x\anaconda3\envs\test\lib\site-packages\torch\serialization.py:658: SourceChangeWarning: source code of class 'torchvision.models.detection.rpn.RPNHead' has changed. Tried to save a patch, but couldn't create a writable file RPNHead.patch. Make sure it doesn't exist and your working directory is writable.
warnings.warn(msg, SourceChangeWarning)
C:\Users\x\anaconda3\envs\test\lib\site-packages\torch\serialization.py:658: SourceChangeWarning: source code of class 'torchvision.models.detection.roi_heads.RoIHeads' has changed. Tried to save a patch, but couldn't create a writable file RoIHeads.patch. Make sure it doesn't exist and your working directory is writable.
warnings.warn(msg, SourceChangeWarning)
C:\Users\x\anaconda3\envs\test\lib\site-packages\torch\serialization.py:658: SourceChangeWarning: source code of class 'torchvision.ops.poolers.MultiScaleRoIAlign' has changed. Tried to save a patch, but couldn't create a writable file MultiScaleRoIAlign.patch. Make sure it doesn't exist and your working directory is writable.
warnings.warn(msg, SourceChangeWarning)
C:\Users\x\anaconda3\envs\test\lib\site-packages\torch\serialization.py:658: SourceChangeWarning: source code of class 'torch.nn.modules.linear.Linear' has changed. Tried to save a patch, but couldn't create a writable file Linear.patch. Make sure it doesn't exist and your working directory is writable.
warnings.warn(msg, SourceChangeWarning)
C:\Users\x\anaconda3\envs\test\lib\site-packages\torch\serialization.py:658: SourceChangeWarning: source code of class 'hand_classification_net.CNNModel' has changed. Tried to save a patch, but couldn't create a writable file CNNModel.patch. Make sure it doesn't exist and your working directory is writable.
warnings.warn(msg, SourceChangeWarning)
C:\Users\x\anaconda3\envs\test\lib\site-packages\torch\serialization.py:658: SourceChangeWarning: source code of class 'torch.nn.modules.conv.Conv2d' has changed. Tried to save a patch, but couldn't create a writable file Conv2d.patch. Make sure it doesn't exist and your working directory is writable.
warnings.warn(msg, SourceChangeWarning)
C:\Users\x\anaconda3\envs\test\lib\site-packages\torch\serialization.py:658: SourceChangeWarning: source code of class 'torch.nn.modules.activation.ReLU' has changed. Tried to save a patch, but couldn't create a writable file ReLU.patch. Make sure it doesn't exist and your working directory is writable.
warnings.warn(msg, SourceChangeWarning)
C:\Users\x\anaconda3\envs\test\lib\site-packages\torch\serialization.py:658: SourceChangeWarning: source code of class 'torch.nn.modules.pooling.MaxPool2d' has changed. Tried to save a patch, but couldn't create a writable file MaxPool2d.patch. Make sure it doesn't exist and your working directory is writable.
warnings.warn(msg, SourceChangeWarning)
C:\Users\x\anaconda3\envs\test\lib\site-packages\torch\serialization.py:658: SourceChangeWarning: source code of class 'torch.nn.modules.linear.Linear' has changed. Tried to save a patch, but couldn't create a writable file Linear.patch. Make sure it doesn't exist and your working directory is writable.
warnings.warn(msg, SourceChangeWarning)
Traceback (most recent call last):
File "hand_detector_V2.py", line 86, in
boxes_predict = trackingHandWithRCNN(hand_tracker, frame, device)
File "E:\HandTracking_Test\Hand-Tracking-Pytorch\hand_detector_utils.py", line 94, in trackingHandWithRCNN
predictions = model([img])
File "C:\Users\x\anaconda3\envs\test\lib\site-packages\torch\nn\modules\module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "C:\Users\x\anaconda3\envs\test\lib\site-packages\torchvision\models\detection\generalized_rcnn.py", line 96, in forward
features = self.backbone(images.tensors)
File "C:\Users\x\anaconda3\envs\test\lib\site-packages\torch\nn\modules\module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "C:\Users\x\anaconda3\envs\test\lib\site-packages\torchvision\models\detection\backbone_utils.py", line 43, in forward
x = self.body(x)
File "C:\Users\x\anaconda3\envs\test\lib\site-packages\torch\nn\modules\module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "C:\Users\x\anaconda3\envs\test\lib\site-packages\torchvision\models_utils.py", line 63, in forward
x = module(x)
File "C:\Users\x\anaconda3\envs\test\lib\site-packages\torch\nn\modules\module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "C:\Users\x\anaconda3\envs\test\lib\site-packages\torchvision\ops\misc.py", line 94, in forward
scale = w * (rv + self.eps).rsqrt()
File "C:\Users\x\anaconda3\envs\test\lib\site-packages\torch\nn\modules\module.py", line 779, in getattr
type(self).name, name))
torch.nn.modules.module.ModuleAttributeError: 'FrozenBatchNorm2d' object has no attribute 'eps'
[<EMAIL_ADDRESS>global D:\a\opencv-python\opencv-python\opencv\modules\videoio\src\cap_msmf.cpp (539) `anonymous-namespace'::SourceReaderCB::~SourceReaderCB terminating async callback
My environment is python 3.7.10

pip list

Package                       Version

certifi                       2021.10.8
cycler                        0.11.0
dm-tree                       0.1.6
fonttools                     4.32.0
kiwisolver                    1.4.2
matplotlib                    3.5.1
mkl-fft                       1.3.1
mkl-random                    1.2.2
mkl-service                   2.4.0
numpy                         1.21.5
opencv-python                 <IP_ADDRESS>
packaging                     21.3
pandas                        1.3.5
Pillow                        9.0.1
pip                           21.2.4
pyparsing                     3.0.8
python-dateutil               2.8.2
pytz                          2022.1
setuptools                    61.2.0
six                           1.16.0
tensorflow-model-optimization 0.7.0
torch                         1.7.1
torchaudio                    0.7.2
torchvision                   0.8.2
typing_extensions             4.1.1
wheel                         0.37.1
wincertstore                  0.2
Do you have any ideas? Very Thanks


--proxy always raises error

[x] I've verified and I assure that I'm running youtube-dl 2017.01.14

Before submitting an issue make sure you have:

[x] At least skimmed through README and most notably FAQ and BUGS sections
[ ] Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

[x] Bug report (encountered problems with youtube-dl)
[ ] Site support request (request for adding support for a new site)
[ ] Feature request (request for a new functionality)
[ ] Question
[ ] Other

$ youtube-dl -v --proxy http://<IP_ADDRESS>:3128 FC1Y4Dg-T9o
[youtube] FC1Y4Dg-T9o: Downloading webpage
ERROR: Unable to download webpage: <urlopen error Tunnel connection failed: 400 Bad Request> (caused by URLError(OSError('Tunnel connection failed: 400 Bad Request',),))
Khangs-MacBook-Air:~ khangnt$ youtube-dl --proxy http://<IP_ADDRESS>:3128 FC1Y4Dg-T9o --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--proxy', 'http://<IP_ADDRESS>:3128', 'FC1Y4Dg-T9o', '--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.01.14
[debug] Python version 3.5.2 - Darwin-16.3.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.1.3, ffprobe 3.1.3
[debug] Proxy map: {'http': 'http://<IP_ADDRESS>:3128', 'https': 'http://<IP_ADDRESS>:3128'}
[youtube] FC1Y4Dg-T9o: Downloading webpage
ERROR: Unable to download webpage: <urlopen error Tunnel connection failed: 400 Bad Request> (caused by URLError(OSError('Tunnel connection failed: 400 Bad Request',),))
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/youtube_dl/extractor/common.py", line 406, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/youtube_dl/YoutubeDL.py", line 2001, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/urllib/request.py", line 466, in open
    response = self._open(req, data)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/urllib/request.py", line 484, in _open
    '_open', req)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/urllib/request.py", line 444, in _call_chain
    result = func(*args)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/youtube_dl/utils.py", line 1047, in https_open
    req, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/urllib/request.py", line 1256, in do_open
    raise URLError(err)

Addition information:
I'm using proxy to escape from "Region restriction" with YouTube video, I have list tens of proxy (all tested working), use all of proxy I have, but I just receive one error: Tunnel connection failed: 400 Bad Request.
{Note: The proxy in verbose log may be dead)

Most likely all your proxies are dead.
PS C:\dev\youtube-dl\master> py -3.5 .\youtube_dl\__main__.py BaW_jenozKc -v --proxy http://<IP_ADDRESS>:8118
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['BaW_jenozKc', '-v', '--proxy', 'http://<IP_ADDRESS>:8118']
[debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251
[debug] youtube-dl version 2017.01.14
[debug] Git HEAD: b80e2eb
[debug] Python version 3.5.2 - Windows-10-10.0.10240-SP0
[debug] exe versions: ffmpeg N-81192-g04da20e, ffprobe N-81192-g04da20e, rtmpdump 2.4
[debug] Proxy map: {'http': 'http://<IP_ADDRESS>:8118', 'https': 'http://<IP_ADDRESS>:8118'}
[youtube] BaW_jenozKc: Downloading webpage
[youtube] BaW_jenozKc: Downloading video info webpage
[youtube] BaW_jenozKc: Extracting video information
[youtube] BaW_jenozKc: Downloading MPD manifest
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[debug] Invoking downloader on 'https://r3---sn-vgqsrn7l.googlevideo.com/videoplayback?id=05a5bf8de9e8cca7&itag=137&source=youtube&requiressl=yes&nh=IgpwcjAzLm9yZDEyKgkxMjcuMC4wLjE&initcwndbps=2842500&ms=au&mv=m&pl=19&mn=sn-vgqsrn7l&mm=31&ratebypass=yes&mime=video/mp4&gir=yes&clen=2208750&lmt=1387961822987808&dur=9.800&upn=7JSCLa4lwMA&signature=887F0FA8207FCA135956C30F2B4EDBDB9FD97A08.9584650392B092A63629F90F370D72AE7737A893&key=dg_yt0&mt=1484408148&ip=<IP_ADDRESS>&ipbits=0&expire=1484429928&sparams=ip,ipbits,expire,id,itag,source,requiressl,nh,initcwndbps,ms,mv,pl,mn,mm,ratebypass,mime,gir,clen,lmt,dur'
[download] Destination: youtube-dl test video ''_ä↭𝕐-BaW_jenozKc.f137.mp4
[download]  11.8% of 2.11MiB at 151.02KiB/s ETA 00:12

I have the same problem, i can access every page with the proxy but get 400 bad request on youtube.


release: bump version to 1.5.0

Changed

Drop support for Python 3.7 (#189).
Improve warning when the lock file is not consistent with pyproject.toml (#215).

Fixed

Fix an issue where markers for dependencies required by an extra were not generated correctly (#209).

The usual absurd circular dependencies and entangled CI pipelines are eventually going to cause this repository to want the following change:
diff --git a/tests/test_exporter.py b/tests/test_exporter.py
index 73cb03a..5ba17bf 100644
--- a/tests/test_exporter.py
+++ b/tests/test_exporter.py
@@ -447,7 +447,7 @@ def test_exporter_can_export_requirements_txt_with_nested_packages_and_markers(
         "b": Dependency.create_from_pep_508(f"b==4.5.6 ; {marker_py_windows}"),
         "c": Dependency.create_from_pep_508(f"c==7.8.9 ; {marker_py_win32}"),
         "d": Dependency.create_from_pep_508(
-            f"d==0.0.1 ; {marker_py_win32.union(marker_py_windows)}"
+            f"d==0.0.1 ; {marker_py_windows.union(marker_py_win32)}"
         ),
     }

... I guess because of recent changes in poetry-core
Probably simplest to make that change now and be ready for it.

Many thanks.


embassy-boot-nrf with softdevice

I need an example to have bootloader with using softdevice together due to update both application and softdevice.
I checked the example, but it does not work for me.
One thing that I should mention is that I need defmt for debug both bootloader and applications.
Thanks.

What is it that does not work with the example? For what it's worth, I've got a more advanced example here https://github.com/lulf/watchful/tree/main/firmware, maybe you can copy from that.

Thank you for your quick response.
I checked your example, but you did not use any debug message. Because I think it has problem with using probe-rs runner debug in both bootloader and application example.
I see weird behavior for debug messages.
First I program softdevice, then program bootloader and after that the main program but it does not work as desired.

Did you get this working eventually, can we close the issue?

Did you get this working eventually, can we close the issue?

Yes, Thank you

Hi @AliMoal , may I ask you some infos on how you solved? I have a strange issue too.
I have sofdevice, app and bootloader at the end of flash. Bootloader is custom, just rewrites actual one ( no double image ).
When I jumo to app ( using load function og embassy boot in sd flavour ) app starts but crash when i turn on sd and send some commands from uart.
When i just flash sd and app it works like a charm. If you can give me some hints on how you solved would be great!

Thank you @arkanoider
My case was different from yours, but if you explain more, I can help. Could you describe how to understand app starts? Do you have UART connection from board? Did you implement any debug method?

Thanks @AliMoal !
I try to summarize my system: I have an nrf52 chip connected with a bigger MCU via UART, bigger MCU can send and receive messages to and from BT via nrf chip ( a sort of passthrough let me say ) basically my small app just do this.
Bootloader inside nrf chip can update this passthrough app in case.
As premise, i confirm that application is working correctly with no bootloader flashed, with boot onbooard basically I have a reset after i send a command with BT on.

Could you describe how to understand app starts?
I see welcome message and I can also send BT activation command and it works because I can see advertise starting.

I have a UART message sent out at start

Do you have UART connection from board?

Yes. Real system has the two microcontrollers speakin via UART , i am using a sw terminal to simulate from PC during tests.

Did you implement any debug method?

If you mean Rust impl...no...i am using just defmt for printing info.
I can drop my memory.x files here:
Bootloader side:
MEMORY
{
    /* NOTE 1 K = 1 KiBi = 1024 bytes */
  /* These values correspond to the NRF52805 with SoftDevices S112 7.2.0 */
  FLASH (rx) : ORIGIN = 0x2A000, LENGTH = 24K
  RAM : ORIGIN = 0x20000008, LENGTH = 24K - 8
  mbr_params_page (r) : ORIGIN = 0x0002E000, LENGTH = 4K
  bootloader_settings_page (r) : ORIGIN = 0x0002F000, LENGTH = 4K
  uicr_bootloader_start_address (r) : ORIGIN = 0x10001014, LENGTH = 0x4
}

SECTIONS {
     .uicr_bootloader_start_address :  {
       KEEP(*(.uicr_bootloader_start_address))
       . = ALIGN(4);
     } > uicr_bootloader_start_address
};

App side
MEMORY
{
  /* NOTE 1 K = 1 KiBi = 1024 bytes */
  /* These values correspond to the NRF52805 with SoftDevices S112 7.2.0 */
  FLASH (rx) : ORIGIN = 0x19000, LENGTH = 64K
  RAM : ORIGIN = 0x20000000 + 9440, LENGTH = 24K - 9440
}

So basically bootloader is placed at 0x2A000 and app starts after SD at 0x19000.
Jump to app is done via this copy and paste function from embassy boot:
/// Boots the application assuming softdevice is present.
///
/// # Safety
///
/// This modifies the stack pointer and reset vector and will run code placed in the active partition.
pub unsafe fn jump_to_app() -> ! {
    use nrf_softdevice_mbr as mbr;

    // Address of softdevice which we'll forward interrupts to
    let addr = 0x1000;
    let mut cmd = mbr::sd_mbr_command_t {
        command: mbr::NRF_MBR_COMMANDS_SD_MBR_COMMAND_IRQ_FORWARD_ADDRESS_SET,
        params: mbr::sd_mbr_command_t__bindgen_ty_1 {
            irq_forward_address_set: mbr::sd_mbr_command_irq_forward_address_set_t {
                address: addr,
            },
        },
    };
    let ret = mbr::sd_mbr_command(&mut cmd);
    info!("ret val {}", ret);

    let msp = *(addr as *const u32);
    let rv = *((addr + 4) as *const u32);

    trace!("msp = {=u32:x}, rv = {=u32:x}", msp, rv);

    // These instructions perform the following operations:
    //
    // * Modify control register to use MSP as stack pointer (clear spsel bit)
    // * Synchronize instruction barrier
    // * Initialize stack pointer (0x1000)
    // * Set link register to not return (0xFF)
    // * Jump to softdevice reset vector
    core::arch::asm!(
        "mrs {tmp}, CONTROL",
        "bics {tmp}, {spsel}",
        "msr CONTROL, {tmp}",
        "isb",
        "msr MSP, {msp}",
        "mov lr, {new_lr}",
        "bx {rv}",
        // `out(reg) _` is not permitted in a `noreturn` asm! call,
        // so instead use `in(reg) 0` and don't restore it afterwards.
        tmp = in(reg) 0,
        spsel = in(reg) 2,
        new_lr = in(reg) 0xFFFFFFFFu32,
        msp = in(reg) msp,
        rv = in(reg) rv,
        options(noreturn),
    );
}

Solved! Thanks anyway...


make: *** No rule to make target Release/obj.target/binding/src/binding.o', needed by Release/binding.node'.  Stop.

$ node-gyp rebuild
make: *** No rule to make target Release/obj.target/binding/src/binding.o', needed by Release/binding.node'.  Stop.
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/chetankhandla/.nvm/versions/node/v14.13.1/lib/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:314:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Darwin 19.6.0
gyp ERR! command "/Users/chetankhandla/.nvm/versions/node/v14.13.1/bin/node" "/Users/chetankhandla/.nvm/versions/node/v14.13.1/bin/node-gyp" "rebuild"
gyp ERR! cwd /Users/chetankhandla/projects/sagar/everything-alternative-website
gyp ERR! node -v v14.13.1
gyp ERR! node-gyp -v v7.1.2
gyp ERR! not ok

We're going to need a fair bit more information than this in order to offer any help. Are you attempting to install and compile an addon from npm, or are you writing your own? Can you share any more information about it, maybe your binding.gyp? Do you have the right tools installed (https://github.com/nodejs/node-gyp#on-macos)?

Same Issue.
Macbook Pro Catalina 10.15.7
OpenCV 4.5 (Brew)
I have binding.gyp file,
I think I found a strange behavior, when I change the xcode version value manually from the auto generated build directory.
I do this:
node-gyp clean
node-gyp configure

Then I get a build directory structure with files only.
If I do
node-gyp build

Then I get the Error. But with the same directory structure:

But if I change node-gyp version in build/config.gipy:
"variables": {
  // ...
  "xcode_version": "12.0",
  // to
  "xcode_version": "12.3",
  // because I have xcode version 12.3
}

I still get the same Error, but with 2 Differences:
1- New log appear in console on top of error : "ACTION Regenerating Makefile"
2- a directory build/Release is created with a file build/Release/.deps/Makefile.d
Could it be the XCode of Catalina having problem sending the right information when Node-Gyp launch configuration?
I had XCode at 2 places, 1 under the Applications/XCode.app/... and 1 in /Library/Developer/CommandLineTools/. I didn't reached that far with the first one, and while looking for solution, I switched to the 2nd with:
sudo xcode-select --switch /Library/Developer/CommandLineTools/

I gonna try to switch back to XCode.app again to see. That is really strange.

Every macOS update breaks Command Line Tools for XCode so after every macOS update, do
xcode-select --install

Thanks @cclauss . It was my mistake. I used the default binding.gyp values innocently, thinking it has to do with node-gyp relative path. So instead keyword biding, as I was compiling node_modules/opencv4nodejs, then I had to ajust it like:
// binding.gyp
{
  "targets": [
    {
      "target_name": "opencv4nodejs",
      "sources": [ "node_modules/opencv4nodejs/cc/opencv4nodejs.cc" ]
    }
  ]
}

So it's a config that is bind to the module you want to compile. I didn't took enough time to read as my brain is tired after all that back and forth since 2 days trying to install this with tons of errors, starting from updating xcode itself.
I think a change in the README to my-module-name instead of binding would be nicer for exhausted brains. Lol.
{
  "targets": [
    {
      "target_name": "my-module-name",
      "sources": [ "my-module-path/my-module.cc" ]
    }
  ]
}

And now I'm getting 1 last single error:
gyp info it worked if it ends with ok
gyp info using<EMAIL_ADDRESS>gyp info using<EMAIL_ADDRESS>| darwin | x64
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
  CXX(target) Release/obj.target/opencv4nodejs/node_modules/opencv4nodejs/cc/opencv4nodejs.o
In file included from ../node_modules/opencv4nodejs/cc/opencv4nodejs.cc:2:
In file included from ../node_modules/opencv4nodejs/cc/ExternalMemTracking.h:1:
../node_modules/opencv4nodejs/cc/macros.h:1:10: fatal error: 'NativeNodeUtils.h' file not found
#include "NativeNodeUtils.h"
         ^~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [Release/obj.target/opencv4nodejs/node_modules/opencv4nodejs/cc/opencv4nodejs.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (node:events:376:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:284:12)
gyp ERR! System Darwin 19.6.0
gyp ERR! command "/usr/local/Cellar/node/15.4.0/bin/node" "/usr/local/bin/node-gyp" "build"
gyp ERR! cwd /Users/Keitel/repos/learning/technology
gyp ERR! node -v v15.4.0
gyp ERR! node-gyp -v v7.1.2
gyp ERR! not ok

https://www.npmjs.com/package/native-node-utils

Never thought that the system parsing binding.gyp was so powerful and complex. Thanks, but I'm using https://www.npmjs.com/package/opencv4nodejs which already uses native-node-utils internally. The great thing is node_modules/opencv4nodejs already get its own binding.gyp, so I should build it directly inside the module directory.
From now on, I think I should manage the rest on my own.
node_modules/opencv4nodejs/binding.gyp:
{
	"targets": [{
		"target_name": "opencv4nodejs",
		"defines": [
			"<!@(node ./install/parseEnv.js OPENCV4NODEJS_DEFINES)",
		],
		"include_dirs" : [
			"<!@(node ./install/parseEnv.js OPENCV4NODEJS_INCLUDES)",
			"cc",
			"cc/core",
			"<!(node -e \"require('nan')\")",
			"<!(node -e \"require('native-node-utils')\")"
		],
		"libraries": [
			"<!@(node ./install/parseEnv.js OPENCV4NODEJS_LIBRARIES)",
		],
		"sources": [
			"cc/opencv4nodejs.cc",
			"cc/CustomMatAllocator.cc",
			"cc/ExternalMemTracking.cc",
			"cc/core/core.cc",
			"cc/core/coreConstants.cc",
			"cc/core/HistAxes.cc",
			"cc/core/Mat.cc",
			"cc/core/Point.cc",
			"cc/core/Vec.cc",
			"cc/core/Size.cc",
			"cc/core/Rect.cc",
			"cc/core/RotatedRect.cc",
			"cc/core/TermCriteria.cc",
			"cc/imgproc/imgproc.cc",
			"cc/imgproc/imgprocConstants.cc",
			"cc/imgproc/MatImgproc.cc",
			"cc/imgproc/Contour.cc",
			"cc/imgproc/Moments.cc",
			"cc/calib3d/calib3d.cc",
			"cc/calib3d/calib3dConstants.cc",
			"cc/calib3d/MatCalib3d.cc",
			"cc/io/io.cc",
			"cc/io/ioConstants.cc",
			"cc/io/VideoCapture.cc",
			"cc/io/VideoWriter.cc",
			"cc/photo/photo.cc",
			"cc/photo/photoConstants.cc",
			"cc/photo/MatPhoto.cc",
			"cc/video/video.cc",
			"cc/video/BackgroundSubtractor.cc",
			"cc/video/BackgroundSubtractorMOG2.cc",
			"cc/video/BackgroundSubtractorKNN.cc",
			"cc/ximgproc/ximgproc.cc",
			"cc/ximgproc/MatXimgproc.cc",
			"cc/ximgproc/SuperpixelSEEDS.cc",
			"cc/ximgproc/SuperpixelSLIC.cc",
			"cc/ximgproc/SuperpixelLSC.cc",
			"cc/objdetect/objdetect.cc",
			"cc/objdetect/CascadeClassifier.cc",
			"cc/objdetect/HOGDescriptor.cc",
			"cc/objdetect/DetectionROI.cc",
			"cc/machinelearning/machinelearning.cc",
			"cc/machinelearning/machinelearningConstants.cc",
			"cc/machinelearning/ParamGrid.cc",
			"cc/machinelearning/StatModel.cc",
			"cc/machinelearning/SVM.cc",
			"cc/machinelearning/TrainData.cc",
			"cc/dnn/dnn.cc",
			"cc/dnn/Net.cc",
			"cc/face/face.cc",
			"cc/face/FaceRecognizer.cc",
			"cc/face/EigenFaceRecognizer.cc",
			"cc/face/FisherFaceRecognizer.cc",
			"cc/face/LBPHFaceRecognizer.cc",
			"cc/face/Facemark.cc",
			"cc/face/FacemarkAAM.cc",
			"cc/face/FacemarkAAMData.cc",
			"cc/face/FacemarkAAMParams.cc",
			"cc/face/FacemarkLBF.cc",
			"cc/face/FacemarkLBFParams.cc",
			"cc/text/text.cc",
			"cc/text/OCRHMMClassifier.cc",
			"cc/text/OCRHMMDecoder.cc",
			"cc/tracking/tracking.cc",
			"cc/tracking/Tracker.cc",
			"cc/tracking/MultiTracker.cc",
			"cc/tracking/Trackers/TrackerBoosting.cc",
			"cc/tracking/Trackers/TrackerBoostingParams.cc",
			"cc/tracking/Trackers/TrackerKCF.cc",
			"cc/tracking/Trackers/TrackerKCFParams.cc",
			"cc/tracking/Trackers/TrackerMIL.cc",
			"cc/tracking/Trackers/TrackerMILParams.cc",
			"cc/tracking/Trackers/TrackerMedianFlow.cc",
			"cc/tracking/Trackers/TrackerTLD.cc",
			"cc/tracking/Trackers/TrackerGOTURN.cc",
			"cc/tracking/Trackers/TrackerCSRT.cc",
			"cc/tracking/Trackers/TrackerCSRTParams.cc",
			"cc/tracking/Trackers/TrackerMOSSE.cc",
			"cc/features2d/features2d.cc",
			"cc/features2d/KeyPoint.cc",
			"cc/features2d/KeyPointMatch.cc",
			"cc/features2d/DescriptorMatch.cc",
			"cc/features2d/BFMatcher.cc",
			"cc/features2d/FeatureDetector.cc",
			"cc/features2d/descriptorMatching.cc",
			"cc/features2d/descriptorMatchingKnn.cc",
			"cc/features2d/detectors/AGASTDetector.cc",
			"cc/features2d/detectors/AKAZEDetector.cc",
			"cc/features2d/detectors/BRISKDetector.cc",
			"cc/features2d/detectors/FASTDetector.cc",
			"cc/features2d/detectors/GFTTDetector.cc",
			"cc/features2d/detectors/KAZEDetector.cc",
			"cc/features2d/detectors/MSERDetector.cc",
			"cc/features2d/detectors/ORBDetector.cc",
			"cc/features2d/detectors/SimpleBlobDetector.cc",
			"cc/features2d/detectors/SimpleBlobDetectorParams.cc",
			"cc/xfeatures2d/xfeatures2d.cc",
			"cc/xfeatures2d/SIFTDetector.cc",
			"cc/xfeatures2d/SURFDetector.cc"
		],

		"cflags" : [
			"-std=c++11"
		],
		"cflags!" : [
			"-fno-exceptions"
		],
		"cflags_cc!": [
			"-fno-rtti",
			"-fno-exceptions"
		],
		"ldflags" : [
			"-Wl,-rpath,'$$ORIGIN'"
		],
		"xcode_settings": {
			"OTHER_CFLAGS": [
				"-std=c++11",
				"-stdlib=libc++"
			],
			"GCC_ENABLE_CPP_EXCEPTIONS": "YES",
			"MACOSX_DEPLOYMENT_TARGET": "10.9"
		},

		"conditions": [
			[ "OS==\"win\"", {
				"cflags": [
					"-Wall"
				],
				"defines": [
					"WIN",
					"_HAS_EXCEPTIONS=1"
				],
				"msvs_settings": {
					"VCCLCompilerTool": {
						"ExceptionHandling": "2",
						"RuntimeLibrary": "2"
					},
				}
			}],
	        ["OS==\"mac\"",
	          {
	            "link_settings": {
	              "libraries": [
<EMAIL_ADDRESS>	              ],
	            }
	          }
	        ]
		],

		"configurations": {
			"Debug": {
				"cflags": ["--coverage"],
				"ldflags": ["--coverage"]
			},
    }

	}]
}

What worked for me was to change the node-sass version in the package.json file to what is supported with your node js version!

@ryyant None of the above posts talk about trying to install the deprecated node-sass.
https://github.com/nodejs/node-gyp/issues?q=is%3Aissue+label%3A"Node+Sass+-->+Dart+Sass"

Hello @cclauss I'm facing the same issue with tfjs-node bindings can you help with the bindings.gyp file

https://github.com/tensorflow/tfjs-node is archived.

it isn't archived it has just been shifted to main tfjs repo https://github.com/tensorflow/tfjs


fix: suppress error about unable to obtain node

Relates to #11451
Motivation

After upgrading to v3.4.11, the error log is often reported from monitoring.
level=error msg="was unable to obtain node for " namespace=default workflow=hello-world-jq82w

Modifications

When boundaryID is empty, we don't try to get node and also don't raise any error.
Verification

@terrytangyuan Thank you for reviewing! Please retry required Docs/docs job because it seems to be a temporary failure. 🙏


My Dockerfile

Dockerfile ::::::::::
FROM ubuntu:18.04
FROM tomcat:9
LABEL author=Srinivas
RUN apt-get update && apt-get install tree unzip -y
RUN wget https://github.com/QT-DevOps/DevOpsIssues/files/2130588/gameoflife.zip &&
unzip gameoflife.zip &&
mv gameoflife.war /usr/local/tomcat/webapps/
EXPOSE 8080
CMD ["catalina.sh", "run"]
~
Kindly check and investigate and suggest and validate if everything is working fine at your end as well.

FROM tomcat:9 is enough

https://github.com/BRAHMAREDDYV/springpetclinic.git

FROM tomcat:9
LABEL author=Srinivas
RUN apt-get update && apt-get install tree unzip -y
RUN wget https://github.com/QT-DevOps/DevOpsIssues/files/2130588/gameoflife.zip && unzip gameoflife.zip && mv gameoflife.war /usr/local/tomcat/webapps/
EXPOSE 8080
CMD ["catalina.sh", "run"]

cool... thank you very much sir 👍

please close issue.

FROM openjdk:13
ADD https://naresh-springpetclinicjarfile.s3-us-west-2.amazonaws.com/spring-petclinic-2.1.0.BUILD-SNAPSHOT.jar /usr/local/tomcat/springpetclinic.jar
EXPOSE 8080
CMD ["java" , "-jar" , "/usr/local/tomcat/springpetclinic.jar"]
Kindly check and investigate and suggest and validate if everything is working fine at your end as well.


HTML to BBCode tables and center

Hey! Thanks for the very useful extension!
I noticed that the library you're using to convert HTML to BBCode doesn't support converting HTML tables. I was just wondering if you'd be interested in adding support for that somehow.
I also noticed that it converts elements with text-align: center to [center][/center], but in Gazelle (a private tracker web framework) it's [align=center][/align]. I suppose these things are different everywhere because there is no real standard, so you'd need user-facing options to enable/disable/modify tags accordingly which seems a bit difficult. But yea just something to take into consideration.

No time to improve this for now.
I plan to support converting HTML to Org-Mode in the future (without using a third-party library), and will probably improve BBCode at that time.
If anyone wants to improve BBCode soon, PRs are welcome.


Allow setting ignoreFrom on DashItem's interactiveInstance attribute

In the scenario of having an interactive item (a chart with drag to see more values, etc.) this package should have a way to disable those elements to trigger a drag on DragItem component.
The same you have for dragAllowFrom, you should have a dragIgnoreFrom prop that will set the ignoreFrom on the interactiveInstance initialization options.

Completed in v0.5


Gracefully handle build errors for preLaunchTask

Testing #81637
I tested this on the vscode-pullrequest-github repo with some older npm modules (it had been a while sine I last synced). When I attempted to launch the extension + default build task (via prelaunch task) I was hit with a build error:

So I stopped the debug session and also killed the terminal process, but then the debug session continued:

I think that if you launch the default build task via a launch config and you have build errors, the launch task should stop. I would also love it if in this situation when you stop the debug session that it also stops the build process as you likely need to investigate the errors.

Various things required for this:

Terminal would need to indicate that the terminal was killed in onExit
Tasks that exit because the terminal is killed would need to return a non-zero exit code
Debug would need to look for that magic error code
Debug would need to kill the task when debug is stopped

@alexr00 Nice analysis.
For the 4th point there is already a request for this. We could also have a postDebugTask that could be configured to stop it.

Terminal would need to indicate that the terminal was killed in onExit

@alexr00 you can probably change this line:
https://github.com/microsoft/vscode/blob/1e7a92b119d68a93b0d33bb83b5d4feee4ff984f/src/vs/workbench/contrib/terminal/browser/terminalInstance.ts#L1108
To just this._onExit.fire(exitCode);, that way it will be undefined if the user killed the terminal. Tasks is the only consumer or this so it should be safe.

@Tyriar nice, thanks for the pointer!

It looks like everything already in place from tasks and terminal. The task service returns null instead of a task summary if the terminal is killed while the task is running. The rest is work in debug.

The work needed to propagate an undefined exit code (signalling terminal terminated) through to debug is done. @isidorn over to you to handle the undefined exit code and prevent the launch from proceeding!

@alexr00 oki doki

Pushed a potential fix for this.
@misolori can you please try it out and let us know how it behaves now for you. Thank you

It does appear to handle build errors better, but now I run into an issue where it's trying to finishing building + launching the debugger but never proceeds:

Unrelated?

@misolori Is the build finished successfuly here?
@alexr00 it seems like the task does not report it is done to the debug.
Please note that I pushed the change which should just affect the happy no error case

Your task output is missing the start and end pattern that tasks uses to tell debug that the task got far enough. I think you need to add --info-verbosity verbose to your webpack task.
See https://github.com/microsoft/vscode/issues/82076#issuecomment-543249046 for more info on that.


{Core} Update Next Breaking Change Release Version Number

Related command

Description

Update the breaking change release version.
It is recommended to update the version during the breaking change window. This will help avoid any issues with pre-announcements that indicate changes will occur in the current version after relase.
Testing Guide

History Notes

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

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

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

[ ] I adhere to the Command Guidelines.

[ ] I adhere to the Error Handling Guidelines.

Thank you for your contribution! We will review the pull request and get back to you soon.


Removes duration query support from Cassandra 2.2

The duration query is unusable for most people, yet adds load every time
a span is written. It is also complicated code that hasn't improved much
since being written.
This removes this feature, punting to cassandra3 which can address the
problem more effectively via SASI indexing.
Fixes #1224
Obviates #1204

@openzipkin/cassandra I applaud the efforts, but this feature has been non-stop maintenance, and most people can't use it. Let's move on and put efforts behind cassandra3 instead?

+1 from me

merging due to the history of this issue, comments here and also an out-of-band thumbs up from @michaelsembwever a few days ago.


RFC: Option for deploying rollouts with overlap.

The new functionality is in DefaultRolloutPlanner now since that seemed to be the easiest way to go. Let me know if you'd prefer a separate RolloutPlanner implementation instead. I'm also open to better naming suggestions, couldn't come up with anything better than overlap.

:+1:

@davidxia @rohansingh

Weekly inventory check. What do you guys think about merging this?

:+1:


Implement live injections

Marking an injection point as "live" should cause it to be updated as soon as the mapped value changes.

Turns out I'll probably not implement this feature after all. If anyone absolutely wants to implement it and sends a pull request with good implementation and tests, I'll probably merge that, but I'm mostly of the opinion that a real binding solution should be used here, instead.


upgrade Jackson to latest version

JUnit Tests ran successfully and my test project still worked
see #138

Thx. Seamless update ;-)


TensorFlow SKFlow Estimators Fail when Using read_batch_examples

Environment info
Operating System: Ubuntu
Package: https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.10.0rc0-cp27-none-linux_x86_64.whl
Version: 0.10.0rc0
I'm currently trying to use tf.contrib.learn.read_batch_examples working while using a TensorFlow (SKFlow/tf.contrib) Estimator, specifically the LinearClassifier. I create a read_batch_examples op feeding in a CSV file with a tf.decode_csv for the parse_fn parameter with appropriate default records. I then feed that op to my input_fn for fitting the Estimator, but when that's run I receive the following error:
Error Message
ValueError: Tensor("centered_bias_weight:0", shape=(1,), dtype=float32_ref) must be from the same graph as Tensor("linear/linear/BiasAdd:0", shape=(?, 1), dtype=float32).

What I've Tried
The code works if I run the op beforehand and then feed the input instead as an array of values. While this workaround exists, it is unhelpful because I am working with large datasets in which I need to batch in my inputs. Currently going over Estimator.fit (currently equivalent to Estimator.partial_fit in iterations isn't nearly as fast as being able to feed in data as it trains, so having this working is ideal.  Additionally I've tried wrapping everything with with tf.Graph().asdefault(). Any ideas? The non-functioning code is below.
Shortened Source Code to Reproduce
read_batch_examples_fails_with_estimator.txt
Any alternatives for batching would be appreciated as well!

@ilblackdragon  Could you please take a look at this?

You have to call read_batch_examples from somewhere inside input_fn so that the tensors it creates are in the graph that Estimator creates in fit().

 I've been creating the op outside of the graph scope. It works now, can't believe I didn't think to try that. Thanks a lot! This is a non-issue and has been resolved.


[Feature]: Documentation for a High Availability Deployment on Azure AKS usign the helm chart

Is there an existing issue for this?

[X] I have searched the existing issues

Summary
Hi, i would like to have instructions on how to configure the helm chart for a high availability deployment of Appsmith enterprise on Azure AKS, similar to what you have done for AWS and Google Cloud Run.
I am currently stumbing on the persistent volume configuration.
Why should this be worked on?
We are adopting appsmith for our internal applications and we use azure for all our services. We currently have appsmith deployed as a statefulset but that does not provide the HA that we need for a larger adoption of appsmith across the organization.

In fact due to the Stateful Set configuration, all of our appsmith workspace was wiped out in a kubernetes update...


Query Parameter Handling in RealtimeClient

I am using a relay server with RealtimeClient to add custom query parameters (e.g., jwtToken) for authentication. Here's the code snippet I used to append the parameter:
const url = new URL(API_HOST);
url.searchParams.append('jwtToken', jwtToken);

const clientRef = useRef<RealtimeClient>(
  new RealtimeClient({
    url: url.toString(),
  }),
);

However, when I log the req.url on the relay server, the query parameters are not being sent correctly. It appears that RealtimeClient adds an additional query parameter (e.g., model) using a ? separator, even when the URL already contains a query string.
As a result, the generated WebSocket URL looks like this:
/?jwtToken=<JWT_TOKEN>?model=gpt-4o-realtime-preview-2024-10-01

Instead of:
/?jwtToken=<JWT_TOKEN>&model=gpt-4o-realtime-preview-2024-10-01

Expected Behavior
The RealtimeClient should correctly append additional query parameters using the & separator when the URL already contains a query string.
Example of the expected URL:
/?jwtToken=<JWT_TOKEN>&model=gpt-4o-realtime-preview-2024-10-01

Actual Behavior
The RealtimeClient appends the additional query parameter using a second ?, resulting in an invalid query string:
/?jwtToken=<JWT_TOKEN>?model=gpt-4o-realtime-preview-2024-10-01

Steps to Reproduce

Create a RealtimeClient instance with a URL that already includes a query parameter (jwtToken).
Log the URL received by the WebSocket server (req.url) on the relay server.
Observe that the query parameters are malformed with multiple ?.

Summary
The current handling of query parameters in RealtimeClient causes malformed URLs when custom query strings are provided. Fixing this issue will make the library more robust and easier to integrate new query params to url

+1 for this, would be great to add a JWT for Auth.


Add blank line between two different testcases

Example:
Case #1:
Abc
Case #2:
Def
But if we only have one testcase, it's only like normal output without blank line in the end output


Production Deployment

Includes

#64

Closes #63

#65

Closes #66

Changes
New Features ✨

Add new auto theme, that switches between light and dark mode automatically depending on the users current device theme
Add button to easily duplicate a palette in the list of palettes

Internal 🛠

Don't persist writes to changelog on pre-releases
Update dependencies
Enable story for navigation component

:tada: This PR is included in version 1.3.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket: