[Question] Failed to parse key

I created a previewnet account in Herera portal.

and then cloned this repository, used the exact node version and yarn as specified in the README file
git clone https://github.com/hashgraph/hedera-hts-demo
cd hedera-hts-demo
nvm install v14.9.0
node version
npm install -g<EMAIL_ADDRESS>yarn version
cp .env.sampe .env

Updated the .env file to configure Operator Id, Operator Private Key, Vue Application Network --> Preview Net Network Address

and then
yarn install
yarn serve

The application UI http://localhost:8080/ loads fine

However, I was not able to create a new token. I believe there must be something wrong in my .env file. Looks like this:
# Account Id
VUE_APP_OPERATOR_ID=0.0.5826
# private key
VUE_APP_OPERATOR_KEY=302.....  # copied and pasted from Hedera Portal / Previewnet

# network (specify the envoy WebGRPC proxy to connect to the Hedera Network of your choice)
# VUE_APP_NETWORK="http://localhost"
# VUE_APP_NETWORK="http://<IP_ADDRESS>"
# VUE_APP_NETWORK="<IP_ADDRESS>:50211"
# VUE_APP_NETWORK="<IP_ADDRESS>:50211"
VUE_APP_NETWORK="http://<IP_ADDRESS>:50211"

# initial balance for new accounts (in hbar)
VUE_APP_INITIAL_BALANCE=1

It says >  Failed to parse correct key
I would appreciate if you could help me out here.

VUE_APP_NETWORK must refer to a grpcWebProxy such as envoy. Check the read me for setting up envoy (via docker).
Envoyé depuis mon iPhone/Sent from my iPhone

Le 6 nov. 2020 à 21:39, Binod Nirvan<EMAIL_ADDRESS>a écrit :

I created a previewnet account in Herera portal.
and then cloned this repository, used the exact node version and yarn as specified in the README file
git clone https://github.com/hashgraph/hedera-hts-demo
cd hedera-hts-demo
nvm install v14.9.0
node version
npm install -g<EMAIL_ADDRESS>yarn version
cp .env.sampe .env
Updated the .env file to configure Operator Id, Operator Private Key, Vue Application Network --> Preview Net Network Address
and then
yarn install
yarn serve
The application UI http://localhost:8080/ loads fine
However, I was not able to create a new token. I believe there must be something wrong in my .env file. Looks like this:
Account Id
VUE_APP_OPERATOR_ID=0.0.5826
private key
VUE_APP_OPERATOR_KEY=302.....  # copied and pasted from Hedera Portal / Previewnet
network (specify the envoy WebGRPC proxy to connect to the Hedera Network of your choice)
VUE_APP_NETWORK="http://localhost"
VUE_APP_NETWORK="http://<IP_ADDRESS>"
VUE_APP_NETWORK="<IP_ADDRESS>:50211"
VUE_APP_NETWORK="<IP_ADDRESS>:50211"
VUE_APP_NETWORK="http://<IP_ADDRESS>:50211"
initial balance for new accounts (in hbar)
VUE_APP_INITIAL_BALANCE=1
It says >  Failed to parse correct key
I would appreciate if you could help me out here.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Thank you for replying @gregscullard. Apologies for not mentioning this earlier, although I did follow the instruction to execute start-envoy.sh, I only failed to mention that in my original post. The issue still persists on my end.
Upon further investigation, I tried the -l debug flag to see what's going on
curl http://localhost:8089 # --> upstream connect error or disconnect/reset before headers. reset reason: connection failure

(Note: I changed the port to 8089 from 80)
Log Output:
[2020-11-17 17:00:30.367][3017212][debug][http] [external/envoy/source/common/http/conn_manager_impl.cc:708] [C0][S11079091362258540798] request headers complete (end_stream=true):
':authority', 'localhost:8089'
':path', '/'
':method', 'GET'
'user-agent', 'curl/7.64.1'
'accept', '*/*'

[2020-11-17 17:00:30.367][3017212][debug][http] [external/envoy/source/common/http/conn_manager_impl.cc:1248] [C0][S11079091362258540798] request end stream
[2020-11-17 17:00:30.367][3017212][debug][router] [external/envoy/source/common/router/router.cc:434] [C0][S11079091362258540798] cluster 'echo_service' match for URL '/'
[2020-11-17 17:00:30.367][3017212][debug][router] [external/envoy/source/common/router/router.cc:549] [C0][S11079091362258540798] router decoding headers:
':authority', 'localhost:8089'
':path', '/'
':method', 'GET'
':scheme', 'http'
'user-agent', 'curl/7.64.1'
'accept', '*/*'
'x-forwarded-proto', 'http'
'x-request-id', 'ffff487b-0585-4dc9-b10a-a45875cb8488'
'x-envoy-expected-rq-timeout-ms', '15000'

[2020-11-17 17:00:30.367][3017212][debug][pool] [external/envoy/source/common/http/http1/conn_pool.cc:95] creating a new connection
[2020-11-17 17:00:30.367][3017212][debug][client] [external/envoy/source/common/http/codec_client.cc:31] [C1] connecting
[2020-11-17 17:00:30.367][3017212][debug][connection] [external/envoy/source/common/network/connection_impl.cc:711] [C1] connecting to <IP_ADDRESS>:50211
[2020-11-17 17:00:30.367][3017212][debug][connection] [external/envoy/source/common/network/connection_impl.cc:720] [C1] connection in progress
[2020-11-17 17:00:30.367][3017212][debug][pool] [external/envoy/source/common/http/conn_pool_base.cc:20] queueing request due to no available connections
[2020-11-17 17:00:30.621][3017212][debug][pool] [external/envoy/source/common/http/http1/conn_pool.cc:346] [C1] connect timeout
[2020-11-17 17:00:30.621][3017212][debug][connection] [external/envoy/source/common/network/connection_impl.cc:104] [C1] closing data_to_write=0 type=1
[2020-11-17 17:00:30.621][3017212][debug][connection] [external/envoy/source/common/network/connection_impl.cc:193] [C1] closing socket: 1
[2020-11-17 17:00:30.621][3017212][debug][client] [external/envoy/source/common/http/codec_client.cc:88] [C1] disconnect. resetting 0 pending requests
[2020-11-17 17:00:30.621][3017212][debug][pool] [external/envoy/source/common/http/http1/conn_pool.cc:136] [C1] client disconnected, failure reason:
[2020-11-17 17:00:30.621][3017212][debug][pool] [external/envoy/source/common/http/http1/conn_pool.cc:167] [C1] purge pending, failure reason:
[2020-11-17 17:00:30.622][3017212][debug][router] [external/envoy/source/common/router/router.cc:911] [C0][S11079091362258540798] upstream reset: reset reason connection failure
[2020-11-17 17:00:30.622][3017212][debug][http] [external/envoy/source/common/http/conn_manager_impl.cc:1345] [C0][S11079091362258540798] Sending local reply with details upstream_reset_before_response_started{connection failure}
[2020-11-17 17:00:30.622][3017212][debug][http] [external/envoy/source/common/http/conn_manager_impl.cc:1543] [C0][S11079091362258540798] encoding headers via codec (end_stream=false):
':status', '503'
'content-length', '91'
'content-type', 'text/plain'
'date', 'Tue, 17 Nov 2020 11:15:30 GMT'
'server', 'envoy'

[2020-11-17 17:00:30.623][3017212][debug][connection] [external/envoy/source/common/network/connection_impl.cc:527] [C0] remote close
[2020-11-17 17:00:30.623][3017212][debug][connection] [external/envoy/source/common/network/connection_impl.cc:193] [C0] closing socket: 0
[2020-11-17 17:00:30.623][3017212][debug][conn_handler] [external/envoy/source/server/connection_handler_impl.cc:88] [C0] adding to cleanup list

or
[2020-11-17 17:27:02.135][3063762][debug][router] [external/envoy/source/common/router/router.cc:434] [C2][S16916133612447364426] cluster 'echo_service' match for URL '/proto.CryptoService/createAccount'
[2020-11-17 17:27:02.135][3063762][debug][router] [external/envoy/source/common/router/router.cc:549] [C2][S16916133612447364426] router decoding headers:
':authority', '<IP_ADDRESS>:8089'
':path', '/proto.CryptoService/createAccount'
':method', 'POST'
':scheme', 'http'
'x-grpc-web', '1'
'dnt', '1'
'user-agent', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.193 Safari/537.36'
'content-type', 'application/grpc'
'accept', '*/*'
'origin', 'http://localhost:8080'
'sec-fetch-site', 'cross-site'
'sec-fetch-mode', 'cors'
'sec-fetch-dest', 'empty'
'referer', 'http://localhost:8080/'
'accept-encoding', 'gzip, deflate, br'
'accept-language', 'en-US,en;q=0.9,ru;q=0.8,zh-CN;q=0.7,zh;q=0.6,ne;q=0.5'
'x-forwarded-proto', 'http'
'x-request-id', '99523e5e-8ca6-44b8-b57f-baeebca4b857'
'te', 'trailers'
'grpc-accept-encoding', 'identity,deflate,gzip'

[2020-11-17 17:27:02.138][3063762][debug][pool] [external/envoy/source/common/http/http1/conn_pool.cc:95] creating a new connection
[2020-11-17 17:27:02.138][3063762][debug][client] [external/envoy/source/common/http/codec_client.cc:31] [C3] connecting
[2020-11-17 17:27:02.138][3063762][debug][connection] [external/envoy/source/common/network/connection_impl.cc:711] [C3] connecting to <IP_ADDRESS>:50211
[2020-11-17 17:27:02.138][3063762][debug][connection] [external/envoy/source/common/network/connection_impl.cc:720] [C3] connection in progress
[2020-11-17 17:27:02.138][3063762][debug][pool] [external/envoy/source/common/http/conn_pool_base.cc:20] queueing request due to no available connections
[2020-11-17 17:27:02.149][3063762][debug][http] [external/envoy/source/common/http/conn_manager_impl.cc:1248] [C2][S16916133612447364426] request end stream
[2020-11-17 17:27:02.380][3063762][debug][pool] [external/envoy/source/common/http/http1/conn_pool.cc:346] [C3] connect timeout
[2020-11-17 17:27:02.380][3063762][debug][connection] [external/envoy/source/common/network/connection_impl.cc:104] [C3] closing data_to_write=0 type=1
[2020-11-17 17:27:02.380][3063762][debug][connection] [external/envoy/source/common/network/connection_impl.cc:193] [C3] closing socket: 1
[2020-11-17 17:27:02.380][3063762][debug][client] [external/envoy/source/common/http/codec_client.cc:88] [C3] disconnect. resetting 0 pending requests
[2020-11-17 17:27:02.380][3063762][debug][pool] [external/envoy/source/common/http/http1/conn_pool.cc:136] [C3] client disconnected, failure reason:
[2020-11-17 17:27:02.380][3063762][debug][pool] [external/envoy/source/common/http/http1/conn_pool.cc:167] [C3] purge pending, failure reason:
[2020-11-17 17:27:02.380][3063762][debug][router] [external/envoy/source/common/router/router.cc:911] [C2][S16916133612447364426] upstream reset: reset reason connection failure
[2020-11-17 17:27:02.380][3063762][debug][http] [external/envoy/source/common/http/conn_manager_impl.cc:1345] [C2][S16916133612447364426] Sending local reply with details upstream_reset_before_response_started{connection failure}
[2020-11-17 17:27:02.380][3063762][debug][http] [external/envoy/source/common/http/conn_manager_impl.cc:1543] [C2][S16916133612447364426] encoding headers via codec (end_stream=true):
':status', '200'
'content-type', 'application/grpc-web+proto'
'grpc-status', '14'
'grpc-message', 'upstream connect error or disconnect/reset before headers. reset reason: connection failure'
'access-control-allow-origin', 'http://localhost:8080'
'access-control-expose-headers', 'custom-header-1,grpc-status,grpc-message'
'date', 'Tue, 17 Nov 2020 11:42:01 GMT'
'server', 'envoy'

[2020-11-17 17:27:03.571][3063756][debug][upstream] [external/envoy/source/common/upstream/logical_dns_cluster.cc:72] starting async DNS resolution for <IP_ADDRESS>
[2020-11-17 17:27:03.571][3063756][debug][upstream] [external/envoy/source/common/upstream/logical_dns_cluster.cc:79] async DNS resolution complete for <IP_ADDRESS>
[2020-11-17 17:27:03.571][3063756][debug][main] [external/envoy/source/server/server.cc:175] flushing stats
[2020-11-17 17:27:08.571][3063756][debug][upstream] [external/envoy/source/common/upstream/logical_dns_cluster.cc:72] starting async DNS resolution for <IP_ADDRESS>
[2020-11-17 17:27:08.571][3063756][debug][upstream] [external/envoy/source/common/upstream/logical_dns_cluster.cc:79] async DNS resolution complete for <IP_ADDRESS>
[2020-11-17 17:27:08.571][3063756][debug][main] [external/envoy/source/server/server.cc:175] flushing stats

Simplified:
creating a new connection
connecting
connecting to <IP_ADDRESS>:50211
connection in progress
queueing request due to no available connections
connect timeout
closing data_to_write=0 type=1
closing socket: 1
disconnect. resetting 0 pending requests
client disconnected, failure reason:
purge pending, failure reason:
upstream reset: reset reason connection failure
Sending local reply with details upstream_reset_before_response_started{connection failure}
encoding headers via codec (end_stream=false):
via codec (end_stream=true):
':status', '200'
'content-type', 'application/grpc-web+proto'
'grpc-status', '14'
'grpc-message', 'upstream connect error or disconnect/reset before headers. reset reason: connection failure'
'access-control-allow-origin', 'http://localhost:8080'
'access-control-expose-headers', 'custom-header-1,grpc-status,grpc-message'
'date', 'Tue, 17 Nov 2020 11:42:01 GMT'
'server', 'envoy'

It looks like I can not establish a connection to the  server <IP_ADDRESS>:50211

What value do you have for VUE_APP_NETWORK in your .env file ?
It should not be <IP_ADDRESS>:50211 per your screenshot, but localhost or localhost:8089 if your envoy proxy is listening on 8089 instead of 80.
The envoy proxy receives grpcWeb connections from the web clients and converts them to gRPC invocations towards a Hedera node (it acts as a translator of sorts), so your local clients must point to the proxy (hence localhost:port) and the envoy configuration contains the IP address of the node (<IP_ADDRESS>:50211).

It's likely the curl to localhost:8089 fails because it has no GRPC payload to process.

It is localhost

It is localhost:8089

The only thing I can think of is that port 50211 is being blocked by your firewall. Are you able to run SDK examples against preview net ?

Hi, I've deployed envoy on port 8089 successfully, these are the changes I made

docker-compose.yaml: change 80:80 to 8089:80
.env: change VUE_APP_NETWORK="http://localhost:80" to VUE_APP_NETWORK="http://localhost:8089"

Hi @gregscullard, I was able to figure out the solution finally. The problem appears to be in the cluster configuration setting connect_timeout in the Envoy Configuration File. The default value of 0.25s seems to be too eager.

Increasing this to a higher number solves the issue.


One pattern on autocraft triggering the other pattern in a different crafter

Issue description:
One pattern in a crafter on autocraft with redstone signal is triggering the other recipe.
What happens:
I have two recipes for Vibrant Alloy, one to smelt it in the alloy smelter and one to craft it from Vibrant Alloy Essence.  The second one is set to auto craft in a crafter but never seemed to work.  I finally realizing the other recipe was being triggered and ALL my materials were being used to create it from materials.
What you expected to happen:
If I have the pattern that uses essence in the crafter and autocraft I expect it to use that one instead of the other one in a completely different crafter (not set to autocraft);
Version (Make sure you are on the latest version before reporting):
Foolcraft modpack 1.2.2

Minecraft: 1.10.2
Forge: <IP_ADDRESS>4
Refined Storage: 1.2.24

Does this issue occur on a server? [yes/no]  Don't know
If a (crash)log is relevant for this issue, link it here:
[pastebin/gist/etc link here]

How much Patterns does the Crafter that is set to trigger on redstone hold?

It's almost full.  I have other essence patterns and four loot bag patterns set to always run.

Well, it is auto crafting and works exactly like you would manually. It isn't just making stuff with that exact pattern. Although that would make more sense, but would make it so that it can't do more complex crafts. But food for thoughts a least.


[BLS] check if flags in sig verification should be set to true or false

This is related to https://github.com/MystenLabs/fastcrypto/pull/275 but for verification (for which we are more sensitive)

We leave the flag for now.


Could there be a macos build?

Since there are so many apps using translations between ipad touch to macos trackpad, could this be built for x86_mac or universal binaries which includes the ARM macs too?

I tried the macOS version for the first time a few days ago and it works, but I’m not sure how compelling it is as a Mac app.

Well, there are apps that do the job. I thought it is worth releasing an open license minimalistic(zen) app and it can eventually be turned to live in the menubar with enough interest by other people.

I'll consider doing this. In the meantime you should be able to build and install from source.

Zen Tuner is now on the Mac App Store: https://apps.apple.com/us/app/zen-tuner/id1550640624


add precip type plot

changes for Precip type plot.  Will need further commits to clean up legend code.  pylint expected to crash due to too many local variables.  Sample plots to follow.

Pushed a small commit to fix the pylint error and it ran through the tests.  Could still use some changes in default specs, but works and gets through the tests.  Sample plots:

Good job!  Lots of work here.  Just curious why linewidths for freezing rain and ice pellets are 0.5 but rain and snow are 0.2?  And does the line collection.set_linewidth(0.1) override this in maps.py?


allow use of upstream data as an option

I think a common use-case would be that we'll have a list of ID's, and we'll want to run those through and then merge them.
I think the easiest way to do this, when to create an input macro and then use a conditional when on input.
https://wiki.galaxyproject.org/Admin/Tools/ToolConfigSyntax#type_Attribute_Values_and_Dependent_Attributes
Input requested here:
https://github.com/TAMU-CPT/galaxy-apollo/blob/master/fetch_organism_jbrowse.xml#L48
Macro defined here:
https://github.com/TAMU-CPT/galaxy-apollo/blob/master/macros.xml#L59

works now


Rename "regionId" -> "region" for fake runbook api

Coverage remained the same at 95.082% when pulling ac9817ab3916bbe31e1d13bea700b144dfd4a08a on rename_runbook_region_parameter into a2d2042dc34662bea605207da57dda43fc2c8dd5 on master.


[AVM Question/Feedback]: Introduce and import rbacRoles.bicep

Check for previous/existing GitHub issues

[X] I have checked for previous/existing GitHub issues

Description
Ref: https://github.com/Azure/bicep/issues/1895
As per @anthony-c-martin's statement, this should not bloat the template says in the same way a module import would.
We should test this out and consider maintaining a centralized rbacRoles.bicep (or similar) file that we import into the modules.
It'll be interesting to understand how the 'dead code' elimination works, as by the time the module is compiled, no specific role is yet referenced so the compiler couldn't know what 'dead' code actually is.
More to find out in a PoC.

Note: This requires the latest > 0.25 bicep module version

Please note the latest comments on the linked Bicep issue (started doing a first couple tests)

Closing as this cannot be implemented in a meaningful way. After discussing with members of the PG, it turned out we'd need to load all roles into every template that uses them which adds about 40kb per module, and in case of e.g. KVLT which supports it also for children, 120kb etc.


[4.x] Remove dot notation in keys

Remove dot notation in keys

Codecov Report

Merging #1994 into develop will decrease coverage by 0.25%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##             develop    #1994      +/-   ##
=============================================
- Coverage      82.65%   82.40%   -0.26%
+ Complexity       531      522       -9
=============================================
  Files             27       27
  Lines           1211     1199      -12
=============================================
- Hits            1001      988      -13
- Misses           210      211       +1

Impacted Files
Coverage Δ
Complexity Δ

src/Jenssegers/Mongodb/Eloquent/Model.php
78.10% <ø> (-2.44%)
71.00 <0.00> (-9.00)

Continue to review full report at Codecov.

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


migrate: aws v2 migration ses + security hub

Description
Partially fixing https://github.com/gruntwork-io/cloud-nuke/issues/770.

TODOs
Read the Gruntwork contribution guidelines.

[ ] Update the docs.
[ ] Run the relevant tests successfully, including pre-commit checks.
[ ] Ensure any 3rd party code adheres with our license policy or delete this line if its not applicable.
[ ] Include release notes. If this PR is backward incompatible, include a migration guide.
[ ] Attention Grunts - if this PR adds support for a new resource, ensure the nuke_sandbox and nuke_phxdevops jobs in .circleci/config.yml have been updated with appropriate exclusions (either directly in the job or via the .circleci/nuke_config.yml file) to prevent nuking IAM roles, groups, resources, etc that are important for the test accounts.

Release Notes (draft)

Added / Removed / Updated [X].
Migration Guide

Hi @denis256, this should be good for review again! PTAL.

 PTAL again.


PR check for missing CHANGELOG entries broken

It fails to push comments for forks (see this log).

Atm, not possible to fix this on public repositories due to GitHub. Reopen if/when GitHub makes this possible.

I'll try to subscribe to the changes by GitHub and fix is when possible.


feat: add yosys optimizer pass

Part of https://github.com/google/heir/issues/111
This adds a global yosys optimization on a program - it booleanizes the arithmetic circuit, and then converts it into LUTs from the comb dialect.

Hooray!! 🎉
On Tue, Oct 31, 2023, 7:54 AM copybara-service[bot] <
@.***> wrote:

Merged #191 https://github.com/google/heir/pull/191 into main.
—
Reply to this email directly, view it on GitHub
https://github.com/google/heir/pull/191#event-10822060196, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAS2PKRYQPBBRZ2RJO2D5WTYCEGLTAVCNFSM6AAAAAA5WHJLNCVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJQHAZDEMBWGAYTSNQ
.
You are receiving this because you commented.Message ID:
@.***>

I know! one step closer :P


Refactoring to Python 3 and Object Oriented Design

The codebase needs to be updated to Python 3 along with the implementation of Object Oriented Design.

@emedvedev For the Object Oriented Design part.
Could you please discuss the approach you will work for this because I have some other alternative here.
https://github.com/kivy/plyer in this project first some facade/example is made having classname and methods
ex. class TTS and method def speak(self) which initially set to NotImplementedError to implement feature concerning it. And then we make different implementations concerning each platform like

Windows : in win dir we create tts.py and inherits TTS class  with overriding speak method with corresponding implementation for windows.
Similarly, linux dir for linux and tts.py inheriting TTS class again with its implementation.

If looks good then would like to work on it as I have already contributing to that project.
Thanks !!

@bhaveshAn sounds good to me. Here's what you can do:

Add an empty TTS class.
Create a structure as you have proposed, i.e. tts/<engine>/main.py (I would prefer main.py to tts.py for readability: if there's many files, main is a much clearer entry point).
Use a dynamic import with import_module to load the engine specified in the user config file.

You're welcome to work on it. Later we'll use a similar approach for actions, too.

@emedvedev

Create a structure as you have proposed, i.e. tts/ engine /main.py

From engine do you mean espeak / say
Like to create tts/espeak/main.py and tts/say/main.py
Or please elaborate if I am getting wrong.

Yes, you're getting it right. :)

@emedvedev
I have to make a PR in WIP.
Since there is huge change in codebase, so will it be good to make a new branch in upstream say py3 so that it may not affect current codebase which is on py2
What say.

Yup, a new branch sounds nice.
On March 12, 2018 at 21:20:01, Bhavesh Anand<EMAIL_ADDRESS>wrote:
@emedvedev https://github.com/emedvedev
I have to make a PR in WIP.
Since there is huge change in codebase, so will it be good to make a new
branch in upstream say py3 so that it may not affect current codebase which
is on py2
What say.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Melissa-AI/Melissa-Core/issues/194#issuecomment-372448970,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAI3Qnk8ziinwf4yjFxhbG9xOmES1H1iks5tdthvgaJpZM4SWR81
.

Could you make one?

Done, you can make PRs against the py3 branch now.
On March 12, 2018 at 21:24:09, Bhavesh Anand<EMAIL_ADDRESS>wrote:
Could you make one?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Melissa-AI/Melissa-Core/issues/194#issuecomment-372450132,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAI3QqzAlRtTJpgZqJzRcLscDTK1j_yOks5tdtlngaJpZM4SWR81
.

I would like to work on this

Bhavesh is running point on this one, and you're more than welcome to
coordinate with him and see if you can somehow split the task.
On March 14, 2018 at 02:27:26, kelvin paschal<EMAIL_ADDRESS>wrote:
I would like to work on this
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Melissa-AI/Melissa-Core/issues/194#issuecomment-372873856,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAI3Qvz8nWd0_2LRX0cqmwf8v90wzbYjks5teHH9gaJpZM4SWR81
.

@emedvedev
For OOD, we have made objects for tts as
config.py
tts_engine = SayTTS() or tts_engine = EspeakTTS() # depending on platform
Earlier, we are using WORDS const
Example:  WORDS = {'news_reader': {'groups': [['business', 'news']]}} for business_news_reader module.
But for actions it would better to switch to NLP instead of WORDS const as mentioned earlier.
Like,
business_news = BusinessNewsReader()
user_query = 'something asking to melissa'
if 'business' in nltk.tokenize.word_tokenize(user_query) and 'news' in nltk.tokenizeword_tokenize(user_query):
    business_news.news_reader(user_query)

etc for other action modules.
What say.

Please open a PR for every separate feature, and once there's code, I'll be
happy to comment on it.
NLP is definitely outside of the scope of this issue though. We are
refactoring the existing code first, so let's stick to that.
On March 14, 2018 at 22:47:54, Bhavesh Anand<EMAIL_ADDRESS>wrote:
@emedvedev https://github.com/emedvedev
For OOD, we have made objects for tts as
config.py
tts_engine = SayTTS() or tts_engine = EspeakTTS() # depending on platform
Earlier, we are using WORDS const
Example: WORDS = {'news_reader': {'groups': [['business', 'news']]}} for
business_news_reader module.
But for actions it would better to switch to NLP instead of WORDS const as
mentioned earlier.
Like,
business_news = BusinessNewsReader()
user_query = 'something asking to melissa'
if 'business' in nltk.tokenize.word_tokenize(user_query) and 'news' in
nltk.tokenizeword_tokenize(user_query):
business_news.news_reader(user_query)
etc for other action modules.
What say.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Melissa-AI/Melissa-Core/issues/194#issuecomment-373186073,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAI3Qtjj3pb3ha5aGnF8i5cl89pW5GBRks5teZAJgaJpZM4SWR81
.

Can I work on this if its still pending ?


Azcopy Copy Crashes Mac OS 10.15.5

Which version of the AzCopy was used?
azcopy version 10.5.1
Which platform are you using? (ex: Windows, Mac, Linux)
Mac OS 10.15.5, 2.3 GHz 8-Core Intel Core i9, 32 GB RAM
What command did you run?
azcopy copy "/my/local/path" "https://my_storage_account.blob.core.windows.net/container/path/" --recursive --overwrite false
What problem was encountered?
After few minutes the entire system crashes and the mac restarts. System Log sais:
panic(cpu 2 caller 0xffffff7f9f3a1ad5): userspace watchdog timeout: remoted connection watchdog expired, no updates from remoted monitoring thread in 69 seconds, 84 checkins from thread since monitoring enabled 1730 seconds ago after wakeservice: com.apple.logd, total successful checkins since wake (1730 seconds ago): 173, last successful checkin: 10 seconds ago
service: com.apple.WindowServer, total successful checkins since wake (1730 seconds ago): 173, last successful checkin: 10 seconds ago

The local file structure is:
/year/month/day/hour/my_file
Where there are 2-48 files for every hour, each 300-900 KB. I've tried to upload a whole year as well as only a single month. The problem occurs in both scenarios. One month is around 25 GB.
How can we reproduce the problem in the simplest way?
Probably by creating a similar file structure and running the command on the same system.
Have you found a mitigation/solution?
No, not yet. The problem occurs by running the command manually in a terminal as well as copying files with "Microsoft Azure  Storage Explorer".

@leokster Can you upload the core? Or post a backtrace?

@leokster Can you upload the core? Or post a backtrace?

Do you refer the logfile, azcopy creates in ~/.azcopy/********.log ? That one does have multiple entries of the type:
   ERROR:
-> github.com/Azure/azure-pipeline-go/pipeline.NewError, /Users/runner/go/pkg/mod/github.com/!azure/azure-pipeline-go@v0.2.2/pipeline/error.go:154
HTTP request failed

Put https://*****.blob.core.windows.net/container/2018/10/5/file?se=2020-09-11T09%3A05%3A54Z&sig=-REDACTED-&sp=rwl&sr=c&sv=2018-03-28&timeout=901: read tcp <IP_ADDRESS>:54070->xxx.xxx.xxx.xxx:443: read: operation timed out

But there is nothing at the end, which explains the crash?
Otherwise, could you tell me what exactly you need?
Thanks!

Hi @leokster, do you mind trying the latest version 10.7?
It is quite surprising to see a crash of this magnitude, would it help if you limit the concurrency? (please follow the doc here)
Ex:
export AZCOPY_CONCURRENCY_VALUE=4

I've had this exact problem happen to me many times over the last year when using azycopy, including just now. Other symptoms noted (e.g., network traffic going down a few minutes before crash) are the same.

macOS 10.15.7
azcopy 10.9.0

I also see a similar error text:

2021/03/23 21:59:26 ==> REQUEST/RESPONSE (Try=1/35.409µs, OpTime=3m33.453399094s) -- REQUEST ERROR
   PUT
   Content-Length: [3948337]
   User-Agent: [AzCopy/10.5.0 Azure-Storage/0.10 (go1.13; darwin)]
   X-Ms-Blob-Cache-Control: []
   X-Ms-Blob-Content-Disposition: []
   X-Ms-Blob-Content-Encoding: []
   X-Ms-Blob-Content-Language: []
   X-Ms-Blob-Content-Md5: []
   X-Ms-Blob-Content-Type: [text/plain; charset=utf-8]
   X-Ms-Blob-Type: [BlockBlob]
   X-Ms-Client-Request-Id: [e4d7a8a0-a3ca-4e05-4a30-ccb57a6576d8]
   X-Ms-Version: [2019-02-02]
   --------------------------------------------------------------------------------
   ERROR:
-> github.com/Azure/azure-pipeline-go/pipeline.NewError, /Users/runner/go/pkg/mod/github.com/!azure/azure-pipeline-go@v0.2.2/pipeline/error.go:154
HTTP request failed
Put : write tcp ->: write: broken pipe
goroutine 394 [running]:
github.com/Azure/azure-storage-azcopy/ste.stack(0xc041295830, 0xc0427c0700, 0x0)
/Users/runner/work/1/s/ste/xferLogPolicy.go:232 +0x9d
github.com/Azure/azure-storage-azcopy/ste.NewRequestLogPolicyFactory.func1.1(0x4932e80, 0xc000afd8c0, 0xc000278c00, 0x10, 0x0, 0x0, 0xc000db5490)
/Users/runner/work/1/s/ste/xferLogPolicy.go:146 +0x7a5
github.com/Azure/azure-pipeline-go/pipeline.PolicyFunc.Do(0xc0001a6ff0, 0x4932e80, 0xc000afd8c0, 0xc000278c00, 0xc000db5518, 0xc02a9d4b20, 0x400e6b6, 0xc0001aa3f0)
/Users/runner/go/pkg/mod/github.com/!azure/azure-pipeline-go@v0.2.2/pipeline/core.go:43 +0x44
github.com/Azure/azure-storage-azcopy/ste.NewVersionPolicyFactory.func1.1(0x4932e80, 0xc000afd8c0, 0xc000278c00, 0xc02a9d4bf8, 0xc02a9d4ba8, 0x400e6b6, 0xc0001a7090)
/Users/runner/work/1/s/ste/mgr-JobPartMgr.go:77 +0x1b1
github.com/Azure/azure-pipeline-go/pipeline.PolicyFunc.Do(0xc000ad9480, 0x4932e80, 0xc000afd8c0, 0xc000278c00, 0x10, 0x10, 0x4728980, 0x405fd80)
/Users/runner/go/pkg/mod/github.com/!azure/azure-pipeline-go@v0.2.2/pipeline/core.go:43 +0x44
github.com/Azure/azure-storage-blob-go/azblob.responderPolicy.Do(0x4923ee0, 0xc000ad9480, 0xc000267900, 0x4932e80, 0xc000afd8c0, 0xc000278c00, 0x0, 0x4e20aa0, 0xc02a9d4c08, 0x4030001)
/Users/runner/go/pkg/mod/github.com/!azure/azure-storage-blob-go@v0.10.0/azblob/zz_generated_responder_policy.go:33 +0x53
github.com/Azure/azure-storage-blob-go/azblob.anonymousCredentialPolicy.Do(...)
/Users/runner/go/pkg/mod/github.com/!azure/azure-storage-blob-go@v0.10.0/azblob/zc_credential_anonymous.go:54
github.com/Azure/azure-storage-azcopy/ste.(*retryNotificationPolicy).Do(0xc000918ae0, 0x4932e80, 0xc000afd8c0, 0xc000278c00, 0x0, 0x0, 0x0, 0xc02a9d4d28)
/Users/runner/work/1/s/ste/xferRetryNotificationPolicy.go:59 +0x5b
github.com/Azure/azure-pipeline-go/pipeline.PolicyFunc.Do(0xc000918af0, 0x4932e80, 0xc000afd8c0, 0xc000278c00, 0xc000afd8c0, 0xc000918c90, 0xc000000001, 0x0)
/Users/runner/go/pkg/mod/github.com/!azure/azure-pipeline-go@v0.2.2/pipeline/core.go:43 +0x44
github.com/Azure/azure-storage-azcopy/ste.NewBlobXferRetryPolicyFactory.func1.1(0x4932e00, 0xc000ae43c0, 0xc000278b00, 0x10, 0x46d6ae0, 0x64492d747301, 0xc000db51d0)
/Users/runner/work/1/s/ste/xferRetrypolicy.go:384 +0x708
github.com/Azure/azure-pipeline-go/pipeline.PolicyFunc.Do(0xc0001a7040, 0x4932e00, 0xc000ae43c0, 0xc000278b00, 0xc000db5300, 0x30, 0x28, 0x8)
/Users/runner/go/pkg/mod/github.com/!azure/azure-pipeline-go@v0.2.2/pipeline/core.go:43 +0x44
github.com/Azure/azure-storage-blob-go/azblob.NewUniqueRequestIDPolicyFactory.func1.1(0x4932e00, 0xc000ae43c0, 0xc000278b00, 0x10, 0x46d6ae0, 0x400ef01, 0xc000db5080)
/Users/runner/go/pkg/mod/github.com/!azure/azure-storage-blob-go@v0.10.0/azblob/zc_policy_unique_request_id.go:19 +0xae
github.com/Azure/azure-pipeline-go/pipeline.PolicyFunc.Do(0xc000ad94c0, 0x4932e00, 0xc000ae43c0, 0xc000278b00, 0xc000db5138, 0x31, 0xc000a30500, 0xc02a9d50f0)
/Users/runner/go/pkg/mod/github.com/!azure/azure-pipeline-go@v0.2.2/pipeline/core.go:43 +0x44
github.com/Azure/azure-storage-blob-go/azblob.NewTelemetryPolicyFactory.func1.1(0x4932e00, 0xc000ae43c0, 0xc000278b00, 0x1, 0x0, 0x1, 0xc00011a498)
/Users/runner/go/pkg/mod/github.com/!azure/azure-storage-blob-go@v0.10.0/azblob/zc_policy_telemetry.go:34 +0x15d
github.com/Azure/azure-pipeline-go/pipeline.PolicyFunc.Do(0xc000d8e9c0, 0x4932e00, 0xc000ae43c0, 0xc000278b00, 0xc000d8e9c0, 0x0, 0xc02a9d51c0, 0x400ef28)
/Users/runner/go/pkg/mod/github.com/!azure/azure-pipeline-go@v0.2.2/pipeline/core.go:43 +0x44
github.com/Azure/azure-pipeline-go/pipeline.(*pipeline).Do(0xc000e7e5c0, 0x4932e00, 0xc000ae43c0, 0x4923fc0, 0xc000267900, 0xc000278b00, 0x29, 0xc000c48031, 0x93, 0x0)
/Users/runner/go/pkg/mod/github.com/!azure/azure-pipeline-go@v0.2.2/pipeline/core.go:129 +0x81
github.com/Azure/azure-storage-blob-go/azblob.blockBlobClient.Upload(0xc000c48000, 0x5, 0x0, 0x0, 0x0, 0xc000c48008, 0x29, 0xc000c48031, 0x93, 0x0, ...)
/Users/runner/go/pkg/mod/github.com/!azure/azure-storage-blob-go@v0.10.0/azblob/zz_generated_block_blob.go:503 +0x5c9
github.com/Azure/azure-storage-blob-go/azblob.BlockBlobURL.Upload(0xc000c48000, 0x5, 0x0, 0x0, 0x0, 0xc000c48008, 0x29, 0xc000c48031, 0x93, 0x0, ...)
/Users/runner/go/pkg/mod/github.com/!azure/azure-storage-blob-go@v0.10.0/azblob/url_block_blob.go:65 +0x26a
github.com/Azure/azure-storage-azcopy/ste.(*blockBlobUploader).generatePutWholeBlob.func1()
/Users/runner/work/1/s/ste/sender-blockBlobFromLocal.go:109 +0x62d
github.com/Azure/azure-storage-azcopy/ste.createChunkFunc.func1(0x61)
/Users/runner/work/1/s/ste/sender.go:179 +0x1a7
github.com/Azure/azure-storage-azcopy/ste.(*jobsAdmin).chunkProcessor(0xc0002801a0, 0x61)
/Users/runner/work/1/s/ste/JobsAdmin.go:433 +0xdf
created by github.com/Azure/azure-storage-azcopy/ste.(*jobsAdmin).poolSizer
/Users/runner/work/1/s/ste/JobsAdmin.go:362 +0x67b

There are 226 instances of this error in my most recent log file in ~/.azcopy.
Some kind of rogue concurrency issue sounds pretty plausible. I will try setting AZCOPY_CONCURRENCY_VALUE going forward but it sounds like the default may need to be adjusted down.

Hi @jayqi, thanks for reaching out!
A colleague of mine also saw some strange behavior when he was running AzCopy on an older MacOS version. If possible, I'd suggest to upgrade to Big Sur, which may help.
Personally I've been using Big Sur and it is very stable.

I think I might be experiencing the same problem.
Using the latest OSX Sonoma 14.1 and azcopy 10.21.2.
When I try to download contents of a storage container (60k small files, ~2GB total size), the system first starts to stutter, then the network stops working on the computer and many apps become unresponsive. All that after only a couple of MBs are downloaded.
I did not see the system crash because I always killed azcopy and rebooted myself.
The same azcopy command works fine on linux VM in the cloud.
azcopy copy "https://my-storage-account.blob.core.windows.net/folder-name/?sv=2023-01-03&se=2023-12-08T17%3A00%3A29Z&sr=c&sp=rl&sig=redacted" . --overwrite=prompt --check-md5 FailIfDifferent --from-to=BlobLocal --recursive --log-level=INFO;


Reverse AddPolicy parameters

Fixes: https://github.com/Azure/azure-sdk-for-net/issues/7652
Breaking change
Before
options.AddPolicy(HttpPipelinePosition.PerCall, new AddHeaderPolicy());

After:
options.AddPolicy(new AddHeaderPolicy(), HttpPipelinePosition.PerCall);

@tg-msft as far as I remember they were removed by @KrzysztofCwalina  request.


README: Conventionalize

Update README.md to follow docs style, correct and clarify language.

/cc @gyuho @philips

lgtm. Thanks!


Add sort to dataset file level

sort at the dataset files table level

solr values are all multivalued instead of a concatenated string. This results in no way to perform a sort using solr url queries. Unless we can convert these solr columns into strings (which might pose upstream challenges such as how the ingestion pipeline creates these multi-valued columns when merging multiple files' metadata to a dataset and a collection level), will not touch this complex network of interdependencies for now.


How to get the current child node when I tap on the screen?

Macaw view has
public final func findNodeAt(location: CGPoint) -> Node?

thank you.

sorry. I can't find the method.


MVC Hang / Thread issue

Hi,
over the last weeks I had the problem that IISExpress hangs from time to time. Sometimes every second run of the mvc app ended with a browser not finishing the response. I may have identified an issue with the sitemap provider here. I've used the poor mans DI and when I break VS then I can see on a Thread that there is the sitemap provider involved.
I then deinstalled the MVC5 packaged and add the method  MvcSiteMapProvider.DI.Composer.Compose(); manually to my application_start and I get the exact same thing here. Please hava a lock at the stack trace. The iisexpress/vs hangs forever at this stage. Seems to be kind of a lock / thread wait?
Thanks
Andi

Based on the stack trace, this appears to be a problem related to the System.Runtime.Caching.MemoryCache.Default instance. I have always treated it as sort of a black box process, sort of like System.Web.Caching, but apparently it has other dependencies I was previously unaware of.
First of all, the poor man's DI container uses the default cache instance. There are configuration file settings that can be used to put a cap on the amount of memory that is allowed to be used for a cache. These settings could be in your web.config, the machine web.config, or the machine.config file for your .NET framework version and bitness, so there quite a few places where these settings could be lurking:
<configuration>
  <system.runtime.caching>
    <memoryCache>
      <namedCaches>
          <add name="default"
               cacheMemoryLimitMegabytes="0"
               physicalMemoryPercentage="0"
               pollingInterval="00:02:00" />
      </namedCaches>
    </memoryCache>
  </system.runtime.caching>
</configuration>

According to the documentation, however, it should just remove cache entries (not hang) if it is set too low. But it might be worth a try to experiment with removing these settings if they exist on your server.
Following your stack trace further, it seems to be hanging when creating the performance counters within the default MemoryCache instance, specifically when opening the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\.NET Memory Cache 4.0\Performance. There are 7 performance counters that it is attempting to create within this key:
private void InitDisposableMembers(string cacheName)
{
    bool flag = true;
    try
    {
        StringBuilder builder = (s_appId != null) ? new StringBuilder(s_appId + ":" + cacheName) : new StringBuilder(cacheName);
        for (int i = 0; i < builder.Length; i++)
        {
            switch (builder[i])
            {
                case '/':
                case '\\':
                case '#':
                    builder[i] = '_';
                    break;

                case '(':
                    builder[i] = '[';
                    break;

                case ')':
                    builder[i] = ']';
                    break;
            }
        }
        string instanceName = builder.ToString();
        this._counters = new PerformanceCounter[7];
        this._counterValues = new long[7];
        this._counters[0] = new PerformanceCounter(".NET Memory Cache 4.0", "Cache Entries", instanceName, false);
        this._counters[1] = new PerformanceCounter(".NET Memory Cache 4.0", "Cache Hits", instanceName, false);
        this._counters[2] = new PerformanceCounter(".NET Memory Cache 4.0", "Cache Hit Ratio", instanceName, false);
        this._counters[3] = new PerformanceCounter(".NET Memory Cache 4.0", "Cache Hit Ratio Base", instanceName, false);
        this._counters[4] = new PerformanceCounter(".NET Memory Cache 4.0", "Cache Misses", instanceName, false);
        this._counters[5] = new PerformanceCounter(".NET Memory Cache 4.0", "Cache Trims", instanceName, false);
        this._counters[6] = new PerformanceCounter(".NET Memory Cache 4.0", "Cache Turnover Rate", instanceName, false);
        flag = false;
    }
    finally
    {
        if (flag)
        {
            this.Dispose();
        }
    }
}

Here are the exported registry keys from my system:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\.NET Memory Cache 4.0]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\.NET Memory Cache 4.0\Linkage]
"Export"=""

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\.NET Memory Cache 4.0\Performance]
"CategoryOptions"=dword:00000003
"Counter Types"=hex:36,00,35,00,35,00,33,00,36,00,00,00,36,00,35,00,35,00,33,\
  00,36,00,00,00,35,00,33,00,37,00,30,00,30,00,33,00,30,00,30,00,38,00,00,00,\
  31,00,30,00,37,00,33,00,39,00,33,00,39,00,34,00,35,00,39,00,00,00,36,00,35,\
  00,35,00,33,00,36,00,00,00,36,00,35,00,35,00,33,00,36,00,00,00,32,00,37,00,\
  32,00,36,00,39,00,36,00,33,00,32,00,30,00,00,00,00,00
"Close"="ClosePerformanceData"
"FileMappingSize"=dword:00020000
"Counter Names"=hex:43,00,61,00,63,00,68,00,65,00,20,00,48,00,69,00,74,00,73,\
  00,00,00,43,00,61,00,63,00,68,00,65,00,20,00,4d,00,69,00,73,00,73,00,65,00,\
  73,00,00,00,43,00,61,00,63,00,68,00,65,00,20,00,48,00,69,00,74,00,20,00,52,\
  00,61,00,74,00,69,00,6f,00,00,00,43,00,61,00,63,00,68,00,65,00,20,00,48,00,\
  69,00,74,00,20,00,52,00,61,00,74,00,69,00,6f,00,20,00,42,00,61,00,73,00,65,\
  00,00,00,43,00,61,00,63,00,68,00,65,00,20,00,54,00,72,00,69,00,6d,00,73,00,\
  00,00,43,00,61,00,63,00,68,00,65,00,20,00,45,00,6e,00,74,00,72,00,69,00,65,\
  00,73,00,00,00,43,00,61,00,63,00,68,00,65,00,20,00,54,00,75,00,72,00,6e,00,\
  6f,00,76,00,65,00,72,00,20,00,52,00,61,00,74,00,65,00,00,00,00,00
"IsMultiInstance"=dword:00000001
"Open"="OpenPerformanceData"
"Collect"="CollectPerformanceData"
"Library"=hex(2):25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,00,6f,00,\
  74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6e,\
  00,65,00,74,00,66,00,78,00,70,00,65,00,72,00,66,00,2e,00,64,00,6c,00,6c,00,\
  00,00

Well, clearly we are now talking about .NET framework code, not MvcSiteMapProvider. There might be something configuration related on your machine that is causing performance counters not to be created, such as a registry permission issue. You could attempt to use the System.Runtime.Caching.MemoryCache.Default instance (or a named instance) or creating performance counters manually to see if you can reproduce the problem and perhaps gain more insight as to why it is hanging.
If you come to a dead end there, you could circumvent this problem entirely by switching to the AspNetCacheProvider that is based on System.Web.Caching. You just need to install MvcSiteMapProvider.MVC5.DI.Unity.Modules package, follow the instructions in the ReadMe to wire it into your current Unity configuration. Then you can swap out the cache provider code in the MvcSiteMapProviderContainerExtension class. It will look like this by default:
this.Container.RegisterInstance<System.Runtime.Caching.ObjectCache>(System.Runtime.Caching.MemoryCache.Default);
this.Container.RegisterType(typeof(ICacheProvider<>), typeof(RuntimeCacheProvider<>));
this.Container.RegisterType<ICacheDependency, RuntimeFileCacheDependency>(
	"cacheDependency", new InjectionConstructor(absoluteFileName));

You just need to change those lines to:
this.Container.RegisterType(typeof(ICacheProvider<>), typeof(AspNetCacheProvider<>));
this.Container.RegisterType<ICacheDependency, AspNetFileCacheDependency>(
	"cacheDependency", new InjectionConstructor(absoluteFileName));

I tried to reproduce the issue with a command line project calling the MemoryCache but there weren't any issues. It might be somewhat complex to find the error.
I change my code to use the Unity-Integration and the issue changed slightly. The new hold is now on the line where the caching gets registered
this.Container.RegisterInstance<System.Runtime.Caching.ObjectCache>(System.Runtime.Caching.MemoryCache.Default);

So i switche to the AspNetCacheProvider as u mentioned and for know the issue is gone. I'll try that for a while.

Good to hear you got it working.
It occurred to me that although the MSDN docs say that the MemoryCache will remove entries if the cache is full, MvcSiteMapProvider uses 1 entry per SiteMap instance. So, if the SiteMap requires more memory than the threshold that the configuration is set for, it very well could hang because there are no other nodes to remove.
Anyway, there is really no downside to using the AspNetCacheProvider other than the fact it is not as configurable or extensible as the ObjectCache. But since it is the configuration that seems to be your problem, you are better off with it.

Hi,
we had the same problem for the past weeks, and i found some information that seems to confirm, that the problem is actually in the performance counter library.
See : http://www.zpqrtbnk.net/posts/appdomains-threads-cultureinfos-and-paracetamol for detailed information, and a fix.


Allow optional payload for DELETE requests

Hello, it's me again 😄
It would be great to allow DELETE requests to send the body payload, if it's specified in the RAML file. It is permitted by RFC 7231 and required by JSON API.
Thanks!

Hi @joanniclaborde :)
Thanks for pointing this out. You are rigth, DELETE request should use a payload if provided.
However, I am currently on holidays. I will be back in a few days, but until then, I am afraid I won't be able to fix this. Although, i could review and merge a PR if you want to create one :)

Thanks for the reply! I forked your repo last week for testing, but didn't get to add tests yet. I created the PR for now.

Tests are added. Enjoy your time off!!

Thanks a lot for the PR. I just merged it although I can't releaese a new version until I get home. Also, the api blueprint adpater has the same problem so I probably will end refactor it a bit

Great, thanks a lot! I'll keep using my fork until this new code is released.


Sound files

Hi,
I made an app with some notification sounds, basically, mp3 files played with HTML5 Audio. Works fine in dev (npm run dev) and production (npm run build && npm run start) mode.
But when I package the app, files aren't found: full/path/app/Contents/Resources/app.asar/assets/sounds/notification.mp3
What should I do to have these files available in package?

(I'm using the very last version of electron-react-boilerplate)

Try add it to build.files of package.json or dist/.

Thanks! It worked perfectly.
Might be worth mentioning this in the docs for "non webpackable" files. ;)


jjb: stop building for PRs to crowbar branch stable/3.0

As Cloud 6 is EOL now (soon), we can stop building the PRs to the stable/3.0 braches of the crowbar repos.
Do not merge as long as there are PRs that should go out to customers.

not applicable now, this PR can be reopened in April 2019


Remove precip derived variable. Link code to deaccumulated precip instead.

This PR removes the ability for climakitae to compute total precipitation as a derived variable. Instead, the code now links to deaccumulated total precipitation, which is now available as a new variable in our catalog.
I am still figuring out a good extended description for this variable, but the rest of the code is ready for review.
To test: Just try retrieving the "Precipitation (total)" variable, calling app.load() on it, maybe trying the unit conversions to inches. Thanks!

Getting a UnboundLocalError: local variable 'da' referenced before assignment error on app.retrieve() with the following selections:

area averaged monthly total precip, historical + ssp3.7, 45km, in mm for CA
area averaged daily total precip, historical + ssp3.7, 45km, in inches for CA

A little testing shows that:

not being caused by area averaging
converting units is fine
historical alone is fine
ssp3-7.0 alone is fine
area averaging is fine

So looks like appending historical to a future scenario is breaking here for total precip, because interestingly enough, calling both historical and ssp3-7 but not appending works just fine

So looks like appending historical to a future scenario is breaking here for total precip, because interestingly enough, calling both historical and ssp3-7 but not appending works just fine

Good find. This should be fixed now :D

I am not able to load this branch on the HUB. There are 4 references to variable_catalog.csv still in the code, but it has been renamed to variable_description.csv

I am not able to load this branch on the HUB. There are 4 references to variable_catalog.csv still in the code, but it has been renamed to variable_description.csv

great catch. thanks, eric!


Prisma generates types incorectly

Bug description
latest 5.17.0 version generates incorrect types for client
How to reproduce

Expected behavior
No response
Prisma information

generator client {
  provider        = "prisma-client-js"
  previewFeatures = ["fullTextSearch", "fullTextIndex"]
}

datasource db {
  provider = "mysql"
  url      = env("DATABASE_URL")
}

enum PostStatus {
  DRAFT
  DELETED
  PUBLISHED
}

model User {
  id         String   @id @default(cuid())
  email      String   @unique @db.VarChar(100)
  password   String   @db.VarChar(255)
  name       String   @db.VarChar(100)
  resetToken String?  @db.VarChar(255)
  createdAt  DateTime @default(now())
  updatedAt  DateTime @updatedAt

  roleId Int
  Role   Role   @relation(fields: [roleId], references: [id])
  Post   Post[]
}

Generated client
export interface Prisma__UserClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    Role<T extends RoleDefaultArgs<ExtArgs> = {}>(args?: Subset<T, RoleDefaultArgs<ExtArgs>>): Prisma__RoleClient<$Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    Post<T extends User$PostArgs<ExtArgs> = {}>(args?: Subset<T, User$PostArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "findMany"> | Null>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * Attaches a callback for only the rejection of the Promise.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of the callback.
     */
    catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
     * resolved value cannot be modified from the callback.
     * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
     * @returns A Promise for the completion of the callback.
     */
    finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  }

findUnique<T extends UserFindUniqueArgs>(args: SelectSubset<T, UserFindUniqueArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

Environment & setup

OS: macOS
Database: MySQL
Node.js version: v18.18.2

Prisma Version
prisma                  : 5.17.0
@prisma/client          : 5.17.0
Computed binaryTarget   : darwin-arm64
Operating System        : darwin
Architecture            : arm64
Node.js                 : v18.18.2
Query Engine (Node-API) : libquery-engine 393aa359c9ad4a4bb28630fb5613f9c281cde053 (at<EMAIL_ADDRESS>Schema Engine           : schema-engine-cli 393aa359c9ad4a4bb28630fb5613f9c281cde053 (at node_modules/@prisma/engines/schema-engine-darwin-arm64)
Schema Wasm             : @prisma/prisma-schema-wasm 5.17.0-31.393aa359c9ad4a4bb28630fb5613f9c281cde053
Default Engines Hash    : 393aa359c9ad4a4bb28630fb5613f9c281cde053
Studio                  : 0.502.0
Preview Features        : fullTextIndex, fullTextSearch

Hey @umtale,
Would you mind sharing with us how you're initiating the Prisma Client? This is necessary for us to reproduce your issue. Thanks

Here is Prisma service
import { Injectable, OnModuleInit } from '@nestjs/common';
import { PrismaClient } from '@prisma/client';

@Injectable()
export class PrismaService extends PrismaClient implements OnModuleInit {
  async onModuleInit() {
    await this.$connect();
  }
}

Any updates?

Problem is fixed after upgrade Prisma and Prisma Client to 5.18.0

Problem is fixed after upgrade Prisma and Prisma Client to 5.18.0

I have the same problem, how to fix it, changing the version did not help me


Wemo custom ports and network errors handling

Description:
Follow-up for https://github.com/home-assistant/home-assistant/pull/8307 and https://github.com/home-assistant/home-assistant/pull/8414 - support emulated switches sitting behind one ip on different ports.

Updated pywemo-0.4.27 to properly handle alternative ports when reconnecting.
Support 'host:port' in static section.
Fail on inaccessible static addresses, and do it before doing discovery
Handle network exceptions raised from pywemo.discovery.device_from_description / requests.get(...setup.xml url...) for discovery and switch/light/binary_sensor wemos.

Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.github.io#5401
Example entry for configuration.yaml (if applicable):
wemo:
  static:
    - <IP_ADDRESS>
    - <IP_ADDRESS>
    - <IP_ADDRESS>:1111
    - <IP_ADDRESS>:2222
    - <IP_ADDRESS>:3333

Checklist:

[x] The code change is tested and works locally.
[x] Local tests pass with tox. Your PR cannot be merged unless tests pass

If user exposed functionality or configuration variables are added/changed:

[x] Documentation added/updated in home-assistant.github.io

Ping @pavoni
If it is ok this combines static entries and network errors that I noticed. platforms should retry on failure now
unlike probe_wemo, device_from_description does not handle exceptions when checking device type and then creating Device class that uses requests.get in __init__

Looks good to me - some of that code is quite old and I think pre-dates PlatformNotReady so looks like a good improvement on top of the new static changes.
Afraid I didn't have a chance to run the code - and my HA knowledge is now getting out of date!

Hm. Maybe I overlooked possible real wemo error.
Base component discovery successful -> it errors out in platform bc of network and retries -> setup.xml is sitting on different port -> retry always fails.

Please solve the merge conflict.

@MartinHjelmare ping

Can be merged when build passes.


Default to 'main' branch instead of 'master'

As described in https://github.com/github/renaming, the default branch on github is moving from master to main.
We might want to default to main instead of master as well.
Since both target and upstream branch args are currently required, this is a backwards compatible change.
Once this change is made (or as part of it), the target and upstream branch names could be made optional.

To avoid confusion with defaults, I just removed them. Now all required inputs need to be set explicitly in the workflow. Changed in 6f9cf9f.


[x] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior
Autocomplete control should work smoothly, even if there is large data in suggestions list,
Current Behavior
Autocomplete control slows down when there is large data in suggestions list (tested with 430 options)
Steps to Reproduce
I'm using same example in demo, (with dark theme)
https://material-ui.com/demos/autocomplete/
I have changed suggestions data to have 430 items.
Context
I have 400-450 data options to present on UI for user selection (multi), so I wanted to use Autocomplete component.
Your Environment

Tech
Version

Material-UI
v1.4.0

React
v16.4.1

browser
Chrome  64.0.3282

@amit-metkar You need to virtualize the list. I'm sorry, but it's outside the scope of the porject. Let us know if there is some blockers on our side. We would be happy to work on removing them :).

@oliviertassinari, thanks for your suggestion, I will try it.
There is 1 more issue I see, not related to original issue mentioned in this thread though.
https://codesandbox.io/s/jno5zy8oz3
Selected list goes out of box, if more options selected in multiselect autocomplete.

@amit-metkar Thanks for reporting the flex wrap issue. It's fixed now :).

hey, @amit-metkar how did you solve the issue regarding the large data? what @oliviertassinari refers to virtualize?
I've seen libraries like react window that renders thousands of records without being laggy. It would be great that the autocomplete have an inner logic to render the records dynamically based on a number passed by the user
thanks in advance.

@ehernandez-vi Check the demo in the documentation. A bit related to #25417.

thank for the quick response  @oliviertassinari :) , I already found an example on the docs regarding the virtualization, I'll try that first I think it should work on my side.
https://material-ui.com/components/autocomplete/#virtualization
thank you so much


easydict install error(python 3.6, windows10)

Hi, I'm trying "python save_model.py --weights yolov3.weights --output ./checkpoints/yolov3-416 --input_size 416 --model yolov3 --framework tflite" but I don't have module of easydict... although I tried pip install easydict, but it errors, I'm not sure I can install easydict in python 3.6 and windows10.

pip install easydict worked for me with python 3.7.9 on Windows 10.


[Bug]  Expand Op v8 with ConstantOfShape as shape input will failed when because of infer_shape's output

Thanks for participating in the TVM community! We use https://discuss.tvm.ai for any general usage questions and discussions. The issue tracker is used for actionable items such as feature proposals discussion, roadmaps, and bug tracking.  You are always welcomed to post on the forum first :smile_cat:
Issues that are inactive for a period of time may get closed. We adopt this policy so that we won't lose track of actionable issues that may fall at the bottom of the pile. Feel free to reopen a new one if you feel there is an additional problem that needs attention when an old one gets closed.
Expected behavior
compile an ONNX model with Expand op
Actual behavior
File ~/src/tvm/python/tvm/relay/frontend/onnx.py:2238, in Expand._impl_v8(cls, inputs, attr, params)
   2235     new_shape = _op.maximum(in_shape, shape)
   2236     return new_shape
-> 2238 shape = fold_constant(expand_shape(in_shape, shape))
   2239 return _op.broadcast_to(inputs[0], shape=shape)

File ~/src/tvm/python/tvm/relay/frontend/onnx.py:2207, in Expand._impl_v8.<locals>.expand_shape(in_shape, shape)
   2204 in_dims = infer_shape(in_shape)[0]
   2205 new_dims = infer_shape(shape)[0]
-> 2207 if in_dims < new_dims:
   2208     in_shape = _op.concatenate(
   2209         [
   2210             _expr.const(
   (...)
   2219         axis=0,
   2220     )
   2221 elif new_dims > in_dims:

File ~/src/tvm/python/tvm/tir/expr.py:185, in ExprOp.__bool__(self)
    184 def __bool__(self):
--> 185     return self.__nonzero__()

File ~/src/tvm/python/tvm/tir/expr.py:179, in ExprOp.__nonzero__(self)
    178 def __nonzero__(self):
--> 179     raise ValueError(
    180         "Cannot use and / or / not operator to Expr, hint: "
    181         + "use tvm.tir.all / tvm.tir.any instead"
    182     )

ValueError: Cannot use and / or / not operator to Expr, hint: use tvm.tir.all / tvm.tir.any instead

Environment
Any environment details, such as: Operating System, TVM version, etc
            .-/+oossssoo+/-.               taylor@x1
        `:+ssssssssssssssssss+:`           ---------
      -+ssssssssssssssssssyyssss+-         OS: Ubuntu 22.04 LTS x86_64
    .ossssssssssssssssssdMMMNysssso.       Host: 21CBA002CD ThinkPad X1 Carbon Gen 10
   /ssssssssssshdmmNNmmyNMMMMhssssss/      Kernel: 5.15.0-39-generic
  +ssssssssshmydMMMMMMMNddddyssssssss+     Uptime: 1 day, 2 hours, 29 mins
 /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/    Packages: 2178 (dpkg), 10 (flatpak), 19 (snap)
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Shell: zsh 5.8.1
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   Resolution: 2240x1400
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   DE: GNOME 42.1
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   WM: Mutter
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   WM Theme: Adwaita
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Theme: Yaru-dark [GTK2/3]
 /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/    Icons: Yaru [GTK2/3]
  +sssssssssdmydMMMMMMMMddddyssssssss+     Terminal: gnome-terminal
   /ssssssssssshdmNNNNmyNMMMMhssssss/      CPU: 12th Gen Intel i5-1240P (16) @ 4.400GHz
    .ossssssssssssssssssdMMMNysssso.       GPU: Intel Alder Lake-P
      -+sssssssssssssssssyyyssss+-         Memory: 5570MiB / 15701MiB
        `:+ssssssssssssssssss+:`
            .-/+oossssoo+/-.

TVM version
build from source with intel-mkl llvm openmp
at tag v0.8.0
Steps to reproduce
from tvm.driver import tvmc
tvmc.load('any onnx file contains a constOfShape -> expand')

I found out what wrong here.
def expand_shape(in_shape, shape):
            """A function expands the shape when the rank is lower than that of the given
            intput. Also it replaces the extent of the shape with the corresponding extent
            of the intput when it is 1.
            """
            in_dims = infer_shape(in_shape)[0] # <class 'int'>
            new_dims = infer_shape(shape)[0] #  <class 'tvm.tir.expr.Any'>

the op in onnx

Hi @TaylorHere , welcome to TVM and I am willing to help you on that. To exactly solve the issue you met, can you attached a (minimized) model or a simple code snippet to reproduce the issue? Thanks!

the ONNX file is too big to upload, I'm trying to build the constantOfShape -> Expand structure with onnx.helper.
the model is passed through onnx.checker

import numpy as np
import onnx
from tvm.driver import tvmc

def create_initializer_tensor(
    name: str,
    tensor_array: np.ndarray,
    data_type: onnx.TensorProto = onnx.TensorProto.FLOAT,
) -> onnx.TensorProto:
    return onnx.helper.make_tensor(
        name=name,
        data_type=data_type,
        dims=tensor_array.shape,
        vals=tensor_array.flatten().tolist(),
    )

input_4001_np = np.ones(shape=(1,)).astype(np.int64)

input_4001 = create_initializer_tensor(
    name="input_4001", tensor_array=input_4001_np, data_type=onnx.TensorProto.INT64
)

attr_value = onnx.helper.make_tensor("input_value", onnx.TensorProto.INT64, [1], [1])

output_892 = onnx.helper.make_tensor_value_info(
    "output_892", onnx.TensorProto.INT64, [1]
)

ConstantOfShape_704 = onnx.helper.make_node(
    name="ConstantOfShape_704",
    op_type="ConstantOfShape",
    inputs=["input_4001"],
    outputs=["output_892"],
    value=attr_value,
)

input_4000_np = np.ones(shape=(3, 2)).astype(np.int64)

input_4000 = create_initializer_tensor(
    name="input_4000", tensor_array=input_4000_np, data_type=onnx.TensorProto.INT64
)

output_893 = onnx.helper.make_tensor_value_info(
    "output_893", onnx.TensorProto.INT64, [3, 2]
)

Expand_705 = onnx.helper.make_node(
    name="Expand_705",
    op_type="Expand",
    inputs=["input_4000", "output_892"],
    outputs=["output_893"],
)

# Create the graph (GraphProto)
graph_def = onnx.helper.make_graph(
    nodes=[ConstantOfShape_704, Expand_705],
    name="constantOfShape->Expand",
    inputs=[],
    outputs=[output_893],
    initializer=[input_4001, input_4000],
)

# Create the model (ModelProto)
model_def = onnx.helper.make_model(graph_def, producer_name="onnx-example")
model_def.opset_import[0].version = 13

model_def = onnx.shape_inference.infer_shapes(model_def)

onnx.checker.check_model(model_def)

onnx.save(model_def, "convnet.onnx")

mod = tvmc.load('convnet.onnx')
tvmc.compile(mod, 'llvm')

hi 9bba758 works for me as well, I was worked on v0.8.0
9bba758 raise new errors for my model
Incompatible broadcast type TensorType([1, 3, 56, 120, 2], float32) and TensorType([3, 2], float32)
The type inference pass was unable to infer a type for this expression.
This usually occurs when an operator call is under constrained in some way, check other reported errors for hints of what may of happened.

Would you mind file the model through my email if that is not confidential? I can help take a closer look. :-) @TaylorHere

@TaylorHere  Thanks for sharing the model. However, this model itself is invalid that cannot pass onnx full check:
import onnx

onnx_model = onnx.load(args.model)
onnx.checker.check_model(onnx_model, full_check=True)

So the model iteself is invalid as its input 0 has no type information. Since you exported the model from PyTorch, I suggest you open an issue there to see what's going on. In the meantime, you might want to export the model with PyTorch nightly as they are continuously making updates for better supporting ONNX.

hi, @ganler, thx for your help, you are right, my model is invalid, exporting with PyTorch nightly works for me.


Update azure-identity to GA version

As title.

API change check
API changes are not detected in this pull request.

Do we remove the changes in the version file?

I think so, there is no other files depend on unreleased_com.azure:azure-identity.


x509: certificate signed by unknown authority

We are using helm chart to install harbor on K8S.
The installation succeeded. however when we create a pod in K8S to pull the image, we got the error:
x509: certificate signed by unknown authority
We can use docker login domain and docker pull/push with user control.
Please let me know if more informations are needed.
Thanks a lot!

Does the node that's running the kubelet have the CA that signed the Harbor cert installed and available?

@mailzyok Does the node that's running the kubelet have the CA that signed the Harbor cert installed and available?

I'm closing this issue due to inactivity.


Upgrade to nan 2.0.5

Just a heads up and a few questions. I'm working on upgrading v8 profiler to work with iojs 3 and nan 2.0.5.
Is any related work going on that I should be aware of?
Do you have any helpful links tips?
Thanks

Hi @thlorenz, I'm upgrading memwatch to nan 2.0.5 too (it shares some HeapProfiler code), how is going your port?

It got merged after @rvagg added a few fixes, see #71
Just forgot to close this issue ;)

@marcominetti you might find this script useful

This is my mistake. Sorry.
Thank you for fix.


[Feature] Language abrevations in corresponding languages

Problem
The languages on the website are written in English but it will be great if they are written in their corresponding language. ex Hindi as हिंदी
inspired from this comment.
Implementation

[x] I would be interested in implementing this feature.

@Lakshay-Pruthi hi! , kindly check the discussion  #87 by maintainers on a similar issue .

@Lakshay-Pruthi hi! , kindly check the discussion #87 by maintainers on a similar issue .

This issue is derived from an opinion in that discussion.


[ci/bazel] conduct partial build to prepare for Vivado with bazel

Also renamed otp image to reflect we use it for tests more generally and not just for Verilated tests. This may conflict with work on #11550.
Fixes #12655
Signed-off-by: Drew Macrae<EMAIL_ADDRESS>

I don't think I could have caused the unit-test failures in the sw/build phase, so I'm rebasing and resubmitting


[rmodels] DrawMeshInstanced() is not working

I can't get DrawMeshInstanced() to display anything, I just get a black screen. Same issue as #2707.
The Mesh Instancing web example examples/shaders/shaders_mesh_instancing doesn't work regardless of which browser I use.

Was able to confirm it's no longer working. Actually, by chance, I tested it on the start of the month and it was working. So some recent change must have broken it.

Are shaders necessary to use DrawMeshInstanced? I was hoping to draw a large number of instances but I haven't got the handle of shaders yet.

I just tried the example on desktop and web (locally) and it works as expected with latest raylib at this same moment.
Attaching my local compilation: shaders_mesh_instancing.zip
I vaguely remember I already faced this issue in the past but it's really weird, it works ok locally but once uploaded to GitHub it just stops working, issue is related to shader line-breaks (LF vs CR LF) but I don't know why it only fails for the specific shaders used in this example.

Are shaders necessary to use DrawMeshInstanced()? I was hoping to draw a large number of instances but I haven't got the handle of shaders yet.

@Steelsmasher yes, they are needed. Make sure they are properly loaded, that could be your issue on desktop.

@Steelsmasher When you run the shaders_mesh_instancing example, does the logs show any warnings or errors?

When I run shaders_mesh_instancing from example folder with raylibs notepad++ everything runs fine. When I tried @raysan5's local compilation I got a blank screen as below:

@Steelsmasher the log say that shaders can not be loaded, are you copying them in the right path?

I got that error too if I executed the example from some other dir other than inside examples/shaders/, e.g.:
~/test/raylib-master/examples$ ./shaders/shaders_mesh_instancing
[...]
WARNING: FILEIO: [resources/shaders/glsl330/lighting_instancing.vs] Failed to open text file
WARNING: FILEIO: [resources/shaders/glsl330/lighting.fs] Failed to open text file
[...]

Which doesn't happen if executed from inside the examples/shaders/ dir, e.g.:
~/test/raylib-master/examples/shaders$ ./shaders_mesh_instancing
[...]

That's why I assumed the problem was the path not considering the application directory. I think that doesn't happen when compiling for PLATFORM_WEB because emcc packs the assets on the .data file.

@raysan5 I didn't, I simply ran the exe from your zip folder as is. Copying the resources folder into it fixed it, thanks.
I noticed raylib.zig compiles the executable into a folder without the shaders, so that's probably my issue.


Add new analysis pass CountOpsLongest to transpiler

Summary
This PR adds a new analysis pass CountOpsLongest to the transpiler, which returns a list of operations on the longest path of DAGcircuit. This is the same path, which defines the depth of the circuit. The method count_ops_longest() is added to the DAGcircuit.

hi @ajavadia I have added

the method longest_path() to DAGcircuit, which returns a list of DAGNodes for the longest path in the DAG
another transpiler analysis pass DAGLongestPath
unittests for transpiler passes CountOpsLongestPath and DAGLongestPath

thanks this looks good!


changes to search bar

the search bar should be able to control which category it is searching, as well as keep some parameters intact when searching, such as "mode," or "category"

merged with 0.0.2


Added initial navbar styles

Coverage increased (+0.01%) to 81.349% when pulling 61aa47a9adbf9eb253d76073cb3cf591e26b2fb3 on simeonoff:master into 4a789a1ff85d1ee9cceab4546ed18e54e72090da on Infragistics:master.

Coverage decreased (-0.03%) to 81.345% when pulling 3218f6af5d8cb8fdfb3048a96d4ea69c8c7183fb on simeonoff:master into 1420c3a22e0b8ba01db079e1d053b42ce6637f10 on Infragistics:master.

Coverage decreased (-0.03%) to 81.345% when pulling 4413194d7acc3305e416ef70c5e74082c5206513 on simeonoff:master into 1420c3a22e0b8ba01db079e1d053b42ce6637f10 on Infragistics:master.


Update back-up-the-service-master-key.md

The Service Master Key shouldn't need to be in any user database context, and the comment relating to the password protection seems to have been copied from the code example on backing up the Database Master Key.
(Once again the entire section seems to want updating for a couple lines of example code. Weird.)

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

Thank you @rabryst for the help.  @BYHAM can you please review.

#sign-off


Flooded [Feather Messages] tab

Hey, I recently started a project and decided to incorporate both Scribble and Input.
I use Feather.  So much so that it's getting quite difficult seperating them from my project's own.
I'd like to know if this is planned to be fixed, if so, I'd gladly submit a pull request doing as much as I can to help!
If not, i'd like to know if there is a way to disable the messages coming from the libraries and only keep my project's.

Features in Feather that should allow us to turn off messages don't seem to work. We have explored options in the past and none are helpful.


Alacritty theme bright black

Hi! I love this theme thanks for porting it to NeoVim
One thing I noticed with the alacritty theme (night) is that the bright black color is the same as the normal black so in certain contexts it makes the text unreadable like zsh autocomplete suggestions, I haven't tried with other theme variations.

So I changed that color from 0x15161E to 0x565f89 which is the comment color variant

I could try to make a PR if you think it's necessary
Thanks again!

This was already reported in #25. I'll fix it somewhere tomorrow. Thank you for reporting!

Oh, I thought it was unrelated, sorry for that! Closing the issue.

No worries :) I'll keep it open to double check this is fixed as well

This should be fixed now

Great! Thank you 🙌


Release/v1.0

You don't need to make PRs for merging from a release branch into master, as code that's in the release branch should already have been reviewed before entering that branch.
Make sure not to squash and merge, or delete the release branch

@LachlanStuart
I think by mistake we forgot to check/change corresponding readme file both for current master branch as well as for release v1.0 branch.

@LachlanStuart
I think by mistake we forgot to check/change corresponding readme file both for current master branch as well as for release v1.0 branch.
Sounds like a hotfix. I usually submit a PR with changes to the release branch. Then squash and merge with into the branch. Later these changes can be moved into master by simple merge.


Clear the bundle/project terminology in the docs

The new terminology of a '(package) bundle' is a bit tangled up with the older terminology of a 'project' in the documentation.
Here's a list of related appearances of the words:

The word 'project' is not defined in the Introduction and terminology .
In the Usage example, the 'project directory' expression is used for the directory defined as 'package root' in the Introduction and terminology .
In the Installation, Usage example, and The simplebuild.cfg file, the word 'project' is used in many cases referring the the directory defined as 'bundle' / 'package bundle' in the Introduction and terminology .
In the Installation, dgcode is referred to as a 'set of packages'
The expressions: 'Projects directory' and appears in the sb command output
[project] and depend.projects is used in the simplebuild.cfg file. (As a sidenote, depend.projects first appears in the The [project] section, without any hint that it will be introduced in the following 'depend' section)
The possibility of grouping related packages in a common directory (formerly called 'project') is not mention explicitly (only implied in the Package filters section: "/some/where/MyPkg")

Agreed. I kind of knew there were some inconsistencies, but nice with a curated list :-)

There is also the concept of a "master cfg" file, mentioned on https://mctools.github.io/simplebuild/simplebuilddotcfg.html but not on https://mctools.github.io/simplebuild/intro.html.

I have more or less done this transition now (feel free to visit in particular the Usage and Intro pages to read), including changing the "project/projects" keywords in simplebuild.cfg (supporting the deprecated names for now, with warnings emitted).
Next is to implement corresponding changes in the downstream repos.
After this is done, simple-build-system 1.1.0 and simple-build-dgcode 1.1.0 will be the magic versions in the new world :-)

Only missing item 7 in the original list, but I honestly don't think it is a big deal if we leave it out and my attempts at adding it mostly manages to make the text less easy to read. So I will ignore it for now, unless I get a PR ;-)

@MilanKlausz feel free to re-read some of the pages after my changes (e.g. the usage and terminology pages), but for now I will take the liberty of closing here :-)


exit_sendmail: filter list of receivers for valid email addresses

filter the list of possible receivers for valid email addresses. Valid in this is case is one or more alphanumerics, ., -, or _, followed by an @ sign, followed by one or more tokens like the first, followed by a ., followed by some alphanumerics. So<EMAIL_ADDRESS>is valid, but me@example or<EMAIL_ADDRESS>are not.
This isn't strict RFC 2821 compliance, but matches the soft rules that
likely emails will follow.
Signed-off-by: Mark Langsdorf<EMAIL_ADDRESS>

Updated release notes draft:

exit_sendmail: filter list of receivers for valid email addresses


[Issue]: ConversableAgent  parameter ---chat_messages

Describe the issue
"chat_messages (dict or None): the previous chat messages that this agent had in the past with other agents.
Can be used to give the agent a memory by providing the chat history. This will allow the agent to
resume previous had conversations. Defaults to an empty chat history."I'm having trouble understanding the meaning of this parameter. Since it doesn't exist before we initialize the object, how can there be a chat history? This has confused me for a long time. I haven't found a correct example of how to use this parameter, and I'm hoping to find the right way to use it
Steps to reproduce
No response
Screenshots and logs
KeyError: <autogen.agentchat.conversable_agent.ConversableAgent object at 0x0000027035619CD0>
Additional Information
No response

I also struggled to use a short chat history to initialize a ConversableAgent object, as in OpenAI's chat_completion API example, we initialize like:
`from openai import OpenAI
client = OpenAI()
response = client.chat.completions.create(
model="gpt-3.5-turbo",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Who won the world series in 2020?"},
{"role": "assistant", "content": "The Los Angeles Dodgers won the World Series in 2020."},
{"role": "user", "content": "Where was it played?"}
]
)`
Now the question is how to inject those short conversation history as a memory into ConversableAgent.chat_messages? Here is a hacky way to do it (although we should have official support for this type of initialization beyond just a plain string):
`from typing import List, Dict
Mocking the Agent class for this example
class Agent:
def init(self, name: str):
self.name = name
Sample User Agent
agent_user = Agent("Agent A")
Example message history without the last user query
chat_messages = {
agent_user: [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Who won the world series in 2020?"},
{"role": "assistant", "content": "The Los Angeles Dodgers won the World Series in 2020."},
]
}
Initializing ConversableAgent with chat_messages and LLM configuration
conversable_agent = ConversableAgent(
name="AssistantAgent",
system_message="You are a helpful assistant.",
chat_messages=chat_messages,  # Preloaded chat history
llm_config={"model": "gpt-3.5-turbo"}
)
New user query
new_message = {"role": "user", "content": "Where was it played?"}
Generate a reply using the current conversation history plus the new message
updated_history = chat_messages[agent_user] + [new_message]
reply = conversable_agent.generate_reply(messages=updated_history)
print(reply)
`

hi @WaelKarkoub Do you have any ideas here?

chat_messages is optional and is mainly used to resume old chats or update the context history of the agent with older context. For example, let's say you have stored these agents' chats in a database, what you can do now is reconstruct the chat messages (key=agent, value=list of messages) and feed it to the agent. So even when you restart the process, we can still keep the same context (or message history as some call it) from an older session. This feature is part of the persistence roadmap https://github.com/microsoft/autogen/issues/2358.
Hopefully I understood you correctly, I'm failing to see where the issue is though. Are you trying to report a bug?

Thanks @WaelKarkoub! I think I have the same question. "chat_messages is used to initialize a convesable_agent" and documentation said "This will allow the agent to resume previous had conversations.".
However, the conflict is if this is the first time to initialize the agent, how we get its previous chat history? Even we use the same agent class but they are essentially different objects in python (the agents used to generate the history and the agent which is initialized using the chat_messages.).
I am not sure whether I clarify it clearly.

The chat history is empty when you initialize an agent, so you can't really get it. What you can do is store the previous chat history from the "previously" initialized agent in a database and reconstruct it later when you want to use it again. Once you reconstruct it you can pass it to the newly initialized agent. Hope that helped @skzhang1 !

@WaelKarkoub Thanks! After getting  into the code details. I think I got it point.
@somewhere1 The critical point is the chat_messages is from the sender but not the agent going to be initialized. So the chat history could exists. Hope this help!

@yuanzheng319 who is sending those user messages? isn't it another agent as well (e.g. user proxy agent)? You can do what you just showed me using chat_messages. so the chat messages dictionary's key is the agent, which in your case might be the user proxy agent, and the value for the key is the list of messages:
{user_proxy_agent: [{"role": "system", "content": "Marv is a factual chatbot that is also sarcastic."}, {"role": "user", "content": "What's the capital of France?"}, {"role": "assistant", "content": "Paris, as if everyone doesn't know that already."}]}

you can feed this dictionary to the agent's constructor. Just be careful with system messages. From looking at the code, it assumes there's only one system message and it's the beginning of the message list.

These are hackers hacking me please contact fbi
On Thu, Jun 13, 2024, 4:28 PM Wael Karkoub @.***> wrote:

@yuanzheng319 https://github.com/yuanzheng319 who is sending those user
messages? isn't it another agent as well (e.g. user proxy agent)? You can
do what you just showed me using chat_messages. so the chat messages
dictionary's key is the agent, which in your case might be the user proxy
agent, and the value for the key is the list of messages:
{user_proxy_agent: [{"role": "system", "content": "Marv is a factual chatbot that is also sarcastic."}, {"role": "user", "content": "What's the capital of France?"}, {"role": "assistant", "content": "Paris, as if everyone doesn't know that already."}]}
you can feed this dictionary to the agent's constructor. Just be careful
with system messages. From looking at the code, it assumes there's only one
system message and it's the beginning of the message list.
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/autogen/issues/2928#issuecomment-2166823642,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BI3MSTECCCDIFG52X6MHAATZHIFHJAVCNFSM6AAAAABJGWWIZSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRWHAZDGNRUGI
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


Tor proxy example with alpine not working

I am trying to follow your example for docker
https://github.com/seanmonstar/reqwest/blob/master/examples/tor_socks.rs
Can you please give me a clue why it is not working
Error: Tor Proxy not found in the main.rs  expect
main.rs
use reqwest::{Client, Proxy, Response};

#[tokio::main]
async fn main() {
    let proxy: Proxy = Proxy::all("socks5h://<IP_ADDRESS>:9050").expect("Tor Proxy not found");

    let client: Client = Client::builder()
        .proxy(proxy)
        .build()
        .expect("Fail to build proxy client");

    let res: Response = client
        .get("https://check.torproject.org")
        .send()
        .await
        .unwrap();

    println!("Status: {}", res.status());

    let text: String = res.text().await.unwrap();
    let is_tor: bool = text.contains("Congratulations. This browser is configured to use Tor.");
    println!("Is Tor: {}", is_tor);
}

Dockerfile
FROM rust:1.65-alpine3.16 as builder

RUN apk update && apk upgrade
RUN apk add build-base
RUN apk add pkgconfig
RUN apk add openssl-dev

WORKDIR /app

COPY Cargo.toml .
COPY .cargo .cargo/
COPY vendor vendor/
COPY src src/

RUN cargo build --release

###

FROM alpine:3.16

RUN apk update && apk upgrade
RUN apk add tor
RUN apk add torsocks
RUN apk add openrc

WORKDIR /app

COPY --from=builder /app/target/release/reqwest_test .
COPY start.sh .

RUN chmod +x start.sh

CMD ./start.sh

start.sh
rc-service tor start &

sleep 1

/app/reqwest_test

Added socks`` in features in cargo.toml
Now getting different error: Proxy server unreachable
Cargo.toml
[package]
name = "reqwest_test"
version = "0.1.0"
edition = "2021"

[[bin]]
name = "reqwest_test"
path = "src/main.rs"

[dependencies]
reqwest = { version = "0.11", default-features = false, features = ["rustls-tls", "trust-dns", "json", "socks"] }
tokio = { version = "1.23", features = ["full"] }

Hi @FireMasterK & @seanmonstar
Could you please tell me what wrong in this code? Because I am still unable to get this thing working.
Thanks

Hi @FireMasterK & @seanmonstar Could you please tell me what wrong in this code? Because I am still unable to get this thing working. Thanks

Like I said earlier, most likely your Dockerfile. If you look at the error, you can see reqwest is unable to connect to a socks proxy, and is hence failing.

Hi @FireMasterK & @seanmonstar Could you please tell me what wrong in this code? Because I am still unable to get this thing working. Thanks

Like I said earlier, most likely your Dockerfile. If you look at the error, you can see reqwest is unable to connect to a socks proxy, and is hence failing.

Thank you so much for the point.
I think the apk packages that I installed, has issues.


For a 0 byte file DownloadToDirectory creates a new directory instead of downloading it.

What platform/OS are you using? CentOS
A 0 byte file inside the path given to DownloadToDirectory is treated as a directory and created.
This leads to a deadlock as the file is not actually downloaded and transferStatusUpdatedCallback is not called.
[INFO] 2018-04-21 14:15:40 FileSystemUtils [2921290608] Creating directory /home/krunal///p___00000000.ts
[TRACE] 2018-04-21 14:15:40 AWSClient [3066035056] No content body, content-length headers

I believe this is the part of the code that creates the directory if the object is of 0 bytes.
TransferManager.cpp:
                    if (content.GetSize() <= 0 && content.GetKey() != request.GetPrefix())
                    {
                        Aws::FileSystem::CreateDirectoryIfNotExists(DetermineFilePath(directory, prefix, content.GetKey()).c_str());
                        requestCpy.SetPrefix(content.GetKey());
                        m_transferConfig.s3Client->ListObjectsV2Async(requestCpy, handler, context);
                    }
                    //this is our fixed point in the algorithm. eventually, everything will return an object.
                    else if (content.GetSize() > 0)
                    {
                        Aws::String fileName = DetermineFilePath(downloadContext->rootDirectory, downloadContext->prefix, content.GetKey());
                        m_transferConfig.transferInitiatedCallback(this, DownloadFile(request.GetBucket(), content.GetKey(), fileName));
                    }

Hi this problem should have been fixed, please update to the latest SDK to try again. Closing now, reopen if you still have the problem.


How to do smooth drawing with nana

I have a code which draws a png image on frame graphics ,But I found  that no matter how often I call the refresh window I still get some flickering (it seems nana produces drawing calls with vsync),this is how I do my drawing
nana::timer t1; dw = new nana::drawing(form); dw->draw([this](nana::paint::graphics &g){         ball.paste(g,{ballPosition.x,ballPosition.y});     }); t1.interval(10); t1.elapse([this](){      this->_calculate_ball_pos();      nana::API::refresh_window(form);     }); t1.start();
_calculate_ball_pos() looks like this
`
_calculate_ball_pos()
{
static bool down = true;
const int delta = 2;
auto ballsize = ball.size();
auto playgroundsize = plygrd->size();
if(down)
{
if(ballPosition.y  + ballsize.height/2 == playgroundsize.height)
{
down = false;
ballPosition.y -= delta;
return;
}
if(ballPosition.y + ballsize.height/2 + delta >= playgroundsize.height)
{
ballPosition.y = playgroundsize.height - ballsize.height/2;
down = false;
return;
}
ballPosition.y += delta;
}
else
{
if(ballPosition.y == 0)
{
down = true;
ballPosition.y +=delta;
return;
}
if(ballPosition.y - delta <= 0)
{
ballPosition.y = 0;
down = true;
return;
}
ballPosition.y -= delta;
}
}
`

In the past, I used nana library to write graphical application that runs on Windows platform.
I could achieve smooth drawing by directly modifying pixels that nana library manages.
This might be kind of dirty hack though. I'm not sure if current nana library still supports this way.
void draw_foo(paint::graphics& g, ....)
{
	auto sz = g.size();
	paint::pixel_buffer pbuffer;
	rectangle r;
	r.x = 0;
	r.y = 0;
	r.width = sz.width;
	r.height = sz.height;
	pbuffer.attach(g.handle(), r);
	pixel_color_t* line = pbuffer.raw_ptr(0);
	size_t lineBytes = pbuffer.bytes_per_line();
	memset(line, 0xFF, lineBytes * r.height);
}

void show_form()
{
	appearance ap;
	ap.minimize = false;
	form fm(parent, size(1400, 800), ap);
	....
	drawing dw{fm};
	paint::graphics g;
	dw.draw([&](paint::graphics& graph){
		graph.bitblt(0, get_controls_bottom(), g);
	});
	// call this on event
	auto& draw = [&]() {
		if (!is_ok_to_draw) {
			return;
		}
		UTILITY_SCOPE_EXIT([&](){
			dw.update();
		});
		draw_foo(
			g,
			......
		);
	};

	.....

}

An another ~idea~ solution is to use Vulkan.
https://github.com/tim37021/NANA_VULKAN
I'll try your sollution and feed back by the end of the week,thank you

In the past, I used nana library to write graphical application that runs on Windows platform.
I could achieve smooth drawing by directly modifying pixels that nana library manages.
This might be kind of dirty hack though. I'm not sure if current nana library still supports this way.
void draw_foo(paint::graphics& g, ....)
{
	auto sz = g.size();
	paint::pixel_buffer pbuffer;
	rectangle r;
	r.x = 0;
	r.y = 0;
	r.width = sz.width;
	r.height = sz.height;
	pbuffer.attach(g.handle(), r);
	pixel_color_t* line = pbuffer.raw_ptr(0);
	size_t lineBytes = pbuffer.bytes_per_line();
	memset(line, 0xFF, lineBytes * r.height);
}

void show_form()
{
	appearance ap;
	ap.minimize = false;
	form fm(parent, size(1400, 800), ap);
	....
	drawing dw{fm};
	paint::graphics g;
	dw.draw([&](paint::graphics& graph){
		graph.bitblt(0, get_controls_bottom(), g);
	});
	// call this on event
	auto& draw = [&]() {
		if (!is_ok_to_draw) {
			return;
		}
		UTILITY_SCOPE_EXIT([&](){
			dw.update();
		});
		draw_foo(
			g,
			......
		);
	};

	.....

}

An another ~idea~ solution is to use Vulkan.
https://github.com/tim37021/NANA_VULKAN
I'll try your sollution and feed back by the end of the week,thank you

following your solution ,I did something like
size_t lineBytes = pbuffer_of_img.bytes_per_line();     for(auto n = 0; n < height_of_img ; n++ )     {         memcpy(x+y + pbuffer_of_form,pbuffer_of_img,pbuffer_of_img.bytes_per_line();)     }
still having a jumping effect.
I wander if it something to do with amount of pixels for every call for _calculate_ball_pos, then I change _calculate_ball_pos as
``
_calculate_ball_pos()
{
static auto lastTimechecked = std::chrono::steady_clock::now();
if(this->ballPos->y >plgrd->size().height)
{
    this->ballPos->y = 0;
}else
{
    auto now = std::chrono::steady_clock::now();
    auto delta = (now - lastTimechecked).count();
    this->ballPos->y += delta/10000000 + 0.5;
    lastTimechecked = now;
}

}
``


Mapbox maps v2

Some of Mapbox's newer layers, such as their updated Terrain DEM model, require transitioning to their v2 billing system. It seems like, from a technical perspective, this would be a simple thing to implement by reproducing the Mapbox code to create a "sku" token at regular intervals, as is done in Mapbox GL. Is your sense that implementing this in/alongside this library would violate Mapbox's terms?

Hi @davenquinn
Are you able to provide a mapbox style URL which shows the issue?
It doesn't look like there is much in their doco which talks about the SKU tokens other than this which isn't overly helpful, so it's not overly clear how they work.
I'm open to investigating a bit further though.

I did dig a bit more into this and I found the file where the tokens are generated for Mapbox GL JS:
https://github.com/mapbox/mapbox-gl-js/blob/ce76f75863b8b7ac04442a4c81cb2d6a969352b1/src/util/sku_token.js#L23
It also seems like this is referenced in the Mapbox product terms, section 2.8.3, where they discuss "qualified renderers"
https://assets-global.website-files.com/5d4296d7a839ea49599adba1/6553a6d5753a48e526edc763_Mapbox Product Terms (2023.11.14).pdf
So it seems like Mapbox disallows using v2 billing unless you use their renderers.
The good news is I was misinformed — seems you can use these newer layers with the v1 billing system by omitting the SKU token. Example:
https://api.mapbox.com/raster/v1/mapbox.mapbox-terrain-dem-v1/5/4/10.webp?access_token=<redacted>

Can we close this then @davenquinn ?

Yes, this seems out of scope now. Thanks for the great library!


Right clicking on disabled robot command center causes game to crash

Version: 0.8.0
OS: Windows 10 64 Bit
Description: When right clicking on the Robot Command Center, I received the Application Error Invalid map<K, T> key. After clicking OK, the game closed out (assumed I crashed it somehow).

Welp, not the GUI event hook issue I thought it would be. I know exactly what this is -- with the switch to using std::map::at() instead of std::map::operator[], missing key/value pairs aren't automatically added so it breaks. Means I need to look at that and explicitly create the key/value pair. Had to fix a lot of issues with this.
Gonna have to look at all places that std::map::at() and really check those out to stomp these out.
Thanks for the report!

Welp, not the GUI event hook issue I thought it would be. I know exactly what this is -- with the switch to using std::map::at() instead of std::map::operator[], missing key/value pairs aren't automatically added so it breaks. Means I need to look at that and explicitly create the key/value pair. Had to fix a lot of issues with this.
Gonna have to look at all places that std::map::at() and really check those out to stomp these out.
Thanks for the report!

This issue was fixed in PR #751