Unable to run author's TAO converter with resnet18_facedetect_pruned.etlt

Example "detectnet.py --model=facedetect "images/humans_*.jpg" images/test/facedetect_humans_%i.jpg" doesnt work. In this case, I tried to run tao-converter that downloaded together with *.etlt model, colors.txt and int8_calibration,txt with labels.txt.
Than, i ran ./tao-converter ant got a error message "error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory."
Could anyone help with this issue? It is very annoying, because I tried to run an example model, not even my own TAO-models.

Hi! First of all, I would like to express my admiration for your jetson-inference support here and via nvidia forum. It is one the deepest support by project's author i ever seen!
Yesterday, right after I opened the thread, I saw that this was an issue with jetpack 6, However, thank you for your fast answer!
Can i make etlt-TRT conversion by myself without reflashing my Jetson Orin Nano to previous version?

I solved the problem. I donwloaded actual tao-converter from Nvidia resourses.
And the next strange steps:

Call your model with .sh tao-donwloader with your model name. My model is facedetect 2.0.1 pruned
You will receive the error message about libcrypto after model download.
Inside .sh tao model downloader  comment string with "download_tao_converter" function
Put actual tao-converter in folder. Run chmod +x for tao-converter for give permission
Go back to previous folder and run tao-downloader .sh the next time. Why so strange approach?
I got some issues with keys for ./tao-converter call. Thus, it is simpler to run automatic keys demarkation inside dusty-nv's .sh file, than wasting time for key's syntaxis understanding.

I succesfully ran model via jetson-inference

Thanks @hardrad!   Which tao-converter did you download that worked for you on JetPack 6?   I can add it to the jetson-inference scripts so that it works for everyone.

I dowloaded v5.1.0_jp6.0_aarch64 (SUDDENLY!) tao-converter from NGC Catalog (need regitstration)

hi @dusty-nv ,I encountered the same issue in the latest R36.3.0 version of the docker container, is it still not resolved?

I solved the problem,thanks

Hello @dusty-nv , I am encountering a similar issue but while trying to run object detection using the peoplenet model, I am on JetPack6. SSD-mobilenet-v2 works perfectly but other models don't.
Below are the logs :
akshat@person-detector:~/terrafirma/v2$ /bin/python /home/akshat/terrafirma/v2/operator_station/vehicle_control/detect.py
jetson.inference -- detectNet loading custom model '(null)'
[TRT]    running model command:  tao-model-downloader.sh peoplenet_deployable_quantized_v2.6.1
ARCH:  aarch64
reading L4T version from /etc/nv_tegra_release
L4T BSP Version:  L4T R36.3.0
[TRT]    downloading peoplenet_deployable_quantized_v2.6.1
resnet34_peoplenet_int8.etlt         100%[======================================================================>]  85.02M  11.6MB/s    in 8.7s
resnet34_peoplenet_int8.txt          100%[======================================================================>]   9.20K  --.-KB/s    in 0.002s
labels.txt                           100%[======================================================================>]      17  --.-KB/s    in 0s
colors.txt                           100%[======================================================================>]      27  --.-KB/s    in 0s
[TRT]    downloading tao-converter from https://api.ngc.nvidia.com/v2/resources/nvidia/tao/tao-converter/versions/v3.22.05_trt8.4_aarch64/files/tao-converter
tao-converter                        100%[======================================================================>] 128.62K  --.-KB/s    in 0.06s
detectNet -- converting TAO model to TensorRT engine:
-- input          resnet34_peoplenet_int8.etlt
-- output         resnet34_peoplenet_int8.etlt.engine
-- calibration    resnet34_peoplenet_int8.txt
-- encryption_key tlt_encode
-- input_dims     3,544,960
-- output_layers  output_bbox/BiasAdd,output_cov/Sigmoid
-- max_batch_size 1
-- workspace_size<PHONE_NUMBER>
-- precision      int8
./tao-converter: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory
[TRT]    failed to convert model 'resnet34_peoplenet_int8.etlt' to TensorRT...
[TRT]    failed to download model after 2 retries
[TRT]    if this error keeps occuring, see here for a mirror to download the models from:
[TRT]       https://github.com/dusty-nv/jetson-inference/releases
[TRT]    failed to download built-in detection model 'peoplenet'
Traceback (most recent call last):
File "/home/akshat/terrafirma/v2/operator_station/vehicle_control/detect.py", line 8, in
net = jetson_inference.detectNet("peoplenet", threshold=0.5)
Exception: jetson.inference -- detectNet failed to load network
When i re-run the same script this is the log :
akshat@person-detector:~/terrafirma/v2$ /bin/python /home/akshat/terrafirma/v2/operator_station/vehicle_control/detect.py
jetson.inference -- detectNet loading custom model '(null)'
detectNet -- loading detection network model from:
-- prototxt
-- model        networks/peoplenet_deployable_quantized_v2.6.1/resnet34_peoplenet_int8.etlt.engine
-- input_blob   'input_1'
-- output_cvg   'output_cov/Sigmoid'
-- output_bbox  'output_bbox/BiasAdd'
-- mean_pixel   0.000000
-- class_labels networks/peoplenet_deployable_quantized_v2.6.1/labels.txt
-- class_colors networks/peoplenet_deployable_quantized_v2.6.1/colors.txt
-- threshold    0.500000
-- batch_size   1
[TRT]    TensorRT version 8.6.2
[TRT]    loading NVIDIA plugins...
[TRT]    Registered plugin creator - ::BatchedNMSDynamic_TRT version 1
[TRT]    Registered plugin creator - ::BatchedNMS_TRT version 1
[TRT]    Registered plugin creator - ::BatchTilePlugin_TRT version 1
[TRT]    Registered plugin creator - ::Clip_TRT version 1
[TRT]    Registered plugin creator - ::CoordConvAC version 1
[TRT]    Registered plugin creator - ::CropAndResizeDynamic version 1
[TRT]    Registered plugin creator - ::CropAndResize version 1
[TRT]    Registered plugin creator - ::DecodeBbox3DPlugin version 1
[TRT]    Registered plugin creator - ::DetectionLayer_TRT version 1
[TRT]    Registered plugin creator - ::EfficientNMS_Explicit_TF_TRT version 1
[TRT]    Registered plugin creator - ::EfficientNMS_Implicit_TF_TRT version 1
[TRT]    Registered plugin creator - ::EfficientNMS_ONNX_TRT version 1
[TRT]    Registered plugin creator - ::EfficientNMS_TRT version 1
[TRT]    Could not register plugin creator -  ::FlattenConcat_TRT version 1
[TRT]    Registered plugin creator - ::GenerateDetection_TRT version 1
[TRT]    Registered plugin creator - ::GridAnchor_TRT version 1
[TRT]    Registered plugin creator - ::GridAnchorRect_TRT version 1
[TRT]    Registered plugin creator - ::InstanceNormalization_TRT version 1
[TRT]    Registered plugin creator - ::InstanceNormalization_TRT version 2
[TRT]    Registered plugin creator - ::LReLU_TRT version 1
[TRT]    Registered plugin creator - ::ModulatedDeformConv2d version 1
[TRT]    Registered plugin creator - ::MultilevelCropAndResize_TRT version 1
[TRT]    Registered plugin creator - ::MultilevelProposeROI_TRT version 1
[TRT]    Registered plugin creator - ::MultiscaleDeformableAttnPlugin_TRT version 1
[TRT]    Registered plugin creator - ::NMSDynamic_TRT version 1
[TRT]    Registered plugin creator - ::NMS_TRT version 1
[TRT]    Registered plugin creator - ::Normalize_TRT version 1
[TRT]    Registered plugin creator - ::PillarScatterPlugin version 1
[TRT]    Registered plugin creator - ::PriorBox_TRT version 1
[TRT]    Registered plugin creator - ::ProposalDynamic version 1
[TRT]    Registered plugin creator - ::ProposalLayer_TRT version 1
[TRT]    Registered plugin creator - ::Proposal version 1
[TRT]    Registered plugin creator - ::PyramidROIAlign_TRT version 1
[TRT]    Registered plugin creator - ::Region_TRT version 1
[TRT]    Registered plugin creator - ::Reorg_TRT version 1
[TRT]    Registered plugin creator - ::ResizeNearest_TRT version 1
[TRT]    Registered plugin creator - ::ROIAlign_TRT version 1
[TRT]    Registered plugin creator - ::RPROI_TRT version 1
[TRT]    Registered plugin creator - ::ScatterND version 1
[TRT]    Registered plugin creator - ::SpecialSlice_TRT version 1
[TRT]    Registered plugin creator - ::Split version 1
[TRT]    Registered plugin creator - ::VoxelGeneratorPlugin version 1
[TRT]    completed loading NVIDIA plugins.
[TRT]    detected model format - engine  (extension '.engine')
[TRT]    loading network plan from engine cache...
[TRT]    failed to load engine cache from
[TRT]    failed to load
[TRT]    detectNet -- failed to initialize.
Traceback (most recent call last):
File "/home/akshat/terrafirma/v2/operator_station/vehicle_control/detect.py", line 8, in
net = jetson_inference.detectNet("peoplenet", threshold=0.5)
Exception: jetson.inference -- detectNet failed to load network
** Part of The Python script I am using"
import jetson_inference
import jetson_utils
from control_cmds import send_command_by_key
Initialize the detectNet model
net = jetson_inference.detectNet("peoplenet", threshold=0.5)

v5.1.0_jp6.0_aarch64
Put actual link for download

https://catalog.ngc.nvidia.com/orgs/nvidia/teams/tao/resources/tao-converter/files?version=v5.1.0_jp6.0_aarch64

I would like to add more info based on @hardrad response.

Remove your downloaded before model from jetson-inference/build/aarch64/bin/networks
Go to your jetson-inference installation folder and then go to tools folder
Open tao-model-downloader.sh with Vim and remove/comment in function tao_to_trt() the download_tao_converter method invocation.
Go to https://catalog.ngc.nvidia.com/orgs/nvidia/teams/tao/resources/tao-converter/files?version=v5.1.0_jp6.0_aarch64 and click exactly on the file, NOT Download button.

Once you downloaded tao-converter, go to the jetson-inference/tools folder and run ./tao-model-downloader.sh <your_model_name>. The model name can be found here

#
# command-line parsing
#
MODEL="$1"

echo "$LOG downloading $MODEL"

if [[ "$MODEL" == "peoplenet_deployable_quantized_v2.6.1" ]]; then
        download_peoplenet_v261
elif [[ "$MODEL" == "peoplenet_pruned_quantized_v2.3.2" ]]; then
        download_peoplenet_v232
elif [[ "$MODEL" == "dashcamnet_pruned_v1.0.3" ]]; then
        download_dashcamnet_v103
elif [[ "$MODEL" == "trafficcamnet_pruned_v1.0.3" ]]; then
        download_trafficcamnet_v103
elif [[ "$MODEL" == "facedetect_pruned_quantized_v2.0.1" ]]; then
        download_facedetect_v201
else
        echo "$LOG error -- invalid or unknown model selected ($MODEL)"
        exit 1
fi

exit 0

After model is downloaded, script will try to convert model using tao-converter, which was not downloaded, due to your commenting/deleting this method invocation and this model downloading process will be finished with error.
 This time it will not download tao-converter, because you commented this command and once models are downloaded, the correct tao-converter will be invoked, because you already moved it into jetson-inference/build/aarch64/bin/networks/<your model_name>/
Downloading process finished with success.


Ability to 'reset' a project

Issue
At the moment there is no way for a user to reset the starter code for a project. This means if a user accidentally deletes code from the starter code that they need, they are unable to continue. These changes are stored in local storage causing further frustration as the user is not able to clear the 'progress' even when closing the tab/browser.
Related issues

https://github.com/RaspberryPiFoundation/editor-ui/issues/796

Perhaps force a 'Do you really want to do this' confirmation too? I can envisage kids nuking other kids projects and claiming it was an accident.


refactor: asset buffer

Description

Change a bit how models are downloaded.
Motivation and Context

One less call to the orchestrator and better typing.
How Has This Been Tested?

e2e tests

/e2e

End to end tests: :hourglass_flowing_sand: STARTING


npm ci --production fails on simple-git-hooks

node: 'v14.15.4', npm: '7.19.0'

Hi
When I run npm ci the "prepare" script (which is running npx simple-git-hooks) runs without issues

But when I run npm ci --production I'm prompted with this

Which fails when I type y

Running npx simple-git-hooks doesn't throw any errors

My package.json looks something like this
"dependencies": {...},
"scripts": {
  ...
  "prepare": "npx simple-git-hooks"
},
"simple-git-hooks": {
  "pre-commit": "npx lint-staged && npm run test",
  "pre-push": "npx tsc --project ./tsconfig.json --noEmit"
},

I'm curious if this is an issue with my setup, or with simple-git-hooks
Thanks.

Hi, thank you for the issue
About the prompt...
Usually you would put simple-git-hooks under devDependencies and use them only in dev mode on a local machine. When you run npm ci --production npm doesnt install dev dependencies, thus why the prompt
About the second question...
I think maybe the description for the npx simple git hooks is not clear in the docs :( The command just sets user-defined hooks under the .git/hooks directory. It does not run hooks or do anything else.
It seems for me like you want simple-git-hooks to run hooks on ci, but this package wasn't designed for this
I would've simply hardcoded needed hooks commands inside of npm ci command and used simple-git-hooks only on local dev enviroment


[PartEditor] More commands for PartGraphSelector

This will add more commands as

close PartGraphSelector by command
refresh selection state by command

ONE-vscode-DCO-1.0-Signed-off-by: SaeHie Park<EMAIL_ADDRESS>

for #641, from draft #647


Add fishing spot display mode

Add ability to display fishing spots as tiles, tiles with icons or tiles with names.
Depends on #5446

Wiki should be updated if this is merged

Updated to do what I mentioned in previous comment


Objstore: Update objstore to latest version

[x] I added CHANGELOG entry for this change.
[ ] Change is not relevant to the end user.

Changes

Updates the objstore dependency to the latest version. Additionally the docs have been updated to reflect the requirement of go 1.18 or higher when developing Thanos. This is required because the new Azure SDK dependency introduced in objstore requires go 1.18 due to its use of generics.
Verification

Built a fork from 0.28.0 with the updated objstore version and deployed it, has been running without any issues.

Looks like we have some important error to fix: https://app.circleci.com/pipelines/github/thanos-io/thanos/10720/workflows/81ea74ef-96bc-4d53-933b-4ad9c86d9080/jobs/20317

Looks like issues related to not skipping new objstore implementations. Will fix this.

@bwplotka @fpetkovski a bit confused about the failing e2e tests. The only changes done to objstore is the introduction of OCI storage and my Azure refactor. None of these things are testsed in the e2e test, so dont really understand how it is failing now.

Looks like the e2e test failure was due to flakiness in the test. I have rebased so should be ready to merge.


[in_app_purchase]: Proposal to consume all items.

Hello, as in the flutter_in_app_purchase package, I would like to consume everything I have to consume as soon as the app starts. The mentioned package has the consumeAllItems() function and this would help me specifically in my project, so if anyone can help me, thanks.
This is how it works in the package:
try {
      String msg = await FlutterInappPurchase.instance.consumeAllItems;
      print('consumeAllItems: $msg');
    } catch (err) {
      print('consumeAllItems error: $err');
    }

I used it before, but due to other problems in the package I migrated to in_app_purchase and this functionality helped me a lot.

If I am not wrong, the said method is not there yet in the plugin:

Labeling it as a feature request to add the said method.
/cc @mvanbeusekom

If I am not wrong, the said method is not there yet in the plugin:

Labeling it as a feature request to add the said method.
/cc @mvanbeusekom

Thank you my friend.


Fiery express mac driver

Closing this on account of no response. @jeffrbauer If you’re able to tell us more about the software, as requested, we can consider then adding this. The removed fiery ones are currently in the boneyard, in case they need to be recovered.


<EMAIL_ADDRESS>is not in the npm registry

🐞 Bug report
Command (mark with an x)

[x] npm install @angular/cli
[x] new
[ ] build
[ ] serve
[ ] test
[ ] e2e
[ ] generate
[ ] add
[ ] update
[ ] lint
[ ] xi18n
[ ] run
[ ] config
[ ] help
[ ] version
[ ] doc

Is this a regression?
No
Description
Every time I try to run ng new app or npm install @angular/cli I got the same error from NPM:
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@angular-devkit%2farchitect - Not found

🔬 Minimal Reproduction
Just run ng new app or npm install @angular/cli
🔥 Exception or Error

$ sudo npm i @angular/cli -g
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@angular-devkit%2farchitect - Not found
npm ERR! 404
npm ERR! 404  '<EMAIL_ADDRESS>is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of '@angular/cli'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

🌍 Your Environment

Angular CLI: 9.1.12
Node: 13.7.0
OS: darwin x64

Angular:
...
Ivy Workspace:

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.901.12
@angular-devkit/core         9.1.12
@angular-devkit/schematics   9.1.12
@schematics/angular          9.1.12
@schematics/update           0.901.12
rxjs                         6.5.4

Tried also in dedicated server, located in different country, with the same result.

I'm running into the same issue: #18459

@cfi2017 Should I close mine? Made mine with 1 second difference. 😄

I think it's easier if we track the issue on one page. I'll close mine :)

Same issue here! :(

Yeah, just broke my build as well. Will revert to older version for now

Same here, it broke my build a few minutes ago.

Yeah, just broke my build as well. Will revert to older version for now
Do the older versions still work?

Yeah, just broke my build as well. Will revert to older version for now
Do the older versions still work?
Angular CLI 9.1.12 fails to install for me - missing a different package. Same thing for v8.3.29.

Yeah, just broke my build as well. Will revert to older version for now

Do the older versions still work?

I tried older versions, they don't work. Seems like the entire registry entries are removed.

Yeah, just broke my build as well. Will revert to older version for now

Do the older versions still work?

naaa, something weird is going on hmmm...

ng cli showing 404 for packages
now showing
Not Found - GET https://registry.npmjs.org/@jsdevtools%2Fcoverage-istanbul-loader - Not found

This might be an npm issue rather than an angular issue. Trying to install dependencies to build from source but @protobufjs/aspromise is now also missing.

This might be an npm issue rather than an angular issue. Trying to install dependencies to build from source but @protobufjs/aspromise is now also missing.

seems like it is, rxjs isn't being found either. we probably just need to wait till they resolve

https://github.com/npm/cli/issues/1624

This might be an npm issue rather than an angular issue. Trying to install dependencies to build from source but @protobufjs/aspromise is now also missing.
https://status.npmjs.org/

Most likely: https://github.com/npm/cli/issues/1624

Is there any other public (safe) registry that you know of that hosts this package + dependencies ?

I am also facing the same issue getting error, while installing @angular/cli

I am also facing the same issue getting error, while installing @angular/cli

same issue here.

resolved... all seems fine now

resolved... all seems fine now

new issue with @yarnpkg/lockfile

resolved... all seems fine now

new issue with @yarnpkg/lockfile

Same issue here

resolved... all seems fine now

new issue with @yarnpkg/lockfile

Same issue here

Facing the same issue :(

As it is mentioned above this is not an Angular issue, but rather NPM.
See: https://status.npmjs.org/

seems like issue

resolved... all seems fine now

new issue with @yarnpkg/lockfile

Same issue here

Seems like issue is resolved but getting another issue now ,

seems like issue

resolved... all seems fine now

new issue with @yarnpkg/lockfile

Same issue here

Seems like issue is resolved but getting another issue now ,

Issue is fixed, successfully installed angular

Was able to install CLI successfully just now.  Appears NPM may be getting close to a fix.

 Try to install now, issue might be resolved.

Issue appears to have been solved. https://status.npmjs.org


Support MVC view localization

Hello,
After configuring:
services.AddViewLocalization(LanguageViewLocationExpanderFormat.Suffix);
services.AddRazorTemplating();
...
app.UseRequestLocalization("fr");

MVC will locate and use the view Views/Home/Index.fr.cshtml since the locating mechanism is searching for the correct view file using the Controller and View names, but _razorTemplateEngine.RenderAsync("/Views/Home/Index.cshtml") obviously doesn't support localization.
So one way is to explicitly render /Views/EmailTemplates/ConfirmEmail.fr.cshtml which is totally lame, but a better way will be to do all that automatically. So a French user registering the web app will receive the French confirmation email.
It will be awesome if localization support can be added, my guess by internally detecting AddViewLocalization and LanguageViewLocationExpanderFormat.Suffix, and when rendering maybe use LanguageViewLocationExpander to yield all possible localized views and FindView until found. I guess /Views/Home/Index.cshtml can be internally transformed to /Views/Home/{0}.cshtml for this case (ExpandViewLocations).
Any thoughts?

Hi @superware, thanks for raising this issue. Yes, this may make sense for the web apps. I haven't worked on localization before. So I'll need to play around with this a bit to see how this can be incorporated into this library.

Hi @soundaranbu, that will be great. IMHO it should be quite easy, the bottom line is looping through possible view-expanded locations until the first one is found - and use that one for rendering.
So if view-localization is enabled (either through the framework or through configuring Razor.Templating.Core), then the view name should be extracted ([^/]+)\.cshtml, templated /Views/Home/{0}.cshtml, expanded /Views/EmailTemplates/{0}.fr.cshtml, formatted /Views/EmailTemplates/ConfirmEmail.fr.cshtml and checked for existance.
Shouldn't be a breaking change since if no localized/expanded view is found then the original view will be used.
Thank you for your great work.

Hey @superware, I'm pleased to share that the prerelease package has been published with the fix if you want to give it a try
https://github.com/soundaranbu/Razor.Templating.Core/releases/tag/v2.1.0-rc.1
You can also find the usage here https://github.com/soundaranbu/Razor.Templating.Core/blob/fc7d2cf8b83f63b1b705e5cffabf041759c4c7cc/examples/Mvc/ExampleWebApp.Net6_0/Controllers/HomeController.cs#L19 where you can specify the view name without the .cshtml and it will use the localized views based on the request. This works the same way as the MVC. Please note that this is not supported for non MVC based applications.

This is now released in v2.1.0. Thanks for raising this issue :)


jenkins插件代码合入

[jenkins插件代码合入]

/check-cla

If you've already signed a CLA, it's possible you're using a differe

/check-cla


Add PHP Transformations example file, fix minor spelling errors

I've compiled the example code snippets from inside the source code of phpfmt's transformations (in this directory) into one markdown document for reference.
Also added are references to this new document in README.md and the default settings file CodeFormatter.sublime-settings

@jakebathman Thank you!


Threading data out of one while loop into another interferes with gradients

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Mac OS 10.13.6
TensorFlow installed from (source or binary): source
TensorFlow version (use command below): b'v1.9.0-rc2-3217-g8e5c118ce8' 1.10.0
Python version: 3.6.2
Bazel version (if compiling from source): 0.15.2-homebrew
GCC/Compiler version (if compiling from source): Apple LLVM version 9.1.0 (clang-9<IP_ADDRESS>)
CUDA/cuDNN version: n/a
GPU model and memory: n/a
Exact command to reproduce: Run included script
Mobile device: n/a

Describe the problem
I have some code which

Generates some data using an inference-only tf.while_loop.
Uses a second while loop to run several minibatches of Adam, using the data from the first loop.

Both while loops have back_prop=False.  The second loop computes gradients, but these are used only inside the second loop (which includes running the train_op).  I use tf.stop_gradients to prevent gradients from flowing backwards from the second loop to the first...but to no avail:
Traceback (most recent call last):
  File "./while-bug", line 26, in <module>
    back_prop=False)
  File "/Users/irving/anaconda/envs/openai/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 3281, in while_loop
    return_same_structure)
  File "/Users/irving/anaconda/envs/openai/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 3001, in BuildLoop
    pred, body, original_loop_vars, loop_vars, shape_invariants)
  File "/Users/irving/anaconda/envs/openai/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 2936, in _BuildLoop
    body_result = body(*packed_vars_for_body)
  File "/Users/irving/anaconda/envs/openai/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 3245, in <lambda>
    body = lambda i, lv: (i + 1, orig_body(lv))
  File "./while-bug", line 16, in body
    train = tf.train.AdamOptimizer(learning_rate=1e-2).minimize(loss)
  File "/Users/irving/anaconda/envs/openai/lib/python3.6/site-packages/tensorflow/python/training/optimizer.py", line 401, in minimize
    grad_loss=grad_loss)
  File "/Users/irving/anaconda/envs/openai/lib/python3.6/site-packages/tensorflow/python/training/optimizer.py", line 517, in compute_gradients
    colocate_gradients_with_ops=colocate_gradients_with_ops)
  File "/Users/irving/anaconda/envs/openai/lib/python3.6/site-packages/tensorflow/python/ops/gradients_impl.py", line 610, in gradients
    gate_gradients, aggregation_method, stop_gradients)
  File "/Users/irving/anaconda/envs/openai/lib/python3.6/site-packages/tensorflow/python/ops/gradients_impl.py", line 674, in _GradientsHelper
    to_ops, from_ops, colocate_gradients_with_ops, func_graphs, xs)
  File "/Users/irving/anaconda/envs/openai/lib/python3.6/site-packages/tensorflow/python/ops/gradients_impl.py", line 204, in _PendingCount
    between_op_list, between_ops, colocate_gradients_with_ops)
  File "/Users/irving/anaconda/envs/openai/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 1442, in MaybeCreateControlFlowState
    loop_state.AddWhileContext(op, between_op_list, between_ops)
  File "/Users/irving/anaconda/envs/openai/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 1247, in AddWhileContext
    grad_state = GradLoopState(forward_ctxt, outer_grad_state)
  File "/Users/irving/anaconda/envs/openai/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 824, in __init__
    cnt, forward_index = forward_ctxt.AddForwardLoopCounter(outer_grad_state)
  File "/Users/irving/anaconda/envs/openai/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 2580, in AddForwardLoopCounter
    name="f_count")
  File "/Users/irving/anaconda/envs/openai/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 249, in _Enter
    data, frame_name, is_constant, parallel_iterations, name=name)
  File "/Users/irving/anaconda/envs/openai/lib/python3.6/site-packages/tensorflow/python/ops/gen_control_flow_ops.py", line 179, in enter
    parallel_iterations=parallel_iterations, name=name)
  File "/Users/irving/anaconda/envs/openai/lib/python3.6/site-packages/tensorflow/python/framework/op_def_library.py", line 787, in _apply_op_helper
    op_def=op_def)
  File "/Users/irving/anaconda/envs/openai/lib/python3.6/site-packages/tensorflow/python/util/deprecation.py", line 488, in new_func
    return func(*args, **kwargs)
  File "/Users/irving/anaconda/envs/openai/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 3254, in create_op
    op_def=op_def)
  File "/Users/irving/anaconda/envs/openai/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 1787, in __init__
    self._control_flow_post_processing()
  File "/Users/irving/anaconda/envs/openai/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 1796, in _control_flow_post_processing
    control_flow_util.CheckInputFromValidContext(self, input_tensor.op)
  File "/Users/irving/anaconda/envs/openai/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_util.py", line 322, in CheckInputFromValidContext
    raise ValueError(error_msg + " See info log for more details.")
ValueError: Cannot use 'while_1/gradients/f_count_1' as input to 'while_1/gradients/f_count' because they are in different while loops. See info log for more details.

(Caveat: line numbers for the above stacktrace may be slightly wrong, since my TF has some debug print statements.)
I've traced the problem to ops/gradients_impl.py:_PendingCount or the surrounding code.  _PendingCount seems to trace right through tf.stop_gradients.  I'm not sure where the right fix is, though, so could use some control flow expert help.
Source code / logs
Here's a minimized test case:
import tensorflow as tf

# First while loop
rollouts = tf.while_loop(
    cond=lambda _: True,
    body=lambda _: tf.get_variable('b', []),
    loop_vars=[tf.zeros([])],
    maximum_iterations=1,
    back_prop=False)
rollouts = tf.stop_gradient(rollouts)

def body(i):
    loss = tf.stop_gradient(rollouts)
    train = tf.train.AdamOptimizer(learning_rate=1e-2).minimize(loss)
    with tf.control_dependencies([train]):
        return i + 1

# Second while loop.  Crashes since it thinks the gradients depend on
# something from the previous while loop.
tf.while_loop(
    cond=lambda _: True,
    body=body, maximum_iterations=1, parallel_iterations=1,
    loop_vars=(tf.zeros((), dtype=tf.int32),),
    back_prop=False)

Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks.
Mobile device

I also tried using the stop_gradients argument to tf.gradients, but the problem persists: it still thinks gradients are flowing out of the while loop.

@alextp recommended tf.GradientTape as a workaround, and that seems to work great (as long as variables are created with use_resource=True).  So this is still a bug, but it's no longer blocking me.

@girving Hi, Can this be closed or any fix is being implemented ?

@alextp?

This is still a bug and expected to be fixed only when we transition to while_v2 as described in https://github.com/tensorflow/community/pull/13 . I'll close this for now.

I am also experiencing this error on TF1.15 when trying to compute Laplacian, with 1st gradient of some operations overwritten using decorator @tf.custom_gradient. I computed the Laplacian using tf.while_loop by creating each row of Hessian and summing relevant parts. With this code implemented without overwriting the 1st gradient, my code runs fine. However, when I introduce my code in overwriting 1st gradient, which involves another tf.while_loop solely for tensor manipulation and multiplication, it spits out this error. I changed to using tf.GradientTape() but apparently the gradient computed is None. I am wondering how exactly did you solve this or any suggestions on how I should I approach this issue?

Please file a separate issue for your problem with instructions to
reproduce.
On Tue, Mar 10, 2020 at 3:40 PM Stanley Gan<EMAIL_ADDRESS>wrote:

I am also experiencing this error on TF1.15 when trying to compute
Laplacian, with 1st gradient of some operations overwritten using decorator
@tf.custom_gradient. I computed the Laplacian using tf.while_loop by
creating each row of Hessian and summing relevant parts. With this code
implemented without overwriting the 1st gradient, my code runs fine.
However, when I introduce my code in overwriting 1st gradient, which
involves another tf.while_loop solely for tensor manipulation and
multiplication, it spits out this error. I changed to using
tf.GradientTape() but apparently the gradient computed is None. I am
wondering how exactly did you solve this or any suggestions on how I should
I approach this issue?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/issues/22221?email_source=notifications&email_token=AAABHROW4OHDKAKAQBJBN3DRG26URA5CNFSM4FURUWJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEONOVIQ#issuecomment-597355170,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAABHRIDNITTXVAN7NDOTO3RG26URANCNFSM4FURUWJA
.

--

Alex

@alextp. Sorry I just deleted my comment as it is pretty vague and not a good way to explain my error. I am thinking if this should be a separate issue, but I ran the same example as described by @girving on TF1.15, the error still persists.

And what about nightly?
On Tue, Mar 10, 2020 at 5:25 PM Stanley Gan<EMAIL_ADDRESS>wrote:

@alextp https://github.com/alextp. Sorry I just deleted my comment as
it is pretty vague and not a good way to explain my error. I am thinking if
this should be a separate issue, but I ran the same example as described by
@girving https://github.com/girving on TF1.15, the error still persists.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/issues/22221?email_source=notifications&email_token=AAABHRP6COBEJV73LZHXMDTRG3LAFA5CNFSM4FURUWJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEONVVWA#issuecomment-597383896,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAABHRKX2PD3GTX4JGWYNCLRG3LAFANCNFSM4FURUWJA
.

--

Alex

There are no more nightly builds for version 1.15 on pypi.

I mean the 2.x branch; the 1.15 branch will get no further fixes.
On Tue, Mar 10, 2020 at 5:55 PM Stanley Gan<EMAIL_ADDRESS>wrote:

There are no more nightly builds for version 1.15 on pypi.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/issues/22221?email_source=notifications&email_token=AAABHRNOKRQ34D2PSYLOFOLRG3OPXA5CNFSM4FURUWJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEONXIOI#issuecomment-597390393,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAABHRMVVKAD5A7RXGL5TUTRG3OPXANCNFSM4FURUWJA
.

--

Alex

@alextp Thanks for your reply! For specific reason (package dependencies), the code which I wrote is in 1.15, hence even if running on TF2 works, I still have to figure out a way as my code is written in 1.15. Unless you are suggesting that some other fixes which I am not aware of? Though based on the community link which you posted: https://github.com/tensorflow/community/pull/13, I checked the commits to fix this were merged into 1.15 branch (unless I am missing something!).

So I need an example to reproduce this against nightly, which is 2.x, so I
can debug it.
On Wed, Mar 11, 2020 at 8:44 AM Stanley Gan<EMAIL_ADDRESS>wrote:

@alextp https://github.com/alextp Thanks for your reply! For specific
reason (package dependencies), the code which I wrote is in 1.15, hence
even if running on TF2 works, I still have to figure out a way as my code
is written in 1.15. Unless you are suggesting that some other fixes which I
am not aware of? Though based on the community link which you posted:
tensorflow/community#13 https://github.com/tensorflow/community/pull/13,
I checked the commits to fix this were merged into 1.15 branch (unless I am
missing something!).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/issues/22221#issuecomment-597708551,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAABHRIA5M4VM7WVFLI7F6LRG6WULANCNFSM4FURUWJA
.

--

Alex

Using girving's example, ran using tf-nightly-2.2.0-dev20200311
import tensorflow as tf

# First while loop
rollouts = tf.while_loop(
    cond=lambda _: True,
    body=lambda _: tf.compat.v1.get_variable('b', []),
    loop_vars=[tf.zeros([])],
    maximum_iterations=1,
    back_prop=False)
rollouts = tf.stop_gradient(rollouts)

def body(i):
    loss = tf.stop_gradient(rollouts)
    train = tf.train.AdamOptimizer(learning_rate=1e-2).minimize(loss)
    with tf.control_dependencies([train]):
        return i + 1

# Second while loop.  Crashes since it thinks the gradients depend on
# something from the previous while loop.
tf.while_loop(
    cond=lambda _: True,
    body=body, maximum_iterations=1, parallel_iterations=1,
    loop_vars=(tf.zeros((), dtype=tf.int32),),
    back_prop=False)

I got a different error as shown below
2020-03-11 09:05:04.518937: I tensorflow/core/platform/cpu_feature_guard.cc:143] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2020-03-11 09:05:04.531475: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x7ff78acc51e0 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2020-03-11 09:05:04.531492: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): Host, Default Version
WARNING:tensorflow:From dummy_example.py:9: calling while_loop_v2 (from tensorflow.python.ops.control_flow_ops) with back_prop=False is deprecated and will be removed in a future version.
Instructions for updating:
back_prop=False is deprecated. Consider using tf.stop_gradient instead.
Instead of:
results = tf.while_loop(c, b, vars, back_prop=False)
Use:
results = tf.nest.map_structure(tf.stop_gradient, tf.while_loop(c, b, vars))
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/tensorflow/python/util/nest.py", line 378, in assert_same_structure
    expand_composites)
ValueError: The two structures don't have the same nested structure.

First structure: type=list str=[TensorSpec(shape=(), dtype=tf.int32, name=None), [TensorSpec(shape=(), dtype=tf.float32, name=None)]]

Second structure: type=list str=[1, <tf.Variable 'b:0' shape=() dtype=float32, numpy=-0.98595977>]

More specifically: Substructure "type=list str=[TensorSpec(shape=(), dtype=tf.float32, name=None)]" is a sequence, while substructure "type=ResourceVariable str=<tf.Variable 'b:0' shape=() dtype=float32, numpy=-0.98595977>" is not

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "dummy_example.py", line 9, in <module>
    back_prop=False)
  File "/usr/local/lib/python3.6/site-packages/tensorflow/python/util/deprecation.py", line 574, in new_func
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 2491, in while_loop_v2
    return_same_structure=True)
  File "/usr/local/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 2731, in while_loop
    nest.assert_same_structure(loop_var_structure, list(loop_vars))
  File "/usr/local/lib/python3.6/site-packages/tensorflow/python/util/nest.py", line 385, in assert_same_structure
    % (str(e), str1, str2))
ValueError: The two structures don't have the same nested structure.

First structure: type=list str=[TensorSpec(shape=(), dtype=tf.int32, name=None), [TensorSpec(shape=(), dtype=tf.float32, name=None)]]

Second structure: type=list str=[1, <tf.Variable 'b:0' shape=() dtype=float32, numpy=-0.98595977>]

More specifically: Substructure "type=list str=[TensorSpec(shape=(), dtype=tf.float32, name=None)]" is a sequence, while substructure "type=ResourceVariable str=<tf.Variable 'b:0' shape=() dtype=float32, numpy=-0.98595977>" is not
Entire first structure:
[., [.]]
Entire second structure:
[., .]

This is an unrelated bug in the example code where it's using tf.while_loop
incorrectly and returning variables where tf expects tensors, I think.
On Wed, Mar 11, 2020 at 10:21 AM Stanley Gan<EMAIL_ADDRESS>wrote:

Using girving's example, ran using tf-nightly-2.2.0-dev20200311
import tensorflow as tf
First while loop
rollouts = tf.while_loop(
cond=lambda _: True,
body=lambda _: tf.compat.v1.get_variable('b', []),
loop_vars=[tf.zeros([])],
maximum_iterations=1,
back_prop=False)
rollouts = tf.stop_gradient(rollouts)
def body(i):
loss = tf.stop_gradient(rollouts)
train = tf.train.AdamOptimizer(learning_rate=1e-2).minimize(loss)
with tf.control_dependencies([train]):
return i + 1
Second while loop.  Crashes since it thinks the gradients depend on
something from the previous while loop.
tf.while_loop(
cond=lambda _: True,
body=body, maximum_iterations=1, parallel_iterations=1,
loop_vars=(tf.zeros((), dtype=tf.int32),),
back_prop=False)
I got a different error as shown below
2020-03-11 09:05:04.518937: I tensorflow/core/platform/cpu_feature_guard.cc:143] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2020-03-11 09:05:04.531475: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x7ff78acc51e0 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2020-03-11 09:05:04.531492: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): Host, Default Version
WARNING:tensorflow:From dummy_example.py:9: calling while_loop_v2 (from tensorflow.python.ops.control_flow_ops) with back_prop=False is deprecated and will be removed in a future version.
Instructions for updating:
back_prop=False is deprecated. Consider using tf.stop_gradient instead.
Instead of:
results = tf.while_loop(c, b, vars, back_prop=False)
Use:
results = tf.nest.map_structure(tf.stop_gradient, tf.while_loop(c, b, vars))
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/tensorflow/python/util/nest.py", line 378, in assert_same_structure
expand_composites)
ValueError: The two structures don't have the same nested structure.
First structure: type=list str=[TensorSpec(shape=(), dtype=tf.int32, name=None), [TensorSpec(shape=(), dtype=tf.float32, name=None)]]
Second structure: type=list str=[1, <tf.Variable 'b:0' shape=() dtype=float32, numpy=-0.98595977>]
More specifically: Substructure "type=list str=[TensorSpec(shape=(), dtype=tf.float32, name=None)]" is a sequence, while substructure "type=ResourceVariable str=<tf.Variable 'b:0' shape=() dtype=float32, numpy=-0.98595977>" is not
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "dummy_example.py", line 9, in
back_prop=False)
File "/usr/local/lib/python3.6/site-packages/tensorflow/python/util/deprecation.py", line 574, in new_func
return func(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 2491, in while_loop_v2
return_same_structure=True)
File "/usr/local/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 2731, in while_loop
nest.assert_same_structure(loop_var_structure, list(loop_vars))
File "/usr/local/lib/python3.6/site-packages/tensorflow/python/util/nest.py", line 385, in assert_same_structure
% (str(e), str1, str2))
ValueError: The two structures don't have the same nested structure.
First structure: type=list str=[TensorSpec(shape=(), dtype=tf.int32, name=None), [TensorSpec(shape=(), dtype=tf.float32, name=None)]]
Second structure: type=list str=[1, <tf.Variable 'b:0' shape=() dtype=float32, numpy=-0.98595977>]
More specifically: Substructure "type=list str=[TensorSpec(shape=(), dtype=tf.float32, name=None)]" is a sequence, while substructure "type=ResourceVariable str=<tf.Variable 'b:0' shape=() dtype=float32, numpy=-0.98595977>" is not
Entire first structure:
[., [.]]
Entire second structure:
[., .]
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/issues/22221#issuecomment-597761869,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAABHRICXL4P664CMAMHHTLRG7CCRANCNFSM4FURUWJA
.

--

Alex

Let me try to fix it.

Should I run it with tf.compat.v1.disable_v2_behavior()? Because v2 is eagerly executed.


Chapter 6

Here, some codes haven't solution. Because maybe they are too much simple or too much complicated..

I'll edit it for issues!


sol::optional not properly detecting invalid values with sol::table

Hello !
I discovered an incorrect behavior with sol::optional. In fact I want to check if some variables exist in my table. The problem is that std::optional is valid everytime even if the variable doesn't exist in the table. I wrote a piece of code that reproduce the behavior.
Lua version : 5.3.5
Compiler version : gcc 9.2.0
#include <sol/sol.hpp>

void test(sol::table table)
{
        std::optional<int> v1 = table["v1"];
        if(v1)
                std::cout << v1.value() << std::endl;
        else
                std::cout << "NO VALUE\n";

        std::optional<int> v2 = table["v2"];
        if(v2)
                std::cout << v2.value() << std::endl;
        else
                std::cout << "NO VALUE\n";
}

int main()
{
        sol::state lua;
        lua.open_libraries(sol::lib::base);

        lua.set_function("test", test);
        const auto result = lua.safe_script(R"(
                a = {
                        v2 = 10
                }
                test(a)
        )");

        return 0;
}

Output :
$ ./a.out
0
10
I think that the expected output should be :
$ ./a.out
NO VALUE
10

This seems weird. I'll check it over.

Oh, look. It's one of those things that's not my fault.
This program only prints the wrong output with std::optional (note the std::, not sol::). It does this because std::optional has an all-consuming forwarding-ref constructor on many implementations that doesn't stop from absorbing the left hand proxy because it's a type that is "convertible" to int. sol::optional is much more strict and its constructor set prevents implicit conversions -- which we use to simulate any-conversion and any-return-type proxies like table["a"]["b"] lookups that can be anything -- to have that happen.
Use sol::optional or manually do .get<std::optional<int>>() or something, it's not something I can control. :(

Ohhh I see now ! I understand the problem.
In fact this is working now, thank you for the precision ! :)


Update endpoints in extension build assets/charts

With the migration of the repository from kubewarden/kubewarden-ui to rancher/kubewarden-ui, the endpoints for the charts and build assets need to be updated.

Fixed by #446


print image digest from wkg oci push

Closes #126 by enabling wkg oci push to print the digest after pushing. This enables us to make progress towards https://github.com/bytecodealliance/wkg-github-action/issues/6, which is needed for integrating with e.g. actions/attest. Thanks!
Example Output
❯ cargo run --bin wkg oci push ghcr.io/yoshuawuyts/wasi/filesystem:0.2.0 ./webassembly_wasi_filesystem.wasm
pushed: ghcr.io/yoshuawuyts/wasi/filesystem:0.2.0
digest: sha256:1ef9132612ec97eb5bca4fed5a5177e8cb0c5ebabdb4cfa7e04a295386c05e4e

Thanks @yoshuawuyts!


DOC: Added markdown instructions for configuring CLion for BRAINSTools

This includes several images.

The changes are now in one commit.


not able to install silently WinPcap_4_1_3.exe

Cookbook version
12
Chef-client version
12
Platform Details
Windows 2012 R2
Scenario:
I am trying to install winpcap silently on wndows 2012 r2 server. i used below code.
windows_package "winpcap" do
source location
options '/q'
installer_type :inno
action :install
end
But its asking for user intervention to complete the installation like click next.. How can i install silently the software?

Its likely that installer needs more than just /q. The best way to troubleshoot is to simply use MSIEXEC and fine what switches generate a silent install and then plug those into the options.

Hello ranraq.
The reason why winpcap is failing is because the installer in question does not support silent installs.  WinPcap used to support silent installations - but it was removed due to "misuse".
Do you need winpcap installed because you wish to use wireshark ?  If so, for network packet tracing in wireshark, installation of winpcap isn't actually necessary.  What is necessary is the installation of network packet filter driver which is inside the winpcap installer.
I've written a cookbook which installs wireshark and/or it installs the network packet tracing driver out of the Winpcap binary - without having to install winpcap.  I shall be open-sourcing this cookbook onto NVM labs github site once it has undergone abit more testing and internal review.
Hopefully, by sometime next week.


Events never show to the browser when using a ReadableStream with the text/event-stream content type

What version of Remix are you using?
1.5.0
Steps to Reproduce
Create an app using @remix-run/serve that returns a ReadableStream body in a loader, with the content-type text/event-stream. Send events.
On the client side connect to this endpoint using an EventSource.
See this reproduction repository for a full example.
The issue appears to be compression in the Express server. If you cURL the endpoint you'll see events streaming as expected:
curl -N http://localhost:3000/api/events
data: asdfghjkl

data: asdfghjkl

This pointed me to the underlying problem. cURL doesn't do compression by default. If you enable it, with curl --compressed you'll also have a connection that hangs. I'm not sure why but the compression middleware in Express borks streaming responses somehow.
If you edit the "@remix-run/serve" server to disable compression for "text/event-stream" content types, things work as expected:
app.use(compression({filter: (req) => req.headers['content-type']?.startsWith('text/event-stream')}))

(n.b. there may be a preferable way to do this, I'm not sure.)

While I'm here I should just add that this new streaming functionality is delightful.
Expected Behavior
Events would start to appear via the EventSource connection.
Actual Behavior
No events appear.

The express compression library documentation explicitly calls out the need to flush entries in an SSE stream.  I'm not sure how to square that against the ReadableStream controller's interface, but my first thought is that a middleware in @remix/serve may be able to call flush on application code's behalf.

The express adapter now calls flush appropriately: https://github.com/remix-run/remix/blob/main/packages/remix-node/stream.ts#L23
If this is still an issue, please re-open the issue or file a new one.

Yes but what if we're not using the Express adapter? Just using the remix default server and this issue still exists.


Add a method for restarting the editor to EditorInterface

I ran into a situation when I wanted to have an editor plugin restart the editor, but it seems there is currently no way to do this. The editor restarting functionality already exists in Godot, it's used for the "Save & Restart" buttons on Project Settings and Editor Settings menus, this PR just exposes this to editor plugins via EditorInterface.

Thanks!


getRelationshipTitleColumnName to getRelationshipTitleAttribute for Filament v3.

To make it compatible with relationships in Filament, the function getRelationshipTitleColumnName has been changed to getRelationshipTitleAttribute
This was producing the error.
Method Webbingbrasil\FilamentAdvancedFilter\Filters\NumberFilter::getRelationshipTitleColumnName does not exist.

Thanks


Not able to perform action before user reload page or exit my application

What problem does this feature solve?
So, I'm using the version 2.6.11 and I'm facing some difficulties to perform an action before the user exit my application or reloads the page.
I'm doing a integration of a CRM with telephony. When the user access my application he needs to login (not in my application, but in a hub that I'm accessing with SignalR), so I can perform some action like make a call, receive a call, and handle the events that I receive from the hub. The problem is: if the user reloads the page or exit the page, I need to log him out of the hub connection.
When using angular the solution was very simple, i just needed to call:
$scope.$on('$destroy', function () {
       // Log user out here
});

... but I can't do this with vue. I've been trying to use the beforeDestroy, keep-alive, destroyed, and other methods, but none of them are helping me to achieve my goal. I tried pure javascript like
window.onbeforeunload = () => {
       // Log user out here
}

... but for some reason not even this had helped me to solve the issue.
I really don't know if it is my mistake, or if this is not implemented on vue yet, but I haven't find similar issues on internet, so I decided to open one here. I hope you can help me, because I'm kinda new to vuejs and I've been liking a lot the flexibility of this framework.
I believe that a functionality like that can help in many environments, like showing a message before the user gets out of the website, perform some inherit logic of the application, and even more. If you guys know any other way to do this, I'll be very thankful to know as well.
What does the proposed API look like?
So, this is what AngularJS documentation talks about the event that I've mentioned:

$destroy()
Removes the current scope (and all of its children) from the parent scope. Removal implies that calls to $digest() will no longer propagate to the current scope and its children. Removal also implies that the current scope is eligible for garbage collection.
The $destroy() is usually used by directives such as ngRepeat for managing the unrolling of the loop.
Just before a scope is destroyed a $destroy event is broadcasted on this scope. Application code can register a $destroy event handler that will give it chance to perform any necessary cleanup.

I don't think I have enough knowledge to suggest a simple solution for this issue, or to write some code that can be used in way to implement this kind of feature, but my idea is to have something similar to this in the vuejs framework.

Hi, thanks for your interest but Github issues are for bug reports and feature requests only. You can ask questions on the forum, the Discord server or StackOverflow.


Status 500

Getting an HttpErrorResponse status 500 on sending a POST request to the createOrder function

I get the same
{ statusCode: undefined, error: undefined }

You will have to upgrade to the firebase blaze plan, As we are calling an external API, which is not allowed in the spark plan.


How to Challenge Millions of Faces

I am planning to use compreface to build a face recognition system, mainly for face recognition within videos.  I have a few areas of confusion and would appreciate your assistance:
1、I noticed a mention of 200,000 data per application. Is the 200,000 referring to 200,000 subjects or 200,000 face images?
2、In the face detection application, are there any relevant configurations to set a minimum face image size requirement, such as 40*40 or higher? I only see configurations for maximum size (max_detect_size).
3、In other discussions, it is assumed that the face library is in the order of several million. Would a single server with 64GB of memory and a 4080 or 4090 GPU be sufficient? Are there corresponding test data, such as how much memory, GPU, etc., is needed for 1 million face images?
4、I noticed you have a version with a vector database. Is it possible to replace the existing PostgreSQL version with Redis to improve performance?
5、Is there an update or plan to update the face detection model, especially for Asian face recognition? I have tested some Asian face images, and there seem to be no issues with resolution or lighting. The recognition rate is very high in images containing up to 10 faces. However, beyond 20 faces, the accuracy noticeably decreases. In the photo below, only 18 faces were recognized out of 32，use SubCenter-ArcFace-r100-gpu。

6、For the configurations compreface_api_java_options=-Xmx8g and compreface_admin_java_options=-Xmx8g, if the memory is increased, for example, to 16GB or 24GB, would it support a greater number of faces?
These are the current areas of confusion for me, and I hope to receive assistance. Thank you.

Hi, did you have any issues setting this library up with an rtx 4080 or 4090?

Hey, did you happen to come up with any answers to your questions?
I'm planning to scale out my application too, so wondering how your process went.


Update jcheminf analysis

Add a few extra checks (pyroma, scripts in root, license type)
remove dead code
add analysis results

Codecov Report
Attention: 189 lines in your changes are missing coverage. Please review.

Comparison is base (3d2897f) 20.15% compared to head (7800525) 20.20%.

Files
Patch %
Lines

src/autoreviewer/utils.py
19.44%
58 Missing :warning:

src/autoreviewer/jcheminf/summarize.py
0.00%
57 Missing :warning:

src/autoreviewer/jcheminf/jcheminf_pilot.py
0.00%
49 Missing :warning:

src/autoreviewer/api.py
41.46%
24 Missing :warning:

src/autoreviewer/cli.py
0.00%
1 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main       #6      +/-   ##
==========================================
+ Coverage   20.15%   20.20%   +0.04%
==========================================
  Files           8        9       +1
  Lines         377      485     +108
  Branches       71       78       +7
==========================================
+ Hits           76       98      +22
- Misses        299      385      +86
  Partials        2        2

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


Handle exceptions better when doing multi-view model lock, and don't block good endpoints

Handle exceptions better when doing multi-view model lock, so don't hang (quickly check if real connection there) and don't block or fail good endpoints in chat view.  Show exceptions for bad models in chat exceptions


Cloning private repos from GitHub gives error

In my satis repository I have one package linked to private repository on GitHub.
When I run build from the administration web form, I get the following output:
'/Users/my-user/Sites/satisfy/bin/satis' 'build' '/Users/my-user/Sites/satisfy/satis.json' 'public' '--skip-errors' '--no-ansi' '--verbose'
Scanning packages
Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private repos
Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+My+Computer+2020-06-30+0917
Token (hidden):
stty: stdin isn't a terminal
stty: stdin isn't a terminal
No token given, aborting.
You can also add it manually later by using "composer config --global --auth github-oauth.github.com "
Skipping Exception 'Failed to execute git clone --mirror 'https://github.com/my-org/my-package.git' '/Users/robrecord/Sites/satisfy/var/composer/cache/vcs/https---github.com-my-org-my-package.git/'
Writing packages.json
Pruning include directories
Writing web view
OK

I copied the URL given in line 4 of the output and generated a token.
I copied that token into my parameters.yml file next to github.secret
This didn't change anything.
When I run ./bin/satis build it asks me for my github username and password, which seems odd.
Can you help me understand if I'm doing everything right or if I've missed something?
Also it would be good to get some of this in the documentation. Thanks!

Solution

Create token on GitHub with full private repo access (all within "repo" scope).
Copy token
On server, do:

composer config --global --auth github-oauth.github.com <my-token>

Source:
https://github.com/composer/composer/issues/3542#issuecomment-67623002
It would be great to get this in the documentation.

Satisfy is a wrapper for composer/satis. The latter must have access, otherwise satisfy will fail.
I would love to review PR with documentation improvements.


RFE: Allow editing of versions and URLs for couchbase operator and pods in the userspace CR

Currently, the URLs and versions for the CB operator and pods are defined within the role, and therefore coded into the operator image. We should allow for overriding default values with the CR.

Completed with PR #43


bug: Wrong validation while registering

Description
At the moment, users can register with empty first and last names.
Steps

Go to registration page
Add 2 or more empty spaces
Click Next
See bug

What I want

Users shouldn't be able to register with empty spaces

Hey can I take this up?


create actions that target the new m1 runner

Description
I tried to use the runs-on: tag with the macos-13 but it still provisions x86_64 machines and not arm64, the exact discussion is going on here and here. Can somebody look into it and suggest if I'm doing something wrong?
Platforms affected

[ ] Azure DevOps
[X] GitHub Actions - Standard Runners
[ ] GitHub Actions - Larger Runners

Runner images affected

[ ] Ubuntu 20.04
[ ] Ubuntu 22.04
[ ] macOS 11
[X] macOS 12
[X] macOS 13
[ ] Windows Server 2019
[ ] Windows Server 2022

Image version and build link
NA
Is it regression?
NA
Expected behavior
arm64 images should be accessible.
Actual behavior
only x86 images available.
Repro steps
NA

Hello! Please follow https://github.com/actions/runner-images/issues/2187

@mikhailkoliada I am aware that m1 ARM machines is in public beta, my question is how do I access them? #2187 does not help at all.

@mikhailkoliada what's the reason for closing the issue?

@ashok-arora we do not provide m1 machines yet. You can track the progress in the ticket mentioned above + https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners

@mikhailkoliada its mentioned here: https://github.com/github/roadmap/issues/528 that m1 machines are in public beta.


Multiple inputs in the search-input slot

Hi.
It would be cool if will be possible to add multiple inputs for searching. Autofocus allow now only typing in the first input in the slot.

Do you wish a tabulation between couple inputs of select?

@AndreySyagrovskiy I mean about two inputs for search in the search-input slot. Now when I added two inputs I can't to focus on the second input - autofocus all time focus on the first input.


Sveltekit Latest Demo project on Vercel serverless does not work

Describe the bug
Who this effects:
Anyone who installs sveltekit and tries to use it with Vercel & Vercel Serverless functions
Vercel CLI / local development  of serverless functions does not work when using the standard getting started with sveltekit flow  (npm create svelte@latest my-app) and installing the SvelteKit demo application with typescript.
created minimum public project which reproduces the error here
[npm create svelte@latest my-app](https://github.com/vinh-perfectstorm/verceltest)
Reproduction
created minimum public project which reproduces the error here
[npm create svelte@latest my-app](https://github.com/vinh-perfectstorm/verceltest)
Steps to repro:

clone the public repro or go through the standard sveltekit getting started flow with demo project and typescript
Create a vercel project
Update vite build command to use vite dev instead of svelte-kit dev
run vercel dev
visit http://{host:port}/api/hello
API errors out with this error

`
error TS5095: Option 'preserveValueImports' can only be used when 'module' is set to 'es2015' or later.
Error! Function api/hello.ts failed with exit code 1
`
Logs
Vercel CLI 28.1.0
> NOTE: Requested port 3000 is already in use
> Running Dev Command “vite dev --port $PORT”
(node:11847) ExperimentalWarning: stream/web is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)

  VITE v3.0.9  ready in 565 ms

  ➜  Local:   http://<IP_ADDRESS>:3001/
  ➜  Network: use --host to expose
> Ready! Available at http://localhost:3001
error TS5095: Option 'preserveValueImports' can only be used when 'module' is set to 'es2015' or later.

Error! Function `api/hello.ts` failed with exit code 1

System Info
System:
    OS: macOS 11.6.6
    CPU: (8) arm64 Apple M1
    Memory: 158.28 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.11.1 - /opt/homebrew/bin/node
    Yarn: 1.22.15 - /opt/homebrew/bin/yarn
    npm: 8.0.0 - /opt/homebrew/bin/npm
  Browsers:
    Brave Browser: <IP_ADDRESS>
    Chrome: 104.0.5112.101
    Firefox: 89.0
    Safari: 14.1.2
  npmPackages:
    @sveltejs/adapter-auto: next => 1.0.0-next.65
    @sveltejs/kit: next => 1.0.0-next.428
    svelte: ^3.46.0 => 3.49.0
    vite: ^3.0.8 => 3.0.9

Additial System
This also happens on my windows 10 machine x86 64bit
Severity
blocking all usage of SvelteKit
Additional Information
No response

The reproduction repository is no longer available to access. I know that there was some error related to /api routes on Vercel which has been fixed, but I don't know if it's related to this. Could you please provide an updated reproduction?

Closing due to inactivity; this may have been fixed. If not, please open a new issue.


ci: move footprint workflows to zephyr runners

looks like our docker image is way too big for the GH runners, so move
to own runners until we have a better solution.
Signed-off-by: Anas Nashif<EMAIL_ADDRESS>

swithcing back to 4xlarge until xlarge builders are available again.


Modify Event class and related classes

LGTM, except failing the test cases
I'll merge it now for starting my work, and I'll fix the test case failures.


Problem building AMUSE from source

Hello,
I am trying to build AMUSE from source on a sterrewacht computer.
I am running into issues with certain packages not being built.
Here is the buildlog of the building process.
Thanks in advance,
Menno

Could you paste the output of module list for the shell in which you're building?

Looks like Steven is onto something:
make: Entering directory '/data2/vandereerden/amuse/src/amuse/community/capreole'
make -C build_mpi amuse_interface_mpi  VPATH=../src F90FLAGS1="-g -O2 -DNOMPI -fPIC  " FC="/usr/bin/gfortran -fallow-argument-mismatch" MPIFC="/usr/bin/gfortran -fallow-argument-mismatch"
make[1]: Entering directory '/data2/vandereerden/amuse/src/amuse/community/capreole/build_mpi'
/usr/bin/gfortran -fallow-argument-mismatch -c -g -O2 -DNOMPI -fPIC   -DMPI  -I/data2/vandereerden/amuse/lib/stopcond ../src/amuse_mpi.F90
../src/amuse_mpi.F90:54:0:

   54 |   include 'mpif.h'
      |
Fatal Error: Cannot open included file ‘mpif.h’
compilation terminated.

That's definitely not right. The question is why this is happening. I should be getting access to these machines, so then I can experiment a little.

MPIFC should not be set to gfortran, keep it at mpifortran or undefined.
You can set FC to gfortran -fallow-argument-mismatch if this is important, but redefining an MPI compiler to a non-MPI one is probably what's causing the issue.

... thinking about it further, I guess this may follow from AMUSE being configured without MPI in the first place. So a first step would be to re-run configure in the AMUSE dir, and checking config.mk for the definition of MPIFC there.

The output of module load is:
Currently Loaded Modules:

localhosts
GCCcore/12.3.0
zlib/1.2.13-GCCcore-12.3.0
binutils/2.40-GCCcore-12.3.0
GCC/12.3.0
numactl/2.0.16-GCCcore-12.3.0
XZ/5.4.2-GCCcore-12.3.0
libxml2/2.11.4-GCCcore-12.3.0
libpciaccess/0.17-GCCcore-12.3.0
hwloc/2.9.1-GCCcore-12.3.0
OpenSSL/1.1
libevent/2.1.12-GCCcore-12.3.0
UCX/1.14.1-GCCcore-12.3.0
libfabric/1.18.0-GCCcore-12.3.0
PMIx/4.2.4-GCCcore-12.3.0
UCC/1.2.0-GCCcore-12.3.0
OpenMPI/4.1.5-GCC-12.3.0

This is the result of loading the modules 'AMUSE' (AMUSE/2023.5.1) and
'OpenMPI'. In that order.
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
Virusvrij.www.avast.com
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On Fri, 24 Nov 2023 at 13:49, Lourens Veen @.***> wrote:

Could you paste the output of module list for the shell in which you're
building?
—
Reply to this email directly, view it on GitHub
https://github.com/amusecode/amuse/issues/1007#issuecomment-1825632149,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APW3BUNDPWSBMUMNPFXQNCDYGCJWJAVCNFSM6AAAAAA7Y4EIYGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRVGYZTEMJUHE
.
You are receiving this because you authored the thread.Message ID:
@.***>

I'd like to see the config.mk file (in the AMUSE root dir) of the sterrewacht installation of AMUSE, can you find this @Spijkerberg?

I found the file in the AMUSE root dir on the sterrewacht machine. I turned it into a txt file to share it.

Thanks.
This shows AMUSE was configured without MPI support, so no wonder stuff that requires MPI breaks...
This will require fixing on the module level.

Looking at the config.mk that was produced from my own installation from source, I see that MPI_ENABLED=no, while I did load the MPI module before installing. I will try to install AMUSE from source again.

You will also need to install mpi4py (pip install mpi4py).
If this is not detected, configure will set MPI_ENABLED to no.

Looking at the packages enabled in my environment I see that mpi4py is already installed.
Here is the output of pip freeze:
-e git+https://github.com/amusecode/amuse.git@72c4a3c32c21e48f3a823af9f742c7de2684138b#egg=amuse_devel
docutils==0.20.1
h5py==3.10.0
iniconfig==2.0.0
mpi4py==3.1.5
numpy==1.26.2
packaging==23.2
pluggy==1.3.0
pytest==7.4.3
setuptools-scm==8.0.4
typing_extensions==4.8.0

If you re-run configure, does that change the config.mk file?

This did change the config.mk file. I can see that MPI_ENABLED=yes is set correctly now.
I will try rebuilding AMUSE to see what the result is.

It seems that some more of the community codes have been built, but there are still some errors when building.
I have provided the buildlogs again for you to inspect.
Testing to see if the community codes work results in UNPACK-OPAL-VALUE: UNSUPPORTED TYPE 33 FOR KEY .

OPAL is OpenMPI's utility library. This error sounds like some kind of data format mismatch, which suggests there are different versions of MPI in use. Possibly mpi4py got compiled against a different version of MPI than AMUSE? Or the version you have active when running your script doesn't match the one that was loaded when mpi4py was installed and/or when AMUSE was built?

I had a go at building AMUSE on a Sterrenwacht machine. Progress so far:
(amuse-env) <user>@<host>:~/amuse$ python setup.py develop_build
Illegal instruction (core dumped)

Looks like some kind of numpy build issue. Time to start digging...

OPAL is OpenMPI's utility library. This error sounds like some kind of data format mismatch, which suggests there are different versions of MPI in use. Possibly mpi4py got compiled against a different version of MPI than AMUSE? Or the version you have active when running your script doesn't match the one that was loaded when mpi4py was installed and/or when AMUSE was built?

this was exactly the issue. mpi4py was installed in an incorrect way, built against the wrong (conda) openmpi library - which then clashed with the correct one. This also caused the wrong configuration of the AMUSE module.

I think the script may be getting updated at the moment, which could account for that weirdness.
But yes, an “official” easybuild module might be a good idea.


I am not getting it Work

I followed all the instructions but its still not working

Could you be more specific about your problem?


Update ReadMe.md

I like tacos!

Docs Build status updates of commit 94b4def:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

ReadMe.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


attention mechanism toggle added

added option to toggle attention mechanism while loading the model in case user do not want to use flash attention or similar in case of older GPUs.

Hi @Aaryanverma , thanks for your contribution to TRT-LLM project.
If you wanna disable flash attention, I think another war is to set context_fmha to false when building the engine.


Sassplate: CSS Grid

How should we go about supporting CSS Grid? It's well-supported in evergreen browsers.
Does it make sense to continue with our current classes (e.g. col-4@sm) or should we leverage some more powerful grid features?
Should we remove the push, pull, and offset classes with how easy CSS Grid makes this? Are there helper classes which would replace them?
I'd like to find some examples of another grid framework using CSS Grid.

closing - won't do - RIP odopod


The Mysql Crate support read the table -> column -> Comment ?

my english is poor, i am so sorry..
The Mysql Crate support read the table -> column -> Comment ? see the code with Bold
CREATE TABLE some_table  (
PK_ID varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '主键ID',
CREATE_USER varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建人ID',
Or
Read the table's metadata, like types, comments,

Hi. Table metadata are stored within the INFORMATION_SCHEMA. Here is an example query (adapted from here):
SELECT column_comment
FROM information_schema.columns
WHERE table_schema = 'your_db_name' AND table_name = 'your_table_name' AND column_name = 'your_column_name';

Closing, since it's not related to the driver.


Documentation

Can you please add basic documentation to the project?  Thanks.

Very much needed and requested, I would appreciate guidance on how to use the library.


Exception starts on same line when a continued line is entered

Last one for now, I promise :wink:
IN [30]: while True:
   ...:bla  File "<console>", line 2
    bla
      ^
IndentationError: expected an indented block

The File ... should probably start on the next line, like with "regular" input causing exceptions.

Thanks for your feedback its great that you take time send me this information. I haven't had time to fix the problems yet, but I will take a look as soon as I can :)
Cheers !

By they way, which version/commit are you using ?

I think I was using the 1.0 release - sorry for not mentioning that!


FLA-1163 - Add audit user to mongo table

Description
This PR includes the following proposed change(s):

FLA-1163
Add createdBy and lastModifiedBy fields to Auditable
Populated createdBy and lastModifiedBy from security token via SecurityUtils => MongoAuditorAware => AuditConfig

Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Refactoring / Documentation
[ ] Version change

if your change is a breaking change, please add breaking change label to this PR
How Has This Been Tested?
Existing unit test via DocumentConfigurationsEventListenerTest and Postman for Create Document Type Configuration, Update Document Type Configuration and Delete Document Type Configuration.
Does the change impact or break the Docker build?

[ ] Yes
[x] No

If Yes: Has Docker been updated accordingly?

[ ] Yes
[ ] No

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have made corresponding changes to the documentation
[x] New and existing unit tests pass locally with my changes

Mongo table results:

Mongo table results:

Well done Brian.  Nice and clean.


Revert "vertexvis.com to vertex3d.com"

Reverts Vertexvis/dev-portal#75

Is this PR still needed?

@brentav can we close this PR?


fix: prevent focus when using find/replace

I apologize that this is hacky. I'm not sure of any way to check if MonacoEditor is currently in the find/replace state. I checked their github and docs. If anyone has a better idea, let me know, but the issue lies in the hot key event.

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #19695

@Bouncey How does this look?

Closed and Reopened this PR to attempt to resolve a specific Travis build failure.

Hi @TheHollidayInn, sorry for the delay in getting round to this.
I would be in favour of simply removing the focusEditor key binding.

Works for me. Should I go ahead and remove the key binding then? @Bouncey

Hey @ValeraS can you please review this? Thanks

:sparkles: :sparkles: LGTM. :sparkles: :sparkles:
Thanks @TheHollidayInn
Happy Contributing!

Thanks!


Model Incident to GUI

Not working yet. To ignore all issues with Incident loading to GUI,
go to AddressBook#resetData(ReadOnlyAddressBook new Data) and comment out setIncidents method.
Most GUI syncing files seem to have been created. Further abstraction may be needed for Incident class, although first priority is to load the incidents into the GUI.

Screenshot of problematic display thus far

Update:
Incidents model has been successfully integrated into GUI.
Tasks moving forward:

Strategise and discuss Incident model creation (there are presently two constructors)
Discuss changes to Incident Model - Person operator is contained within the Incident model, while callerNumber remains a String. What further information should we take from Person operator, for display in the GUI?

Updated Screenshot


vlc: 3.0.20 -> 3.0.21, add maintainer

Description of changes
Upstream changelog: https://code.videolan.org/videolan/vlc/-/blob/dd8bfdbabe8ae3974ca3864ad3125879f523e3a2/NEWS

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

I will try to write an update script later so that r-ryantm works.

nix-update-script does not work?

nix-update-script does not work?

I don't think it can find the version with fetchurl

nix-update-script does not work?

No: nix_update.errors.VersionError: Please specify the version. We can only get the latest version from codeberg/crates.io/gitea/github/gitlab/notabug/pypi/savannah/sourcehut/rubygems projects right now

2. can't ryanbot catch this automatically? what's going on?

fetchpatch: https://github.com/nix-community/nixpkgs-update/issues/427
I think I will defer writing an update script until getting a response on that, since this issue probably affects quite a lot of packages.

Oh, such flexibility...

Includes a security fix https://www.videolan.org/security/sb-vlc3021.html (VideoLAN-SB-VLC-3021).


Pythoscope fails on non-ASCII python files

Hi,
first of all, Pythoscope looks like an awesome idea, a pity that it seems to have been unmaintained for so long. I hope I am submitting bugs at the right location here, as the launchpad bug tracker seems to be seriously out of date?
While trying it out, I noticed it fails on encountering files with a non-ASCII encoding, or at least one with an UTF-8 encoding.
Here is an example file:
test123.py
Error message is:
INFO: Inspecting module test123.py.
ERROR: Oops, it seems that an internal Pythoscope error occurred. Please file a bug report at https://bugs.launchpad.net/pythoscope
Traceback (most recent call last):
File "/home/xxx/.local/bin/pythoscope", line 11, in
sys.exit(main())
File "/home/xxx/.local/lib/python2.7/site-packages/pythoscope/init.py", line 184, in main
init_project(project_path)
File "/home/xxx/.local/lib/python2.7/site-packages/pythoscope/init.py", line 112, in init_project
inspect_project_statically(project)
File "/home/xxx/.local/lib/python2.7/site-packages/pythoscope/inspector/init.py", line 55, in inspect_project_statically
return add_and_update_modules(project) +
File "/home/xxx/.local/lib/python2.7/site-packages/pythoscope/inspector/init.py", line 37, in add_and_update_modules
static.inspect_module(project, modpath)
File "/home/xxx/.local/lib/python2.7/site-packages/pythoscope/inspector/static.py", line 130, in inspect_module
return inspect_code(project, path, read_file_contents(path))
File "/home/xxx/.local/lib/python2.7/site-packages/pythoscope/inspector/static.py", line 135, in inspect_code
tree = parse(code)
File "/home/xxx/.local/lib/python2.7/site-packages/pythoscope/astbuilder.py", line 82, in parse
result = drv.parse_string(code, True)
File "/usr/lib/python2.7/lib2to3/pgen2/driver.py", line 106, in parse_string
return self.parse_tokens(tokens, debug)
File "/usr/lib/python2.7/lib2to3/pgen2/driver.py", line 60, in parse_tokens
prefix += value
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 2: ordinal not in range(128)

Hi.
I just tried your example, and it works on my machine. I used current master and Python 2.7.10, on linux What version did you use?
Best regards,
Franz

Here are my versions:
$ python --version
Python 2.7.6
$ pythoscope --version
pythoscope 0.4.3
Should I try updating to git master?

I installed with
git clone https://github.com/mkwiatkowski/pythoscope
cd pythoscope/
python setup.py install
and it worked for me.
I tried the same method you used and it failed just like on your machine.
Currently no idea why. Maybe you want to try that method as well.


feat: add RingTheory.Trace.Quotient: relations between trace maps and quotients

We add a file RingTheory.Trace.Quotient gathering results about the relations between the trace map on B → A and the trace map on quotients and localizations.
Co-authored-by: Andrew Yang<EMAIL_ADDRESS>

Thanks a lot for doing this!

maintainer merge


Support Electron 15-19 and Node.js 17-18

Support electron-15.0.0 with abi-98.
Tested on Windows 10 x64.
$ electron --version && electron --abi && electron .

v15.0.0

98

{ button: 0, clicks: 0, x: 2534, y: 46, type: 'mousemove' }
{ button: 0, clicks: 0, x: 2528, y: 50, type: 'mousemove' }
{ button: 0, clicks: 0, x: 2522, y: 53, type: 'mousemove' }
{ button: 0, clicks: 0, x: 2516, y: 57, type: 'mousemove' }
{ button: 0, clicks: 0, x: 2512, y: 59, type: 'mousemove' }
{ button: 0, clicks: 0, x: 2508, y: 60, type: 'mousemove' }
{ button: 0, clicks: 0, x: 2506, y: 61, type: 'mousemove' }
{ button: 0, clicks: 0, x: 2504, y: 62, type: 'mousemove' }
{ button: 0, clicks: 0, x: 2502, y: 63, type: 'mousemove' }
{ button: 0, clicks: 0, x: 2499, y: 63, type: 'mousemove' }
{ button: 0, clicks: 0, x: 2496, y: 65, type: 'mousemove' }

@ash0x0 or @ykhwong - any chance we can have this one merged/released soon? I'm currently blocked on upgrading to electron 15 due to iohook not supporting it

Sorry, but I have no permission to merge this pull request. I think that ash0x0 can do it.

@chevonc it works fine if you build manually for electron 15. The only issue is that prebuilds are not provided.

@marcelblum yeah, I realize I can manually build. However, our current dev flow is setup as such to depend on the pre-builds, so would like to keep using them ideally to avoid having to introduce an additional step

@ash0x0 @Djiit any chance we could get this merged soon?

It looks like a solution for really huge problem but @ash0x0 can you merge it?

Yeah, would be cool to get this merged, I tested this on Electron 16 & node 17 on macos Big Sur and it's working fine)) @WilixLead @ash0x0 @Djiit

@ash0x0 Any update on that?

After reading previous comments, how do I manually build?

After reading previous comments, how do I manually build?

Documentation:
https://wilix-team.github.io/iohook/manual-build.html

Hi Wilix Team, would it be possible to grant merge and publish access to more folks in the community?
It seems that the project would benefit from more attention as there are many PRs open with little movement.
@WilixLead @ash0x0 @Djiit

Is the manual build available now for electron 18? I get errors when I run node build.js --runtime electron --version 18.0.1 --abi 103

Is the manual build available now for electron 18? I get errors when I run node build.js --runtime electron --version 18.0.1 --abi 103

Clone the pull request branch ykhwong:update-electron-v15 and build using node:
$ git clone https://github.com/ykhwong/iohook --branch=update-electron-v15
$ cd iohook
$ npm i --ignore-scripts
$ node build.js --runtime electron --version 18.0.1 --abi 103 --msvs_version=2022 --upload=false

Just to clarify, are we just waiting on someone with merge credentials?

Just to clarify, are we just waiting on someone with merge credentials?

Yes

Any news?

@ykhwong I've been trying to follow your instructions but I'm about at my wits end. I'm getting "iohook.node is not a valid Win32 application" despite getting a successful build. Any ideas why that might be? I'm building and running on Windows 10.

I've been trying to follow your instructions but I'm about at my wits end. I'm getting "iohook.node is not a valid Win32 application" despite getting a successful build. Any ideas why that might be? I'm building and running on Windows 10.

The instruction that I provide above is only about how to build iohook manually. You also need to copy the "iohook.node" file that you compiled to your project's iohook module directory.
I have no idea why the error message occurs because you didn't provide any steps to reproduce the problem. Not sure if the issue is the same as https://github.com/wilix-team/iohook/issues/402

@ash0x0 merge it

@ykhwong  could you publish your branch to npm?

@WilixLead Anyone around to merge this?
This package is quickly becoming outdated.

This package is already outdated, You may want to use https://www.npmjs.com/package/uiohook-napi instead

I switched to uiohook-napi but am currently in the process of switching back to iohook. The author of uiohook-napi does not own a mac and is unable to fix a crash (https://github.com/SnosMe/uiohook-napi/issues/24). While I was able to work around this crash, I encountered more issues trying to produce a universal mac build and I am not able to figure it out. So going back to iohook for now unfortunately.

That's unfortunate, thanks for updating this thread 👍

Hi, we're starting to merge PRs again, is this still working and relevant?

@lacymorrow it'd certainly be nice to have, but the Electron and Node versions this PR targeted are now way out of date

Agreed, but we have downstream projects that would benefit from even partial electron and node updates. It's probably worth the bump.
I may not have the ability to release new versions though.
@WilixLead Do you know if I will be able to release new versions on NPM, or update the documentation?

I'm not sure where to put this, but I want to call out this particular fork of libuiohook, which seems to work everywhere (solves macOS 14 not working, for example). It's used within a .NET analog of this package. I've taken a stab at integrating it here, but my C/C++ skills are uh...very lacking. Would integrating this fork help with updating electron and node support?

My attempt so far to integrate it and update support for electron and node

Why is the package-lock.json change in this PR so massive?


C parser fails on #pragma spanning multiple lines

Describe the bug
#pragma directives that are split into multiple lines via the \ line continuation character are handled as if they span just one line.
To Reproduce
Steps to reproduce the behavior:

Open an instance of the Code Browser tool
Select "Parse C Source" from the "File" menu
Have one or more header files in the source files list that have a #pragma directive spanning multiple lines via the \ line continuation character
Start the parsing process (any parse configuration, include paths do not matter, parse options do not matter either, and either choosing "Parse to Program" rather than "Parse to File..." will trigger the error)
The parsing process will not succeed

Expected behavior
#pragma directives spanning multiple lines are properly handled.
Screenshots

Attachments
If applicable, please attach any files that caused problems or log files generated by the software.
Environment (please complete the following information):

OS: Linux Arch x86-64
Java Version: 17.0.7
Ghidra Version: Github commit c66ad6b047255f9e218dfe7051f3e0e065d0340d
Ghidra Origin: locally built

Additional context
The grammar bit handling #pragma directives is technically correct in assuming directives do not span more than one line, but that is valid only after a preprocessor pass.  The C preprocessor joins all tokens together into a single line before passing the whole lot to the parser:
❯ cpp
#pragma multiple \
        lines \
        pragma
^D
# 0 "<stdin>"
# 0 "<built-in>"
# 0 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 0 "<command-line>" 2
# 1 "<stdin>"
#pragma multiple lines pragma

❯ clang-cpp
#pragma multiple \
        lines \
        pragma
^D
# 1 "<stdin>"
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 375 "<built-in>" 3
# 1 "<command line>" 1
# 1 "<built-in>" 2
# 1 "<stdin>" 2
#pragma multiple lines pragma

I've duplicated the issue


goback and changeTab

TabA
TabB
TabC  -> ScreenC1 ->ScreenC2->ScreenC3
i want ScreenC3 back to TabA, not reset（Reset cannot retain the initial location of the page when TabA is a Flatlist） ,not flashing.  Is there any good solution?

Hi @marlti7 ! It looks like this is not a bug of the library nor a feature request, so I'll close it: I suggest next time you use Stack Overflow which is better suited for answering these types of questions. I also encourage you to join the Reactiflux community on Discord. There are React Native and React Navigation channels with helpful people who might be able to answer your question. I would also like to mention that there is a collection of helpful links and tutorials for React Navigation in the README which might be helpful for you.
That said, refer to https://github.com/react-community/react-navigation/issues/2549 for futher investigation of similar issues.
If you believe that you are experiencing a bug or have a feature request, please open a new Issue following the dedicated template or submit a PR.


black

Consider applying and then enforcing the use of black for this project.

Applying black as is changes 14837 lines.

SGTM

There was a similar discussion about datatracker: https://github.com/ietf-tools/datatracker/discussions/3661
Another thing to consider is main source files of xml2rfc are on the larger side, so reviewing style changes might be harder.
      24 xml2rfc/writers/__init__.py
    2291 xml2rfc/writers/base.py
     354 xml2rfc/writers/doc.py
      51 xml2rfc/writers/expand.py
      39 xml2rfc/writers/expanded_xml.py
    3032 xml2rfc/writers/html.py
     864 xml2rfc/writers/legacy_html.py
     345 xml2rfc/writers/nroff.py
     433 xml2rfc/writers/paginated_txt.py
     209 xml2rfc/writers/pdf.py
    2419 xml2rfc/writers/preptool.py
    1453 xml2rfc/writers/raw_txt.py
    4968 xml2rfc/writers/text.py
     188 xml2rfc/writers/unprep.py
    1202 xml2rfc/writers/v2v3.py
   17872 total

Why would you review it? You can obviously run tests, but black is a very well tested tool that can basically guarantee no functional changes.  For similar projects I have seen format changes are "reviewed" by looking for bad changes, but that only requires a skim over the changes to find.
For example, we moved to using clang-format for a large project in C, clang-format is unreliable in some ways, so that needed a sanity check. Same might apply for a middling sized project like this, but I don't think that black will have similar issues.

Archeology in older versions (git blame and friends) plays a strong role when working on xml2rfc.
Wholesale reformatting would destroy this.
Is black different from wholesale reformatting?

Archaeology is a classic concern here. Given that reformatting is - or can be - a single event, it is easy to step past when on an archaeological expedition. I believe that there are even ways to automate skipping commits in blame, though Mozilla did end up disabling those in favour of a manual approach (for reasons I don't know).
Ultimately, the future is bigger than the past so this tends not to matter much in my long experience with this sort of change. Also, it makes contributing to a project easier, especially for new contributors.

I don't understand what problem bulk reformatting at this point would solve. I realize it won't introduce new bugs, but it also won't fix old bugs.
I doubly don't understand the point without having some way to enforce it on new code.

With the datatracker, we left it to use black conventions on new code but not to rewrite the codebase. I've studied some projects that have done the massive rewrite, and most have had trouble with history later - the "single commit to look past" is a gross oversimplification of what it does to toolchains.
Pushing the "what coding style to use" off to someone else is great - I don't think we have much objection to generally moving towards what black suggests. But a mass rewrite is not going to be ok.

I don't understand what problem bulk reformatting at this point would solve.

Having just contributed a few patches to xml2rfc, I can say that there are two things that are very annoying.

Having to run yestests before starting.
Having to manually match new code style to the code around it.  For me, this includes trailing whitespace, quote choice, line wrapping, and a bunch of other minor annoyances that a code formatter usually just takes care of.

Both of these are massive time sinks and a barrier to me making further contributions (take that as a positive if you like).  Code formatting is by far the worst relative to the cost, especially when the fix is so trivial.


Add tree shaking

PR includes

[x] Refactor

Related issues
Resolve #3

/canary

Canary available<EMAIL_ADDRESS>


in Rainbow, AI hints about the rainbow color

Which is a bit cheating :)

bonus, this 4 is not of any color ?

https://github.com/bstnfrmry/hanabi/issues/107 😉


Update README.md

Added tiger detection gif for the main readme.

@DARK-art108  Could you also add the yolov5 tag for this repo?


Fix desync with aarch64 assembly for ipred_z2

Parameters max_w and max_h were inadvertently swapped.
Before this patch:
$ rav1e -o test.ivf -r rec.y4m --limit 1 tractor_1080p10_25.y4m -y
>  CPU Feature Level: NEON
>  Using y4m decoder: 1920x1080p @ 25/1 fps, 4:2:0, 10-bit
>  Encoding settings: keyint_min=12 keyint_max=240 quantizer=100 bitrate=0 min_quantizer=0 low_latency=false tune=Psychovisual rdo_lookahead_frames=20 multiref=true fast_deblock=false scene_detection_mode=Standard cdef=true lrf=true enable_timing_info=false min_block_size=8x8 max_block_size=64x64 encode_bottomup=false non_square_partition_max_threshold=8x8 reduced_tx_set=true tx_domain_distortion=false tx_domain_rate=false rdo_tx_decision=false prediction_modes=Complex-KFs fine_directional_intra=true include_near_mvs=false use_satd_subpel=true
>  Using 1 tile
>  encoded 1/1 frames, 0.045 fps, 38630.00 Kb/s, est: 0s, 0.18 MB, elapsed: 22s
>  ----------
>  Key frame:             1 | avg QP:  77.00 | avg size:  193150 B
>  Inter frame:           0 | avg QP:   0.00 | avg size:       0 B
>  Intra only frame:      0 | avg QP:   0.00 | avg size:       0 B
>  Switching frame:       0 | avg QP:   0.00 | avg size:       0 B
>  ----

$ dav1d -i test.ivf -o ref.y4m
dav1d 1.3.0 - by VideoLAN
Decoded 1/1 frames (100.0%) - 33.88 fps

$ cmp <(tail -n+2 ref.y4m) <(tail -n+2 rec.y4m)
/dev/fd/63 /dev/fd/62 differ: byte 4075905, line 7294

After this patch cmp returns 0, i.e. the frames match perfectly.
Input tractor_1080p10_25.y4m was created from tractor_1080p25.y4m at https://media.xiph.org/video/derf/ :
ffmpeg -i https://media.xiph.org/video/derf/y4m/tractor_1080p25.y4m \
  -vframes 1 -pix_fmt yuv420p10le -strict -2 tractor_1080p10_25.y4m

Credit to @vibhoothi for running the encoder on aarch64 with a diverse corpus.