Fluentd crash when zookeeper returns no brokers or if zookeeper call fails

Hi @htgc ,
I am using v0.0.9 for this plugin. There are 2 specific exceptions we can see in our logs and both exceptions lead to entire Fluentd Agent crashing. Looks like these are uncaught errors in the code leading to full crash. Any input here would be helpful.
In both scenarios we were using the 'zookeeper' configuration and not the 'brokers'.
Error 1:
In this case Zookeeper is UP but no brokers are registered as they were down for maintenance.
2015-03-20 09:08:12 +0000 [error]: unexpected error error="undefined method `each' for nil:NilClass"
  2015-03-20 09:08:12 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluent-plugin-kafka-0.0.9/lib/fluent/plugin/out_kafka_buffered.rb:39:in `configure'
  2015-03-20 09:08:12 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.12.5/lib/fluent/plugin/out_copy.rb:43:in `block in configure'
  2015-03-20 09:08:12 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.12.5/lib/fluent/plugin/out_copy.rb:32:in `each'
  2015-03-20 09:08:12 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.12.5/lib/fluent/plugin/out_copy.rb:32:in `configure'
  2015-03-20 09:08:12 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.12.5/lib/fluent/agent.rb:127:in `add_match'
  2015-03-20 09:08:12 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.12.5/lib/fluent/agent.rb:60:in `block in configure'
  2015-03-20 09:08:12 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.12.5/lib/fluent/agent.rb:54:in `each'
  2015-03-20 09:08:12 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.12.5/lib/fluent/agent.rb:54:in `configure'
  2015-03-20 09:08:12 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.12.5/lib/fluent/root_agent.rb:82:in `configure'
  2015-03-20 09:08:12 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.12.5/lib/fluent/engine.rb:97:in `configure'
  2015-03-20 09:08:12 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.12.5/lib/fluent/engine.rb:77:in `run_configure'
  2015-03-20 09:08:12 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.12.5/lib/fluent/supervisor.rb:399:in `run_configure'
  2015-03-20 09:08:12 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.12.5/lib/fluent/supervisor.rb:138:in `block in start'
  2015-03-20 09:08:12 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.12.5/lib/fluent/supervisor.rb:266:in `call'
  2015-03-20 09:08:12 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.12.5/lib/fluent/supervisor.rb:266:in `main_process'
  2015-03-20 09:08:12 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.12.5/lib/fluent/supervisor.rb:241:in `block in supervise'
  2015-03-20 09:08:12 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.12.5/lib/fluent/supervisor.rb:240:in `fork'
  2015-03-20 09:08:12 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.12.5/lib/fluent/supervisor.rb:240:in `supervise'
  2015-03-20 09:08:12 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.12.5/lib/fluent/supervisor.rb:134:in `start'
  2015-03-20 09:08:12 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.12.5/lib/fluent/command/fluentd.rb:167:in `<top (required)>'
  2015-03-20 09:08:12 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
  2015-03-20 09:08:12 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
  2015-03-20 09:08:12 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.12.5/bin/fluentd:6:in `<top (required)>'
  2015-03-20 09:08:12 +0000 [error]: /usr/lib64/fluent/ruby/bin/fluentd:23:in `load'
  2015-03-20 09:08:12 +0000 [error]: /usr/lib64/fluent/ruby/bin/fluentd:23:in `<top (required)>'
  2015-03-20 09:08:12 +0000 [error]: /usr/sbin/td-agent:7:in `load'
  2015-03-20 09:08:12 +0000 [error]: /usr/sbin/td-agent:7:in `<main>'
2015-03-20 09:08:12 +0000 [info]: process finished code=256
2015-03-20 09:08:12 +0000 [warn]: process died within 1 second. exit.
2015-03-20 09:10:29 +0000 [info]: reading config file path="/home/ec2-user/cloudmi/streaming/accounting/ph3-etl/td-agent.conf"

Error 2:
In this case Zookeeper itself was down for maintenance.
2015-03-20 07:54:50 +0000 [error]: unexpected error error="response for meth: :get_children, args: [0, \"/brokers/ids\", nil, nil], not received within 30 seconds"
  2015-03-20 07:54:50 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/zookeeper-1.4.10/lib/zookeeper/continuation.rb:117:in `block in value'
  2015-03-20 07:54:50 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
  2015-03-20 07:54:50 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/zookeeper-1.4.10/lib/zookeeper/continuation.rb:107:in `value'
  2015-03-20 07:54:50 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/zookeeper-1.4.10/ext/c_zookeeper.rb:231:in `submit_and_block'
  2015-03-20 07:54:50 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/zookeeper-1.4.10/ext/c_zookeeper.rb:40:in `get_children'
  2015-03-20 07:54:50 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/zookeeper-1.4.10/lib/zookeeper/client_methods.rb:69:in `get_children'
  2015-03-20 07:54:50 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluent-plugin-kafka-0.0.9/lib/fluent/plugin/out_kafka_buffered.rb:39:in `configure'
  2015-03-20 07:54:50 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.12.5/lib/fluent/plugin/out_copy.rb:43:in `block in configure'
  2015-03-20 07:54:50 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.12.5/lib/fluent/plugin/out_copy.rb:32:in `each'
  2015-03-20 07:54:50 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.12.5/lib/fluent/plugin/out_copy.rb:32:in `configure'
  2015-03-20 07:54:50 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.12.5/lib/fluent/agent.rb:127:in `add_match'
  2015-03-20 07:54:50 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.12.5/lib/fluent/agent.rb:60:in `block in configure'
  2015-03-20 07:54:50 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.12.5/lib/fluent/agent.rb:54:in `each'
  2015-03-20 07:54:50 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.12.5/lib/fluent/agent.rb:54:in `configure'
  2015-03-20 07:54:50 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.12.5/lib/fluent/root_agent.rb:82:in `configure'
  2015-03-20 07:54:50 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.12.5/lib/fluent/engine.rb:97:in `configure'
  2015-03-20 07:54:50 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.12.5/lib/fluent/engine.rb:77:in `run_configure'
  2015-03-20 07:54:50 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.12.5/lib/fluent/supervisor.rb:399:in `run_configure'
  2015-03-20 07:54:50 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.12.5/lib/fluent/supervisor.rb:138:in `block in start'
  2015-03-20 07:54:50 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.12.5/lib/fluent/supervisor.rb:266:in `call'
  2015-03-20 07:54:50 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.12.5/lib/fluent/supervisor.rb:266:in `main_process'
  2015-03-20 07:54:50 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.12.5/lib/fluent/supervisor.rb:241:in `block in supervise'
  2015-03-20 07:54:50 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.12.5/lib/fluent/supervisor.rb:240:in `fork'
  2015-03-20 07:54:50 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.12.5/lib/fluent/supervisor.rb:240:in `supervise'
  2015-03-20 07:54:50 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.12.5/lib/fluent/supervisor.rb:134:in `start'
  2015-03-20 07:54:50 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.12.5/lib/fluent/command/fluentd.rb:167:in `<top (required)>'
  2015-03-20 07:54:50 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
  2015-03-20 07:54:50 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
  2015-03-20 07:54:50 +0000 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.12.5/bin/fluentd:6:in `<top (required)>'
  2015-03-20 07:54:50 +0000 [error]: /usr/lib64/fluent/ruby/bin/fluentd:23:in `load'
  2015-03-20 07:54:50 +0000 [error]: /usr/lib64/fluent/ruby/bin/fluentd:23:in `<top (required)>'
  2015-03-20 07:54:50 +0000 [error]: /usr/sbin/td-agent:7:in `load'
  2015-03-20 07:54:50 +0000 [error]: /usr/sbin/td-agent:7:in `<main>'
2015-03-20 07:54:50 +0000 [info]: process finished code=256
2015-03-20 07:54:50 +0000 [error]: fluentd main process died unexpectedly. restarting.
2015-03-20 07:54:50 +0000 [info]: starting fluentd-0.12.5

Expected Behaviour:
Temporary network glitches can occur or brokers could get migrated from one zookeeper to another leading to intermittent downtimes. This should lead to complete Fluentd agent crash. In such scenarios can the retry configuration be used? Or retry forever until issue resolved?

Thank you for using and sorry for inconvenience.
This plugin accesses Zookeeper only fluentd configures, so I will fix brokers are (re)configured in following case;

Starts fluentd
Failed transmitting messages

Thanks a lot @htgc . I will pull in the changes and see whether the fix works.


Running CI workflows after PR merged by the action itself

Current dependencies on/for this PR:

main

PR #186

PR #187   👈

This comment was auto-generated by Graphite.

⏳ This pull request is set to merge as part of a Graphite merge job
Stack job ID: 9zMgd20JGCtQTT05BBaI.
See details on graphite.dev


Time Control Advance Round button

Is your feature request related to a problem? Please describe.
I use PF2E which has some of its own time controls built in, but for a lot of purposes, Simple Calendar's UI is more convenient. There is one exception: If I want to bump time forward by 1 round. Simple Calendar has a setting to select how long a round is, but no simple way to advance by 1 round.
Describe the solution you'd like
On the Time Controls section of Simple Calendar's UI, I'd like the option to advance by 1 round, in addition to the Second/Minute/Hour options
Describe alternatives you've considered
I can currently just click the Second button 6 times (or the 5 and 1, I suppose) or I can open the World Clock window within PF2E's options, but a simple one-click method would be greatly appreciated.

I can look at adding something like this, it makes sense to me.


WithEndpoint shows up on all resources and isn't constrained to IResourceWithEndpoints

This shows an azure storage resource which doesn't support adding endpoints:

I was going to say this is fixed .. but there is another dimension. Storage for example actually implements IResourceWithEndpoints because it returns an EndpointReference which takes an IResourceWithEndpoints in the constructor.

Closing this. I think Azure Storage is a special case but I don't think we can fix this without breaking API. We would need the notion of a resource that has endpoints, but can't mutate them.


Crash on latest version

Hi, did you try V0.6.1 yet? If that one's still crashing, could you provide a list of all the mods you have and attach the debug.log file from when it happened? Thanks for your help with this issue, by the way.

Since there's someone else who probably has the same issue, I'll close this for now. Feel free to reopen if needed.

No prob, thanks for the quick replay (and yeah... I was asleep, sorry). Still testing to determin what could be the problem, but due to uni it will probably take me a bit of time.


Position Indicator Icon

Hello, does anyone have any tips on how to put a current position indicator, similar to google maps that has the blue icon indicating the actually position. And when the user moves the  indicator icon will walk along.

Well, I guess you would use a stream from the gps, and if the lat/lng has changed (which will probably happen if listening to the stream anyway), you can just update the marker coords, and call setState on the map ?

I made a package that does exactly this: https://github.com/synw/livemap

👍 Created an issue to add an example: https://github.com/johnpryan/flutter_map/issues/290

Well, I guess you would use a stream from the gps, and if the lat/lng has changed (which will probably happen if listening to the stream anyway), you can just update the marker coords (actually when I say that, you will probably have to rebuild the marker list each time, rather than update an object), and call setState on the map ?

cool, I was thinking of something like that, using MapPlugin to customize the marker and put it in layers, thanks for the suggestion.

I made a package that does exactly this: https://github.com/synw/livemap

@synw
Show, thanks for the help. Just ask one more thing I do not know if it would be for another topic, but with this icon interacts with the gyroscope, for example, if I turn the device to the side the icon also rotates according to the movement?


Fix optimization backfire for NOT IN

Optimizations convert NOT IN queries to discontinuous ranges. For
example, NOT IN (1, 2, 3) turns into <1 || (>1 && <2) || >3. Queries
with a large number of values in the IN list become slow (or in some
cases generated classes that were too large) as a result of
this. Added a check to convert these ranges back into NOT INs.
Fixes #4434

Superseded by #4565


41-member-session-agent

Stable version of issue #41 for deployment

functional multiple board agents


runners from some organisations do not pick jobs

One of my github organization's runners are not picking up jobs anymore. It started recently.
Runners from my other github organization do pick up jobs, those other runners are running on the same hardware as the runners from the first organization.
The runner which does not pick up the job is shown as Active in the github web UI. And the job it is supposed to pick always show
Job is about to start running on the runner: <runner-name> (organization)

until it times out and fails.
The runner itself doesn't print any logs. For example, freshly restarted runner service logs look like:
Jul 22 07:56:02 <runner-name> systemd[652]: Stopping github-act-runner '<runner-name>'...
Jul 22 07:56:02 <runner-name> systemd[652]: Stopped github-act-runner '<runner-name>'.
Jul 22 07:58:11 <runner-name> systemd[652]: Started github-act-runner '<runner-name>'.
Jul 22 07:58:12 <runner-name> runner[2009977]: Listening for Jobs: <runner-name> ( https://github.com/cppfw )

This problem could be related to #186 , but as it doesn't print any logs it is hard to say.
This could also be a problem on github side.
edit:
I have enabled --trace for the runner and here are the logs it prints when I try to start the job:
Jul 22 08:11:23 stahl runner[2010079]: Http GET Request finished 202 https://pipelinesghubeus2.actions.githubusercontent.com/eMc1GyGdYp1Pn3AIiLBt1AQy39VBhA0ak6WnGv2vWqR163Rx43/_apis/distributedtask/pools/1/messages?api-version=5.1-preview&sessionId=ccdedcca-3a1f-4b20-9bcd-9b5735dcf1aa
Jul 22 08:11:23 stahl runner[2010079]: Headers:
Jul 22 08:11:23 stahl runner[2010079]: Activityid: 5d4c7dab-af15-4080-b761-d700b16a6b3f
Jul 22 08:11:23 stahl runner[2010079]: Cache-Control: no-store,no-cache
Jul 22 08:11:23 stahl runner[2010079]: Content-Length: 0
Jul 22 08:11:23 stahl runner[2010079]: Date: Mon, 22 Jul 2024 08:11:23 GMT
Jul 22 08:11:23 stahl runner[2010079]: Pragma: no-cache
Jul 22 08:11:23 stahl runner[2010079]: Server: Kestrel
Jul 22 08:11:23 stahl runner[2010079]: Strict-Transport-Security: max-age=2592000
Jul 22 08:11:23 stahl runner[2010079]: X-Frame-Options: SAMEORIGIN
Jul 22 08:11:23 stahl runner[2010079]: X-Tfs-Processid: e345953b-a8f5-481b-97b0-3d69274f0908
Jul 22 08:11:23 stahl runner[2010079]: X-Tfs-Session: 0f36162f-2a88-41f9-a349-2eafe42c05a8
Jul 22 08:11:23 stahl runner[2010079]: X-Vss-E2eid: f0f54673-25fb-4b53-b0ac-4b7d0aef3558
Jul 22 08:11:23 stahl runner[2010079]: X-Vss-Senderdeploymentid: a07ab14e-025a-39c3-8d53-788cd7ce207f
Jul 22 08:11:23 stahl runner[2010079]: Body: ``
Jul 22 08:11:23 stahl runner[2010079]: Http GET Request started https://pipelinesghubeus2.actions.githubusercontent.com/eMc1GyGdYp1Pn3AIiLBt1AQy39VBhA0ak6WnGv2vWqR163Rx43/_apis/distributedtask/pools/1/messages?api-version=5.1-preview&sessionId=ccdedcca-3a1f-4b20-9bcd-9b5735dcf1aa
Jul 22 08:11:23 stahl runner[2010079]: Headers:
Jul 22 08:11:23 stahl runner[2010079]: Accept: application/json; api-version=5.1-preview
Jul 22 08:11:23 stahl runner[2010079]: Authorization: bearer eyJ0eXAiOiJKV1<REDACTED-BY-ME>6L89puxacwyeVy3-XjY9cltQ
Jul 22 08:11:23 stahl runner[2010079]: X-TFS-FedAuthRedirect: Suppress
Jul 22 08:11:23 stahl runner[2010079]: X-TFS-Session: 3ccfaec8-71eb-4b25-86a2-2336e3eee847
Jul 22 08:11:23 stahl runner[2010079]: X-VSS-E2EID: 6bd58ec0-c217-4fc6-8449-57c17d9abd2e
Jul 22 08:11:23 stahl runner[2010079]: Body: ``
Jul 22 08:12:14 stahl runner[2010079]: Http GET Request finished 202 https://pipelinesghubeus2.actions.githubusercontent.com/eMc1GyGdYp1Pn3AIiLBt1AQy39VBhA0ak6WnGv2vWqR163Rx43/_apis/distributedtask/pools/1/messages?api-version=5.1-preview&sessionId=ccdedcca-3a1f-4b20-9bcd-9b5735dcf1aa
Jul 22 08:12:14 stahl runner[2010079]: Headers:
Jul 22 08:12:14 stahl runner[2010079]: Activityid: 5d4c2436-af15-4080-b761-d700b16a6b3f
Jul 22 08:12:14 stahl runner[2010079]: Cache-Control: no-store,no-cache
Jul 22 08:12:14 stahl runner[2010079]: Content-Length: 0
Jul 22 08:12:14 stahl runner[2010079]: Date: Mon, 22 Jul 2024 08:12:13 GMT
Jul 22 08:12:14 stahl runner[2010079]: Pragma: no-cache
Jul 22 08:12:14 stahl runner[2010079]: Server: Kestrel
Jul 22 08:12:14 stahl runner[2010079]: Strict-Transport-Security: max-age=2592000
Jul 22 08:12:14 stahl runner[2010079]: X-Frame-Options: SAMEORIGIN
Jul 22 08:12:14 stahl runner[2010079]: X-Tfs-Processid: e345953b-a8f5-481b-97b0-3d69274f0908
Jul 22 08:12:14 stahl runner[2010079]: X-Tfs-Session: 3ccfaec8-71eb-4b25-86a2-2336e3eee847
Jul 22 08:12:14 stahl runner[2010079]: X-Vss-E2eid: 6bd58ec0-c217-4fc6-8449-57c17d9abd2e
Jul 22 08:12:14 stahl runner[2010079]: X-Vss-Senderdeploymentid: a07ab14e-025a-39c3-8d53-788cd7ce207f
Jul 22 08:12:14 stahl runner[2010079]: Body: ``
Jul 22 08:12:14 stahl runner[2010079]: Http GET Request started https://pipelinesghubeus2.actions.githubusercontent.com/eMc1GyGdYp1Pn3AIiLBt1AQy39VBhA0ak6WnGv2vWqR163Rx43/_apis/distributedtask/pools/1/messages?api-version=5.1-preview&sessionId=ccdedcca-3a1f-4b20-9bcd-9b5735dcf1aa
Jul 22 08:12:14 stahl runner[2010079]: Headers:
Jul 22 08:12:14 stahl runner[2010079]: Accept: application/json; api-version=5.1-preview
Jul 22 08:12:14 stahl runner[2010079]: Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1N<REDACTED-BY-ME>Y4s_axzt5R6L89puxacwyeVy3-XjY9cltQ
Jul 22 08:12:14 stahl runner[2010079]: X-TFS-FedAuthRedirect: Suppress
Jul 22 08:12:14 stahl runner[2010079]: X-TFS-Session: aa4e9035-35db-43f8-ae62-3590a0cccd4f
Jul 22 08:12:14 stahl runner[2010079]: X-VSS-E2EID: e023eccf-7f73-4029-ae9e-6f0d253193e9
Jul 22 08:12:14 stahl runner[2010079]: Body: ``

It keeps printing this request-started/request-finished with some interval

actions/runner seems working fine.
Here is the _diag folder after successfully running one job.
diag.zip

@ChristopherHX would it help in analyzing this if I provide you some access to my organization? What kind of access would you need? Like token for adding new runners and a repo in the org to trigger jobs?

I have created a test repo in my org and invited you there as maintainer.
Also, I have added a test runner. Is it safe if I share the jitconfig string right here publicly?
Also, I tested if the runner is added to one repo only, it works. So, I added the test runner to the org to reproduce the problem.

@ChristopherHX  sent the jitconfig string to you by email.

I'm not running the test_runner anymore, so you can start it yourself using jitconfig string I sent you

reverse engineering live :)
no hurry ;)

I have just updated my runners, now it seems working :)! Thanks for quick turnover on this :)

@ChristopherHX do you still need the  test_runner for any further experiments? Or can I remove it?

Oh, looks like they are having a mess there :). Ok, I will remove the test_runner. Thanks again!


Incorrect reference to fetch instead of wrappedFetch

Describe the bug
On this line the reference to fetch was not changed to wrappedFetch and so will still be referencing the environment's fetch.

Oh, good catch @limzykenneth
I'll fix this in the upcoming update

Should be fixed in https://github.com/inlife/nexrender/releases/tag/v1.45.3


Update description in README

Updated to reflect the Abstract Layer Design work.
Hello OmiseGO Plasma Framework! ✨

haha, here is the real README: https://github.com/omisego/plasma-contracts/blob/master/plasma_framework/README.md
We will remove everything outside soon

@boolafish don't worry, we merged the READMEs 😂


chore: add initial multiobjective benchmarking logic

Add initial multiobjective benchmarking logic. This is to support the ongoing development and evaluation of multiobjective methods in Syne Tune.
This is based on the approach taken in benchmarking/examples/benchmark_dehb, re-using existing logic where possible.
New unit test added.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Thanks for the feedback @mseeger, moving this PR back to draft status while I incorporate the feedback

I don't see the recent changes

I don't see the recent changes

Me neither, that's weird. I force-pushed, but I'm still not seeing it show up. I will close this PR and move to https://github.com/awslabs/syne-tune/pull/674 instead


[HUDI-7073] Fix schema projection in file group reader-based parquet file format

Change Logs
As above.  When turning on the file group reader-based parquet file format for MOR snapshot queries, the following exception is thrown in a few tests although ts exists in the schema
2023-11-09T21:08:42.7345689Z - Test Call show_logfile_metadata Procedure *** FAILED ***
2023-11-09T21:08:42.7347213Z   java.lang.IllegalArgumentException: Field ts does not exist in the data schema
2023-11-09T21:08:42.7349324Z   at org.apache.spark.sql.execution.datasources.parquet.HoodieFileGroupReaderBasedParquetFileFormat.$anonfun$generateRequiredSchemaWithMandatory$4(HoodieFileGroupReaderBasedParquetFileFormat.scala:277)
2023-11-09T21:08:42.7407685Z   at scala.Option.getOrElse(Option.scala:189)
2023-11-09T21:08:42.7409315Z   at org.apache.spark.sql.execution.datasources.parquet.HoodieFileGroupReaderBasedParquetFileFormat.$anonfun$generateRequiredSchemaWithMandatory$3(HoodieFileGroupReaderBasedParquetFileFormat.scala:277)

To fix the schema project, we search fields in table schema. Previously we only search the data schema for a field, but
it can also be contained in the partition schema. We add this logic.
Update the manually created schema to match the one created through spark sql.

Impact
Bug fix.
Risk level
low
Documentation Update
N/A
Contributor's checklist

[ ] Read through contributor's guide
[ ] Change Logs and Impact were stated clearly
[ ] Adequate tests were added if applicable
[ ] CI passed

Tests pass based on #10044 which cherry-picks the change in this PR.


center point not calculating properly

I noticed the effect seemed off when using this, so I used higher than normal values to more prominently show how, if the mouse is placed in the center of the element or window both should essentially show the perspective elements all lined up. but its not, the center point is closer to the top left corner of the window.
If you move the mouse pointer all the way to the left and right side of the window, you will notice it rotates more when the cursor is on the right hand side, that also shows that there is more distance between the center point and the right edge than on the left side, it should be even if the point was in the correct center of the window / element.
I setup a code pen to show the effect.
https://codepen.io/oconnalex/pen/xOjpNY/

hmm, your right, thanks for the demo. This was a problem I had before, but I thought I got rid of it. Guess not. I'll take a look into this asap.

I was looking through the code in the jquery.logosDistort.js file trying to figure out a solution and noticed if I removed the '/2' from the following two lines, it works fine.
line 400  return appliedX - (this.center.x/2);
line 404  return appliedY - (this.center.y/2);
Here is a link to a new demo
http://demos.alex-oconnell.com/3dimg/demo.html


run the evaluate.py

problem:
tensorflow.python.framework.errors_impl.InvalidArgumentError: Can not squeeze dim[3], expected a dimension of 1, got 3
the label image`s result is diffrent from tf.image and PIL

Have you solved the problem? I had the same problem

@LiouCZ  Have you solved the problem? I had the same problem

maybe You should add the channel number parameter in the decode_image method of your proccessing.py code
------------------ 原始邮件 ------------------
发件人<EMAIL_ADDRESS>发送时间: 2019年7月30日(星期二) 下午4:29
收件人<EMAIL_ADDRESS>抄送<EMAIL_ADDRESS><EMAIL_ADDRESS>主题: Re: [rishizek/tensorflow-deeplab-v3-plus] run the evaluate.py (#53)
@LiouCZ  Have you solved the problem? I had the same problem
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@LiouCZ  Thank you for your reply. What  about   is  the  result  of  your training?

not good
------------------ 原始邮件 ------------------
发件人<EMAIL_ADDRESS>发送时间: 2019年8月5日(星期一) 上午8:34
收件人<EMAIL_ADDRESS>抄送<EMAIL_ADDRESS><EMAIL_ADDRESS>主题: Re: [rishizek/tensorflow-deeplab-v3-plus] run the evaluate.py (#53)
@LiouCZ  Thank you for your reply. What  about   is  the  result  of  your training?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.


[WIP] Feature/77 notes comments

This is is doubtless going to be handed back as it is mid design - also the design for file upload needs to be reigned in to align with the Gov Uk guidelines

@Koded - is adding a deadline to the actual comment part of this sprint? I have it as an option but I haven't made it carry it through to the comment and format it (jQuery is nasty for templating : ))
If not then please can I have a review on this? I need to set webpack up to bundle javascripts and allow me to require the plugins and make proper controllers but I haven't done that yet

Hi @enginehouse - the deadline functionality is part of story 90, so no, you don't need to complete it as part of 77.
So i'll review...


read-flight ignores IGC hemispheres

The IGC reader in read-flight.ts ignores the latitude and longitude hemispheres in IGC B records, with obvious consequences.

@twpayne thanks for reporting this. the implementation in read-flight.ts was just a quick prototype to allow me to iterate on the scoring code. by now I've extracted a more full-featured IGC files parser into https://github.com/Turbo87/igc-parser and will reuse that from now on. obviously that one works with southern and western coordinates too now 😉


How to update the portal solutions

Please add steps how to update the portal solutions.
I've been searching for the right place in Power Platform admin center but can't find it.

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

ID: 04cc0b33-3121-9e3e-a023-b8dd2163a33c
Version Independent ID: f6b5f40a-deb2-e209-2cb2-3a1ae7f98a67
Content: Upgrade a portal - Power Apps
Content Source: powerapps-docs/maker/portals/admin/upgrade-portal.md
Service: powerapps
GitHub Login: @neerajnandwana-msft
Microsoft Alias: nenandw

Please see Update the Power Apps portal solution


chore: increase api latency bucket to 5 mins

Pull Request Test Coverage Report for Build<PHONE_NUMBER>2
Details

0 of 1 (0.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 30.823%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

pkg/server/server.go
0
1
0.0%

Totals

Change from base Build<PHONE_NUMBER>0:
0.0%

Covered Lines:
7624

Relevant Lines:
24735

💛  - Coveralls


Add continuous integration build that runs the integration tests against production.

This probably needs to be inside Google so we can use the right credentials.

@AVaksman Any news?  Do you need help with this task?

Hmm... I did not mean to unassigned @AVaksman yesterday.  Fixing.

Ahh, when the task is assigned to somebody that is not a contributor it gets immediately unassigned.

For the record, I updated the job configuration on Jenkins.


Single catch

The example shows how to catch a generic exception, how do you just catch one...like just the range_error exception?

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

ID: 3d9ea5ac-beae-be31-375a-45bcdf08c830
Version Independent ID: 58acf6e9-cc30-4b42-9fcd-fe01f5e42e3d
Content: range_error Class
Content Source: docs/standard-library/range-error-class.md
Product: visual-cpp
GitHub Login: @corob-msft
Microsoft Alias: corob

You just catch that exception.
   try
   {
      throw range_error( "The range is in error!" );
   }
   catch (range_error &e)
   {
      cerr << "Caught: " << e.what( ) << endl;
      cerr << "Type: " << typeid( e ).name( ) << endl;
   };

Understanding how to use exception handling in C++ is IMO, beyond the scope of this particular help file.  Maybe under See Also there should be a link to a document on this subject?

Thanks, that's the example i was looking for.
like
https://msdn.microsoft.com/en-us/library/6dekhbbc.aspx
you can add the specific , followed by the generic for a more complete description.
eg
try
  {
     throw range_error( "The range is in error!" );
  }
  catch (range_error &e)
  {
     cerr << "Caught: " << e.what( ) << endl;
     cerr << "Type: " << typeid( e ).name( ) << endl;
  }
catch (exception &e)
  {
     cerr << "Caught: " << e.what( ) << endl;
     cerr << "Type: " << typeid( e ).name( ) << endl;
  };

Out of curiosity, what's the difference between
catch (exception &e)
and
catch ( ... )
I would expect them to be equivalent.

Out of curiosity, what's the difference between
catch (exception &e)
and
catch ( ... )

The first expression catches anything of type exception or types derived from exception. However, you can throw exceptions of any type, not just ones derived from exception. The second expression catches all exceptions not already caught. If you've used the /EHa compiler option, this includes Structured Exceptions. This is almost never a good idea. You should only catch the exceptions you're prepared to handle, and leave the rest alone. If no higher-level code is prepared to catch a particular exception, then it's better to terminate than try to limp along in an unknowable state.


fix no matches found: .data.data[0].payload.data.config

On macos with jq-1.6 :
zsh: no matches found: .data.data[0].payload.data.config
Signed-off-by: Tekin Tian<EMAIL_ADDRESS>

Type of change

Bug fix
New feature
Improvement (improvement to code, performance, etc)
Test update
Documentation update

Description

Additional details

Related issues

@Mergifyio backport main

Thanks @tekintian @ale-linux !
I've forward-ported to release-2.5 and main branches.
Note that our preferred process is for the author to open PRs against main branch, and then the maintainer that merges backports to any desired release branches. This ensures that fixes don't accidentally get missed in future releases.


Adds option in Makefile to check code coverage by unit tests

A new option make check-coverage is added to check code coverage by unit tests. It uses an optional threshold parameter to validate based on required code coverage. The option helps in automation to mandate unit tests and required code coverage for maintaining code quality.

@TrilokGeer thank you for your PR.
We added code coverage reporting as part of our refactor of the Makefiles: https://github.com/cert-manager/istio-csr/blob/main/make/test-unit.mk#L23.


geocoder: add search control

This PR add a search controller which can be used to query for Overture POIs using the Geocode Earth beta release.
I wasn't able to get attribution displaying properly, maybe someone who knows MapLibre better can help there? scratch that, there is an attribution on the search UI
Note: I had to move the 'scroller' to the right (and also down on mobile), not sure how best to handle this?

More info on configuring the autocomplete-element can be found here https://geocode.earth/docs/components/autocomplete-element/


Shapes color swatches not updating when selecting different points

🐛 Bug
As reported by @sofroniewn in #1374 , the color swatches in the points layer are not updating to reflect the currently selected points. I haven't had a chance to investigate, but I think this is likely just a missing event connection in the Shapes qt layer controls.
To Reproduce
Steps to reproduce the behavior:

Run examples/add_shapes.py
Enter selection mode
Click different shapes
The colors in the layer controls should update to reflect the selected point, but they don't.

Expected behavior
When a point is selected, the color swatches in the layer controls should update to match the colors of the selected point.
Environment
napari: 0.3.5.dev14+g02d296b.d20200614
Platform: Darwin-18.7.0-x86_64-i386-64bit
Python: 3.7.7 (default, Mar 10 2020, 15:43:03) [Clang 11.0.0 (clang-1<IP_ADDRESS>)]
Qt: 5.14.1
PySide2: 5.14.1
NumPy: 1.18.1
SciPy: 1.4.1
Dask: 2.12.0
VisPy: 0.6.4
GL version: 2.1 INTEL-12.10.19
MAX_TEXTURE_SIZE: 16384
Plugins:

napari-plugin-engine: 0.1.5
napari-plugins: 0.1.0
svg: 0.1.3

Additional context
This can likely be fixed by copying the events and callback functions related to edge color from the Points layer controls qt file to the Shapes layer controls qt file.

Looks like in 0.3.5 this was working for face color but not edge color. Same is true now - it looks like the fail is edge color swatch specific, face color changes fine. Seems like problem has always been there for edge color

The same thing happens to me still. I can change point shapes in the GUI but not their size or face color

napari: 0.4.12
Platform: Windows-10-10.0.19043-SP0
Python: 3.9.10 (tags/v3.9.10:f2f3f53, Jan 17 2022, 15:14:21) [MSC v.1929 64 bit (AMD64)]
Qt: 5.15.2
PyQt5: 5.15.5
NumPy: 1.21.2
SciPy: 1.7.1
Dask: 2021.10.0
VisPy: 0.9.2
OpenGL:

GL version: 4.6.0 - Build <IP_ADDRESS>64
MAX_TEXTURE_SIZE: 16384

Screens:

screen 1: resolution 1920x1080, scale 1.0
screen 2: resolution 1920x1080, scale 1.0

Plugins:

console: 0.0.4
scikit-image: 0.4.12
svg: 0.1.5

The same thing happens to me still. I can change point shapes in the GUI but not their size or face color

@ViriatoII have you selected the points? It's a little confusing unfortunatley that the points must be selected before you can change their color, but their symbol can be changed at any moment (and all the points change symbol at the same time).
See this video where points get selected first:
https://user-images.githubusercontent.com/6531703/151219071-2191c446-aa2e-424c-8189-8229f5a1e406.mov
Maybe @chili-chiu can follow up if it still doesn't work for you, and maybe @chili-chiu we should update our documentation to make this more clear

see also https://github.com/napari/napari/issues/2353

@sofroniewn  and @chili-chiu , that's it, thank you. The proposed "select all points" button should help. At the moment zooming out to manually select all points is impractical.


time required for grlc to reload new queries

Hi, I just changed my uri's. Github sees the new URI's, but grlc doesn't (by which I mean that if I visit http://grlc.io/api/CLARIAH/wp4-queries-hisco/) I still see the old queries.
Can you add some vague estimate on how long it will take for grlc to 'refresh' or whether this maybe happens just once every 24h?

grlc downloads queries from the https://raw.githubusercontent.com/, and there is some caching going on there. I think it is about 24 hours indeed.
I am guessing that you were trying to update a query more frequently? Was that during a debugging cycle? If so, would a query validation be useful before you push your query to github?

Thanks for the response @c-martinez ! I have added this question as a FAQ to the wiki. (Feel free to remove, if you think it's irrelevant).


UI font display on small screen in Smartphones is too small

Commit 72

You can reference a commit with its hash like this b47e866

@Aetf Thank you.


Two nx tool windows with the same name

I want to use the keyboard more often. But I encountered the problem, that the nx-scematics and the nx-run dialog are both named nx. Therefore I can only differentiate the two by their location in the IDE which requires me to use the mouse.
Is it possible to give them a different name? like "nx: run" and "nx: gen"

Hello, maybe you have installed the two available plugins, nx-webstorm(nx generate) and Nx Console Idea(nx run).
Nx Console Idea provide nx generate integration not in a tool window.
Using nx generate in Nx Console Idea
Open The Run Anything popup opens.
Type nx generate in the search field. As you type, WebStorm shows the matching tasks. Select the required one from the list and press ⏎.

Webstorm will suggest options of selected schematic for your command

you can switch to ui mode anytime by adding --ui option (doesn’t appear as options)

In the editor a UI with the selected schematic will appear. You can fill the options and do a run or dryRun

Generate ui can be shown by right clicking in the explorer context menu. the path you click on will be used as a value for the "path" option.

You are absolutely right, thanks for the clarification :)


does it support version 2.x?

Hey @ambelovsky.
Is it production ready?
Does it support socketio v2?

Yes, SocketIO v2 is supported by this framework.  In all of the examples, I use SocketIO v2 to connect to the server.
This project is new, so it is not yet production ready.  However, I'm very active on the project, and I'm able to address bugs quickly.

Documentation has now been updated with socket.io v2 callout.


Requirement for the data if we train model for a new person, or for a new language.

Thanks for the interesting project. @andabi
I just ran the code and the audio is converted to Kate Winslet, though with some strange noise. I have two further questions for data.

To train a model for a new person, it mentions two hour audio book sentences are needed. I wonder if there is a requirement about the length of each sample, several seconds or a sentence?
For a new language, such as Korean or Chinese, can we still use TIMIT dataset? Or we should use the specific language data set with phoneme labels. If new language data set is needed, how many hours at least?

demo_samples.zip

Maybe it's proper to move the discussions here.
https://github.com/andabi/deep-voice-conversion/issues/59#issuecomment-422668930
https://github.com/andabi/deep-voice-conversion/issues/59#issuecomment-422680151

Hi @sailor88128 , your audio sounds pretty good. I think you should train little more and then convert changing the emphasis, by default is 0.97, try using 1.0, 1.05, 1.2.. to 2. Unfortunately I can't produce audible examples, I think I changed something somewhere that is causing the net 2 goes crazy. Maybe it can be realted to the version of python in the lambda.
I'll try to upload my trained model so you can try.
To support a new languague you need a dataset that contains the speech and its respective phoneme file that contains the time of the each phoneme, a dictionary of the phonemes contained in the phoneme files, you can see it on timit .phn, the for the network 2 you need a considerable amount of audio examples you can get it from here http://www.openslr.org/18/ for chinese.
The you need to adjust the win lenght and hop lenght to fit the chinese phonemes, I don't know if they are similar to the english phonemes.
I wan't to mask an existing tts, I'll try by generating the audio from that tts, build the phoneme file for each wav and play with the parameters. I wish someone could implement net pruning to speed up inference time, that is out of my knowledge.
They are reaching real time on mobile cpu by doing weight pruning https://arxiv.org/pdf/1802.08435v1.pdf

Hi @carlfm01 , thanks for you detailed discussion. For convert.py, the above solution by @CIDFarwin is useful and you can check the audio in tensorboard.
Yes, I've check the .phn files in TIMIT, it seems difficult to find open source Chinese data set with phoneme label. I will try...
Yeah, speeding up the inference is a problem. For a 2second audio, 20+ seconds is needed to convert :(
I'll try your model later~


add productInfoAttr

cons: what if someone use both service sdk and management sdk?
discussed and figure out a better solution: add a method that input a assembly in builder,


Move system test timeout to SystemTestRobot.java.

Also prints regular messages telling user they need to start Webots.

@CoolSpy3, I'm merging this without review because it only involves changes to the system test functionality and it still passes all checks.

@CoolSpy3, I'm merging this without review because it only involves changes to the system test functionality and it still passes all checks.


This module doesn't work when using Typescript Nuxt-ts

FATAL  Cannot read property 'hasAttr' of null                                                                                12:40:04
at _findById (node_modules/@nuxtjs/svg-sprite/lib/plugins/inlineDefs.js:200:15)
at Proxy.exports.fn (node_modules/@nuxtjs/svg-sprite/lib/plugins/inlineDefs.js:60:15)
at node_modules/svgo/lib/svgo/plugins.js:95:27
at Array.forEach ()
at full (node_modules/svgo/lib/svgo/plugins.js:93:13)
at node_modules/svgo/lib/svgo/plugins.js:25:24
at Array.forEach ()
at module.exports (node_modules/svgo/lib/svgo/plugins.js:15:13)
at node_modules/svgo/lib/svgo.js:70:17
at SAXParser.sax.onend (node_modules/svgo/lib/svgo/svg2js.js:169:13)
at emit (node_modules/sax/lib/sax.js:624:35)
at end (node_modules/sax/lib/sax.js:667:5)
at SAXParser.write (node_modules/sax/lib/sax.js:975:14)
at SAXParser.close (node_modules/sax/lib/sax.js:157:38)
at module.exports (node_modules/svgo/lib/svgo/svg2js.js:182:28)
at SVGO._optimizeOnce (node_modules/svgo/lib/svgo.js:64:5)
╭───────────────────────────────────────────────────────╮
│                                                       │
│   ✖ Nuxt Fatal Error                                  │
│                                                       │
│   TypeError: Cannot read property 'hasAttr' of null   │
│                                                       │
╰───────────────────────────────────────────────────────╯
Seems to work on the demo and I replicated the same setup inside our project with the same error, removing the plugin removes the errors.

@farnabaz Is there a chance you could look into this? I looked for alternatives to this package but nothing really comes close and hacking vue-svgicon to work feels like a dirty solution.

@LiamDotPro Sorry for the late response, could you create a reproduction sample?
From the error, it seems that this isn't related to nuxt-ts.

I'm getting an issue like this.
(node:79309) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'split' of undefined
    at fromStringWithSourceMap (/home/derevandal/projects/github.com/derevandal/nuxt-svg-sprite-storybook-example/node_modules/source-list-map/lib/fromStringWithSourceMap.js:15:32)
    at SourceMapSource.listMap (/home/derevandal/projects/github.com/derevandal/nuxt-svg-sprite-storybook-example/node_modules/webpack-sources/lib/SourceMapSource.js:45:10)
    at ReplaceSource.listMap (/home/derevandal/projects/github.com/derevandal/nuxt-svg-sprite-storybook-example/node_modules/webpack-sources/lib/ReplaceSource.js:140:26)
    at CachedSource.listMap (/home/derevandal/projects/github.com/derevandal/nuxt-svg-sprite-storybook-example/node_modules/webpack-sources/lib/CachedSource.js:22:24)
    at ConcatSource.listMap (/home/derevandal/projects/github.com/derevandal/nuxt-svg-sprite-storybook-example/node_modules/webpack-sources/lib/ConcatSource.js:72:18)
    at ConcatSource.proto.sourceAndMap (/home/derevandal/projects/github.com/derevandal/nuxt-svg-sprite-storybook-example/node_modules/webpack-sources/lib/SourceAndMapMixin.js:24:16)
    at CachedSource.sourceAndMap (/home/derevandal/projects/github.com/derevandal/nuxt-svg-sprite-storybook-example/node_modules/webpack-sources/lib/CachedSource.js:58:31)
    at getTaskForFile (/home/derevandal/projects/github.com/derevandal/nuxt-svg-sprite-storybook-example/node_modules/webpack/lib/SourceMapDevToolPlugin.js:65:30)
    at /home/derevandal/projects/github.com/derevandal/nuxt-svg-sprite-storybook-example/node_modules/webpack/lib/SourceMapDevToolPlugin.js:215:20
    at Array.forEach (<anonymous>)
    at /home/derevandal/projects/github.com/derevandal/nuxt-svg-sprite-storybook-example/node_modules/webpack/lib/SourceMapDevToolPlugin.js:186:12
    at SyncHook.eval (eval at create (/home/derevandal/projects/github.com/derevandal/nuxt-svg-sprite-storybook-example/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:14:1)
    at SyncHook.lazyCompileHook (/home/derevandal/projects/github.com/derevandal/nuxt-svg-sprite-storybook-example/node_modules/tapable/lib/Hook.js:154:20)
    at /home/derevandal/projects/github.com/derevandal/nuxt-svg-sprite-storybook-example/node_modules/webpack/lib/Compilation.js:1413:42
    at AsyncSeriesHook.eval [as callAsync] (eval at create (/home/derevandal/projects/github.com/derevandal/nuxt-svg-sprite-storybook-example/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:10:1)
    at AsyncSeriesHook.lazyCompileHook (/home/derevandal/projects/github.com/derevandal/nuxt-svg-sprite-storybook-example/node_modules/tapable/lib/Hook.js:154:20)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:79309) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:79309) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

This example repo is available here: https://github.com/derevandal/nuxt-svg-sprite-storybook-example and https://codesandbox.io/s/nervous-cartwright-t1ng7
I'm getting this error when I ran yarn dev:build (a shortcut for nuxt-ts storybook).
Could you help me @farnabaz ?
Thx <3

@farnabaz np, man! it works! thank you

@farnabaz np, man! it works! thank you


Replace command enums with command flag structs

Lays the groundwork for #47.
cc @ashpil

Thanks! Pretty sure you could trivially add merge/intersect/etc support with the FlagsMixin.

Thanks! Pretty sure you could trivially add merge/intersect/etc support with the FlagsMixin.

I actually did originally attempt this, but it turned out to actually not be so trivial: due to having an uneven number of bits, the command flag structs aren't aligned to a power of two, and thus end up not being able to be @bitCasted as the FlagsMixin methods would require (e.g. issues a compile error concerning the fact that u87 has size 16, but DeviceCommandFlags has size 11, off the top of my head).
One solution to that that I ultimately decided wasn't worth the trouble was adding _reserved_bit{d} fields, but it made the code for re-ifying the Dispatch struct too unwieldy, and added way too much invariant checking in the {}Wrapper code. Since this is generated code, that might be OK, but it would be nice if the code there remained easy enough to refactor, which, this would make it not that.
Also can't align the first field e.g., since that's not allowed in packed structs anymore.
So it's looking like the best bet might be to just re-implement the methods - which I will try to do, but can't guarantee that I'll be very successful. So let's wait on that to merge this.

Thanks a lot for the effort :)


Provide similar "connect" behavior when using explicit many-to-many tables compared to implicit tables

Problem

It would appear that when using explicit many-to-many tables, I am unable to use the connect feature when creating an item since it is required to know both foreign keys to make the "connection". Thus, I would like to be able to emulate the same behavior of an implicit join table when connecting an entity during a model.create() with an explicit join table since you only need to provide the "known" foreign key during creation.
Given the following models defining an explicit table (taken from docs):
model Post {
  id         Int                 @id @default(autoincrement())
  title      String
  categories CategoriesOnPosts[]
}
model Category {
  id    Int                 @id @default(autoincrement())
  name  String
  posts CategoriesOnPosts[]
}
model CategoriesOnPosts {
  post        Post     @relation(fields: [postId], references: [id])
  postId      Int       // relation scalar field (used in the `@relation` attribute above)
  category    Category @relation(fields: [categoryId], references: [id])
  categoryId  Int      // relation scalar field (used in the `@relation` attribute above)
  @@id([postId, categoryId])
}

I would be unable to perform the following create and connect operation since an explicit many to many table requires that you know both foreign keys to make the connection. Here's a sample resolver displaying this issue:
async resolve(_root, args, ctx) {
  const post = await ctx.db.post.create({
    data: {
      title: 'test title'
      categories: {
        connect: {
          postId_categoryId: {
              // I don't know this yet because the post hasn't been created, but typescript requires I add it,
              postId: ???
              categoryId: args.categoryId
          }
        },
      },
    },
  })

For example, if I had an implicit table I could just do:
const post = await ctx.db.post.create({
  data: {
    title: 'my title,
    categories: {
      connect: {
        // this doesn't require the postId but adds it when making the join table
        id: args.categoryId,
      },
    },
  },
})

Suggested solution

Provide the ability to add just the "known" foreign key when connecting an element to a new item, similar to the implicit many to many join tables:
async resolve(_root, args, ctx) {
  const post = await ctx.db.post.create({
    data: {
      title: 'test title'
      categories: {
        connect: {
          postId_categoryId: {
              // only require the "known" id
              categoryId: args.categoryId
          }
        },
      },
    },
  })

What's the status on this? Right now this prevents using create with nested connect for explicit many-to-many with additional fields. Is there any workaround?

Until this is implemented, I found a workaround.
Schema:
model Foo {
  ...
  foos Foo[]
  FooBar FooBar[]
}

model Bar {
  ...
  bars Bar[]
  FooBar FooBar[]
}

model FooBar {
  foo Foo @relation(fields: [A], references: [id])
  A   Int

  bar Bar @relation(fields: [B], references: [id])
  B   Int

  @@id([A, B])  @@map("_FooToBar")
}

It's a mix of explicit and implicit. I'm defining an explicit many-to-many relationship, while mapping it onto the implicit one. This allows me to define additional fields on the junction table, use connect, e.t.c. The only drawback I found so far (apart from the ugly names when working directly with the junction table) is that I have to run prisma db push twice on an empty database. It fails the first time and succeeds the second time. It's not pretty but it will do until this is supported by Prisma.

That's pretty bad, it should be implemented FAST or at least be explicitly written in the doc.
I can confirm that @m1pl's workaround indeed works, but it's a hassle.

one year, anyone knows anything? @janpio

IMHO, this clearly is a bug, not a feature, @pantharshit00. In contrast to many other ORMs which encourage wrapping multiple (dependent) queries into transactions, Prisma's preferred way is using nested writes instead. But that approach is basically broken when working with explicit m:n relationships (which are not that uncommon to begin with).

@janpio I know that you guys are probably busy with other things, but explicit many-to-many relationships are such a basic functionality of an ORM (especially because there's often a need to store additional properties in the linked table or be able to query the linked table directly) that I'd like to bring this issue to your attention again.
The documentation lists explicit many-to-many relationships first, suggesting that this is the preferred way of doing things which will bite users later on when they try to use connectOrCreate with their relations. Would you be so kind to take a stance on this?
Thank you and keep up the good work you're doing with Prisma! :pray:

You should use the method that works best for your application and use case. The order in the docs has no specific meaning besides that one of these needs to come first in the docs in some way or another.
I am not sure what the connection of connectOrCreate is to this issue. It is the first time this term has been mentioned here.

Sorry for mixing in connectOrCreate, but I believe connect and connectOrCreate are both not working as intended or maybe I just don't understand how they're supposed to work. 😉
Here's an example schema defining both, an implicit and explicit relationship between a Post and a Comment:
Schema
// Explicit many-to-many
model Post {
  id         Int                 @id @default(autoincrement())
  title      String
  categories CategoriesOnPosts[]
}

model Category {
  id    Int                 @id @default(autoincrement())
  name  String              @unique
  posts CategoriesOnPosts[]
}

model CategoriesOnPosts {
  postId     Int
  categoryId Int
  post       Post     @relation(fields: [postId], references: [id])
  category   Category @relation(fields: [categoryId], references: [id])

  @@id([postId, categoryId])
}

// Implicit many-to-many
model PostImplicit {
  id         Int                @id @default(autoincrement())
  title      String
  categories CategoryImplicit[]
}

model CategoryImplicit {
  id    Int            @id @default(autoincrement())
  name  String         @unique
  posts PostImplicit[]
}

For the implicit relationship I can do the following:
await prisma.postImplicit.create({
  data: {
    title: 'Post',
    categories: {
      connectOrCreate: {
        create: {
          name: 'myCategory'
        },
        where: {
          name: 'myCategory'
        }
      }
    }
  }
});

Straightforward and does what it says on the tin: It creates a new post and a new category, if there is no category with the name myCategory yet. Otherwise the newly created post is just associated with the already existing category.
Now, If I try to recreate this behaviour with the explicit relationship, I'm unable to use the unique constraint on name for the where condition in connectOrCreate:
await prisma.post.create({
  data: {
    title: 'Post',
    categories: {
      connectOrCreate: {
        create: {
          category: {
            create: {
              name: 'myCategory'
            }
          }
        },
        where: {
            // Only postId_categoryId is available here. Why not the `name` unique constraint?
            // And even when using `postId_categoryId`, I don't know the postId yet, because the
            // post is still in the process of being created.
          }
        }
      }
    }
  })

My use-case might be slighty different, because I have a unique constraint as well that I'd like to base the where-condition on, but even without that, I'd be unable to connectOrCreate (or connect) a category because, like @uncvrd already posted in their initial comment I'd have to specify categoryId and postId, of which the latter I don't know yet.
So it might just be that I'm not understanding how things are supposed to work, but if my example above should in theory be possible, I believe it'd be appropriate to mark this as a bug (not a feature). What do you think, @janpio?

I'm sorry! Right after posting my comment, I realised that I was using the name unique constraint at the wrong level.
The following seems to do the equivalent of the implicit relationship:
await prisma.post.create({
  data: {
    title: 'FooBar',
    categories: {
      create: {
        category: {
          connectOrCreate: {
            create: {
              name: 'myCategory'
            },
            where: {
              name: 'myCategory'
            }
          }
        }
      }
    }
  }
})

So now I'm confused if this is an issue at all… :smile:

So your part of the issue is mostly solved now @soulchild and we might just want to document this some better way?
If so, do you think the rest of the previous comments here are about something else or might also have missed this?

@janpio We hit the original issue as well. I hope we didn't miss some trivial solution, but as far as I remember we couldn't use connect on an implicit many to many relation. I can try it out on Monday, if you don't have time to try it out yourself until then.

This might really be a non-issue, @janpio, because if I restructure @uncvrd's code like this, it probably does what was intended:
const post = await ctx.db.post.create({
  data: {
    title: 'test title',
    categories: {
      create: {          // Always CREATE entry in linking table …
        category: {
          connect: {    // … CONNECTing the new post to some existing category
            categoryId: args.categoryId
          },
        },
      },
    },
  },
})

For me, it helps to think about it this way: It always creates a new association in the explicit linking table, because a new post always has to have an entry there. This entry then connects the newly created post with an already existing category.
Was that what you were trying to do, @uncvrd?

@janpio I can confirm this is not a bug, but a documentation issue.
Assuming the following schema:
model Foo {
  id   Int   @id @default(autoincrement())
  bars Bar[]
}

model Bar {
  id   Int   @id @default(autoincrement())
  foos Foo[]
}

This succeeds:
await prisma.foo.create({
  data: {
    bars: {
      connect: {
        id: 1
      },
    },
  },
});

I change the schema to use an explicit many-to-many relationship:
model Foo {
  id   Int   @id @default(autoincrement())
  bars FooBar[]
}

model Bar {
  id   Int   @id @default(autoincrement())
  foos FooBar[]
}

model FooBar {
  foo   Foo @relation(fields: [fooId], references: [id])
  fooId Int

  bar   Bar @relation(fields: [barId], references: [id])
  barId Int

  @@id([fooId, barId])
}

The previous create fails, but this one succeeds:
await prisma.foo.create({
  data: {
    bars: {
      create: {
        bar: {
          connect: {
            id: 5,
          },
        },
      },
    },
  },
});

connectOrCreate succeeds as well.
I think this difference should be described in more detail in the docs.

@m1pl I'm a beginner on Prisma and I've encountered this issue recently, thank you for your explanation it works.
And yes I agree it's not properly explained in the docs, hard to google as well. Has anyone submitted an issue regarding this issue with the docs yet?
By the way would like to add another to @m1pl example.
This is how to connect with multiple bars
  await prisma.foo.create({
    data: {
      bars: {
        create: [
          {
            bar: {
              connect: { id: 5 }
            },
          },
          {
            bar: {
              connect: { id: 6 }
            },
          },
          {
            bar: {
              connect: { id: 7 }
            },
          },
        ]
      },
    },
  });

  await prisma.foo.create({
    data: {
      bars: {
        create: [
          {
            bar: {
              connect: { id: 5 }
            },
          },
          {
            bar: {
              connect: { id: 6 }
            },
          },
          {
            bar: {
              connect: { id: 7 }
            },
          },
        ]
      },
    },
  });

There a version of this query where you don't create both ends? It's surprisingly confusing for me to just create a foo and connect many bars

This might really be a non-issue, @janpio, because if I restructure @uncvrd's code like this, it probably does what was intended:
const post = await ctx.db.post.create({
  data: {
    title: 'test title',
    categories: {
      create: {          // Always CREATE entry in linking table …
        category: {
          connect: {    // … CONNECTing the new post to some existing category
            categoryId: args.categoryId
          },
        },
      },
    },
  },
})

For me, it helps to think about it this way: It always creates a new association in the explicit linking table, because a new post always has to have an entry there. This entry then connects the newly created post with an already existing category. The confusion might be due to the fact that the implicit many-to-many relationship hides this additional level for us.
Was that what you were trying to do, @uncvrd?

Ahh, got it misunderstood this. I conflated the first level create with making a new category rather than the many to many connection

Still can't figure out how to create say a category and connect to N exiting posts. Would have thought something like this would work:
const cat = await db.category.create({
  data: {
    posts: {
       connect: [...] // list of ids
    }
})


Extra characters when pasting from MS Word

Extra characters appear in editor when pasting content that were copied form MS Word 2013.
Here is the result of paste in Chrome

Some text in MS Word
M �x{�d�

This seems to be an issue with Chrome 50 and it seems to have been fixed in Canary 52.

I suspect this is a duplicate of #181, so closing this ticket; post any other updates to the other ticket. Thanks.


Neovim is now in Debian Stretch

Thanks. I actually don't mind getting edits as comments in https://github.com/neovim/neovim.github.io/pull/136, keeps it all in one place.

merged locally


Fix toc and mobile

TOC plugin was not enabled on site
Mobile/Tablet Vertical Navigation inside a Drawer did not highlight the full row (fixed)
refactored the sidebar style to remove redundant (left/right) and added style variants to support scrollable and sticky use-cases

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 62.557%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1240

Relevant Lines:
1724

💛  - Coveralls


Add infer_datetime_format param to to_datetime calls

Add infer_datetime_format param to to_datetime calls
Closes #218

Adds infer_datetime_format parameter to speed up internal to_datetime calls during type casting and checking if a column is a datetime column or not. Also removes dropna call from col_is_datetime util function which no longer appears to be necessary. This should also improve performance.

As a test to evaluate the performance improvement here, I create a dataframe with 10,000,000 rows and 2 columns: an integer id column and a column with randomly generated datetime strings (stored as object dtype in the dataframe).
Running the code on main, type inference took 22ms to complete. Using the code in this branch, type inference took only about 3ms to complete. Not sure how broadly this applies, but based on this limited test, this does seem to improve datetime inference speed significantly.


Define extended teeracle demo cases

We would like to extend our teeracle demo case to go beyond of trading pairs:
Ideas:

extra storage field for strings
extra storage fields for arbitrary data

Then we could:

Add an extra demo case, which is kind of catchy.
Expand the documentation on how to change the template to do something besides trading pairs.

Discussed with @clangenb
The extended demo will make use of at least one additional oracle such as a weather oracle as stated above by @echevrier.
The extended oracle will use a new more generic structure by adapting the app-libs/exchange-oracle as well as the enclave-runtime/Teeracle to be more accommodating to making generic requests untied to exchange rates.
The long tail goal of the Teeracle demo will be to make it far more configurable either via indirect or direct invocation configuration. For now a clear path to adding additional oracles outside the realm of exchanges is what is required for completion.
Requesting to close from @clangenb if this suffices

Now that I read this again, I suggest that we close it, when we have the demo ready. However, I agree with what has been written. :)
Just a mention, here is the pallet-side PR for this: https://github.com/integritee-network/pallets/pull/109

Agreed!

Done!


Store time consumed into report

The report (yaml...) doesn't include the actual consumed time. It would be handy to store it.
related to #263

This one can be closed; as we're not showing the consumed error budget as time ;  see https://github.com/reliablyhq/cli/issues/263


Fixes issue #74

removed CNAME and .nojekyll from documentation dir

Thanks for submitting this. I will try to look at it ASAP.


HIVE-27543 : Backport of HIVE-24039 : Update jquery version to mitigate CVE-2020-11023 (#1403)

JIRA link : https://issues.apache.org/jira/browse/HIVE-27543

@sankarh @vihangk1 Can you please review and merge this

mrged in branch-3. Thanks @amanraj2520


Glitches after Spacer

Thank you for this perfect tool, I've been looking for such since long. However, after using sporadically (online editor), I've found an issue.
Issue: After a spacer, there might show up a glitch in the rendering. Please compare picture below, red cycle.

The same glitch occurs, when the spacer is moved to an earlier position.
  {name: 'ack', wave: '1...|..10.'},

Maybe this is a feature instead of a bug, the same occurs without spacers:
{ "signal" : [ { "name": "fine", "wave": "1..0.." }, { "name": "documentation gap?",  "wave": "1.100." }, ]}

Obviously  "00" is not the same as "0."
?

I would treat this as a feature rather than a bug.  It's useful to represent glitches (as a real electrical issue, not just a rendering problem) when needed.
Proper visual rendering can be achieved in all cases by using the . ("repeat previous value") command instead of 0 or 1.
Formally documenting this would be good, though.

Documentation PR is welcome


Add missing documentation on adaptiveHeight

I assumed this was missing since it's present on http://kenwheeler.github.io/slick/ but on in the README

Thanks, @engelfrost for helping out! :smile:


Shaka Player 4017 error

Have you read the FAQ and checked for duplicate open issues?: Yes
What version of Shaka Player are you using?: 2.3.3
Can you reproduce the issue with our latest release version?: Im using latest version
Can you reproduce the issue with the latest code from master?:  Yes
Are you using the demo app or your own custom app?: demo app
If custom app, can you reproduce the issue using our demo app?: NA
What browser and OS are you using?: Mac , Chrome
What are the manifest and license server URIs?: https://manifest.prod.boltdns.net/manifest/v1/hls/v5/aes128/5182475815001/261fac78-8dcf-417e-a9c1-47b1e66e873f/10s/master.m3u8?fastly_token=NWFlMjI3ZWRfNWRiNjBiMDlkYWE3MDRmMTM3YWU1M2VlYTAyMGE4ZDc0NzkzZDA0YzY2YWZmOTU1NDJlNzU4ZjdiMmZkYWNhNw%3D%3D
(NOTE: you can send the URIs to<EMAIL_ADDRESS>instead, but please use GitHub and the template for the rest)
(NOTE: a copy of the manifest text or an attached manifest will not be enough to reproduce your issue, and we will ask you to send a URI instead)
What did you do? Loaded the manifest file in custom asset
What did you expect to happen? Play the video
What actually happened? 4017 Error

We didn't account for the possibility that a segment tag like EXT-X-KEY would be in a media playlist but would come before a media playlist tag, like the EXT-X-PLAYLIST-TYPE tag your asset has.
It should be a pretty simple fix. Thanks for the bug report.

Ok, now I'm getting a 4030 (HLS_COULD_NOT_PARSE_SEGMENT_START_TIME) error. The TS file your manifest is fetching seems messed up. I tried to examine it with ffprobe, and ffprobe errored with the message Invalid data found when processing input.

The fix for error 4017 has been cherry-picked for v2.3.6.


pull request for e2e test at 12/30/2016 05:45:12

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


copy cuda_fp16.h

tensorflow/core/util/cuda_kernel_helper.h include cuda_fp16.h.

Starting from TensorFlow 1.11, Windows builds will use Bazel. Therefore, we will drop official support for cmake.

So, close PR.


Unable to expand the view when loading as sub controller

Please help i'm unable to figure out why i'm not able to expand the cell when using the ViewController containing tree view as sub controller of some other controller.
When calling the following method explicitly child cell get displayed but indentation of the cell does not set correctly.
expandRowForItem: expandChildren: withRowAnimation:

Hey,
How do you modify/set indentation of the cells in your project/application? Note that indentation isn't set in the cells by the RATreeView itself. You have to do it manually. You can find how you can achieve that by checking example project - piece of code available at https://github.com/Augustyniak/RATreeView/blob/master/Demo/RATableViewCell.m#L52-L79 should be especially interesting for you.

Thanks for your help, i was facing last issue because i have set margin from the top of the view. When i have changed it to default it started working. I didn't understand this why it happened.
I have set indentation explicitly but it doesn't get updated when i expand row for the first time, when re-expand it again it shows correctly. Can you help me out of this??
Thanks Regards

@guptaankit2190 Can you provide me the code responsible for setting indentation in your project? It would help me to help you. :smile:

Hi,
I have used your code and tweaked as per my need and it works great thanks for the help.
Saturday, 28 November 2015, 7:57 PM +0530 from Rafał Augustyniak<EMAIL_ADDRESS>
@guptaankit2190 Can you provide me the code responsible for setting indentation in your project? It would help me to help you.
—
Reply to this email directly or  view it on GitHub .

Great to hear that :smile: . Closing. Feel free to reopen if necessary.


Remove "Experimental" qualifier

We are no longer "Experimental" and it is a point of confusion

Codecov Report

Merging #262 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #262   +/-   ##
=======================================
  Coverage   66.09%   66.09%
=======================================
  Files          76       76
  Lines        3014     3014
=======================================
  Hits         1992     1992
  Misses        771      771
  Partials      251      251

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 b4c42b9...9256cdd. Read the comment docs.


Start video at a certain position

Maybe the parameter should be renamed to startAt?.

Thanks! Yep, I'd recommend startAt or startPosition instead of seekTo -- I could see folks getting confused by that one.

@brianegan I renamed it.

Thanks again for the contributions :) I'll publish a new version with all your updates


Use cross-browser file upload

Right now mobile versions of the site let you upload any file despite my attempts. Since I'm using Vue it's tempting to pull in a pre-written component that shims these restrictions.

Wrote one in #14 that seems to get the job done for now. Closing for the time being, but I'll have to check if the file type restrictions worked.


[SAMPLES] Adds modified samples

Packages impacted by this PR
Issues associated with this PR
Describe the problem that is addressed by this PR
The current samples will not work if they use CreateOrUpdateAndWait for certain apis. The final state of the Async operations should be read from the location header, but since they are PUT apis they are read from a URI that doesn't exist. Open incident to track this: https://github.com/Azure/azure-sdk-for-js/issues/30793
What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen?
Are there test cases added in this PR? (If not, why?)
Provide a list of related PRs (if any)
Command used to generate this PR:**(Applicable only to SDK release request PRs)
Checklists

[ ] Added impacted package name to the issue description
[ ] Does this PR needs any fixes in the SDK Generator?** (If so, create an Issue in the Autorest/typescript repository and link it here)
[ ] Added a changelog (if necessary)

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


use pytest.raises

Changes
Convert unittest.assertRaises to pytest.raises to appease Ruff.

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#173  👈
#172
#171
#170
#169
#168
#167
#166
#165
#164
#163
#162
#161
#160
#159
#158
#157
#156
#155
#154
master

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

Join @chrisaddy and the rest of your teammates on  Graphite


ollama runpod serverless template

is there an example of deploy a model using an ollama in a runpod serverless ?

@devsaturn I created this blog about doing that.

thank you for your article which really helped me . But cold start is very slow, it downloads the manifest at each request.

thank you for your article which really helped me . But cold start is very slow, it downloads the manifest at each request.

@devsaturn glad to hear. That’s true, however, with their “FlashBoot” option on, I found consecutive requests pretty fast.

@pooyahrtn yep very fast! do you have a stream version ?

@pooyahrtn can we caching model in volume to improve model loading ?

@pooyahrtn i get sometime this error: OCI runtime pause failed: unable to freeze: unknown


Fix address controller deployment order

Ensure that address-space-definitions.yaml is applied before deploying the address controller.
This prevents errors in address controller about the ConfigMap address-space-definitions not being found.

Thanks!


Update strings_uk.arb

@Andygol I just updated it with the "Repost again" new string, could you add that?

@Andygol I just updated it with the "Repost again" new string, could you add that?

@gildaswise
Done


nixos forwardports not working for me

Issue description
I am trying to expose ipfs web admin out over my local network, but when i try to forward the port to localhost where it is listening it doesn't seem to route anything to it. I have worked around the issue by having it listen to the specific interfact i wanted to access it on, but I wasn't sure why this didn't work. attached is my networking.nix file that configuration.nix addresses.
### Steps to reproduce
{ config, lib, pkgs, ... }:
{

  boot.kernel.sysctl = {
    "net.ipv4.conf.all.forwarding" = 1;
    "net.ipv4.conf.default.forwarding" = 1;
  };

  networking.nameservers = [ "<IP_ADDRESS>" "<IP_ADDRESS>" ];

  networking.nat = {
    enable = true;
    internalIPs = [ "<IP_ADDRESS>/24" "<IP_ADDRESS>/24" "<IP_ADDRESS>/24" ];
    internalInterfaces = [ "enp2s0" "enp3s0" "enp4s0" ];
    externalInterface = "eth0";
    forwardPorts = [
      { destination = "<IP_ADDRESS>"; sourcePort = 5001;}
    ];
  };

  networking.firewall = {
     enable = true;
     allowPing = true;
     trustedInterfaces = [ "lo" "enp2s0" "enp3s0" "enp4s0" "tinc.mavericks" ];
     checkReversePath = false;

     allowedTCPPorts =
       [  22 # ssh
         655 # tinc
        4001 # ipfs
        5001 # ipfs
       ];
     allowedUDPPorts =
       [
         655 # tinc
       ];
   };

  networking.interfaces = {
    eth0 = {
      useDHCP = true;
    };
    enp2s0 = {
      ipAddress = "<IP_ADDRESS>";
      prefixLength = 24;
    };
    enp3s0 = {
      ipAddress = "<IP_ADDRESS>";
      prefixLength = 24;
    };
    enp4s0 = {
      ipAddress = "<IP_ADDRESS>";
      prefixLength = 24;
    };

  };

}

Technical details
#  nixos-version
17.03.1769.da2159dafb (Gorilla)
# nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion
"17.03.1769.da2159dafb"
# grep build-use-sandbox /etc/nix/nix.conf
build-use-sandbox = false

The destination should be in the form :.

i also tried [ { destination = "<IP_ADDRESS>:5001"; sourcePort = 5001; } ]

Just replicated this with mpd. You need to specify that the public interface can route to localnets. Add this to sysctl block: "net.ipv4.conf.eth0.route_localnet" = 1;

if i set that i can get in via eth0, but not the other interfaces. I tried setting the same but changing the interface but it still doesnt work

actually i see now that eth0 works even when this isnt set. the internal interfaces dont see it

forwardPorts = [
     { destination = "<IP_ADDRESS>"; sourcePort = 5001;}
];

"<IP_ADDRESS>" does not look line a meaningful destination

right, i realize i had it wrong that a destination must have an address and port. i have corrected that and still have a problem

it looks like with everything set correctly, it will only work on the external interface.  Is there a a reason we dont add those other routes here https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/networking/nat.nix#L43

A possible option would be to add an interfaces option to the forwardPorts rules.

I also tried getting some port forwarding to work with @zimbatm, and it seems it's still broken. I also couldn't find a NixOS VM test to quickly check this. @wkennington, @volth, could you take a look?

I had to add the following iptables rule to make it work
networking.firewall.extraCommands = "iptables -t nat -A POSTROUTING -d <destination_ip> -p tcp -m tcp --dport <destination_port> -j MASQUERADE";

I had to add the following iptables rule to make it work
networking.firewall.extraCommands = "iptables -t nat -A POSTROUTING -d <destination_ip> -p tcp -m tcp --dport <destination_port> -j MASQUERADE";

works for both tcp and udp

@busti , thank you very much. It works for me as well.
My UDP port forwarding configuration is following:
networking = {
    firewall.extraCommands = "iptables -t nat -A POSTROUTING -d <IP_ADDRESS> -p udp -m udp --dport 1194 -j MASQUERADE";
    nat.forwardPorts = [
      {
        proto = "udp";
        sourcePort = 11194;
        destination = "<IP_ADDRESS>:1194";
      }
    ];
}


PowerToys uses the wrong UI language on many places

Microsoft PowerToys version
0.69.1
Installation method
GitHub
Running as admin
No
Area(s) with issue?
General
Steps to reproduce
My system uses English as UI language and German regional settings. A lot of things are shown in German, should be English because that is the chosen UI language.
My concrete settings are:

Windows display language = English (United States)
Preferred languages

German (Germany) (basic typing)
English (Germany) (basic typing)
English (United States) (language pack, basic typing and more)

Region

Country or region: Germany
Regional format: English (Germany)

Runner languages: Actions/Apps are shown correctly in English, but labels and buttons are German:

Settings language: Everything is German, should be English:

✔ Expected Behavior
Every text is displayed in the System UI language
❌ Actual Behavior
Some text (correctly) is displayed the system UI language, some other text (wrongly) is displayed in the Language specified as regional settings.
Other Software
No response

Note: "regional settings" applies to numbers and such. What does the settings for Language > Language > Apps say?

I can't find such a settings. On Windows 11, I have Time & language > Language and Region.

But you are right, it has something to do with the order of "preferred languages". I had put German (basic typing) on top, because I thought it would only be used for keyboard layout and spell checking, not for UI. Didn't read the part about "Microsoft Store Apps will appear in the first supported language". That was unexpected to me, I thought all programs would use the Windows display language and not that there is special handling for Store apps. And actually PowerToys is the first app where I stumble over this.
So it seems the issue is not an issue, my fault, sorry :)

But maybe it should be considered whether or not the Language pack must be installed to be considered as a language to use?

If the language pack is not installed, it seems unlikely that the language is wanted as an UI language. This could result in a language mix if some strings or elements are not coming from the app but from the system.

True. It's a complicated situation. And PowerToys is a package of different modules, built in different (programming) languages and that's not really helping either. In my personal opinion, there's a responsibility for a user to have a look around the settings. And maybe a bit of the OS (settings) to be clear of what setting does what. And then there's the thng about building a complicated app that deals with it...

Seems switching the order from having German on top to English on top has a very negative impact: Now every newly opened window or shell switches my input language (the keyboard layout) to English. I guess this is broken by design in the Windows settings. Why should I have separate languages for Windows UI and Store apps UI at all? And if so, Windows would need to provide a default input language to avoid the conflict that I have here now...

PowerToysSetup-0.56.2-x64 doesn't have this issue. It displays everything in english by default, no settings need changing. It's a shame the program doesn't allow us to manually choose the language.

Even with the workaround applied in version 0.84 I get mixed German and English text.
Give us a way to manually set the language.

Is this still and issue in v0.86? /needinfo

with the latest version I can manually change the language.
this can be closed, thanks!


Just updated to 5.1.5  Ipython broken in debugging mode

What steps will reproduce the problem?

Installed Spyder through anaconda earlier i was using 5.0.0 its absolutely perfect but recently updated to 5.1.5 IPython console not showing debug promt. set breakpoints and start the deug  ipdb promt is not coming up in the Ipython console . it gets stuck at begining of the programme

It seems this is the known issue 5.1.5 has debug issues the following command resolved my problem
conda install -c conda-forge spyder==5.2.2


Fix mirror mode breaking merge bones

Mirror mode being on breaks merge bones by auto deleting or mirroring the armature. We can let the end user merge the other side manually, instead of having them depending on mirror and merging one side and expecting cats to merge the other and/or account for mirror mode.

Please restore the mirror settings back to their original values once done.
And putting this change into set_default_stage does not seem like a good idea, why would it be needed there? If a specific operator needs specific state, temporarily set that state only for that operator. We shouldn't be needlessly messing with settings set by users like this.


FOSUserBundle

Although the FOSUserBundle integration is pretty simple, there is no mention of it in the doc. Could it be added?

Sure! As always PR are welcome.


SuperSource: Set box source from variables

Hi Guys,
Thx for all the great work and evolutions we developped here.
I just have one request about the last update. Is it possible to do the same action as "Set Program input from variables" but for the box sources?
Thx guys

another +1 here.
When building companion pages to select box input assignments in a supersource, you need to have four boxes per supersource since the boxIndex parameter is defined as a dropdown in inputs.ts\ATEMSuperSourceBoxPicker and used in actions.ts.  If instead boxIndex and superSourceIndex were set as text input boxes, internal variables could be used in companion.  This would reduce the number of companion pages needed to accomplish this to a single page.  Input value checking would definitely be advisable to ensure the values are within the range of the device's capabilities, which is currently avoided since the input interface is a dropdown box.
In ActionId.SuperSourceBoxSourceVaraibles (action.ts) this is provided as a textinput so it seems the functionality already exists to support this by substituting the definition in input.ts and adding some simple input checking, so I'm hopeful the change would be quick to make.  I'm not much familiar with node.js so my evaluation could easily be faulty, otherwise I'd provide a code proposal.

The Set box source from variables action already does set from variables.
We don't need to bother with validating the number, as the atem will ignore a command with invalid values.

Is there a value I can place in the "Box #" to change the Art Fill source?


Include section specific products at bottom of Super Categories

https://trello.com/c/JUmt19bf#comment-6668aea5dffb110c940a0c4a
https://trello.com/c/JUmt19bf#comment-66153f7f3924cbd8a081b783

 Super Category Pages


Added PYTHON script for encryption algorithm.

@mbcse pls do review...Thanks.

Merged @pallavisavant , keep contributing!


Proper error message is needed when logout is not supported with SAML2 Federated authenticator

Moved from: https://wso2.org/jira/browse/IDENTITY-7331
Please check code [1]. it throws just an exception without an error message. Debug error is useful.
[1] https://github.com/wso2-extensions/identity-outbound-auth-samlsso/blob/5.1.x/components/org.wso2.carbon.identity.application.authenticator.samlsso/src/main/java/org/wso2/carbon/identity/application/authenticator/samlsso/SAMLSSOAuthenticator.java#L451

Fixed, Hence closing


JS: use more "modern" APIs

So, I had this branch around since March 2020.
Currently, with our target browsers, I think it's safe to make these changes.
Preview: https://deploy-preview-32095--twbs-bootstrap.netlify.app/

I also have https://github.com/twbs/bootstrap/commit/1777e8e03f0041d77cdd879c972aab3e8b050d39 which it might make sense to include it here. Not sure about Safari support, though.


Specify the exact number of decimals to show for vlaues

Hey, I have a sensor group which shows the temperature for my house, but it give me a lso of decimal dumber despite sepcifying it in the group settings:

It would be awesome if the card would either respect this setting or just sepcify decimlals by hand like it is in:
https://github.com/kalkih/mini-graph-card
btw thanks for the awesome card, it rules!

You're right I should handle decimals, will code it asap, and thanks for pointing it out


Needs to tap twice to fire onPress function when keyboard is open

react-native, react and native-base version
react-native: 0.46.4
react: 16.0.0-alpha.12
native-base: 2.3.0
Expected behaviour
When the keyboard is open and a tap on button is performed, the onPress function should be fired immediatly.
Actual behaviour
When a tap on login button cause only the keyboard dismissal and the user have to perform another tap on login button to fire the onPress function.
Steps to reproduce (code snippet or screenshot)
Fill fields and tap on login button without dismiss keyboard.
Is the bug present in both ios and android or in any one of them?
The is present on Android but I've not tested on iOS yet.
Any other additional info which would help us debug the issue quicker.
My component is:
class LoginScreen extends Component<Props, State> {
  static propTypes = {
    isLoggedIn: PropTypes.bool.isRequired,
    isAuthenticating: PropTypes.bool.isRequired,
    actions: PropTypes.shape({
			auth: PropTypes.object
		})
  }

  constructor(props) {
    super(props)

    this.state = {
      username: '',
      password: '',
      error: null
    }

    this._onLogin = this._onLogin.bind(this)
  }

  componentWillUnmount(): void {
    this.setState({
      username: '',
      password: null,
      error: null
    })
  }

  _onLogin = (): void => {
    if (this.isFormValid()) {
      this.props.actions.auth.authenticate(this.state.username, this.state.password)
        .catch((error: Error) => {
          this.setState({
            error: error ? error.message : 'Si e\' verificato un errore.'
          })
        })
    } else {
      // Form validation error
      this.setState({error: 'Specificare username e password.'})
    }
  }

  isFormValid(): boolean {
    this.setState({ error: null })

    if (!this.state.username || this.state.username === '') {
      this.setState({ error: 'Username non valido.' })
      return false
    }

    if (!this.state.password || this.state.password === '') {
      this.setState({ error: 'Password non valida.' })
      return false
    }

    return true
  }

  render(): JSX.Element {
    return (
      <Content padder style={styles.content} contentContainerStyle={styles.contentContainer}>
        <Spinner visible={this.props.isAuthenticating} textContent={'Accesso in corso...'} textStyle={{color: '#FFF'}} />

        <View style={styles.logoContainer}>
          <Image style={styles.logo}
            source={require('../../assets/logo.png')} />
        </View>

        <Form style={styles.form}>
          <Item floatingLabel error={this.state.error ? true : false}>
            Username
            <Input
              value={this.state.username} autoCapitalize='none' autoCorrect={false}
              onChangeText={ (username) => this.setState({ username: username }) } />
          </Item>
          <Item floatingLabel error={this.state.error ? true : false}>
            Password
            <Input
              value={this.state.password} autoCapitalize='none' autoCorrect={false} secureTextEntry
              onChangeText={ (password) => this.setState({ password: password }) } />
          </Item>
        </Form>

        {this.state.error ? (<FormMessage message={this.state.error} />) : null}

        {/* {(Platform.OS === 'android') ? (
          <TouchableNativeFeedback onPress={this._onLogin} background={TouchableNativeFeedback.SelectableBackground()}>
            <View style={styles.loginButton}>
              <Text style={{margin: 30}}>Accedi</Text>
            </View>
          </TouchableNativeFeedback>
        ) : (
          <Button block success style={styles.loginButton} onPress={this._onLogin}>
            <Text>Accedi</Text>
          </Button>
        )} */}
        <Button block success style={styles.loginButton} onPress={this._onLogin}>
          <Text>Accedi</Text>
        </Button>
      </Content>
    )
  }
}

const mapStateToProps = (state: AppState, ownProps: any) => ({
  isLoggedIn: authSelectors.isLoggedIn(state),
  isAuthenticating: stateSelectors.isAuthenticating(state)
})

const mapDispatchToProps = (dispatch: Dispatch<any>) => ({
    actions: {
        auth: bindActionCreators(authActionCreators, dispatch)
    }
})

export default connect(mapStateToProps, mapDispatchToProps)(LoginScreen)

Content is using ScrollView component under the hood. You might want to check this.

@sanketsahusoft Ok but can I set keyboardShouldPersistTaps on Content?

Yes you can.

I've just tried this but:

Is it only a typings error? (I'm using tsx)

@bm-software Use keyboardShouldPersistTaps={'handled'} and will works fine.

@lucianomlima I've tried your solution but the error still exists.
I've solved for now by creating a new file called typings.tsx with missing typings:
import React from 'react'

declare module 'native-base' {
    export class Root extends React.Component<any, any> {}

    namespace NativeBase {
        interface Content {
            keyboardShouldPersistTaps?: string
            keyboardDismissMode?: string
        }
    }
}

I have the same problem, but even with keyboardShouldPersistTaps={'always'} or handled it doesn't work on my case :(!
Here's my code:

<Content style={{ flex: 1 }} keyboardShouldPersistTaps={'always'} >
	<Form style={{ flex: 1 }}>
		<View style={{ flexDirection: "row", flex: 1 }}>
			<Item style={{ flex: 3, marginLeft: 0 }}>
				<CountryPicker
					onChange={value => {
						this.setState({
							cca2: value.cca2,
							callingCode: value.callingCode
						});
					}}
					cca2={this.state.cca2}
					translation="eng"
				>
					<View
						style={{
							flexDirection: "row",
							height: 60,
							marginTop: 20,
							alignItems: "center"
						}}
					>
						{CountryPicker.renderFlag(this.state.cca2)}
						<Text>+{this.state.callingCode}</Text>
					</View>
				</CountryPicker>
			</Item>
			<Item
				floatingLabel
				style={[styles.textInput, { flex: 7 }]}
			>
				Phone Number:
					<Input
						keyboardType={"numeric"}
						value={this.state.phone}
						onChangeText={phone => this.setState({ phone })}
					/>

			</Item>
		</View>
		<Button title={"..."} full onPress={() => this.verify()}>
			{!this.state.buttonIsLoading ? (
				<Text>Verify</Text>
			) : (
				<Spinner color="blue" />
			)}
		</Button>
	</Form>
</Content>

I found the issue, I had another Content as a parent, removing that fixed the issue.

I Have the same problem how can we solve.??

@rammi44 try adding keyboardShouldPersistTaps={'handled'} prop to <Content/> component.

Where do I add, i am using scroll view.. can you explain it

@rammi44
If you are using NativeBase <Content> component use it like this
<Content keyboardShouldPersistTaps={'handled'}>
 .
 .
 .
</Content>

For ReactNative <ScrollView/>
<ScrollView keyboardShouldPersistTaps={'handled'}>
 .
 .
 .
</ScrollView>

Not working for me..
Below is my sample code:
{this.props.IsPickerVisible && <ScrollView keyboardShouldPersistTaps={'handled'} horizontal>
{colors}

+

}

@lucianomlima Set keyboardShouldPersistTaps={'handled'} then
_onButtonClick() {
        Keyboard.dismiss()
}

It works

  <FlatList
    keyboardShouldPersistTaps={'handled'}
    data={filteredDataSource}
    renderItem={renderItem}
    keyExtractor={item => item.id}
  />

keyboardShouldPersistTaps={'handled'}

this props add in scrollview or flatlist  and work just fine.

in case of nested scrollView should i enter this in inner or outer scroll view. The tap response should go to children of inner scrollView

@sanketsahusoft Ok but can I set keyboardShouldPersistTaps on Content?

thank you so much, you've saved my life

I had to added this not only to the closest parent ScrollView but to all other ScrollView's wrappers

  <FlatList
    keyboardShouldPersistTaps={'handled'}
    data={filteredDataSource}
    renderItem={renderItem}
    keyExtractor={item => item.id}
  />

you saved me, thank you !

@rajan-keypress thank you !! perfect answer for my issue

@lucianomlima when set keyboardShouldPersistTaps={'handled'}, the button click works, but keyboard does not dismiss! Who has the same issue?

in this case you can add Keyboard.dismiss() to onPress function

@lucianomlima when set keyboardShouldPersistTaps={'handled'}, the button click works, but keyboard does not dismiss! Who has the same issue?

in this case you can add Keyboard.dismiss() to onPress function

Sorry @zuluHumand but I'm not working with NativeBase nowadays.

@lucianomlima when set keyboardShouldPersistTaps={'handled'}, the button click works, but keyboard does not dismiss! Who has the same issue?

in this case you can add Keyboard.dismiss() to onPress function

Sorry @zuluHumand but I'm not working with NativeBase nowadays.

Keyboard is part of react-native
import {Keyboard} from 'react-native';

Keyboard is part of react-native
import {Keyboard} from 'react-native';

Yeah, but used inside a NativeBase screen componente 🤷🏻♂

Keyboard is part of react-native
import {Keyboard} from 'react-native';

Yeah, but used inside a NativeBase screen componente 🤷🏻♂

done, search a similar method that work for you

Hiii


Mxnet  does not contain any example codes of attention model!

As you can see above in the title. I don't find any attention example codes. I'm a newer for attention model. I wish Mxnet developers or any contributors can provide a notebook for attention model.

@liuzhi136 you can refer to this project:
https://github.com/magic282/MXNMT/tree/next/mxwrap/attention

@liuzhi136 the sockeye seq2seq project (https://github.com/awslabs/sockeye) also contains a couple of attention models.

@fhieber @Ldpe2G thank you for both of you. @fhieber Do you have any attention model paper collections or paper road-map? I want to read them systematically.

This issue is closed due to lack of activity in the last 90 days. Feel free to ping me to reopen if this is still an active issue. Thanks!


Fixes the "wrong" computation of the AP score for newer sklearn versions.

Given that sklearn changed the way AP scores are computed this implements a custom version.
This implementation follows the official Market-1501 computation of the AP.

@lucasb-eyer please have another quick look at this and tell me if you are happy with the naming and the changes, or if there is other feedback so that we can maybe merge this soon.