README should mention node version requirement

I tried using ipfs-api on my debian 8.3 "jessie" server, using the node/npm packages available through api:
$ /usr/bin/nodejs --version
v0.10.29
$ /usr/bin/npm --version
1.4.21
$ /usr/bin/npm install --save ipfs-api
... installs deps ...
$ cat test.js
var ipfsApi = require('ipfs-api');
$ /usr/bin/nodejs test
/home/holodisc/test/node_modules/ipfs-api/node_modules/wreck/lib/index.js:5
const Events = require('events');
^^^^^
SyntaxError: Use of const in strict mode.
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/home/holodisc/test/node_modules/ipfs-api/lib/request-api.js:13:13)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
However, if i install node v4.4.3 everything works OK!
I don't know if this is expected, but in any case I believe this requirement should be documented in the README.

@moshisushi we've added a engine clause to our package.json https://github.com/ipfs/js-ipfs-api/blob/master/package.json#L18-L20, sorry it didn't get enforced on your env and broke things for you.
We've been supporting LTS versions of Node.js starting from Node.js 4

Would you like to submit a PR? :)

@diasdavid Sure I'll fix one later today :)

thank you for the PR @moshisushi :)


Make compile on stable rust

Back out of use of const fn and slice patterns.

Sorry, this has the wio changes, I meant to base this on current master. Will close and try again.

I merged the wio change into directwrite-rs now if you want to reopen this ^^


Genisteine (CHEBI:81074) inconsistency

With Genisteine (CHEBI:81074) the structure does not fit the InChi key formula, i.e., the structure specifies all stereo centres while the latter does not.

Thanks for letting us know. It has now been corrected.


Enable persistenceGlobalMaxQPS (or maybe remove from dynamic config)

Looks as currently persistenceGlobalMaxQPS dynamic config is not used, see https://github.com/temporalio/temporal/blob/master/service/fx.go#L70-L79
If this cannot be enabled maybe we should comment the related dynamic config knobs for this or comment that they are not going to be used if set in dynamic config.

Thanks for reporting this issue.
The persistenceGlobalMaxQPS dynamic config knob is currently not used. This is because the code in fx.go does not check the value of this config knob.
You can work around this by setting the persistenceNamespaceMaxQPS dynamic config knob to the desired value instead.
In future, we are planning to enable persistenceGlobalMaxQPS.


python3Packages.aioswitcher: 2.0.7 -> 2.0.8

Motivation for this change
https://github.com/TomerFi/aioswitcher/releases/tag/2.0.8
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] 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
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 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
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 159803 run on x86_64-linux 1

3 packages built:

home-assistant-component-tests.switcher_kis
python310Packages.aioswitcher
python39Packages.aioswitcher


How to get result of ResNet 50 on office-home dataset?

can you share with me the exact commands for reproducing the results in office-home with resnet50 backbone?

Thank you for showing interest in our work.
Please use the following command to run CDAN + MCC w/ SDAT on the Office-Home dataset with Resnet-50 architecture.  You may change the source and target domain accordingly (Art - Ar, Clipart - Cl, Product - Pr, Real World - Rw).
python cdan_mcc_sdat.py data/{path-to-officehome} -d OfficeHome -s Ar -t Cl -a resnet50 --epochs 30 --seed 2 --log logs/cdan_mcc_sdat/OfficeHome/Ar2Cl --gpu 0 --temperature 2.5 --bottleneck-dim 2048 --rho 0.02 --log_name Ar2Cl_cdan_mcc_sdat_resnet50 --log_results

The following command can be used to run CDAN + MCC on Office-Home with ResNet50.
python cdan_mcc.py data/{path-to-officehome} -d OfficeHome -s Ar -t Cl -a resnet50 --epochs 30 --seed 2 --log logs/cdan_mcc/OfficeHome/Ar2Cl  --gpu 0 --temperature 2.5 --bottleneck-dim 2048 --log_name Ar2Cl_cdan_mcc_resnet50 --log_results

Please let us know in case of any further questions.

Closing this issue due to inactivity. Please re-open in case the issue is not resolved.


How to fix font-width related problem

Node version no is not displaying properly. It's not showing the last digit properly. How can I resolve this issue?
Font I'm using: Droid Sans Mono.
I've tried with Monospace, Fira Code, but got the same result.

It may be about the terminal emulator that you are using, may I know what are you using?

I'll give you the answer but where did you find me
18 Nis 2021 Pzr 10:18 AM tarihinde Kasper-Liu @.***>
şunu yazdı:

It may be about the terminal emulator that you are using, may I know what
are you using?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/denysdovhan/spaceship-prompt/issues/925#issuecomment-821946749,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AM72X44C5MCSUENI5QISNRTTJKBTHANCNFSM42PLCZHA
.

It may be about the terminal emulator that you are using, may I know what are you using?

I'm using KDE-Konsole on Manjaro-KDE-Plasma.

This doesn't seem to be related to Spaceship. You should check your terminal configuration.


Update OSGeo.QGIS.installer.yaml 3.34.1

Update DisplayName.
Reissue due to github error:
https://github.com/microsoft/winget-pkgs/pull/128693
https://github.com/microsoft/winget-pkgs/pull/128670

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?
[x] This PR only modifies one (1) manifest
[x] Have you validated your manifest locally with winget validate --manifest <path>?

[x] Does your manifest conform to the 1.5 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

Why is this failing @stephengillie ?


NeoTreeShow is broken in the latest main

Hi!
Just updated to the latest main (b580e39) and NeoTreeShow command seems to be broken. NeoTreeReveal still works and NeoTreeShowToggle is still correctly closing the side-panel.
Best,
Ivan

It works for me, can you provide your config? Do you get any errors?

I figured it out, it's broken when using the follow-current-file option. I'll fix it.

This should be fixed in main now. Can you give it a try and let me know if you see any more issues?

Weird thing: it opens the first time, but if I do an open-close-open sequence, then I get an error invalid window id: 1012. And it's always 1012 for some reason as well. NeoTreeRevealToggle still works, though.

I get that too, different window id, but same idea. I'll figure it out.

That issue is fixed now, let me know if you find anything else.

Yes, it's fixed! Thanks!


when train yolo another file

help, when i trying to training, yolo read another file that is not in folder train :(

me too, please help me! ??

@nurmanhariyanto @jokowahono
Try to use this repository: https://github.com/AlexeyAB/darknet


Update Bundles

Update bundles with new revisions from Charmhub.

yes! this is automated - hopefully we can get IS to provide a Personal Access Token so the PR is created by an automated account


docs: clarify compatiblity between ToolbarSpacer and ToolbarLayoutData

OpenUI5 version: 1.72.1
URL:

https://openui5.hana.ondemand.com/#/api/sap.m.Toolbar
https://openui5.hana.ondemand.com/#/api/sap.m.ToolbarSpacer
https://openui5.hana.ondemand.com/#/api/sap.m.ToolbarLayoutData
src/sap.m/src/sap/m/Toolbar.js
src/sap.m/src/sap/m/ToolbarSpacer.js
src/sap.m/src/sap/m/ToolbarLayoutData.js

Description
In the documentation, we can see a warning in sap.m.Toolbar, sap.m.ToolbarSpacer, and sap.ToolbarLayoutData that goes:

Note: sap.m.ToolbarLayoutData should not be used together with sap.m.ToolbarSpacer.

However, to me at least, this instruction is not clear - is it telling us not to use ToolbarLayoutData directly on ToolbarSpacer, like this:
<Toolbar>
	<ToolbarSpacer>
		<layoutData>
			<ToolbarLayoutData
				minWidth="150px"/>
		</layoutData>
	</ToolbarSpacer>
</Toolbar>

or not to use ToolbarLayoutData in the same Toolbar with ToolbarSpacer at all, like this:
<Toolbar>
	<Input>
		<layoutData>
			<ToolbarLayoutData
				minWidth="150px"/>
		</layoutData>
	</Input>
	<ToolbarSpacer/>
	<Button/>
</Toolbar>

I would suggest that you rephrase this warning to clarify, also it may help if you can include the reason behind this warning (what would happen if they're used together).
Also worth noting, openui5-masterdetail-app is using both of them in the same Toolbar, so depending on the interpretation, it may require an update.

Hi zypA13510,
we've created an internal incident<PHONE_NUMBER> about the issue.
Regards, Mihail.


TokenManager shop stealing tokens and not providing the purchase item.

TokenManager v3.0.4-SNAPSHOT
@RealizedMC I'm getting reports that the TokenManager shop is stealing tokens from players and not actually providing the item to the person. It doesn't happen all the time, but had a handful of people lose tokens and not receive keys / hats.
Config
https://paste.ubuntu.com/p/DYyVg6B87C/
Shop
https://paste.ubuntu.com/p/7vTjPhWs3v/
Do you think it may be a problem with confirm-purchase: true with perhaps the command not running from console after purchase? As this problem didn't appear to exist in TM v2.

The fact that it happens randomly doesn't make much sense to me. Could you check if those players for sure did not receive the items? And did this also happen in v3.0.3?

As far as I know, rewarding was working fine prior to me adding the confirmation to all items with v3.0.3 and earlier versions. Multiple different people reported tokens being taken and not receiving the item, so I'm fairly certain it is an issue somewhere.

Fixed in 1e9aeb6, apologizes for my dumb mistake.


always ensure operation overrides work

There were two bugs in the code generator's construction of the OperationMap during API inference.
The first bug was a non-deterministic behaviour that showed itself when an API had multiple Operations of a single operation type (say, READ_ONE). The code that was responsible for determining which Operation mapped to which operation type for a particular resource was looping over the aws-sdk-go private/model/api:API's Operations field, which is a map. Depending on the parsing of the underlying api-2.json files, same-typed Operations with different IDs -- e.g. DescribeStreamSummary and DescribeStream -- were being mapped to a single operation type -- OpTypeGet. Depending on which Operation ID came last, that is the operation that was being mapped, regardless of which one appeared in the OperationConfig configuration option that handles overrides.
The second bug was that the OpTypeFromString method was too strict in its comparison logic. The strings "get", "READ_ONE", "read_one" and "Get" should all lead to OpTypeGet, but only "Get" was being matched.
Fixes Issue aws-controllers-k8s/community#1555
Signed-off-by: Jay Pipes<EMAIL_ADDRESS>By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Github is broken again..
/retest

/lgtm


The recipe does not work if the attribute default['xfs']['dev_packages'] is not included

@puneetloya This cookbook is currently marked deprecated as we believe it provides little value.


array size mismatch error when trying out FinRL_Compare_ElegantRL_RLlib_Stablebaseline3

I'm using windows 10, python 3.7.12, pip 21.3.1.
I tried out the codes in FinRL_Compare_ElegantRL_RLlib_Stablebaseline3 and I'm getting an error when training. I tried out the codes separately for each lib and displayed below are the logs/error it produced for each.
The logs for the 3 look similar I think except for the error trace. There's also this when downloading data for DOW, I wonder if it has something to do with it:
Clean data for DOW
NaN data on start date, fill using first valid data.
Data clean for DOW is finished.

Here are the logs:
FinRL:
[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed
Shape of DataFrame:  (48368, 9)
Clean data for AAPL
Data clean for AAPL is finished.
Clean data for AMGN
Data clean for AMGN is finished.
Clean data for AXP
Data clean for AXP is finished.
Clean data for BA
Data clean for BA is finished.
Clean data for CAT
Data clean for CAT is finished.
Clean data for CRM
Data clean for CRM is finished.
Clean data for CSCO
Data clean for CSCO is finished.
Clean data for CVX
Data clean for CVX is finished.
Clean data for DIS
Data clean for DIS is finished.
Clean data for DOW
NaN data on start date, fill using first valid data.
Data clean for DOW is finished.
Clean data for GS
Data clean for GS is finished.
Clean data for HD
Data clean for HD is finished.
Clean data for HON
Data clean for HON is finished.
Clean data for IBM
Data clean for IBM is finished.
Clean data for INTC
Data clean for INTC is finished.
Clean data for JNJ
Data clean for JNJ is finished.
Clean data for JPM
Data clean for JPM is finished.
Clean data for KO
Data clean for KO is finished.
Clean data for MCD
Data clean for MCD is finished.
Clean data for MMM
Data clean for MMM is finished.
Clean data for MRK
Data clean for MRK is finished.
Clean data for MSFT
Data clean for MSFT is finished.
Clean data for NKE
Data clean for NKE is finished.
Clean data for PG
Data clean for PG is finished.
Clean data for TRV
Data clean for TRV is finished.
Clean data for UNH
Data clean for UNH is finished.
Clean data for V
Data clean for V is finished.
Clean data for VZ
Data clean for VZ is finished.
Clean data for WBA
Data clean for WBA is finished.
Clean data for WMT
Data clean for WMT is finished.
Data clean all finished!

[*********************100%***********************]  1 of 1 completed
Shape of DataFrame:  (1657, 9)
Clean data for ^VIX
Data clean for ^VIX is finished.
Data clean all finished!
['AAPL' 'AMGN' 'AXP' 'BA' 'CAT' 'CRM' 'CSCO' 'CVX' 'DIS' 'GS' 'HD' 'HON'
 'IBM' 'INTC' 'JNJ' 'JPM' 'KO' 'MCD' 'MMM' 'MRK' 'MSFT' 'NKE' 'PG' 'TRV'
 'UNH' 'V' 'VZ' 'WBA' 'WMT' 'DOW']
Traceback (most recent call last):
  File "D:\finrl\compare_elegantrl_ray_finrl.py", line 448, in <module>
    total_timesteps=1e4)
  File "D:\finrl\compare_elegantrl_ray_finrl.py", line 175, in train
    price_array, tech_array, turbulence_array = DP.df_to_array(data, if_vix)
  File "d:\finrl\finrl\finrl\finrl_meta\data_processor.py", line 66, in df_to_array
    df, self.tech_indicator_list, if_vix
  File "d:\finrl\finrl\finrl\finrl_meta\data_processors\processor_yahoofinance.py", line 309, in df_to_array
    [price_array, df[df.tic == tic][["adjcp"]].values]
  File "<__array_function__ internals>", line 6, in hstack
  File "D:\finrl\env2\lib\site-packages\numpy\core\shape_base.py", line 346, in hstack
    return _nx.concatenate(arrs, 1)
  File "<__array_function__ internals>", line 6, in concatenate
ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 0, the array at index 0 has size 1657 and the array at index 1 has size 1656

Ray:
[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed
Shape of DataFrame:  (48368, 9)
Clean data for AAPL
Data clean for AAPL is finished.
Clean data for AMGN
Data clean for AMGN is finished.
Clean data for AXP
Data clean for AXP is finished.
Clean data for BA
Data clean for BA is finished.
Clean data for CAT
Data clean for CAT is finished.
Clean data for CRM
Data clean for CRM is finished.
Clean data for CSCO
Data clean for CSCO is finished.
Clean data for CVX
Data clean for CVX is finished.
Clean data for DIS
Data clean for DIS is finished.
Clean data for DOW
NaN data on start date, fill using first valid data.
Data clean for DOW is finished.
Clean data for GS
Data clean for GS is finished.
Clean data for HD
Data clean for HD is finished.
Clean data for HON
Data clean for HON is finished.
Clean data for IBM
Data clean for IBM is finished.
Clean data for INTC
Data clean for INTC is finished.
Clean data for JNJ
Data clean for JNJ is finished.
Clean data for JPM
Data clean for JPM is finished.
Clean data for KO
Data clean for KO is finished.
Clean data for MCD
Data clean for MCD is finished.
Clean data for MMM
Data clean for MMM is finished.
Clean data for MRK
Data clean for MRK is finished.
Clean data for MSFT
Data clean for MSFT is finished.
Clean data for NKE
Data clean for NKE is finished.
Clean data for PG
Data clean for PG is finished.
Clean data for TRV
Data clean for TRV is finished.
Clean data for UNH
Data clean for UNH is finished.
Clean data for V
Data clean for V is finished.
Clean data for VZ
Data clean for VZ is finished.
Clean data for WBA
Data clean for WBA is finished.
Clean data for WMT
Data clean for WMT is finished.
Data clean all finished!

[*********************100%***********************]  1 of 1 completed
Shape of DataFrame:  (1657, 9)
Clean data for ^VIX
Data clean for ^VIX is finished.
Data clean all finished!
['AAPL' 'AMGN' 'AXP' 'BA' 'CAT' 'CRM' 'CSCO' 'CVX' 'DIS' 'GS' 'HD' 'HON'
 'IBM' 'INTC' 'JNJ' 'JPM' 'KO' 'MCD' 'MMM' 'MRK' 'MSFT' 'NKE' 'PG' 'TRV'
 'UNH' 'V' 'VZ' 'WBA' 'WMT' 'DOW']
Traceback (most recent call last):
  File "D:\finrl\compare_elegantrl_ray_finrl.py", line 387, in <module>
    total_episodes=30)
  File "D:\finrl\compare_elegantrl_ray_finrl.py", line 175, in train
    price_array, tech_array, turbulence_array = DP.df_to_array(data, if_vix)
  File "d:\finrl\finrl\finrl\finrl_meta\data_processor.py", line 66, in df_to_array
    df, self.tech_indicator_list, if_vix
  File "d:\finrl\finrl\finrl\finrl_meta\data_processors\processor_yahoofinance.py", line 309, in df_to_array
    [price_array, df[df.tic == tic][["adjcp"]].values]
  File "<__array_function__ internals>", line 6, in hstack
  File "D:\finrl\env2\lib\site-packages\numpy\core\shape_base.py", line 346, in hstack
    return _nx.concatenate(arrs, 1)
  File "<__array_function__ internals>", line 6, in concatenate
ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 0, the array at index 0 has size 1657 and the array at index 1 has size 1656

ElegantRL:
[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed

[*********************100%***********************]  1 of 1 completed
Shape of DataFrame:  (48368, 9)
Clean data for AAPL
Data clean for AAPL is finished.
Clean data for AMGN
Data clean for AMGN is finished.
Clean data for AXP
Data clean for AXP is finished.
Clean data for BA
Data clean for BA is finished.
Clean data for CAT
Data clean for CAT is finished.
Clean data for CRM
Data clean for CRM is finished.
Clean data for CSCO
Data clean for CSCO is finished.
Clean data for CVX
Data clean for CVX is finished.
Clean data for DIS
Data clean for DIS is finished.
Clean data for DOW
NaN data on start date, fill using first valid data.
Data clean for DOW is finished.
Clean data for GS
Data clean for GS is finished.
Clean data for HD
Data clean for HD is finished.
Clean data for HON
Data clean for HON is finished.
Clean data for IBM
Data clean for IBM is finished.
Clean data for INTC
Data clean for INTC is finished.
Clean data for JNJ
Data clean for JNJ is finished.
Clean data for JPM
Data clean for JPM is finished.
Clean data for KO
Data clean for KO is finished.
Clean data for MCD
Data clean for MCD is finished.
Clean data for MMM
Data clean for MMM is finished.
Clean data for MRK
Data clean for MRK is finished.
Clean data for MSFT
Data clean for MSFT is finished.
Clean data for NKE
Data clean for NKE is finished.
Clean data for PG
Data clean for PG is finished.
Clean data for TRV
Data clean for TRV is finished.
Clean data for UNH
Data clean for UNH is finished.
Clean data for V
Data clean for V is finished.
Clean data for VZ
Data clean for VZ is finished.
Clean data for WBA
Data clean for WBA is finished.
Clean data for WMT
Data clean for WMT is finished.
Data clean all finished!

[*********************100%***********************]  1 of 1 completed
Shape of DataFrame:  (1657, 9)
Clean data for ^VIX
Data clean for ^VIX is finished.
Data clean all finished!
['AAPL' 'AMGN' 'AXP' 'BA' 'CAT' 'CRM' 'CSCO' 'CVX' 'DIS' 'GS' 'HD' 'HON'
 'IBM' 'INTC' 'JNJ' 'JPM' 'KO' 'MCD' 'MMM' 'MRK' 'MSFT' 'NKE' 'PG' 'TRV'
 'UNH' 'V' 'VZ' 'WBA' 'WMT' 'DOW']
Traceback (most recent call last):
  File "D:\finrl\compare_elegantrl_ray_finrl.py", line 327, in <module>
    break_step=1e5
  File "D:\finrl\compare_elegantrl_ray_finrl.py", line 175, in train
    price_array, tech_array, turbulence_array = DP.df_to_array(data, if_vix)
  File "d:\finrl\finrl\finrl\finrl_meta\data_processor.py", line 66, in df_to_array
    df, self.tech_indicator_list, if_vix
  File "d:\finrl\finrl\finrl\finrl_meta\data_processors\processor_yahoofinance.py", line 309, in df_to_array
    [price_array, df[df.tic == tic][["adjcp"]].values]
  File "<__array_function__ internals>", line 6, in hstack
  File "D:\finrl\env2\lib\site-packages\numpy\core\shape_base.py", line 346, in hstack
    return _nx.concatenate(arrs, 1)
  File "<__array_function__ internals>", line 6, in concatenate
ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 0, the array at index 0 has size 1657 and the array at index 1 has size 1656

Okay I manually reran the part of code that threw the error and it was when it was processing DOW that the error was thrown. Will run it again without DOW and see if I get any error.
...snip...
   38.73500824]]
DOW
ELSE
Price Array
[[ 17.76646423  92.5320816   80.62113953 ...  34.35734558  46.56195068
   65.58594513]
 [ 17.51660728  93.92721558  79.48374939 ...  34.25947571  45.90533829
   65.76933289]
 [ 17.13183784  92.84840393  79.74145508 ...  33.85394669  46.05937195
   65.55259705]
 ...
 [ 92.35501099<PHONE_NUMBER>   92.9437561  ...  54.40843201  38.28328323
<PHONE_NUMBER>2]
 [ 94.12528992<PHONE_NUMBER>   95.17826843 ...  54.38003159  38.73500824
<PHONE_NUMBER>8]
 [ 94.12528992<PHONE_NUMBER>   95.17826843 ...  54.38003159  38.73500824
<PHONE_NUMBER>8]]
Traceback (most recent call last):
  File "<pyshell#123>", line 23, in <module>
    [price_array, vix_data[vix_data.tic == tic][["adjcp"]].values]
  File "<__array_function__ internals>", line 6, in hstack
  File "D:\finrl\env2\lib\site-packages\numpy\core\shape_base.py", line 346, in hstack
    return _nx.concatenate(arrs, 1)
  File "<__array_function__ internals>", line 6, in concatenate
ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 0, the array at index 0 has size 1657 and the array at index 1 has size 1656
>>> vix_data[vix_data.tic == 'DOW'][["adjcp"]].values
array([[40.49997711],
       [40.49997711],
       [40.49997711],
       ...,
       [39.66242981],
       [40.49997711],
       [40.49997711]])
>>> len(vix_data[vix_data.tic == 'DOW'][["adjcp"]].values)
1656

Okay after re-run without DOW data it was able to complete training (only used cpu) but threw an error during test.
Data clean all finished!

[*********************100%***********************]  1 of 1 completed
Shape of DataFrame:  (296, 9)
Clean data for ^VIX
Data clean for ^VIX is finished.
Data clean all finished!
['AAPL' 'AMGN' 'AXP' 'BA' 'CAT' 'CRM' 'CSCO' 'CVX' 'DIS' 'DOW' 'GS' 'HD'
 'HON' 'IBM' 'INTC' 'JNJ' 'JPM' 'KO' 'MCD' 'MMM' 'MRK' 'MSFT' 'NKE' 'PG'
 'TRV' 'UNH' 'V' 'VZ' 'WBA' 'WMT']
Successfully transformed into array
price_array:  296
Successfully load model ./test_sac.zip
Traceback (most recent call last):
  File "D:\finrl\compare_elegantrl_ray_finrl.py", line 466, in <module>
    cwd='./test_sac.zip')
  File "D:\finrl\compare_elegantrl_ray_finrl.py", line 296, in test
    cwd = cwd)
  File "d:\finrl\finrl\finrl\drl_agents\stablebaselines3\models.py", line 147, in DRL_prediction_load_from_file
    action = model.predict(state)[0]
  File "D:\finrl\env2\lib\site-packages\stable_baselines3\common\base_class.py", line 552, in predict
    return self.policy.predict(observation, state, mask, deterministic)
  File "D:\finrl\env2\lib\site-packages\stable_baselines3\common\policies.py", line 333, in predict
    observation, vectorized_env = self.obs_to_tensor(observation)
  File "D:\finrl\env2\lib\site-packages\stable_baselines3\common\policies.py", line 250, in obs_to_tensor
    vectorized_env = is_vectorized_observation(observation, self.observation_space)
  File "D:\finrl\env2\lib\site-packages\stable_baselines3\common\utils.py", line 360, in is_vectorized_observation
    return is_vec_obs_func(observation, observation_space)
  File "D:\finrl\env2\lib\site-packages\stable_baselines3\common\utils.py", line 245, in is_vectorized_box_observation
    + "or (n_env, {}) for the observation shape.".format(", ".join(map(str, observation_space.shape)))
ValueError: Error: Unexpected observation shape (303,) for Box environment, please use (293,) or (n_env, 293) for the observation shape.
>>>

It looks like DOW was still there when running the test while I didn't include it in training. That might have caused the error. Will rerun and see if that was it or if there's any more errors.

I received the same error: "all the input array dimensions for the concatenation axis must match exactly, , but along dimension 0, the array at index 0 has size 1658 and the array at index 1 has size 1657"

Thanks for reporting it. I am looking into it now.

I have tested the notebook here but didn't reproduce the error you mentioned. (ps: I found another error but not related to your error and have updated the notebook). I also tried to run finrl/train.py directly and didn't reproduce the error. I ran the codes on Colab with Python 3.7.12.
Have you changed the parameters such as the starting date and end date? If not, I think you may update to the newest codes have a try. Thanks!

The issue was happened in the pure windows11/python environment when trying to run train.py (after move the file from finrl sub folder into FinRL)
Anyway, I was able to run and got the result of sample *_2018.ipynb via colab which is fantastic to me.
谢谢
从 Windows 版邮件https://go.microsoft.com/fwlink/?LinkId=550986发送

发件人: Jingyang Rui (Ray) @.>
发送时间: Wednesday, December 29, 2021 4:07:48 PM
收件人: AI4Finance-Foundation/FinRL @.>
抄送: 霍敬东 @.>; Comment @.>
主题: Re: [AI4Finance-Foundation/FinRL] array size mismatch error when trying out FinRL_Compare_ElegantRL_RLlib_Stablebaseline3 (Issue #396)
I have tested the notebook herehttps://github.com/AI4Finance-Foundation/FinRL/blob/master/FinRL_Compare_ElegantRL_RLlib_Stablebaseline3.ipynb but didn't reproduce the error you mentioned. (ps: I found another error but not related to your error and have updated the notebook). I also tried to run finrl/train.py directly and didn't reproduce the error. I ran the codes on Colab with Python 3.7.12.
Have you changed the parameters such as the starting date and end date? If not, I think you may update to the newest codes have a try. Thanks!
―
Reply to this email directly, view it on GitHubhttps://github.com/AI4Finance-Foundation/FinRL/issues/396#issuecomment-1002447842, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AA3QY3T2PWJTGE47QNJM3ALUTK6VJANCNFSM5KDCBWJQ.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you commented.Message ID: @.***>

I have the same issue. Have it is possible to solve it?


[5.0] introduce Expression contract to allow custom query expressions

It replaces Query\Expression checks with its interface in order to let developer pass custom, self-evaluating raw sql expressions.
Here's a quick example of why you would want it (example originating from this issue https://github.com/laravel/framework/issues/8236):
Model:
>>> $gis = new Gis
=> <App\Models\Gis #0000000047a2d0f9000000000ebbb990> {}

>>> $gis->name = 'point'
=> "point"

>>> $gis->geom = new Point(55,99)
=> <Sandbox\Geometry\Point #0000000047a2d0ee000000000ebbb990> {}

>>> $gis->geom->getValue() // evaluates to
=> "ST_GeomFromText('POINT(99 55)')"

>>> $gis->save()
=> true

>>> DB::connection('pgsql')->getQueryLog()
=> [
     [
        "query"   => "insert into \"gis\" (\"name\", \"geom\", \"updated_at\", \"created_at\")
                         values (?, ST_GeomFromText('POINT(99 55)'), ?, ?) returning \"id\"",
        "bindings" => [
            "point",
            "2015-04-28 12:35:09",
            "2015-04-28 12:35:09"
        ],
        "time"     => 7.49
     ]
   ]

Builder:
>>> $point = new Point(1,5)
=> <Sandbox\Geometry\Point #0000000054450a74000000003aaa7e9c> {}

>>> DB::table('gis')->where('id', 2)->update(['geom' => $point])
=> 1

// instead of inconvenient
>>> DB::table('gis')->where('id', 2)->update(['geom' => DB::raw("ST_GeomFromText('{$point->whatever()}')")])

Couldn't you just extend the Expression class for your own custom expression?

@taylorotwell Sure you could. However it's not about extending the expression, but adding functionality to a class for ease of use.
Obviously you can't extend the expression if you have inheritance chain.
Relying on solid class Query\Expression here doesn't go along with the whole framework philosophy, why don't you want to rely on interface instead in this case?


Initial repository spring clean

Relates to #280
So I've ensured SwipeCellKit, SlackTextViewController and MMMarkdown all have Podspecs, I've moved them to their own directory ("Local Pods") and then reference them via our Podfile. This means our project file no longer has all of the separate projects in it!
I've also moved the various playgrounds into their own folder

Note that this broke beta builds, it can't find the new frameworks. Will investigate. Another +1 to having CI setup so we can land-block this stuff.

Probably to do with the TestFlight builds, was hoping CocoaPods would auto-transfer those for us as it does for all the other pods.
Feel free to revert if you can't work it out


[main] set up git environment

Setting up the minimal environment for the repository, i.e. .gitignore and LICENSE on the main site and a folder 'examples' to host all the autonomous example code testing various features of the main code.

Thanks for this. Before I merge, are you deliberately adding Ben Morgan as the copyright holder? I'm guessing this is a placeholder, and any issue of copyright is decided by the collaboration agreement in the longer run?

Ups, error due to copy/paste. New commit to follow.


fix: remove FluentDataGridRow z-index property

Pull Request
📖 Description
When the z-index of FluentDataGridRow is set to 3, it conflicts with the styles of some components, such as FluentSelect.

Therefore, the z-index property is removed from FluentDataGridRow.

🎫 Issues

👩💻 Reviewer Notes

📑 Test Plan

✅ Checklist
General

[ ] I have added tests for my changes.
[ ] I have tested my changes.
[ ] I have updated the project documentation to reflect my changes.
[x] I have read the CONTRIBUTING documentation and followed the standards for this project.

Component-specific

[ ] I have added a new component
[ ] I have added Unit Tests for my new compontent
[ ] I have modified an existing component
[ ] I have validate Unit Tests for an existing component

⏭ Next Steps

The z-index had been given this value for a reason. Please see #744.
A solution for the list to appear above the grid was given in #771. Please confirm that this solution works for you as well. If not, then we can see how we can change this but this PR will not be merged in its current form.

Thank you for pointing me to issues #744 and #771. I have reviewed the suggested solution in #771 and confirmed that it works for my case as well. Given that the current z-index value has its reasons, I agree that this PR is not needed in its current form. Thanks for your guidance.


LanguageClient failing to initialize language server on 1.62.1

We're running into an issue that seems to have been introduced with 1.62.1.
Upon initialization of our LanguageClient in our VSCode extension, it's immediately triggering a closed notification on LanguageClient.clientOptions.errorHandler.closed (here)
Insiders 1.63.0 also has the problem. It happens while debugging as well as when installing from the marketplace.
If we downgrade to 1.62.1 or 1.60.2 there are no problems.

We checked the lsp-sample using 1.62.1 and using the same client + server libraries and there's no error.
We changed our retry logic to retry indefinitely, and at some point it will complete. it seems like it's related to the client.onReady() promise never resolving [?]
What else can we try, this is essentially affecting all our users.

Does this issue occur when all extensions are disabled?: N/A, this is inside a VSCode extension

Version: 1.62.1
Commit: f4af3cbf5a99787542e2a30fe1fd37cd644cc31f
Date: 2021-11-05T09:23:14.144Z
Electron: 13.5.2
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Darwin x64 20.6.0
Happens in both VSC 1.62.2 and VSCInsiders 1.63.0
Steps to Reproduce:

install CodeStream from the marketplace
close VSCode, then reopen it. 75% of the time you'll see a toast notification error

Moved back from 1.62 to 1.61.2 and the problem is gone

.

Sorry about the breakage, this is from a fix to address an elevation of privilege vulnerability #136771 (CVE-2021-42322). Starting with 1.62.1 you need to pass the command line argument --ms-enable-electron-run-as-node to the VSCode binary in addition to ELECTRON_RUN_AS_NODE=1 to use it as Node.js.

@chrmarti could you clarify your solution for me? How / where are those additional arguments set?
We are a VSCode extension and have no ability to change how the user launched VSCode.

@chrmarti workaround for mac? thanks

@bcanzanella It is not clear to me that this is a regression caused by our security fix, because our security fix changes Electron's behavior in 100% of cases, not just in 75% of cases.
Can you please clarify if this reproduces in 1.62.0 or not? Is 1.62.1 the first bad version?

So the 75%/25% seems like an difference between running VSCode on a "read-only" volume, in my case from the Downloads folder rather than installed directly. in this case the error happens immediately 75% of the time (via "read-only" volume), and the other 25% seems to load, but later the LSP agent restarts multiple times and makes CodeStream unusable, but let's shelve that for the moment...
100% of the time the following is true:
1.62.0 WORKS
1.62.1 BAD
1.62.2 BAD

@bcanzanella I have investigated and it looks like the forked process dist/agent.js exits with a SIGSEGV.
@deepak1556 Is there anything we can do to find out why this process crashes? AFAICT it is not loading any native node modules.

@bcanzanella I have investigated and it looks like the forked process dist/agent.js exits with a SIGSEGV.
@deepak1556 Is there anything we can do to find out why this process crashes? AFAICT it is not loading any native node modules.

This is exactly the issue we are experiencing in the Angular Language Service when trying to run ngcc as a forked process.  In 1.61.1, 1.61.2, and the insider version, the process fails with SIGEGV and a null code.

@bcanzanella when I repro the crash with codestream extension, the stacks indicate crash happens during compilation of the dist/agent.js file, the following is the translated callsite
"%cCHILD_PROCESS 66072: spawn {
%c  execArgv: [],
%c  cwd: '/Users/demohan/github/electron-quick-start',
%c  silent: true,
%c  stdio: [ 'pipe', 'pipe', 'pipe', 'ipc' ],
%c  env: { ELECTRON_RUN_AS_NODE: 1 },
%c  execPath: '/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Renderer).app/Contents/MacOS/Code Helper (Renderer)',
%c  shell: false,
%c  args: [
%c    '/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Renderer).app/Contents/MacOS/Code Helper (Renderer)',
%c    '--ms-enable-electron-run-as-node',
%c    '/Users/demohan/.vscode/extensions/codestream.codestream-12.1.0/dist/agent.js',
%c    '--node-ipc',
%c    '--clientProcessId=66072'
%c  ],
%c  detached: false,
%c  envPairs: [....],
%c  file: '/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Renderer).app/Contents/MacOS/Code Helper (Renderer)',
%c  windowsHide: false,
%c  windowsVerbatimArguments: false
%c}

When I compare it with https://github.com/TeamCodeStream/codestream/blob/7c7d4d98f9d93d0ee70690d3c12093995823e60e/atom/lib/workspace/agent/connection.ts#L419-L423 the args don't match, can you share the code calling spawn ?
I was trying to play with the --no-lazy flag and the crash no longer repros, not sure why it makes a difference.
// crashes
ELECTRON_RUN_AS_NODE=1 /Applications/Visual\ Studio\ Code.app/Contents/Frameworks/Code\ Helper\ \(Renderer\).app/Contents/MacOS/Code\ Helper\ \(Renderer\) /Users/demohan/.vscode/extensions/codestream.codestream-12.1.0/dist/agent.js --node-ipc --ms-enable-electron-run-as-node

// does not crash
ELECTRON_RUN_AS_NODE=1 /Applications/Visual\ Studio\ Code.app/Contents/Frameworks/Code\ Helper\ \(Renderer\).app/Contents/MacOS/Code\ Helper\ \(Renderer\) /Users/demohan/.vscode/extensions/codestream.codestream-12.1.0/dist/agent.js --node-ipc --ms-enable-electron-run-as-node --no-lazy

@atscott can you share some minimal steps to repro the issue, thanks!

@deepak1556 here is the code that spawns it: https://github.com/TeamCodeStream/codestream/blob/develop/vscode/src/agent/agentConnection.ts#L257

also, @deepak1556 does the order of those arguments matter? in your debugging code --ms-enable-electron-run-as-node is before the script arg (agent.js)...
args: [
%c    '/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Renderer).app/Contents/MacOS/Code Helper (Renderer)',
%c    '--ms-enable-electron-run-as-node',
%c    '/Users/demohan/.vscode/extensions/codestream.codestream-12.1.0/dist/agent.js',
%c    '--node-ipc',
%c    '--clientProcessId=66072'
%c  ],

...but in your manual testing the --ms-enable-electron-run-as-node arg is after agent.js

Order doesn't matter --ms-enable-electron-run-as-node argument is parsed and removed early on in the process startup.

Hi @deepak1556, sorry if these aren't minimal enough directions! Let me know what I can do to provide something better:

Clone our extension repo
Open the repository with vscode 1.62.1 or above
Install dependencies with yarn && cd integration/project/ && yarn
Run the build script with ./scripts/build.sh
For debugging, put a breakpoint on the line that calls fork and one on the close listener
Launch the extension development host (Dev Client + Server run configuration)
In the extension host, open the integration project and then open the app.component.html template file
-- debugger should stop on the fork and if you continue, you will see that the debugger stops in the childProcess.on('close') with a null code.
You can have the fork retry by running the Angular: Restart Angular Language server command in the extension host.

I also attempted to add the --ms-enable-electron-run-as-node flag to the child_process fork but that didn't work. Also, FWIW, I was able to add a spawn('pwd'); that succeeded with code 0 at the same location.

End-to-end debugging of the issue narrowed down the problem to a UAF scenario in the argument parser. I am getting a new electron build ready with the fix today. I will update here once the fix is rolled into our insiders for some testing. Sorry about the breakage!

For anyone available for early testing, here are some test builds.
macOS x64
windows x64
linux x64

thanks @deepak1556 we have confirmation from a few CodeStream developers that it is fixed in the macOS version

@deepak1556 I can also confirm that this resolves the issue with forking a process for ngcc in the Angular language service extension. Thank you!

Today's insider Version: 1.63.0-insider (Universal) 6a25ae3a24929f35aabf8a051531c0716032e0a0 , carries the fix. I will close this optimistically based on the testing. The fix will also be made available in recovery release 1.62.3 later this week.


Configuration not saved

The configuration is not being saved after updating it and so the split site is never loaded.

Should be fixed on 1.1.0. Let me know otherwise!


decorate_cell function

@joamatab what do you think of the following pattern as an alternative to replace decorator?
I like that it keeps the core functions clean... we don't need to define a post_process parameter and associated logic.

How about doing it like this instead?
https://github.com/gdsfactory/gdsfactory/pull/2604


Enable sign conversion warnings

Noticed when compiling the uVision example which warned about the
issues.

Blocked until https://github.com/Sensirion/embedded-common/pull/25 is merged. I'll then bump the submodule as well.


Add file_template_project_id attribute to Group Struct

This PR adds support for the file_template_project_id when reading a Group via the API by adding the value to the Group struct. In addition, it adds one test to ensure that when the value is present properly in the JSON, it unmarshals properly.
Closes #1393

Please fix the lint errors (probably need to run go fmt)...

Sorry about that! Always a bit tricky with delayed CI :)
Should be fixed now.


Cannot read property 'class_loaded' of null

Describe the bug
Error when destroyed and loading was not finished
To Reproduce
Steps to reproduce the behavior:

Go to  here https://output.jsbin.com/nirokam/20;
Open Chrome DevTools, disable cache, and switch to Slow 3G;
Refresh page;
See error in the console tab

Expected behavior
when destroyed, loading should finish normally
LazyLoad version
Please report which version of LazyLoad you're using.

Version 12.0.0

Additional context
The error is caused by this line of code , since the lazyload instance is destroyed  before some images finish loading.

Mybe I can wait until all images are loaded, then call destroy(), like this:
function destroy() {
    if (lazyload._loadingCount === 0) {
        lazyload.destroy();
    }
    else {
        setTimeout(destroy, 100);
    }
}
setTimeout(destroy, 100);

But the _loadingCount is private, it will be perfect to have a public interface to know if no image is still loading.

Another solution is to change the destroy method.
{
    ...
    destroy: function() {
		if (this._observer) {
			this._elements.forEach(element => {
				this._observer.unobserve(element);
			});
			this._observer = null;
		}
		// this._elements = null;
		// this._settings = null;
	},
        ...
}

_elements and _settings should not be unset, since they are referenced in handler of image load event.

Hey @wzhscript,
thank you for opening this and for the ideas.
Can I ask you a question? Why do you need to destroy the LazyLoad instance if the loading is not finished yet? FYI the script already unsets the IntersectionObserver when the loading of all images has finished.
Anyway, the idea of making the _loadingCount property public is very good and I'll think about it.

Hi @verlok! I think a good use case for destroying LazyLoad instances is SPA with a client-side routing an a quick navigation from one route to another. There is potential situation when images from the first route are not loaded yet and after transition to the second route respective image elements are destroyed but LazyLoad instances are not.

By the way, your demo seems to be working correctly on Firefox.

So it's probably a Chromium bug.
I suggest you to file a bug to the Chromium project.

You're 100% right. I'll see what I can do to solve this problem. Thanks.

Released 12.5.0 with the public loadingCount property.
I also implemented a delayed destroy in the demos/destroy.html demo, like the following:
destroyButton.addEventListener("click", () => {
    destroyButton.disabled = true;
    destroyButton.innerText = "Waiting...";
    const destroyInterval = setInterval(() => {
        if (ll.loadingCount > 0) return; // EXIT CONDITION
        clearInterval(destroyInterval);
        ll.destroy();
        ll = null;
        destroyButton.innerText = "Destroyed";
    }, 250);
});

➡ Try this online

Seems like the issue is still there for SPAs. Uncaught TypeError: Cannot read property 'class_loaded' of null (this line). The same problem will occur in all places where instance.someProperty is used because all properties are nullable. Either we should check every property before using it OR we should find another solution. Maybe something like setting isDestroyed flag.

@eugene-stativka
@verlok


Stop adding new ops to the graph object with every snapshot and lr change.

When you call "tf.assign(...)" new tensorflow op is added to the graph object and you are calling it with every snapshot and learning rate update. When graph is growing, memory consumption is increasing until there is no more (and that's a big problem with VGG). You need to define your graph before starting the learning process.

I have included this commit in my pull request #28


[BUG]ConvertGraphDefToGraph return an invalid tensorflow::Graph

Please make sure that this is a bug. As per our
GitHub Policy,
we only address code/doc bugs, performance issues, feature requests and
build/installation issues on GitHub. tag:bug_template
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
TensorFlow installed from (source or binary):

Binary

TensorFlow version (use command below):

1.15 and 2.4.0

Python version:

3.7.5

Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version:
GPU model and memory:

You can collect some of this information using our environment capture
script
You can also obtain the TensorFlow version with:

TF 1.0: python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
TF 2.0: python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"

Describe the current behavior
I want to use the C++ API to process my pbtxt model. After the GraphDef file is correctly loaded from the file, I continue to call tensorflow::ConvertGraphDefToGraph to convert my model into a tensorflow::Graph object. The call is successful, however, nodes on graph objects are invalid. For example, core dump occurs when in_edge is invoked.
For further verification, I register a pass optimizer for the POST_REWRITE_FOR_EXEC phase on the TF of version 2.4, which prints only the input graph,

part of my pass

    LOG(INFO) << "------------------------------------Inputs------------------------------------";
    const tensorflow::EdgeSet &in_edges = node->out_edges();
    for (auto edge : in_edges) {
      if (edge == nullptr) {
        LOG(INFO) << "    nullptr";
      } else {
        LOG(INFO) << "    " << edge->src()->DebugString();
      }
    }

    LOG(INFO) << "------------------------------------Outputs------------------------------------";
    const tensorflow::EdgeSet &out_edges = node->out_edges();
    for (auto edge : out_edges) {
      if (edge == nullptr) {
        LOG(INFO) << "    nullptr";
      } else {
        LOG(INFO) << "    " << edge->dst()->DebugString();
      }
    }

python test code

@tf.function
def f(a, b):
  return a + b

f(tf.constant(1), tf.constant(2))

and the result

{name:'_SOURCE' id:0 source}
------------------------------------Inputs------------------------------------
    {name:'_SOURCE' id:0 source}
    {name:'_SOURCE' id:0 source}
    nullptr
------------------------------------Outputs------------------------------------
    {name:'a' id:2 op device:{/job:localhost/replica:0/task:0/device:CPU:0} def:{{{node a}} = _Arg[T=DT_INT32, _output_shapes=[[]], _user_specified_name="a", index=0, _device="/job:localhost/replica:0/task:0/device:CPU:0"]()}}
    {name:'b' id:3 op device:{/job:localhost/replica:0/task:0/device:CPU:0} def:{{{node b}} = _Arg[T=DT_INT32, _output_shapes=[[]], _user_specified_name="b", index=1, _device="/job:localhost/replica:0/task:0/device:CPU:0"]()}}
    nullptr
{name:'b' id:3 op device:{/job:localhost/replica:0/task:0/device:CPU:0} def:{{{node b}} = _Arg[T=DT_INT32, _output_shapes=[[]], _user_specified_name="b", index=1, _device="/job:localhost/replica:0/task:0/device:CPU:0"]()}}
------------------------------------Inputs------------------------------------
    nullptr
------------------------------------Outputs------------------------------------
    nullptr
{name:'a' id:2 op device:{/job:localhost/replica:0/task:0/device:CPU:0} def:{{{node a}} = _Arg[T=DT_INT32, _output_shapes=[[]], _user_specified_name="a", index=0, _device="/job:localhost/replica:0/task:0/device:CPU:0"]()}}
------------------------------------Inputs------------------------------------
    nullptr
------------------------------------Outputs------------------------------------
    nullptr
{name:'add' id:4 op device:{/job:localhost/replica:0/task:0/device:CPU:0} def:{{{node add}} = AddV2[T=DT_INT32, _device="/job:localhost/replica:0/task:0/device:CPU:0"](a, b)}}
------------------------------------Inputs------------------------------------
    nullptr
------------------------------------Outputs------------------------------------
    nullptr
{name:'identity_RetVal' id:5 op device:{/job:localhost/replica:0/task:0/device:CPU:0} def:{{{node identity_RetVal}} = _Retval[T=DT_INT32, index=0, _device="/job:localhost/replica:0/task:0/device:CPU:0"](add)}}
------------------------------------Inputs------------------------------------
    nullptr
------------------------------------Outputs------------------------------------
    nullptr
{name:'_SINK' id:1 sink}
------------------------------------Inputs------------------------------------
    nullptr
------------------------------------Outputs------------------------------------
    nullptr

Obviously, the edges on the figure are completely disordered. For example, AddV2 has the nullptr edge* input in both the input and output.
I have also verified the ConvertGraphDefToGraph interface and the result is the same as that described above. I'm sure this function isn't working properly.
Describe the expected behavior
ConvertGraphDefToGraph should return a valid tensorflow::Graph object, including complete input and output edge information.
Standalone code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate
the problem. If possible, please share a link to Colab/Jupyter/any notebook.
Other info / logs Include any logs or source code that would be helpful to
diagnose the problem. If including tracebacks, please include the full
traceback. Large logs and files should be attached.

sorry i use output_edge to get input...


[Bug] ModuleNotFoundError: No module named 'packaging'

Traceback (most recent call last):
  File "//discord_bot.py", line 4, in <module>
    from bot_modules import get_twitch_data, get_epic_games_data
  File "/bot_modules/get_twitch_data.py", line 4, in <module>
    from webdriver_manager.chrome import ChromeDriverManager
  File "/usr/local/lib/python3.10/site-packages/webdriver_manager/chrome.py", line 7, in <module>
    from webdriver_manager.drivers.chrome import ChromeDriver
  File "/usr/local/lib/python3.10/site-packages/webdriver_manager/drivers/chrome.py", line 1, in <module>
    from packaging import version
ModuleNotFoundError: No module named 'packaging'

When running the bot in Docker, the above error message appears

Maintenance of this project is currently on halt. Many web scraping methods might no longer work due to changes in the target websites. Furthermore, discord.py is no longer maintained by its developers, therefor a rewrite of this project using pycord would be necessary.


remove config argument in portuguese example

I was trying to run this code It gave me a ConfigValidationError:  "spacy_wordnet -> lang	extra fields not permitted", when I removed the config, it works.

Hi @Daniel-R-Armstrong.
What version of spacy are you running? I think I ran into this issue at some point as well.

I too am running into this issue, after removing the config value, is it responding in the correct language? because from what I can see Yo (want|need|have|take|accept|require) como cincuenta euros my responses are in english


Repo commit list in redmine not sync with git repo

Hi,
we've just migrate from redmine 2.5 with git_hosting 0.7.7 plugin version to redmine 3.0.7.stable with git_hosting 1.2.1. It was not without pain, but we achieved it.
Now we can see, on several repo, in redmine that the http://urlredmine/projects/project_name/repository page, is not synced with local git repo on our desktop. We can push to origin, but the page is still out of date.
The git_hosting.log file outputs nothing really bad when we push :
2017-02-06 11:49:38 +0100 [INFO] Done !
2017-02-06 11:59:19 +0100 [INFO] DB Adapter : removed '55' expired cache entries for repository 'projectname/reponame'
2017-02-06 11:59:19 +0100 [INFO] Fetching changesets for 'reponame' repository
2017-02-06 11:59:19 +0100 [INFO] Succeeded!
2017-02-06 11:59:19 +0100 [INFO] Deleting branch 'test-rk'

How can I force to resync the "redmine repo page" with the local repository ? I would like to avoid new repo creation and push.
Thx a lot !
Raphael.

After some test, thing gettings solved if you :

delete the repo from redmine
create a repo with the same name : do not init it with readme ; check your plugins settings to avoid new git repo to be initialized at creation
browse the repo from redmine

Hop this could help someone :]


⚠ Thumbnails API Endpoint has degraded performance

In 3642c77, Thumbnails API Endpoint (https://thumbnails.roblox.com/v1/assets?assetIds=82738847&format=Png&isCircular=false&size=30x30) experienced degraded performance:

HTTP code: 200
Response time: 8426 ms

Resolved: Thumbnails API Endpoint performance has improved in 06e5b60 after 1 minute.


Enable - Allow app extension API only

ReSwift should be usable across widgets and iMessage targets. To be able to do that "Allow app extension API only" should be enabled.

When used with cocoapod this setting can be set in Pods project. But is there a way to resolve this while using carthage?

I recently discovered this when checking the library target's build settings for RxSwift. I have 0 experience with app extensions; can you try flicking the build setting and see what happens? This should directly affect Carthage (while CocoaPods basically provides a build settings override which can become redundant this way, too).


Stack overflow crashes since update to 0.42

Hi,
I have a strange problem with stack corruption since I upgraded from 0.41 to 0.42.
I can pinpoint the behavior it to the update step. Reverting back to 0.41 fixes it.
I upgraded esp-idf-hal from 0.41 to 0.42
and esp-idf-svc from 0.46 to 0.47
esp-idf-sys is 0.33 in both cases.
I get the following crash randomly after a couple of seconds or minutes of runtime of an otherwise correctly working application:
***ERROR*** A stack overflow in task main has been detected.

Backtrace: 0x400825c6:0x3ffc05f0 0x40086291:0x3ffc0610 0x400883b2:0x3ffc0630 0x40087151:0x3ffc06b0 0x400884e0:0x3ffc06e0 0x40088492:0xa5a5a5a5 |<-CORRUPTED
0x400825c6 - panic_abort
    at /.../.embuild/espressif/esp-idf/v5.1.1/components/esp_system/panic.c:452
0x3ffc05f0 - _bss_end
    at ??:??
0x40086291 - esp_system_abort
    at /.../.embuild/espressif/esp-idf/v5.1.1/components/esp_system/port/esp_system_chip.c:84
0x3ffc0610 - _bss_end
    at ??:??
0x400883b2 - vApplicationStackOverflowHook
    at /.../.embuild/espressif/esp-idf/v5.1.1/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:581
0x3ffc0630 - _bss_end
    at ??:??
0x40087151 - vTaskSwitchContext
    at /.../.embuild/espressif/esp-idf/v5.1.1/components/freertos/FreeRTOS-Kernel/tasks.c:3729
0x3ffc06b0 - _bss_end
    at ??:??
0x400884e0 - _frxt_dispatch
    at /.../.embuild/espressif/esp-idf/v5.1.1/components/freertos/FreeRTOS-Kernel/portable/xtensa/portasm.S:450
0x3ffc06e0 - _bss_end
    at ??:??
0x40088492 - _frxt_int_exit
    at /.../.embuild/espressif/esp-idf/v5.1.1/components/freertos/FreeRTOS-Kernel/portable/xtensa/portasm.S:245
0xa5a5a5a5 - _rtc_slow_reserved_end
    at ??:??

My application is built such as that:

I use the target xtensa-esp32-espidf.
main() sets up all things and then returns to the OS into the idle loop.
All work in done in several std::threads that are distributed across the two CPUs.
These threads wait on per-thread std::sync::Condvar for work to be done.
The Condvars are triggered from within one periodic EspTimerService with registered callback that triggers every 10 milliseconds. (Not all threads are triggered on every timer invocation. The CPU load is less than 50% on both cores)

I tried to double the configured stack size from 32k to 64k, which did not help. Therefore, I think it's not a simple too-small stack.
I'm currently unable to really pinpoint the problem to any part of my app. The app runs correctly for some time, until it suddenly crashes with the stack overflow.
Do you have any suggestion as to where to look?
How could upgrading esp-idf-hal and esp-idf-svc trigger such a behavior?
Thanks a lot for your help.

Ok, I think I found the root cause.
Although the error message talks about a stack overflow in the main task, it seems to be a stack overflow in one of the threads.
The stack usage seems to have been borderline full before the update and the update seems to have slightly increased stack usage.
I did now increase the thread stacks with the sdkconfig variable CONFIG_PTHREAD_TASK_STACK_SIZE_DEFAULT.
(The main task stack is controlled by CONFIG_ESP_MAIN_TASK_STACK_SIZE)
Now it doesn't crash anymore.
The error message talking about the main task made me search in the wrong direction.

since you are using a lot of threads from your description you should think about defining the stack_size when building your threads. You can use https://doc.rust-lang.org/std/thread/struct.Builder.html#method.stack_size to configure your specific thread_size for any given thread you spawn, that is maybe a better approach as to just use a default stack_usage for every thread you are using

Hi @Vollbrecht,
thanks a lot for the suggestion.
Indeed, dynamically setting the thread stack size on spawn time is the better solution most of the time.
I think in my case the global configuration might be fine, because I don't actually spawn any small (sub-)threads. I only use a couple of long running main threads.
However, I will check your solution. It looks cleaner. Thanks for the #233 hint. It would certainly have bitten me.


Incoming email integration no attachments

My setup
Debian 9.8
postfix                         3.1.9-0+deb9u2
manage.py version  1.11.26
zulip_version":"2.1.2"
I set up integration Zulip On-Premise server with mail.  Incoming and outgoing mail work without problems.
But I have a problem with attachments. When I send an email with a attachment (pdf, jpeg etc) to the stream email I see the text of the letter but do not see the attachment.

I think this might be fixed in 0beae4408139a95ca5e00c3fd141ffc36acefbe2.  I expect the fix will be in the 2.2.0 release.

You can upgrade to master if you'd like the fix sooner than that :)


Shuffle input cursor reader failed with an exception (Date type)

System Information (please complete the following information):

Model Builder Version (available in Manage Extensions dialog): <IP_ADDRESS>1902
Visual Studio Version: 17.3.2

Describe the bug

On which step of the process did you run into an issue: Train Model

Clear description of the problem:
Using SQL Server view as the datasource, training produces an exception: Shuffle input cursor reader failed with an exception
To Reproduce
Steps to reproduce the behavior:
Create new console app project.
Add ML.Net Model builder
Choose Data Classification scenario
Environment is Local CPU
Data input is SQL server, some DB table with renamed columns.  Column types are Date, money, and int. (No datetime, no guids)
Data Preview shows ok 10 rows of 39.985
Choose Time to train = 60 sec
Press Start training button
Error message "Shuffle input cursor reader failed with an exception
at Microsoft.ML.Transforms.RowShufflingTransformer.Cursor.MoveNextCore()
at Microsoft.ML.Data.RootCursorBase.MoveNext()
at Microsoft.ML.Data.LinkedRowFilterCursorBase.MoveNextCore()
at Microsoft.ML.Data.RootCursorBase.MoveNext()
at Microsoft.ML.Data.IO.BinarySaver.RowsPerBlockHeuristic(IDataView data, ColumnCodec[] actives)
at Microsoft.ML.Data.IO.BinarySaver.SaveData(Stream stream, IDataView data, Int32[] colIndices)
at Microsoft.ML.Data.DataSaverUtils.SaveDataView(IChannel ch, IDataSaver saver, IDataView view, Stream stream, Boolean keepHidden)
at Microsoft.ML.BinaryLoaderSaverCatalog.SaveAsBinary(DataOperationsCatalog catalog, IDataView data, Stream stream, Boolean keepHidden)
at Microsoft.ML.ModelBuilder.AutoMLService.Proposer.ResampleStrategyProposer.Initialize(String outputFolder) in /_/src/Microsoft.ML.ModelBuilder.AutoMLService/Proposer/ResampleStrategyProposer.cs:line 99"

Expected behavior
Train a model without error.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.

@judahr Can you provide us more info about the SQL table you're using? The schema or sample data would be great.

It's probably because shuffle is not support for Datetime type? Let me take a look

@judahr Any update on more info about your SQL data?

Oh I see:

Column types are Date, money, and int

The Date type is probably the problem. Will investigate.

@judahr Can you try again on 16.14.0? We've fixed a few SQL data processing issues.

This should be fixed on the latest version. Please let us know if it doesn't work. Thanks!


Automator: update proxy@master in istio/istio@master

Generated by Automator - 2022-11-16T01:58:17+00:00

@istio-testing: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-pilot-istiodremote_istio
ffa3073b5339c940cf934a8c181be2b7fde71465
link
true
/test integ-pilot-istiodremote

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test integ-pilot-istiodremote


error while running sudo make install

dwm.c:45:10: fatal error: xcb/res.h: No such file or directory
#include <xcb/res.h>
I'm using linux mint.

Do you have a package called libxcb or something similar installed?

i'm not in arch so I think i can't. Do you know of any alternative? thanks for replying.

According to the Linux Mint package list libxcb is available.

I am on Ubuntu 20.04 and I get the same error even though apt-file find xcb/res.h shows libxcb-res0-dev: /usr/include/xcb/res.h.

Here's the list of libraries I had to install on debian to get things to work.
libx11-dev
libxinerama-dev
libxft-dev
libx11-xcb-dev
libxcb-res0-dev

and then build libxft-bgra

sudo apt install libx11-dev libxinerama-dev libxft-dev libx11-xcb-dev libxcb-res0-dev


Deprecated Promise rejection warning

UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'req' of undefined
(node:39861) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

I can confirm this bug. I tried to run the example and the error happens when the callback URI is called.

Fixed in v2.1.0+001, since the only change is in the example file and not the module itself, the version has not actually changed.


passing value for azure_tags paramter

I guess this is likely my lack of knowledge that's causing the problem.
Azure policy on the subscription insists on tags being used.
I've changed build-image.ps1 so that the "azure-tags" parameter is passed as follows:
$azureTags = @{
    BusinessUnit = "IDS"
    Environment  = "Production"
}
packer build    -var "capture_name_prefix=$ResourcesNamePrefix" `
                -var "client_id=$ClientId" `
                -var "client_secret=$ClientSecret" `
                -var "install_password=$InstallPassword" `
                -var "location=$Location" `
                -var "resource_group=$ResourceGroup" `
                -var "storage_account=$StorageAccount" `
                -var "subscription_id=$SubscriptionId" `
                -var "temp_resource_group_name=$TempResourceGroupName" `
                -var "tenant_id=$TenantId" `
                -var "virtual_network_name=$VirtualNetworkName" `
                -var "virtual_network_resource_group_name=$VirtualNetworkRG" `
                -var "virtual_network_subnet_name=$VirtualNetworkSubnet" `
                -var "run_validation_diskspace=$env:RUN_VALIDATION_FLAG" `
                -var "azure_tags=$($azureTags | ConvertTo-Json -Compress)" `

The DevOps pipeline then fails on the BuildVM stage with the following error:

Build ubuntu2204 VM
Error: Variables not allowed
on value for var.azure_tags from arguments line 1:

Can anyone see what I've got wrong?

I received an answer from Paolo on Stack Overflow


Document LabelObject perimeter computations

Update documentation to include a link to the IJ paper:
http://hdl.handle.net/10380/3342

Thanks Brad. AFAIK the classes are not present in the toolkit: may be the code should be made into a remote module?

The LabelMap framework is in ITK as a Group:
https://github.com/InsightSoftwareConsortium/ITK/tree/master/Modules/Filtering/LabelMap/include
Thanks for offering to help. These classes do need a bit of improvement with documentation. The  the data is stored in the objects derived from LabelObject i.e. ShapeLableObject, then there are separate filters which compute the data/attributes i.e. ShapeLabelMapFilter. Also there the filters are re-used in multiple other filters i.e. LabelImageToShapeLabelMapFilter. So it has never been clear where documentation of what the attributes mean and how they are computed should be located.

@blowekamp :+1:  I thought that the classes having to do with the perimeter computation had not been included, but I've just seen that they're in the itk::ShapeLabelMapFilter class. Given that I'm not a heavy user of these classes, I'll just be open to help whenever you request so/when tasks can be split into clearer subtasks.


Bugfix: WaveActiveCountBits on glsl output.

The problem here is that bitCount(subgroupBallot($0) isnt quite right for the intrinsic for GLSL. That subgroupBallot returns uint4. The fix is a little convoluted, because I don't want to implement something super complicated in an 'intrinsic' definition - I'd prefer to use slang. The fix here was to add the function _WaveActiveBallot which exposes the return type as uint4, and then have a special BitCounts function _WaveCountBit that attempts to limit the amount of work based on warp/lane width.
This is perhaps not an ideal solution. That a more elegant answer would just operate on WaveMask, and have a bit count that operated on that. Then the default impl could be more general, where here it's quite specific to this scenario.
More broadly this appears to show issues around how to write target specific code within the standard library, that it would be nice if there could be (say) more than one implementation, so we can have a target specific implementation say.
This PR also contains a fix for the issue of glslang outputting an unable to inline warning. The problem was in the default optimization, the MergeReturnPass needed to be executed before the inline pass.

More broadly this appears to show issues around how to write target specific code within the standard library, that it would be nice if there could be (say) more than one implementation, so we can have a target specific implementation say.

I'm not 100% sure what the limitation is that drives this comment. We can already express target-specific function implementations in the stdlib using __specialized_for_target:
__target_intrinsic(cpu, "1")
int magicFunction()
{
    return 2;
}

__specialized_for_target(glsl)
int magicFunction()
{
    int i = 0;
    i++; i++; i++;
    return i;
}

The above code defines a stdlib function called magicFunction(). In the default case, magicFunction() lowers to an ordinary IR function that returns 2. On CPU targets, it lowers as an intrinsic function, that happens to map to the string "1" in output. For GLSL targets, it lowers as an ordinary function, but uses a distinct definition that is customized to based on what GLSL (seemingly) needs, and it effectively computes 3 (although it does so using ordinary/arbitrary Slang code).
The catch that seems to keep coming up is that the rules for how stdlib functions need to be declared are not clear to everybody. So far I haven't really run into too many cases where they flat out can't express what people want.

Ok didn't realize '__specialized_for_target' was a thing, that'll help in the future.