Access to specific frames, performance. A proposal on introducing a new API

Yesterday i forked the Vidio repository in order to experiment with the Read() function.
One of the projects on which I'm working is using Vidio in a few separate steps:

First we open a video file to perform an analysis step on all frames and later the program is processing the data and is returning a collection of frame numbers.
Then I needed to repeat the iteration over the whole video in order to access and export the specified frames.

The iteration over the whole video takes a lot of time due to the frameBuffer writing operation. Here is a solution that I tried to implement:
I created a ReadOffset(n int) function, that skips n frames and writes the n+1 frame to the frameBuffer. The io.ReadFull involves the creation of a buffer and the main goal was to prevent allocations and unnecessary writing. The usage of io.SkipN with the source set to video.pipe and destination io.Discard performed the same on the benchmark and profiling that i performed. Later, I thought about using the Seek() operation, but the pipe is ReadCloser and not ReadSeekCloser, and a cast would not help, because we are not waiting for the command to end, so the length is changing and some unexpected bahabiour may occur.
All these problems lead to the idea of introducing a separate API. I think that accessing a specific frame is a common operation and iteration over the whole video file is overkill, especially when we know the specific frame numbers. Also, these kinds of changes:

DO NOT expose the underlying FFMpeg implementation details, so the API would still seem FFMpeg agnostic
DO NOT change the existing API so no breaking changes will be made
allow to increase efficiency of applications using Vidio

I though about functions like
GetFrame(filename string, index int) *image.RGBA

GetFrames(filename string, index ...int) []*image.RGBA

The underlying FFMpeg API can use the select flag. Example flag value to export frames 2, 5 and 10:
... select='eq(n\,1)+eq(n\,4)+eq(n\,9)' ...

I would appreciate your opinion on this case and would be happy to implement these changes if my proposal is accepted.
Thank you for creating and maintaining this library.
Best regards!

Hi Krzysztof, your proposal sounds good. Adding frame seeking was something I wanted to add, but never got around to.
For the functions you proposed GetFrame and GetFrames, would those take in a video file name and then return an *image.RGBA?
I think the next step would be to outline what specific functions would be implemented and their signatures and we can go from there.

For the functions you proposed GetFrame and GetFrames, would those take in a video file name and then return an *image.RGBA?

Yes, i tought about two functions.
GetVideoFrame(filepath string, n int) (*image.RGBA, error)
GetVideoFrames(filepath string, n ...int) ([]*image.RGBA, error)
The first one accepts the path to the video file and the index of the frame, it will return the RGBA image pointer.
The second one has a variadic parameter and and will return a slice of RGBA image pointers.
I already started to work on a test implementation. I implemented the GetVideoFrames  function (and tests). I opened a pull request in order to show and discuss some details. Currently I'm doing a research on multiple frames export. The -vf select flag allows to specify multiple frames  but I have to reverse engineer the order of the frames, because something seems off for now when I perform a diff check on the hexdump of the image buffers. The naive approach would be to run GetVideoFrame in a loop, but this approach will spawn a new cmd instance for each frame, and the amount of IO operations was the think that I wanted to reduce in the first place.

Looks good to me. One comment though, I'd like to keep a consistent interface between all library functions so instead of returning an *image.RGBA, the user should pass in an optional array of bytes (as done in vidio.Read for images) that the function will fill in with frame data.
Thanks for your work.

I'd like to keep a consistent interface between all library functions so instead of returning an *image.RGBA, the user should pass in an optional array of bytes

I changed this function as recommended and added some buffer size validation.
Since the preferred way to get results in this type of function is to write the result into the provided buffer, how do we solve the problem of the function to extract multiple frames?
The function would accept arrays of buffers to write frame data, or would it return an array of frame buffers?
We can also not implement it at all and handle such situations by calling GetVideoFrame() in a loop. This approach, however spawns separate cmd's  for each frame.

I prepared a quick implementation of `GetVideoFrames(filepath string, buffers [][]byte, n int...) error``, in order to be able to run benchmarks. The benchmarks consisted of exporting the first and last frames of the video. A recording containing 410 frames (25fps) with a resolution of 1920x1080 was used for testing. The benchmark was run for:

the current, classic approach, that is, iterating over the entire recording,
calling GetVideoFrame() in a loop,
calling GetVideoFrames()

It seems we can double the performance :)
[ 12:03:02 ] krzysztof λ Vidio -> go test -bench=. -benchtime=100x -cpu 4 -benchmem -run=^#
goos: linux
goarch: amd64
pkg: github.com/AlexEidt/Vidio
cpu: Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz
BenchmarkFirstAndLastFrameVideoRead-4        	     100	  46142559 ns/op	  266792 B/op	       1 allocs/op
BenchmarkFirstAndLastFrameGetVideoFrame-4    	     100	  43257306 ns/op	  184913 B/op	       7 allocs/op
BenchmarkFirstAndLastFrameGetVideoFrames-4   	     100	  23941246 ns/op	  184296 B/op	       4 allocs/op
PASS
ok  	github.com/AlexEidt/Vidio	23.519s
[ 12:04:23 ] krzysztof λ Vidio ->

Great work Krzysztof! That performance gain is impressive and your added functions solve the seeking problem very well.
The GetVideoFrames function should take in an array of buffers just as you mentioned in the previous comment. The GetVideoFrames function looks good to go for me. Add it to the PR and make sure to update the README (I think under the 'VideoWriter' section would be a good place to talk about Seeking) and feel free to add an example showing the seeking. Once that's in I'll merge it.
Thanks again for your quality work and attention to detail!

Originally, I thought the GetVideoFrames function should take in an array of buffers just as you mentioned in the previous comment. However I thought of the use cases of this function and it's unlikely that someone is going to call a function like that in a loop where the buffer allocations would hurt performance. I think for GetVideoFrames it might be best to return an array of buffers since it's more convenient. It would be rather unwieldly to allocate all those buffers just to call that function. I think calling GetVideoFrames in a loop is definitely an edge case, the more common case would just be to extract frames from a single file and also, it's unlikely that someone is going to want to extract the same N frames from multiple videos. Let me know your thoughts.

I agree. One of the purposes of the GetVideoFrames function is to avoid using loops, so this function is unlikely to ever appear in a loop. So I reworked it in such a way that it takes n ...int and returns ([][]byte, error)

I was also thinking if the GetVideoFrame and GetVideoFrames functions could be added as functions for the Video struct ...

Good point, in recent commits I moved this functionality to the Video struct. I managed, thanks to that, to remove the repetitive code. However, I also made changes to the name of these functions to better match the Video struct API.
GetVideoFrame(filename string, n int, frameBuffer []byte) error changed into
ReadFrame(n int) error
and
GetVideoFrames(filename string, n ...int, frameBuffers [][]byte) changed into
ReadFrames(n ...int) ([][]byte, error)

... make sure to update the README and feel free to add an example showing the seeking.

I updated the README and added two examples in this commit.

Looks good.
Apologies for going back and forth on this, however I was thinking that returning []*image.RGBA for ReadFrames might be preferable since the user would directly have access to an image.RGBA and could also access the Pix if they wanted the raw bytes since we're allocating the buffers anyways. With the [][]byte the user would have to copy each buffer if they wanted image.RGBA structs.
Additionally the buildSelectExpression should be moved into utils.go.

... []*image.RGBA for ReadFrames might be preferable ...

Good point, it was evident in the tests themselves. Returning the results as []*image.RGBA would certainly be more convenient. I made the suggested change in this commit

Additionally the buildSelectExpression should be moved into utils.go.

Done, change implemented (commit)

Merged and created a new release for the changes. Thanks again for your work, the seeking functionality is great.

Thank you for working together and for merging the pull request 😃


make Anna able to create theories and proves

An interesting idea would be to make Anna create theories or assumptions out of nothing or based on ambiguous data, to actually proof this theories or assumptions. That way knowledge could be strengthened. E.g. trying to find out if the relationship between two objects like a tree and a leaf is valid or not, such an assumption could be created and proved by looking up certain resources. After some validation process a certain assumption could be seen as more valid than before.
Note that any assumption should never be seen as absolut. Knowledge should be seen as a network which peers and their connections never stop to form or break.

Here is some input from an already closed issue for the sake of tracking ideas.

Imagine some request is processed. At some point the neural network will find some response it thinks it is sufficient. At that point the neural network could simply go back to do the processing again. This leads to find another result. Then we could compare two results and calculate some similarity. That way we could implement some sort of inner reflection that evaluates what it actually should respond or not. Here in this case when multiple possible responses are kind of similar, we reached some certainty that the found results are the best we can come up with at the moment. So we can chose and simply return the most sufficient one. Such reflection and evaluation could be done until the neural networks "agree" on some response.

Besides that some introspection features would be cool. For long running internal processes Anna should be able at some point to provide information or even estimations about what is going on and how she is doing at the moment, and maybe when we can expect some answer. This goes towards #36.

See #63.


Broken links on "Azure SDK for Java libraries" page

We've found multiple broken links on "Azure SDK for Java libraries" page. I wasn't able to find replacement for the same.
https://docs.microsoft.com/en-us/azure/developer/java/sdk/azure-sdk-library-package-index page.
Here's the list of all broken links -

https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/signalr/mgmt-v2020_05_01
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/netapp/mgmt-v2019_06_01
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/datafactory/mgmt-v2018_06_01
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/deploymentmanager/mgmt-v2019_11_01_preview
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/policyinsights/mgmt-v2019_10_01
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/storageimportexport/mgmt-v2016_11_01
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/marketplaceordering/mgmt-v2015_06_01
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/resourcehealth/mgmt-v2017_07_01
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/edgegateway/mgmt-v2019_03_01
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/costmanagement/mgmt-v2019_11_01
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/vmwarecloudsimple/mgmt-v2019_04_01
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/resources/mgmt-v2016_06_01
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/cognitiveservices/mgmt-v2017_04_18
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/mediaservices/mgmt-v2019_05_01_preview
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/authorization/mgmt-v2018_09_01_preview
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/subscription/mgmt-v2019_10_01_preview
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/powerbidedicated/mgmt-v2017_10_01
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/devspaces/mgmt-v2018_06_01_preview
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/streamanalytics/mgmt-v2016_03_01
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/hanaonazure/mgmt-v2017_11_03_preview
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/apimanagement/mgmt-v2019_12_01
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/logic/mgmt-v2018_07_01_preview
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/postgresql/mgmt-v2017_12_01
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/peering/mgmt-v2019_08_01_preview
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/storagecache/mgmt-v2020_03_01
https://github.com/Azure/azure-sdk-for-java/tree/master/profiles/2019-03-01-hybrid
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/databox/mgmt-v2019_09_01
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/relay/mgmt-v2017_04_01
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/maintenance/mgmt-v2018_06_01_preview
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/synapse/mgmt-v2019_06_01_preview
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/devtestlabs/mgmt-v2018_09_15
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/eventhubs/mgmt-v2018_01_01_preview
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/parents/azure-arm-parent
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/datamigration/mgmt-v2018_07_15_preview
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/avs/mgmt-v2020_03_20
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/operationsmanagement/mgmt-v2015_11_01_preview
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/labservices/mgmt-v2018_10_15
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/sqlvirtualmachine/mgmt-v2017_03_01_preview
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/machinelearningservices/mgmt-v2019_05_01
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/privatedns/mgmt-v2018_09_01
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/support/mgmt-v2020_04_01
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/hdinsight/mgmt-v2018_06_01_preview
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/appconfiguration/mgmt-v2020_06_01
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/appplatform/mgmt-v2020_07_01
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/managedapplications/mgmt-v2019_07_01
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/timeseriesinsights/mgmt-v2017_11_15
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/resourcegraph/mgmt-v2019_04_01
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/servicefabric/mgmt-v2018_02_01
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/mixedreality/mgmt-v2020_05_01
https://docs.microsoft.com/java/api/overview/azure/spring-boot-starter-servicebus-jms-readme/
https://docs.microsoft.com/java/api/overview/azure/spring-cloud-stream-binder-servicebus-core-readme/
https://docs.microsoft.com/java/api/overview/azure/spring-cloud-stream-binder-servicebus-queue-readme/
https://docs.microsoft.com/java/api/overview/azure/spring-boot-starter-active-directory-b2c-readme/
https://docs.microsoft.com/java/api/overview/azure/spring-cloud-stream-binder-eventhubs-readme/
https://docs.microsoft.com/java/api/overview/azure/spring-cloud-messaging-readme/
https://docs.microsoft.com/java/api/overview/azure/spring-boot-starter-keyvault-secrets-readme/
https://docs.microsoft.com/java/api/overview/azure/spring-cloud-starter-cache-readme/
https://docs.microsoft.com/java/api/overview/azure/spring-boot-starter-storage-readme/
https://docs.microsoft.com/java/api/overview/azure/spring-cloud-stream-binder-test-readme/
https://docs.microsoft.com/java/api/overview/azure/spring-boot-starter-cosmos-readme/
https://docs.microsoft.com/java/api/overview/azure/spring-integration-test-readme/
https://docs.microsoft.com/java/api/overview/azure/spring-boot-starter-keyvault-certificates-readme/
https://docs.microsoft.com/java/api/overview/azure/spring-cloud-telemetry-readme/
https://docs.microsoft.com/java/api/overview/azure/spring-boot-starter-active-directory-readme/
https://docs.microsoft.com/java/api/overview/azure/spring-cloud-stream-binder-servicebus-topic-readme/
https://docs.microsoft.com/java/api/overview/azure/spring-integration-core-readme/
https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/iotcentral/mgmt-v2018_09_01

Most of those I believe have already been fixed with the latest batch fixed with https://github.com/Azure/azure-sdk/pull/3289.

To get this fixed on the docs site this PR https://github.com/MicrosoftDocs/azure-dev-docs-pr/pull/1822 needs to get merged.

@pritamso @weshaggard that azure-dev-docs-pr PR has been delayed due to UX studies. I should get the go-ahead to merge it early next week.

@KarlErickson Are you going to merge PR as there are 60+ links still appearing broken on page.
@weshaggard

@pritamso @weshaggard I'll find out this afternoon, and hopefully merge by EOD today.


[GetPendingUpdates_vbs.CMD]: GetPendingUpdates_vbs.CMD from Solarwinds

Contributor Name:umairqamar
**Application/Executable:GetPendingUpdates_vbs.CMD
**WTF Behavior Description:Ships with Solarwinds, has confusing double extensions.
**Link to Documentation of Behavior:https://twitter.com/cyb3rops/status/1396881013192671234
Please provide any images for additional evidence.

@umairqamar ,
This looks promising, but I think we need a little more info! For one thing, this Florian tweet does not provide enough detail to qualify as documentation. Additionally, I'd love to see some evidence from a SIEM or other logging source about what this command actually does, and what parent processes invoke it.

I'd propose that the whole of Solarwind deserve a WTFBIN mention, as they suggest to exclude the whole directory from AV. Unfortunately(?) I don't have a Solarwind installation so can't provide more info than this link
https://support.solarwinds.com/SuccessCenter/s/article/Files-and-directories-to-exclude-from-antivirus-scanning-for-Orion-Platform-products?language=en_US


warnings/errors on unused definition values

could we have a warning/error when a value is unused in a writeXML call?
for example: I used a non-existent devices.disk.serial value, only to realize it's not actually supported

I think that would add a lot of complication to the nix-to-XML code?

I can't figure out exactly how xml.toText (process obj) works, could you give me some pointers?


Init ci and tools

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@342aeca). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             master        #2   +/-   ##
==========================================
  Coverage          ?   100.00%
==========================================
  Files             ?         2
  Lines             ?         3
  Branches          ?         0
==========================================
  Hits              ?         3
  Misses            ?         0
  Partials          ?         0

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 342aeca...aed3b90. Read the comment docs.


SSL "Certificate verify failed" when running trivial test program

Here's my trivial test program:
require 'rss'
require 'open-uri'

def pull(url)
  open(url) do |rss|
    feed = RSS::Parser.parse(rss)
    feed.items.each{ |item| puts item.title }
  end
end

pull 'https://www.theguardian.com/uk-news/rss'

This program works when I run it using ruby.  But the compiled (gcc) version does this:
/__enclose_io_memfs__/lib/ruby/2.4.0/net/protocol.rb:44:in `connect_nonblock': SSL_connect returned=1 errno=0 state=error: certificate verify failed (OpenSSL::SSL::SSLError)
        from /__enclose_io_memfs__/lib/ruby/2.4.0/net/protocol.rb:44:in `ssl_socket_connect'
        from /__enclose_io_memfs__/lib/ruby/2.4.0/net/http.rb:948:in `connect'
        from /__enclose_io_memfs__/lib/ruby/2.4.0/net/http.rb:887:in `do_start'
        from /__enclose_io_memfs__/lib/ruby/2.4.0/net/http.rb:876:in `start'
        from /__enclose_io_memfs__/lib/ruby/2.4.0/open-uri.rb:323:in `open_http'
        from /__enclose_io_memfs__/lib/ruby/2.4.0/open-uri.rb:741:in `buffer_open'
        from /__enclose_io_memfs__/lib/ruby/2.4.0/open-uri.rb:212:in `block in open_loop'
        from /__enclose_io_memfs__/lib/ruby/2.4.0/open-uri.rb:210:in `catch'
        from /__enclose_io_memfs__/lib/ruby/2.4.0/open-uri.rb:210:in `open_loop'
        from /__enclose_io_memfs__/lib/ruby/2.4.0/open-uri.rb:151:in `open_uri'
        from /__enclose_io_memfs__/lib/ruby/2.4.0/open-uri.rb:721:in `open'
        from /__enclose_io_memfs__/lib/ruby/2.4.0/open-uri.rb:35:in `open'
        from /__enclose_io_memfs__/local/one.rb:6:in `pull'
        from /__enclose_io_memfs__/local/one.rb:12:in `<main>'

Not sure what is going on here; I'm far from clever with SSL.
If change 'https://' to 'http://' in the code, then there is no change: it still retrieves the headlines in ruby, and still returns the exact same error message when compiled.

Thanks for reporting. Let me re-produce it locally and debug ASAP.

FYI: Under 0.4.0, no change.

Probably the cert compiled with this version is outdated. You could use something like this gem https://github.com/liveeditor/net_http_ssl_fix to fix the issue.

@yourivdlans
Okay.  But it doesn't do this in Ruby.  And given that this is a very simple test program that only uses stdlib, shouldn't this be documented as part of the install instructions, at least?
I mean, I would really like the Ruby deployment story to be better.  So I tried this with a simple program and it didn't work.  So I gave up on it, nearly a year ago.  Which is presumably not what you want people to do.

@andy-twosticks I fully agree, its not ideal. Compiled programs not using https will probably run fine. I assume the developers hadn't seen this edge case before.
Last resort could also be to disable the certificate verification, but also not an ideal solution.

Can you run:
ruby -e "require 'openssl'; puts OpenSSL::X509::DEFAULT_CERT_FILE"

and:
ENCLOSE_IO_ALWAYS_USE_ORIGINAL_RUBY=1 ENCLOSE_IO_USE_ORIGINAL_RUBY=1 ./a.out -e "require 'openssl'; puts OpenSSL::X509::DEFAULT_CERT_FILE"

If these are not the same directory then we need to tweak openssl configuration.
I think you can work around the problem by setting SSL_CERT_FILE to the one ruby shows.

This is my output:
Youris-MacBook-Pro:ruby-packer-test yourivdlans$ ENCLOSE_IO_ALWAYS_USE_ORIGINAL_RUBY=1 ENCLOSE_IO_USE_ORIGINAL_RUBY=1 ./a.out -e "require 'openssl'; puts OpenSSL::X509::DEFAULT_CERT_FILE"
/usr/local/ssl/cert.pem
Youris-MacBook-Pro:ruby-packer-test yourivdlans$ ruby -e "require 'openssl'; puts OpenSSL::X509::DEFAULT_CERT_FILE"
/usr/local/etc/openssl/cert.pem

I think rubyc can configure openssl to change where DEFAULT_CERT_FILE points

I've done a bit of testing and come to the following conclusions:

Using 0.4.0 building openssl with --openssldir=/usr/local/etc/openssl will ensure the build succeeds (so gems from https sources get downloaded). But when moving the packaged file to another system that doesn't have the certification in that location it will not be able to do https requests.
Using master it seems I can compile without trouble but I'm not able to run a compiled rails app.

Possible solution:
Would it be an idea to download a certification or copy from the local disk during the build process and placing it in the work dir, then pointing openssl to that dir?
Although then there is the possibility the certification will get outdated and the app will break. Not sure what the best solution is here.

Setting --openssldir can be exposed as an option for the user running rubyc, and a default of /usr/local/etc/openssl seems OK?

That would be ok for people wanting to compile a package. But then when the package gets distributed and other systems don't have the certifications in /usr/local/etc/openssl the program will not be able to do https requests.

I had a look at traveling-ruby to see how they solved this problem and this is what I found.

They also compile their own version of openssl but they set the --openssl-dir to the path they compile openssl in.
They have a copy of the ca-bundle.crt in their repository.
They compile ruby with --with-openssl-dir pointing to their compiled version of openssl.
Then they copy the ca-bundle.crt to the dir they are packaging ruby from and setting the SSL_CERT_FILE env var.

So I assume they package root certificates which allows any system / user to run the package regardless of their own certificates installed on the system.
I'd suggest ruby-packer should do something identical, what do you think?

If we bundle certificates then when CA certificates expire or are revoked rubyc must be recompiled, then users must fetch rubyc, then recompile their application, then distribute their application.
Users can be vulnerable to connection hijacking even when the site they're connecting to doesn't use certificates signed by that CA (although the CA was revoked, it is still included thus still trusted).  It will mean a CVE for rubyc if they're bundled inside rubyc, so I don't want to bundle them inside ruby-packer as the maintenance burden is far too high.
Omnibus can download and install the bundle from curl which removes the need to recompile and distribute rubyc, but not the need to recompile the user's application.  This is OK, but leaves the expiration and revocation maintenance burden on the application packager and they may not be aware of it.
I prefer to have the packager manage certificates in an informed way.  I think it is OK to allow users to make the choice to bundle certificates inside their executable, but it should come with warnings about and protections for the security risks.
As a first pass I would prefer to make the openssl dir configurable so packagers can instruct users in how to configure their CA certificate list.  Other applications they deploy may already be configured to use the same store, so this may be a no-op.  (Homebrew on macOS allows easy installation and maintenance of CA certificates and I believe most linux distributions have the same.  We don't compile OpenSSL on Windows yet, but eventually we'll need to point to someone's method of adding CA certificates for Windows.)
A follow-up may allow users to place trusted CA certificates in a directory that ruby-packer will package into their executable.  This should allow users to balance their vulnerability exposure.  RubyGems follows this pattern and bundles only the CA certificates for the servers it connects to to limit vulnerability upon revocation of unrelated CA certificates.

Users can be vulnerable to connection hijacking even when the site they're connecting to doesn't use certificates signed by that CA (although the CA was revoked, it is still included thus still trusted).

Very good point.

As a first pass I would prefer to make the openssl dir configurable so packagers can instruct users in how to configure their CA certificate list.

Alright yeah, thats a good first step.

This should allow users to balance their vulnerability exposure. RubyGems follows this pattern and bundles only the CA certificates for the servers it connects to to limit vulnerability upon revocation of unrelated CA certificates.

Really like this idea!
Thanks for the clear explanation. I'll try and create a pull request for that today :)

I'm running into this issue as well... any hopes of seeing a solution for this?


Expose NetworkStream+Send to the server

I need access to the downcast methods on NetworkStream+Send on the server in order to gain access to a TcpStream object.  This will allow me to implement an iron middleware to upgrade connections to websocket connections, following the work already done in rust-websockets.
Iron currently only has access to a NetworkStream which is obtained by calling "deconstruct" on the request object provided by hyper.

The changes to do here is to change the &'a NetworkStream in hyper::server::Request to be &'a (NetworkStream + Send).

Alternatively just add downcasting to NetworkStream proper, in addition to the impl for NetworkStream + Send.

Ah yes, we could duplicate the definition for impl NetworkStream (grumble grumble)...

I'm going to attempt to make the changes myself using the first proposed solution.  If I get stuck I'll post on this thread

The second one would be easier. The first would be preferred if there's a need to send that trait object to another thread...

Wouldn't that be useful?  For instance, I initialize a websocket connection.  Later on, my client makes an http request and that request wants to be able to send data through the websocket while the new request is still processing.  I'm just not sure if this scenario would require passing NetworkStream+Send to more than one thread(my intuition tells me it would)


Events execute twice

@danielroe

resolved in https://github.com/nuxt-modules/web-vitals/pull/66


apt-get update fails

Required Info

Camera Model
{ R200 / F200 / SR300 / ZR300 / D400 }

Firmware Version
v2.25.0

Operating System & Version
Ubuntu Xenial 16.04

Kernel Version (Linux Only)
4.15.0-58-generic

Platform
PC/Raspberry Pi/ NVIDIA Jetson / etc..

SDK Version
{ legacy / 2.. }

Language
{C/C#/labview/nodejs/opencv/pcl/python/unity }

Segment
{Robot/Smartphone/VR/AR/others }

Issue Description
<Describe your issue / question / feature request / etc..>
W: The repository 'http://realsense-hwpublic.s3.amazonaws.com/Debian/apt-repo xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.

Problem goes away after deleting the repo line from sources list and adding it again. Able to update as normal after that.


On sites buttons "Create" and "Cancel" has different size

Precondition: Verifiy size of buttons "Create" and "Cancel"
Steps to Reproduce:

Log in to the site like admin user.
In admin menu order "Categories/Категорії"
Click button "+Add category/+Додати категорію"

Expected Result:
"Create" and "Cancel" buttons should have the same size, and their text should be centered.
Actual Result:
"Create" and "Cancel" buttons shouldn't have the same size, and their text shouldn't be centered.

E.g.: "User story #427

Already deployed


Let debug breakpoint pined to the original line

Hello,
Suppose we add a breakpoint to the line 2, and we insert 3 blank lines before, current version of vscode will keep the breakpoint still at the line 2 which is pointed to a blank line.
original breakpoint:

line1. code1
(breakpoint here) line2. code2

add 3 blank lines before the line 2:
line1. code1
(breakpoint still here) line2.
line3.
line4.
line5. code2

I expect to see
line1. code1
line2.
line3
line4
(breakpoint here) line5. code2

Could you please let the breakpoint to pined to the original line code, which means if the original line of code moves, the breakpoint should go with it.
Regards

I'm not seeing the behaviour you are describing:

As you can see in the screencast, the breakpoint moves and the line number updates.

@weinand
thx for you rapid reponse, I cannot reproduce the issue neither.
I will raise a new issue next time I encounter it.

"Live edit" while a debug session is running only works for debug extensions that support this.
The node-debugger of VS Code does not.
So node.js does not see the edited source which means it hits breakpoints in the original location (even though the breakpoint in the editor shows up in the new location). VS Code shows breakpoint with a grey ring if the breakpoint location does not match what node.js sees.

duplicate of #6930


[R24.5][Bug] Available parts filter is falsely reset

Description

Happened on E2E-A:
When creating a notification directly, initially the type investigation is selected. This means, that the table of available parts is filtered to only show supplier parts, because an investigation may not have own parts.
However, when adding a part and then removing it again, the filter is not set anymore. Now all of the parts are shown again (including own parts). Then the user can select own parts and create an investigation with own parts. This investigation can even be successfully sent.
Current behaviour
When creating a notification from the Quality notifications tab directly, it looks like this initially:

It only shows supplier parts in the second table.
Then I add one of the parts:

The selected part is removed from the lower table and added to the upper table.
When I remove the selected part from the upper table again, the filter in the lower table is removed and all parts are shown:

Expected behavior

During the creation of a notification, when an alert / investigation is selected, only the relevant available parts are shown at all times.
Steps to reproduce the Bug

Go to quality notification tab
Click "Create quality notification"
Add part from lower table
Remove the same part again

Tested on E2E-A & E2E-B:
Works as expected now. Table is always filtered for appropriate parts depending on the type of notification (alert -> own parts, investigation -> supplier parts). When adding / removing parts, the filter is unchanged.
Ready for review.

LGFM. PO acceptance in behalf of @jzbmw


CM: When HL starts, you can immediately see subtitles of scientists talking, and that's bad.

When HL starts and you are on the train, you can immediately see the subtitles of scientists talking right before even Half-Life's title and train's voice. Those subtitles disturb train's subtitles greatly. Their sentences are even after disaster. Is there a way to fix this? Maybe it is possible to reduce the distance for hearable subtitles?

You can reduce cap_max_distance to a reasonable distance.

cap_max_distance : Ignore sound or sentences (which are supposed to play subtitles) whose speaker is too far away from this distance. This cvar is not going to work with SvEngine because of missing sound source information in ScClient_FindSoundEx.

https://github.com/hzqst/MetaHookSv/blob/main/docs/CaptionMod.md#console-vars

Alas, it's not working for me :/ I tried cap_max_distance 1 to 2000. No difference. Even value 0 is not working.

Can you set cap_debug 1 on console to see what's name of the annoying sentence/sound and the exact dist and avol of it?

OK, I checked values using debug in console:
[scientist/noidea.wav] found. dist: 0.00, avol: 1.00
[tride/c0a0_tr_gmorn.wav] found. dist: 0.00, avol: 1.00
[scientist/lowervoice.wav] found. dist: 0.00, avol: 1.00
scientist/cantbeworse.wav] found. dist: 0.00, avol: 1.00
[scientist/ofcourse.wav] found. dist: 0.00, avol: 1.00
It looks like all played files has the same value...

This could be a potential problem in the previous version that distance filter and volume filter were not working for Sven Co-op. Could you try https://github.com/hzqst/MetaHookSv/releases/tag/v20240120b and see if dist/avol is still 0.00/1.00 for scientists?


Prepared statments, and stored procedures are not working properly.

What happens?
When prepare have parameters, duckdb will fail to bind the types, and latter rely on execution to rebind them with actual values.
But pg_duckdb is using it in an incorrect way,  assuming Prepare will fully resolve all the types without providing actual values.
To Reproduce
postgres=# prepare test(int) as select * from a where a>$1+1;
PREPARE
postgres=# execute test(1);
WARNING:  (PGDuckDB/GetPostgresDuckDBType) Could not convert DuckDB type: UNKNOWN to Postgres type
WARNING:  (PGDuckDB/CreatePlan) Cache lookup failed for type 0
 a
---
(0 rows)

OS:
MacOs
pg_duckdb Version:
0.1.0
Postgres Version:
16
Hardware:
No response
Full Name:
Zhou
Affiliation:
Mooncake Labs
What is the latest build you tested with? If possible, we recommend testing with the latest nightly build.
I have tested with a stable release
Did you include all relevant data sets for reproducing the issue?
No - Other reason (please specify in the issue body)
Did you include all code required to reproduce the issue?

[X] Yes, I have

Did you include all relevant configuration (e.g., CPU architecture, Linux distribution) to reproduce the issue?

[X] Yes, I have

Closing this in favor of #480 as it provides more information on this issue.


Data type  wrongly given by react-native-datetimepicker

Hi, i am trying to get the response that react-native-datetimepicker gives me once i choose the time.
it just send me a plain text data, instead of an array.
Here is my code:
     <DateTimePicker
      value={new Date()}
      mode='time'
      is24Hour={true}
      display="default"
      onChange={(event,newDate) => this.setDate(newDate)}
      />

//This is the function
  setDate = (date) => {
   console.log(date);
};

IF i choose the 12 hour format how do i know if the user has chosen AM or PM?

the modal appears correctly but when i had choosen the time
it gives me just this plain text

but the data that i really wanna save are specifically these:
-HOUR
-MINUTE

Hi, date was actually Date object, you can looking for the reference from here
console.log was print formatted version of date, like this:

Ok, i understand but
how can i fetch the
User selected hour and minute and period(AM/PM)?

If you want to format date time to Hour:minutes AM/PM format, you can use format function from date-fns library like this:
dateFns.format(new Date(), 'hh:mm A')

Or if you want get raw values, just compare hours with 12, great than 12 is PM.

Wow a lot of thanks!


Explore - Removed deprecated search items

Hey, I just made a Pull Request!
BREAKING Removed the deprecated ToolDocument, ToolDocumentCollatorFactory, and ToolDocumentCollatorFactoryOptions. These were deprecated with the 1.13.0 release of Backstage. They should be import from @backstage/plugin-search-backend-module-explore instead.
:heavy_check_mark: Checklist

[x] A changeset describing the change and affected packages. (more info)
[ ] Tests for new functionality and regression tests for bug fixes
[ ] Screenshots attached (for UI changes)
[x] All your commits have a Signed-off-by line in the message. (more info)

Thanks @Rugvip 🚀


Application Insights

I am trying to get application insights to create an architecture diagram.  However, so far, no data seems to go into application insights.
My bicep deployment successfully deploys.  I see the environment, I see application insights and I can see the apps are running as expected.
resource appInsights 'Microsoft.Insights/components@2020-02-02-preview' = {
  name: environment_name
  location: location
  kind: 'web'
  properties: {
    Application_Type: 'web'
    WorkspaceResourceId: logAnalyticsWorkspace.id
  }
}

resource environment 'Microsoft.App/managedEnvironments@2022-03-01' = {
  name: environment_name
  location: location
  properties: {
    vnetConfiguration: {
      internal: false
      infrastructureSubnetId: subnetId
    }
    daprAIInstrumentationKey: appInsights.properties.InstrumentationKey
    appLogsConfiguration: {
      destination: 'log-analytics'
      logAnalyticsConfiguration: {
        customerId: logAnalyticsWorkspace.properties.customerId
        sharedKey: logAnalyticsWorkspace.listKeys().primarySharedKey
      }
    }
  }

I found a work around for doing this as
APPLICATIONINSIGHTS_CONNECTION_STRING
I'm still curious how one could achieve setting up a nested property though.

Could you ensure your time range is accurately set without any filters, at which point, you should expect to see something akin to the below screenshot (after waiting for an hour or so post accessing the UI). If that's still not the case, please post your screenshot and try https://docs.microsoft.com/en-us/azure/azure-monitor/app/app-map?tabs=net#troubleshooting guide for any additional pointers.


gradle: 2.8 -> 2.9

Built with nix-build -A gradle
Installed with nix-env -f . -i gradle
gradle --version outputs version 2.9 (confirming the installation works)

I kept 2.8 around because there are breaking changes between 2.8 and 2.9.
Pinging @jagajaga @bendlas @volhovM since you guys were just working on Gradle a few days ago.

Do we really need to keep 2.8?

To be honest, we probably don't. I figured I would gather feedback.
However, we do need to keep 2.5 for some Android support from what I can tell.

I just got rid of 2.8 now.


Link Down: Cannot downloads Weight files and nois_semantic data

Hello,
Thank you for your work.
I want to download and test your work but the download link is not working currently. can you help with this?
Thank you

Dear @Zeeshan313,
we had an unexpected issue with the server and the links shoud now be available. Please check again.
Best regards,
Juan Carlos


Update docs to extending docs to new getName method

Seems that that the documentation is behind.  My IDE had me override 'getName' instead of 'name'.  Hope this is correct.

Good catch, thanks!


BUG: sporadic test failure

after running the make a few times this testing failure can occur:
describe RandomTrader
        - it moves the market with their trades ... FAILED

There were failures!

RandomTrader moves the market with their trades:
/home/james/gits/trading-game/test/exchange_randomtrader.test.cpp:42: Expected: not equal to 1 (+/- 0.0001)
Actual: 0.9999

Yep, we should probably change the comparator to have bigger precision


Add node_modules to gitignore. Do not commit that directory.

Noted, accidentally committed it, will have it remove from .git cached history


Merge pull request #1 from NLog/master

update from NLog

Codecov Report

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

@@          Coverage Diff           @@
##           master   #2015   +/-   ##
======================================
  Coverage      82%     82%
======================================
  Files         286     286
  Lines       19665   19665
  Branches     2297    2297
======================================
  Hits        16058   16058
  Misses       3050    3050
  Partials      557     557

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 8a6fcf5...743970f. Read the comment docs.

Is this a mistake?


['store'] in path $ but found 'net.minidev.json.JSONArray'

i try to use it by example but show me this exception, i don't know how to use it now..,can u help me to solve it  ? or the example is wrong

@LucaOnly
could you please post

the JSON
and the JSON path that throws the exception?

The title reads like you're trying to access an element inside an array with a key ('store') instead of an index (e.g. 0).

@hf-kklein  hi, i am so happy that you reply this issue such quickly, i have finished it by using $..store ,the exception shows that i want to operate a jsonArray by $.store.* ,but $.store.* looks like to analyse jsonObject or gson. In additional,I am a developer working to make medical data clean and good for data analysis, so i use mongodb to collect medical data ,i have to make a tool for getting jsonNode by path(eg: store.book.name) ,i think it is important to make tools quickly and easy to use,especially easily to get jsonNode ,but it seems that this tool dosen't has this ability.I think this tool can be better if it can finish this .

So is your problem solved now? Or do you still get an exception? If yes, please post

the original json
the json path you're trying to use
the expected result

@hf-kklein  yes ,this  can be cloese, i am so haapy u can help me .i will pull this project after work and learn the code,it may help me in the future.best wishes

i make a simple tools for json analysis. if you need ,i can share u it.

yes ,this can be cloese

so, please close it yourself ;-)

i use my tools to handle 10 million data ,it works very well .if u need i can share it to yourself


Split the pre-bolus ESC key presses in two commands.

The 4 ESC seems to be done too quickly now that we moved to the go library.
It seems like it isn't as good at avoiding A52 errors as what
was done on master. I think on master the pump is wakened up again between
each key presses, or the python layer adds some latency which isn't
there on the new version.
The compromise here is to send the first ESC, wait for 0.5s before sending the
remaining ESC. From testing on a test pump, this seems to reduce the
chance of getting an A52 error.

yes, the ESC sent while holding the down button are ignored. you're right, might be better to send 1+4 instead.

Can we tell from the return code or something if the pump actually accepted the button press?

not that I'm aware of, unfortunately. The first ESC sent while the button down is pressed does seem to do something as it pauses the scrolling. But since the down or up button is pressed, it doesn't move us back to the previous page of the wizard.

Would sending four ESCs as individual commands break out of the scroll menu even if the button is still held down? Or do you have to react and release it before they’ll take?

You have to react and release before the ESC can actually move the menu to the previous page.
It seems to be the same as trying to press ESC manually on the pump (which makes sense). I also tried manually, and while keeping the down arrow pressed to scroll, no matter how fast or how many time I press ESC, it doesn't exit the wizard.

So we have to have a long enough wait to expect the user to be able to notice the scrolling has stopped and release the button, but not so long that they’ll start scrolling again?  Can I put in another vote for “let’s stop using the bolus wizard”?

:+1: I use it occasionally 5-10 times a week, but I only got A52 once earlier this year. Just wanted to follow up and try to make it a bit better. If the additional delay here is not worth it, I'm okay also with dropping this pr completely.

I think a half second delay is worth adding.


✨ Window with list of all installed plugins is too short by default

Overview of design need

Is there an existing GitHub issue this design work pertains to?
Increase hieght of GUI listing all installed plugins #1302

In a sentence or two, describe the problem to be solved for users
Even when only a couple plugins are installed, the window is too short to see them all. Ideally you could see at least 3-4 without needing to scroll.

To access the window: "Plugins" menu --> "List installed Plugins...". Plugins should be installed, though, to populate the space to get an idea of the problem described:

From the “Plugins” menu within the napari application, select “Install/Uninstall Package(s)...”.
Choose a few plugins from napari-hub.org and search for the name where it says “Install by name/url…”.
Click the "Install" button.

What level of design is needed? (Choose all that apply)

[ ] User experience research:  high-level recommendation/exploration of user needs, design heuristics, and / or best practices to inform a design experience
(Use this option when you feel there’s a challenge to be solved, but you’re curious about what the experience should be — may involve research studies to understand challenges/opportunities for design)
[ ] Information flow / conceptual: organizing and structuring of information flow and content, including layout on screen or across multiple steps
[X] Visual: creating mockups, icons, etc
(If choosing this level alone, it means that the content to be mocked up and its organization is already known and specified)

Is design a blocker?

[ ] Yes: engineering cannot proceed without a design first
[X] No: engineering can create a first version, and design can come in later to iterate and refine

If selecting Yes, how much design input is needed to unblock engineering? For example, is a full, final visual design needed, or just a recommendation of which conceptual direction to go?
T-shirt size

[X] ●○○○○ XS: able to be done in a typical workday or two
[ ] ●●○○○ S: able to do within one sprint, if also working on other things in the sprint
[ ] ●●●○○ M: able to do within one sprint, if it is the sole focus
[ ] ●●●●○ L: will likely take more than one sprint to complete, but less than two
[ ] ●●●●● XL: a very large experience to be determined or overhauled, will need to be broken down further

this can be closed... that window doesn't exist anymore


[V3] Implement new Concept Exercise: bytes-and-runes

This issue describes how to implement the bytes-and-runes concept exercise for the Go track.
Goal
This exercise should teach the concepts of bytes and runes. slices are a prerequisite. Getting to know []byte and []rune should be part of this exercise.
Note: possibly split this into 2 exercises: one for bytes one for runes
Things to teach

runes and bytes as basic literals: 'a' (single quotes)
runes and bytes are numbers (byte: uint8 and rune: int32). Can be used like numbers to calculated with. e.g. r - '0' can be used to convert a byte/rune digit to an int. (To be used with care of course!)
[]byte should be introduced.
[]byte: It can be mentioned that it is a very common type to be found e.g. in Readers, Writers, Pipes, etc: everywhere it is about streaming data. ioutil.ReadAll (maybe from a request.Body?) and writer.Write (maybe with ResponseWriter?) can be introduced, but an extensive intro will come later how to properly use Readers and Writers.
[]rune should be introduced.
[]rune as a good way to deal with individual characters if utf8 characters are involved.
[]byte, []rune: Conversion to and from string.
[]byte, []rune: Creation via slice syntax []byte{'h', 'e', 'l', 'l', 'o'} or conversion from string: []byte("hello"). Same with []rune.
unicode package for dealing with runes and utf8 strings

Things not to teach

No extensive intro on Readers, Writers, Pipes, etc. They will be introduced in-depth later.

Concepts

byte
rune
[]byte
[]rune

Prerequisites

numbers
iteration
functions
slices
conditionals

Implementing
Here you can find the Implementation Guide.
Help
If you have any questions while implementing the exercise, please post the questions as comments in this issue.

@ErikSchierboom: What is the correct location of the concept exercise implementation guide now?

@tehsphinx https://github.com/exercism/docs/blob/main/building/tracks/concept-exercises.md

@laniehei: Thx and Fixed.

Is this being worked on? If not, I'd like to make this one.

@andrerfcsantos I don't think someone is working on it. It might be good to find out it there is an existing exercise that you can fork/port. @angelikatyborska Does Elixir have an exercise that might be used as the source for a fork?

@ErikSchierboom I doubt it. This sounds too low level to resemble anything in Elixir. I think the closest we have to this is charlists (https://github.com/exercism/elixir/tree/main/exercises/concept/german-sysadmin) which are lists of integers that represent characters but nothing that would touch the subject of uint8 vs int32.

Too bad


DEVEX-875 add new standard events

Changes due to updated spec

Ad type constants are now CAPS
BUO is sent
All events are routed through the same logic.  There is no difference between the custom and standard API.  This is how the current implementation works.

Old description:
These are new standard events for FB and Tune.  Most of these new standard events do NOT support the BranchUniversalObject.  Only RESERVE supports the BUO.
Also there is a behavior change.  Previously standard events created via the customEvent API would go to the standard server endpoint.  Now all events created via the customEvent API will go to the custom server endpoint.
All events created via BranchUniversalObject's userCompletedAction are treated as custom events.

Spec has been updated.  There are significant changes since the original PR, see updates section in the description.


Make magnum.sh more idempotent

This fix allows for running deploy.sh multiple times without overwriting  user_osa_variables_defaults.yml or adding over and over the same config values

We're not targeting Mitaka anymore, so we can simply remove the Magnum code entirely from this branch.


git ignore manifest.toml

When EpiAware is stable community posts suggest that good practice is to depend on the Package.toml and to therefore .gitignore the manifest. This is also helpful as it avoids frequent merge issues during development due to differing package versions etc.

Agreed.

Due you have a read on when we should do this? I almost think it should be sooner rather than later?


Enable FV standalone to work without a (fake) restart file

FV has the ability to generate synthetic restarts.  The requirement by MAPL that components have a restart should be relaxed somehow.    This ticket should probably be opened in MAPL, but for now it is driven by the requirement for this repo.
A related ticket was opened for the CTM: https://github.com/GEOS-ESM/GEOSctm/issues/17

A restart file might not be needed at all. If one is not provided, i.e., not including the setting:
DYN_INTERNAL_RESTART_FILE:    -fvcore_internal_rst
the code automatically sets ColdRestart to 1.
The problem occurs in the following section of StandAlone_DynAdvCore_GridCompMod.F90 (Lines 215-235):
  call ESMF_StateGet  (GIM(DynCore), 'TRADV', BUNDLE1, RC=STATUS )
  VERIFY_(STATUS)

  call ESMF_FieldBundleGet(BUNDLE1, fieldCount=numTracers,  rc=STATUS)
  VERIFY_(STATUS)

  IF ( MAPL_AM_I_ROOT() ) PRINT*, 'Number of tracers: ', numTracers

  call ESMF_StateGet  (GIM(AdvCore), 'TRADV', BUNDLE2, RC=STATUS )
  VERIFY_(STATUS)

  if (numTracers > 0) then
     do I=1, numTracers
        call ESMF_FieldBundleGet (BUNDLE1, fieldIndex=I, field=FIELD, RC=STATUS)
        VERIFY_(STATUS)

        call MAPL_FieldBundleAdd ( BUNDLE2, field, rc=STATUS )
        VERIFY_(STATUS)

     end do
  end if

The code fails in:
    call MAPL_FieldBundleAdd ( BUNDLE2, field, rc=STATUS )

I am trying to figure out why?
The fields in the DynCore bundle are added to the AdvCore bundle.

@JulesKouatchou Could you try the following:

In your resource file do not specify any dynamical core restart (and most definitely do not use the hyphen symbol "-"), i.e. comment the restart line altogether
Add
COLDSTART: 1

This should fill the FV internal state with some prescribed values, that should be good enough to bootstrap without a restart
I am closing the ticket. If your issues still persist, please open a new issue

What was the value for num_tracers?
My guess is the TRADV bundle1 had at least 1 tracer but TRADV bundle2 was empty and nothing was set (for example, the grid was not set)
Please, let me know when you find more info
Atanas
On Aug 29, 2019, at 1:29 PM, JulesKouatchou <notifications<EMAIL_ADDRESS>wrote:
A restart file might not be needed at all. If one is not provided, i.e., not including the setting:
DYN_INTERNAL_RESTART_FILE: -fvcore_internal_rst
the code automatically sets ColdRestart to 1.
The problem occurs in the following section of StandAlone_DynAdvCore_GridCompMod.F90 (Lines 215-235):
call ESMF_StateGet  (GIM(DynCore), 'TRADV', BUNDLE1, RC=STATUS )
VERIFY_(STATUS)
call ESMF_FieldBundleGet(BUNDLE1, fieldCount=numTracers,  rc=STATUS)
VERIFY_(STATUS)
IF ( MAPL_AM_I_ROOT() ) PRINT*, 'Number of tracers: ', numTracers
call ESMF_StateGet  (GIM(AdvCore), 'TRADV', BUNDLE2, RC=STATUS )
VERIFY_(STATUS)
if (numTracers > 0) then
do I=1, numTracers
call ESMF_FieldBundleGet (BUNDLE1, fieldIndex=I, field=FIELD, RC=STATUS)
VERIFY_(STATUS)
    call MAPL_FieldBundleAdd ( BUNDLE2, field, rc=STATUS )
    VERIFY_(STATUS)

 end do

end if
The code fails in:
call MAPL_FieldBundleAdd ( BUNDLE2, field, rc=STATUS )

I am trying to figure out why?
The fields in the DynCore bundle are added to the AdvCore bundle.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_GEOS-2DESM_FVdycoreCubed-5FGridComp_issues_1-3Femail-5Fsource-3Dnotifications-26email-5Ftoken-3DAL6ZCVKVXHFE7RQU2XIV76TQHABQVA5CNFSM4IRORNAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5PHO3A-23issuecomment-2D526284652&d=DwMCaQ&c=ApwzowJNAKKw3xye91w7BE1XMRKi2LN9kiMk5Csz9Zk&r=_r6-SBvtAqSGH0t7NYy2fPpq1wyPKQV-8ZiMEmovLb4&m=hr8ExrNa2QazMSPu5uT36DtCC-WfXFcdwLQjdN2XHZU&s=R0v9Q7b4EHRu40jhidxEIUbVxy7x1BtYox9Oe9daud4&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AL6ZCVPNYBBQYAYWCHNHYMTQHABQVANCNFSM4IRORNAA&d=DwMCaQ&c=ApwzowJNAKKw3xye91w7BE1XMRKi2LN9kiMk5Csz9Zk&r=_r6-SBvtAqSGH0t7NYy2fPpq1wyPKQV-8ZiMEmovLb4&m=hr8ExrNa2QazMSPu5uT36DtCC-WfXFcdwLQjdN2XHZU&s=T-gRP8aEnbstTpy4l8j0ZbWQzZ2mt35-e-SZ9vgaa3Q&e=.

Here is the reason why the code was crashing. The file AdvCore_GridCompMod.F90 has:
call MAPL_AddImportSpec( gc,                              &
    SHORT_NAME = 'TRADV',                                        &
    LONG_NAME  = 'advected_quantities',                        &
    UNITS      = 'unknown',                                    &
    DATATYPE   = MAPL_BundleItem,               &
    RC=STATUS  )

instead of:
call MAPL_AddImportSpec( gc,                              &
    SHORT_NAME = 'TRADV',                                        &
    LONG_NAME  = 'advected_quantities',                        &
    UNITS      = 'unknown',                                    &
    DATATYPE   = MAPL_BundleItem,               &
    DIMS       = MAPL_DimsHorzVert,                           &
    VLOCATION  = MAPL_VLocationCenter,                        &
    RC=STATUS  )

Note that I added the arguments DIMS and VLOCATION. They used to be there in an older version of the code. In any case, the code passes now the initialization stage. There is another issue (in the run method) that I am trying to address.

I am finally able to run the code. I needed to have the setting:
ADIABATIC: 1
in the AGCM.rc file. It used to be enough to have the setting (ADIABATIC: .true.) in the fv_layout.rc file.


Next App Router: Support Meta tags using new generateMetadata api

This adds support for meta data with our Seo block using the generateMedadata next api.

add support in graphQLFetch to use method: "GET" to enable request memoization (else the request would be made twice per site request)

TODO (later?):

[ ] move helper function that creates Metadata out of block data into library
[ ] support passtedTitle (needed? simply overwrite return of helper)
[ ] support passedCanonicalUrl (needed? simply overwrite return of helper - it's also in of openGraph.url - why?)
[x] support openGraph.image
[x] support structuredData (json-ld) (must be part of Page component!)

I don't think we need overriding the fields using passed* options.

@raphaelblum please review.

move helper function that creates Metadata out of block data into library

Do you want to do this in this PR or in a follow-up PR? Should we wait until we've gained some experience in projects?

Should we wait until we've gained some experience in projects?

yes


New Run: add a frame timer

Replace the "timer" that gets updated by the game every time you enter a boss room with a real timer.

Well, gotta implement the timer now since Afterbirth apparently doesn't use that method anymore.
rip


Root sample files, Dynamo 1.0 files

Purpose
A small PR fixing the render of files inside the root Sample folder. Additionally, adds custom rendering of the 'Author' field for recent files of older (xml) type.
UI Changes

Changes

files in the root Sample folder would now render normal size when in grid mode
custom rendering of the 'Author' field notifying the file is of old (XML) type for recent files

Reviewer
@QilongTang

hi @dnenov Everytime you touch the repo affecting the Dynamo Home behavior, please increment the package version in package.json and do npm -install to update package-lock.json so we can publish new Github release and do npm publish of newer version of this pacakge

Thanks @dnenov I am adding the version change myself.

hi @dnenov Everytime you touch the repo affecting the Dynamo Home behavior, please increment the package version in package.json and do npm -install to update package-lock.json so we can publish new Github release and do npm publish of newer version of this pacakge

Understood, Aaron!


Adds realtime updates to polygon 2d editing

This is a very small change that adds realtime updates to polygon 2d editing. I'm not sure if this is desirable for all users of Godot. If not, I'd suggest adding an option to enable this. I personally find this much more usable than the current editing. I'm wondering if this is something other users find useful too.
Here's a comparison of the current vs the modified behavior.
Current:

Modified:

I like it 👍

Very small yet very nice.

I was alway under the impression that the delay is a feature giving me the option to compare new to old?
Was that only me?

@toger5 yeap. I think there are pros and cons for this. but I prefer this PR.

good to hear.

That makes sense. Then it'd be good to render also the old outline while moving points, with less opacity or another color.

Put it behind a preference maybe? The compare use case actually sounds useful too. Or, even better, put it behind a keyboard modifier? Hold some key for the non-preview mode maybe?
We could then do that for the other things that now move/resize immediately maybe?

I think @RandomShaper's suggestion gives us the best of both worlds, without having to add a setting to toggle the behaviour (the more settings we have, the more we hide actual features that most users will never bother trying by themselves).

@akien-mga Yeah, @RandomShaper's design is better.

I love what @RandomShaper suggested.

You're making me blush. :)

@n-pigeon there is actually soo much love ;)

Based on @RandomShaper's proposal, I've added #10639 (also contains a lengthy rationale why I personally would prefer this current solution better).

I closed #10639 and force pushed the new outline implementation to this PR. Also updates the main description to avoid confusion of what this is actually implementing right now.

This looks good!

Is the option really spelled "An"?

@Zireael07 https://github.com/godotengine/godot/blob/d9e94fa0c308f8f157e71fb03bab5834308b56ee/editor/translations/de.po#L6532

@Zireael07 just the German translation I'm using, it's "On" in English.


اريد معرفة كيف يتم استرجاع نسخة ويندوذ من برنامج one drive

اريد ممعرفة كيف استرجع  نسخة من Backup  من الويندوذ في حالة حدوث خلل فية من جهاز كمبيوتر من one drive

@electronic256  Considering the nature of the issue, as advised, please open a service ticket in your tenant and follow with them for the resolution. We proceed to close it as here we are limited to documentation fixes and improvements only.
We will be very happy if you can share the outcome or resolution with us if you see documentation update is required. We will certainly update this documentation with that valuable information. Thanks again, for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.


Does zeroth-bot have gazebo emulation robots,Thinks.

The bot has a URDF  file that defines link and joints (, which we use in Isaac Gym. You can convert the URDF to SDF (Gazebo compatible format) using a converter like gz sdf


Add more background explanations to bundle-install and gemfile docs

Thanks so much for the contribution!
To make reviewing this PR a bit easier, please fill out answers to the following questions.
What was the end-user problem that led to this PR?
The problem was...

I thought the bundle-install and gemfile docs could have more background explanations.

What was your diagnosis of the problem?
My diagnosis was...

Given more clarifying background information regarding some Ruby-specific domain knowledge, this can help those newer to the Ruby community. ♦

What is your fix for the problem, implemented in this PR?
My fix...

I gave a general overview of various Ruby implementations, and explained what git submodules and gemspecs are.

Why did you choose this fix out of the possible options?
I chose this fix because...

@rubymorillo and @indirect gave me the go-ahead to give more background information about these topics 👍🏽
please let me know what y'all think, I'm happy to incorporate edits

Thank you for the feedback @colby-swandale 👌🏼. I incorporated it, let me know what you think.

Thanks! 🎉  @bundlerbot r+

@bundlerbot retry


get cors when i use docker to set couchdb

sorry to bother, when i test it on docker, i get this :

i need nginx to solve cors problem or something i miss?
thx

I think you need an https connection to start with. See this repo for sample docker-compose files.

I think you need an https connection to start with. See this repo for sample docker-compose files.

i understand. thanks for reply
Is there a way to use http?

If you're using from only PC, HTTPS is not required,
But CORS setting is always required.
Your CouchDB looks like less the configuration.
Could you please check the sample local.ini?
https://github.com/vrtmrz/self-hosted-livesync-server/blob/a4deee3eccf18ae26a91349231bb84b6c9c46fa3/conf/local.ini#L15-L20

If you're using from only PC, HTTPS is not required, But CORS setting is always required.
Your CouchDB looks like less the configuration. Could you please check the sample local.ini? https://github.com/vrtmrz/self-hosted-livesync-server/blob/a4deee3eccf18ae26a91349231bb84b6c9c46fa3/conf/local.ini#L15-L20

yeah, iuse it on ipad.
i will learn https to solve it.
thx bro


some improvements / fixes to read_map and also add write_map

add exports
move show(::WCSTransform) to upstream (WCS.jl)
add sel option in read_map
fix default POLCCONV to COSMO
add write_map

Codecov Report

Merging #10 (776e8b0) into main (0a88668) will increase coverage by 6.94%.
The diff coverage is 11.11%.

@@            Coverage Diff             @@
##             main      #10      +/-   ##
==========================================
+ Coverage   48.69%   55.64%   +6.94%
==========================================
  Files           2        2
  Lines         115      124       +9
==========================================
+ Hits           56       69      +13
+ Misses         59       55       -4

Impacted Files
Coverage Δ

src/enmap.jl
51.32% <11.11%> (+8.05%)
:arrow_up:

Continue to review full report at Codecov.

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


Allow custom publicPath in package.json or use homepage in development mode

Is your proposal related to a problem?

create react app not support multi entry.
so i created 2 react apps,
app1
iframe src=http://localhost/app2/
app2
then setup proxy as
app1: http://localhost/
app2: http://localhost/app2/
now app1 works, but app2 get some errors like:
http://localhost/static/resource_of_app2.png not found
the right path is:
http://localhost/app2/static/resource_of_app2.png
Describe the solution you'd like
Allow custom publicPath in package.json or use homepage in development mode
Describe alternatives you've considered
npm run eject

Duplicated of #7259

Thanks @miraage


How to turn On Off source or scean filters?

You will need to use SetSourceFilterEnabled(sourceName, filterName, filterEnabled) method.
https://github.com/obsproject/obs-websocket/blob/master/docs/generated/protocol.md#setsourcefilterenabled
If you need an example, I can provide it later, when I get to my PC. :)

Let me know if this works for you:
; This example demonstrates toggling filters on a scene and source, even if filter names are the same
;
; You will need:
; - a scene called "Scene"
; - a source (scene item) called "Display capture"
; - and two "Color Correction" filter for both the scene and the source

#Requires AutoHotkey >=2.0-
#Include lib/ObsWebSocket.ahk

class MyOBSController extends OBSWebSocket {

	filterStatusOnScene := false
	filterStatusOnSource := false

	AfterIdentified() {
		; get the actual visibility of the filters
		this.GetSourceFilter("Scene", "Color Correction", "scene-cc")
		this.GetSourceFilter("Display capture", "Color Correction", "source-cc")
	}

	GetSourceFilterResponse(res) {
		if (res.d.requestId = "scene-cc") {
			this.filterStatusOnScene := res.d.responseData.filterEnabled
		}
		if (res.d.requestId = "source-cc") {
			this.filterStatusOnSource := res.d.responseData.filterEnabled
		}
	}

}

obsc := MyOBSController("ws://<IP_ADDRESS>:4455/")

; change scene filter
F11::{
	obsc.filterStatusOnScene := !obsc.filterStatusOnScene
	obsc.SetSourceFilterEnabled("Scene", "Color Correction", obsc.Boolean(obsc.filterStatusOnScene))
}

; change source/scene item filter
F12:: {
	obsc.filterStatusOnSource := !obsc.filterStatusOnSource
	obsc.SetSourceFilterEnabled("Display capture", "Color Correction", obsc.Boolean(obsc.filterStatusOnSource))
}

@manjit24  let me know if my solution could solve your problem, so I can close this issue.

I tried f11 is working but I am not able to toggle source filter and also how do I just turn on or off with one button.

Make sure that SourceName is the name of your source, and the filter you want to toggle is named as FilterName; of course you can replace these names. I've tried this code below, and it works for me fine. It can toggle the filter even if the Scene or Source is inactive or invisible. So if you are not able to toggle, you might want to check the source and filter names, and if there is a filter on your source (this script will not add a new filter, only toggle the existing one).
#Include lib/ObsWebSocket.ahk

obsc := OBSWebSocket("ws://<IP_ADDRESS>:4455/")

F5::obsc.SetSourceFilterEnabled("SourceName", "FilterName", obsc.Boolean(true))
F6::obsc.SetSourceFilterEnabled("SourceName", "FilterName", obsc.Boolean(false))


feat(Picker): add new style of Picker to support dividerColor

Description
Add new style of Picker to support dividerColor in IOS.
Type of change
Please select the relevant option.

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

1

@ShinyLeee ts typing https://github.com/tuya/DefinitelyTyped/commit/89d2f41f1f3f2f72fa62de2e9741b749b483cdb5


训练问题

你好，我在运行训练代码的时候提示显存不足，请问可以提供一下训练好的pre-detector 和 conflict disambiguator的checkpoint吗

Certainly ! We have released the detector checkpoints trained by us (pre-detector & conflict disambiguator) in [Google Drive].

Tuw


Identity fields length

Each identity field length is currently limited to 32 bytes, which breaks many long names or emails, and makes using hashes impossible (e.g. ipfs hash for image field, or even custom fields).
A full IPFS hash that also notes protocol and type is 71 bytes (ipfs://ipfs/bafybeib7jqo7haiiruinbsqasv4jwhavm4pwe6fjr6b4fulnrhpe6rz5yi), so 128 makes sense across the board imo. We could split the hash into 4 custom fields and concat them, but this seems like an ugly standard-breaking hack that not many UIs and apps will be able to adopt in a clean way, so we'd rather propose a cleaner approach like raising this limit.

What's wrong with just hashing the identity field of your choice with one of BlakeTwo256, Sha256, Keccak256, ShaThree256?

Then I need to store the original value somewhere off chain, which makes cross-app usage impossible unless they all know where to look for this data? Imagine the scenario of adding a "tiktok" custom field. My app hashes the tiktok username and puts it into the field, and another app, like identity directory, wants to display that. How does it find the original username?

Or just store the original value alongside the identity value, as pure data.
struct HasTiktokIdentity {
  /// Derived from `self.tiktok`
  identity: Data,
  /// tiktok username
  tiktok: String,
}

Sorry, I'm confused, how do I use this approach on Kusama's identity pallet as-is now? The fields in the identity (including custom fields) are all limited to 32 bytes. I am not interested in adding new runtime logic or extending the identity pallet for a custom chain, I want to alter the data length so that the identity module on Kusama and Polkadot becomes more usable beyond the simple and short values it can store now.

Correct me if I am wrong, but I think you can derive IPFS multihash address with 32 bytes hash if you know the hash algorithm, which enum Data does includes it.

To properly identify the data source, you need the protocol and type too. So even if I could somehow shove an IPFS hash into 32 bytes, I still need room for ipfs://ipfs, otherwise a client has no idea if they should read http://, or ark:// or even ipfs://ipns.

Any further ideas on how to get around this problem without breaking the data into several fields and concatenating them, aside from raising the limit from 32 bytes to something like 128?

This is still relevant and currently an app-breaking problem


Reduce aw-reverse specificity

.aw-reverse can only be used on a row. Reduce the specificity from .aw-row.aw-reverse so that .aw-reverse can be used on non-row elements.

The flex-direction property may have the values row-reverse or column-reverse, I'm gonna create a .aw-reverse class that may be applied to any flex container acting as a column-reverse but it will act as a row-reverse if is inside an element with the aw-row class.

Discussed and decided this should not be resolved because the current implementation prevents misuse of .aw-reverse in the grid.


Would it be possible to have an image based on MacOs?

I don't have a clue about all the details, and don't have any mac device to test it.
(Would it actually work to run such an image on a linux machine?)
But the images provided for github actions could provide a good starting point: https://github.com/actions/virtual-environments#available-environments
Since it seems to have most if not all of the required tools already installed (and of course much more than that): https://github.com/actions/virtual-environments/blob/main/images/macos/macos-10.15-Readme.md
Any ideas or opinions?

Update:

(Would it actually work to run such an image on a linux machine?)

It doesn't seem to be allowed/possible to do that:https://serverfault.com/questions/607443/can-mac-os-x-be-run-inside-docker

But the images provided for github actions could provide a good starting point:

My bad, those are VMs, not docker images.


Must register plugin after models?

I received a strange error about this.collections being undefined when I attempted to register the bookshelf-validate plugin before registering my models. The error did not surface until calling into fetch / fetchAll.
Do you know why? It took me awhile to figure out that the order of registration seems to matter. Thanks!

Sorry, but I'm not sure about the reason, and have dropped support for this project of mine.

Ok, thanks for the response, kripod. What are you using in its place?

I would recommend using Objection.js instead of Bookshelf. It has some great modern coding principles implemented.


error: Cannot find module 'metadata.js'

hi:
npm run start and get error:
Cannot find module 'metadata.js'
why?

Closing as this isn't a bug with this repo - it's project specific.


Support automatic creation/processing of SDP audio format specific parameter "channel-order"

The channel-order parameter should be possible to automatically convert to/from the IS-04 Source "channels" property but requires careful mapping from the VSF TR-03 Appendix A channel symbols to the SMPTE ST 2110-30 Table 1 grouping symbols.

Resolved by 4ca7c5ff762255627a9fea7305946cad73585576


Show USD values in exchange view

It would be really helpful to see a USD estimate of the trade amount. I find myself having to jump between exchange and dashboard sometimes to manually calculate the USD value I'm trading.

Maybe something like this:


NameIdentifier claim returns UPN if requiest contain NameIDPolicy with format emailAddress

I am trying to set up AAD as a SAML IdP for an application that includes a NameIDPolicy in the SAML request. The policy states Format set to urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress. In this case AAD always returns userPrincipalName (or email) in the NameID attribute. This happens even if I customise the NameIdentifier with the Join() method and that way create a NameID that is valid according to the format requirements of urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress.  Can anyone confirm this behaviour, and if possible, explain why this happens?

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

ID: d362c1b5-1460-4de9-c53d-f0ec1ef07742
Version Independent ID: 9dc0a4df-81c8-13eb-720f-f589a3712e42
Content: Customizing claims issued in the SAML token for enterprise applications in Azure Active Directory
Content Source: articles/active-directory/develop/active-directory-saml-claims-customization.md
Service: active-directory
GitHub Login: @CelesteDG
Microsoft Alias: celested

@elpe33 Thanks for your feedback! We will investigate and update as appropriate.

@elpe33 Please open a new MSDN forum post and community will help address your query. Please refer to below link to MSDN forum to ask new question -
https://social.msdn.microsoft.com/Forums/azure/en-US/newthread?category=windowsazureplatform&forum=WindowsAzureAD&prof=required
Please mention the MSDN post link here and I will make sure it is updated. Thanks.

@elpe33 Please mention the MSDN post link here and I will make sure it is updated. Thanks.
We will now proceed to close this thread. If there are further questions regarding this matter, please open a new issue and we will gladly continue the discussion.


[bug] bazel cudnn-version-check is broken on python 2.7 / ubuntu 14.04

When I ./configure on /r1.1 or /r1.0, I get the following error:
Auto-Configuration Error: cuDNN version detected from /usr/local/cuda-8.0/include/cudnn.h (      5.      1. 5) does not match TF_CUDNN_VERSION (5.1.5)

For what it is worth, I counted the space in cudnn.h, and they match the number of spaces in that error message above. Not sure if related.
#define CUDNN_MAJOR      5
#define CUDNN_MINOR      1
#define CUDNN_PATCHLEVEL 5

$ ./configure
Please specify the location of python. [Default is /usr/bin/python]:
Please specify optimization flags to use during compilation [Default is -march=native]:
Do you wish to use jemalloc as the malloc implementation? (Linux only) [Y/n]
jemalloc enabled on Linux
Do you wish to build TensorFlow with Google Cloud Platform support? [y/N]
No Google Cloud Platform support will be enabled for TensorFlow
Do you wish to build TensorFlow with Hadoop File System support? [y/N]
No Hadoop File System support will be enabled for TensorFlow
Do you wish to build TensorFlow with the XLA just-in-time compiler (experimental)? [y/N]
No XLA support will be enabled for TensorFlow
Found possible Python library paths:
  /usr/local/lib/python2.7/dist-packages
Please input the desired Python library path to use.  Default is [/usr/local/lib/python2.7/dist-packages]
/usr/local/lib/python2.7/dist-packages
Do you wish to build TensorFlow with OpenCL support? [y/N]
No OpenCL support will be enabled for TensorFlow
Do you wish to build TensorFlow with CUDA support? [y/N] y
CUDA support will be enabled for TensorFlow
Please specify which gcc should be used by nvcc as the host compiler. [Default is /usr/bin/gcc]:
Please specify the CUDA SDK version you want to use, e.g. 7.0. [Leave empty to use system default]: 8.0
Please specify the location where CUDA 8.0 toolkit is installed. Refer to README.md for more details. [Default is /usr/local/cuda]:
Please specify the Cudnn version you want to use. [Leave empty to use system default]: 5.1.5
Please specify the location where cuDNN 5.1.5 library is installed. Refer to README.md for more details. [Default is /usr/local/cuda]:
Please specify a list of comma-separated Cuda compute capabilities you want to build with.
You can find the compute capability of your device at: https://developer.nvidia.com/cuda-gpus.
Please note that each additional compute capability significantly increases your build time and binary size.
[Default is: "3.5,5.2"]:
INFO: Starting clean (this may take a while). Consider using --expunge_async if the clean takes more than several minutes.
..........
ERROR: package contains errors: tensorflow/core/kernels/cloud.
ERROR: error loading package 'tensorflow/core/kernels/cloud': Encountered error while reading extension file 'cuda/build_defs.bzl': no such package '@local_config_cuda//cuda': Traceback (most recent call last):
	File "/mnt/6tb_internal/cnn_experiments/tensorflow_src/tensorflow/third_party/gpus/cuda_configure.bzl", line 815
		_create_cuda_repository(repository_ctx)
	File "/mnt/6tb_internal/cnn_experiments/tensorflow_src/tensorflow/third_party/gpus/cuda_configure.bzl", line 728, in _create_cuda_repository
		_get_cuda_config(repository_ctx)
	File "/mnt/6tb_internal/cnn_experiments/tensorflow_src/tensorflow/third_party/gpus/cuda_configure.bzl", line 584, in _get_cuda_config
		_cudnn_version(repository_ctx, cudnn_install_base..., ...)
	File "/mnt/6tb_internal/cnn_experiments/tensorflow_src/tensorflow/third_party/gpus/cuda_configure.bzl", line 311, in _cudnn_version
		auto_configure_fail("cuDNN version detected from %s ...))
	File "/mnt/6tb_internal/cnn_experiments/tensorflow_src/tensorflow/third_party/gpus/cuda_configure.bzl", line 93, in auto_configure_fail
		fail("
%sAuto-Configuration Error:%s ...))

Auto-Configuration Error: cuDNN version detected from /usr/local/cuda-8.0/include/cudnn.h (      5.      1. 5) does not match TF_CUDNN_VERSION (5.1.5)

Environment info
Operating System: Ubuntu 14.04 LTS
Installed version of CUDA and cuDNN:
(please attach the output of ls -l /path/to/cuda/lib/libcud*):
$ ls -l /usr/local/cuda/lib64/libcud*
-rw-r--r-- 1 root root   558720 Sep 14  2016 /usr/local/cuda/lib64/libcudadevrt.a
lrwxrwxrwx 1 root root       16 Sep 14  2016 /usr/local/cuda/lib64/libcudart.so -> libcudart.so.8.0
lrwxrwxrwx 1 root root       19 Sep 14  2016 /usr/local/cuda/lib64/libcudart.so.8.0 -> libcudart.so.8.0.44
-rw-r--r-- 1 root root   415432 Sep 14  2016 /usr/local/cuda/lib64/libcudart.so.8.0.44
-rw-r--r-- 1 root root   775162 Sep 14  2016 /usr/local/cuda/lib64/libcudart_static.a
-rwxr-xr-x 1 root root 79337624 Nov  7 13:54 /usr/local/cuda/lib64/libcudnn.so
-rwxr-xr-x 1 root root 79337624 Nov  7 13:54 /usr/local/cuda/lib64/libcudnn.so.5
-rwxr-xr-x 1 root root 79337624 Nov  7 13:54 /usr/local/cuda/lib64/libcudnn.so.5.1.5
-rw-r--r-- 1 root root 69756172 Nov  7 13:54 /usr/local/cuda/lib64/libcudnn_static.a

If installed from source, provide

The commit hash (git rev-parse HEAD)
The output of bazel version

r1.0, r1.1

Build label: 0.4.5
Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Thu Mar 16 12:19:38 2017<PHONE_NUMBER>)
Build timestamp:<PHONE_NUMBER>
Build timestamp as int:<PHONE_NUMBER>

Then there is this, but it seems that the error happens elsewhere.
https://github.com/tensorflow/tensorflow/blob/ede5ebe54f0689a53eeaf0fb1c9a25f136ab3a69/third_party/gpus/cuda_configure.bzl#L280

Your diagnosis looks correct to me.
Would you like to create a pull request?
You will also be able to verify your solution works for you locally.

@gunan
Apparently, the bzl file contents are being run on some super-restricted subset of python, with questionable outputs. It can't seem to import, and is missing functions like ord and print. lstrip also has strange behavior. The only way I can get anything to print to console was to use the auto_configure_fail function.
I added these lines as a diagnostic, and the results are very strange.
space_padded = lines[0].replace(define, "")
manual = ''.join([c for c in space_padded if c in "0123456789"])
auto_configure_fail(manual + "/" + lines[0] + "/" + space_padded + "/" + space_padded.lstrip()  )

The output is
Auto-Configuration Error: 01315/#define CUDNN_MAJOR      5/      5/      5

It appears that basic character iteration and lstrip are both broken. ord is not available so I couldn't print out hex-values easily for the string characters.
I think there is something wrong with the python interpreter that is being used by bazel.

bzl files are written in skylark. It is similar to python, but does not run under a python interpreter.
You can read more about it here:
https://bazel.build/versions/master/docs/skylark/index.html

@gunan thank you for that. I was so confused and frustrated earlier! I have submitted a fix for systems like mine.

Should I be aiming for r1.1 instead of master with my pull request? https://github.com/tensorflow/tensorflow/pull/8784

No, all pull requests should first go into master.
Thanks for the contribution!


New version: PPSSPPTeam.PPSSPP version 1.16.5

Pull request has been created with Komac v1.11.0 :rocket:
Microsoft Reviewers: Open in CodeFlow

@ezhil56x please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
@microsoft-github-policy-service agree [company="{your company}"]

Options:

(default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.

@microsoft-github-policy-service agree

(when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.

@microsoft-github-policy-service agree company="Microsoft"

Contributor License Agreement

@microsoft-github-policy-service agree


Student Stress Level Detection

ML-Crate Repository (Proposing new issue)
:red_circle: Project Title : Student Stress Level Detection
:red_circle: Aim : This project aims to predict student stress levels based on study load, academic performance and other stuff.
:red_circle: Dataset : https://www.kaggle.com/datasets/samyakb/student-stress-factors/data
:red_circle: Approach : Try to use 3-4 algorithms to implement the models and compare all the algorithms to find out the best fitted algorithm for the model by checking the accuracy scores. Also do not forget to do a exploratory data analysis before creating any model.

📍 Follow the Guidelines to Contribute in the Project :

You need to create a separate folder named as the Project Title.
Inside that folder, there will be four main components.

Images - To store the required images.
Dataset - To store the dataset or, information/source about the dataset.
Model - To store the machine learning model you've created using the dataset.
requirements.txt - This file will contain the required packages/libraries to run the project in other machines.

Inside the Model folder, the README.md file must be filled up properly, with proper visualizations and conclusions.

:red_circle::yellow_circle: Points to Note :

The issues will be assigned on a first come first serve basis, 1 Issue == 1 PR.
"Issue Title" and "PR Title should be the same. Include issue number along with it.
Follow Contributing Guidelines & Code of Conduct before start Contributing.

:white_check_mark: To be Mentioned while taking the issue :

Full name :
GitHub Profile Link :
Participant ID (If not, then put NA) :
Approach for this Project :
What is your participant role? (Mention the Open Source Program name. Eg. HRSoC, GSSoC, GSOC etc.)

Happy Contributing 🚀
All the best. Enjoy your open source journey ahead. 😎

Hi @kom-senapati implement 6-7 models for this project/problem statement.
Assigned to you.


BC 15 Sandbox Saas - Codeunit "Temp Blob" missing?

Hi.
TempBlob is marked for removal.
According to this link you are supposed to use codeunit "Temp Blob", but it is missing after downloading symbols from BC 15 Sandbox in Saas.
https://community.dynamics.com/business/f/dynamics-365-business-central-forum/368048/warning-al0432-table-tempblob-is-marked-for-removal-reason-replaced-by-blob-storage-module

Was missing dependencies on system application.


My/Your in naming of things

Which entry/section is this related to?
Idea for a future content type/pattern?
Good example
http://russelldavies.typepad.com/planning/2016/08/me-myself-and-mine.html

Maybe a caution about how the title of the thing is used in other contexts eg log into my MyAccount.

https://github.com/govau/content-guide/issues/41


QUIC test site

Is there any way to verify QUIC? I haven't met any site with QUIC support including Google and YouTube which some sources claim to support QUIC.

Hi, @FranklinYu , The red icon here indicates that the current website has QUIC enabled.

Yes I know that, but I cannot find a website that really enables QUIC. Therefore I have no way to know whether QUIC support is still working.

Have you tried https://www.google.com?

For debugging, you can open devtools and run the following code:
performance.getEntriesByType('navigation')[0].nextHopProtocol

Does Google show QUIC for you? It currently shows HTTP/2 for me. The code above gives "h2". I’m using macOS and chrome://flags/#enable-quic has been enabled.

For debugging, you can open devtools and run the following code:
performance.getEntriesByType('navigation')[0].nextHopProtocol

In my case it shows "http/2+quic/46" at https://www.google.com/, using Chrome at macOS.

Hi, @FranklinYu , is the problem solved?
I'm not sure, probably google.com has some sort of AB tests for different network environments.

The issue was fixed by re-installing Chrome. Thanks!


Dashboard remove/update footer logo

It seems like the update and delete function from "admin/settings/theme" footer logo doesn't work.
I get "error: API error" in bash

@AlphaMage this is resolved probably. I did it successfully without any issue.

@AlphaMage I have no errors, also.


Upgrade Pliny to latest version (0.16.3)

Mainly for this this and other fixes: Updated instrumentation handling https://github.com/interagent/pliny/pull/218

Just the 1 comment, but overall LGTM.

:+1:

Thanks!


adding reset key option to array_where function helper

This addition will give the users the ability to reset array keys when using array_where function helpers.

Target to master branch. It's a breaking change.

isn't it better to simply do array_values(array_where(...))?

I agree with @deleugpn because boolean flags in methods are not expressive.

@deleugpn surely we can, but we will try to reduce code in our app

@antonkomarev why breaking change ?

If you need this many times in your application, you could add your own helper which will do this job for you.

@mg-freelancer because any public method signature change is a breaking change.


gnmi-tools - fix/workaround for failure in demo pytest tests

(change_db not shared between handlers)

Superseded by async_stop PR.


WIP: Move to functions only and simplify bin

Codecov Report

Merging #68 into master will decrease coverage by 4.42%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #68      +/-   ##
==========================================
- Coverage   94.55%   90.13%   -4.43%
==========================================
  Files           5        5
  Lines         147      152       +5
  Branches       26       29       +3
==========================================
- Hits          139      137       -2
- Misses          8       15       +7

Impacted Files
Coverage Δ

lib/check.js
100% <100%> (ø)
:arrow_up:

lib/build.js
100% <100%> (ø)
:arrow_up:

lib/compile.js
100% <100%> (ø)
:arrow_up:

lib/run.js
68.96% <0%> (-24.14%)
: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 d26a59d...6022682. Read the comment docs.


Added functionality to automatically disable Flex Plugins on delete and install npm dependencies before deploy

These Changes use the Flex Plugin CLI to disable a Plugin in Flex on deletion of the resource in the pulumi stack.
Also I added an npm install before deployment.

Sorry for the force-pushes, was just squashing some commits and changing the author, such that my profile is linked tot the commit! (Was wrongly configured on my work-pc)

Should we really delete the serverless environment? I get some errors sometimes with this enabled.

This PR fix #12 #13 and #15

Implemented the changes! Sadly these will not fix #15. Sadly, I think this is a problem what is due to twilios release process of flex plugins and I am not sure on how to resolve the issue on the pulumi provider level. There is a workaround mentioned in the issue though.

This now also fixes #17

Amazing contributions @TheGarkine ! Thank you so much for that. Also, thank you @vernig!


full.js

I am working on something very similar, but instead the Node.js will be rewritten in JavaScript. Check it out: https://github.com/streamich/full-js

Very cool! I've noticed that there isn't really a full test/conformance suite for Node, is that something you'd be interested in collaborating on?

@hypoalex Yes


Add email as a Composer keyword

This is useful when you search for email Composer packages on packagist.org.
See these two searches for "mail" and "email" sorted by downloads:

https://packagist.org/search/?q=mail&orderBys[0][sort]=downloads&orderBys[0][order]=desc
https://packagist.org/search/?q=email&orderBys[0][sort]=downloads&orderBys[0][order]=desc

When you search for "email" Swiftmailer is not coming up in the results, because there is no "email" word in the name, keywords and description fields.

Thank you @hkdobrev.


Referendums part 1

🗃 Github Issue Or Explanation for this PR. (What is it supposed to do and Why is needed)
#1048
✅ Checklist

[x] Github issue details are up to date for people to QA.
[x] I have tested all my changes.

🕵♂ Notes for Code Reviewer
Referendums calls added (get referendums, get voice, get votes, vote referendum).
👯♀ Paired with
"nobody"

Code Looks good,.
@gguij004  pls review and test this PR


Attribute "borderWidth" has already been defined

When adding "compile 'com.android.support:design:22.2.0'" to my build.gradle file, I am receiving the error "Attribute "borderWidth" has already been defined" at compile time. There appears to be a naming collision with Android-Font-Integration's borderWidth and the Floating Action Button's borderWidth.

Hi, I've confirmed the issue and will fix it asap, probably over the weekend. The fix will consist of prefixing the attributes in this library with "fl" (for font-library) less likely to collide with other libraries, although it is by no means a guarantee.
If you have an idea for a better solution, please let me know. If you think a different prefix is more intuitive, also let me know.

Prefixing your XML attributes is the most common solution. I recommend using an acronym of your library as the prefix (e.g. "fi_" or "fil_").
Cheers

Then I should probably change the name of the project. I named it after the title of an accompanying blog post, to showcase what I explained therein, but it has since grown to an actual library. android-font-library better describes what it is, the prefix will then become "fl_" or "fl". Personally, I am more inclined to use camel case attribute names, as Android tends to use camel case as well. I noticed I have been inconsistent in that respect though, as the id font_extra_data is not in that format. I will change that name to flFontExtraData to maintain consistency. Changes will be applied during the weekend. Thanks for your input!

Done!

Righteous. Thanks @jfresen