zipkin-web traces display error

The traces show is out of order :( (Using Golang)

Theoretically it should be like this (Using C#)~

json data generated by the same two languages.

And sometimes, on the first page after clicking Find Traces, Traces time display will be more than 100%

If you click it, you can see

I retrieve all its span of trace Id and parentId, is correct.
My system is working modes:

Custom span data transmitted from the server is converted to zipkin span of json data
Then send json data via HTTP Post method to query server

I do not know zipkin system for json data is sent to the query server must be whether a certain order
Traces of the same order and there may be displayed correctly, there are likely to fail, just like the above two errors :(

Currently the test environment is to use docker deployment.

Can you please post the JSON data here as text, not as images? It's a bit hard to type it in all over again...

ps to get the json, use http://your_host/api/v1/trace/hex_trace_id_here
http://zipkin.io/zipkin-api/#/paths/%252Ftrace%252F%257BtraceId%257D

Thanks Reply
This is unusual Trace picture.

Acquired through this link is json
[{"traceId":"493e8314428aa606","name":"todo","id":"493e8314428aa606","timestamp":1463732526416075,"duration":5998,"annotations":[{"timestamp":1463732526416075,"value":"cs","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"timestamp":1463732526422073,"value":"cr","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"timestamp":1463732526416075,"value":"sr","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"timestamp":1463732526422073,"value":"ss","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}}],"binaryAnnotations":[{"key":"TraceId","value":"493e8314428aa606","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"ParentId","value":"493e8314428aa606","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"CurId","value":"493e8314428aa606","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"StartTime","value":"2016-05-20 16:22:06.416075    UnixTime:1463732526416075","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"EndTime","value":"2016-05-20 16:22:06.422073    tUnixTime:1463732526422074","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}}]},{"traceId":"493e8314428aa606","name":"func2","id":"419606bc1013db96","parentId":"493e8314428aa606","timestamp":1463732526417074,"duration":4000,"annotations":[{"timestamp":1463732526417074,"value":"cs","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"timestamp":1463732526421074,"value":"cr","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"timestamp":1463732526417074,"value":"sr","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"timestamp":1463732526421074,"value":"ss","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}}],"binaryAnnotations":[{"key":"lc","value":"执行Func2","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"TraceId","value":"493e8314428aa606","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"ParentId","value":"493e8314428aa606","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"CurId","value":"419606bc1013db96","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"StartTime","value":"2016-05-20 16:22:06.417074    UnixTime:1463732526417075","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"EndTime","value":"2016-05-20 16:22:06.421074    tUnixTime:1463732526421074","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}}]},{"traceId":"493e8314428aa606","name":"func22","id":"4bc2e66823900abc","parentId":"419606bc1013db96","timestamp":1463732526418074,"duration":2000,"annotations":[{"timestamp":1463732526418074,"value":"cs","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"timestamp":1463732526420074,"value":"cr","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"timestamp":1463732526418074,"value":"sr","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"timestamp":1463732526420074,"value":"ss","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}}],"binaryAnnotations":[{"key":"lc","value":"执行Func22","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"TraceId","value":"493e8314428aa606","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"ParentId","value":"419606bc1013db96","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"CurId","value":"4bc2e66823900abc","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"StartTime","value":"2016-05-20 16:22:06.419074    UnixTime:1463732526419074","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"EndTime","value":"2016-05-20 16:22:06.421074    tUnixTime:1463732526421074","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}}]},{"traceId":"493e8314428aa606","name":"func21","id":"412a17134fba0d19","parentId":"419606bc1013db96","timestamp":1463732526418074,"duration":1000,"annotations":[{"timestamp":1463732526418074,"value":"cs","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"timestamp":1463732526418074,"value":"执行Func21_timerecord","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"timestamp":1463732526419074,"value":"cr","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}}],"binaryAnnotations":[{"key":"lc","value":"e2d1bd62-bbe0-4ce0-a8bc-0fc569120b7c","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"GUID","value":"5a801afa-3ae3-48ae-a0ff-c0b3f32e3542","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"TraceId","value":"493e8314428aa606","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"ParentId","value":"419606bc1013db96","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"CurId","value":"412a17134fba0d19","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"StartTime","value":"2016-05-20 16:22:06.418074    UnixTime:1463732526418075","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"EndTime","value":"2016-05-20 16:22:06.419074    tUnixTime:1463732526419074","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}}]},{"traceId":"493e8314428aa606","name":"func221","id":"4c6c93f2ddf1fbb1","parentId":"4bc2e66823900abc","timestamp":1463732526418574,"duration":1000,"annotations":[{"timestamp":1463732526418574,"value":"cs","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"timestamp":1463732526419574,"value":"cr","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}}],"binaryAnnotations":[{"key":"lc","value":"执行Func221","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"TraceId","value":"493e8314428aa606","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"ParentId","value":"4bc2e66823900abc","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"CurId","value":"4c6c93f2ddf1fbb1","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"StartTime","value":"2016-05-20 16:22:06.420074    UnixTime:1463732526420074","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"EndTime","value":"2016-05-20 16:22:06.421074    tUnixTime:1463732526421074","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}}]},{"traceId":"493e8314428aa606","name":"func3","id":"45266bd2e8b1097d","parentId":"493e8314428aa606","timestamp":1463732526418574,"duration":999,"annotations":[{"timestamp":1463732526418574,"value":"cs","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"timestamp":1463732526419573,"value":"cr","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}}],"binaryAnnotations":[{"key":"lc","value":"执行Func3","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"TraceId","value":"493e8314428aa606","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"ParentId","value":"493e8314428aa606","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"CurId","value":"45266bd2e8b1097d","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"StartTime","value":"2016-05-20 16:22:06.421074    UnixTime:1463732526421074","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"EndTime","value":"2016-05-20 16:22:06.422073    tUnixTime:1463732526422074","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}}]},{"traceId":"493e8314428aa606","name":"func1","id":"4ad3dcac1c362d53","parentId":"493e8314428aa606","timestamp":1463732526418574,"duration":999,"annotations":[{"timestamp":1463732526418574,"value":"cs","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"timestamp":1463732526419573,"value":"cr","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}}],"binaryAnnotations":[{"key":"lc","value":"开始执行Func1","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"lc","value":"结束执行Func1","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"TraceId","value":"493e8314428aa606","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"ParentId","value":"493e8314428aa606","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"CurId","value":"4ad3dcac1c362d53","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"StartTime","value":"2016-05-20 16:22:06.416075    UnixTime:1463732526416075","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"EndTime","value":"2016-05-20 16:22:06.417074    tUnixTime:1463732526417075","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}}]}]
and raw json via HTTP POST:
{"traceId":"493e8314428aa606","name":"Func1","id":"4ad3dcac1c362d53","parentId":"493e8314428aa606","annotations":[{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"value":"cs","timestamp":1463732526416075},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"value":"cr","timestamp":1463732526417074}],"binaryAnnotations":[{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"lc","value":"开始执行Func1"},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"lc","value":"结束执行Func1"},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"TraceId","value":"493e8314428aa606"},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"ParentId","value":"493e8314428aa606"},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"CurId","value":"4ad3dcac1c362d53"},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"StartTime","value":"2016-05-20 16:22:06.416075    UnixTime:1463732526416075"},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"EndTime","value":"2016-05-20 16:22:06.417074    tUnixTime:1463732526417075"}]}
{"traceId":"493e8314428aa606","name":"Func22","id":"4bc2e66823900abc","parentId":"419606bc1013db96","annotations":[{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"value":"cs","timestamp":1463732526419074},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"value":"cr","timestamp":1463732526421074}],"binaryAnnotations":[{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"lc","value":"执行Func22"},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"TraceId","value":"493e8314428aa606"},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"ParentId","value":"419606bc1013db96"},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"CurId","value":"4bc2e66823900abc"},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"StartTime","value":"2016-05-20 16:22:06.419074    UnixTime:1463732526419074"},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"EndTime","value":"2016-05-20 16:22:06.421074    tUnixTime:1463732526421074"}]}
{"traceId":"493e8314428aa606","name":"Func221","id":"4c6c93f2ddf1fbb1","parentId":"4bc2e66823900abc","annotations":[{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"value":"cs","timestamp":1463732526420074},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"value":"cr","timestamp":1463732526421074}],"binaryAnnotations":[{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"lc","value":"执行Func221"},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"TraceId","value":"493e8314428aa606"},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"ParentId","value":"4bc2e66823900abc"},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"CurId","value":"4c6c93f2ddf1fbb1"},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"StartTime","value":"2016-05-20 16:22:06.420074    UnixTime:1463732526420074"},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"EndTime","value":"2016-05-20 16:22:06.421074    tUnixTime:1463732526421074"}]}
{"traceId":"493e8314428aa606","name":"Func21","id":"412a17134fba0d19","parentId":"419606bc1013db96","annotations":[{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"value":"cs","timestamp":1463732526418074},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"value":"cr","timestamp":1463732526419074},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"value":"执行Func21_timerecord","timestamp":1463732526418074}],"binaryAnnotations":[{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"lc","value":"e2d1bd62-bbe0-4ce0-a8bc-0fc569120b7c"},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"GUID","value":"5a801afa-3ae3-48ae-a0ff-c0b3f32e3542"},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"TraceId","value":"493e8314428aa606"},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"ParentId","value":"419606bc1013db96"},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"CurId","value":"412a17134fba0d19"},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"StartTime","value":"2016-05-20 16:22:06.418074    UnixTime:1463732526418075"},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"EndTime","value":"2016-05-20 16:22:06.419074    tUnixTime:1463732526419074"}]}
{"traceId":"493e8314428aa606","name":"ToDo","id":"493e8314428aa606","annotations":[{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"value":"cs","timestamp":1463732526416075},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"value":"cr","timestamp":1463732526422073}],"binaryAnnotations":[{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"TraceId","value":"493e8314428aa606"},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"ParentId","value":"493e8314428aa606"},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"CurId","value":"493e8314428aa606"},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"StartTime","value":"2016-05-20 16:22:06.416075    UnixTime:1463732526416075"},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"EndTime","value":"2016-05-20 16:22:06.422073    tUnixTime:1463732526422074"}]}
{"traceId":"493e8314428aa606","name":"Func3","id":"45266bd2e8b1097d","parentId":"493e8314428aa606","annotations":[{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"value":"cs","timestamp":1463732526421074},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"value":"cr","timestamp":1463732526422073}],"binaryAnnotations":[{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"lc","value":"执行Func3"},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"TraceId","value":"493e8314428aa606"},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"ParentId","value":"493e8314428aa606"},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"CurId","value":"45266bd2e8b1097d"},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"StartTime","value":"2016-05-20 16:22:06.421074    UnixTime:1463732526421074"},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"EndTime","value":"2016-05-20 16:22:06.422073    tUnixTime:1463732526422074"}]}
{"traceId":"493e8314428aa606","name":"Func2","id":"419606bc1013db96","parentId":"493e8314428aa606","annotations":[{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"value":"cs","timestamp":1463732526417074},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"value":"cr","timestamp":1463732526421074}],"binaryAnnotations":[{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"lc","value":"执行Func2"},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"TraceId","value":"493e8314428aa606"},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"ParentId","value":"493e8314428aa606"},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"CurId","value":"419606bc1013db96"},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"StartTime","value":"2016-05-20 16:22:06.417074    UnixTime:1463732526417075"},{"endpoint":{"ipv4":"<IP_ADDRESS>","port":80,"serviceName":"Test001"},"key":"EndTime","value":"2016-05-20 16:22:06.421074    tUnixTime:1463732526421074"}]}

Checking the data flow process, we found the results will be different if the root Span of ParentId to "" (empty string) or "00000000000000."
When the root Span parentId value is "0000000000000000", the display may produce strange errors, such as when the display can not find the root Span, but sometimes is normal.
I do not know whether the original order POST data will affect the final result.

That is correct; if it refers to a parent ID that doesn't exist, the UI logic fails. It recurses through all the spans, and if a parent ID is defined, it tries to find that span. If it's not there, things fail.
We should consider handling that in the UI logic, since it looks like multiple trace implementations get this wrong.

Ps the root span is when the parent is unset. 0 is not a special value (it
is a valid id!).
Please look into your instrumentation and correct it!

5.json is root span data, parent ID is the correct way to set (unset) :)
When there is no post 3.json displayed is normal when other json data post finished, but when the transfer is increased 3.json, produces an error :(, trace data control before the discovery of timestamps have changed
I don't know where an error occurred, hoping to get help, thank you

When you say generated by these languages, can you be more specific? Do you know which libraries are in use (if open source)? Regardless, one of your questions was about timestamps. Zipkin corrects for clock-skew, if you add the query ?raw to your api call, you can see the data without any adjustments.
Ex. http://your_host/api/v1/trace/493e8314428aa606?raw
Sorry the tips are a bit vague. I'm displaced and can't look too deeply into this for a day or two.

Yes,
http: // your_host / api / v1 / trace / 493e8314428aa606?raw
I can see the raw data
I use the library is based on ZipkinTracerModule，it only changed portions of the POST method modified to push to rabbitMQ(using other services for data post), serialized json data has not been modified method.
===============(add the query ?raw to api call data) ================
[{"traceId":"493e8314428aa606","name":"todo","id":"493e8314428aa606","timestamp":1463732526416075,"duration":5998,"annotations":[{"timestamp":1463732526416075,"value":"cs","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"timestamp":1463732526422073,"value":"cr","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}}],"binaryAnnotations":[{"key":"TraceId","value":"493e8314428aa606","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"ParentId","value":"493e8314428aa606","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"CurId","value":"493e8314428aa606","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"StartTime","value":"2016-05-20 16:22:06.416075 UnixTime:1463732526416075","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"EndTime","value":"2016-05-20 16:22:06.422073 tUnixTime:1463732526422074","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}}]},{"traceId":"493e8314428aa606","name":"func1","id":"4ad3dcac1c362d53","parentId":"493e8314428aa606","timestamp":1463732526416075,"duration":999,"annotations":[{"timestamp":1463732526416075,"value":"cs","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"timestamp":1463732526417074,"value":"cr","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}}],"binaryAnnotations":[{"key":"lc","value":"开始执行Func1","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"lc","value":"结束执行Func1","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"TraceId","value":"493e8314428aa606","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"ParentId","value":"493e8314428aa606","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"CurId","value":"4ad3dcac1c362d53","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"StartTime","value":"2016-05-20 16:22:06.416075 UnixTime:1463732526416075","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}},{"key":"EndTime","value":"2016-05-20 16:22:06.417074 tUnixTime:1463732526417075","endpoint":{"serviceName":"test001","ipv4":"<IP_ADDRESS>","port":80}}]}]

thx for following up


I am using mdbootstrap 4.8.5 version in vue app.

This is my index.js file.
import 'jquery/dist/jquery';
import 'popper.js';
import 'bootstrap';
import 'mdbootstrap/js/mdb';
import "./partial/searcher";
import "./partial/home";
import  '@fortawesome/fontawesome-free/js/all';
But i can see follow error.
mdb.js:15937 Uncaught ReferenceError: bsCustomFileInput is not defined
at HTMLDocument.eval (mdb.js:15937)
Can you help me kindly?

Hi @zhenlong1987,
It seems mdbootstrap integrate bs-custom-file-input according to them: https://mdbootstrap.com/docs/jquery/forms/file-input/
Unfortunately, I don't know what are they doing and how.
You should ask help here: https://github.com/mdbootstrap/bootstrap-material-design/issues


'terminus sites create' yeilds stacktrace

Actually it's not the same problem that was described in https://github.com/pantheon-systems/cli/issues/147. Here's the error:
[bwood@mbp tmp]$ ./terminus sites create --product=87774fa4-b570-4300-a693-1c98b61457cd --site=t20-bw0304 --label=t20-bw0304 --org=430c1947-354f-459a-8755-f38293aef105
Creating new Open Berkeley 7 installation ...
Error: [ERROR] Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/titan/yggdrasil/yggdrasil_tasks.py", line 2206, in _trigger
    d.addCallbacks(executeCallback, failureCallback)
  File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 290, in addCallbacks
    self._runCallbacks()
  File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 551, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/lib/python2.7/site-packages/titan/yggdrasil/yggdrasil_tasks.py", line 2168, in executeCallback
    d = defer.maybeDeferred(response, workflow=workflow, task=task, **params)
--- <exception caught here> ---
  File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 134, in maybeDeferred
    result = f(*args, **kw)
  File "/usr/lib/python2.7/site-packages/titan/yggdrasil/yggdrasil_tasks.py", line 1306, in create_site
    if model.metadata['site']['service_level'] == 'free' and model.metadata['site']['holder_id'] == user_id:
exceptions.KeyError: 'site'

Hi @bwood I don't think this has anything to do with the original issue. This error generally means there's an issue with the API. I can't reproduce though so I'm going to run it by the API engineers.

Can you test without the org? Then with the org but without the product? Just trying to narrow down the issue, since I cannot reproduce. I suspect it has something todo with permissions at the API level, but I'm not certain.

Two tests without the org:
[bwood@mbp pantheon]$ terminus sites create --product=87774fa4-b570-4300-a693-1c98b61457cd --site=t20-bw0305 --label=t20-bw0305

  1. None
  2. UC Berkeley - Testing
  3. UC Berkeley
  4. Drupal Distribution Testing

Choose organization: 1
Creating new Open Berkeley 7 installation ...
Error: [ERROR] Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/titan/yggdrasil/yggdrasil_tasks.py", line 2206, in _trigger
    d.addCallbacks(executeCallback, failureCallback)
  File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 290, in addCallbacks
    self._runCallbacks()
  File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 551, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/lib/python2.7/site-packages/titan/yggdrasil/yggdrasil_tasks.py", line 2168, in executeCallback
    d = defer.maybeDeferred(response, workflow=workflow, task=task, **params)
--- <exception caught here> ---
  File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 134, in maybeDeferred
    result = f(*args, **kw)
  File "/usr/lib/python2.7/site-packages/titan/yggdrasil/yggdrasil_tasks.py", line 1306, in create_site
    if model.metadata['site']['service_level'] == 'free' and model.metadata['site']['holder_id'] == user_id:
exceptions.KeyError: 'site'

[bwood@mbp pantheon]$ terminus sites create --product=87774fa4-b570-4300-a693-1c98b61457cd --site=t20-bw0305 --label=t20-bw0305

  1. None
  2. UC Berkeley - Testing
  3. UC Berkeley
  4. Drupal Distribution Testing

Choose organization: 2
Creating new Open Berkeley 7 installation ...
Error: [ERROR] Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/titan/yggdrasil/yggdrasil_tasks.py", line 2206, in _trigger
    d.addCallbacks(executeCallback, failureCallback)
  File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 290, in addCallbacks
    self._runCallbacks()
  File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 551, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/lib/python2.7/site-packages/titan/yggdrasil/yggdrasil_tasks.py", line 2168, in executeCallback
    d = defer.maybeDeferred(response, workflow=workflow, task=task, **params)
--- <exception caught here> ---
  File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 134, in maybeDeferred
    result = f(*args, **kw)
  File "/usr/lib/python2.7/site-packages/titan/yggdrasil/yggdrasil_tasks.py", line 1306, in create_site
    if model.metadata['site']['service_level'] == 'free' and model.metadata['site']['holder_id'] == user_id:
exceptions.KeyError: 'site'

2 tests without the product:
[bwood@mbp pantheon]$ terminus sites create --site=t20-bw0305 --label=t20-bw0305 --org=430c1947-354f-459a-8755-f38293aef105

  1. Awesome Codebase
  2. Backdrop
  3. Community Media Starter Kit
  4. CiviCRM Starter Kit
  5. Commerce Kickstart
  6. DKAN
  7. Drupal 6
  8. Drupal 7
  9. Drupal 8 Beta
  10. Introduction to Theming Basics for Drupal 7
  11. FreakPress
  12. Mukurtu CMS
  13. Open Academy
  14. Open Atrium 2
  15. Open Berkeley
  16. Open Berkeley 7
  17. Open Outreach
  18. OpenAid
  19. OpenIdeaL
  20. OpenPublic
  21. OpenPublish
  22. OpenScholar
  23. Panopoly
  24. Plato Típico
  25. Pushtape
  26. Restaurant
  27. Developer Preview: UC Berkeley Drupal 7
  28. WordPress
  29. Custom Upstream URL

Select one: 16
Creating new Open Berkeley 7 installation ...
Error: [ERROR] Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/titan/yggdrasil/yggdrasil_tasks.py", line 2206, in _trigger
    d.addCallbacks(executeCallback, failureCallback)
  File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 290, in addCallbacks
    self._runCallbacks()
  File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 551, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/lib/python2.7/site-packages/titan/yggdrasil/yggdrasil_tasks.py", line 2168, in executeCallback
    d = defer.maybeDeferred(response, workflow=workflow, task=task, **params)
--- <exception caught here> ---
  File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 134, in maybeDeferred
    result = f(*args, **kw)
  File "/usr/lib/python2.7/site-packages/titan/yggdrasil/yggdrasil_tasks.py", line 1306, in create_site
    if model.metadata['site']['service_level'] == 'free' and model.metadata['site']['holder_id'] == user_id:
exceptions.KeyError: 'site'

[bwood@mbp pantheon]$ terminus sites create --site=t20-bw0305 --label=t20-bw0305 --org=430c1947-354f-459a-8755-f38293aef105

  1. Awesome Codebase
  2. Backdrop
  3. Community Media Starter Kit
  4. CiviCRM Starter Kit
  5. Commerce Kickstart
  6. DKAN
  7. Drupal 6
  8. Drupal 7
  9. Drupal 8 Beta
  10. Introduction to Theming Basics for Drupal 7
  11. FreakPress
  12. Mukurtu CMS
  13. Open Academy
  14. Open Atrium 2
  15. Open Berkeley
  16. Open Berkeley 7
  17. Open Outreach
  18. OpenAid
  19. OpenIdeaL
  20. OpenPublic
  21. OpenPublish
  22. OpenScholar
  23. Panopoly
  24. Plato Típico
  25. Pushtape
  26. Restaurant
  27. Developer Preview: UC Berkeley Drupal 7
  28. WordPress
  29. Custom Upstream URL

Select one: 8
Creating new Drupal 7 installation ...
Error: [ERROR] Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/titan/yggdrasil/yggdrasil_tasks.py", line 2206, in _trigger
    d.addCallbacks(executeCallback, failureCallback)
  File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 290, in addCallbacks
    self._runCallbacks()
  File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 551, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/lib/python2.7/site-packages/titan/yggdrasil/yggdrasil_tasks.py", line 2168, in executeCallback
    d = defer.maybeDeferred(response, workflow=workflow, task=task, **params)
--- <exception caught here> ---
  File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 134, in maybeDeferred
    result = f(*args, **kw)
  File "/usr/lib/python2.7/site-packages/titan/yggdrasil/yggdrasil_tasks.py", line 1306, in create_site
    if model.metadata['site']['service_level'] == 'free' and model.metadata['site']['holder_id'] == user_id:
exceptions.KeyError: 'site'

I get the following only when including the --org flag. When I leave off the --org flag I'm prompted for the value and things work.
Creating new Drupal 7 installation ...
Error: [ERROR] Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/twisted/python/context.py", line 81, in callWithContext
    return func(*args,**kw)
  File "/usr/lib/python2.7/site-packages/titan/yggdrasil/models/tasks.py", line 273, in run
    **self.metadata.get('params')
  File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 134, in maybeDeferred
    result = f(*args, **kw)
  File "/usr/lib/python2.7/site-packages/titan/yggdrasil/yggdrasil_tasks.py", line 3143, in trigger_task
    **params
--- <exception caught here> ---
  File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 134, in maybeDeferred
    result = f(*args, **kw)
  File "/usr/lib/python2.7/site-packages/titan/yggdrasil/yggdrasil_tasks.py", line 1690, in create_site
    membership = memberships.YggdrasilUserOrganizationMemberships(bucket=user_id).retrieve(organization_id)
  File "/usr/lib/python2.7/site-packages/titan/backends/cassandra/collection.py", line 953, in retrieve
    normalized_id = self.normalize_id(model_id)
  File "/usr/lib/python2.7/site-packages/titan/yggdrasil/models/memberships.py", line 530, in normalize_id
    return uuid.UUID(str(model_id))
  File "/usr/lib64/python2.7/uuid.py", line 134, in __init__
    raise ValueError('badly formed hexadecimal UUID string')
exceptions.ValueError: badly formed hexadecimal UUID string

To be precise, this works (but requires undesired manual intervention)
terminus sites create --site=mysite --label=mysite-label --product="Drupal 7"

This doesn't
terminus sites create --site=mysite --label=mysite-label --org="None" --product="Drupal 7"

Dupe of #134.

Whoops, just the last comment is a dupe. Sorry.


Adds my solutions for day 8

I went for super optimized solutions this day. I am not sure how I ended up with my commit for day7 and a merge commit, but there is only 1 file changed.

Alright, doing my best. I'm no expert with Git, need to find out how to get my commit on top of upstream.

Alright, fixed it by resetting and recommitting.


Import of a mat file in HRV tool is causing an error

I am trying to import a mat file in HRV tool but I am unable to do so. I actually converted .dat file to .mat and then tried to import it in the tool but some error is coming and I am unable to resolve it.

Originally posted by @pinanshu in https://github.com/MarcusVollmer/HRV/issues/5#issuecomment-582296711

Dear Pinanshu,
The error is an assignment error caused by a dimension mismatch. I apologize for those circumstances. Currently you need to pass the ECG as a N-by-1 vector in double format to HRVTool.
That means in your case:
ECG1 = double(val(1,:))';

I tried doing what you said. used the command and got data 1*38400 double. But still the same error is coming. I have attached the screenshot of the error and the mat file ant the .dat file also from which I converted it. Cant we just use the dat file in the toolbox as I am unable to convert it in edf format? Please help me. its quite urgent and important for me
s1rem.zip
s0010_re.zip

Dear pinanshu,
you forgot to transpose the vector by using '.
Best,
Marcus


Local data URIs are not supported: atlas

I'm currently trying to load an atlas.png and atlas.json. However both without using this package and with using it, phaser breaks and gives the error: 'Local data URIs are not supported: atlas'.
Webpack requires the files, which is necessary, but it somehow breaks phaser. Does anyone have a clue on how to fix this?

Did you ever find a solution to this?

Are there any updates on this ?


[Feature Request] Bash task to replace/augment common/exec

Is your feature request related to a problem? Please describe.
A common use for the common/exec task is to set cmd: bin/bash and to have the first argument be -c. Instead, provide a task that takes just a script as an argument and runs it as a script. This simplifies expression for the user.
In addition, we can eliminate the need for disableInterpolation; we can determine if versionRecommendedForPromotion has been set or not as part of the processing.
Why is the feature useful for Iter8 users?
Simpler expression. Very common pattern in the task we have created thus far.
Describe the solution you'd like
Introduce common/bash as a new task. It would allow expression as:
  - task: common/bash
    with:
      script: |
        kubectl -n bookinfo-iter8 apply -f {{ .promote }}

Describe alternatives you've considered
There are other options for naming such as common/run. I think being explicit that it is a bash script is probably helpful to the user.
Does this issue require a design doc/discussion? If there is a link to the design document/discussions, please provide it below.
This issue can be for design. Propose to add the task as an experimental task. That is, add it. But not necessarily document it. We can use it, get feedback and refine it (or throw it away).
How will this feature be tested?
Unit tests for creation, validate any interpolation changes.
How will this feature be documented?
Initially, not documented. If promoted from experimental, would document as part of references tasks.

@kalantar {{ .promote }} still comes from version recommended for promotion. Is this correct?
Also, what happens if this task is invoked and there is no version recommended for promotion in the experiment?

I feel this is a significant improvement (in terms of user experience, ease of use and readability) over the existing common/exec task.

@kalantar {{ .promote }} still comes from version recommended for promotion. Is this correct?
Also, what happens if this task is invoked and there is no version recommended for promotion in the experiment?

Good question. The second merits some discussion.
At to the first, yes. {{ .promote }} will come from recommended version. The code now creates the list of tags as follows:
tags := base.NewTags().
	With("this", obj).
	WithRecommendedVersionForPromotion(&exp.Experiment)

In this case, obj is the experiment converted to a map[string]interface{}. Any variables from the version recommended for promotion are also added.   If there is no version recommended for promotion, these are not added.
Instead of implementing a disable interpolation behavior, I chose to go ahead and interpolate. The result is different from the past, "hello {{.name}}" will become "hello " instead of "hello {{.name}}". An alternative template package (text/template instead of http/template) produces "hello <not found>".  I thought that probably the user will have problems in any case.
A user should be able to do something like:
CAN_PROMOTE={{.this.status.versionRecommendedForPromotion}}
if [ -z ${CAN_PROMOTE} ]; then
    exit
fi

@kalantar What is needed in order for this to promoted as non-experimental?
This looks like a fantastic alternative to the current common/exec and it is better if it is documented, so that it can be used in tutorials.

Done.


[release-0.36] migration: generate empty isos on target for cloud-inits, configmaps, secrets, ...

This is a manual (squash and) cherry-pick of https://github.com/kubevirt/kubevirt/pull/6482 and https://github.com/kubevirt/kubevirt/pull/6519
Release note:

VMs with cloud-init data should now properly migrate from older KubeVirt versions

/lgtm


Do not clone stack frames if there's no trap

When running the no_pthread sample, the assert was failing on src->num_elems != 0.
That's because, if the exception is proc_exit, there's no trap (the execution didn't fail, no stack frames).
The problem was not detected in CI because there we build in release mode: https://github.com/bytecodealliance/wasm-micro-runtime/blob/08442458b12244f2cacb2f49573bb84e9433071f/.github/workflows/compilation_on_macos.yml#L328
Should we use debug instead so that we can take advantage of asserts?

When running the no_pthread sample, the assert was failing on src->num_elems != 0. That's because, if the exception is proc_exit, there's no trap (the execution didn't fail, no stack frames).
The problem was not detected in CI because there we build in release mode:
https://github.com/bytecodealliance/wasm-micro-runtime/blob/08442458b12244f2cacb2f49573bb84e9433071f/.github/workflows/compilation_on_macos.yml#L328
Should we use debug instead so that we can take advantage of asserts?

Yes, agree, it should be easier to expose issues, how about using cmake --build . --config Debug --parallel 4 for some other samples?


updating Redis Cache throughput numbers

We have updated the throughput numbers and have added SSL/Non-SSL RPS numbers to the table.

@deepakverma : Thanks for your contribution to the Azure documentation! The author, @wesmc7777, has been notified to review your proposed change.

#sign-off


Cannot generate link for webpage on server

ADD ISSUE DESCRIPTION HERE
Version: 1.70.2
Commit: e4503b30fc78200f846c62cf8091b76ff5547662
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36
Embedder: codespaces

I'm getting this message again and again:
Remote Extension host terminated unexpectedly 3 times within the last 5 minutes.

Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.
Happy Coding!

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


Delete button does not appear on every tab

Shouldn't tabDeleteButton property make tabtab__folder__circCont visible on each tab? It is only visible on the active one.

From your README:

tabDeleteButton: whether each tab show delete button

Hi @kingaiakab, react-tabtab v1 has redesigned api and added new features.
You can try new version now! 🍻


compute_flow.py is reacting to something on a pure black background

I use runwayml to remove the background from a video, compute_flow renders an odd pattern in the black where it should be seeing nothing, i assume its compression artifacts, but i also ran it through after effects rotobrush to strip anything out and it looks the same, if i change the resolution to 2x the video size then nearly the whole frame is white.
ok ive just rendered it out from after effects into uncompressed avi

this is a solid black background, am i doing something wrong here?

There is nothing wrong on your part. RAFT model is far from perfect, so it tries to predict optical flow where there is none, and the diff map are calculated based on that flow. There are several things you can do to eliminate it. You can go to flow_utils.py and remove occlusion mask from the diff calculation of the 79 line like so:
alpha_mask = np.maximum(diff_mask_org * 4, diff_mask_stl * 2)
You may also want to try it like this:
alpha_mask = diff_mask_org * 4
Otherwise you could also try a different model that the RAFT method provides. To do so, you would need to change line 19 of flow_utils.py to one of these:
'model': 'RAFT/models/raft-sintel.pth'
or
'model': 'RAFT/models/raft-kitti.pth'
or
'model': 'RAFT/models/raft-chairs.pth'

If you find out that one of these models works better, please report it here. I haven't tried other models yet.

ill try the models

Raft-sintel is arguably worse by far

raft-kitti is even worse still

raft-chairs looked like it was going to be better but then fell apart

going back to raft-things but removing the occlusion mask

changing the alpha mask to only use the diff_mask_org * 4

i dont see much difference in any method.
is there a better option than using raft? i know it was implemented to reduce VRAM, but is there a more vram expensive method that would yield a better result?

This is very strange that you still has white areas with  diff_mask_org * 4. That tells that there are actual differences between frames that become exaggerated because of multipliers.
Regarding the better flow estimation model, this should work much better: https://github.com/autonomousvision/unimatch but I never worked with this method, so I don't know yet how hard/easy it is to incorporate it to the project.

I can only assume then that the black frames are somehow filled with noise from the compression method, though i assumed uncompressed AVI was, well... uncompressed.
Ill have to look into the frames themselves and see if i can find some difference in the background, ill also look at implementing unimatch, its about time i got some real coding done

ive used ffmpeg to pull the frames out as bmp and the black areas are 100% pure black, frame to frame there is zero data in the black areas.
the only thing i can think is some form of compression
ok, used ffmpeg to put together a file using lib264 and lib264rgb at crf of 0, same thing, there is or should be no variation in the black parts of the image, and yet the optical flow thing is detecting them

Im not python programmer but maybe background subtraction can help you ? https://www.geeksforgeeks.org/python-background-subtraction-using-opencv/

i implemented a background removal during the processing (its not a great implementation due to MOG2 being what is, and i dont recommend its use) however it shows the same effect.
if someone wants to recommend a better method to remove the background im open to listening, it needs testing, but its a start.
https://github.com/volotat/SD-CN-Animation/pull/16

There's this background remover, I don't know if this better : https://github.com/danielgatis/rembg

I'm not python programmer but I asked chatgpt for fix the problem and add in flow_utils.py these lines :
remove white noise
next_flow[np.abs(next_flow) < 3] = 0
prev_flow[np.abs(prev_flow) < 3] = 0

it seems to have fixed the artifacts problem :

Here the complete code :
import numpy as np
import cv2
#RAFT dependencies
import sys
sys.path.append('RAFT/core')
from collections import namedtuple
import torch
import argparse
from raft import RAFT
from utils.utils import InputPadder
RAFT_model = None
def RAFT_estimate_flow(frame1, frame2, device = 'cuda'):
global RAFT_model
if RAFT_model is None:
args = argparse.Namespace(**{
'model': 'RAFT/models/raft-things.pth',
'mixed_precision': True,
'small': False,
'alternate_corr': False,
'path': ""
})
RAFT_model = torch.nn.DataParallel(RAFT(args))
RAFT_model.load_state_dict(torch.load(args.model))

RAFT_model = RAFT_model.module
RAFT_model.to(device)
RAFT_model.eval()

with torch.no_grad():
frame1_torch = torch.from_numpy(frame1).permute(2, 0, 1).float()[None].to(device)
frame2_torch = torch.from_numpy(frame2).permute(2, 0, 1).float()[None].to(device)
padder = InputPadder(frame1_torch.shape)
image1, image2 = padder.pad(frame1_torch, frame2_torch)

# estimate optical flow
_, next_flow = RAFT_model(image1, image2, iters=20, test_mode=True)
_, prev_flow = RAFT_model(image2, image1, iters=20, test_mode=True)

next_flow = next_flow[0].permute(1,2,0).cpu().numpy()
prev_flow = prev_flow[0].permute(1,2,0).cpu().numpy()

# remove white noise
next_flow[np.abs(next_flow) < 3] = 0
prev_flow[np.abs(prev_flow) < 3] = 0

fb_flow = next_flow + prev_flow
fb_norm = np.linalg.norm(fb_flow, axis=2)

occlusion_mask = fb_norm[..., None].repeat(3, axis = -1)

return next_flow, prev_flow, occlusion_mask
def compute_diff_map(next_flow, prev_flow, prev_frame, cur_frame, prev_frame_styled):
h, w = cur_frame.shape[:2]
next_flow = cv2.resize(next_flow, (w, h))
prev_flow = cv2.resize(prev_flow, (w, h))
flow_map = -next_flow.copy()
flow_map[:,:,0] += np.arange(w)
flow_map[:,:,1] += np.arange(h)[:,np.newaxis]
warped_frame = cv2.remap(prev_frame, flow_map, None, cv2.INTER_NEAREST)
warped_frame_styled = cv2.remap(prev_frame_styled, flow_map, None, cv2.INTER_NEAREST)
compute occlusion mask
fb_flow = next_flow + prev_flow
fb_norm = np.linalg.norm(fb_flow, axis=2)
occlusion_mask = fb_norm[..., None]
diff_mask_org = np.abs(warped_frame.astype(np.float32) - cur_frame.astype(np.float32)) / 255
diff_mask_org = diff_mask_org.max(axis = -1, keepdims=True)
diff_mask_stl = np.abs(warped_frame_styled.astype(np.float32) - cur_frame.astype(np.float32)) / 255
diff_mask_stl = diff_mask_stl.max(axis = -1, keepdims=True)
alpha_mask = np.maximum(occlusion_mask * 0.3, diff_mask_org * 4, diff_mask_stl * 2)
alpha_mask = alpha_mask.repeat(3, axis = -1)
#alpha_mask_blured = cv2.dilate(alpha_mask, np.ones((5, 5), np.float32))
alpha_mask = cv2.GaussianBlur(alpha_mask, (51,51), 5, cv2.BORDER_DEFAULT)
alpha_mask = np.clip(alpha_mask, 0, 1)
return alpha_mask, warped_frame_styled

The complete file https://www.file.io/q5f2/download/m3VrmDDImSZM

I need to test on multiples video before for be sure that works well everywhere, also I never made a pull-request but it doesn't seems complicated I can try ^^;

I noticed something weird with my modification when I generate the flow.h5 file the flow preview show a bad result, but then when I use the flow file with "py vid2vid.py" the preview show a good result without artifacts

Is that in addition to the background remover code I suggested or for the original method?
I hadn't considered just removing the noise lol.

The original method

The problem is when there's a sudden change of scene the accuracy of the motions become bad, chatgpt said "To improve the accuracy of flow estimation when sudden scene changes occur, one approach is to use post-processing techniques such as filtering and smoothing. " is it true ? the other solution and to separate all the scenes, it require more work...

I know when I'm doing AI frame interpolation you get bad data around scene changes, it passes the sniff test.
But if a little white noise removal is all that's needed then sure why not, the noise is unlikely to be consistent frame to frame but motion usually lasts more than one frame so noise removal makes sense.

hey, so, funny story... ive been doing some work on this over the last 2 days... made some discoveries...
RAFT shits itself with large areas of solid colour.
If i take a background removed image, and add a checkerboard pattern, most of the noise goes away.
If i add a noise pattern, all of the noise goes away
so it seems that background removal is not actually doing us any favours on its own.
ive played around with noise removal (btw the noise removal needs to be in the estimate flow part of the script rather than the compute diff map, it seems to help with the noise during both the vizualising and the compute diff part so you can see straight away if its going to give you issues.
as for background removal? i would maybe consider stripping it out tbh, the method i put in is so dirty, i did not expect it to be merged tbh, however if you want to keep it, just move the low value noise suggestion into the estimate flow area
`    padder = InputPadder(frame1_torch.shape)
image1, image2 = padder.pad(frame1_torch, frame2_torch)
# estimate optical flow
_, next_flow = RAFT_model(image1, image2, iters=20, test_mode=True)
_, prev_flow = RAFT_model(image2, image1, iters=20, test_mode=True)

next_flow = next_flow[0].permute(1, 2, 0).cpu().numpy()
prev_flow = prev_flow[0].permute(1, 2, 0).cpu().numpy()

#remove low value noise (@alexfredo suggestion)  <----here
next_flow[np.abs(next_flow) < 0.1] = 0
prev_flow[np.abs(prev_flow) < 0.1] = 0

fb_flow = next_flow + prev_flow`

if you want true black areas you need to use WebM, HEVC With Alpha or ProRes4444 with transparency enabled. Every other codec will show compression artifacts in black backgrounds.


Remove everbase

Seems to link to viruses now

@arjunyel Thanks for taking the time to remove it 🗑
Merged 🎉


New Feature link on repository page is broken and have a request for more user friendly FTP

VSCode Version: 1.4.0
OS Version: OSX 10.11.6

This is not so much an issue, more of a feature request. While I along with others enjoy the git integration, the lack of FTP extensions is what makes me have to use other programs to send the files out. I tried the two ftp extensions and their user friendliness is not completely there.
To make this short, would be nice to see a simple ftp extension that you can hit a command or right click and say upload, delete, create, etc and then a small notification saying uploaded. Also maybe a panel or command that shows the current server you are connected to. This is similar to plugins found on Sublime Text and Atom.
If there is a different extension then the ftp sync and ftp simple that produces similar features as to what I described I would gladly check them out.

@AnthonyMichaelc We are happy to receive your feedback and enhance the product. Since you mentioned there are already two extensions in this area, I would suggest to communicate with those extensions via issues about your feedback and make them enhance/improve so that the whole community will get benefit. I think coming up with duplicates won't be a good idea.
So, I would recommend to move this issue to corresponding extension repositories.
Thanks.


Where can I consult roadmap due dates?

Hi,
I've been looking for information about roadmap due dates and I haven't found anything related. In the milestones page (https://github.com/google/shaka-player/milestones) they aren't configured neither. Is there any public page where I can consult release dates? Moreover, where is version 2.5.0 expected to be released? Where can I get more information related with this topic?
Thank you so much.

We have not yet published a roadmap, but I am working on that.  We expect to release v2.5.0 around the end of March.

Good to know! Thank you so much for the information 👍

Hi! Any news about v2.5.0 release date?
Thank you!

@javiSBP for information about the 2.5 release, please consult #1480 (The 2.5 release issue) and #816 (the main issue blocking 2.5).


[BEAM-7305] Fix issues in and extend documentation for Hazelcast Jet Runner

Some new features:

flushing of metrics periodically instead of at job end
option to make ParDo processors cooperative

Plus some bug fixes and documentation improvements.
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

R: @mxm

Run Website PreCommit

Ahh, I finally understand why the above check is failing, will fix it a bit later.

Could you squash at least the spotless fixup commits? I'll merge then.

Sure, I just reasoned that multiple smaller changes would be simpler to review. Coming up!


p2p value?

Is there a specific p2p port to use and peermagic value for the conf file?  using uNOMP.

the p2p port can be defined in the .conf, but by default its 21102

I do use 21102 but uNOMP still throws:
Pool verge Thread # p2p connection failed - likely incorrect host or port
My pool configuration is:
"p2p": {
"enabled": true,
"host": "<IP_ADDRESS>",
"port": 21102,
"disableTransactions": false
},
Thoughts?

have you tried getting rpc calls back from the daemon?

ive definitely set up a unomp for verge before and didnt have an issue. daemon not connected is what id guess

uNOMP shows rpc calls back from the daemon.  It is active and connected as I can mine on the pool.  It's just not connecting to the p2p. Weird.
Going to check to see if there are any firewall issues.

are you using ipv4 or 6? how many peers is the daemon connected to?

Currently re-downloading the blockchain in case there was some corruption somewhere.  It should take a while.  Will let you know.
IPv4

well p2p is working or you wouldnt have connections or be able to sync, so im going to close this. issue must be unomp side.


Feature request (idea): Run pdb_attach non-interactively

I suspect this might go against the main design idea behind pdb_attach (no accident it has attach in its name :) ) but I was wondering if it's possible to debug a running Python module in a scripted fashion.

I have a Python process that's instrumented with the pdb_attach listener and has its 50000 port open.
I have a way to detect if this process is hanging. (1)
I have a way to run arbitrary scripts/commands in the environment it's running in. (2)
But I don't have an interactive shell available (or, the hangup happens occasionally, and at times I am not available to go and debug).

I'd like to have (1) trigger a script, so that in (2) I can run this script that would ask pdb_attach to e.g. talk to the running Python app, and get the stacktraces for threads, the frames, etc. Is it possible?
(to be more clear: I know I can manually attach to this hanging process via python -m pdb_attach <PID> 50000 but that provides an interactive debugger. I'd like a non-interactive way to get debug info. This can be a shell command, a python script, anything that can get info from the hung process and save/print this info for me)

That is a great idea and I'll need to think on it a bit. In the meantime you may be able to adapt the ideas in test/test_end_to_end.py to send commands via a script using the subprocess module instead of interactively.

Oh I see if you run pdb_attach in a Subprocess, and leave the stdin open with a PIPE then you will actually get the stdin of the interactive debug shell, so you can just pipe in python commands to the debugger shell, including detach. That's brilliant. Definitely will get me what I want.
If you just break out that functionality from the end_to_end test and turn it into a function, then add a cmd line flag to the main executable and call that function if the flag is given (after flag validation etc etc) that might just work :)
Thanks so much!!!

I'm glad that will get the job done for you in the meantime. I've been thinking about breaking the __main__.py script into an API, which would be easier to work with for your needs instead of having to pipe in commands to a subprocess.

I released a new version with some basic functionality for client side scripting. See pdb_attach/client.py to see if that covers your needs.


haruna: init at 0.6.1

Motivation for this change
Add package for package request by @colemickens. Closes #119256.
I did play some local and remove videos (https from jellyfin and a youtube video).
Things done

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

[x] NixOS
[ ] macOS
[ ] other Linux distributions

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

/nix/store/a6b7gcn5j4kkqjir4m91k43g28yj7wic-haruna-0.6.1	   1.4G

[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Aw, cool, thanks!


Default .bash_profile script improvements

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm

Why use \. to source files (vs .)?
Why check for the existence of the file instead of just sourcing it - cleaner and throws an error if you don't have the file.
Is the export necessary?

I also don't like how nvm is loaded on startup every time, but that's been covered in other issues.
For reference, here is my current script.

Why use . to source files (vs .)?

Because some people may have aliased the . - see #1278.

Why check for the existence of the file instead of just sourcing it - cleaner and throws an error if you don't have the file.

Because you should be able to delete the file, not be forced to clean up your profile files, and still not see an error.

Is the export necessary?

which export did you have in mind? People might be sourcing nvm.sh multiple times, so for example, NVM_DIR is exported to be shared across those.
As for being loaded on startup every time, if you load with --no-use, it will not be slow, so I'm not sure why else you wouldn't like it being loaded on startup.

@ljharb You're amazingly responsive, thank you!

Because some people may have aliased the . - see #1278.

. vs \.: clarity for new readers trumps individual edge cases IMO but I trust your judgement. I think source could be a decent (clear) alternative. I spent some time making sense of \..

Because you should be able to delete the file, not be forced to clean up your profile files, and still not see an error.

But why? Is it because beginners may not know how to edit their profile if they uninstall nvm?

which export did you have in mind? People might be sourcing nvm.sh multiple times, so for example, NVM_DIR is exported to be shared across those.

I'm not familiar with why/how that works, will let that one go.

As for being loaded on startup every time, if you load with --no-use, it will not be slow, so I'm not sure why else you wouldn't like it being loaded on startup.

I saw you mention --no-use previously but I guess I didn't fully understand how it works, updated my script!

source could be a decent (clear) alternative

source is not an alternative because it's not available in POSIX - ie, in all the shells nvm supports.

But why? Is it because beginners may not know how to edit their profile if they uninstall nvm?

it's easy to uninstall nvm by simply deleting the file; forcing additional work (to track down where the line(s) are that source nvm) doesn't seem particularly valuable. How would making this change help you?

Why isn't there a built-in command to upgrade nvm (I had to write one myself)?

See #400.

Why doesn't the README mention --no-use?

Primarily that I only added it as a result of npm config get prefix being slow; and it's not something I want the majority of users using. At some point I'll be able to speed it up, and then nobody would need any workarounds. I suppose I'd accept a PR adding it to the readme.

RE: sourcing nvm

I want alerts of sourcing issues on login, but leaving as is works.

RE: nvm upgrade

I've decided to risk installing nvm via homebrew, I think the README could be more clear as to why brew isn't supported. I like that it keeps track of all my installed software and updates automatically (I run the updates often).

RE: --no-use PR

I'll give it a shot!

Definitely do not install nvm via homebrew; one because then I won't support any issues you have with it, but also because as you update nvm with homebrew, you'll wipe out your node installs every time. Never install software except via an official distribution mechanism (nvm installs node from the only official mechanism, nodejs.org).
You can certainly edit your profile file to remove the file existence check.

PR: #1839
Can you explain more about wiping out installs? I think you're assuming that I'm leaving NVM_DIR unchanged, which I'm not. Checkout brew info nvm:

nvm: stable 0.33.11, HEAD
Manage multiple Node.js versions
https://github.com/creationix/nvm
/usr/local/Cellar/nvm/0.33.11 (7 files, 138.6KB) *
Built from source on 2018-06-16 at 23:46:19
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/nvm.rb
==> Options
--HEAD
Install HEAD version
==> Caveats
Please note that upstream has asked us to make explicit managing
nvm via Homebrew is unsupported by them and you should check any
problems against the standard nvm install method prior to reporting.
You should create NVM's working directory if it doesn't exist:
mkdir ~/.nvm
Add the following to ~/.bash_profile or your desired shell
configuration file:
export NVM_DIR="$HOME/.nvm"
. "/usr/local/opt/nvm/nvm.sh"
You can set $NVM_DIR to any location, but leaving it unchanged from
/usr/local/opt/nvm will destroy any nvm-installed Node installations
upon upgrade/reinstall.
Type nvm help for further information.
Bash completion has been installed to:
/usr/local/etc/bash_completion.d

I tried uninstalling and reinstalling nvm and my .nvm folder remained unchanged (aliases and versions folders). Was able to use my previously installed node versions without any issues.
By "official source", I think your implying that I'm putting my trust in homebrew and therefore at risk that they're tampering with their distributions. Agreed, but it's super convenient.

I wasn't aware there was a way out of the default destructive behavior, TIL.
There's a very large number of bugs filed where users' problems magically vanish when they install nvm properly instead of with homebrew. Obviously you can use it if you like, but I can assure you it won't remain convenient for long.
Are there any other questions to answer? Thanks for filing #1839; otherwise I think I've answered all your questions :-)

Glad I could add some value re: brew! Will monitor any brew related issues.
No more questions. You're awesome, thank you!

There's some solid discussion on stack exchange re: checking for existence of file before sourcing it. Hope it's ok I used nvm example and quoted you.


UUID in debug and release mode is different

Bug Report
Problem
What is expected to happen?
UUID is the same when debug and release cause that's uuid of device, doesn't have any thing relative to the app
What does actually happen?
In development, build debug, release, they have different UUID, is this valid ?
Environment, Platform, Device
Environment: Linux
Platform: Android
Device: Xiaomi Mi 8 Lite
Version information
Everything is latest
SDK 26 (OREO)
Checklist

[x] I searched for existing GitHub issues
[x] I updated all Cordova tooling to most recent version
[x] I included all the necessary information above

This doesn't seem to be a bug, but rather an expected behavior: unfortunately UUIDs may change between app installs (which you perform when you switch between debug and release).
References for iOS: StackOverflow, Apple docs
References for Android: StackOverflow, Android docs

Thank you @ericgopak for investigating and providing links to relevant documentations. It does appear that this is the expected behaviour.
I think the Cordova documentation is out-dated:

The details of how a UUID is generated are determined by the device manufacturer and are specific to the device's platform or model.

I believe this may be remnants of how UUIDs worked on Android Pre API 26, where the UUIDs were essentially completely based on signing key so as long as the same signing key, you had the same UUID. Since Google Play requires API >= 29 (Effective November), I think we can update our documentation. PRs are welcome for anybody willing to make this change.

This has been documented, so closing
https://github.com/apache/cordova-plugin-device#android-quirk


[SPARK-26598] Fix HiveThriftServer2 set hiveconf and hivevar in every sql

JIRA Issue:https://issues.apache.org/jira/browse/SPARK-26598
What changes were proposed in this pull request?
https://github.com/apache/spark/pull/17886, this pr provide that hiveserver2 support --haveconf  and --hivevar。But it set hiveconf and hivevar in every sql in class SparkSQLOperationManager，i think this is not suitable。So i make a little modify to set --hiveconf and --hivevar in class SparkSQLSessionManager, it will only run once in open HiveServer2 session, instead of ervery sql to init --hiveconf and --hivevar
How was this patch tested?
Manually run the tests against minikube as usual.

@wangtao605 Could you resolve the conflict?

@cxzl25 Could you take this over?

@wangyum  ok, I will submit pr later.

Issue resolved by pull request https://github.com/apache/spark/pull/25722


depreciated whisper link in pod transciber

hey the link used in  pod_transcriber
has a depreciated
 pip_install(
        "https://github.com/openai/whisper/archive/9f70a352f9f8630ab3aa0d06af5cb9532bd8c21d.tar.gz",

which gives error while transcribing audios ,so instead to installing from this you can simply use
pip_install(
        "git+https://github.com/openai/whisper.git",

which is working perfectly

Thanks for pointing this out! Updated example :)


AOAF- Allow MUD to be null for overseas submissions

Put a condition for overseas submission
add a new method  validateMadeUpDateForOverseas to validate MUD for oversea submission
update the request test classes.

CI: Security warnings found!

CI: Security warnings found!

CI: Security warnings found!


RFC - add extended grid

Add tablet and desktop specific breakpoints by using the existing grid mixin.
Example:

I would like comments on:
The outputted class names –

 (We will need to modify the grid mixin if we want to change where the -one-quarter part of the class name is)
If the outputted CSS increases the bundle size too much – Are there any other options?
If it's right to only provide tablet / desktop breakpoint overrides and continue to have mobile default to 100% wide

I like the idea of this but prehaps just have s, m, l would keep the class names shorter and be non-device specific.

Hey @dankmitchell - Appreciate the comment :)
At the moment these are linked to the how breakpoints are defined in GOV.UK Frontend everywhere so it's not something I can change for the extended grid alone.
As the SCSS is written mobile first, these breakpoint specific grid classes need to override the default (mobile) declaration. I did originally consider break point specific grid classes for mobile too but there seems to less of a use case for multiple columns at that size. The need we've addressed is really around how things behave on the tablet breakpoint. Replicating how the SCSS is structured my suggestion would be that most of the time you would actually only be defining breakpoint specific classes for desktop as the existing classes would work for mobile and tablet as they do now.
Totally agree about the length of the class names, I thought it might be best to keep the same format as the normal grid classes as they would be used together most of the time. The only part of the name that is fixed is based on the grid-widths map

Thanks for looking into this Dave – seems like a great addition 👍
In answer to your specific questions:

The outputted class names –

 (We will need to modify the grid mixin if we want to change where the -one-quarter part of the class name is)

I don't object to the class names as they are, but I think if we were writing this from scratch then swapping the width and the breakpoint (govuk-grid-column--one-quarter-at-desktop) would be more natural?
We could also consider using @ to denote a 'responsiveness' suffix – as suggested here – main advantage IMO would be that it 'stands out' so you can tell from the 'shape' of the class it does something different, without having to read it. But, like our use of the ! prefix, it might need escaping in the CSS?

If the outputted CSS increases the bundle size too much – Are there any other options?

For reference, this adds around 0.1kb (9.113 after - 8.965 before) gzipped or 2.1 kb (77.1 after - 74.976 before) to the dist build. I think that's acceptable… but we could choose to include it as a separate file in the objects folder so that service teams have the option of selectively including only the 'basic' grid without getting these extra classes, if they don't need them.

If it's right to only provide tablet / desktop breakpoint overrides and continue to have mobile default to 100% wide

I guess there's nothing stopping us from adding these later if we see demand for them?

This seems like a good change, and I'm 👍 to getting it in.
Alternatives could be exploring using CSS Grid for more advanced layouts with a simple fallback to our standard grid.

@36degrees I agree the class name would be better the other way around. Negative of that would be that it's a breaking change to the current grid mixin.
@nickcolley After conducting the experiments with CSS Grid and Flexbox options and presenting to the team (you were elsewhere I remember) there was real barriers in terms of how we would actually roll out a CSS Grid based solution. I'd love to do it but this allows the majority of the functionality that people are currently missing without much work.

We're going to test this proposal in context of the patterns that prompted this RFC, which'll give us the confidence that this solves the problems we think it will.

I think this has been superseded by #1094 – @dashouse are you happy for me to close this?


zh_CN 1.1.8 update

Adds some missing and new strings & fixs some keys that I spelt wrong.
However, there is an issue which I need help on: some tags aren't getting translated:

tags "Mining Enchantable" and "Mining Looting Enchantable" translations aren't applied (probably why they were left untouched in the previous commit);
tag "Enchantables" isn't present in en_us.json, and uhh... I didn't manage to guess its key.

I believe these tags are vanilla tags and are translated by neoforge and fabric. I will merge what you have however.


apt-get vs apt-cache

could apt-get search be corrected as apt-cache search?

Fixed in previous releases.


timing out? chrome developer render process gone

Any way to adjust this? It keeps popping up with the error and forcing me to restart, I am trying from a dump (it's huge 42K), so will run for 5-10 minutes and bail
Debugging connection was closed..
I have the window open in it's own window I can see it's incrementally going through the tweets, it's not sleeping or losing a connection that I can tell.
Maybe there is a timeout i can set? But so far everything seems to be working :)

I am having this same issue when it hits around 16k tweets deleted. The error I receive is "Debugging connection was closed. Reason: Render process gone. Reconnect when ready by reopening DevTools."
It doesn't appear that restarting it picks up where it left off which is a bummer.

As it says in the message, try closing & reopening the DevTools windows (F12 normally).
You can retrieve your previous script by pressing the arrow up key in the console window & hit Enter.
If that doesn't work, restarting the browser, and setting up the script again should.

No, why do you think that is the solution. Sure we can start over, we have the script, but it's going to start on the same script and time out again, doing the same thing over and over again is a sign of something :)

Every delete is an actual delete normally. In my case, I could see tweets disappear from my personal timeline as it was running.
You can track what it's doing in the network tab. The delete requests are visible there. If the header values are correct, they should succeed (response should be a 2xx status code).
Also set the unretweet value to true. This deletes retweets as well.


package.json exports when using moduleResolution node16

When using moduleResolution: "node16" in tsconfig.json, the current package.json exports are not enough and TypeScript complains with:

Could not find a declaration file for module 'single-spa-react'. '.../node_modules/single-spa-react/lib/esm/single-spa-react.js' implicitly has an 'any' type.
Try npm i --save-dev @types/single-spa-react if it exists or add a new declaration (.d.ts) file containing declare module 'single-spa-react';

I manually edited your package.json in the node_modules folder and this config makes the error go away.
{
  "exports": {
    ".": {
      "import": {
        "types": "./types/single-spa-react.d.ts",
        "default": "./lib/esm/single-spa-react.js"
      },
      "require": {
        "types": "./types/single-spa-react.d.ts",
        "default":"./lib/cjs/single-spa-react.cjs"
      }
    },
    "./parcel": {
      "import": {
        "types": "./types/single-spa-react.d.ts",
        "default": "./lib/esm/parcel.js"
      },
      "require": {
        "types": "./types/single-spa-react.d.ts",
        "default":"./lib/cjs/parcel.cjs"
      }
    },
    "./package.json": "./package.json"
  }
}

Hi, what's the progress?
I see there was a PR raised, but for what reason it's not yet merged?

Hi, thank you for reporting the issue.
We are waiting for additional changes before merging the PR.

I have opened a pull request #197 that will solve the problems. Feel free to help with testing it.


Figure out CORS Policy Issues in Chrome

The images in showPath.html show up in Firefox, but there are errors in Google Chrome, even after changing CORS settings in AWS. An example of the error I get in Chrome:
'Access to Image at 'https://s3.us-east-2.amazonaws.com/rpigooglecardboard/360Video2/48.jpg' from origin 'http://localhost:8000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8000' is therefore not allowed access.'
The CORS settings in AWS are currently set so they should allow the GET method from any origin.
Update: fixed some settings in S3 bucket, and added crossorigin="anonymous" to image tags, which mostly fixed the issue, but occasionally I still get the error, usually when I've just updated something.

The general solution is to obtain am key from S3 bucket by writing a function in any program that requests file accessing from AWS. Since this is hard to implement right now, I have set bucket, CORS configuration and other permission to public. Although it is not safe and everyone can read or write files, we keep it up to demo on Dec, 1 and may switch to RPI server in the future.


Add phishing/spam site

<IP_ADDRESS> 10eurodisconto.com got in my mailbox claiming a 50€ bonus, I recommend adding it to the blacklist

Closing this @1alessandro1 because this isn't a threat.  Someone sent a marketing email to you.  That's fine, it's not illegal, it's not bad, just someone tempting recipients via email.
We are not in the business of taking companies down from the internet.  We don't have a legal team here to do that and defend against pushback from that..
We just block their vectors for serving adds and malware and other things.


bp-modbus-client not found

After I upgraded it looked like this
Alpine Linux 3.19

Node-RED:~# node-red
13 Jun 22:14:44 - [info]

Welcome to Node-RED
===================

13 Jun 22:14:44 - [info] Node-RED version: v3.1.10
13 Jun 22:14:44 - [info] Node.js  version: v20.12.1
13 Jun 22:14:44 - [info] Linux 6.8.4-2-pve x64 LE
13 Jun 22:14:45 - [info] Loading palette nodes
13 Jun 22:14:47 - [info] Settings file  : /root/.node-red/settings.js
13 Jun 22:14:47 - [info] Context store  : 'default' [module=memory]
13 Jun 22:14:47 - [info] User directory : /root/.node-red
13 Jun 22:14:47 - [warn] Projects disabled : editorTheme.projects.enabled=false
13 Jun 22:14:47 - [info] Flows file     : /root/.node-red/flows.json
13 Jun 22:14:47 - [info] Creating new flow file
13 Jun 22:14:47 - [warn]

---------------------------------------------------------------------
Your flow credentials file is encrypted using a system-generated key.

If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.

You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
---------------------------------------------------------------------

13 Jun 22:14:47 - [info] Server now running at http://<IP_ADDRESS>:1880/
13 Jun 22:14:47 - [warn] Encrypted credentials not found
13 Jun 22:14:47 - [info] Starting flows
13 Jun 22:14:47 - [info] Started flows
13 Jun 22:15:25 - [info] Installing module: @bitpoolos/edge-modbus, version: 1.5.8
13 Jun 22:15:46 - [info] Installed module: @bitpoolos/edge-modbus
13 Jun 22:15:46 - [info] Added node types:
13 Jun 22:15:46 - [info]  - @bitpoolos/edge-modbus:bp-device
13 Jun 22:15:46 - [info]  - @bitpoolos/edge-modbus:bp-reader
13 Jun 22:15:46 - [info]  - @bitpoolos/edge-modbus:bp-decoder
13 Jun 22:15:46 - [info]  - @bitpoolos/edge-modbus:bp-display
13 Jun 22:15:46 - [info]  - @bitpoolos/edge-modbus:bp-modbus-io-config
13 Jun 22:15:46 - [info]  - @bitpoolos/edge-modbus:bp-modbus-client : Error: Cannot find module 'underscore'
Require stack:
-<EMAIL_ADDRESS>-<EMAIL_ADDRESS>-<EMAIL_ADDRESS>-<EMAIL_ADDRESS>-<EMAIL_ADDRESS>- /usr/local/lib/node_modules/node-red/lib/red.js
- /usr/local/lib/node_modules/node-red/red.js

I found the solution I need to install
npm install underscore

Sorry

Hi Miguel
Thank you for posting the resolution, we were unable to replicate locally, but will look into this occurrence with this new information.

Thank you for this solution. I found it after hours of troubleshooting. I'm new to NodeRed and have installed it on Proxmox


Redesign relations chaining

Hi all, I need you opinion on redesigning of chaining relations for querying.
The current way of doing this:
db.user.profile // it's a profile query

// load all profiles of users who are on Bahamas
db.user.where({ country: 'Bahamas' }).profile

db.user.select({
  profile: (q) => q.profile, // selecting user profile

  // chaining a nested relation
  baz: (q) => q.foo.bar.baz,
})

// load related record when you already have data
const userProfile = await db.user.profile(userData)

This is a perfection imo, the simplest possible way.
But it needs to be changed because it's missing the fact that relation names can conflict with query method names, as it was brought up by Kenji in https://github.com/romeerez/orchid-orm/issues/337.
db.orderItem.order // is this a relation "order" or the `order` query method?

To solve the problem, I want to drop the chaining completely, and introduce a function instead.
If someone ever would want to contribute, the simplest solution would simplify the internal code, because the chaining is based on JS proxies and is full of tricks and workarounds.
Let's name it rel, maybe you could criticize this name and suggest a better one. But I like it to be short.
// current: db.user.profile
db.user.rel('profile')

db.user.where({ country: 'Bahamas' }).rel('profile')

db.user.select({
  profile: (q) => q.rel('profile'),

  // chaining a nested relation:
  baz: (q) => q.rel('foo').rel('bar').rel('baz'),

  // probably possible, not sure yet:
  baz: (q) => q.rel('foo', 'bar', 'baz'),
})

A different function would serve to load a related record based on already loaded data.
How about naming the function for this case queryRel?
// instead of: db.user.profile(userData)

const userProfile = await db.user.queryRel('profile', userData)

// maybe relBy? - for "load relation by this data".
const userProfile = await db.user.relBy('profile', userData)

Hoping for your ideas and suggestions.
Also wondering how do you feel about this quite significant breaking change.

Ouch, I really like the current expressive API.

I like the current API, too, maybe we can do some research on how other ORMs handle this conflict.

Honestly I didn't know db.user.profile API even existed (after all, if I need a profile I would query db.profile directly), but I'm using db.user.select({ profile: (q) => q.profile }) all the time, and somehow it also never occurred to me that there was an obvious naming clash.
However, if q.rel('profile') not only helps to prevent naming clashes but also somehow simplifies internals or typings, I'm +1 for the change. Either way, I'm personally good with any decision, keep it or change it.
By the way, what if it's implemented as q.relations.profile? This will be in line with relations = { ... } in the table class, it reads simpler, and it'll be slightly simpler to update the code base. The current relation query accessors are already properties and not methods, so it's not getting slower either (I guess it's using dynamic getters?)

So far I'm thinking to keep the existing syntax in select, and make a change in other places that you might even didn't know existed. select is most used, so let's keep it shortest. something: (q) => q.order doesn't make sense in select.
There are also other similar callbacks: in where, join, and in couple of other places. It should be fine to keep it consistent and keep it without changes in the callbacks.
But db.orderItem.order would definitely be a query method for ORDER BY, not the order relation of "order item", so for this case I'm going to add rel: db.orderItem.rel('order').

Honestly I didn't know db.user.profile API even existed

Basically, it's "where exists" the other way around: db.user.profile === db.profile.whereExists('user') (with a a possibility to add where in both cases to user or to profile).

By the way, what if it's implemented as q.relations.profile?

Maybe, but I'd like it to be more compact.

That's a reasonable compromise. I also never knew you could dot into relations of relations.

Done, here are docs with examples for new queryRelated and chain methods. Updated breaking changes.
// BEFORE
const author = await db.author.find(1);
const books = await db.author.books(author);

// AFTER
const author = await db.author.find(1);
const books = await db.author.queryRelated('books', author);

// BEFORE
const books = await db.author.find(1).books;

// AFTER
const books = await db.author.find(1).chain('books');

In the select it stays the same for 1 level of relations:
await db.author.select({
  // load all author books
  books: (q) => q.books,
});

But requires chain when need 2 or more levels:
await db.author.select({
  // load all reviews for all author books
  booksReviews: (q) => q.books.chain('reviews'),
});

Naming is damn hard...

@mordechaim feedback and ideas are welcome, confused emojis are confusing.


Secret Keys can be queried from terminal client side

Currently, there's nothing preventing me from calling
orion.config.get('AWS_API_SECRET') and getting the secret key. The secret key should not be able to be requested if they do not have correct privileges or if they aren't logged in.

Check without been logged in with a admin account

@nicolaslopezj I did, when logged out and on an incognito window they are being displayed when they shouldn't.

I fixed it in this PR https://github.com/orionjs/orion/pull/211

It was an issue with the fields query where it was including non public fields.

Wow, this is a big bug. I will update immediately

Hey @nicolaslopezj, there was actually a bug in my fix that will cause mongo to error out if you mix public and private keys. This PR https://github.com/orionjs/orion/pull/212 fixes that problem, let me know if you have questions.

Don't worry, I fixed it.

Awesome, nice catch.


Update logic to correctly consume CBR service profile module.

With this latest CBR release, need to update logic here and here to consume CBR service profile module to support serviceRef zone creation with location.

:tada: This issue has been resolved in version 1.2.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


create_node populates the children_d array incorrectly.

Heyo,
just a quick clarification, and possible a bug report.
children_d seems to have no documented order.
From what I could tell, and from how I've always used it, it was a depth-first search result array thing.
It's really helpful, and if that is the intended order, then there's a bug in _parse_model_from_json.
Specifically here.
When you concat children nodes to the list, you concat them in a depth first pattern, but the wrong kind of depth first pattern.
It's concatenating it in a post-depth first pattern, and not pre-depth first.
As in it's adding the children of a node, before adding the node.
This leads to some inconsistent children_d arrays.
We ran into this problem when copying a node.
We're using jstree's buffer functionality. (copy, paste, etc)

If you copy Folder 1, and then copy it to Drive, and listen to the copy_node event that is fired, you'll see the children_d array contains out of order data.

I might be wrong, but you might be able to fix it by just concatenating the children elements first.
https://github.com/vakata/jstree/blob/master/src/jstree.js#L2291
tmp.children_d = tmp.children.concat(tmp.children_d);

As I was trying to make this jsFiddle, I think I came across another bug.
http://jsfiddle.net/2Jg3B/1951/
I could just be doing something incorrect, but I'm trying to copy Child 1 to Drive and it's failing with "Moving parent inside child".
If you change the j1_2 id to one of the sub-ids such as j1_3, it works without issue.

Ok, so I finally got the jsfiddle working: http://jsfiddle.net/2Jg3B/1961/
Weirdly, it does show consistent behaviour.
Not what I thought, as it does in fact use a post-depth pattern, whereas I expected it to be pre-depth.
But all of that doesn't matter, I only expected that because one the nodes was post-depth.
But as long as it's consistent, it's fine.
But that means that the original node loses its order.
I inserted the test code into our system, and we get back something like:
https://gist.github.com/Jezza/93e3eb05934ab4df7e41e1686ab49d00
As you can probably see, the order in the jsfiddle is:
Item
Child 3
Item
Child 3
Whereas the log we're getting back is something akin to:
Item
Child 3
Child 3
Item
We don't write to the children_d array, and the only place we read it is during the copy_node event.

children_d has no particular order - do not expect or reply on it to have one.

Well, then if I can't rely on it, I need some way to identify nodes.
Right now, I have to resort to manually copying the data from source node to target node, as I lose all information.
function cp_data(source, target) {
    data.instance.get_node(target).data = jQuery.extend(true, {}, data.instance.get_node(source).data);
};
cp_data(data.original, data.node);
for(i = 0, j = data.original.children_d.length; i < j; i++) {
    cp_data(data.original.children_d[i], data.node.children_d[i]);
};

I remember you being the one to tell me to use children_d, as I needed to copy the data.
A simple idea would be to give us access to this filter: https://github.com/vakata/jstree/blob/master/src/jstree.js#L4298
no_data: true is the thing stopping it from working.

Sorry - I should have clarified - when copying the two nodes will have their children_d arrays in exactly the same order, but it is not a defined order. So it is safe to use that property when copying.

Ok, then that must mean there's a bug somewhere, because if I print out the children_d of data.node and data.original, they do differ.

I see, sorry for closing then. Can you provide a demo where copying the node results in different children_d arrays? I can not help based on the raw output you provided in the gist.

Closing this because I can not reproduce - will reopen if new data is available.

Sorry, I've been a bit busy.
We ended up fixing this by just altering jstree.
I'll revert the change and see what I information I can get.

Alrighty, after poking around, I've narrowed the bug down to create_node.
http://jsfiddle.net/2Jg3B/2002/

Sweet.
Glad I could help.

Sorry for the long delay. I hope this fixes the issue.


Added colab badge.

Taking a cue from here. If this renders well on the docsite, will add badges to other tutorial notebooks as well. Addressing #94 .

Codecov Report

Merging #96 into master will decrease coverage by 0.59%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master      #96      +/-   ##
==========================================
- Coverage   51.39%   50.80%   -0.60%
==========================================
  Files          60       60
  Lines        1827     1805      -22
==========================================
- Hits          939      917      -22
  Misses        888      888

Flag
Coverage Δ

#unittests
50.80% <ø> (-0.60%)
:arrow_down:

Impacted Files
Coverage Δ

mantisshrimp/core/bbox.py
63.26% <0.00%> (-4.01%)
:arrow_down:

mantisshrimp/metrics/metric.py
53.33% <0.00%> (-2.92%)
:arrow_down:

...antisshrimp/metrics/coco_metric/reference_utils.py
19.28% <0.00%> (-2.00%)
:arrow_down:

mantisshrimp/metrics/coco_metric/coco_metric.py
37.83% <0.00%> (-1.64%)
:arrow_down:

mantisshrimp/models/mantis_rcnn/mantis_rcnn.py
44.44% <0.00%> (-0.87%)
:arrow_down:

mantisshrimp/core/mask.py
81.81% <0.00%> (-0.80%)
:arrow_down:

mantisshrimp/core/category.py
85.00% <0.00%> (-0.72%)
:arrow_down:

mantisshrimp/parsers/parser.py
93.75% <0.00%> (-0.19%)
:arrow_down:

mantisshrimp/parsers/splits.py
95.65% <0.00%> (-0.19%)
:arrow_down:

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 296a635...6722546. Read the comment docs.

Thanks for the PR!
Last time I tried this it showed the image but it was not clickable, let's see what happens

So yeah, I rolled back on using just a link again. A using an html ref correctly displays the image but it's not clickable

Yeah just checked for some reason it's not clickable 🤔. Yes we should stick with the link, it serves the purpose atleast. Keep the issue open though.


How can i remove initial screen. it's stuck for user's screen for long.

How can i remove initial screen. it's stuck for user's screen for long.
i want to avoid installing screen. Only need restart prompts to show to user.

That particular screen is from this feature... you can disable it.
https://github.com/Macjutsu/super/wiki/Updates-and-Upgrades#install-non-system-updates-without-restarting


Common submit button

Motivation and context
Closes #34

Added generic <SubmitButton /> component that supports

custom label
i18n
loading
additional ButtonProps

Added sample api endpoint /api/timeout

fixed timeout 1.5 sec
randomly returns 200 or 400
input payload as response
success: boolean in the response

Added simple fetching mechanism on /login page to fake the login

shows success or error snackbar alert
show loading state to the new <SubmitButton />

Screenshots:
https://user-images.githubusercontent.com/893608/107700767-a1dbf680-6cc0-11eb-9fd7-1819491c4556.mp4

Merging this one as the review is pending for 2 days


4297 Update landing page content

Update content of landing page. Deployed for testing at https://new-testservices.hydroshare.org/

Pull Request Checklist:

[ ] Positive Test Case Written by Dev

[ ] Automated Testing

[ ] Sufficient User and Developer Documentation

[ ] Passing Jenkins Build

[ ] Peer Code review and approval

Positive Test Case

[Enter positive test case here]

METRIC
VALUE

NEW CODE SMELLS
0

NEW DUPLICATED LINES DENSITY
0.0

NEW BUGS
0

NEW VULNERABILITIES
9

NEW SECURITY HOTSPOTS
0

https://sonarqube.cuahsi-workstation.com:9000/dashboard?id=hydroshare-4430


Storing the tokens in cookie (httponly)?

How do I store the tokens in httponly cookie? I heard storing the tokens in httponly cookie is somewhat secure.
In that context, I don't want to run TokenObtainPairView as view, but I want to get the tokens and set cookie inside a view in django. I hope my question makes sense.

Tried to be smart, to see if I can access the tokens:
def token_details(request):
    response =  jwt_views.TokenObtainPairView.as_view(request)
    print(response)
    return response

But, now I get "Forbidden (CSRF cookie not set.): /api/token/obtain/".

Duplicate #71. We're working on a PR at #71 that'll solve your problem.

Yeah, I saw the PR before. I wanted to know if there is any workaround. Thanks.

Hey @aasutossh yea sorry. I'm not a huge fan of React and stuff so I can't really answer that question. I've looked into a bunch of these different strategies for JS frontend frameworks, but I simply can't give a definitive answer except for that PR. Dw David will be reviewing it soon.

No worries. I'm just trying stuff out. Learning.

I see. Good luck, have fun!


Website not working

None of the examples on the website are working for me.

Thanks for reporting it. There was an issue with a merge conflict that triggered the error, and it's fixed now. Sometimes takes a little bit for the related Google Cloud Storage bucket and CloudFlare to reflect changes, but they should appear soon.


I cannot use the input function

What steps will reproduce the problem?

Anytime I try to use the input function, the "Issue Reporter" box comes up and it will not run my code.
My code looks like this:
name = input("What is your name?")

Closing because the user that reported this removed their Github account.


PHPParser error.

I know it's not your library and you just use it here, but maybe you know whether new version of that library ( after you told me to use dev-master ) or something else, makes the line
$countries = $this->country ?: ['US'] + array_keys(\CountryState::getCountries());
to throw an error in padawan-server
exception 'PhpParser\Error' with message 'Syntax error, unexpected T_STRING on line 52'

I think the problem with php version used, I'm not sure what exactly wrong here


When adding Microsoft.Extensions.Hosting WebView2 reports Microsoft.Web could not be found

Using a WPF application, net48 / netcoreapp3.1
When adding Microsoft.Extensions.Hosting WebView2 reports Microsoft.Web could not be found.

Hi @ChrisPulman, sorry to hear about this issue. Would you mind closing this issue, and opening an issue on the following repo, which is where the Engineering team responds?
https://github.com/MicrosoftEdge/WebViewFeedback

@ChrisPulman I'll go ahead and close this issue. Please let us know if you are still having the issue. Thanks.


Update who-is-using-prisma-fq08.mdx

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


[Hacktoberfest] JavaScript | Simple DB

Participation
All Hacktoberfest solutions should be provably correct. That is, solution submissions should either include the unit tests from the original challenge (implemented in your language of choice) or at least print out the expected answers when run by the maintainers. Solutions that do not meet these criteria may be rejected, or flagged as 'invalid' or 'spam' in egregious cases. This can result in your PR not counting towards your Hacktoberfest participation or becoming ineligible to participate in Hacktoberfest. Violations of our Code of Conduct will be reported, and will also render you ineligible to participate in Hacktoberfest. Please be respectful of the maintainers' and other participants' time by doing your best to submit real solutions to the puzzles. Thanks, and welcome to our learning community!
Challenge
Simple DB
Language
Looks like one slipped through the cracks. Tackle this challenge in JavaScript.

I would like to work on this issue @ericwburden can you please assign this to me?

Sure thing!


Unable to use two sprig element making same task

Hi,
I use Sprig to search with Craft CMS. One of the search tools is checkboxes. For design reasons, I have to create a version of the checkboxes on mobile, and a version of these same checkboxes on desktop.
It seems impossible to have 2 search items (checkboxes) performing the same task. Is it possible to sync these checkboxes?
Or any element like radio button, select, etc.
Thanks.

It is possible, but each version of the checkbox will need its own unique name, for example searchDesktop and searchMobile. Then, in your Twig logic, you’ll need to check if either value is submitted.
{% set search = searchDesktop ?: searchMobile ?: null %}