Tasks Not Saving on Page Reload

Issue: Tasks Not Saving on Page Reload
Description
Problem:
Currently, tasks are not saved when the page is reloaded. This causes users to lose their task list every time they refresh or reopen the page.
Solution:
To address this issue, we can implement a solution that saves tasks to local storage or cookies. This way, users can retain their task list even after reloading or reopening the page.
Requirements:

[ ] Implement a mechanism to save tasks to local storage or cookies.
[ ] Ensure that tasks are retrieved and displayed correctly when the page is loaded or refreshed.
[ ] Test the solution thoroughly to verify that tasks are being saved and loaded properly.
[ ] Provide a user-friendly experience that seamlessly maintains the task list.

Additional Information:

Consider user experience and data privacy when implementing the solution.
Research the best approach for saving and retrieving data in the chosen technology stack (e.g., JavaScript, HTML, etc.).

Hacktoberfest
Please label this issue as hacktoberfest for valid contributions in Hacktoberfest.

Please assign me this issue @Kritika30032002


Expose secret in a virtual filesystem

It would be nice to have some kind of virtual filesystem to transparently expose secrets as files (maybe using Fuse).
A lot of applications can take their passphrase to unlock internal secret manager from a file. It would be nice to keep it stored in a gopass store and not have to unseal it in a file on the real filesystem.

How do you want to protect this virtual filesystem against unauthorised access?
I think having "random" passphrase prompts pop up when an application in the background accesses your FUSE store might be prone to abuse.

One solution to your problem if injecting environment variables containing secrets are an option is summon. See https://www.schwabenlan.de/en/post/2018/01/combining-gopass-and-summon/ and https://github.com/gopasspw/gopass/blob/master/docs/summon-provider.md

@martinhoefling great solution, I didn't know summon. This looks nice. I'll have a look at it. Thanks a lot.


Fix typo in configSchema

Replace Espace with Escape

Hi @pierrecholhot, thanks for taking care of that, merging it right now.


Rewrite the services/flash-messages.js service

Hi, I'm currently trying to use this addon with new ember-resolver(for module unification), in my new mber project. It was all going good until I run my tests. They were all passing before my mber migration but this time only some of my acceptance tests get flashMessages.danger method  is not a function, flashMessages.success method  is not a function errors. In some other tests these methods are called correctly.
So I started digging around the source code and saw that there is an internal this.registerTypes() call on each init:
https://github.com/poteto/ember-cli-flash/blob/master/addon/services/flash-messages.js#L125
First of all I have to say this service code is very poorly written, it is very hard to follow along and I have read many messy source-code before:
I dont know where that flashMessageDefaults comes from, its not explicit in the source code, apparently this context is shared with something(possibly environment.js?) implicitly. Surely there is a definition in the environment.js and it gets injected to the Application in my tests entrypoint(tests/test-helper), but that is not the service context. Most of the code is 3 years old, surely it could be written better today, with less implicitness, I see many unit tests already for service.
I will keep debugging to see how I lose that implicitly injected flashMessageDefaults  in some of the acceptance tests. It could also be possible that owner.registration and owner.lookups changes/restrictions in new ember-resolver causes this(there are some registrations in the initializers). Meanwhile, I highly suggest the maintainer to rewrite that service module once more.

The issue was probably in the ember version or the resolver Im using. I did the following two things and everything is working:
in my ember modules
export default Component.extend({
  flashMessages: service()
})

to:
export default Component.extend({
  flashMessages: service('flash-messages')
})

in test owner.lookups:
context.owner.lookup('service:flashMessages') to context.owner.lookup('service:flash-messages')

Closing. @izelnakri can bug me on our work slack if this is still an issue 😜


Clashing Result types

Hi.
Nice crate! 😊
I'd really like to use this for another crate I'm working on.  I've got a compile issue, though. The generated code from the Variantly derive macro is using the Result type from the standard rust prelude (in the global namespace). This clashes with my own crate's custom Result type.
The fix should be pretty easy: fully qualify all uses in the generated code like this: core::result::Result. I applied this patch to the 0.3.0 version and it worked nicely. 👍
I was going to open a PR against develop, but it seems develop is in quite a different state to 0.3.0 - many generated methods from 0.3.0 seem to be missing. I wonder whether it would be possible to do a 0.3.1 hotfix which would include this bugfix patch?
Thanks!
Ben

Hello & thank you! Glad you like the crate and thanks for the call-out!
develop is not being used currently - in fact, I should probably nuke it. If you've got one ready to go, a PR against main would be welcome, otherwise I should be able to add this and release it tonight/tomorrow

Thanks! 🥇


[Feature][UI Next] Add task state statistics chart.

Purpose of the pull request
close #7714

Brief change log

Verify this pull request

This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:

Codecov Report

Merging #7765 (76f20de) into dev (4514eae) will decrease coverage by 0.07%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##                dev    #7765      +/-   ##
============================================
- Coverage     40.96%   40.89%   -0.08%
+ Complexity     3673     3668       -5
============================================
  Files           642      642
  Lines         26706    26706
  Branches       2997     2997
============================================
- Hits          10941    10922      -19
- Misses        14715    14736      +21
+ Partials       1050     1048       -2

Impacted Files
Coverage Δ

...er/master/processor/queue/TaskResponseService.java
50.00% <0.00%> (-18.19%)
:arrow_down:

...rver/master/processor/queue/TaskResponseEvent.java
93.54% <0.00%> (-6.46%)
:arrow_down:

...er/master/dispatch/host/assign/RandomSelector.java
83.33% <0.00%> (+5.55%)
:arrow_up:

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 4514eae...76f20de. Read the comment docs.


Host continues to be in "Disconnected" state even after it is powered on.

Rancher server - Build from v1.6 branch
Steps to reproduce the problem:
Had a setup with 3 hosts,
Added Digital Ocean Host (using docker machine).
Had few containers running on this host.
powered down this host.
Host went to "Reconnecting"->"Disconnected" state.
powered on the host.
Even after the host was powered on , host continues to be in "Disconnected" state,
time="2017-12-14T03:10:44Z" level=info msg="Received event: Name: compute.instance.activate, Event Id: b087d4a7-e641-4110-bfc7-83d125c6c89f, Resource Id: 1ihm173"
time="2017-12-14T03:10:44Z" level=info msg="Reply: 90dc2505-6682-445b-ad05-23a5b5a74578, storage.volume.activate, 1vspm362:volumeStoragePoolMap"
time="2017-12-14T03:10:44Z" level=info msg="Received event: Name: compute.instance.activate, Event Id: 595573b7-9879-4285-b191-abcd1360326f, Resource Id: 1ihm189"
time="2017-12-14T03:10:44Z" level=info msg="Received event: Name: compute.instance.activate, Event Id: 61eb4c85-c459-481f-a2e4-9b0aa271c563, Resource Id: 1ihm181"
time="2017-12-14T03:10:44Z" level=error msg="Error processing event" err="Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?" eventId=595573b7-9879-4285-b191-abcd1360326f eventName=compute.instance.activate resourceId=1ihm189
Found container ID: 100950f7c73606732a60da9d8474a03b0b3c286b0679ac7364f1ee661ade347f
Checking root: /host/run/runc
Checking file: 100950f7c73606732a60da9d8474a03b0b3c286b0679ac7364f1ee661ade347f
Found state.json: 100950f7c73606732a60da9d8474a03b0b3c286b0679ac7364f1ee661ade347f
time="2017-12-14T03:14:49Z" level=info msg="Execing [/usr/bin/nsenter --mount=/proc/1709/ns/mnt -F -- /var/lib/docker/aufs/mnt/8cb8b5d82502a59e26234937e583c1faf017ab2d552469302908f2c6011cc334/usr/bin/share-mnt --stage2 /var/lib/rancher/volumes /var/lib/kubelet -- norun]"
INFO: Starting agent for 90C40A1D80273AD1180F
INFO: Access Key: 90C40A1D80273AD1180F
INFO: Config URL: http://<ip>:8080/v1
INFO: Storage URL: http://<ip>:8080/v1
INFO: API URL: http://<ip>:8080/v1
INFO: IP: <ip>
INFO: Port:
INFO: Required Image: rancher/agent:v1.2.8-rc1
INFO: Current Image: rancher/agent:v1.2.8-rc1
INFO: Using image rancher/agent:v1.2.8-rc1
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
INFO: Downloading agent http://<ip>:8080/v1/configcontent/configscripts
INFO: Updating configscripts
INFO: Downloading http://<ip>:8080/v1//configcontent//configscripts current=
INFO: Running /var/lib/cattle/download/configscripts/configscripts-1-f0f3fb2e1110b5ada7c441705981f93a480313a324294321cff467f0c3e12319/apply.sh
INFO: Sending configscripts applied 1-f0f3fb2e1110b5ada7c441705981f93a480313a324294321cff467f0c3e12319
INFO: Updating pyagent
INFO: Downloading http://<ip>:8080/v1//configcontent//pyagent current=
INFO: Running /var/lib/cattle/download/pyagent/pyagent-1-9e3dcab12585149a65d818082279708965cd826df1937a55b24f48428f8f0c06786710496dd1e729d676761eebce8df7/apply.sh
INFO: Updating host-api
INFO: https://github.com/rancher/host-api/releases/download/v0.38.1/host-api.tar.gz already downloaded
INFO: Updating python-agent
INFO: https://github.com/rancher/agent/releases/download/v0.11.15/go-agent.tar.gz already downloaded
INFO: Sending pyagent applied 1-9e3dcab12585149a65d818082279708965cd826df1937a55b24f48428f8f0c06786710496dd1e729d676761eebce8df7
INFO: Starting agent /var/lib/cattle/pyagent/apply.sh
INFO: Executing /var/lib/cattle/pyagent/agent
INFO: Updating host-config
INFO: Downloading http://<ip>:8080/v1//configcontent//host-config current=host-config-1-bd2d7566b44e719254ca83a6082025da32a5b9bffa43f9987703a9f2100a5c62
INFO: Already up to date
INFO: Sending host-config applied 1-bd2d7566b44e719254ca83a6082025da32a5b9bffa43f9987703a9f2100a5c62
time="2017-12-14T03:14:51Z" level=info msg="Launching agent"
time="2017-12-14T03:14:51Z" level=info msg="Detecting cloud provider"
time="2017-12-14T03:14:51Z" level=info msg="Listening for events on http://<IP_ADDRESS>:8080/v1"
time="2017-12-14T03:14:51Z" level=info msg="launching hostapi"
time="2017-12-14T03:14:51Z" level=warning msg="stat /var/lib/rancher/state/info.json: no such file or directory"
time="2017-12-14T03:14:51Z" level=warning msg="stat /var/lib/rancher/state/info.json: no such file or directory"
time="2017-12-14T03:14:51Z" level=error msg="retry check cloud provider" count=1 error="EC2MetadataRequestError: failed to get EC2 instance identity document\ncaused by: EC2MetadataError: failed to make EC2Metadata request\ncaused by: not found"
time="2017-12-14T03:14:51Z" level=info msg="Serialize compute requests: false, driver: aufs"
time="2017-12-14T03:14:52Z" level=info msg="Starting event router."
time="2017-12-14T03:14:52Z" level=info msg="Initializing event router" workerCount=250
time="2017-12-14T03:14:52Z" level=info msg="Connection established"
time="2017-12-14T03:14:52Z" level=info msg="Starting websocket pings"
time="2017-12-14T03:14:52Z" level=info msg="Connecting to proxy." url="ws://<ip>:8080/v1/connectbackend?token=eyJhbGciOiJSUzI1NiJ9.eyJyZXBvcnRlZFV1aWQiOiI2YzEyYWY4Ni0wNDAyLTQ3ZTctOWIxOC03MDVmMjgzZWRkMmMiLCJzdWIiOiJjYXR0bGUiLCJraWQiOiJkZWZhdWx0IiwiaXNzIjoiaHR0cDpcL1wvY2F0dGxlLmlvIiwiZXhwIjoxNTEzMjIxNTkyLCJpYXQiOjE1MTMyMjEyOTJ9.BC9bhK8gaJLb3HQeWxR0L3RuOU3hSW3s05ZcqQ5pkTF3thDGG6zC--jvGcOdMqfM7bWRqx5V_BpsoFErwFwtyoVD_XCCl5idTpWD4pyk-AqYHhQMVbNWqBQE6vVc4oNsDZCyw-iokqT1f-2SRAUYJHK0JRrsoiBjFtEL3ecUxfLGrx1BCZ4kYtw3TjEDKIz8zPf-6d_oduVNyPHrluH-AJzE4z_rAv1e_Iq50VrThcEgba5FJWlx-qfaMVPL1VkbEXPZn1FzbkobNWKsk04Bn7Msk3z5ByXMM9AcEtZ4v4Hj7mGKkZTnBIzhq-0ui6YEvHSTBX4C0slEwNX51HORlQ"
time="2017-12-14T03:15:21Z" level=warning msg="stat /var/lib/rancher/state/info.json: no such file or directory"
time="2017-12-14T03:15:21Z" level=error msg="retry check cloud provider" count=2 error="EC2MetadataRequestError: failed to get EC2 instance identity document\ncaused by: EC2MetadataError: failed to make EC2Metadata request\ncaused by: not found"
time="2017-12-14T03:15:51Z" level=warning msg="stat /var/lib/rancher/state/info.json: no such file or directory"
time="2017-12-14T03:15:51Z" level=error msg="retry check cloud provider" count=3 error="EC2MetadataRequestError: failed to get EC2 instance identity document\ncaused by: EC2MetadataError: failed to make EC2Metadata request\ncaused by: not found"
time="2017-12-14T03:16:21Z" level=warning msg="stat /var/lib/rancher/state/info.json: no such file or directory"
time="2017-12-14T03:16:21Z" level=error msg="retry check cloud provider" count=4 error="EC2MetadataRequestError: failed to get EC2 instance identity document\ncaused by: EC2MetadataError: failed to make EC2Metadata request\ncaused by: not found"
time="2017-12-14T03:16:51Z" level=warning msg="stat /var/lib/rancher/state/info.json: no such file or directory"
time="2017-12-14T03:16:51Z" level=error msg="retry check cloud provider" count=5 error="EC2MetadataRequestError: failed to get EC2 instance identity document\ncaused by: EC2MetadataError: failed to make EC2Metadata request\ncaused by: not found"
time="2017-12-14T03:17:21Z" level=error msg="retry check cloud provider" count=1 error="Get http://<IP_ADDRESS>/latest/meta-data/zone-id: dial tcp <IP_ADDRESS>:80: i/o timeout"
time="2017-12-14T03:17:21Z" level=warning msg="stat /var/lib/rancher/state/info.json: no such file or directory"
time="2017-12-14T03:17:21Z" level=error msg="checking aws cloud provider error after 6 attempts, last error: EC2MetadataRequestError: failed to get EC2 instance identity document\ncaused by: EC2MetadataError: failed to make EC2Metadata request\ncaused by: not found"
time="2017-12-14T03:17:51Z" level=warning msg="stat /var/lib/rancher/state/info.json: no such file or directory"
time="2017-12-14T03:20:21Z" level=error msg="checking aliyun cloud provider error after 2 attempts, last error: Get http://<IP_ADDRESS>/latest/meta-data/zone-id: dial tcp <IP_ADDRESS>:80: i/o timeout"

Same here.

@miensol @stefanvangastel @pcornelissen
Would you be able to share more logs next time when you see this?
I am currently looking into this, would like to know:

what's the full server logs when agent falls into disconnected state? is there any suspicious error logs before agent goes to disconnected state?
Does agent just hangs and get stuck, without reproducing any of logs?
Does agent finally recover or stay in disconnected state forever? if it recovers, how long does it take usually?
what's the size of your rancher cluster when you are seeing this? how many hosts, services and environments?

Same here. All 3 hosts transition to "Disconnected" after staying up for a few minutes or so.

 Configurations used are those provided here http://rancher.com/docs/rancher/latest/en/installing-rancher/installing-server/basic-ssl-config/ with the addition of timeout tunnel 1h for haproxy. I tried both just in case some websocket misconfiguration was involved, but the results are the same.
Proxies (haproxy, nginx) are just forwarding to the local rancher-server instance, not loadbalancing across the 2 servers.
The weird part is that, even in disconnected state, the agent still talks to the server over HTTPS port. No RST, no FIN, nothing. Everything looks chatty from tcpdump standpoint.
Answers to questions

what's the full server logs when agent falls into disconnected state? is there any suspicious error logs before agent goes to disconnected state?

Please find them below.

Does agent just hangs and get stuck, without reproducing any of logs?

Seems to run normally. Doesn't produces logs and seems to talk to rancher-server.

Does agent finally recover or stay in disconnected state forever? if it recovers, how long does it take usually?

Stays disconnected forever until docker restart is called to the rescue. Works initially, usually goes back to disconnected avec few minutes.
4/ what's the size of your rancher cluster when you are seeing this? how many hosts, services and environments?

2 servers
3 agents in one Cattle environment
6 user stacks...
... providing 24 services...
... using 17 containers (some services are just external)

Server
The server is started with:
docker run -d --restart=unless-stopped -p <IP_ADDRESS>:8080:8080 -p 9345:9345 --name rancher_server rancher/server:v1.6.14 --db-host dbserver.example.org --db-port 3306 --db-user user --db-pass pass --db-name cattle --advertise-address some_public_ip

Here are some logs (with matched states from UI) from the first server (against which the host is registrated at start) when I start rancher-agent:
=> RESTART AGENT FROM THE CLI

2018-03-04 15:12:23,887 ERROR [0dd6943d-f544-4809-a2b5-37b915705dc4:2234881] [agent:4] [agent.reconnect->(MetadataProcessHandler)] [] [cutorService-55] [i.c.p.p.m.MetadataProcessHandler    ] Failed to find account id for registeredAgent:4
2018-03-04 15:12:24,076 ERROR [d87fa6ff-c135-49f6-9172-477da47c52d3:2234881] [agent:4] [agent.finishreconnect->(MetadataProcessHandler)] [] [cutorService-55] [i.c.p.p.m.MetadataProcessHandler    ] Failed to find account id for registeredAgent:4
time="2018-03-04T15:12:32Z" level=info msg="Shutting down backend dd50809d-d926-4457-7759-4bca7606fb80. Connection closed because: websocket: close 1006 unexpected EOF."
time="2018-03-04T15:12:32Z" level=info msg="Removed backend. Key: dd50809d-d926-4457-7759-4bca7606fb80. Session ID 3b2b6700-aeb1-4b52-8cc4-78d8e7053dfb ."
time="2018-03-04T15:12:36Z" level=info msg="Handling backend connection request."
time="2018-03-04T15:12:36Z" level=info msg="Registering backend for host dd50809d-d926-4457-7759-4bca7606fb80 with session ID 57e3020f-b714-46fa-a0ab-0d1affdc25e3."

=> ACTIVE STATE

2018-03-04 15:13:17,795 ERROR [be95ec54-657b-45c7-9247-11493b7f5120:2234923] [agent:4] [agent.reconnect->(MetadataProcessHandler)] [] [ecutorService-4] [i.c.p.p.m.MetadataProcessHandler    ] Failed to find account id for registeredAgent:4
2018-03-04 15:13:17,982 ERROR [03933ab3-0831-4c84-bcbe-b4d30dfb25f8:2234923] [agent:4] [agent.finishreconnect->(MetadataProcessHandler)] [] [ecutorService-4] [i.c.p.p.m.MetadataProcessHandler    ] Failed to find account id for registeredAgent:4
2018-03-04 15:13:32,491 ERROR [71d3b4b1-5d3d-429e-9225-9faba12f0432:2234959] [agent:4] [agent.reconnect->(MetadataProcessHandler)] [] [cutorService-12] [i.c.p.p.m.MetadataProcessHandler    ] Failed to find account id for registeredAgent:4
2018-03-04 15:13:32,698 ERROR [9d0d582f-1171-42eb-97fc-aad79f041b8a:2234959] [agent:4] [agent.finishreconnect->(MetadataProcessHandler)] [] [cutorService-12] [i.c.p.p.m.MetadataProcessHandler    ] Failed to find account id for registeredAgent:4

=> RECONNECTING STATE
=> (approx 10 minutes, no logs)
=> DISCONNECTED STATE
=> (still no logs)

Agent
The agent is started with:
docker run --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/rancher:/var/lib/rancher rancher/agent:v1.2.9 https://redacted.example.org:12345/v1/scripts/SOME:KEY

Please find below the agent logs, for the same time window, since when it is restarted:
Found container ID: 56b1ccae7192bd0f7183453f876e9eaf3e947d15dceba4138f3cb0155289425e
Checking root: /host/run/runc
Checking root: /host/var/run/runc
Checking root: /host/run/docker/execdriver/native
Checking root: /host/var/run/docker/execdriver/native
Checking root: /host/run/docker/runtime-runc/moby
Checking file: 035e8fb6dab314e2a3487acac9c0f5542eb818b5d1eedc4c4d6715d90c27dca1
Checking file: 3f62c5ce9173341a02c9c9287ccbae0dc7d546dc663c929507c241643a4bd440
Checking file: 40f88e92eb11a64d18547b0c417822bc10729de2d7b887325f6d5ed61473f3c4
Checking file: 4b42d471185be1151bbac4f2213502042fa9395983ae2fcc97b190d8a8b84bb9
Checking file: 56b1ccae7192bd0f7183453f876e9eaf3e947d15dceba4138f3cb0155289425e
Found state.json: 56b1ccae7192bd0f7183453f876e9eaf3e947d15dceba4138f3cb0155289425e
time="2018-03-04T15:15:23Z" level=info msg="Execing [/usr/bin/nsenter --mount=/proc/52170/ns/mnt -F -- /var/lib/docker/overlay2/08527b494ed0a79aecac5860a240e186d8d2371a81cc9f00f742376713c87137/merged/usr/bin/share-mnt --stage2 /var/lib/rancher/volumes /var/lib/kubelet -- norun]"
INFO: Starting agent for 4BDD7636E845222005D8
INFO: Access Key: 4BDD7636E845222005D8
INFO: Config URL: https://redacted.example.org:12345/v1
INFO: Storage URL: https://redacted.example.org:12345/v1
INFO: API URL: https://redacted.example.org:12345/v1
INFO: IP: <IP_ADDRESS>
INFO: Port:
INFO: Required Image: rancher/agent:v1.2.9
INFO: Current Image: rancher/agent:v1.2.9
INFO: Using image rancher/agent:v1.2.9
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
INFO: Downloading agent https://redacted.example.org:12345/v1/configcontent/configscripts
INFO: Updating configscripts
INFO: Downloading https://redacted.example.org:12345/v1//configcontent//configscripts current=
INFO: Running /var/lib/cattle/download/configscripts/configscripts-1-f0f3fb2e1110b5ada7c441705981f93a480313a324294321cff467f0c3e12319/apply.sh
INFO: Sending configscripts applied 1-f0f3fb2e1110b5ada7c441705981f93a480313a324294321cff467f0c3e12319
INFO: Updating pyagent
INFO: Downloading https://redacted.example.org:12345/v1//configcontent//pyagent current=
INFO: Running /var/lib/cattle/download/pyagent/pyagent-1-9e3dcab12585149a65d818082279708965cd826df1937a55b24f48428f8f0c0644fc1033b5be15c88dcf9540b1c04c67/apply.sh
INFO: Updating host-api
INFO: Downloading https://redacted.example.org:12345/v1//configcontent//host-api current=1-9608ead804f8cebbfe95b9f114701d8a5ac4244d603d196068043c902b1a0bdf
INFO: Already up to date
INFO: Sending host-api applied 1-9608ead804f8cebbfe95b9f114701d8a5ac4244d603d196068043c902b1a0bdf
INFO: Updating python-agent
INFO: Downloading https://redacted.example.org:12345/v1//configcontent//python-agent current=1-8ecf2cf4a616b933d905134749006b1321ad3e6d7eb25695192efe6f1e16787a
INFO: Already up to date
INFO: Sending python-agent applied 1-8ecf2cf4a616b933d905134749006b1321ad3e6d7eb25695192efe6f1e16787a
INFO: Sending pyagent applied 1-9e3dcab12585149a65d818082279708965cd826df1937a55b24f48428f8f0c0644fc1033b5be15c88dcf9540b1c04c67
INFO: Starting agent /var/lib/cattle/pyagent/apply.sh
INFO: Executing /var/lib/cattle/pyagent/agent
INFO: Updating host-config
INFO: Downloading https://redacted.example.org:12345/v1//configcontent//host-config current=host-config-1-d1507c62d6054a9eca8aabd912d11aba05e6ec5c5a1b2ef84e39a54d14407f2c
INFO: Already up to date
INFO: Sending host-config applied 1-d1507c62d6054a9eca8aabd912d11aba05e6ec5c5a1b2ef84e39a54d14407f2c
time="2018-03-04T15:15:26Z" level=info msg="Launching agent"
time="2018-03-04T15:15:26Z" level=info msg="Detecting cloud provider"
time="2018-03-04T15:15:26Z" level=info msg="Listening for events on https://redacted.example.org:12345/v1"
time="2018-03-04T15:15:26Z" level=info msg="launching hostapi"
time="2018-03-04T15:15:26Z" level=warning msg="stat /var/lib/rancher/state/info.json: no such file or directory"
time="2018-03-04T15:15:26Z" level=warning msg="stat /var/lib/rancher/state/info.json: no such file or directory"
time="2018-03-04T15:15:26Z" level=info msg="Serialize compute requests: false, driver: overlay2"
time="2018-03-04T15:15:26Z" level=info msg="Starting event router."
time="2018-03-04T15:15:26Z" level=info msg="Initializing event router" workerCount=250
time="2018-03-04T15:15:26Z" level=info msg="Connection established"
time="2018-03-04T15:15:26Z" level=info msg="Starting websocket pings"
time="2018-03-04T15:15:26Z" level=info msg="Connecting to proxy." url="wss://redacted.example.org:12345/v1/connectbackend?token=SOMEVERYLONGTOKEN"
time="2018-03-04T15:15:37Z" level=error msg="retry check cloud provider" count=1 error="EC2MetadataRequestError: failed to get EC2 instance identity document\ncaused by: RequestError: send request failed\ncaused by: Get http://<IP_ADDRESS>/latest/dynamic/instance-identity/document: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)"
time="2018-03-04T15:16:07Z" level=warning msg="stat /var/lib/rancher/state/info.json: no such file or directory"
time="2018-03-04T15:16:14Z" level=error msg="retry check cloud provider" count=2 error="EC2MetadataRequestError: failed to get EC2 instance identity document\ncaused by: RequestError: send request failed\ncaused by: Get http://<IP_ADDRESS>/latest/dynamic/instance-identity/document: dial tcp <IP_ADDRESS>:80: getsockopt: network is unreachable"
time="2018-03-04T15:16:14Z" level=error msg="retry check cloud provider" count=1 error="Get http://<IP_ADDRESS>/latest/meta-data/zone-id: dial tcp <IP_ADDRESS>:80: getsockopt: network is unreachable"
time="2018-03-04T15:16:44Z" level=warning msg="stat /var/lib/rancher/state/info.json: no such file or directory"
time="2018-03-04T15:16:44Z" level=warning msg="stat /var/lib/rancher/state/info.json: no such file or directory"
time="2018-03-04T15:17:04Z" level=error msg="retry check cloud provider" count=3 error="EC2MetadataRequestError: failed to get EC2 instance identity document\ncaused by: RequestError: send request failed\ncaused by: Get http://<IP_ADDRESS>/latest/dynamic/instance-identity/document: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)"
time="2018-03-04T15:17:34Z" level=warning msg="stat /var/lib/rancher/state/info.json: no such file or directory"
time="2018-03-04T15:17:45Z" level=error msg="retry check cloud provider" count=4 error="EC2MetadataRequestError: failed to get EC2 instance identity document\ncaused by: RequestError: send request failed\ncaused by: Get http://<IP_ADDRESS>/latest/dynamic/instance-identity/document: dial tcp <IP_ADDRESS>:80: getsockopt: network is unreachable"
time="2018-03-04T15:18:03Z" level=error msg="checking aliyun cloud provider error after 2 attempts, last error: Get http://<IP_ADDRESS>/latest/meta-data/zone-id: dial tcp <IP_ADDRESS>:80: i/o timeout"
time="2018-03-04T15:18:15Z" level=warning msg="stat /var/lib/rancher/state/info.json: no such file or directory"
time="2018-03-04T15:18:28Z" level=error msg="retry check cloud provider" count=5 error="EC2MetadataRequestError: failed to get EC2 instance identity document\ncaused by: RequestError: send request failed\ncaused by: Get http://<IP_ADDRESS>/latest/dynamic/instance-identity/document: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)"
time="2018-03-04T15:18:58Z" level=warning msg="stat /var/lib/rancher/state/info.json: no such file or directory"
time="2018-03-04T15:19:13Z" level=error msg="checking aws cloud provider error after 6 attempts, last error: EC2MetadataRequestError: failed to get EC2 instance identity document\ncaused by: RequestError: send request failed\ncaused by: Get http://<IP_ADDRESS>/latest/dynamic/instance-identity/document: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)"

Tell me if I can send more info (although not sure I will be able to, since I will try to start from scratch rsn to solve this).

@leucos Does it still happen in your setup? what's the cpu load and memory usage when you see your agent goes reconnected again and again? i don't think "disconnected" means there are some network connectivity issues, but if the server goes over-loaded it might not be able to receive and process ping from agent and hence agent goes disconnected.

@StrongMonkey it doesn't happen anymore, so I don't know what was wrong.
The hosts were mostly idle whan it happened.

I'm facing the same issue. I will recreate the issue and grab all logs.

I'm also facing this issue. I think it's just a coincidence, but it occured first after I've added the "--advertise-http-port" flag because of websocket issues. regarding CPU the hosts are idle, memory used a bit more..
$ cat /proc/meminfo
MemTotal:       16408440 kB
MemFree:         1396128 kB
MemAvailable:   11014116 kB

Do you need more logs or would you like to take a look at it yourself?

With the release of Rancher 2.0, development on v1.6 is only limited to critical bug fixes and security patches.

Why this issue isn't a critical bug ?
We use Rancher in production since a year and we can't migrate to Rancher 2.0 because of some strong intrication with Cattle and old API.
This issue appear every time we add a host in the environment and affect many other host (Many of them switch to state "Disconnected" + difficulties to access Rancher admin UI + ipsec error on many host)
In result we get many other Network issues on our applications.
And our error logs are almost the same as @leucos
It's practically impossible to use the rancher-sever version v1.6.21 in production because of this issue.
But we can't switch to an other environment currently in front of development made for this version so please increase the criticality of this bug, it will help us very much to continue using this solution.

We found a fix for this issue,
One of the service was in creation during a new host was added.
The result is no Internal Ip is attributed to this service.
Solution: Restart rancher-agent on the server where the service is running.

Hey there,
I'm facing the same issue on a dev environment, but we would like to prevent it from happening on production environment.
The command earlier indeed works, but are there any workaround to avoid this problem? This seems a quite critical issue IMO to be fixed, but understanding may help to avoid this problem to happen again on our environments.
Thanks & cheers.

I'm experiencing this too. Why is this not marked as a critical issue?

This issue is actually pretty big, and agent-restart doesn't solve the problem.
This issue shall be a critical bug, because it limits to the usage and reusabilty of rancher 1.6 clusters.

Just to provide some additional context and a potential fix for anyone else supporting a 'legacy' rancher v1.6.
in admin -> settings -> "modifying these may break things" ->
'host.remove.delay.seconds=90'.
Usually if ec2 kills a host in a asg for whatever a new host comes up and rancher will register it and start scheduling services on it. The problem is the old "disconnected" host in ranchers eyes is still serving its scheduled services correctly, this introduces some dead hanging services that rancher things are working but aren't. To fix it, rancher can delete disconnected services that it can't reconnect.
This does introduce potentially a new scenario where a host disconnects for 90 seconds but is still up and reconnects and ec2 doesn't kill it. In this scenario I'm not sure if the agent will re-add or not, I think it would reregister but I'm not sure if there is something preventing that from happening. Either way less dangerous in my use case as all hosts in the asg would have to be in this state for it to actually kill things.


exploitdb: 2023-06-23 -> 2023-06-24

Description of changes
update to 2023-06-24

Things done

Built on platform(s)

[X] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

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

[X] Fits CONTRIBUTING.md.

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

1 package built:

exploitdb


Error when predicting with a dataframe using an API deployed version 0.1.6

Describe the bug
I get this error when predicting with both 0.1.5 and 0.1.6 versions of vetiver using an endpoint deployed with version 0.1.6 of vetiver from PyPI.

Traceback (most recent call last):
File "/usr/home/xu.fei/bike_predict_python/app/.venv/lib/python3.9/site-packages/requests/models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
File "/opt/python/3.9.6/lib/python3.9/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/opt/python/3.9.6/lib/python3.9/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/opt/python/3.9.6/lib/python3.9/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/home/xu.fei/bike_predict_python/app/.venv/lib/python3.9/site-packages/shiny/session/_session.py", line 977, in output_obs
message[output_name] = fn()
File "/usr/home/xu.fei/bike_predict_python/app/.venv/lib/python3.9/site-packages/shiny/render/_render.py", line 205, in call
return _utils.run_coro_sync(self._run())
File "/usr/home/xu.fei/bike_predict_python/app/.venv/lib/python3.9/site-packages/shiny/_utils.py", line 178, in run_coro_sync
coro.send(None)
File "/usr/home/xu.fei/bike_predict_python/app/.venv/lib/python3.9/site-packages/shiny/render/_render.py", line 219, in _run
x = await self._fn()
File "/usr/home/xu.fei/bike_predict_python/app/.venv/lib/python3.9/site-packages/shiny/_utils.py", line 132, in fn_async
return fn()
File "/usr/home/xu.fei/bike_predict_python/app/app.py", line 202, in plot
df_to_plot_id["pred"] = predict(endpoint, df_to_pred)
File "/usr/home/xu.fei/bike_predict_python/app/.venv/lib/python3.9/site-packages/vetiver/server.py", line 227, in predict
response_df = pd.DataFrame.from_dict(response.json())
File "/usr/home/xu.fei/bike_predict_python/app/.venv/lib/python3.9/site-packages/requests/models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

To Reproduce
Steps to reproduce the behavior:

import pandas as pd
from vetiver.server import predict, vetiver_endpoint
data = {
"id": ["1", "2"],
"hour":  [1, 10],
"month":  [7, 8],
"Friday": [0,0],
"Monday": [0,0],
"Saturday": [1,0],
"Sunday": [0,0],
"Thursday": [0,0],
"Tuesday": [0,0],
"Wednesday": [0,1],
}
df_to_test = pd.DataFrame.from_dict(data)
# works with API deployed with 0.1.5
endpoint_150 = vetiver_endpoint(
"https://colorado.rstudio.com/rsc/new-bikeshare-model/predict/"
)
predict(endpoint_150, df_to_test)
# doesn't work with API deployed with 0.1.6
endpoint_160 = vetiver_endpoint(
"https://colorado.rstudio.com/rsc/bike-predict-python-api/predict/"
)
predict(endpoint_160, df_to_test)

Expected behavior
I expect endpoint_160 to work the same way as endpoint_150.
Screenshots
If applicable, add screenshots to help explain your problem.
@gsingh91

Hey, thanks for bringing this up! To help me diagnose--are you able to make predictions in the browser (say url/__docs__)?

yes that works

I will also add you as a user to the new API deployment so that you can access it for further testing.

Hey! Just checked this out-- try removing the trailing slash (should look like /predict, not /predict/) on the v0.1.6 endpoint. :) this was updated to match the R side!

@isabelizimm reopening this as I am running in the same issue as @xuf12 with a new Vetiver API deployed using 0.1.6

from vetiver.server import predict, vetiver_endpoint
endpoint = vetiver_endpoint("https://colorado.rstudio.com/rsc/bike-predict-python-api/predict")
endpoint
import pandas as pd
new_dict = {
  "id": [121],
  "hour": [1],
  "month": [1],
  "Friday": [0],
  "Monday": [0],
  "Saturday": [0],
  "Sunday": [1],
  "Thursday": [0],
  "Tuesday": [0],
  "Wednesday": [0]
}

new_df = pd.DataFrame(new_dict)
new_df
predict(endpoint, new_df)

Hi Gagan-- it looks like you need authentication for your endpoint. Try this ⬇
h = { 'Authorization': f'Key {api_key}' }

predict(endpoint, new_df, headers = h)


Rename .h.in to .h.cmakein

This pull request is intended to be rebased and merged after:

#344 Delete old unix makefiles and scripts
#343 Added cmake support for cross-compiling on ARM

This change will rename .h.in files that were intended for unix makefiles, to be .h.cmakein which are intended for cmake.
Currently, the CMakeList.txt will create h.cmakein versions of the .h.in files in the CMakeList.txt code. Then it will process those configs. Since in #344, those old makefiles were removed, this step to convert the unix makefile header templates to cmake header templates is no longer necessary.
Note: It is expected that certain review checks will fail which rely on makefile header template .h.in files.

Closed since configure is not going to be removed.


positionIndex cannot return to 0 after it changes

Given this, it is not possible to return the list to the top since it is zero-indexed.
{{input value=customIndex}}
{{#virtual-each ... positionIndex=customIndex ... }}

It looks like startingIndex in scrollTo just needs to allow for this.  What do you think of this?
  scrollTo(positionIndex) {
    const itemHeight = this.getAttr('itemHeight');
    const totalHeight = get(this, '_totalHeight');
    const _visibleItemCount = get(this, '_visibleItemCount');

   // const startingIndex = Math.max(positionIndex, 0) || get(this, '_startAt');
    var startingIndex = Math.max(positionIndex, 0);
    if (isNaN(startingIndex)) {
      startingIndex = get(this, '_startAt');
    }

    const maxVisibleItemTop = Math.max(0, (get(this, '_items.length') - _visibleItemCount + EXTRA_ROW_PADDING));
    const maxPadding = Math.max(0, totalHeight - ((_visibleItemCount - 1) * itemHeight) + (EXTRA_ROW_PADDING * itemHeight));
    const sanitizedIndex = Math.min( startingIndex, maxVisibleItemTop);
    const sanitizedPadding = (sanitizedIndex === maxVisibleItemTop) ? maxPadding : itemHeight * sanitizedIndex;

    this.calculateVisibleItems(sanitizedIndex);
    this.$().scrollTop(sanitizedPadding);
  },

So your use case is you set it to zero and then scroll, and you want to reset it by setting it to zero again?

/cc @flexyford who did some work around this and may be able to help

Yes.
The real use-case is that I'm trying to implement an user "Find" to replace the browser's "Find" since the elements aren't actually on the page.  Part of my approach is to programmatically scroll to the index of the matching record, which will be zero sometimes.

I should be able to release a pull request for this tonight or tomorrow.  I'll keep the existing format:
//  const startingIndex = Math.max(positionIndex, 0) || get(this, '_startAt');
    const startingIndex = isNaN(positionIndex) ? get(this, '_startAt') : Math.max(positionIndex, 0);

On a side note, I found an edge case issue with the sanitizedPadding as well that I'll document in another issue when I have more time to explain it...
//  const sanitizedPadding = (sanitizedIndex === maxVisibleItemTop) ? maxPadding: itemHeight * sanitizedIndex;
    const sanitizedPadding = (itemHeight * startingIndex > maxPadding) ? maxPadding : itemHeight * startingIndex;

:+1:  LGTM Thanks for including me in this issue. It's true that setting this to zero did not work. Please include  test  on https://github.com/jasonmit/virtual-each/blob/master/tests/unit/virtual-each-test.js#L213
should look something pretty similar to the code below
      describe("re-positioning to the first item", function() {
        beforeEach(function() {
          run(() => {
            this.set('positionIndex', 0);
          });
        });

        it("rerenders with the first item at the top", function() {
          var $component = this.$('.virtual-each');
          expect($component.find('li').first().text()).to.contain('Item 0);
        });
      });

Need some help here
I'm fairly new to Ember and this is my first stab with PhantomJS, so my apologies in advance if I'm missing something obvious here.  I cannot quite figure out how scrollTo is being triggered by positionIndex changing.  Is Ember.js firing a new didReceiveAttrs, which in turn schedules another afterRender event?
Where I'm at
The last two tests in the suite do a this.set('positionIndex', undefined), which is converted to 0 before hitting the scrollTo(...) and calculateVisibleItems(...) methods.  I'm trying to figure out how to preserve the undefined value, or do something similar so that we don't scroll the list on undefined.
The nitty gritty
I modified the test slightly:
      describe("re-positioning to the first item", function() {
        beforeEach(function() {
          run(() => {
            this.set('positionIndex', 10);   // Move it elsewhere on the list, then back
            this.set('positionIndex', 0);
          });
        });

        it("rerenders with the first item at the top", function() {
          var $component = this.$('.virtual-each');
          expect($component.find('li').first().text()).to.contain('Item 0');
        });
      });

The following code fixes this, but breaks the last two tests, each of which do this.set('positionIndex', undefined) since these methods see these calls the same as this.set('positionIndex', 0)
// In calculateVisibleItems(...)
const visibleStart = isNaN(positionIndex) ? Math.floor(scrolledAmount / ... ) : positionIndex;

// In scrollTo(...)
const startingIndex = isNaN(positionIndex) ? get(this, '_startAt') : Math.max(positionIndex, 0);

I'm not sure, but it might have something to do with defaultAttrs:
defaultAttrs: {
    positionIndex: 0,
    scrollTimeout: 30,
    height: 200,
    itemHeight: 20
  },

So, I found that afterRender is the source of the conversion from undefined to 0:
        emberRun.scheduleOnce('afterRender', () => {
          console.log('afterRender: ' + this.getAttr('positionIndex'));
          if (typeof attrs.oldAttrs !== 'undefined') {
            console.log('afterRender direct old: ' + attrs.oldAttrs.positionIndex.value);
            console.log('afterRender direct new: ' + attrs.newAttrs.positionIndex.value);
          }
          console.log('------------- ');
          this.scrollTo(this.getAttr('positionIndex'));
        });

When the test sets to undefined, this shows the following:
            afterRender: 0
            afterRender direct old: 200
            afterRender direct new: undefined

I'm not sure why this.getAttr('positionIndex') is reporting 0 just yet.

We are importing a import DefaultAttrsMixin from '../mixins/default-attrs'; so try a default of undefined and see if tests are passing

Thanks for the notes @flexyford.
With the current code, undefined and 0 have the same behavior, so I'd assume they'd pass without my change.  Nevertheless, I'll look into that as well.

Weird... I just found this.get to preserve the undefined, while this.getAttr does not.
Just want to be sure this change is okay:
emberRun.scheduleOnce('afterRender', () => {
  this.scrollTo(this.get('positionIndex')); // this.getAttr changed to this.get
});

No conflicts with Ember deprecations?  This passes all tests on my ember version 1.13.13.

Did you try
defaultAttrs: {
    positionIndex: undefined,
    scrollTimeout: 30,
    height: 200,
    itemHeight: 20
  },

I think this would allow us to keep this.getAttr('positionIndex')

That works as well!  I was rushing out and just made one last attempt.  It didn't quite click what you were referring to when you mentioned the Mixin.  Sorry about that.  Looking closer, I see getAttr is a custom method in that Mixin! Great call!
My thought is to just remove positionIndex from the object, since it isn't being defaulted to anything at that point.  This also passes all tests.  Any reason to keep it?


Totally "Mute" when I wake MAC from sleep

Hello,
First of all, thank you for your work that you are doing here. But I have a really annoying problem with this new version. Whenever I wake up my MAC from sleep, I lose all the sound. Then I have to manually select the audio output and everything will go back to normal. It's really frustrating, I'm using power-saving and background music, so I have to do this a hundred times a day.
My configuration is:
Mac Mini, Late 2012 (Intel Core i7 @2,3Ghz, 16GB RAM, 512GB SSD + 1TB HDD)
Thank you for the answer and the solution to the problem.

Oh, I forgot to mention that, in this case it's a standard integrated sound card. Analog output, 3.5mm jack for "headphones".

Thanks for the Bug report, I have noticed this behaviour sometimes myself. Will hopefully fix in the next update

Thank you for a quick response. I will look forward to this update. On my side it's really every time I wake up my MAC.
PS: This version is a huge move forward, compared to the old version. You're the best! ;)

I'm going out on a limb just a bit, but this may be same issue (or closely related) to the bug I filed a couple of days ago.  Hopefully it is, and you get two for the fix of one....

@jameyers4 you mean issue #6 ?
In that issue you mentioned that app loses reference to your device, but you haven't mentioned that sound is not playing anymore. I thought it plays from some other device. Can I get more details on this?

Away from Mac right now - though I'd say audio stops.  If I open audio
settings, eqMac2  selected as output dev, no audio plays.  Reselect BT
device, audio starts again.  Best I can recall without being at Mac.
If there specific info you would need?
Best,
Jeff
Please excuse brevity and typos, as this was sent from a mobile device.
On Jul 29, 2017 6:35 AM, "Roman Kisil"<EMAIL_ADDRESS>wrote:

@jameyers4 https://github.com/jameyers4 you mean issue #6
https://github.com/romankisil/eqMac2/issues/6 ?
In that issue you mentioned that app loses reference to your device, but
you haven't mentioned that sound is not playing anymore. I thought it plays
from some other device. Can I get more details on this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/romankisil/eqMac2/issues/12#issuecomment-318819899,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AdCeuWMS6__TjlVHz2t-7cks5cJhTLx1ks5sSwsDgaJpZM4OmIt2
.

Same behaviour here:  no sound after coming back from sleep.  After sleep, on Sound preferences panel, output is correctly set to "eqMac2".  I have to select "Internal Speakers" and it automatically goes back to "eqMac2", then sound comes back.
iMac 27" 2017 with 24 Gb RAM, 256 SSD, Radeon Pro 575 4 Gb.  macOS Sierra 10.12.6.

fixed in a31e2bc8c939d7a0b08daae8a31913b3e9b1e5b4

I'm sorry to say so, but in my case, it's not fixed. I tried updating to this new version, no change. Then I completely removed the entire program, restarted MAC, re-installed eqmac and no difference. Still the same behavior. Immediately after my MAC goes into sleep, I will wake him up and the sound will disappear.
It's completely the same scenario as in my original post or peptoni post.

Yeah other people have reported it as well. Sorry guys it's just not happening quite often in my case so it's hard to debug. Please refer to #27 for updates on this issue. Thanks and excuse me for the bug.

Sorry?????  THANK YOU, for a wonderful work!!!!  Please, please, never again apologize.

Peptoni has right! I'm just trying to help. And as I wrote in the second post that you gave me. I think it's bigger problem, because competing software shows exactly the same error. :)
I quote myself (it's weird):
I also have interesting information, or I think so. I tried to compare your program with "BOOM2", I installed the trial version and guess what? Exactly the same problem. So I think this will be something bigger...
And by the way, I also have monitors with audio input. Off in the monitor, but MAC shows the playback option. So I think it has a connection with the jameyers4 post.

Hey everyone. Excuse me for the lack of updates. I have been really busy on the new version of eqMac. I am happy to announce an open beta release.
You can download it here: https://eqmac.app
There are a lot of known bugs that I could not fix just yet:

Driver not installing from the first try. Sometimes need to restart eqMac a couple times.
Complex Device switching logic is not perfect (for example when switching off the device that's currently playing, plugging in new device etc.)
UI takes long to load (a lot can be done to improve that)
UI dimensions are not synching properly
There's a noticeable audio delay in the playback, so not suitable for video yet (I know where the problem lies just haven't had the time to fix yet)
Sometimes the playback doesn't start, in that case please try to switch the output to the device you want and eqMac should try and build the audio pipeline again.

So as you can see there's still some work to be done but at least it's a completely modern tech stack that I am fully willing to work on: 100% Swift, User Space driver and a Web UI, instead of C++, Kernel Drivers. As I said, should work on Catalina and should not have any pesky ear drum blasting volume bugs (at least I didn't come across any).
I'm open to feedback and issue reports here: https://github.com/bitgapp/eqmac
That repo will become the main repo for eqMac and this repo will be archived eventually.
And yes it's called just eqMac, not eqMac3 :) And it will stay that way forever.

Hey everyone 👋
I will be open sourcing the new version of eqMac, therefore, I am closing this issue and repository as I will be transfering nodeful/eqMac2 repo to bitgapp/eqMac
Please bear with me for the next couple of days as I setup that new repo. The eqMac2 code will be living in the old-eqMac2 branch if anyone is interested in referencing it for whatever reason.
Please try out the new version and report bugs to the new repo.
Thanks for using eqMac.


Create the structured data capture library and gallery application

This module includes

QuestionnaireFragment that displays the Questionnaire and collects the QuestionnaireResponse from the user
QuestionnaireViewModel that works as the fragment's data backend

The QuestionnaireFragment class acts as the public API

@yigit sorry this PR has bloated quite a bit. If possible at all I'd love to be able to merge this asap as this will unblock future work as well for @pankajkatoch. Just wanted to make sure the core structure is good. thanks again.

honestly i just skimmed through the PR because it is way too big to review properly :/
would be good to divide it up (e.g. merge skeleton, then merge type by type etc).
but also, i don't want to block the progress right before holidays so feel free to merge.

Thanks Yigit for the review I have separated the gallery app into a different branch now... Will do the same for the individual types.
With particularly big changes, would it make sense to merge them (with review) into a feature branch and then send a final review from feature branch to master branch? I know we have missed that boat for this PR now.


when creating a supermodel, if you add a space before the url, you get strange errors.

Closed via #107


Directory.build.props, Directory.build.targets not imported when cross-targeting

Microsoft.Common.CrossTargeting.targets doesn't import these. As a result properties and tasks defined in Directory.build.props, Directory.build.targets are not available in the outer build.
Repro:

Create a .NET Core Library with project:

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFrameworks>netcoreapp1.0;net46</TargetFrameworks>
  </PropertyGroup>
</Project>

Add Directory.Build.targets next to the .csproj file:

<Project>
  <Target Name="MyTarget">
    <Error Text="Boom!"/>
  </Target>
</Project>

Run

> msbuild /t:Restore ClassLibrary.csproj
...
> msbuild /t:MyTarget ClassLibrary.csproj
Project "ClassLibrary.csproj" on node 1 (MyTarget target(s)).
ClassLibrary.csproj : error MSB4057: The target "MyTarget" does not exist in the project.
Done Building Project "ClassLibrary.csproj" (MyTarget target(s)) -- FAILED.

If the project targets a single framework like so:
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>netcoreapp1.0</TargetFramework>
  </PropertyGroup>
</Project>

The target is invoked as expected:
Project "ClassLibrary.csproj" on node 1 (MyTarget target(s)).
Directory.Build.targets(7,5): error : Boom!

@srivatsn FYI

Directory.Build.props and Directory.Build.targets are imported by Microsoft.Common.props and Microsoft.Common.targets respectively which are both imported in the outer build.  I just tried this on Visual Studio 26214.1.d15rel and it did not repro.
C:\Users\jeffkl\Documents\Visual Studio 2017\Projects\ClassLibrary2\ClassLibrary2>msbuild /t:MyTarget
Microsoft (R) Build Engine version 15.1.546.27743
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 2/16/2017 6:56:37 PM.
Project "C:\Users\jeffkl\Documents\Visual Studio 2017\Projects\ClassLibrary2\ClassLibrary2\ClassLibrary2.csproj" on node 1 (MyTarget target(s)).
C:\Users\jeffkl\Documents\Visual Studio 2017\Projects\ClassLibrary2\ClassLibrary2\Directory.Build.targets(3,5): error : Boom! [C:\Users\jeffkl\Documents\Visual
 Studio 2017\Projects\ClassLibrary2\ClassLibrary2\ClassLibrary2.csproj]
Done Building Project "C:\Users\jeffkl\Documents\Visual Studio 2017\Projects\ClassLibrary2\ClassLibrary2\ClassLibrary2.csproj" (MyTarget target(s)) -- FAILED.

Build FAILED.

"C:\Users\jeffkl\Documents\Visual Studio 2017\Projects\ClassLibrary2\ClassLibrary2\ClassLibrary2.csproj" (MyTarget target) (1) ->
(MyTarget target) ->
  C:\Users\jeffkl\Documents\Visual Studio 2017\Projects\ClassLibrary2\ClassLibrary2\Directory.Build.targets(3,5): error : Boom! [C:\Users\jeffkl\Documents\Visu
al Studio 2017\Projects\ClassLibrary2\ClassLibrary2\ClassLibrary2.csproj]

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.65

Directory.Build.targets
<Project>
  <Target Name="MyTarget">
    <Error Text="Boom!"/>
  </Target>
</Project>

ClassLibrary2.csproj
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>netcoreapp1.0;net46</TargetFramework>
  </PropertyGroup>

</Project>

Nevermind I repro'd this incorrectly.  You are correct, the outer build does not import Microsoft.Common.targets.  @nguerrera is there a reason that Microsoft.Common.CrossTargeting.targets does not import Microsoft.Common.targets?  I see it imports project extensions but since it probably should be importing directory targets like this: https://github.com/Microsoft/msbuild/blob/xplat/src/Tasks/Microsoft.Common.targets#L137

We don't import common targets by design because there are a lot of assumptions in it that don't hold for outer build. It is not really possible to give meaningful semantics to every target in common targets in the outer context.
That said, not importing Directory.* is an oversight. We may want to introduce Directory.CrossTargeting.targets so that we can support the scenario in a non breaking way. This would be consistent with nuget model where separate files are used to augment inner and outer build.

Do we really need a separate file? The detection whether the file is in an inner or outer build is simple, if anyone needs to distinguish in the file.

I agree with @tmat, we should just import Directory.Build.targets.  Directory.Build.props is already being imported by the outer build so I think it would be confusing that there needs to be a separate targets file.  The IsCrossTargetingBuild property gives target authors enough control over what they wanted declared.
CC @AndyGerlicher

If we use only one file, this would be a breaking change so we need to decide that we're prepared to make it or push to get it in right now.
I'm not near a dev setup right now, but I would think that Directory.Build.props is already imported. If so, this can be used to hack a workaround: Set CustomAfterMicrosoftCommonCrossTargetingTargets to Directory.Build.targets in Directory.Build.props. However, those CustomXxx points are perilous, because they suffer from
the "What if two components do this?" problem.

Directory.Build.props is imported at the moment which is why I think it makes sense that Directory.Build.targets should be too.  Can you explain why this would be a breaking change to import the targets file?  Since the functionality is new to MSBuild 15, I assume it would be safe.

I mean it's breaking if we ship MSBuild 15 like it is now and then start importing it in MSBuild 16.

Consider a common case: AfterTargets="Build", this would run only in inner build today, but start to run in both after change.

Ah I see, I misunderstood.  So you're saying if we don't fix it for RTM, then we'll need a new file for future releases....

Or maybe honor a safe opt-in from Directory.Build.props:  <ImportDirectoryTargetsForCrossTargeting>true</ImportDirectoryTargetsForCrossTargeting>
Or have the courage and permission to break.

We should at least talk about it (bar check it as potentially now-or-never) in ship room. Just fixing it will simplify things for the long haul.

I did more experiments and it seems like Directory.build.props is imported but Directory.build.targets isn't. Odd.

We're going to bar check this with management to see what they think.  The change is a copy/paste from one file to another so the risk is very low but it might be too late.

FYI this will have to be in a future update. It won't be in VS2017 RTW.

Hi. What's the state of this issue?
Will this Directory.Build.targets be imported in some future release?

@JunielKatarn looks like the changes from #1722 are available in our latest packages (I checked Microsoft.Build.Runtime 15.2.0-preview-000103-02, but not yet pulled into the CLI or VS builds. I believe this will go out with the 15.3 update.

@rainersigwald thanks!
However, I somehow made it work.
I can confirm that as of dotnet version 1.0.1, I am able to implicitly import Directory.Build.targets.
I think this use case is worth a short sample in the official docs. Is there a way to contribute to them?


RAT-260: Use Docker in Travis CI to avoid animal-sniffer errors when building with various JDKs

Hello
Travis has problems with depencies incompatibilities. The simplest solution is to use Docker, which provides isolation of dependencies.
https://issues.apache.org/jira/projects/RAT/issues/RAT-260
Best regards,

As you are in the ASF group already it's sure you signed a CLA - thanks for helping out :)

Build is back in the green - thanks :+1:


New twitch embedded ad form needs to be ignored

https://github.com/streamlink/streamlink/issues/2894#issuecomment-613692932

As of 2020-09-15 adding platform=_ as a request param also seems to help disable ads, see https://github.com/streamlink/streamlink/issues/3120#issuecomment-692309197. This is likely to be fixed on twitch's end sooner or later.


Feat: Renaming support for all entity

Currently, we do not have support to edit/update name & display name of any entity. we should add the support for the same.

@ShaileshParmar11 this should only be adding or editing display name

Thanks @harshach for confirming!

https://www.figma.com/file/VaeQD2fIhQVDCvqBHyEv7J/Open-Metadata?node-id=19271%3A22329&t=pi28c4n2gUgXJems-1

need to take care of the above bug with this ticket, one should be name and another should be displayname, currently we are showing both as displayName

List of component where we need to provide edit/update displayName

[ ] Service ?
[ ] database details page
[ ] schema details page
[ ] Table details page
[ ] Topic details page
[ ] dashboard details page
[ ] pipeline details page
[ ] mlmoadel details page
[ ] container details page

organize the menu items at all placeses

Announcements
Rename
Delete


List of three-ecsy core components

make a final(ish) list of components for the three bindings.

Highlighted: indicates if an entity has been highlighted. Something else recognizes that the entity has been highlighted and modifies the actual threejs object (say, material swapping).
Grabbable: indicates if a stationary object can be grabbed.
Hands: represents a VRcontroller or other controller which can grab grabbable entities when it is near them. Handles all of the proximity detection, storing which thing has been grabbed, and swapping threejs nodes.

We're in the process of figuring out our new core components and what belongs in core vs libraries. Closing this and we'll revisit in https://github.com/ecsyjs/ecsy-three/issues/36


CUD-Support from Code

Hello, real sorry if this is documented somewhere and I've just missed it, but I was wondering if it's possible to Create/Update/Delete Feature Flags from code? Native Azure App Configuration has support to mod the configs from code via Azure.Data.AppConfiguration, like:
var client = new ConfigurationClient("MyConnectionString");
var setting = new ConfigurationSetting("MyKey", "MyValue");
await client.SetConfigurationSettingAsync(setting);

But try as I might, I haven't found an equivalent for Feature Flags. Does it exist and I've just missed it - or doesn't it and if so why?

@JuliusMikkela hope this helps
https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample9_FeatureFlags.md

Hello @JuliusMikkela I think Zhenlan's reply answers the question. Let me know if that's not the case.

Hi, yes that's exactly what I was looking for, thank you!


fix: save to markdown files

#129 : 2  dependent PRs (#130 , #131 ) 👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @MartinBernstorff and the rest of your teammates on  Graphite

Merge activity

Apr 2, 11:53 AM GMT+2: @MartinBernstorff merged this pull request with Graphite.


Update musescore.sh

musescore released version 4, the name musescore 3 produces an exit code of 8. Path not found.

Thank you!


Jihvāmūlīya as independent "character"

So far, I've only ever seem upadhmānīya and jihvāmūlīya conjoined to the following akṣara, but I know that some modern scripts use these signs (when they use them at all) in a semi-independent way, so that they appear, like visarga, after the preceding akṣara. Now for the first time, I've come across a jihvāmūlīya used in this way in a late (11th-century) Eastern Cālukya plate:

(yoẖ ka).
I propose that I add this under TG '3.3.8, "Unusually composed complex characters", with an optional transliteration yo=ẖ ka (and perhaps also in the EGD, §4.1.1, with the encoding yoẖ ka), in case someone wishes to make it explicit that an upadhmānīya or jihvāmūlīya is not part of a conjunct with the next character which should, imo, remain the default interpretation.
Arlo, please let me know what you think of this. It may be an unnecessary complication, which I normally tend to avoid, so if you wish to, it will be easy to persuade me to drop this and just mention the issue in the palaeographic description.

As a matter of curiosity, what would a normal visarga look like? The figure 8 cannot be read as a plain visarga?
I have never seen anything like this. But If you are sure of your interpretation then, yes, I would like our TG to allow making a distinction from the normal use of jihvāmūlīya, and the manner you propose seems good.

A normal visarga would be just a pair of plain dots. That is so in all EC plates I've ever seen, including elsewhere in this one. I too have never seen anything like this, but it does resemble a Kannada jihvāmūlīya,  ೱ. And a visarga is expected here, so I'm as sure as one can be: can't think of anything other than a jihvāmūlīya that it could plausibly be.

Thanks. Then's say go for it, and cite the Kannada jihvāmūlīya, ೱ, in the new TG item.

Thanks for the opinion. Done in the TG.


disable audio recording permanently

I see how to disable audio recording for the current running instance, but not for the program as a whole. Is there a way to disable audio recording permanently?

use version https://github.com/Zougi/LyncLogger/releases/download/v1.1/LyncLogger-v1-1.zip

This issue was encountered while using v1.2, is this something that broke in that version?

There are no sound in 1.1. In 1.2 I tried to add sound recording and failed, The library I used, CScore Audio has now better samples that show how to implement the audio recording. I didn't take the time to try them out yet =(


The screenshot take feature shouldn't create a new folder for every shot in singl-shot mode

When a single screenshot is taken, the code simply re-uses the pipeline for panoramas however that creates a new folder for each shot which is a bit ridiculous.

Just found you do create bugs for yourself! I have never done in this way, instead I keep all of them in a MD file, because that's too many of them.

Heh :) Yeah this is easier if there aren't that many as you can track them with commits too (refer to them so you get a bit of tracability back). for hobby stuff like this, it's not that important, but alas, am used to it so why not use it here too :)

This has been implemented in recent camera (SWJFO)


TEST: using get_dataframes_and_queues instead of get_queues in onedal4py testing

Description
using get_dataframes_and_queues instead of get_queues in onedal4py testing
More description will be added.
Justification
TBD
TODO
Enable this testing everywhere where it is required.

[ ] I have reviewed my changes thoroughly before submitting this pull request.
[ ] I have commented my code, particularly in hard-to-understand areas.
[ ] I have updated the documentation to reflect the changes, if necessary (updated in # - add PR number)
[ ] The unit tests pass successfully.
[ ] I have run it locally and tested the changes extensively.
[ ] I have resolved any merge conflicts that might occur with the base branch.
[ ] Git commit message contains an appropriate signed-off-by string (see CONTRIBUTING.md for details)
[ ] I have added a respective label(s) to PR if I have a permission for that.

/intelci: run

/intelci: run

/intelci: run

/intelci: run

/intelci: run

/intelci: run

Since np_sycl isn't a dataframe type unlike array_api, pandas, numpy, dpctl, or dpnp, I'd ask that you write comments in the code in the instances where np_sycl is used to give future developers the reasoning why its there/ flag it for special observation. I'd also add some comments into get_dataframes_and_queues. I had been thinking why we just don't extend numpy to include queues. Did you run that and see how much it increases CI runtimes?

Yeah, make sense to share statistics of the run. Also definitely docs needed to be updated. Thank you!

This will need to be rebased for 2025.0

Some updates are required. Moving back to the draft.

/intelci: run


fix: 鼠标移动到下拉菜单报错

General

✏ Mark the necessary items without changing the structure of the PR template.

[x] Pull request template structure not broken

Type

ℹ What types of changes does your code introduce?

👉 Put an x in the boxes that apply

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Checklist

ℹ Check all checkboxes - this will indicate that you have done everything in accordance with the rules in CONTRIBUTING.

👉 Put an x in the boxes that apply.

[x] My code follows the style guidelines of this project
[x] Is the code format correct
[x] Is the git submission information standard?
[x] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

Fixes: https://github.com/vbenjs/vben3/issues/93


How to snapshot a view on macOS with provided screen scale?

When snapshot testing views on macOS recorded image size depends on the main display of the machine on which tests are run.
Example:

I want to snapshot NSView of size 640x480 points
When running a test on a MacBook with retina display, the snapshot image will have the size of 1280x960 pixels
When running the same test on the same, but closed MacBook with external, non-retina screen connected, the snapshot image will have the size of 640x480 pixels

When snapshot testing views on iOS, I can provide a display scale trait collection to force the output image scale (as described in #427). Unfortunately, I haven't found a way to snapshot test macOS views, so the test results are not dependent on the display I am using (MacBook-embedded or external monitor).
I tried to work-around this issue with the code below:
extension Snapshotting where Value == NSViewController, Format == NSImage {
  static func unscalledImage(precision: Float = 1) -> Snapshotting {
    Snapshotting<NSView, NSImage>
      .unscalledImage(precision: precision)
      .pullback { $0.view }
  }
}

extension Snapshotting where Value == NSView, Format == NSImage {
  static func unscalledImage(precision: Float = 1) -> Snapshotting {
    SimplySnapshotting<NSImage>
      .image(precision: precision)
      .pullback { $0.toImage().unscaled() }
  }
}

private extension NSView {
  func toImage() -> NSImage {
    let cacheRep = bitmapImageRepForCachingDisplay(in: bounds)!
    cacheDisplay(in: bounds, to: cacheRep)
    let image = NSImage(size: bounds.size)
    image.addRepresentation(cacheRep)
    return image
  }
}

private extension NSImage {
  func unscaled() -> NSImage {
    let image = NSImage(size: size)
    image.addRepresentation(unscaledBitmapImageRep())
    return image
  }

  func unscaledBitmapImageRep() -> NSBitmapImageRep {
    let imageRep = NSBitmapImageRep(
      bitmapDataPlanes: nil,
      pixelsWide: Int(size.width),
      pixelsHigh: Int(size.height),
      bitsPerSample: 8,
      samplesPerPixel: 4,
      hasAlpha: true,
      isPlanar: false,
      colorSpaceName: .deviceRGB,
      bytesPerRow: 0,
      bitsPerPixel: 0
    )!
    imageRep.size = size
    NSGraphicsContext.saveGraphicsState()
    NSGraphicsContext.current = NSGraphicsContext(bitmapImageRep: imageRep)
    draw(at: .zero, from: .zero, operation: .sourceOver, fraction: 1)
    NSGraphicsContext.restoreGraphicsState()
    return imageRep
  }
}

And while it fixes the mismatch of the output image size (with the code above it will always equal to point-size of the view), it does not work as expected. It looks like scaling the image introduces minor distortion which causes test failures (for example, text on the snapshot image is slightly shifted 1 px).
Is there a way of forcing the scale of a snapshot image on macOS?

Hi @darrarski, did you get any further with this? I'm struggling with the same problem, but for me it's my laptop versus GitHub Actions.

Unfortunately, I didn't have time to work on this issue and research for a solution.

Scaling the images down seems a dead end. Anti-aliasing and font-smoothing result in inconsistent results.
As a workaround I unscale the MacBook Retina display with https://github.com/th507/screen-resolution-switcher before I take the snapshots, and revert it afterwards. For my MacBook 16", it's like
scres -s 3072
xcodebuild ... test
scres -r 1536

This works for my use case of GitHub Actions.

Wonder if anyone has any luck making output sharper from macOS snapshots?


Linker system call quickly exceeeds MAX_ARG_STRLEN

There's a limit on how many bytes a single argument to a program can be.
The linker command uses the system method to link1.
The system method invokes Process.run with "/bin/sh", "-c", "argument_passed_to_system"2. In case of the linker call, the last parameter can become very large.
Process.run uses execvp to run the command3, from exec(3):

Special semantics for execlp() and execvp()
The execlp(), execvp(), and execvpe() functions duplicate the actions of the shell in searching for an executable file if the specified filename does not con‐
tain a slash (/) character.  The file is sought in the colon-separated list of directory pathnames specified in the PATH environment variable.  If this  vari‐
able  isn't defined, the path list defaults to the current directory followed by the list of directories returned by confstr(_CS_PATH).  (This confstr(3) call
typically returns the value "/bin:/usr/bin".)

Given the above I would suggest to add an overload of system that accepts a command and an array or tuple of strings as arguments and that overload to not call /bin/sh. Then change the linker invocation to use that overload.
To reproduce the issue, simply call make spec in a sufficiently deeply nested path, for me  /home/jhass/projects/PKGBUILDs/crystal/src/crystal-0.5.4 was enough.
On a side node this is broken, at least on Linux. The C.exit(127) does not cause a pid of -1 or at least the errno is not available in the parent, hiding important details about the failure.
I think this is a rather critical issue, and I'd appreciate a 0.5.5 or <IP_ADDRESS> shortly :)

acf482979977cded1dfc6ac26ad9618806bd6c44 reintroduced this.

@jhass Does https://github.com/manastech/crystal/commit/df716ad2e53e646ffa9b4b79da2de5f9252b208d fix it?

Mmmh, nope, it's the linker invocation, not launching the compiled binary.

Oh, I see!
So I broke system?
But if we do Process.run(long_command, shell: true) that might break too, right?
What would the best solution be? I'm thinking of splitting long_command into pieces and sending those to execpv. We can do this conditionally based on long_command.length.
@waj @technorama ideas?

I think we can do with less magic, accept command and arguments, if shell: true prepend "-c", command, "\"${@}\" and "--" to arguments, then replace command with /bin/sh. That is invoke /bin/sh -c 'foo "${@}" -- a b c d.

Would be nice to have a regression spec for this too, so I don't break it next time.

Been thinking about this, but hard to do. If my last comment works, the bug is in the system/Process.run invocation, since it would still fail on system(very_long_command) and the proper usage for these would be Process.run(command, arguments, shell: true)

@asterite I propose the following patch to fix this for good:
diff --git a/src/compiler/crystal/compiler.cr b/src/compiler/crystal/compiler.cr
index 05dd7ea..fb0912c 100644
--- a/src/compiler/crystal/compiler.cr
+++ b/src/compiler/crystal/compiler.cr
@@ -213,8 +213,9 @@ module Crystal
       end

       timing("Codegen (clang)") do
-        quoted_object_names = object_names.map { |name| %("#{name}") }.join " "
-        system "#{CC} -o #{output_filename} #{quoted_object_names} #{@link_flags} #{lib_flags}"
+        arguments = ["-c", "#{CC} \"${@}\" #{@link_flags} #{lib_flags}", "--", "-o", output_filename]
+        arguments.concat object_names
+        Process.run "/bin/sh", arguments, output: true
       end
     end

Would be awesome to have a solution asap.
Furthermore I propose to change the shell: true interface to something like:
diff --git a/src/process/run.cr b/src/process/run.cr
index 8085c84..8fcb59b 100644
--- a/src/process/run.cr
+++ b/src/process/run.cr
@@ -56,17 +56,23 @@ class Process
   #
   # By default the process is configured without input, output or error.
   def initialize(command : String, args = nil, env = nil : Env, clear_env = false : Bool, shell = false : Bool, input = false : Stdio, output = false : Stdio, error = false : Stdio, chdir = nil : String?)
-    cmd, argv = if shell
-      raise "args not allowed with shell" if args
-      {"/bin/sh", ["/bin/sh".to_unsafe, "-c".to_unsafe, command.to_unsafe, Pointer(UInt8).null]}
-    else
-      a = [command.to_unsafe]
-      args.try &.each do |arg|
-        a << arg.to_unsafe
+    if shell
+      if command.includes?(' ')
+        raise ArgumentError.new("can't specify arguments in both, the command and `args`") if args
+        new_args = ["-c", command, "--"]
+      else
+        new_args = ["-c", "#{command} \"${@}\"", "--"]
+        new_args.concat(args) if args
       end
-      a << Pointer(UInt8).null
-      {command, a}
+      command = "/bin/sh"
+      args = new_args
+    end
+
+    argv = [command.to_unsafe]
+    args.try &.each do |arg|
+      argv << arg.to_unsafe
     end
+    argv << Pointer(UInt8).null

     @wait_count = 0

@@ -119,7 +125,7 @@ class Process

         Dir.chdir(chdir) if chdir

-        LibC.execvp(cmd, argv)
+        LibC.execvp(command, argv)
       rescue ex
         ex.inspect(STDERR)
         STDERR.flush

Would be nice to know if that's acceptable before I make it PR ready.

This is a very rare case that's probably only applicable to a compiler with lots of arguments that MAY have shell commands embedded.
My solution was going to be:
compiler_files = ...
expanded_linker_flags = linker_flags.map do |f|
  if f =~ /`/
    f = `echo #{f}`.split
    raise unless $?.success?
  end
  f
end
argv = compiler_files + expanded_linker_flags.flatten
run(linker_cmd, argv) # no shell

The current code has very weak shell escaping of file names and may break if someone gets creative with a filename.
@asterite splitting a long command would require knowledge of where splitting is safe.
Where can this be split: \ " ' " \' \' " ' "?

For now I fixed the linker command. It basically does what the old "system" did. @jhass This should fix the problem, right?
Yesterday I changed the implementation of system and backtick because I tried these programs in Ruby:
value = `cat`
p value

value = system("cat")
p value

In both programs the input is inherited, so you can write to cat, and when you ctrl+D, in the case of the backtick, you get the output. This didn't work in the previous implementation because we specified to pipe the input and used it to send the command to "/bin/sh". This new implementation makes it work like in Ruby (and I think it's the correct behaviour).
Finally, I agree with @technorama: the cases where a system/backtick call is long is pretty rare, maybe only in compilers. And in those cases we don't need to inherit the input so we can do Process.run manually.
We can document this MAX_ARG_STRLEN limitation in both system and backtick, showing an alternative solution that doesn't have this limitation.

Yes, but I consider something like #1293 the proper solution.


Revert "Try installing Google Chrome for Testing (#7997)"

Description
This reverts commit d9169bba1e28bd781128a8d8cdb28d0b182db9c6.
Related issue:
https://github.com/actions/runner-images/issues/8114
Check list

[x] Related issue / work item is attached
[ ] Tests are written (if applicable)
[ ] Documentation is updated (if applicable)
[ ] Changes are tested and related VM images are successfully generated

/azp run windows2019, windows2022


[Codelab Issue] Testing Codelab 5.#, Step # - Issue description

Describe the problem
Typo under step 2
"u8sually contain assertion statements." should be "usually contain assertion statements."
In which lesson and step of the codelab can this issue be found?
5.1 step 2
How to reproduce?
N/A
Versions
N/A
Additional information
none
codelab: advanced-android-kotlin

Fixed thanks


Measure agent performance

The book defines in chapter 2 the notion of PEAS (Performance, Environment, Actuators and Sensors). We are currently missing a way to capture the Performance of our agents.
I am not sure what would be the best way to implement it. The performance is both a function of the Environment state and the Agent state. E.g. in the vacuum world, the book states that we can decide to measure the performance by the number of clean squares at time t, 2 being the best possible score at any point in time. Another possibility would be to take into account the state of the agent. As the agent needs energy to move and clean, the battery level could also be taken into account when measuring the performance.
Here's one way we could do it:

type PerformanceMeasure = (Environment, Agent) => Double

trait Simulation[ENVIRONMENT, PERCEPT, ACTION] {

val environment: Environment [...]

val performanceMeasure: PerformanceMeasure

val performances: Map[Agent, Double]

}

Maybe we should keep as well a history of the agent performance over time. Add the notion of step in time (i.e. one invocation of the run function of the agent)

I've created a naive implementation but I am not happy about it for the time being. https://github.com/benderpremier/aima-scala/pull/2 .


Send SIGINT instead of SIGKILL

the process of trialJob cannot exit gracely because sigkill cannot be caught

If the trial process is stuck and cannot handle SIGINT, it may be there forever.
I think it will be nice to send SIGINT first, and then send SIGKILL on timeout.

It's better to add a field into the configuration file and the default value is 'SIGKILL'.

It's better to add a field into the configuration file and the default value is 'SIGKILL'.

I think this problem can be handled gracefully without user's attention, so I prefer not to change user interface.
If you have problem on implementation, I can do this later.


a issue in mint-nft

on anchor build
Compiling mpl-token-metadata v1.13.1
error[E0277]: the trait bound T: borsh::de::BorshDeserialize is not satisfied
--> src/utils/mod.rs:176:21
|
176 |     let result: T = try_from_slice_unchecked(data)?;
|                     ^^^^^^^^^^^^^^^^^^^^^^^^ the trait borsh::de::BorshDeserialize is not implemented for T
|
note: required by a bound in solana_program::borsh::try_from_slice_unchecked
--> src/borsh.rs:39:1
help: consider further restricting this bound
|
167 | pub fn try_from_slice_checked<T: TokenMetadataAccount + borsh::de::BorshDeserialize>(
|                                                       +++++++++++++++++++++++++++++
For more information about this error, try rustc --explain E0277.
error: could not compile mpl-token-metadata (lib) due to previous error

i change the version of mpl-token-metadata = "4.1.2"
get error :
&instructions::create_metadata_accounts_v2(
|                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in instructions

i am also experiencing same issue, i think the problem is from the code base, needs to be modified to be compatible with the current mpl-token-metadata version


Inaccurate time estimation results for fine-tuning use-case

This PR introduces time estimation functionality for fine-tuning tasks. We observed in our experiments that estimated values are pretty inaccurate and have a few questions and suggestions:
Question 1: Is there any public information about where constants like 0.0515 (line 601) come from?
My data frame which was used for fine-tuning curie model for 2 epochs contains 8236 rows. Our aim was to train an open-ended generator, that's why prompt column is completely empty. However, running memory_usage on this df gives the same values for prompt and completion columns. Please note that completion column contains pretty long text values.

If I use sys module to get the size of df on system, I get a very different result.

If I add deep=True parameter to pandas' memory_usage call, the returned value becomes very similar to sys output.

Question 2: Based on the previous trials, is there any reason why the estimator doesn't use deep=True flag to get memory consumed in the system?
Question 3: Does this estimator have any number of epochs assumption?
Time estimator returns 1.92 hours (approximately 115 minutes) for my dataset. When I started training on the same df for 2 epochs, it took 17 minutes in total. ~9 minutes per epoch. It doesn't take this parameter into account because it's not available until the fine-tuning process call is made.
Once your model starts training, it'll approximately take 1.93 hours to train a `curie` model, and less for `ada` and `babbage`. Queue will approximately take half an hour per job ahead of you

....
[2022-10-06 15:56:26] Fine-tune enqueued. Queue number: 0
[2022-10-06 15:56:29] Fine-tune started
[2022-10-06 16:05:33] Completed epoch 1/2
[2022-10-06 16:13:42] Completed epoch 2/2

Suggestions:

[ ] More documentation about constant values like 0.0515
[ ] Adding deep=True flag to memory_usage call and updating constants accordingly
[ ] Adding information about epoch count assumption to the log message, like Once your model starts training, it'll approximately take 1.93 hours to train a curie model for x epochs based on historical statistics, and less ...

I believe these helpers have been removed. If the problem remains in v1 of this library, please let me know and we can reopen.


Availability on <Latest 'Droid?

Some have pretty old implementations of Android, out there, with upgrade hurdles.  Some even with 2.x!!!!
But plenty have devices with 4.x, as well.

#21 has lowered api to Honeycomb. api v 11


Stage 8 tests use modulo

stage_8/valid/nested_while.c
This has a % operator in, which is optionally implemented in the blog.

Good catch! I've removed the % operator from that test case and several others that were also using it.


Remove ihmccreery from blunderbuss for test/

Really, cc @kubernetes/goog-testing and @kubernetes/sig-testing should be thinking about better ways to target reviews to the teams who maintain the tests, rather than @ixdy.

LGTM
:cries:

Like I said, you might consider making it a priority to factor the tests better so that those teams responsible for them actually maintain them, instead of going through you.


Error installing on php 8.1

I get the below erro when try to use the package.
Environment - php8.1, Larevel 8.75
Error:
Problem 1
- mettle/sendportal-core[v2.0.2, ..., v2.0.3] require kriswallsmith/buzz ^1.2 -> satisfiable by kriswallsmith/buzz[1.2.0].
- mettle/sendportal-core[v2.0.0, ..., v2.0.1] require php ^7.3 -> your php version (8.1.0) does not satisfy that requirement.
- kriswallsmith/buzz 1.2.0 requires symfony/options-resolver ^3.4 || ^4.0 || ^5.0 -> found symfony/options-resolver[v3.4.0-BETA1, ..., 3.4.x-dev, v4.0.0-BETA1, ..., 4.4.x-dev, v5.0.0-BETA1, ..., 5.4.x-dev] but the package is fixed to v6.0.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- Root composer.json requires mettle/sendportal-core ^2.0 -> satisfiable by mettle/sendportal-core[v2.0.0, v2.0.1, v2.0.2, v2.0.3].
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

I also get this issue with php 8.1 and laravel 9. Please update the dependency mapping for php 8.

Same here on laravel 9 and php 8.1..

Same here on laravel 9 and php 8.0

Yep.... same here... wth. What do we do? Do we downgrade the PHP version?

Same


Possible perms issue with default resin projects directory.

one issue i noticed with the default folder location is that there might be a permission problem for some users.
resin-io:resin-wifi-connect hobochild$ git push resin master -f
error: unable to create directory for .git/refs/remotes/resin/master

error: update_ref failed for ref 'refs/remotes/resin/master': Cannot lock the ref 'refs/remotes/resin/master’.

I have a theory about this issue, although I need to investigate this further:
device init needs sudo in order to write the image to the drive, and therefore creates an application directory that doesn't have write permissions for the current user.
Possible solutions:

Create the directory as the user instead of root.
Tweak the permissions of the directory after it's creation.

The quickstart, when it creates a folder and associates it, that folder is owned by the root user, so then on OSX, it always wants me to used sudo, even to commit, etc.

This happens with the cache as well. If you download an image with sudo, that image file is owned by root.


Heck chill and I were going to try

Cubby is a great place to work

Cubby is a great place to work


AttributeError: module 'tensorflow.python.keras' has no attribute 'Model'

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): not custom code / object_detection

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 16.04

TensorFlow installed from (source or binary): binary

TensorFlow version (use command below): 1.4.0

Python version:  3.5

CUDA/cuDNN version: 8.0

GPU model and memory:
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                56
On-line CPU(s) list:   0-55
Thread(s) per core:    2
Core(s) per socket:    14
Socket(s):             2
NUMA node(s):          2
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 79
Model name:            Intel(R) Xeon(R) CPU E5-2690 v4 @ 2.60GHz
Stepping:              1
CPU MHz:               2599.695
CPU max MHz:           3500.0000
CPU min MHz:           1200.0000
BogoMIPS:              5189.84
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              35840K
NUMA node0 CPU(s):     0-13,28-41
NUMA node1 CPU(s):     14-27,42-55
Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb invpcid_single intel_pt ibrs ibpb stibp kaiser tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm rdseed adx smap xsaveopt cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm arat pln pts

Exact command to reproduce:
python3 object_detection/legacy/train.py --logtostderr --train_dir=object_detection/training/ --pipeline_config_path=object_detection/training/ssd_mobilenet_v1_pets.config

When i wanted to start training object detector i get this error even if tensorflow has valid installation. With the same configuration on tf 1.10. its working well. Is this a problem of version? was the "Model attribute" released after tf 1.4 version?
ERROR LOG:
Traceback (most recent call last):
File "object_detection/legacy/train.py", line 51, in
from object_detection.builders import model_builder
File "/home/klapajar/cone_detection/tensorflow/models/research/object_detection/builders/model_builder.py", line 20, in
from object_detection.builders import box_predictor_builder
File "/home/klapajar/cone_detection/tensorflow/models/research/object_detection/builders/box_predictor_builder.py", line 18, in
from object_detection.predictors import convolutional_box_predictor
File "/home/klapajar/cone_detection/tensorflow/models/research/object_detection/predictors/convolutional_box_predictor.py", line 18, in
from object_detection.core import box_predictor
File "/home/klapajar/cone_detection/tensorflow/models/research/object_detection/core/box_predictor.py", line 137, in
class KerasBoxPredictor(tf.keras.Model):
AttributeError: module 'tensorflow.python.keras' has no attribute 'Model'

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

@kopecdav - I faced the same issue. upgrading the tensorflow version to 1.7.0 helped me. Thanks.

It has been 15 days with no activity and the awaiting response label was assigned. Is this still an issue?

@kopecdav Does this issue still persist ?
@ViktorPot Hi, can you provide the tensorflow version you're using ?

pip install -U tensorflow
worked for me. It updated tensorflow to v1.11

worked for me too.

Feel free to close this issue if it no longer persists. Thanks !

It has been 29 days with no activity and the awaiting response label was assigned. Is this still an issue?

It has been 44 days with no activity and the awaiting response label was assigned. Is this still an issue?

still not resolved ,y Tensorflow version is 2.0.0a0

Here the same problem, my Tensorflow version is 2.0.0a0

Here the same problem, my Tensorflow version is 2.0.0a0

Here the same problem, my Tensorflow version is 1.4. Any responses???

I encountered the same problem when deploying a training on ml engine on google cloud platform. Any updates on this issue?

Hey @ViktorPot
did you solve this problem?

import tensorflow as tf
tf.keras.models.Model() solves the issue

ERROR:
(tensorflow) C:\tensorflow\models\research\object_detection>python train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/faster_rcnn_inception_v2_pets.config
Traceback (most recent call last):
File "train.py", line 54, in
from object_detection.builders import model_builder
File "C:\tensorflow\models\research\object_detection\builders\model_builder.py", line 66, in
from object_detection.models import ssd_efficientnet_bifpn_feature_extractor as ssd_efficientnet_bifpn
File "C:\tensorflow\models\research\object_detection\models\ssd_efficientnet_bifpn_feature_extractor.py", line 33, in
from official.vision.image_classification.efficientnet import efficientnet_model
File "C:\tensorflow\models\official\vision\image_classification\efficientnet\efficientnet_model.py", line 35, in
from official.modeling import tf_utils
File "C:\tensorflow\models\official\modeling\tf_utils.py", line 25, in
from official.modeling import activations
File "C:\tensorflow\models\official\modeling\activations_init_.py", line 16, in
from official.modeling.activations.gelu import gelu
File "C:\tensorflow\models\official\modeling\activations\gelu.py", line 20, in
@tf.keras.utils.register_keras_serializable(package='Text')
AttributeError: module 'tensorflow_core.keras.utils' has no attribute 'register_keras_serializable'
(tensorflow) C:\tensorflow\models\research\object_detection>


Python - Support send structured error details

Hi! I think it's maybe like this:
fv = BadRequest.FieldViolation(field="login", description="Name is not unique")
bad_request = BadRequest(field_violations=[fv])
context.abort(StatusCode.INVALID_ARGUMENT, bad_request.SerializeToString())

Unfortunately, the required functionality or not, or the documentation is not clear enough for our team. =(
Thanks in advance for your help.
What version of gRPC and what language are you using?
Python
grpcio==1.17.1
What operating system (Linux, Windows, …) and version?
MacOS Sierra
What runtime / compiler are you using (e.g. python version or version of gcc)
python 3.6

Hi Artur, the new API has been implemented in the dev version by PR https://github.com/grpc/grpc/pull/17481, and will be available in next release. There is a related issue https://github.com/grpc/grpc/issues/16366 requesting the rich status error details. Examples and documentation will be added soon.
Here is a short snippet demonstrate the usage of the new rich status API abort_with_status:
# Server side
from grpc_status import rpc_status
from google.protobuf import any_pb2

def ...Servicer(...):
    def ARPCCall(request, context):
        ...
        detail = any_pb2.Any()
        detail.Pack(
            rpc_status.error_details_pb2.DebugInfo(
                stack_entries=traceback.format_stack(),
                detail="Can't recognize this argument",
            )
        )
        rich_status = grpc_status.status_pb2.Status(
            code=grpc_status.code_pb2.INVALID_ARGUMENT,
            message='API call quota depleted',
            details=[detail]
        )
        context.abort_with_status(rpc_status.to_status(rich_status))
        # The method handler will abort

To learn more about the design, here is the gRFC, comments are welcomed.