Umlauts causes R to crash

UPDATE: Now everything works after I updated R to 3.3.1 and dplyr to 0.5.

When I read an excel file that have swedish characters in the colum names the file seems all right but when I try to f.x sort the data frame by a colum with f.x a "ö" in the colname it causes R to crash.
I'm running R 3.3.0 and RStudio Preview 0.99.1228 on Windows 7.
I know that the problem has to do with readxl because everything works when I read the excel file with XLConnect.
Example:
library(XLConnect)
library(readxl)
library(dplyr)

# Reading an excel file ("dat.xlsx") with 2 cols and 2 rows created in Excel 2013:
# region    col_ö
# A 1
# B 2

# reading with readxl (v 0.1.1):
df_readxl <- read_excel("dat.xlsx")

# reading with XLConnect
df_xlc <- readWorksheet(loadWorkbook("dat.xlsx"), 1)

# this works!
arrange(df_xlc, col_ö)

# this cause R to crash with a "fatal error"
arrange(df_readxl, col_ö)

# changing "ö" to "o" solves the problem
names(df_readxl)[2] <- "col_o"

# this works
arrange(df_readxl, col_o)

Session info --------------------------------------------------------------------------------------
setting  value
version  R version 3.3.0 (2016-05-03)
system   i386, mingw32
ui       RStudio (0.99.1228)
language (EN)
collate  Swedish_Sweden.1252
tz       Europe/Berlin
date     2016-06-20
Packages ------------------------------------------------------------------------------------------
package       * version date       source
assertthat      0.1     2013-12-06 CRAN (R 3.3.0)
DBI             0.4-1   2016-05-08 CRAN (R 3.3.0)
devtools        1.11.1  2016-04-21 CRAN (R 3.3.0)
digest          0.6.9   2016-01-08 CRAN (R 3.3.0)
dplyr         * 0.4.3   2015-09-01 CRAN (R 3.3.0)
lazyeval        0.2.0   2016-06-12 CRAN (R 3.3.0)
magrittr        1.5     2014-11-22 CRAN (R 3.3.0)
memoise         1.0.0   2016-01-29 CRAN (R 3.3.0)
R6              2.1.2   2016-01-26 CRAN (R 3.3.0)
Rcpp            0.12.5  2016-05-14 CRAN (R 3.3.0)
readxl        * 0.1.1   2016-03-28 CRAN (R 3.3.0)
rJava           0.9-8   2016-01-07 CRAN (R 3.3.0)
rsconnect       0.4.3   2016-05-02 CRAN (R 3.3.0)
withr           1.0.1   2016-02-04 CRAN (R 3.3.0)
XLConnect     * 0.2-11  2015-03-01 CRAN (R 3.3.0)
XLConnectJars * 0.2-9   2014-08-14 CRAN (R 3.3.0)

Glad various updates seemed to have solved it.


skypeforlinux: <IP_ADDRESS> -> <IP_ADDRESS>

Motivation for this change
This is a Skype version bump.
Things done

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

[X] NixOS
[ ] macOS
[ ] other Linux distributions

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

Notify maintainers
cc @

Briefly tested it, works for me.


Linking meetings in readme.md

in a panic, i looked around for the schedule on here, on twitter and on google, then finally looked through the open issues to find when I was scheduled to speak. Please consider copying or (probably) prominently linking to schedule proposals on readme.md. so far, looks like we've got two candidates.

If this is talking about just linking to the agenda issue that would be pretty clean method to use. Putting the whole agenda though on the readme would get pretty long unless we are talking about just putting the current and maybe the upcoming power hour on it.
You might also use the labeling in GH issues and have an "agenda" and then a "nexthour-agenda". The later one could be used in a floating method where it is assigned to the next agenda that is coming up. Then you just move that label around as they are scheduled.

Yay!  Should be good to go.  Down the line we'll have a bit more automation (well, tooling) around this, but for now, added a link to an agenda.md, and notes on how the repo is organized (e.g. you can pull up /materials/somedate)
Thanks for the reminder on this!


add thread control for pytorch backend

As noted in the issue here: https://github.com/triton-inference-server/server/issues/6896 we have found out the number of threads can affect the pytorch inference performance a lot. In some cases we have seen PyTorch inference runs (super) slow on multi-core CPU machines, and just setting number of instance is not enough to handle the problem. We have tested using at::set_num_threads(1) and confirmed this fixes the slow inference issue.
This PR allows to configure intra_op_thread_count and inter_op_thread_count for pytorch models, similar to other backends such as TF and ONNX, with syntax such as
parameters { key: "INTRA_OP_THREAD_COUNT" value: { string_value: "1" } }
parameters { key: "INTER_OP_THREAD_COUNT" value: { string_value: "1" } }

Thank you for this, we are experiencing the same problem and are being forced to convert our models to ONNX, which in turn is causing other issues.
I'm not a maintainer so I can only validate that this is a real issue for us too.

Triton CLA

I think I've done already that, through my affiliation (fermilab) and my affiliation email. (The other PR is already merged: https://github.com/triton-inference-server/pytorch_backend/pull/120 so hopefully it should be fine I guess?)

Thanks for your contribution!


Linux aarch64 support

Hi!
I'd appreciate if the releases of the aws-cfg-generator tool would also contain a linux version for aarch64 architecture. This would allow me to use it in a VM on my Mac M1. After looking at the release.yaml and the Makefile sadly I have no idea where to add this option (otherwise I'd have opened a PR myself).
Thanks in advance!
Martin

Hey Martin, thanks for reaching out and sorry that it took some time! We can provide an aarch64 release for sure!

Should be done with the latest release.

wow thanks so much @cbrgm @johannes-gehrs !!! :) and no worries, I was able to compile it on my own ... but others ran into the same issue. We'll all appreciate the new version support! Thanks once again!


Team Review - 11th Dec 2019

- Change the font for the web page to use the actual font
- The nav should be inside the body tag
- Remove the inline CSS styling
- Remove the font-awesome JS script
- Position the NYTimes logo at the center of the header
- Change the border bottom color for the header

thanks for the feedback, changes applied where needed


vcpkg install error: "Cannot get dependencies because "...

From @MrJiangSheng:

C:\Users\Administrator\Desktop\vcpkg-master> vcpkg install libpng x64-uwp
Cannot get dependencies because there was none of: source/binary/status paragrap
hs

C:\Users\Administrator\Desktop\vcpkg-master> vcpkg install libpng x64-uwp
Cannot get dependencies because there was none of: source/binary/status paragrap
hs
C:\Users\Administrator\Desktop\vcpkg-master>

I removed the comments from another thread because they were not relevant to that discussion. Additionally, please do not ping random individuals -- many are users like you who won't appreciate the extra emails in their inbox!

@MrJiangSheng, could you ensure you are using the latest vcpkg? I'm unable to reproduce the error you are seeing in the latest version.
To fix the problem immediately: with the syntax install libpng x64-uwp we're interpreting x64-uwp as a package to be installed:
PS D:\src\vcpkg> vcpkg install x64-uwp
Could not find package x64-uwp:x86-windows

I believe you intended to run vcpkg install libpng:x64-uwp.

@ras0219-msft I‘m very glad for you harmness help and sorry for bother all of you.it's my first time to call help in github.

@ras0219-msft thanks a lot.and when I run as you suggested,there is another problem as follow：
Error: Building package zlib:x64-uwp failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with .\vcpkg update, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: zlib:x64-uwp
Vcpkg version: 0.0.79-unknownhash
And the full test is:
C:\Users\Administrator\Desktop\vcpkg-master>vcpkg install libpng:x64-uwp
The following packages will be built and installed:
libpng:x64-uwp

zlib:x64-uwp
Additional packages (*) need to be installed to complete this operation.
Building package zlib:x64-uwp...
-- CURRENT_INSTALLED_DIR=C:/Users/Administrator/Desktop/vcpkg-master/installed/x64-uwp
-- DOWNLOADS=C:/Users/Administrator/Desktop/vcpkg-master/downloads
-- CURRENT_PACKAGES_DIR=C:/Users/Administrator/Desktop/vcpkg-master/packages/zlib_x64-uwp
-- CURRENT_BUILDTREES_DIR=C:/Users/Administrator/Desktop/vcpkg-master/buildtrees/zlib
-- CURRENT_PORT_DIR=C:/Users/Administrator/Desktop/vcpkg-master/ports/zlib/.
-- Using cached C:/Users/Administrator/Desktop/vcpkg-master/downloads/zlib1211.tar.gz
-- Testing integrity of cached file...
-- Testing integrity of cached file... OK
-- Extracting done
-- Configuring x64-uwp-rel
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:14 (message):
Command failed: C:/Users/Administrator/Desktop/vcpkg-master/downloads/cmake-3.8.0-rc1-win32-x86/
bin/cmake.exe;C:/Users/Administrator/Desktop/vcpkg-master/buildtrees/zlib/src/zlib-1.2.11;-DSKIP_INS
TALL_FILES=ON;-DCMAKE_SYSTEM_NAME=WindowsStore;-DCMAKE_SYSTEM_VERSION=10.0;-DBUILD_SHARED_LIBS=ON;-D
VCPKG_TARGET_TRIPLET=x64-uwp;-DCMAKE_CXX_FLAGS= /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP;-DCMAKE_
C_FLAGS= /DWIN32 /D_WINDOWS /W3 /utf-8 /MP;-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON;-DCMAKE_FIND_PACKAG
E_NO_PACKAGE_REGISTRY=ON;-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON;-DCMAKE_INSTALL_SYSTEM_R
UNTIME_LIBS_SKIP=TRUE;-DCMAKE_VERBOSE_MAKEFILE=ON;-DVCPKG_APPLOCAL_DEPS=OFF;-DCMAKE_TOOLCHAIN_FILE=C
:/Users/Administrator/Desktop/vcpkg-master/scripts/buildsystems/vcpkg.cmake;-DCMAKE_ERROR_ON_ABSOLUT
E_INSTALL_DESTINATION=ON;-DCMAKE_CXX_FLAGS_RELEASE=/MD /O2 /Oi /Gy /DNDEBUG /Zi;-DCMAKE_C_FLAGS_RELE
ASE=/MD /O2 /Oi /Gy /DNDEBUG /Zi;-DCMAKE_SHARED_LINKER_FLAGS_RELEASE=/DEBUG /INCREMENTAL:NO /OPT:REF
/OPT:ICF;-DCMAKE_EXE_LINKER_FLAGS_RELEASE=/DEBUG /INCREMENTAL:NO /OPT:REF /OPT:ICF;-G;Visual Studio
15 2017 Win64;-DCMAKE_BUILD_TYPE=Release;-DCMAKE_INSTALL_PREFIX=C:/Users/Administrator/Desktop/vcpk
g-master/packages/zlib_x64-uwp
Working Directory: C:/Users/Administrator/Desktop/vcpkg-master/buildtrees/zlib/x64-uwp-rel
See logs for more information:
C:\Users\Administrator\Desktop\vcpkg-master\buildtrees\zlib\config-x64-uwp-rel-out.log
C:\Users\Administrator\Desktop\vcpkg-master\buildtrees\zlib\config-x64-uwp-rel-err.log

Call Stack (most recent call first):
scripts/cmake/vcpkg_configure_cmake.cmake:100 (vcpkg_execute_required_process)
ports/zlib/portfile.cmake:10 (vcpkg_configure_cmake)
scripts/ports.cmake:73 (include)
Error: Building package zlib:x64-uwp failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with .\vcpkg update, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: zlib:x64-uwp
Vcpkg version: 0.0.79-unknownhash
Additionally, attach any relevant sections from the log files above.
C:\Users\Administrator\Desktop\vcpkg-master>

This looks the same as #1013, so let's continue there.


[html] comments close despite html.autoClosingTags being disabled

Issue Type: Bug
I've got html.autoClosingTags set to false, yet when I type <!-- the editor auto completes -->
VS Code version: Code - Insiders 1.24.0-insider (8a07c8d935998d1b1153dde0c5b337189d35cea0, 2018-05-08T05:16:07.736Z)
OS version: Windows_NT x64 10.0.17134

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz (8 x 4008)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: disabled_softwarerasterization: disabled_softwarevideo_decode: enabledvideo_encode: enabledvpx_decode: enabledwebgl: enabledwebgl2: enabled

Memory (System)
15.90GB (5.11GB free)

Process Argv
C:\Program Files\Microsoft VS Code Insiders\Code - Insiders.exe

Screen Reader
no

VM
0%

Extensions (23)

Extension
Author (truncated)
Version

Bookmarks
ale
0.19.1

copy-relative-path
ale
0.0.2

spellright
ban
2.3.4

markdown-preview-github-styles
bie
0.1.2

better-toml
bun
0.3.2

npm-intellisense
chr
1.3.0

bracket-pair-colorizer
Coe
1.0.48

prettier-vscode
esb
1.3.1

apiconnecttools
IBM
0.0.5

coldfusion
ili
1.0.1

wordcounter
kir
1.2.2

dotenv
mik
1.0.1

vscode-azureappservice
ms-
0.8.0

azure-account
ms-
0.4.0

vetur
oct
0.11.7

polacode
pnp
0.2.2

htmlescape-vscode-extension
ray
0.0.4

vue-vscode-extensionpack
sdr
0.1.2

vue-vscode-snippets
sdr
1.3.0

code-settings-sync
Sha
2.9.2

vscode-status-bar-format-toggle
tom
1.3.0

vscode-jumpy
wma
0.3.1

JavaScriptSnippets
xab
1.6.0

(1 theme extensions excluded)

Oh, that's the auto pair support.

There's no setting for auto pairs  ;-(
Is it that of a pain?

Yes. :) I find myself wrapping content a lot with comments to disable it and this requires me to delete the end pair and retype it. I strongly believe that every auto behavior in an IDE should be configurable. (Code also doesn't let you completely disable auto tabbing either.)

I'd like to second this request. While editing my html files I comment out large sections and have to delete the auto close as well.

That use case of commenting sections of code would be more simply accomplished by highlighting the content and using one of the comment commands to wrap it. The default shortcuts for toggling comments are below and can be configured. Also, for a language like HTML that only has block comments, both commands will work.
Line: Ctrl+/
Block: Shift+Alt+A

"more simply accomplished" assumes you know the key combo. I'm horrible at remembering them. That's why I'd want a setting to simply disable it.

Ctrl K+Ctrl S brings up a searchable list of all of the shortcuts. It's the only one I remember.

Cool. Still want this fixed though. ;)

I hadn't really realized before that they chose that combination for Keyboard Shortcut.
One that is an absolute must is Ctrl+Shift+P for the Command Palette. It has every command searchable by description and displays the keyboard shortcut on the right side.

The request to make autoClosingPairs configurable is #38352. Marking as dup of that.


job_options with 'constraint' gives InvalidJobDescriptionException

Running a job from PyXenon with
scheduler.submit_interactive_job(
    ....,
    options={'constraint': 'TitanX'})

gives the following GRPC error:
(StatusCode.FAILED_PRECONDITION, nl.esciencecenter.xenon.schedulers.InvalidJobDescriptionException: slurm adaptor: Given Job option "constraint" not supported)

Without the given job option, the job runs successfully.

similarly, using the xenon-cli interface:
xenon scheduler slurm --location ssh://fs0.das5.cs.vu.nl/home/jhidding --username jhidding --certfile ~/.ssh/id_rsa --prop xenon.adaptors.schedulers.ssh.strictHostKeyChecking=false exec --option constraint=TitanX cat
slurm adaptor: Given Job option "constraint" not supported

Setting a constraint like that is not supported until https://github.com/NLeSC/Xenon/issues/582 is implemented.
See https://github.com/NLeSC/Xenon/issues/556 for allowed options

Use scheduler_arguments to specify constraints like  --constraint="TitanX"
Fixed in 5fd47190d6df7f2a30261d93cf7fb9db05634021


Implemented CI workflow in GH Actions

FYI: When this PR is merged, we need to delete the old PyPI token.

FYI: When this PR is merged, we need to delete the old PyPI token.

Do you mean that you have already rotated it and updated in the secrets backend?

FYI: When this PR is merged, we need to delete the old PyPI token.

Do you mean that you have already rotated it and updated in the secrets backend?

Correct. Also tested publishing and it works. This PR is ready to be merged.


Traduction intégrale (et cohérente) en français

Avec respect des conventions typographiques
Signed-off-by: Olivier Le Monnier<EMAIL_ADDRESS>

This pull request didn't trigger Jenkins as its author isn't in the whitelist.
An organization member must perform one of the following:

To have this branch tested by Jenkins, use the "ok to test" command.
To have a one time test done, use the "test this please" command.

Those commands are simple Github comments of the format: "jenkins: COMMAND"


Resource timeout.. please try again

I was due an update on my connector as MT4 stopped working with the old bridge version, I went to Github and got the new v2.0.1 mql4(last mth update)  and python(2mths old) snippets and updated on my computer, I am using Python 3.6 on Spyder and MT4 Build 1220 (Sept2019), I also update libsodium and mql and zmq libraries in include and library just in case
I managed to establish the connection, however, the rate of updating of the Dictionary _Market_Data_DB went down considerably, whereas the expert tab on MT4 carries on bursting PUB Socket updates (1 update per second per ccy), the rate of build up of the dictionary on the Python side is much slower (for e.g. GBPUSD and GBPJPY get on 2 updates per minute ,AUDUSD 1 update per minute in the London mng? Before was one update every 1-3 secs)
I see there are some new features on the Python side a pool_timeout and sleep_delay, I don’t want to mess with it and brake it even more, if I can get some advice on what settings I can use to speed up the Market Data updates would be a great help as I use the spot from MT4  from Market_Data_DB as an input for the model and 2 quotes per minute is clearly not enough
Thanks in Advance!
Marcello

Btw EURUSD carries on updating every second on ._Market_Data_DB, it is the others that are an issue and only update once or twice per minute, really puzzling

Manage to get it to work, behaviour on MT4 side has changed. Before MT4 would stream constantly regardless of what was happening on the Python side, now, once you re-start your Python connector you DO need to re-start the MQL4 connector as well by simply going to properties and hitting the OK button, that will re-start the connector afresh from the MT4 side

Gents, while the connection is working there is a new issue that was not happening before, I just missed two trades (on the demo account, no sweat) and got the mesage : Resource timeout.. please try again
Both CPU and Memory running below 50%, both the spyder/python and MT4 running on a Intel I7 Processor with 40GB of running, it is certainly not the computer resources, any light here pls?

A bit more information on the issue, regarding dependencies:
the dependencies described on the GitHub project  https://github.com/darwinex/dwx-zeromq-connector :
•	Python: (minimum v3.6) – I am at 3.6.8
•	libzmq: (minimum v4.2.5) – the one available on the repository is v 4.2.1, which seems to be the same as before the last update but just highlighting
•	pyzmq: (minimum v17.1.2) – I use 18.0.0
regarding the behaviour of the connector:
Once both MT4 and Python connectors have been initialised and I subscribe for Data via Python Connector, the connector works well for trading instructions i.e. I can open and close as many trades as I want but the subscription doesn't work well, i.e PUSH Port is working but SUB Port not working properly
For e.g. I subscribe for EURUSD, AUDUSD, GBPUSD, GBPJPY, USDJPY, if I go to the dictionary and look at ._Market_Data_DB only EURUSD is really working the others get one update per minute if any, below you can see on the timestamps eurusd is working, all the other ones are not, despite the Expert tab on MT4 be bursting with update on all 5 currencies, GBPJPY didnt get any updates...
'2019-10-16 19:33:27.022809': (1.10757, 1.10761),
'2019-10-16 19:33:27.134544': (1.10758, 1.10761),
'2019-10-16 19:33:29.835253': (1.10758, 1.1076),
'2019-10-16 19:33:30.038707': (1.10758, 1.10759)},
'AUDUSD': {'2019-10-16 19:30:11.895641': (0.67632, 0.67637),
'2019-10-16 19:32:28.069566': (0.67626, 0.67632)},
'GBPUSD': {'2019-10-16 19:32:01.289154': (1.2833, 1.28343)},
'USDJPY': {'2019-10-16 19:32:14.814297': (108.727, 108.732)}}
If I then go to MT4 on the graph where the EA is and ask for properties of the EA, just double click on any variable without changing them and just hitting Ok the EA re-initialises, and then the subscription starts bursting Data on the python side on all ccys subscribed but the trading functionality stops working, so the SUB Port starts working but the PUSH Port brakes down
Any help on this issue is appreciated
Thanks
Marcello

I tried to change the order of the ccys on MQL4 string Publish_Symbols and learned that only the first ccy gets constantly updated on Python  ._Market_Data_DB the other ccys just get rarely few updates, I hope this information helps as I am not familiar with the inner guts of the connector. Thx

Hi @mcavalcax ,
Thank you for providing an extensive account of observations!
We're going to try and reproduce the issue, then come back to you with a solution - stay tuned.

@mcavalcax - just a quick note in addition to the previous message. Please bear in mind that the symbol you deploy the EA to will affect the frequency of updates as well.
This is because the code that fires off bid/ask updates is enclosed inside the OnTick() method in the EA, an event that fires when a new tick arrives on the chart the EA is deployed on.

Agreed that depending on the currency the frequency of the updates will be different, but as described above the first ccy listed on the mq4 EA under the Publish Symbols string gets most of the updates whereas the other ones dont get any. If I put AUDUSD first and EURUSD second, AUDUSD will get roughtly 1 update per second and EURUSD 1 update per minute if any, when EURUSD comes first it gets between 1 and 3 updates per second

Happy to inform you that we've isolated the issue and are working on a patch 🙂
Stay tuned!

Fantastic News, I am happy to run heavy testing on it once the patch is in.
From: Ali Saif<EMAIL_ADDRESS>Sent: 06 November 2019 14:25
To: darwinex/dwx-zeromq-connector<EMAIL_ADDRESS>Cc: mcavalcax<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [darwinex/dwx-zeromq-connector] Resource timeout.. please try again (#48)
Happy to inform you that we've isolated the issue and are working on a patch 🙂
Stay tuned!
[DWX_ZeroMQ_Market_Subscription_Fix_1]https://user-images.githubusercontent.com/33300041/68306318-9ce5cb80-00a9-11ea-9c69-4b77e0eef74a.gif
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/darwinex/dwx-zeromq-connector/issues/48?email_source=notifications&email_token=AG675GH45IPGKOS467DP2L3QSLHUTA5CNFSM4JAZZB4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDGWOCY#issuecomment-550332171, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AG675GFACE5A2ZNHWBITXLDQSLHUTANCNFSM4JAZZB4A.

Hi, I have an issue like that.
If I run my python algorithm  didn't open the trade and give me "Resource timeout.. please try again".
But if I created manually a trade on jupiter notebook and send manually the same command to open a trade, It works !!!
What is the issue here ?
I need to run automatically a script and see my mt4 that open or close trade.Help me.
Thank you !
R.I.P. Mamba KB

Hi Everyone.
On the matter of resource timeout when capturing Historical data for multiple instruments to _History_DB, I found that including a time.sleep(0.005) counter after carrying out each request solved it. I think it's a matter of too many requests to the same port, as well as re-writing the same dict multiple times. Gratefully, the execution speed isn't greatly affected.


Multiple tabs - call to the same auth endpoint which throws an error.

Issue and Steps to Reproduce
Hello,
we came upon an issue with the request timing.
Our setup:
We are using a provider that gives us the access_token and the refresh_token.
The most important thing -> the refresh_token could be used only once.
If it is used again the auth provider throws a 400 error.
The problem:
We have our app in multiple tabs. Lets say 4 tabs. The first tab is doing a request and 3 other take the response by service worker. But sometimes after running for random amount of time 19m or 2h the app sends 2 requests form two different tabs. The one tab succeeds with 200 but the other have a 400. So the session lost is immediately shown on the second tab.
The timing on the requests is the same.
Is there a way to specify that only one tab could do the requests?
Maybe using https://developer.mozilla.org/en-US/docs/Web/API/Web_Locks_API?
Versions
7.7.2
Screenshots
The screenshots are from two different tabs in the same window.

Expected
We only do request from on tab. Never from more than one.
Actual
Sometimes there are two request with the same refresh_token and the app says session lost.

hi @pr0xyMity , thank you for your issue.
It should have taken a long time to understand what happened.
It is very interessting. Previously I have added a random number of time for each tabs.
I did not know about lock request. it look like it will be a good solution for resolve that issue.
I'am in holiday this week. I may be able to fix it more onto the next week.

hi @guillaume-chervet we have seen the random number in the code.
Firstly we assume that this will help, but sometimes if you have more tabs you can hit the exact same time for some tabs which leads to this error.
Maybe there should be an option that only one tab (maybe the first one open, the last one or even random) could do the authorization requests. If one tab out of bunch will have this leader flag this error would not appear never for n tabs.
Thank you for your response, enjoy the holiday!

It seem related to this issue too #1055
Thank to @nicolas-goudry , i have a working example and thank to you @pr0xyMity , we have may be a solution ^^

Hi!
Just wanted to let you know that we have the same issue. It was partially fixed, as @guillaume-chervet mentioned in https://github.com/AxaFrance/oidc-client/issues/1039 by subtracting a random number from refresh_time_before_tokens_expiration_in_second.
However, the issue still occurs sometimes, especially when many tabs are opened simultaneously. It would be great to have it solved and solution with Web Locks API looks very promising.

I have make a mistake and push directly to main :/
version 7.9.3-alpha.1131 published start resolve the problem but it is not perfect.

I hit the same bug myself. To reproduce, I configured the OIDC server to issue tokens valid for 30 seconds, and I specified refresh_time_before_tokens_expiration_in_second to be 15 seconds.
I've attached a screen recording played back at 4x speed, showing what happens across two tabs.
If the left tab is Tab1 and the right tab is Tab2, then the sequence of events are:

Time 0: Tab2 refresh tokens successfully
Time 15: Tab1 refresh tokens successfully
Time 30: Tab2 refresh tokens successfully
Time 30+: Tab1 fails to refresh as it reuses the same refresh token as Tab2, which was just consumed.

Looking at this line: https://github.com/AxaFrance/oidc-client/blob/6667eabc8c5cb0ff5874b6583b2223721bd18525/packages/oidc-client/src/renewTokens.ts#L42
, should we specify ifAvailable: true here?
It seems like both tabs try to acquire a lock simultaneously, where Tab2 acquires it first, and Tab1 gets queued, and when Tab2 completes, Tab1 refreshes but with the old refresh token.
There shouldn't be a need for Tab1 to refresh as long as the tab gets a copy of the new tokens when Tab2 finishes. Therefore, ifAvailable: true makes sense to me.
https://github.com/AxaFrance/oidc-client/assets/4549941/e9a005e3-063c-42e1-8ec1-7eebe353efab

Hi @BugGambit , I will set it back temporary, but i will need more work and to clean some code to make it works properly. I am lacking of time these days :(

Hi @BugGambit i published back few days ago a better fix that sould work.
I need to clean that part.

@guillaume-chervet I tested the new version, and it works like a charm 💯 Thanks for fixing this.

Thank you for the feedback @BugGambit :)
I still need to clean deeper all this renew part.


why is number of retrieved chunks is 2 and chunk overlap is 0 in testset.generator.from_langchain?

Is there a specific reason these decisions were made about the testset setup and is there a way to influence number of chunks retrieved and chunk overlap in the code below:
@classmethod
def from_langchain(
    cls,
    generator_llm: LangchainLLM,
    critic_llm: LangchainLLM,
    embeddings: LangchainEmbeddings,
    docstore: t.Optional[DocumentStore] = None,
    run_config: t.Optional[RunConfig] = None,
    chunk_size: int = 1024,
) -> "TestsetGenerator":
    generator_llm_model = LangchainLLMWrapper(generator_llm)
    critic_llm_model = LangchainLLMWrapper(critic_llm)
    embeddings_model = LangchainEmbeddingsWrapper(embeddings)

    keyphrase_extractor = KeyphraseExtractor(llm=generator_llm_model)
    if docstore is None:
        from langchain.text_splitter import TokenTextSplitter

        splitter = TokenTextSplitter(chunk_size=chunk_size, chunk_overlap=0)
        docstore = InMemoryDocumentStore(
            splitter=splitter,
            embeddings=embeddings_model,
            extractor=keyphrase_extractor,
            run_config=run_config,
        )
    return cls(
        generator_llm=generator_llm_model,
        critic_llm=critic_llm_model,
        embeddings=embeddings_model,
        docstore=docstore,
    )

@murdadesmaeeli it was decided based on what works best for Arxiv papers. with #1016 we will improve it to be a bit more customisable.
let me know if you have any more questions?


Possible to exclude colours?

First of all thank you for this library!  Secondly, I encountered a situation where I would like to generate colours sequentially however once a colour has been generated, I would like the next generated colours to exclude the already existing ones (given an array of some sort).  Would you think this be possible?
I just realised that issue #58 is practically the same query.

Double https://github.com/davidmerfield/randomColor/issues/58

Going to close this since it is a duplicate of #58, thanks @Koshux and @card100.


Updated README with Step by Step Troubleshooting

Update resulting from https://github.com/creationix/nvm/pull/961

Thanks, this looks great! Would you mind rebasing it down to a single commit?

OK, I think I just did…
Sorry new to Git.
On March 25, 2016 at 5:02:30 PM, Jordan Harband<EMAIL_ADDRESS>wrote:
Thanks, this looks great! Would you mind rebasing it down to a single commit?
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub

@markerx i'm afraid not - no worries tho! You could try, assuming source is the remote for this repo, and origin is your remote, git fetch && git checkout master && git rebase -i source/master and then change all but the first "pick" to "fixup", and save and quit the editor - and that should squash all of them down to the first commit. Then you can git push origin master -f to update the PR.

So I have no idea what I am doing wrong:
MBA2014:nvm Brandon$ git fetch && git checkout master && git rebase -i source/master
Warning: you are leaving 1 commit behind, not connected to
any of your branches:
827f52c Edits to README
If you want to keep it by creating a new branch, this may be a good time
to do so with:
git branch  827f52c
Switched to branch 'master'
Your branch is up-to-date with 'origin/master'.
fatal: Needed a single revision
invalid upstream source/master
MBA2014:nvm Brandon$ git push origin master -f
Everything up-to-date
On March 25, 2016 at 6:16:48 PM, Jordan Harband<EMAIL_ADDRESS>wrote:
git fetch && git checkout master && git rebase -i source/master

You may need git remote add source git@github.com:creationix/nvm.git as well

@markerx do you have any interest in completing this PR?

@markerx please check the "allow edits" checkbox on the RHS of the PR.


Difference between mvn.yaml and mvn_pretrain.yaml in config dir

What is the difference?
What should I run to get the results in the paper?

Run with mvn.yaml.
The 'mvn_pretrain.yaml' was used for trying on pretraining on MovieNet-PS and then finetuning on CUHK-SYSU / PRW. It helps a lot with the detection at the beginning, but no extra improvement to the re-id.

Thanks for the answer.
In the mvn.yaml file, the BATCH_SIZE_TRAIN: 32, which means batch size is set to 32.
However, the batch size is set to 15 in the paper. Which one should I use?
Also, have you tried to use batch size=5 same as when using other datasets such as PRW and CUHK-SYSU?

You can stick to the parameters in the paper since we did a lot of further modifications on the previous codes.
I think I used batch size = 5 for the MovieNet-PS, but I don't quite remember the results (maybe close to the current ones). To be honest, the performance of GLCNet on MovieNet-PS is easy to obtain. I even did not try many times for higher performance at that time.


Deployment Error: The total size of all Environment Variables (7.12KB) exceeds 4KB

I'm getting this error during deployment.
Error! The total size of all Environment Variables (7.12KB) exceeds 4KB.
Learn More: https://vercel.com/docs/v2/platform/limits#environment-variables
Error: The process '/opt/hostedtoolcache/node/12.20.1/x64/bin/npx' failed with exit code 1

I have two branches, namely - dev and main and they point to staging and prod domains respectively. The staging is working fine, but the prod throwing this error. I have absolutely no environment variables defined in the Vercel project, I have double-checked that.

Have you tried setting github-comment to false? It might be that the commit message is too long.

I am having the same problem. Our team is using squash merge as a merge strategy. But if you take a branch by dividing production and stage, the commit message can easily become long. It would be nice if an option was added so that the commit message could be selectively delivered.

We ran into the same issue as well, but squashing the commits and giving it a short title fixed the problem. Thanks for the workaround on this.

The commit message should be truncated by this GitHub Action once it reached a the limit.

Hi there! Wanted to update you on this issue. The limit has now been increased to 64KB. Here is the changelog


tflite_micro python package with signal ops

BUG=#2357
Description
The proposed solution includes signal_ops to the tflite_micro python package. Adding signal_ops introduces a linker dependency to the specific tensorflow-cpu version the tflite_micro package was build against. E.G. when the python package was build against tensorflow-cpu==2.12.0, the version that is used in the requirements.txt, the signal ops will only be able to work when tensorflow=2.12.0 is installed on the system. Tested the build with up to version 2.15.0
Possible improvements
I added the tensorflow target version (2.12.0) to the requirements of the WHEEL and third_party/python_requirements.in. This should  probably be done somewhere at a central place. Feedback is welcomed.

Does the CI require a rebase instead of a merge?

Does the CI require a rebase instead of a merge?

No, merge is fine.

@ericheim - Just as an FYI, I'm interested in merging this, just working out the ramifications of pinning against a specific version of the tensorflow.

Hi @rkuester , @rascani Thanks for your feedback!
@rascani The pinning of the tensorflow version can probably be done somehwere in a central place.
@rkuester import paths in the example tflite-micro/tensorflow/lite/examples/micro_speech can also be changed after adopting the __init__.py.

The pinning of the tensorflow version can probably be done somehwere in a central place.

Understood, but we have to consider that not all users will be using the same tensorflow version. As I understand it, TF doesn't have any ABI stability guarantees between minor versions (and we're depending on C++ code), so this essentially requires all users to use 2.12. That might be okay, but we need to figure out what the policy should be for this version.

Thanks for adding the test, @ericheim.
I'm working on the import name issue. You're right, adding a subpackage to the public API via the __init__.py trick doesn't work the same way that adding a module works.

Resolved merge conflict. The solution still has to be pinned against a specific tensorflow version.


Updating primitives names in cells directory

Fixes https://github.com/google/globalfoundries-pdk-libs-gf180mcu_fd_pr/issues/1

Renaming all primitives with its new name except [resistors / sc_diode] in the following directory

globalfoundries-pdk-libs-gf180mcu_fd_pr/cells

@mithro Changes is completed including cap_mim as you agreed with @atorkmabrains


Auto publish to package repositories

Auto publish updates to Elm and npm repos.

Done for Elm. NPM is still pending.


Tensorflow C++ not releasing GPU resources after closing the session

System information

Have I written custom code:: No
**OS Platform and Distribution: **: Windows 10
TensorFlow installed from: source
TensorFlow version (use command below): tensorflow r1.7
Python version:  N/A
Bazel version (if compiling from source): N/A
GCC/Compiler version (if compiling from source): MSVC v140
CUDA/cuDNN version:  CUDA 9.0 and cuDNN v7.0.5
GPU model and memory:  NVIDIA GeForce GTX 1050 Ti 4095 MB
Exact command to reproduce: See code below

Describe the problem
Compiled tensorflow C++ with GPU support from source (branch r1.7) on Windows 10. Upon creating a new session 3GBs of memory are allocated on the GPU. Closing the session does not seem to result in the memory being released from the GPU as confirmed by the nvidia-smi command. Resources are only released when the C++ program exits.
It would be desirable to have the option of releasing all the resources that tensorflow allocated since in the application I am developing the GPU computation is needed only very infrequently and if tensorflow keeps the GPU memory it is not available for rendering etc.
Source code / logs
int main()
{
    SessionOptions options;
    Session* session;
    tensorflow::Status status = NewSession(SessionOptions(), &session); // returns ok

    status = session->Close(); // returns ok
    delete session;

    // GPU memory is still occupied at this point
    std::string s;
    std::cin >> s;

    return 0;
}
// GPU memory is released when process exits

@cy89 do you know how GPU memory is supposed to be released, or can you redirect as necessary? Thanks.

Nagging Assignee @cy89: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

From perusing the related issues that @sjperkins listed, it seems to me like this issue remains open in a number of places, and that @zheng-xq seems to have the most definitive opinions. I'll redirect to him.

One suggestion comes to mind: Change the ProcessState (base and GPU) instance method to return a shared_ptr that destroys ProcessState when the reference count drops to zero.

Nagging Assignee @zheng-xq: It has been 17 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @zheng-xq: It has been 33 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

I too am having this issue. I wish to embed tensorflow within a c++ application that has other modules that wish to use the GPU so it is essential that I am able to free the GPU memory when Tensorflow has finished with it. Is there any progress on this??

Same here. We could not find code sample to free the GPU memory when Tensorflow has finished processing. This can be done either as part of config itself or a code snippet at the end of the program.

Adding one more related  issue #17048
The mechanism in eager execution where memory can be allocated or deallocated on the fly may be potentially helpful, or add built-in function to check and free cache in cuda after session finishes.

Nagging Assignee @wt-huang: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Closing this issue as there are a couple of workarounds depending on implementation specifics.


[POC] Make inline podspec concrete instead of a pointer

Resolves an API issue with embedded pointer types.

Custom specs are now json:",inline,omitempty"
Validation logic now only includes custom if containers are specified

This is merged into Dan's PR


Clamping of Synapse: Following Synapse might also be clamped

If I create a network where cells are connected via RibbonSynapses, and I apply a data clamp to one of the RibbonSynapses, not only is the current synapse clamped to the defined value, but also the next synapse in sequence (with an incremented index).  Further, it doesn't matter which method I use to index the synapses (so if I use the pre or post synapsing indexing or the indexing via the edges). An example is attatched:
Jax version: 0.4.35
import matplotlib.pyplot as plt
import jaxley as jx
import jax
from jaxley_mech.synapses.ribbon import RibbonSynapse
from jaxley.connect import  connect
from jaxley_mech.channels.hodgkin52 import Leak, Na, K
import jax.numpy as jnp
import numpy as np

from jax import config
config.update("jax_enable_x64", True)
config.update("jax_platform_name", "gpu")

# Create a new dummy network
comp_opt = jx.Compartment()
branch_opt = jx.Branch(comp_opt, nseg=1)
cell_opt = jx.Cell([branch_opt], [-1])
net_opt = jx.Network(cells=[cell_opt] * 4)

# Insert the leak channel into the cell
net_opt.insert(Leak())
net_opt.insert(Na())
net_opt.insert(K())

v_rest = -70

# Set the resting potential of the cell and also to equilibrium of the
# leak channel to the resting potential, so that the overall resting
# potential of the cell is the resting potential
net_opt.set('v', v_rest)
net_opt.set('Leak_eLeak', v_rest)

# Define the pre, middle and post cell
first = net_opt.cell(0)
second = net_opt.cell(1)
third = net_opt.cell(2)
fourth = net_opt.cell(3)

# Connect the cells with the ribbon synapse
connect(first, second, RibbonSynapse(solver = "newton"))
connect(second, third, RibbonSynapse(solver = "newton"))
connect(third, fourth, RibbonSynapse(solver = "newton"))

net_opt.cell([0,1]).set('RibbonSynapse_V_half', v_rest/2)
net_opt.cell([1,2]).set('RibbonSynapse_V_half', v_rest/2)
net_opt.cell([2,3]).set('RibbonSynapse_V_half', v_rest/2)
net_opt.cell('all').set('RibbonSynapse_gS', 0)

# Parameters
time_max = 1000
dt = 1
time_steps = int((time_max + dt)  / dt)

# Time vector
time_vec = jnp.arange(0.0, time_max, dt)

# Generate a base signal with a Gaussian function
mean = (time_max / 2) - 100  # Center of the Gaussian
std_dev = 100  # Standard deviation of the Gaussian
base_signal = (np.exp(-0.5 * ((time_vec - mean) / std_dev) ** 2)) * 3 +2

# Get a 2d array of inputs by putting the base signal in the first column
# and the base signal shifted by 1 in the second column
inputs = jnp.array([time_vec, base_signal]).T

# Integrate the network without using vmap and jit
net_opt.delete_recordings()
net_opt.delete_stimuli()

#net_opt.cell([0,1]).record("RibbonSynapse_exo")
#net_opt.cell([1,2]).record("RibbonSynapse_exo")
#net_opt.cell([2,3]).record("RibbonSynapse_exo")

net_opt.RibbonSynapse.edge(0).record("RibbonSynapse_exo", verbose = False)
net_opt.RibbonSynapse.edge(1).record("RibbonSynapse_exo", verbose = False)
net_opt.RibbonSynapse.edge(2).record("RibbonSynapse_exo", verbose = False)

net_opt.cell(0).record("v")
net_opt.cell(1).record("v")
net_opt.cell(2).record("v")
net_opt.cell(3).record("v")

data_clamps = None
# Input are the y-values of the inputs
#data_clamps = net_opt.cell([0,1]).data_clamp("RibbonSynapse_exo", inputs[:,1], data_clamps = data_clamps)
data_clamps = net_opt.edge(0).data_clamp("RibbonSynapse_exo", inputs[:,1], data_clamps = data_clamps)

# Integrate the network
s = jx.integrate(net_opt,
                data_clamps = data_clamps,
                solver = "bwd_euler")

fig, ax = plt.subplots(s.shape[0], 1, figsize=(10, 20))
# Increase space between subplots
plt.subplots_adjust(hspace=1)

# Loop over the subplots and plot each synapse
for i in range(s.shape[0]):
    ax[i].plot(s[i, :])
    if i < 3:
        ax[i].set_title(f"Synapse {i + 1}")
    else:
        ax[i].set_title(f"Mmebrance Voltage Cell {i - 3}")

Hey, thanks for reporting this. Two things that would be really helpful to clarify this:

Did you check if this also applies to other synapses, i.e. IonotropicSynapse? If this is not the case I suspect this might be an issue in jaxley_mech.
If 1 is not the case, could you come up with a more minimal example, i.e. rm everything that's not strictly necessary but still produces this behavior. That would be really helpful to debug this.

I tried to clamp the parameters of the IonotropicSynapse, but the library doesn't accept that in the data_clamp:
import matplotlib.pyplot as plt
import jaxley as jx
import jax
from jaxley.synapses import IonotropicSynapse
from jaxley.connect import connect
from jaxley_mech.channels.hodgkin52 import Leak, Na, K
import jax.numpy as jnp
import numpy as np

# Create a new dummy network
comp_opt = jx.Compartment()
branch_opt = jx.Branch(comp_opt, nseg=1)
cell_opt = jx.Cell([branch_opt], [-1])
net_opt = jx.Network(cells=[cell_opt] * 4)

# Insert the leak channel into the cell
net_opt.insert(Leak())
net_opt.insert(Na())
net_opt.insert(K())

# Connect the cells with the synapses
connect(net_opt.cell(0),  net_opt.cell(1), IonotropicSynapse())
connect(net_opt.cell(1), net_opt.cell(2), IonotropicSynapse())
connect(net_opt.cell(2), net_opt.cell(3), IonotropicSynapse())

# Set the conductance of the synapse to zero
net_opt.cell('all').set('IonotropicSynapse_gS', 0)

inputs = jnp.ones(1000)

net_opt.delete_recordings()
net_opt.delete_stimuli()

# Record the conductance of the synapses
net_opt.cell([0,1]).record("IonotropicSynapse_gS")
net_opt.cell([1,2]).record("IonotropicSynapse_gS")
net_opt.cell([2,3]).record("IonotropicSynapse_gS")

# Clamp the cell
data_clamps = None
data_clamps = net_opt.cell([0,1]).data_clamp("IonotropicSynapse_gS", inputs, data_clamps = data_clamps)

# Integrate the network
s = jx.integrate(net_opt,
                 data_clamps = data_clamps,
                 solver = "bwd_euler")

fig, ax = plt.subplots(2, 1, figsize=(5, 5))
ax[0].plot(s[0, :])
ax[1].plot(s[1, :])

This always yields the error, which doesn't make so much sense for me since I was able to set IonotropicSynapse_gS to 0 before:

I did exactly the same with the RibbonSynapse and there the data_clamp worked.

I think I found the origin of the problem which it is more like an inconsistency. If I use data clamp you have to use the index of the pre synaptic cell to clamp the according Synapse, e.g. cell(pre_synaptic). However, since the synapsing indexing was changed to something like cell[pre_synaotic_cell, post_synaptic_cell] and the data_clamp function remained the old functionality, this might
caused the problem.

Thanks for checking up on this, I found the likely culprit. Will fix asap. You can keep track of the progress in #492.


Request for SecretStream encryption/decryption example

I am playing around XChaCha20 crypto.secretStream. I've managed to successfully run encryption and decryption of two chunks, but only if it's executed from the same code block (no data serialization in between the encryption and decryption).
In my example (like in most cases),  I need to operate on raw data. That means that after encryption I need to clearly get the: nonce, ciphertext and tag. Conversely having raw nonce, ciphertext and tag I need to initialize the decryption process. This is where I am failing.
Code that fails (for simplicity I am using only single chunk):
  test('libsodiumXChaCha20IntegritySerializedSimple', () async {
    final libsodium = DynamicLibrary.open('/usr/lib/x86_64-linux-gnu/libsodium.so'); // dpkg -L libsodium-dev | grep "\.so"
    final sodium = await SodiumInit.init(libsodium);

    final plaintextChunk1 = "encrypted_test_contents1";

    final unwrappedKey = AesKwRfc3394.unwrap(encryptedKey, base64MasterKey);
    final secureKey = SecureKey.fromList(sodium, Uint8List.fromList(unwrappedKey));

    final encryptedChunk1 = sodium.crypto.secretStream.push(messageStream: Stream.fromIterable([Uint8List.fromList(utf8.encode(plaintextChunk1))]), key: secureKey);
    final encryptedChunk1Raw =  (await encryptedChunk1.toList()).first;

    final chunk1CipherMsg = SecretStreamCipherMessage(encryptedChunk1Raw);

    // decrypt

    final decryptedChunk1 = sodium.crypto.secretStream.pullEx(cipherStream: Stream.fromIterable([chunk1CipherMsg]), key: secureKey);

    final l1 = await decryptedChunk1.toList();
    final decodedChunk1 = utf8.decode(l1.first.message);

    assert(plaintextChunk1 == decodedChunk1);
  });

It fails on:
final l1 = await decryptedChunk1.toList();

with:
cipher stream was closed before the final push message was received

Code that seem to work and does the encrypt/decrypt in one go.
test('libsodiumXChaCha20Integrity', () async {
    final libsodium = DynamicLibrary.open('/usr/lib/x86_64-linux-gnu/libsodium.so'); // dpkg -L libsodium-dev | grep "\.so"
    final sodium = await SodiumInit.init(libsodium);

    final plaintextChunk1 = "encrypted_test_contents1";
    final plaintextChunk2 = "somethingThatWouldLikeTo";

    final unwrappedKey = AesKwRfc3394.unwrap(encryptedKey, base64MasterKey);
    final secureKey = SecureKey.fromList(sodium, Uint8List.fromList(unwrappedKey));

    final encryptedChunk1 = sodium.crypto.secretStream.push(messageStream: Stream.fromIterable([Uint8List.fromList(utf8.encode(plaintextChunk1))]), key: secureKey);

    final chunk2Msg = SecretStreamPlainMessage(Uint8List.fromList(utf8.encode(plaintextChunk2)), tag: SecretStreamMessageTag.finalPush);
    final encryptedChunk2 = sodium.crypto.secretStream.pushEx(messageStream: Stream.fromIterable([chunk2Msg]), key: secureKey);

   // decrypt

    final decryptedChunk1 = sodium.crypto.secretStream.pull(cipherStream: encryptedChunk1, key: secureKey);
    final decryptedChunk2 = sodium.crypto.secretStream.pullEx(cipherStream: encryptedChunk2, key: secureKey);

    final l1 = await decryptedChunk1.toList();
    final decodedChunk1 = utf8.decode(l1.first);

    final l2 = await decryptedChunk2.toList();
    final decodedChunk2 = utf8.decode(l2.first.message);

    assert(plaintextChunk1 == decodedChunk1);
    assert(plaintextChunk2 == decodedChunk2);
  });

EDIT: I've came across this example which I am going to play with: https://github.com/Skycoder42/libsodium_dart_bindings/issues/11#issuecomment-1191800085

This example works: https://github.com/Skycoder42/libsodium_dart_bindings/issues/11#issuecomment-1191800085, so I am going to close this issue.
Sorry for spamming, soon after I've added this, I've managed to find this example.

It seems that example above authenticates every message, which seem to be: crypto_secretstream_xchacha20poly1305_TAG_PUSH behavior as documented in https://libsodium.gitbook.io/doc/secret-key_cryptography/secretstream
I am looking for: crypto_secretstream_xchacha20poly1305_TAG_MESSAGE behavior. I would like to process stream in chunks, but only process/generate authentication tag at the end.
I am going to play around, but I am definitely lacking the advanced Dart skills to understand the convenience layer around C version of libsodium.

Thanks for the hint. I am specifically looking at: https://github.com/Skycoder42/libsodium_dart_bindings/blob/main/packages/sodium/test/integration/cases/secret_stream_test_case.dart#L69 as it presents different tag parameter usage.
I need to say it still doesn't understand it.
There are 6 plainEvents, that translates to 7 (which is first with nonce + 6) cipherEvents, that's fine. However when you look closely at the corresponding sizes, every cipherEvent is 17 bytes longer than the corresponding plainEvent.
I would've thought that the first two events:
SecretStreamPlainMessage(Uint8List.fromList(const [1, 2, 3])),
SecretStreamPlainMessage(Uint8List.fromList(const [3, 2, 1])),

shouldn't have the authentication tag added at the end, since by default: SecretStreamMessageTag.message shall be used.

I am going to try it in underlying C library, as I am not 100% sure that's actually how the: SecretStreamMessageTag.message is supposed to work.

Well, I haven't used C, but rather debugged how C is invoked and it seems that's really what libsodium returns.
Given their documentation: https://libsodium.gitbook.io/doc/secret-key_cryptography/secretstream, it says: "An authentication tag is added to each encrypted message", it might actually be how it's designed.
I am actually not sure if there is any way to NOT add the authentication tag at the end of the cipher text, every time push is called.
... and if that's the case then the resulting ciphertext isn't a continuous stream really. It's just a concatenation of the individual pairs (ciphertext+tag), which would be compatible with the libsodium only.
I am also failing to understand what's the difference between: TAG_MESSAGE and TAG_PUSH and I've learnt that TAG_FINAL does nothing else than deletes the state. It's confusing to me, as other encryption libraries have that distinction, which is process (encrypt/decrypt and not sign) and then doFinal (encrypt/decrypt remaining bit and then sign/verify)
At this stage I am going to explore more libsodium functions and perhaps reach out to maintainer for some help.

That's right, I was overly enthusiastic when I've seen the word: stream in the library, turns out I need to keep digging.
To confirm all that, I've just received an official response from the maintainer which confirms that in fact streaming isn't supported.
https://github.com/jedisct1/libsodium/discussions/1255#discussioncomment-4798488
Since this issue isn't really related to: libsodium_dart_bindings I think I am going to close that one.
Thank you for your help on this.


express Response.sendStatus returns Response (not a Send object)

Note that in express.Response sendStatus returns send(body)...
https://github.com/strongloop/express/blob/master/lib/response.js#L327
...which returns this (Response object)...
https://github.com/strongloop/express/blob/master/lib/response.js#L193

@jt000 thanks mate!


Page discusses to re-enable SQL change tracking but the actual SQL is missing

page: https://docs.microsoft.com/en-us/dynamics365/unified-operations/dev-itpro/database/copy-database-from-sql-server-to-azure-sql
heading: Enable change tracking
SQL code to be added:
ALTER DATABASE [your database name] SET CHANGE_TRACKING = ON (CHANGE_RETENTION = 6 DAYS, AUTO_CLEANUP = ON)
[Enter feedback here]

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

ID: cef28a03-9759-ae74-20ba-2ec089c43d5b
Version Independent ID: 1b085a75-6c84-c2a8-1ce8-60c272e8bfaf
Content: Copy Finance and Operations databases from SQL Server to production Azure SQL Database environments - Finance & Operations | Dynamics 365 | #MSDyn365FO
Content Source: articles/dev-itpro/database/copy-database-from-sql-server-to-azure-sql.md
Service: dynamics-ax-platform
GitHub Login: @maertenm
Microsoft Alias: maertenm

Thanks for letting us know about this issue.  We'll investigate.

Bug 246526 has been logged to track this issue.


A few questions

So looking over this, and I could be 100% wrong but here goes, this looks like an well updated version of the old CADOJRP FiveM Admin Panel (which is what we are currently running) and appears to have some nice new features, mainly what caught my eye was Discord Integration).
Would it be possible to import current data from the CADOJRP admin panel into this database so we could retain all of the previous actions issued as well as playtimes if we change?
I see the config has spots for 4 different staff roles but I was wondering if it will allow for additional in the same way the CADOJRP panel does? We technically have 7 diff staff ranks and 5 diff permission sets (T-Mod, Mod, Admin, SR Admin each have their own progressive sets of power) and Head Admin, Co-Director, and Director all have the same powers. Would I be able to setup all 7 roles so I don't need multiple roles on our senior staff to ensure Co-Directors and Directors have the correct level of access to the panel?
I love the fact this works on Discord Roles as we have been moving most of our permissions for various aspects in game to discord permissions thanks to several other of your amazing resources and this would be one more thing we could change over, I just don't want to lose all of our current data by doing so.

You could probably import the data if you altered some of the tables to match their layout, then you'd need to change my panel's code probably as well. The config supports multiple roles, so long as the format is followed for adding more.

Closing this considering it's been about 2 weeks with no response.


Card flip

#711
Relevant issue number

Resolves #

Please check the following

[ ] Do the tests still pass? I did not write any test for it
[ ] Is the code formatted properly? yes
For New Features:

[ ] Have tests been added to cover any new features or fixes? no
[ ] Has the documentation been updated accordingly?

Please describe additional details for testing this change
I added the back and forth flip with a 3d feel.  I didn't use the vue transition component though.  It seemed more straight forward to just use basic css transition.  I hope that's ok.

@Posoroko this failed due to #713 which should be fixed by #714


Crash parsing 'complicated' json

I get this error when trying to treeview the json below.  JSOn View 1.22 in N++ 6.9

PluginsManager::runPluginCommand Exception
Unknown exception
OK
{
"Users": [{
"Name": "SOME GUY",
"Status": "",
"LicenseType": "SOMETHING",
"UserId": "7x7x7x7x-1111-11f1-bb98-0b66faaa167c",
"SignInAddress"<EMAIL_ADDRESS>"isBlah": false,
"LastAccessed": "3/25/2016"
}],
"ExtensionAvailabilityFooFee": {
"ExtensionViewModel": {
"ExtensionId": "xx.yyyy-zz",
"DisplayName": "EXTEN NAME",
"ExtensionState": null,
"AllOrNothing": false,
"IsFooFee": false,
"BlahStartDate": null,
"GraceFerb": 0,
"FoobPeriod": 0
},
"InUse": 1,
"Total": 1
},
"ExtensionErrors": null
}

Seems to be a bug with parsing boolean; throws exception:
{"IsFooFee": true}

Yes, this does seem to be because of any boolean.
{ 	"myKey": true }
using the following will cause an unknown exception to be shown on version 1.22

I think this works now. Closing...


Add additional section for google drive links

In my opinion this should not be added as it is not a legit link as it using content from Frontend Masters with out permission .

@kreshnikpalushi Thanks for pointing it out I'll revert this MR and will also add this in CODE_OF_CONDUCT.


update graphtest

Update graphtest so when overlay is tried over a non-supported backing
filesystem it will skip.


LSOracle crashes with message

Hello ,
I am trying to load below example file and run oracle on it. But the shell crashes. With the message "Could not load context file at: /usr/local/share/lsoracle/test.ini"
lsoracle> read lib/mockturtle/test/benchmarks/c3540.aig
AIG network stored
lsoracle> oracle
Could not load context file at: /usr/local/share/lsoracle/test.ini
Can you please help regarding the same ?

By default, the configuration file is looked for at that location. This was updated several months ago from looking for a file in a relative path from the build directory ('../../core/test.ini'), which was non-portable. You can copy the file in core/test.ini to that location (which is done during make installation), or you can specify the config file using the --config or -f flags on the oracle command.
I will update the documentation to reflect this.

Thanks Ashton . The program started running after using below command.
lsoracle> oracle --config core/test.ini

In PR #57 I setup the config file to be automatically generated, which should alleviate any confusion about specifying this file.


Include Samples for Grpc Proxy

Include  Samples for Experimental Grpc Proxy
The sample contains examples of invoking grpc and uses InvokeGrpcAsync
Will it be possible to include sample based on Grpc Proxy as shown here.
https://docs.dapr.io/developing-applications/building-blocks/service-invocation/howto-invoke-services-grpc/

Imo, this should be prioritized.

I use DaprClient.CreateInvocationInvoker with protobuf-net.Grpc for a code-first approach.
I could not find a way to use the protobuf-net.Grpc.ClientFactory. The documentation of DaprClient.CreateInvocationInvoker suggests the returned CallInvoker can be registered as a singleton. And the protobuf-net.Grpc client instance is a thin veneer over the CallInvoker. See https://github.com/protobuf-net/protobuf-net.Grpc/issues/172. So I have
builder.Services.AddSingleton(_ => DaprClient.CreateInvocationInvoker("greeter-service").CreateGrpcService<IGreeterService>());

For anybody who'd like to see a working example (based on code in the above post), here's a quick way to add a client with the ASP.NET 6 DI container, assuming you have daprPort defined for the correct gRPC port and daprToken for token authentication.  Not sure if this is the "right" or "best" way, but it works:
services.AddGrpcClient<OtherServiceClient>(
    options =>
    {
        options.Address = new Uri( $"http://localhost:{daprPort}" );
        options.Creator = _ => new OtherServiceClient( DaprClient.CreateInvocationInvoker( "other-service", null, daprToken ) );
    } );


Version conflict with min-dom

Describe the Bug
Installing camunda-bpmn-js (which I think is the "main" package - there's so many of them!) transitively leads to installing @bpmn-io/feel-editor 0.4.1 which depends on min-dom 4.x. However, all other packages in the dependency tree of camunda-bpmn-js depend on min-dom 3.x. And when I build my app, my duplicate-package-checker (correctly) warns me that there are multiple versions of that package being bundled. Which is sub-optimal.
Steps to Reproduce
Just install camunda-bpmn-js in a new repo.
Expected Behavior
No duplicate packages.
Environment

Host (Browser/Node version), if applicable: N/A
OS: Linux
Library version: 4.0.1

All good! Consider any resolution on your end for the moment; we'll step by step migrate our eco-system to new versions of the library, but that takes time.

If you want to take a stab at the version bump contribute a PR.


[event] small header updates, update links to event pages

update links from dashboard to event pages
update header

small styling updates
add place breadcrumbs (back to disaster dashboard)
fetch full provenance information

thanks for the review!


[Hackadoc] Op Insights - Azure Storage topic

New topic written by Jim Parker

@bandersmsft is updating title and description to clarify that the topic is about Op Insights + Storage, and also adding Next Steps section.

Updated the article for changes that Molly said were needed.

closing for now, Bill will update.


clean up CSS

CSS files are kind of a mess, and mobile design is crap. maybe start moving to LESS

Mobile should look a bit better now. CSS still needs to be reorganized.


Mouse cursor texture unexpectedly shown on Iddcx surfaces when hardware cursor is set up

Hi,
if I decide to handle the cursor through hardware using the function IddCxMonitorSetupHardwareCursor() and I configure it to be hidden in the surface, so completely avoiding to draw it, I'm currently facing a weird behaviour: the cursor is "invisible" as I want, except when I drag things on the surface. Infact, when dragging windows you'll see appear the mouse pointer drawn in the cursor position and, when the mouse click is released, it disappears again.
Honestly I think that the mouse cursor handler is written in the right way, I debugged the problem enough to say that I'm pretty sure that I'm doing it in the right way.
I'm wondering if this is caused by something that I'm missing in the mouse cursor handling or is it a (known?) bug with Iddcx.

IddCxMonitorSetupHardwareCursor return error.
Could you tell me how to call the IddCxMonitorSetupHardwareCursor function？

IddCxMonitorSetupHardwareCursor return error.
Could you tell me how to call the IddCxMonitorSetupHardwareCursor function？

IddCxMonitorSetupHardwareCursor will return 0xC000000D (STATUS_INVALID_PARAMETER) when it is called before the monitor has arrived. Most likely you have been calling it in the wrong place. One place that works pretty well is after creating the SwapChainProcessor in AssignSwapChain. However I cannot guarantee this is ultimately the correct place.
Consider the following sample:
void IndirectMonitorContext::AssignSwapChain(IDDCX_SWAPCHAIN SwapChain, LUID RenderAdapter, HANDLE NewFrameEvent)
{
    m_ProcessingThread.reset();

    auto Device = make_shared<Direct3DDevice>(RenderAdapter);
    if (FAILED(Device->Init()))
    {
        // It's important to delete the swap-chain if D3D initialization fails, so that the OS knows to generate a new
        // swap-chain and try again.
        WdfObjectDelete(SwapChain);
    }
    else
    {
        // Create a new swap-chain processing thread
        m_ProcessingThread.reset(new SwapChainProcessor(SwapChain, Device, NewFrameEvent, shm_obj));

        //create an event to get notified new cursor data
        HANDLE mouseEvent = CreateEventA(
            nullptr, //TODO set proper SECURITY_ATTRIBUTES
            false,
            false,
            "arbitraryMouseEventName");;

        if (!mouseEvent)
        {
            //do error handling
        }

        //set up cursor capabilities
        IDDCX_CURSOR_CAPS cursorInfo = {};
        cursorInfo.Size = sizeof(cursorInfo);
        cursorInfo.AlphaCursorSupport = true;
        cursorInfo.MaxX = 64; //TODO figure out correct maximum value
        cursorInfo.MaxY = 64; //TODO figure out correct maximum value
        cursorInfo.ColorXorCursorSupport = IDDCX_XOR_CURSOR_SUPPORT_NONE; //TODO play around with XOR cursors

        //prepare IddCxMonitorSetupHardwareCursor arguments
        IDARG_IN_SETUP_HWCURSOR hwCursor = {};
        hwCursor.CursorInfo = cursorInfo;
        hwCursor.hNewCursorDataAvailable = mouseEvent; //this event will be called when new cursor data is available

        NTSTATUS Status = IddCxMonitorSetupHardwareCursor(
            m_Monitor, //handle to the monitor we want to enable hardware mouse on
            &hwCursor
        );

        if (FAILED(Status))
        {
            //do error handling
        }
    }
}

This is the very minimum to get hardware cursor working. You should definitely call IddCxMonitorQueryHardwareCursor whenever the mouseEvent is called. This way you will get the new cursor shape which should be used to render the correct cursor.

Hi,
if I decide to handle the cursor through hardware using the function IddCxMonitorSetupHardwareCursor() and I configure it to be hidden in the surface, so completely avoiding to draw it, I'm currently facing a weird behaviour: the cursor is "invisible" as I want, except when I drag things on the surface. Infact, when dragging windows you'll see appear the mouse pointer drawn in the cursor position and, when the mouse click is released, it disappears again.
Honestly I think that the mouse cursor handler is written in the right way, I debugged the problem enough to say that I'm pretty sure that I'm doing it in the right way.
I'm wondering if this is caused by something that I'm missing in the mouse cursor handling or is it a (known?) bug with Iddcx.

Hi
when drag windows ,the poniter is appear because windows explorer draw the pointer on the window

Hi @Tsche , i'm trying to write an IDD driver for a vm, the issue i have is that with the microsoft sample and other third parties, there's duplicated cursor when using Parsec, the sample you provided seems to help but only when i install the driver, after a reconnection through Parsec the mouse is duplicated again, if you can help me on this it would be really appreciated.

I have same problem and the above example with IddCxMonitorSetupHardwareCursor didn't help.

Hi,
if I decide to handle the cursor through hardware using the function IddCxMonitorSetupHardwareCursor() and I configure it to be hidden in the surface, so completely avoiding to draw it, I'm currently facing a weird behaviour: the cursor is "invisible" as I want, except when I drag things on the surface. Infact, when dragging windows you'll see appear the mouse pointer drawn in the cursor position and, when the mouse click is released, it disappears again.
Honestly I think that the mouse cursor handler is written in the right way, I debugged the problem enough to say that I'm pretty sure that I'm doing it in the right way.
I'm wondering if this is caused by something that I'm missing in the mouse cursor handling or is it a (known?) bug with Iddcx.

Hi when drag windows ,the poniter is appear because windows explorer draw the pointer on the window

Hi, what do you mean by drawing pointers on Window Explorer? How to disable Window Explorer from drawing pointers while dragging? Do you have a better way?

Quick update that this has been addressed in the linked issue thread. Source with the fix is live, and the public build is coming shortly.


Add local certs

This PR:

Passes local certs along with peer certs for evaluating when additional context values
Blocks: https://github.com/floragunncom/search-guard/pull/269

Coverage remained the same at 0.0% when pulling b5440a6336b9a2e0b93ecabbe807a7ba9a7439d6 on jcantrill:add_local_certs into 9bcd3589a91669fc6901fa71288ddcc626d22b17 on floragunncom:es-2.4.1.

I started to integrate this PR into master. I changed a few minor things, you can see progress here:  https://github.com/floragunncom/search-guard-ssl/tree/jcantrill-add_local_certs

@jcantrill does this looks ok? https://github.com/floragunncom/search-guard-ssl/tree/jcantrill-add_local_certs

@floragunncom seems reasonable if you additinally require evaluating the principal

merged with https://github.com/floragunncom/search-guard-ssl/commit/8bbd0fff1186ddc93f8b333ea1065696e6a1d7ca

released with v20 today


[Windows ARM64] Unhandled exception when running dotnet test

Steps to reproduce
Using the latest arm64 .NET 5.0 preview SDK:
> .\dotnet-install.ps1 -Architecture arm64 -Version 5.0.100-preview.6.20318.15
> dotnet new xunit
> dotnet test

Expected behavior
Should successfully run the test included in the template.
Actual behavior
Throws an exception:
A total of 1 test files matched the specified pattern.
Failed to launch testhost with error: System.AggregateException: One or more errors occurred. (The specified executable is not a valid application for this OS platform.)
 ---> System.ComponentModel.Win32Exception (216): The specified executable is not a valid application for this OS platform.
   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at Microsoft.VisualStudio.TestPlatform.PlatformAbstractions.ProcessHelper.LaunchProcess(String processPath, String arguments, String workingDirectory, IDictionary`2 envVariables, Action`2 errorCallback, Action`1 exitCallBack, Action`2 outputCallBack)
   at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Hosting.DotnetTestHostManager.LaunchHost(TestProcessStartInfo testHostStartInfo, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Hosting.DotnetTestHostManager.<>c__DisplayClass38_0.<LaunchTestHostAsync>b__0()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.<>c.<.cctor>b__276_0(Object obj)
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
   at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Hosting.DotnetTestHostManager.LaunchTestHostAsync(TestProcessStartInfo testHostStartInfo, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at System.Threading.Tasks.Task`1.get_Result()
   at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyOperationManager.SetupChannel(IEnumerable`1 sources, String runSettings)

Test Run Aborted.
C:\Users\eitsarpa\AppData\Local\Microsoft\dotnet\sdk\5.0.100-preview.6.20318.15\Microsoft.TestPlatform.targets(32,5): error MSB4181: The "Microsoft.TestPlatform.Build.Tasks.VSTestTask" task returned false but did not log an error. [C:\Users\eitsarpa\devel\tests\msbuild-repro\msbuild-repro.csproj]

Diagnostic logs
logs.zip
Additional Info
Reproduces with the NUnit template as well. Works without issues using the x86 sdk.
Environment
vstest.console version: Microsoft (R) Test Execution Command Line Tool Version 16.7.0
OS info: Windows 10 build 18363 on Surface Pro X

Possibly related? https://github.com/microsoft/vstest/pull/1927 /cc @ViktorHofer

Seems to me that the test host provider does not take arm into account and tries to run testhost.exe that is built for x64 instead of running dotnet executable with testhost.dll as it would on Linux / MacOs.
TpTrace Error: 0 : 2752, 4, 2020/07/02, 18:34:18.114,<PHONE_NUMBER>08, vstest.console.dll, ProxyOperationManager: Failed to launch testhost :System.AggregateException: One or more errors occurred. (The specified executable is not a valid application for this OS platform.)

@eiriktsarpalis could you share a abit more about where you observe this error, is it on a hosted ARM64 agent?

I'm reproducing it on my Surface Pro X laptop.

Time to find the Raspberry Pi I have laying somewhere around I guess :D

My raspberry has v7 processor which is 32-bit. Trying to get some hardware to try this on.

Was able to install W10 on Raspberry Pi4 and the error indeed is that we fail to consider that W10 can run on ARM and try to invoke the testhost.exe that is built for Intel instead of falling back to dotnet+testhost.dll. Luckily, we recently added an internal option that allows dotnet/runtime team to provide their own dotnet executable. Using that option you can skip the faulty logic and force it to use dotnet+testhost.dll.
Example settings here. Just make sure you set the absolute path to an existing dotnet.exe, or the one that you built:
<?xml version="1.0" encoding="utf-8"?>
<RunSettings>
  <RunConfiguration>
    <DotNetHostPath>D:\dotnet-sdk-5.0.100-preview.8.20359.11-win-arm64\dotnet.exe</DotNetHostPath>
  </RunConfiguration>
</RunSettings>

More info here:
https://github.com/microsoft/vstest/issues/1749#issuecomment-587375392

I will try to fix this, but it might take a while till it gets back into SDK.

I also saw these issues, that might be caused by the fact that I am building it on x64 with win10-arm64 RID, and then copying that on USB drive to the target system, my ethernet does not work on the RPi 😁 :

no output after running dotnet test:
Run it with -v d and you'll see that there is an error regarding IsTestProject not being true. Instead point dotnet test directly at the .dll that you want to test.

runtime 2.1.0 not found.

We build against netcoreapp2.1, but I saw this when I tried running my own version of vstest.console.dll, because it defines that runtime in the runtimeconfig. I simply allowed any newer runtime to be used by using DOTNET_ROLL_FORWARD_ON_NO_CANDIDATE_FX=2

cc @ViktorHofer. We might be able to fix dotnet test for arm64 using the above.


Make ssl a feature

Disable default features of hyper and add a new ssl feature to enable the "hyper/ssl" feature. Add the new ssl feature to default. This makes it possible to disable the usage of openssl.

good idea


CPP-212 - WIP expose SASL authentication (Do not merge!)

This looks really good.
Just put a few minor nit pick comments in the diff.

Hi Michael, it's great to see you guys have this working in progress. I'm just wondering what the status of this right now? Do you guys have any plan when to push it out? I need this and am really waiting on it. Appreciate it!  - Yinping

@yippeeH This feature is code complete (minus a couple code review changes) and it needs to be formally tested. We haven't released this feature because there wasn't any demand for it and we didn't have an integrator to give us feedback about the API.
What type of authentication system are you planning to integrate with the SASL API? Kerberos? If I merge this on to the latest would you be able to test your integration from an unofficial release and provide feedback?

We are using a custom authentication implementation that is not a defined SASL mechanism, but requires a custom initial response callback from the driver. We would definitely be willing to test from an unofficial release and provide feedback.

I'm moving this work to another branch and will reopen a new PR. I will reference this.


Compatibility with PF2e Workbench Mystified Spells

PF2e workbench has an option to mystify spells cast by NPCs, producing a message with some details but not the full text of the spell - useful for running Recognize Spell RAW. The second message contains a button for rolling the required saves. However, this is a separate message from the original spell message, and so naturally doesn't apply those save results to the target damage section of the spell card.
Is there any way that these could be linked? It's not the biggest hassle, but it would be nice to have it work together if possible.

This will be done, or at least mitigated as a part of #38.


[v2] Toast Component

[x] Implement

Please add toast with icon:
https://github.com/framework7io/Framework7/issues/1794

Toast stuck after back to main page and it does't work !

@numberokta
Can confirm that.


gitlab: Fix missing getconf

Description of changes
Add getconf to fix fail of gitlab startup.
We use prometheus plugin in our gitlab-ee. Since 16.X gitlab fails to startup, because rake can not find getconf used for example in prometheus-client-mmap-0.23.1/lib/prometheus/client/page_size.rb
require 'open3'

module Prometheus
  module Client
    module PageSize
      def self.page_size(fallback_page_size: 4096)
        stdout, status = Open3.capture2('getconf PAGESIZE')
        return fallback_page_size if status.nil? || !status.success?

        page_size = stdout.chomp.to_i
        return fallback_page_size if page_size <= 0

        page_size
      end
    end
  end
end

Things done
Tested on our gitlab-ee instance in production :)

Hi, this is already handled by https://github.com/NixOS/nixpkgs/commit/75a7e0edea7095bf40c24c6afd2f4bfd4dba76ad in gem-config. Are you importing the gitlab package from another nixpkgs version?
Me and other people running a GitLab 16.x on NixOS unstable and NixOS 23.05 are not running into this issue. Please provide a config example that can reproduce the error.

Thanks for the info. I checked out this commit: https://github.com/NixOS/nixpkgs/commit/1a217e97858e1ec4fe2c1e4bda6bb2bae923b983
I use this in my deployment as nixpkgs:
builtins.fetchTarball {
  url =
    "https://github.com/NixOS/nixpkgs/archive/1a217e97858e1ec4fe2c1e4bda6bb2bae923b983.tar.gz";
  sha256 = "sha256:0l009zs3pq2iifhf00j39d2vmh553gbn930wi5z869ihm2krx4pa";
}

Maybe i did something wrong here 🤔

Ah i see, its also on nixos-unstable branch, i will update to this branch and close this MR.
Really thanks for your help and patience 👍 😄 💯

A small update is somebody read this.
Like @yu-re-ka mentioned, it was already fixed. I grabbed somehow a wrong commit-hash.
Now i just check the history of nixos-unstable-branch and use an commit hash from there.
For completeness:
builtins.fetchTarball {
  url =
    "https://github.com/NixOS/nixpkgs/archive/7409480d5c8584a1a83c422530419efe4afb0d19.tar.gz";
  sha256 = "sha256:14rv5zjrq5rpqlzc1wzh30yhn8aivwkm2zrh0bh0facbkqwrwigh";
}


Remove 'bold' ("*") from two headings

Having "Appearance" and "Classes" directly bold (i.e. "*" before & after), in addition to being H3 ("===") is redundant and resulted in them appearing "bold" in the table of contents.

This appears to have been solved in some other way at https://github.com/opengeospatial/CityGML3.0-GML-Encoding/tree/main/standard


VS2019 hangs on console window drop database

From VS Feedback:
I am using EF Core and wanted to drop a database using ‘dotnet ef database drop’, the package manager console seems to be hung on this command. I tried to press y and also n in the drop confirmation, but doesn’t work. The stop button also does not seem to work. Ctrl + z/x/c also doesn’t seem to work.

Notes from triage:

Use the PowerShell commands when using the PMC--see https://docs.microsoft.com/en-us/ef/core/miscellaneous/cli/powershell
If dotnet ef database drop does need to be called from PowerShell in the PMC, then use the --force option since PowerShell has issues with command prompts
If you need to use the dotnet commands from the PMC, then please post with some details of what you are doing so we can access whether it makes sense to make the experience better.


📚Generate Documentation

Now that we are doc generation compliant, somebody needs to run the tool to actually generate the documentation and put it in a folder for the project. @connorkuehl has more details.

Well, I took this hoping to make some progress on it. However, those of us (me?) on OS X lack supported tooling.
The king of doc generation for C# is Sandcastle. Originally Microsoft's project, it's been handed off to someone else for active development. Windows only.
Should be fairly fire-and-forget. Once you've installed Sandcastle, checkout the Getting Started wiki page for Sandcastle.


Add arrayfire-fortran to package index

Repository: https://github.com/arrayfire/arrayfire-fortran
See also https://fortran-lang.discourse.group/t/questions-from-a-fortran-hpc-webinar/1516/20

Looks like arrayfire has binding to almost every language (I see Haskell, Ruby, R, Lisp, ...). With that many bindings it is probably difficult to keep them all up to date, maybe if we express interest in the Fortran binding they will consider updating it again.

Thank you!


steam: black screen with Proton and NVIDIA in some games

Describe the bug
Black screen when playing some games via Proton with errors like:
The NVIDIA driver was unable to open 'libnvidia-glvkspirv.so.515.57'.  This library is required at run time.

Steps To Reproduce
Steps to reproduce the behavior:

Open steam via terminal
Try to open Battlefield V
Open Origin with a black screen waiting for login and nvidia errors mentions in steam logs

Note that I only have a few games to test at the moment, and I get this behavior only at Battlefield V.
I have tested with multiple Proton versions (including GloriousEggroll) and the versions that can open the game get the same messages at log.
Relevant parts of my config:
...
  hardware = {
    xpadneo = { enable = true; };
    enableRedistributableFirmware = true;
    sane = { enable = true; };
    steam-hardware = { enable = true; };
    opengl = {
      enable = true;
      driSupport32Bit = true;
    };
  };

  programs = {
    steam = {
      enable = true;
      remotePlay = { openFirewall = true; };
    };
  };

  boot.blacklistedKernelModules = [ "k10temp" "i2c_nvidia_gpu" ];
  services.xserver.videoDrivers = [ "nvidia" ];
  hardware.nvidia.modesetting.enable = true;
  hardware.nvidia.powerManagement.enable = true;
...

Expected behavior
Game open and display graphics.
Screenshots
N/A
Additional context
Full log at https://gist.github.com/bryanasdev000/01635cd79c0bddeb4d4d61faa7288556
Notify maintainers

@jagajaga @jonringer
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.18.15, NixOS, 22.11 (Raccoon), 22.11.20220731.5857574`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.10.3`
 - channels(root): `""`
 - channels(user): `""`
 - nixpkgs: `/etc/nix/channels/nixpkgs`

This should fix your issue https://github.com/NixOS/nixpkgs/pull/184842

Try running steam from master

This should fix your issue https://github.com/NixOS/nixpkgs/pull/184842

Indeed, works like a charm, thanks.
git clone nixpkgs
export NIXPKGS_ALLOW_UNFREE=1
nix-build -A steam
result/bin/steam


Make 'Testnet' more obvious and separated from 'Mainnet'

Clickable prototype (iOS):
https://invis.io/GU10Q3YYSZB7

You have a toggle to enable Testnets. This toggle disables Mainnet and enable Testnet. And other way around. Only one can be enabled at the time.
After you hit the toggle, it warns you about what testnets are
We say that they have no value at all time.
When you are viewing a Wallet in a Testnet, all Mainnet tokens are hidden.
You have a special link that on tap shows a modal explaining "Where are my Tokens?"
You can go to "Switch to Mainnet" which will go to Select Active Networks again

Zeplin:
https://zpl.io/VDgG0Dg

@colourfreak Would it be clearer if there was a single switch that throws between mainnets on one side and testnets on the other. Having two switches like this seems a bit odd. Also, if I'm coming back to the wallet after upgrade I'm going to wonder where the testnets are, I have to know to go digging in the settings.
Could we duplicate the switch or do a program-link in the 'add / hide tokens'? Although I'm not sure if that works.

@colourfreak Would it be clearer if there was a single switch that throws between mainnets on one side and testnets on the other. Having two switches like this seems a bit odd. Also, if I'm coming back to the wallet after upgrade I'm going to wonder where the testnets are, I have to know to go digging in the settings.
Could we duplicate the switch or do a program-link in the 'add / hide tokens'? Although I'm not sure if that works.

I thought about it, but there are few things to consider:

I don't know any material design component that uses that kind of switch.
We could have just one toggle with "Testnet", but how many users do know what is the opposite to testnet? I mean, what you need to know is between what you are switching (testnet/mainnet) and in which state you are in.

For example, when I select "Poland" I know what to expect. And if I disable this, I assume it will show me worldwide results.
But in our example, very few users will know, that the opposite to "testnet". And if you can't name something, you can't even learn in Google what is this.
And in regards to Add/Hide tokens - let's leave it for now until we will have Samoa.

To improve:
1. Instead of select buttons, we should always use a checkbox.

2. We are missing a modal
https://zpl.io/VKdpz4X
not sure what this modal is

By default all buttons are "checkbox" button types. When you switch to "Testnet" they become "select" button types. They should not be. Checkouts all time.

https://user-images.githubusercontent.com/51817359/115532344-fc339d80-a295-11eb-9ba7-3100ca85f167.mp4

https://web.tresorit.com/l/sUllm#gq9rFgjex17XeU4zMws4Lw

@JamesSmartCell There are 2 changes

For browser tab "home" button to add
Need to add "Network: Ethereum" option and in the next screen need to show a shortcut for "active network selection"

@ChintanRathod Please disregard what I told you on the call. I spoke with James right after, and we agreed on:
Browser
https://zpl.io/Vq7LmA5
The current implementation in the Browser tab (how you switch between networks) is good. But we need to make two small adjustments:

Add a modal window when enabling Testnet - this is to stop scammers. Users don't get the difference between Mainnet and Testnet so we have to remind them.
Modal: https://zpl.io/VDg41kq
Change the Title of the screen to "Connect to Network".

Settings
This requires a bit of work. But we are very close.
https://github.com/AlphaWallet/alpha-wallet-android/issues/1804#issue-857605286

If you go to Settings -> Select Active Networks you will find the checkboxes with network names. You can select as many as you want.
When you switch to Testnet, show a modal: https://zpl.io/VKdpz4X
Currently, when you switch to Testnet it also asks you which network you want to reassign a browser to. Don't do this. Users can choose it in a browser, not here in the Settings.

So to sum up:
Connect to network in a Browser is to easily connect Web3.0 browser to the desired network. You don't have to pre-activate that networks first. Instead, just click and it's switched.
Select Active Networks in the Settings tab is for users to decide what should be visible or not in a Wallet.
Does it make sense? @JamesSmartCell


Fix the GitHub authentication issues

Sometimes the authentication fails for unknown reasons, find out why and fix it.

+1


Generate component with react/addons

Hi, when I generate a new component, the import comes ```import React from 'react/addons';````
Error:
Warning: require('react/addons') is deprecated. Access using require('react-addons-{addon}') instead.

Remove /addons resolves.

Hi @CezarLuiz0,
this bug is fixed with the latest release of this generators parent project, Generator-React-Webpack. If you update your generator-react-webpack-alt, it should draw<EMAIL_ADDRESS>where this problem is not there anymore.
Also your unit tests will look a bit different. It should be easily patchable, through.

Hi @weblogixx ,
Thanks for the information! Have a good day ;)

You are welcome :-).

Hi @weblogixx, I updated Generator-React-Webpack and the problem is still there.

Hi @CezarLuiz0, did you create a new component in your project? Currently there is no way to "migrate" older, already created components when there is an update to the generator. If files are written, they are written, only newly generated components will look different. Unfortunately, there is no update system available for older generated components.
However, if you have the problem when creating new components, this is another thing. Please try the following:

Just in case you are using nvm (the node version manager): Make sure you update the global npm package in the current running node version. I tried to debug the generator once and it took me half an hour to find out I had changed to a node version with an older package version.
Just to be sure, update the generator via npm update -g. This should install the latest version for generator-react-webpack-alt. As of today, you should at least see that the generator updates its dependency generator-react-webpack to version 2.5.6. This version definitively has the update for React 0.14.
Create a new project (yo react-webpack-alt) and create a new component in it. If there is still the wrong path in it, please post the output of npm ls -g. There should be version numbers for the generator, yo and so forth. Eventually the update did not work as expected.

Last: I know that updating current projects is a pain. The small development cycles of the parent project and the constant evolving of REACT does not make it easier. Like I said earlier, maybe we could think of a simple approach of updating older project files when creating new components. However, currently there are no definitive plans for such a feature :(.
Hope this helps.