Allow schedule task to run when user is not logged

When a task is created, the default option is to define a task with "Run only when user is logged on".
It's the default value because i doesn't need any credentials, the logged user's are used.
We can add a user login and password to the task, and it will be allowed to run when nobody is logged.
(I previously opened and closed this same PR by accident, this one should be fine)

Since we have changed all of the existing password prompts to secure strings, is there any way to make the password a secure string? Take a look at what ndouthit did with the WebDav and FTP plugins.

The RegisterTaskDefinition method expects a String and not a SecureString, so I can't really do this.
But I can adapt the prompt to hide the password like in the plugins, is it ok for you ?

That's probably better than leaving it in plain text.

One thing I noticed is that you are forcing someone to specify a user to run as. What if they don't want to specify a user and just want to run it as the app as been doing thus far? I think a question asking if they want to specify a run as user or use the default would be a good idea.

If we want the task to run when nobody is logged, we must specify a user.
But if we answer "No" to the question "Do you want the task to be able to run when user is not logged?", the task is registered with the default values, without having to enter a user and password.

Sorry, I didn't see you already had the question there, all of the formatting changes you committed as well threw me off and made it harder to see exactly what you did.

Ouch, I'm sorry, I didn't notice I changed formatting
I often do the Ctrl K, Ctrl D mechanically, I didn't mean to push these changes

I cleaned up the formatting with ReSharper so it's all good.


CORE-2438 DeleteGenerator does not handle parameter names and values with $ or \ properly

CORE-2438 Quote special characters \ and $ in regex replacement strings

PR#461 is related.

I think it seems like a good fix, thanks.


I cant load a new character to the game

Please check for duplicates, similar issues or closed issues with the same problem, as well performing simple troubleshooting steps (such as deleting the export folder if it's an issue with compiling, reinstalling Kade Engine) before submitting an issue.
If you are playing a downloaded version of the game, what operating system are you using?
Windows (x86), Windows (x86_64), Linux, or macOS? Specify below.
Windows ('x86_64')
What version of the game are you using? Look in the bottom left corner of the main menu.
1.5.4
Have you identified any steps to reproduce the bug? If so, please describe them below. Use images if possible.
I have not identified any steps to reproduce the bug.
Please describe your issue. Provide extensive detail and images if possible.
When I add a new character and load it into the game, the game just crashes.
I dont know why this happens but it just does it. Here are some videos/photos:
https://user-images.githubusercontent.com/70741560/124907666-c8158080-e02b-11eb-8e02-c741fec9e695.mp4

did you add a healthicon entry for them as well?

Yea I have, I used the 'face' one for it and in game it says it cant find it

did you add a healthicon entry for them as well?

Yea I have, I used the 'face' one for it and in game it says it cant find it

did you add a healthicon entry for them as well?

Yea I have, I used the 'face' one for it and in game it says it cant find it

That's because the game looks for a defined icon that is the name of that character.
So this is what you would do in HealthIcon.hx animation.add('cwin', [10, 11], 0, false, isPlayer);

That's because the game looks for a defined icon that is the name of that character.
So this is what you would do in HealthIcon.hx animation.add('cwin', [10, 11], 0, false, isPlayer);

Ok thanks ill see if that works

@meeptey2 I just loaded Kade engine after compiling it but it still doesn't want to load

Sorry for the long reply! Maybe its the custom folder?

Sorry for the long reply! Maybe its the custom folder?

Probably is, ill change the source code and update the file and edit this post stating if it worked.

I was able to figure out the problem! The .png file that the xml file was trying to reach did not exist. it for some reason was trying to find cwin.png_assets which didn't exist. I have know idea how that happened but I fixed it!


Visual Shader Editor - Can't close code preview on low-mid res display

No dupes of this issue were found with search. Or i can't search things. Either of these.
Godot version:
v3.2.2.stable.official from godot website.
Win10 x64
Screen resolution 1366 x 768 (laptop Dell Inspiron 5558)
Issue description:
Can't close code preview because it overlays the button that opens/closes it.
Also there is no "X" button to close code preview.

Only solution to close the code preview is to stretch inspector and sceene-manager side windows as much as possible, BUT IT WON'T HELP with much smaller screen resolutions:

Steps to reproduce:
Open blank project, enter visual shader editor on 1366 x 768 or narrower resolution. Open code preview.

Well, I could change the place of its button to the place at the right of the mode selector, but then someone will complain about the unavailability of the value box of grid snapping...

The minimum width of the preview box is 400, which seems arbitary. What about allowing the user to close the preview box by resizing it to a very small width? Then the order of controls won't matter.

To be honest I believe this is a design error. The button to switch between the two panels should not be inside one of the panels. Either we attach it to the right side somewhere, but it might overlap with the other buttons, or we simply move most menu and buttons to a toolbar.


Adds support for styling nixvim

Adds the nixvim target, with two additional options controlling transparency:
{
    stylix.target.nixvim.transparent_bg = {
        # Enables following terminal transparency in the main window area
        main = true;
        # Enables following terminal transparency in the sign column
        sign_column = true;
    };
}

This close #153 and supersedes #178. Thanks to @trueNAHO for the initial work.

@willemml, could you sync your branch with origin/master?

So awesome when I find somebody already made what I'm looking for! Thanks! 👍🎉

Any chance this will be merged soon(ish)?

Perhaps you could add some more transparency options? I'd like to set more of them, like here: https://github.com/siph/nixvim-flake/blob/master/config/visuals/theme/transparent-background.nix

When using neovim, Stylix also styles luabar, which doesn't seem to be the case with nixvim. Is this something that can be implemented easily?


403 forbidden errors in the adapter logs (subjectaccessreviews)

I0606 19:43:11.756324       1 round_trippers.go:436] POST https://<IP_ADDRESS>:443/apis/authorization.k8s.io/v1beta1/subjectaccessreviews 201 Created in 3 milliseconds
I0606 19:43:11.756338       1 round_trippers.go:442] Response Headers:
I0606 19:43:11.756342       1 round_trippers.go:445]     Content-Type: application/json
I0606 19:43:11.756346       1 round_trippers.go:445]     Content-Length: 260
I0606 19:43:11.756349       1 round_trippers.go:445]     Date: Wed, 06 Jun 2018 19:43:11 GMT
I0606 19:43:11.756370       1 request.go:836] Response Body: {"kind":"SubjectAccessReview","apiVersion":"authorization.k8s.io/v1beta1","metadata":{"creationTimestamp":null},"spec":{"nonResourceAttributes":{"path":"/","verb":"get"},"user":"system:anonymous","group":["system:unauthenticated"]},"status":{"allowed":false}}
I0606 19:43:11.756432       1 authorization.go:59] Forbidden: "/", Reason: ""
I0606 19:43:11.756644       1 wrap.go:42] GET /: (3.763752ms) 403 [[Go-http-client/2.0] <IP_ADDRESS>:32946]

how to set the log level to 2 (instead of default 1)
I notice that adapter uses k8s.io/apiserver -> pkg/util/logs for logging

if you expect to be authenticated as an actual user, make sure that your API server's proxy certificates are set up properly.

how to set the log level to 2 (instead of default 1)

The prometheus adapter, like much of the rest of kubernetes, uses glog.  The --v flag will set the log level.  Try running the adapter with --help for more information.


Use notify url to check payment response

Hello
I am trying to write a driver for the Quickpay gateway (https://quickpay.net//). I'd use an existing one, but I dont think there is one.
I've set it up correctly so far, so that I can make an authorize at the gateway, so reserve some money on the customers card.
I am missing how to get information back about the payment. Quickpay does not include these things in their response, but to a callbackURL instead.
I can understand there is something called a notifyUrl in Omnipay but I can't figure out how to use this to check the response on the callback url.
So my question is basicly; How do I check the response of the off-site payment, when it is not send to getReturnUrl() but to getNotifyUrl() instead?
The not-finished code for my driver can be seen here: https://github.com/NobrainerWeb/omnipay-quickpay
All help and guidelines are very much appreciated!

tl;dr: bug in memcached cacheing plugins meant that transients were not being
cached.
I would still question why the WC site was asking for 2500 database queries for
the category pages in the first place!
On 25/02/2016 11:00, sanderha wrote:

Hello
I am trying to write a driver for the Quickpay gateway
(https://quickpay.net//). I'd use an existing one, but I dont think there is one.
I've set it up correctly so far, so that I can make an authorize at the
gateway, so reserve some money on the customers card.
I am missing how to get information back about the payment. Quickpay does not
include these things in their response, but to a callbackURL instead.
I can understand there is something called a notifyUrl in Omnipay but I can't
figure out how to use this to check the response on the callback url.
So my question is basicly; How do I check the response of the off-site
payment, when it is not send to getReturnUrl() but to getNotifyUrl() instead?
The not-finished code for my driver can be seen here:
https://github.com/NobrainerWeb/omnipay-quickpay
All help and guidelines are very much appreciated!
—
Reply to this email directly or view it on GitHub
https://github.com/thephpleague/omnipay/issues/344.

--
Jason Judge, Director
Academe Computing Ltd
Office: 0191 251 0135 (with voice mail)
Mobile: 07771 656 448
14 Collingwood Terrace, Whitley Bay, NE26 2NP, UK
Registered in England No. 3205068; VAT Reg. No. 647 6432 17
<EMAIL_ADDRESS><EMAIL_ADDRESS>academe.co.uk http://academe.co.uk/

@judgej Did you mean to comment on another issue?

Haha! Sorry. No idea how that happened. I replied by email to an email from a colleague about something else altogether. And somehow it ended up here!? I must have slipped when hitting reply. I'll get me coat...

Hopefully I can add something to help here.
The notifyUrl is the callback URL that the remote gateway uses to notify your application of the transaction result. You will have a route at that URL to handle that response. Part of handling it will be to store the result of the transaction in the database, but only after checking the notification is from the trusted source (a hash is often used with a shared secret that itself is never sent between the application and gateway).
A very simple example of a notify handler for Sage Pay can be found here:
https://github.com/academe/OmniPay-SagePay-Demo/blob/master/sagepay-confirm.php
It uses the completePurchase() method to capture and validate the details sent from the gateway, and the ServerCompleteAuthorizeResponse message to return the result to let Sage Pay know whether we accept what was provided or not.
So, because this notification from the gateway is not in the user's session, it has no knowledge which transaction is being processed. So you need to store that in the database against the transactionId as a key. You give the transactionId to the gateway so that when it does the callback, it also passes back the transactionId so that you can use that to get the transaction out of the database so that it can be updated with the details of the authorisation.
When the user is returned to your site, the transactionId will be in their session still, and you can use that to look up the transaction in the database again to get the result then take appropriate action.
Some gateways do not provide enough details even in the Notification (e.g. Helcim, where you don't actually know how much was authorised). But it should give you a transactionReference at least so that you can then do another call to the gateway to get the full details, address, delivery notes etc. that will have been posted by the end user to the gateway site.
Does that provide enough context to how gateways that use callbacks work?

--
Thanks for your response, it explained quite a lot, and will most likely help me in getting further with my driver.
Would you mind taking a quick look at the process I am running for my driver, to see if it makes any sense? I am still wrapping my mind around the entire Omnipay process, so it could be great with a little feedback.
--
Currently it is set up like this:
First, I call authorize() (which is basicly the same as purchase() on my gateway. This then checks the data to send.
It then uses the send() method, to put this data into a PurchaseResponse , which then creates the RedirectURL, to send the user to an off-site payment form.
When the user then comes back to my website from the off-site payment CompletePurchaseRequest is used. Here I use $this->httpRequest->query->all() to send as data into  CompletePurchaseResponse
Currently the isSuccessful method on  CompletePurchaseReponse just returns true, because I dont get a response I can validate the response with. This is basicly where the issue with callback comes in.
--
The way this is set up, does it seem like the right way to do it?
Thanks a lot.

Hi,
What you have described above is a good example of a handler for returnUrl.  As a summary, your control flow works like this:

call authorize() (or maybe purchase()).
get a response. For a redirect gateway this will be a RedirectResponse
check for success.  If it's a success and a RedirectResponse then redirect the customer to the off-site payment form.
When the user then comes back to your website call completePurchase().

All of this is as you have described above. Have a look in the class documentation for omnipay-paypal RestPurchaseRequest for another example along similar lines.
Now your problem is that subsequent to [note 1] the redirect, you will get a notify sent to your notifyUrl. Not all gateways do this but clearly Quickpay does as does SagePay.  Some others that do include MultiCards and PaymentWall.
This message sent to your notifyUrl is a POST message containing a chunk of data. The content of that chunk of data varies from gateway to gateway but usually includes at least a status message (to update the status of the purchase) and some other data.
 Clearly Omnipay can't handle it because Omnipay is not an application, does not have a router and can't handle requests, it's just a data transmission layer.  It would be helpful if the documentation in your QuickPay driver contained the structure of this POST request so that anyone implementing QuickPay via Omnipay has that documented.
I will say in reference to @judgej 's example for SagePay, it's very unusual for a gateway to require you to call it back during the notifyUrl -- that usually happens during the returnUrl.  Normally the notifyUrl just needs to return a 200/OK response to indicate that the notification was successful.
I will take a look at your QuickPay driver and add any other comments there that I can think of.

[note 1]
This is not always subsequent to the redirect. The purchase() call can take some time and it's entirely possible for the POST to the notifyUrl to occur before the purchase() call returns. PaymentWall is an example of a gateway with this issue -- the purchase() call frequently takes as long as 45 seconds to complete, and the timeline of events frequently looks like this:

Application calls purchase()
PaymentWall send a POST to the notifyUrl with status = approved
purchase() call returns with status = error

In this case the purchase must be assumed to be a success because the notifyUrl status takes precedence over the return response from purchase().
Some further examples of the notifyUrl in use:

MultiCards sends a very short response when a transaction fails.  It usually looks like this: status=3 (status 3 used for all failures) and message="error". That is all.  Subsequent to a failure they will send a much longer POST message to the notifyUrl containing all of the detailed reason for failure: fraud score, message from the customer's bank, more fine grained status code and error message, etc.
AliPay (China) sends a sequence of up to 5 POST messages to the notifyUrl after a failed purchase giving detailed reasons for the failure.

Thank you so much for all this information, it helped me understand omniapy alot better.
Also thanks for the PR you submitted with suggestions, I'll have a look ASAP


change cliname of customproviders

Latest improvements:
MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Contribution checklist:

[ ] I have reviewed the documentation for the workflow.
[ ] Validation tools were run on swagger spec(s) and have all been fixed in this PR.
[ ] The OpenAPI Hub was used for checking validation status and next steps.

ARM API Review Checklist

[ ] Service team MUST add the "WaitForARMFeedback" label if the management plane API changes fall into one of the below categories.
adding/removing APIs.
adding/removing properties.
adding/removing API-version.
adding a new service in Azure.

Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs.

[ ] If you are blocked on ARM review and want to get the PR merged urgently, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.
Please follow the link to find more details on API review process.

/azp run automation - sdk

Can one of the admins verify this patch?

@dw511214992 do you still work on it?

@dw511214992 do you still work on it?

close this pr as the codegen is updated and we will update the metadata together. thx


[#145024711] Custom acceptance tests for HTTP(s) edge cases

What
We want our acceptance tests to tell us about regressions similar to the
MTU response size incident. This PR implements a set of HTTP tests
for edge cases that will try to replicate weird requests to apps we host
on our platform. It also adds a HTTP tester app with multiple endpoints
that can return headers or query strings in the body so tests can make
assertions.
This set of tests replaces response_size_test and print_request_headers
app that we used before.
List of tests:

large request bodies
large request headers
large response headers
egress connectivity to a service outside the PaaS
app-to-app connectivity between two apps on the PaaS
slow response
GET with many parameters
GET with UTF8 parameters?
GET with up to 2000 characters

How to review
Run a deployment from this branch and make sure the custom acceptance tests pass.
Who can review
Not @combor or @LeePorte

It would be good to update the Go version of the http_tester test app while we're here. It's currently set to 1.6 which is marked as deprecated in the current Go buildpack.

It would be good to update the Go version...

Updated. The import path was kinda weird as well.
"ImportPath": "debug_app",

The import path was kinda weird as well.
"ImportPath": "debug_app",

Does this have an effect on the start command?
"-c", "./bin/debug_app; sleep 1; echo 'done'",

I'll test it anyway, but if you know the answer before the tests finish..


MasterApeAdmin Audit Review

Issues:
01 (HIGH): Pending owner is not cleared with direct ownership

[x] Response: REQUEST to have this issue removed. This contract functionality only works if this contract is the owner of the MasterApe, which means direct transferOwnership calls can ONLY happen through from the MasterApeAdmin (assuming it is configured as the owner). The only masterApe.transferOwnership call happens in acceptMasterApeOwnership.

02 (HIGH): Unlimited emission rate

[x] Response: Added a MAX_BONUS_MULTIPLIER variable and require statement to ensure it cannot be set above the max

03 (LOW): Multiple reads in for() loops
Multiple reads of the same variables over for() loops could be avoided using the local variables, see L284, 332, 342, 344.

[x] Response: Updated using local variables to remove the need for multiple reads.

04 (LOW): Gas optimization of fixedPercentFarmPids[]
EnumerableSet could be used instead of fixedPercentFarmPids[] + getFixedPercentFarmFromPid[]. Another option is refactoring this pair into fixedPercentFarmPidToIndex[] mapping + getFixedPercentFarm[] array. Both solutions save gas, removing the for() loop L283.

[x] Response: Tried a couple of different approaches and decided to stick with the current approach due to side effects of changing the data structures. It's unlikely for the fixed farms to be above 10.

05 (INFO): Unused variable FixedPercentFarmInfo.pid

[x] Response: Choosing to leave in pid in the struct for easier readability.

06 (INFO): Immutable variable masterApe

[x] Response: Added immutable declaration to masterApe

Audit revised received!


dartanalyzer does not fail if options file includes a bogus file

My package has an analysis_options.yaml file which simply imports another options file using an include directive with a relative path. If that path is incorrect, the analyzer finds no error and reports success. If I fix the path, it finds an analysis error and reports failure.
Dart version: Dart VM version: 1.25.0-dev.11.0 (Wed Aug 23 04:58:17 2017) on "linux_x64"

I'm observing similar behaviors with dartanalyzer version 2.0.0-edge.64656316ec45936102c143e02a0342abf4e26f76.
/cc @bwilkerson

Analyzer will now report such issues, for example:
$ dartanalyzer analysis_options.yaml
Analyzing analysis_options.yaml...
  warning • The include file package:pedantic/analysis_options.yamlx in /Users/srawlins/code/dart-mockito/analysis_options.yaml cannot be found. • analysis_options.yaml:1:11 • include_file_not_found
1 warning found.

There is still a shortcoming in that analysis_options.yaml is not analyzed by default. Follow https://github.com/dart-lang/sdk/issues/29570 for updates on that aspect.


question

I have couple of question

Can I find online elk stack emulator online config testing
How much memory ELK stack will drain for small network monitoring suricata logs
Do I need to add json plugin in logstash like you put in docker file example
Can I add another conf file AND/OR different name in logstash/pipeline

I have remote suricata on which plan to install filebeats and send logs to logstash
This is my conf
ON  Filebeat side
prospectors:
- input_type: log
  paths:
    - /var/log/suricata/eve.json
    document_type: SuricataIDPS

output:
logstash:
hosts:
- logstash.hostname:["xxx.xxx.xxx.xxx:5044"]
ON logstash side
input {
beats {
port => 5044
codec => json
}
}
}
filter {
if [type] == "SuricataIDPS" {
date {
match => [ "timestamp", "ISO8601" ]
}
ruby {
code => "if event['event_type'] == 'fileinfo'; event['fileinfo']['type']=event['fileinfo']['magic'].to_s.split(',')[0]; end;"
}
}
if [src_ip]  {
geoip {
source => "src_ip"
target => "geoip"
#database => "/etc/logstash/GeoLite2-City.mmdb"
}
mutate {
convert => [ "[geoip][coordinates]", "float" ]
}
if ![geoip.ip] {
if [dest_ip]  {
geoip {
source => "dest_ip"
target => "geoip"
#database => "/etc/logstash/GeoLite2-City.mmdb"
}
mutate {
convert => [ "[geoip][coordinates]", "float" ]
}
}
}
}
}
output {
elasticsearch {
hosts => ["elasticsearch:9200"]
}
}

Hi @optisani, this question has little to do with Docker, therefore I believe you'll have more success asking it at https://discuss.elastic.co/.
Closing.


More, faster tests

Coverage remained the same at 98.684% when pulling 6430528b69bd9a8e5277c2c0f8a947e68dc7ac1e on wdwvt1:issue_37 into f22dc1ff533d09ecb591442a9719704a8eb1b85b on biota:master.


report 9005 error when inject one tikv network delay

Bug Report

What version of TiKV are you using?
./tikv-server -V
TiKV
Release Version:   6.1.0-alpha
Edition:           Community
Git Commit Hash:   c1a09b83f6da437f49758dc713150ebc0da5fcb9
Git Commit Branch: heads/refs/tags/v6.1.0-nightly
UTC Build Time:    2022-06-18 11:02:15
Rust Version:      rustc 1.62.0-nightly (7c4b47696 2022-04-30)
Enable Features:   pprof-fp jemalloc mem-profiling portable sse test-engine-kv-rocksdb test-engine-raft-raft-engine cloud-aws cloud-gcp cloud-azure
Profile:           dist_release
What operating system and CPU are you using?
8c 16GB
Steps to reproduce
[2022/06/19 12:42:26.473 +08:00] [INFO] [chaos.go:358] ["fault will last for"] [duration=15m0s]
[2022/06/19 12:42:26.478 +08:00] [INFO] [chaos.go:93] ["Run chaos"] [name=network-delay] [selectors="[endless-oltp-tps-846468-1-494/tc-tikv-0]"] [SelectorsRetainPolicy(selectors)="[endless-oltp-tps-846468-1-494/tc-tikv-0]"] [targetSelectors="[nil]"] [TargetSelectorsRetainPolicy(targetSelectors)="[nil]"] [experimentSpec="NetworkLatencySpec{Duration: "", Scheduler: , Latency: "364ms", Jitter: "", Correlation: "25"}"]
What did you expect?
do not report 9005 error
What did happened?
report 9005 error when inject one tikv network delay

/assign sticnarf

Introduced by https://github.com/tikv/client-go/pull/503

/type enhancement


Behat DI broken with symfony 3.3 ?

Hello,
I just updated my project to Symfony 3.3 and my tests are not working anymore (while everything was ok yesterday). It seems to be like a dependency injection error.
Here is the error and my behat.yml file
Fatal error: Uncaught ArgumentCountError: Too few arguments to function FeatureContext::__construct(), 0 passed and exactly 2 expected in /app/features/bootstrap/FeatureContext.php:58
Stack trace:
#0 [internal function]: FeatureContext->__construct()
#1 /app/vendor/behat/behat/src/Behat/Behat/Context/ContextFactory.php(123): ReflectionClass->newInstance()
#2 /app/vendor/behat/behat/src/Behat/Behat/Context/ContextFactory.php(80): Behat\Behat\Context\ContextFactory->createInstance(Object(ReflectionClass), Array)
#3 /app/vendor/behat/behat/src/Behat/Behat/Context/Environment/Handler/ContextEnvironmentHandler.php(104): Behat\Behat\Context\ContextFactory->createContext('FeatureContext', Array)
#4 /app/vendor/behat/behat/src/Behat/Testwork/Environment/EnvironmentManager.php(93): Behat\Behat\Context\Environment\Handler\ContextEnvironmentHandler->isolateEnvironment(Object(Behat\Behat\Context\Environment\UninitializedContextEnvironment), Object(Behat\Gherkin\Node\ScenarioNode))
#5 /app/vendor/behat/behat/src/Behat/Behat/Tester/Run in /app/features/bootstrap/FeatureContext.php on line 58

FYI here is the composer trace of my update and my new composer.lock file.
Have you got any idea ?
Thanks

I have updated my Symfony to 3.3, seems to work...
Your Behat version has also updated from 3.3.0 to 3.3.1 which includes a change to the way dependency injection works for typehinted parameters (although you're using named parameters which should not have affected it, but there is a chance).
Try reverting Behat back to 3.3.0 and see if that resolves it.
Also, it could be that your behat.yml does not have a parent default key. Is it a typo, or do you really mean to have indefault as the parent key?
https://gist.github.com/Stoakes/8478f1ceee891777d1899d8a8965a39f#file-behat-yml-L1

So focused on sf 3.3 that I didn't check my behat.yml file. My bad.
Thanks.

Would be good to share how you fix your behat.yml file.


indy-cli installing issue on MacOS Mojave 10.14.6

indy-cli installing issue on MacOS Mojave 10.14.6
Install Dependant Packages
Install libsodium, zeromq and openssl from HomeBrew
brew install libsodium
brew install zeromq
brew install openssl  # Optional as you most likely have this installed

Download libindy.dylib from https://repo.sovrin.org/macos/libindy/master and copy into /usr/local/lib/
cp libindy.dylib /usr/local/lib/libindy.dylib

Download indy-cli from https://repo.sovrin.org/macos/indy-cli/master/. (some folks may need to add executable permissions to indy-cli with chmod +x indy-cli)
Run it
./indy-cli

Results
 ~/Downloads > ./indy-cli                                                                                29.52h  Thu Dec 31 01:44:39 2020
dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
  Referenced from: /usr/local/lib/libindy.dylib
  Reason: image not found
fish: './indy-cli' terminated by signal SIGABRT (Abort)

Oh No! But I have OpenSSL installed! Hmmm, that libssl.1.0.0.dylib looks awfully specific. Let's look in /usr/local/opt/openssl/lib
/usr/local/opt/openssl/lib > ls -la                                                                      Thu Dec 31 14:30:59 2020
total 15088
drwxr-xr-x  10 cj1  staff      320 Dec  8 08:20 ./
drwxr-xr-x  14 cj1  staff      448 Dec 30 20:47 ../
drwxr-xr-x   4 cj1  staff      128 Dec  8 08:20 engines-1.1/
-r--r--r--   1 cj1  staff  2416572 Dec 30 20:47 libcrypto.1.1.dylib
-r--r--r--   1 cj1  staff  4090448 Dec  8 08:20 libcrypto.a
lrwxr-xr-x   1 cj1  staff       19 Dec  8 08:20 libcrypto.dylib@ -> libcrypto.1.1.dylib
-r--r--r--   1 cj1  staff   490600 Dec 30 20:47 libssl.1.1.dylib
-r--r--r--   1 cj1  staff   724904 Dec  8 08:20 libssl.a
lrwxr-xr-x   1 cj1  staff       16 Dec  8 08:20 libssl.dylib@ -> libssl.1.1.dylib
drwxr-xr-x   5 cj1  staff      160 Dec 30 20:47 pkgconfig/

Not the exact version, but 1.1 should be fine. Let's Fix (monkey patch) it by creating a symbolic link to libssl.1.1.dylib
ln -s libssl.1.1.dylib libssl.1.0.0.dylib

Run ./indy-cli again:
 ~/Downloads > ./indy-cli                                                                                273ms  Thu Dec 31 14:30:05 2020
dyld: Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib
  Referenced from: /usr/local/lib/libindy.dylib
  Reason: image not found
fish: './indy-cli' terminated by signal SIGABRT (Abort)

Ugh, same issue, different .dylib.  Let's do it again and "fix it easily" by creating another symolic link for libcrypto.1.1.dylib
ln -s libcrypto.1.1.dylib libcrypto.1.0.0.dylib

Run it again:
! > ~/Downloads > ./indy-cli                                                                                Thu Dec 31 14:33:16 2020
indy>
Good to go!
On to the issue:
Please forgive my ignorance, I'm new to the indy community. Is there a way to have the libindy.dylib not reference specific versions of OpenSSL? Also, is it anywhere in the roadmap to create homebrew packages for indy-cli and libindy

Closing.
I see that this issue is better addressed in indy-node with the osx setup script, which I could not get to run correctly, although I'm working on doing the Ubuntu 16.04 python setup instead with this issue https://github.com/hyperledger/indy-node/issues/1638

Closing.
I see that this issue is better addressed in indy-node with the osx setup script, which I could not get to run correctly, although I'm working on doing the Ubuntu 16.04 python setup instead with this issue https://github.com/hyperledger/indy-node/issues/1638


Read iiasa-creds by default from known location

Please confirm that this PR has done the following:

~Tests Added~ (requires more work on GitHub Actions to store secrets, will be added as part of the IIASA-API-tests refactoring
[x] Documentation Added
[x] Description in RELEASE_NOTES.md Added

Description of PR
This PR adds a utility to save the iiasa-api credentials in a known location and provides a utility to store them (pyam.iiasa.set_config(<user>, <password>)). This will make it easier for users to not write their password in workflow scripts. Providing credentials as kwargs to Connection is marked as deprecated and will be removed in the future.
Documentation and tutorials are updated and built here on readthedocs.

One thing I would maybe considered refactoring is update _get_token to avoid returning tuple.

I'm not sure what you mean here?

One thing I would maybe considered refactoring is update _get_token to avoid returning tuple.

I'm not sure what you mean here?

I meant that _get_token is doing 2 things: handling credentials and getting token, if you split it into 2 functions than maybe result of _get_token will be just token (as originally) instead of tuple containing token and user name.

I meant that _get_token is doing 2 things: handling credentials and getting token, if you split it into 2 functions than maybe result of _get_token will be just token (as originally) instead of tuple containing token and user name. But this is not critical as _get_token is just private/internal function.

I went a few steps into the rabbit hole of separating these two functions - but I didn't find a way to do it elegantly, so let's leave a refactoring until a more comprehensive update of the API...

ignoring codecov/project, this should have been set to "informational"...


weights and measures now packaged and nexus units function added

Codecov Report
Base: 78.05% // Head: 78.02% // Decreases project coverage by -0.02% :warning:

Coverage data is based on head (23741d2) compared to base (aab2c79).
Patch coverage: 39.13% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #634      +/-   ##
==========================================
- Coverage   78.05%   78.02%   -0.03%
==========================================
  Files         179      181       +2
  Lines       30762    30784      +22
==========================================
+ Hits        24011    24019       +8
- Misses       6751     6765      +14

Impacted Files
Coverage Δ

resqpy/weights_and_measures/nexus_units.py
6.66% <6.66%> (ø)

resqpy/weights_and_measures/__init__.py
100.00% <100.00%> (ø)

...esqpy/weights_and_measures/weights_and_measures.py
95.27% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


New format variable for paths relative to execution directory

Our current --format accept source argument that prints path to robot file where issue was detected. It is absolute path. It would be good to also have relative path (to execution directory) ie:
now
C:\test_example\robot_files> robocop --format "{source}:{line}:{col} [{severity}] {rule_id} {desc}"
C:\test_example\robot_files\nested\test.robot:20:0 [W] 0201 Missing documentation in keyword

proposed
C:\test_example\robot_files> robocop --format "{rel_source}:{line}:{col} [{severity}] {rule_id} {desc}"
nested\test.robot:20:0 [W] 0201 Missing documentation in keyword

Closed by #223


Script for VSRL Agents not working

I am trying to use the framework, but unfortunately the provided scripts do not work. I'm not sure if this is an issue on my end, or if it may be because of unspecified dependency versions. I would be really happy for some help.
Expected Behavior
Running the scripts/train_rl.py should work. The error I get is the following.

Possible Solution
Add a requirements.txt file
Steps to Reproduce
As stated in the README.
python scripts/train_rl.py --env_name ACC --pbar true

P.S. it is required to specify the pbar parameter as true/false. The README does not state that.
Context (Environment)
Branch - master
Commit hash - 93d85dd
Environment - macOS

Package Versions

absl-py==0.11.0
attrs==20.2.0
auto-argparse==0.0.7
cachetools==4.1.1
certifi==2020.6.20
chardet==3.0.4
cloudpickle==1.6.0
comet-ml==3.2.5
configobj==5.0.6
cycler==0.10.0
dataclasses==0.6
dulwich==0.20.6
everett==1.0.3
fsspec==0.8.4
future==0.18.2
google-auth==1.22.1
google-auth-oauthlib==0.4.1
grpcio==1.33.1
gym==0.17.3
idna==2.10
jsonschema==3.2.0
kiwisolver==1.3.0
Markdown==3.3.3
matplotlib==3.3.2
netifaces==0.10.9
numpy==1.19.2
nvidia-ml-py3==7.352.0
oauthlib==3.1.0
opencv-python==<IP_ADDRESS>
parsimonious==0.8.1
Pillow==8.0.1
portion==2.1.3
protobuf==3.13.0
psutil==5.7.3
pyasn1==0.4.8
pyasn1-modules==0.2.8
pyglet==1.5.0
pyparsing==2.4.7
pyrsistent==0.17.3
python-dateutil==2.8.1
pytorch-lightning==1.0.4
PyYAML==5.3.1
requests==2.24.0
requests-oauthlib==1.3.0
rlpyt @ git+https://github.com/astooke/rlpyt.git@f04f23db1eb7b5915d88401fca67869968a07a37
rsa==4.6
scipy==1.5.3
six==1.15.0
sortedcontainers==2.2.2
tensorboard==2.3.0
tensorboard-plugin-wit==1.7.0
toml==0.10.1
torch==1.7.0
torchvision==0.8.1
tqdm==4.51.0
typing-extensions==<IP_ADDRESS>
urllib3==1.25.11
websocket-client==0.57.0
Werkzeug==1.0.1
wrapt==1.12.1
wurlitzer==2.0.1

This should be fixed by b1508cc, but please let me know if you run into any issues.
In the new year we'll add some tests to ensure that all provided examples run properly, as well as a Dockerfile. Sorry for the delay, and thanks for taking the time to file this issue!


Multi Arena Manager

Instead of using a single ArenaManager for all ArenaGame, we will use one ArenaManager for each ArenaGame.
This makes the arena settings more flexible.

Almost done.
Create Arena / Join Arena command remaining.


Hitting the stop button (square) claims that the application finished, but it keeps running on the phone

Hitting the stop button (square) claims that the application finished, but it keeps running on the phone. And the debugger connection persists, you can even continue stepping in the application. “flutter stop” from the command line will eventually kill the app.

@devoncarew if this is hard to fix, please bump to later Milestone.

Going to close this in favor of the IntelliJ plugin.


[GSK 2658] Custom scanner

Description
Add an example manager to deal with new data types in the scan report. The example manager should be able to add examples and render html code to be integrated into the report.
Related Issue

Type of Change

[ ] 📚 Examples / docs / tutorials / dependencies update
[ ] 🔧 Bug fix (non-breaking change which fixes an issue)
[ ] 🥂 Improvement (non-breaking change which improves an existing feature)
[x] 🚀 New feature (non-breaking change which adds functionality)
[ ] 💥 Breaking change (fix or feature that would cause existing functionality to change)
[ ] 🔐 Security fix

Checklist

[x] I've read the CODE_OF_CONDUCT.md document.
[x] I've read the CONTRIBUTING.md guide.
[x] I've updated the code style using make codestyle.
[x] I've written tests for all new methods and classes that I created.
[x] I've written the docstring in Google format for all the methods and classes that I used.

Could you please also add on this branch a way to disable the "warning" and "Debug your issues in the Giskard hub" parts from the HTML templates?


FlushAndEvict Breaks ClassSample Test

Hello there!
Could someone teach me why the ClassSample playgroung program breaks if I add this line?

//add on line 139
// Shift head and retry - should not find in main memory now
h.Log.FlushAndEvict(true);

after the addition, the code looks like this and the test breaks:
            if (status == Status.OK && g1.value.value == key.key)
                Console.WriteLine("Success!");
            else
                Console.WriteLine("Error!");

            // Shift head and retry - should not find in main memory now
            h.Log.FlushAndEvict(true);

            MyOutput g2 = new MyOutput();
            key = new MyKey { key = 46 };
            status = h.Read(ref key, ref input, ref g2, context, 0);

            if (status == Status.PENDING)
            {
                h.CompletePending(true);
                status = h.Read(ref key, ref input, ref g2, context, 0);
            }

            if (status == Status.OK && g2.value.value == key.key)
                Console.WriteLine("Success!");
            else
                Console.WriteLine("Error!");

Strangely, the same thing does not break this test:
https://github.com/microsoft/FASTER/blob/4d9496642faf5f7bfde8b1612fa0bf03bedfdbcf/cs/test/BasicFASTERTests.cs#L266
Thanks!

Please ignore this for a while. Now I realized the tests are not equivalent. I'll file another issue if needed.
Thanks


associating a commit with a CodePush release

Is there a way to link a particular commit or tag with a release in CodePush? I want an easy method to look in the CodePush interface and see exactly what version of my code (not app version) is contained in that release. This will help our version control management process

File update

Closing as stale.


torchaudio.load not loading all the frames

🐛 Describe the bug
torchaudio.load not loading all the frames in the latest version(2.2.1).
Example audio can be downloaded from here
import torchaudio
file = "harddisk_operation.wav"
audio, sr = torchaudio.load(file)
print("num_frames:", audio.shape[-1])

For the above code,
torchaudio 2.2.1 gives an output - num_frames: 832779
torchaudio 2.0.0 gives an output - num_frames: 1110372
Versions
Collecting environment information...
PyTorch version: 2.2.1+cu121
Is debug build: False
CUDA used to build PyTorch: 12.1
ROCM used to build PyTorch: N/A
OS: Ubuntu 20.04.2 LTS (x86_64)
GCC version: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
Clang version: Could not collect
CMake version: Could not collect
Libc version: glibc-2.31
Python version: 3.10.6 (main, Oct 24 2022, 16:07:47) [GCC 11.2.0] (64-bit runtime)
Python platform: Linux-5.15.0-94-generic-x86_64-with-glibc2.31
Is CUDA available: True
CUDA runtime version: Could not collect
CUDA_MODULE_LOADING set to: LAZY
GPU models and configuration:
GPU 0: NVIDIA RTX A6000
GPU 1: NVIDIA RTX A6000
GPU 2: NVIDIA RTX A6000
GPU 3: NVIDIA RTX A6000
GPU 4: NVIDIA RTX A6000
GPU 5: NVIDIA RTX A6000
GPU 6: NVIDIA RTX A6000
GPU 7: NVIDIA RTX A6000
Nvidia driver version: 525.147.05
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True
CPU:
Architecture:                       x86_64
CPU op-mode(s):                     32-bit, 64-bit
Byte Order:                         Little Endian
Address sizes:                      43 bits physical, 48 bits virtual
CPU(s):                             256
On-line CPU(s) list:                0-255
Thread(s) per core:                 2
Core(s) per socket:                 64
Socket(s):                          2
NUMA node(s):                       2
Vendor ID:                          AuthenticAMD
CPU family:                         23
Model:                              49
Model name:                         AMD EPYC 7662 64-Core Processor
Stepping:                           0
Frequency boost:                    enabled
CPU MHz:                            2630.056
CPU max MHz:                        2154.2959
CPU min MHz:                        1500.0000
BogoMIPS:                           3999.82
Virtualization:                     AMD-V
L1d cache:                          4 MiB
L1i cache:                          4 MiB
L2 cache:                           64 MiB
L3 cache:                           512 MiB
NUMA node0 CPU(s):                  0-63,128-191
NUMA node1 CPU(s):                  64-127,192-255
Vulnerability Gather data sampling: Not affected
Vulnerability Itlb multihit:        Not affected
Vulnerability L1tf:                 Not affected
Vulnerability Mds:                  Not affected
Vulnerability Meltdown:             Not affected
Vulnerability Mmio stale data:      Not affected
Vulnerability Retbleed:             Mitigation; untrained return thunk; SMT enabled with STIBP protection
Vulnerability Spec rstack overflow: Mitigation; safe RET
Vulnerability Spec store bypass:    Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1:           Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:           Mitigation; Retpolines, IBPB conditional, STIBP always-on, RSB filling, PBRSB-eIBRS Not affected
Vulnerability Srbds:                Not affected
Vulnerability Tsx async abort:      Not affected
Flags:                              fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibrs ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd amd_ppin arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip rdpid overflow_recov succor smca sme sev sev_es
Versions of relevant libraries:
[pip3] numpy==1.26.4
[pip3] torch==2.2.1
[pip3] torchaudio==2.2.1
[pip3] triton==2.2.0
[conda] numpy                     1.26.4                   pypi_0    pypi
[conda] torch                     2.2.1                    pypi_0    pypi
[conda] torchaudio                2.2.1                    pypi_0    pypi
[conda] triton                    2.2.0                    pypi_0    pypi

I observed a similar problem with a .flac file that gave 661794 samples in 2.0.0 (which matches what soxi and ffprobe report for that file), but only 656640 samples in 2.3.1. In 2.4.0, the length is correct again. Can you also check in 2.4.0?


CleanupHelperDomain_ won't unload

Hello there,
I've been using RazorEngine within IIS context. I've did as explained in the documentation: constructed a separate AppDomain where template engine will do its thing. However, I've noticed that my assembly (my code that actually  turns .cshtml into string) will not unload from IIS process. This is valid even if I unload new AppDomain after using it. I did some research and my code/assembly is still loaded in CleanupHelperDomain_xxx domain, which is constructed by RazorEngine (CrossAppDomainCleanup).
Why is that domain required and how to unload that domain as well? Perhaps I'm doing something wrong but in setting up the engine, but on the other hand I was only following the docs.
Appreciate if you can spare a minute to provide some pointers how to go around this.
Kind regards,
Novakovic Dejan

Any updates on this?


Refine structure of 'build-database' target in 'build.xml'

Previously the build-database command always built the main database, applied the update deltas and then deployed the demo data. This patch refines the structure of this command to have three dependencies:

build-database-foundation
build-database-apply-deltas
build-database-deploy-demodata

While calling ant build-database has the exact same behaviour as before, it is now also possible e.g. to build the database incl. deltas, but without installing the demo data, by calling ant build-database-foundation build-database-apply-deltas.

Thank you @svenmuennich :+1:

Thank you for the quick merge!


as const on an enum fails if going through a namespace

This fails as is, but works if ns. is dropped:
namespace ns {
    export enum Foo { X }
    ns.Foo.X as const;
}

Looks like this has always been broken (going back to 3.5.1).

For the record: this is due to isValidConstAssertionArgument, in the *AccessExpression cases, the code works only for identifiers.  So even (Foo).X as const is broken.


Allow movewindow binds to move between monitor-workspaces

The movefocus can move between workspaces on monitors, I would like to allow movewindow to have the same behavior.

done in 037d4ed422bb3bb34617f444a360a8abab6863cb


INS 2774 removed rootdomain from Call arguments

- What I did
Move rootDomain reference from Call method arguments to member field
- How I did it
Removed rootDomain reference from Call method arguments. Added rootDomain reference field to member and edited memberconstructor.
- How to verify it
Call call method
- Description for the changelog

Three merges with master? Maybe its simpler to use rebase here?


Exported enum with negative integer value has incorrect default values

Godot version
4.1.3.stable
System information
Godot v4.1.3.stable (f06b6836a) - Freedesktop SDK 23.08 (Flatpak runtime) - X11 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1660 SUPER (nvidia) - AMD Ryzen 5 2600 Six-Core Processor (12 Threads)
Issue description
When exporting a variable of an Enum  type without a default value, of where the enum types includes negative integer values, the value of the exported enum will not have the desired integer value, and instead defaults to 0:
Current behaviour:
enum TestEnum {  Val1 = -1, Val2 = 1 }

@export var a: TestEnum # Displays "Val1" in inspector as default

func _ready() -> void:
   print(a) # Prints 0

Expected behaviour:
enum TestEnum {  Val1 = -1, Val2 = 1 }

@export var a: TestEnum # Displays "Val1" in inspector as default

func _ready() -> void:
   print(a) # Prints -1

The issue has been tested on other systems by discord users of the Godot discord server.
Steps to reproduce

Create a script with some enum that has negative integer values
Export a variable of the created enum type
Do not set the value in the inspector
Check value of exported variable

Minimal reproduction project
Possibly N/A
enum_bug.zip

Confirmed on current master.
This gives the correct result, so it's indeed related to export
enum TestEnum { Val1 = -1, Val2 = 1 }

#@export var a: TestEnum

func _ready() -> void:
	print(TestEnum.Val1)

I think this is not a bug in itself, you're not initialising the value and there's no default value for an enum like this
The issue is rather the lack of an error here IMO

there's no default value for an enum like this

IMHO perhaps part of the confusion comes from the editor still shows  Val1 instead of none by default.


[Feature Request] Horizon Chart

Following a suggestion I received on Bokeh Discourse page, wouldn't it be nice to have a Horizon chart / plot in Holoviews similar to those Bokeh used to support in earlier 0.12 versions?

 Quoting https://rpubs.com/ramanraja/horizon:

(1) Both positive and negative values are plotted above the x axis. Color is used to differentiate between them. Positives are blue, negatives are red. Think of it as an origami. You fold the paper horizontally at the center, so postive and negative parts are now packed within the upper half of the paper.
(2) Cut the graph along the dotted lines and fold them back. But now they will overlap. To differentiate between high and low numeric values, color saturation is used: darkest blue represents largest positive numbers; medium blue stands for moderate values; and pale blue represents the smallest positive values. Similarly on the negative side. Note that there are three shades each of blue and red, corresponding to the three levels of cut we have made.

Is this what you're after? I must say I don't find them super intuitive but that may be just me.

@poplarShift yes, that's exactly what I'm after. I'm new to data viz but I find myself in the very same situation stated by the link you provided:

Line graphs are best suited for Time Series data. But if a large number of such plots have to be compactly presented on a cramped dashboard, they tend to become less useful. [...] Horizon plots are ideally suited for this situation.

Well with bokeh, panel, and other interactive technology around, the cramped dashboard argument does not really convince me :) though in print it may be worth the hassle of explaining the reader what all of the colours mean.
As a first solution (workaround?) one could implement the wrapping manually, transforming one timeseries into one timeseries per section of y coordinate,  and then overlay them as Area elements. Could even be done as operation.

I'm working (trying to work, at least) on workaround based on Bokeh's ridge plot, but I'm having some interaction issues even with HoverTool which I believe has been highly used and supported.
Furthermore, as you didn't find this implementation request reasonably useful, do you have any other option in mind to visualise multiple time-series data stream in a single plot?

Well actually now that I know what it is it doesn't sound that complicated anymore. Your example above though could have profited from a colorbar.
In the end one can see those charts as a twist on normal heatmaps where some of the small-scale gradients are not shown by color but by height inside each row, if that makes any sense.
As I said, you can just do the clipping and folding yourself, then make an NdOverlay of several hv.Area elements and maybe get some inspiration here: https://github.com/poplarShift/pyviz-recipes/blob/master/notebooks/styling_by_attribute.ipynb on styling their colors according to a colormap. I currently don't have a use case for it but if anyone wants to implement it more principally as an hv.Operation that shouldn't be too hard.


Should the serializer/parser know about names ?

Currently in nmp we only know about the id switched on, not the name of the packet, it's needed to do the mapping there.
Does it make sense for the serializer/parser to know about "names" ?
What are "packet names" ? Just type names as currently (but knowing the type read in the meta is apparently confusing so that's not a good solution) ? Maybe it could be possible to add some meta information in the switch ?
Or maybe the mapping id to packet name shouldn't be the job of the serializer/parser and should be let to users ? (as it currently done in nmp)

Ah, I know of a good way to solve that problem: have the possibility of giving names to switch cases, just like container fields have names.

Possibilities:
have names in switch fields
{
        "name": "value",
        "type": [
          "switch",
          {
            "compareTo": "type",
            "fields": [
              {"value":"0","type":"end","name":"end"},
              {"value":"1","type":"byte","name":"byte"},
              {"value":"2","type":"short","name":"short"},
              {"value":"3","type":"int","name":"int"},
              {"value":"4","type":"long","name":"long"},
              {"value":"5","type":"float","name":"float"},
              {"value":"6","type":"double","name":"double"},
              {"value":"7","type":"byteArray","name":"byteArray"},
              {"value":"8","type":"string","name":"string"},
              {"value":"9","type":"list","name":"list"},
              {"value":"10","type":"compound","name":"compound"},
              {"value":"11","type":"intArray","name":"intArray"}
            ]
          }
        ]
      }

It's kind of ugly and it doesn't quite solve the problem of the field that would hold the name.
Hiding the compared field ? (https://github.com/PrismarineJS/node-minecraft-protocol/pull/274#discussion_r43066274)
a new "mapper" type that would transform the id to name and vice-versa:
["mapper", {"fromField":"typeId",
                 "toField":"typeName","conversions":{"0":"end","1":"byte","2":"short",...}}]

It looks cleaner but it kind of add a level of serialization/parsing, but maybe that's ok.


[EPIC 2] Frontend Implementation

both interfaces are the same with different buttons enabled for different actors
[ ] #6

proposal creation involves invoice creation
for each DAO the client address is hard coded in the smart contracts (it's supposed to be the address for each individual DAO)
there should be a multi-sig from the DAO
above requires a fall back, where the user can input a custom address
NICE-TO-HAVE/SUGGESTION: there should be a reference to their working groups, like a hats tree or an overview in their docs

[ ] #7

this is where the releasing, locking, and milestone management is done
extra button for releasing would be disabled for the recipient
the builder interface is not a Safe app yet
Parse proposal data to check if a smart invoice is being created and display all the details.

[ ] #8

need to match the designs to show milestones in the same way

Questions

Does the funding DAO have to pass a DAO proposal every time?
Do we need to deploy a specific sub-graph?

We should be fine with cross-referencing the existing sub-graphs.
-...

@wtfsayo should check whether Nouns Builder is using subgraph.

@dan13ram will be updating all packages to the latest version, so we are using them consistently.

All packages are upgraded to v 0.1.16, we should be using this latest version on nouns builder.

E2E testing required #22


Narrator doesn't announce the accessible name of list items present below 'History' tab item

A team member will update this issue with more details soon.

This is your friendly Microsoft Issue Bot. I created this issue automatically as requested by a team member.

This is your friendly Microsoft Issue Bot. I created this issue automatically as requested by a team member.


build error for exoscale

Hi, I build this plugin on mips64le platform. With an error show:
[root@master1 external-dns]# export GO111MODULE=on
[root@master1 external-dns]# go mod download
[root@master1 external-dns]# make build
CGO_ENABLED=0 go build -o build/external-dns -v -ldflags "-X github.com/kubernetes-incubator/external-dns/pkg/apis/externaldns.Version=v0.5.16-dirty -w -s" .
github.com/kubernetes-incubator/external-dns/provider
# github.com/kubernetes-incubator/external-dns/provider
provider/exoscale.go:53:38: cannot use client (type *egoscale.Client) as type EgoscaleClientI in argument to NewExoscaleProviderWithClient:
	*egoscale.Client does not implement EgoscaleClientI (wrong type for CreateRecord method)
		have CreateRecord("context".Context, string, egoscale.DNSRecord) (*egoscale.DNSRecord, error)
		want CreateRecord(string, egoscale.DNSRecord) (*egoscale.DNSRecord, error)
make: *** [build/external-dns] Error 2

How to make it with any errors? Please help me.

Did you try to define:
GOOS=linux GOARCH=mips64le go build -o build/external-dns -v -ldflags "-X github.com/kubernetes-incubator/external-dns/pkg/apis/externaldns.Version=v0.5.17-dirty -w -s" .

This might not work on a emulated mips64le platform.

Did you try to define:
GOOS=linux GOARCH=mips64le go build -o build/external-dns -v -ldflags "-X github.com/kubernetes-incubator/external-dns/pkg/apis/externaldns.Version=v0.5.17-dirty -w -s" .

This might not work on a emulated mips64le platform.

yes, I do it with your command. It also show above message. So I build it on x86 platform with GOOS=linux GOARCH=mips64le go build -o external-dns .......  it's success


Any suggestion for compiling acf through JNI under Android studio

i'm a newbie to hunter-pack,  and tried to compile acf on ubuntu,  but failed.
My goal is to understand how acf or drishti can detect face and compile it under android studio,
any suggestion for this？thx

and tried to compile acf on ubuntu, but failed.

What was your build command and what was the failure?
ACF should build fine via Hunter with any NDK + C++11 toolchain in polly.  The last toolchain in these CI jobs is an Android build, for example:
https://travis-ci.org/elucideye/acf/builds/364195910
You can check the .travis.yml file for the build details or select another suitable android toolchain from https://github.com/ruslo/polly.  If you build a shared lib you could add that to your Android Studio project.

compiling acf through JNI under Android studio

Another option is to manage dependencies through Hunter directly using Android Studio's updated CMake support.  That seems to be closer to what your asking for, and it will provide a lot more flexibility.  Until recently, this wasn't possible, as Android bundled a custom CMake that didn't work well with Hunter (at least not easily).  The recent Android Studio releases have experimental support for standard CMake builds, but I believe this was introduced only in Android Studio 3.2 Canary X releases.
For a working example you can clone this sample project by @ruslo:
https://github.com/forexample/android-studio-with-hunter
That has a good skeleton for the basic setup and it takes cares of some of the toolchain related logic that is required to use Hunter.
I've used that with success, but this is still "bleeding edge" and I know there have been various glitches (unrelated to Hunter) in each Canary channel update.  If you can live with that, I would recommend trying it, as it should be part of standard releases in the near future.  Let me know if that helps.

thx, i will try those.


docs: update README for command syntax and binary execution

What kind of change does this PR introduce?
docs: update README for command syntax and binary execution
Add any other context or screenshots.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>2
Warning: This coverage report may be inaccurate.
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

For more information on this, see Tracking coverage changes with pull request builds.
To avoid this issue with future PRs, see these Recommended CI Configurations.
For a quick fix, rebase this PR at GitHub. Your next report should be accurate.

Details

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

Totals

Change from base Build<PHONE_NUMBER>3:
0.0%

Covered Lines:
9742

Relevant Lines:
15049

💛  - Coveralls


Update to support spark 1.5 and several new features

This contains several new feature and improvement including:

Support spark 1.5 (contains job done by @sparksburnitt @xinyunh and @bomeng);
Support using astro same as datasource, which will
Use hive metastore instead a standalone hbase catalog to store meta data(HBaseSQLContext will inherit from HiveContext instead of SQLContext)
Using stable HBase relase 1.1.2 instead of 0.98
Add new operator UPDATE/DELETE

Thanks for your initial work @Zhangshunyu @Sephiroth-Lin
Later I will add more to make it better to use.

Added https://github.com/WangTaoTheTonic/astro/commit/30ab4518a6813c95a64b21cf03725122db1f23c6 for supporting using astro in datasource way.

Added new commit to support UPDATE and DELETE.

@WangTaoTheTonic Thanks for you take this PR.

Can one of the admins verify this patch?

add to whitelist

Upgrade HBase version to 1.1.2 which is now a stable release.

retest this please

retest this please

retest this please

@WangTaoTheTonic  Following testcases are failing. Can you please verify them.
org.apache.spark.sql.hbase.api.java.JavaAPISuite.testCreateInsertRetrieveTable
org.apache.spark.sql.hbase.HBaseBulkLoadIntoTableSuite.bulk load for presplit table
org.apache.spark.sql.hbase.HBaseBulkLoadIntoTableSuite.parall bulk load for presplit table
org.apache.spark.sql.hbase.HBaseBulkLoadIntoTableSuite.parall bulk load presplit table with more than 128 regions
org.apache.spark.sql.hbase.HBaseCatalogTestSuite.Create Table
org.apache.spark.sql.hbase.HBaseCatalogTestSuite.Get Table
org.apache.spark.sql.hbase.HBaseCatalogTestSuite.Alter Table
org.apache.spark.sql.hbase.HBaseCatalogTestSuite.Delete Table
org.apache.spark.sql.hbase.HBasePartitionerSuite.test computePredicate in HBasePartition
org.apache.spark.sql.hbase.HBasePartitionerSuite.test k = 8 OR k > 8 (k is int)
org.apache.spark.sql.hbase.HBasePartitionerSuite.test k < 8 AND k > 8 (k is int)

When I click the Details to get detailed log, it give me a url like "http://localhost:8080/job/AstroPRBuilder/49/". Could you please make it public for convinience?

retest this please

retest this please

I've passed the tests locally with "mvn clean package", but don't know what error do we got here.

retest this please

@WangTaoTheTonic Following test case is failing. Please check
org.apache.spark.sql.hbase.api.java.JavaAPISuite.testCreateInsertRetrieveTable

retest this please

retest this please

retest this please

LGTM. Thanks for working on this. Merged to master


Formly does not use ngFor's "trackBy", and it can lead to unnecessary recreation of DOM elements, affecting performance

Background:
trackBy is an optional (but generally recommended) option passed to ngFor to help Angular track the elements of an array when the array is updated.
Issue:
Formly does not use trackBy in formly-form or formly-group, and I'm wondering why.
Example:
I have a stackblitz with a contrived example where instead of using a fixed fields array, the fields array is calculated by a function. You can imagine that this function may be called to recalculate the fields when the component's input changes (in the example the component has no input, but I'd added a button to "recalculate" the fields).
Please observe

Hitting the "Mark element" button that manipulates the style of one of the fields directly using DOM APIs. This style is unknown to Angular, so if Angular has to recreate the element, the style will be lost. (I'm of course not suggesting this is good practice. This is simply to help visually recognize when the element is being recreated.)
Hitting the "Mutate field def" button,  we can see that if we mutate the definition of one of the fields, the color is maintained. The element was not recreated.
Hitting the "Recalculate field defs" button replaces the field definitons array with a near-identical array, differing only by object references. Note that the elements get recreated.

This behavior is due to the lack of trackBy in formly's implementation. Without trackBy, Angular has no idea that the new fields match the old fields, which means they need to recreate all relevant DOM elements. You can imagine that in larger forms, this would lead to performance impacts.
Summary
I would like to discuss whether using trackBy in the relevant components (formly-form, formly-group) is feasible.

What exactly is the use case of this?
I ask because I've never had a time where I've rebound fields and didn't
want to re render the entire form.
In general, if I need something changed on the fields model conditions on
said entries do exactly what is needed
If that is the intended usage of changing fields ( @aitboudad can confirm )
then a track y implementation doesn't really help.
Just giving full context on why I am asking when you would do something
like change only one field at a time but keep all the rest the same.
On Thu, May 20, 2021, 11:48 PM MaximSagan @.***> wrote:

Background:
trackBy is an optional (but generally recommended) option passed to ngFor
to help Angular track the elements of an array when the array is updated.
Issue:
Formly does not use trackBy in formly-form or formly-group, and I'm
wondering why.
Example:
I have a stackblitz
https://stackblitz.com/edit/angular-ks5zw8?file=src%2Fapp%2Fapp.component.ts
with a contrived example where instead of using a fixed fields array, the
fields array is calculated by a function. You can imagine that this
function may be called to recalculate the fields when the component's input
changes (in the example the component has no input, but I'd added a button
to "recalculate" the fields).
Please observe

Hitting the "Mark element" button that manipulates the style of one
of the fields directly using DOM APIs. This style is unknown to Angular, so
if Angular has to recreate the element, the style will be lost. (I'm of
course not suggesting this is good practice. This is simply to help
visually recognize when the element is being recreated.)
Hitting the "Mutate field def" button, we can see that if we mutate
the definition of one of the fields, the color is maintained. The element
was not recreated.
Hitting the "Recalculate field defs" button replaces the field
definitons array with a near-identical array, differing only by object
references. Note that the elements get recreated.

This behavior is due to the lack of trackBy in formly's implementation.
Without trackBy, Angular has no idea that the new fields match the old
fields, which means they need to recreate all relevant DOM elements. You
can imagine that in larger forms, this would lead to performance impacts.
Summary
I would like to discuss whether using trackBy in the relevant components
(formly-form, formly-group) is feasible.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ngx-formly/ngx-formly/issues/2851, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADB4XNJXPL7JYHRARJ6JWIDTOXX3HANCNFSM45IORMOQ
.

I think an entire re-render is needed when fields changes but it can be useful for array type (need to check) when dealing with large data.

I am experiencing same issue - performance is really affected - changing form model takes few seconds to re-render. It seems like it re-rendered so many times as amonut of fields configured. In example above it is visible by ids - formly_6_input_firstName_0 given after "Recalculate field def" twice. But is seems happening also on init - havingformly_2_input_firstName_0 first time.
In my case I am getting 14 on first render, then 32 after change (adding 4 fields) - within profiler enabled it takes 1min:

@marlag could you please check if the performance is improved using our next version https://github.com/ngx-formly/ngx-formly/releases/tag/v6.0.0-next.1

@aitboudad In general I switched to using hide expressions instead of changing model, but initial render is still slow. So I've checked 6.0.0 but at the moment getting "No component factory found for FormlyGroup" error only.

The new @for() syntax of Angular v17 requires the use of track "because of the potential for poor performance", see also https://blog.angular.io/introducing-angular-v17-4d7033312e4b


Add a better error msg

See https://github.com/docker/docker/issues/22643 for an example
where we get an error running a cmd but there's no output so b
is an empty string, which means the user doesn't see any interesting
error message to help them.
This PR will send back the err and b so that between those two
bits of info they should get something more than a blank string.
Signed-off-by: Doug Davis<EMAIL_ADDRESS>

LGTM

Can we surround the output in quotes? It'd be a bit of a confusing error message if it is actually empty

@mlaventure done

LGTM


[bug] resize causes content to disappear

Describe the bug
on resize of tauri app the app goes blank filled with the webview background.
https://github.com/tauri-apps/tauri/assets/99012095/972ea04b-04a0-49d5-9acc-e0cecf864d05
Reproduction
Pop-OS 22.04
X11
KDE plasma-desktop
nvidia drivers
kernel 6.2.6-76060206-generic

yarn create tauri-app

resize application and the graphics will glitch
Expected behavior
smooth transition, no flashing of the default webview background
Platform and versions
><EMAIL_ADDRESS>tauri
> tauri info

[✔] Environment
- OS: Pop!_OS 22.04 X64
✔ webkit2gtk-4.0: 2.40.4
✔ rsvg2: 2.52.5
✔ rustc: 1.70.0 (90c541806 2023-05-31)
✔ Cargo: 1.70.0 (ec8a8a0ca 2023-04-25)
✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (default)
- node: 20.3.1
- yarn: 1.22.19
- npm: 9.7.2

[-] Packages
- tauri [RUST]: 1.4.1
- tauri-build [RUST]: 1.4.0
- wry [RUST]: 0.24.3
- tao [RUST]: 0.16.2
- @tauri-apps/api [NPM]: 1.4.0
- @tauri-apps/cli [NPM]: 1.4.0

[-] App
- build-type: bundle
- CSP: unset
- distDir: ../dist
- devPath: http://localhost:1420/
- bundler: Vite

Stack trace
no error, no logs either consoles, nothing unusual in journalctl

Additional context
No response

electron apps such as vscode and spotify do not exhibit this behavior

This should be mostly out of our control and just webkit being webkit again. Can you try running it with the WEBKIT_DISABLE_COMPOSITING_MODE=1 env var set?


Add ToList class

As an alternative to https://github.com/purescript/purescript-foldable-traversable/issues/69, we could add a class:
class ToList f where
  toList :: forall a. f a -> LL.List a
  foldrLazy :: forall a b. Z.Lazy b => (a -> b -> b) -> b -> f a -> b

Where
toList f = foldrLazy LL.cons LL.nil f
foldrLazy cons nil f = LL.foldrLazy cons nil (toList f)

What do you think are the pros and cons of this approach vs modifying Foldable?

Pro: Doesn't break the entire ecosystem
Cons: Must depend on purescript-lists (most do anyway, though). Feels somewhat redundant, since it's just an alternative formulation of Foldable with laziness.

@natefaubion do you think we should not do this, for the same reason as the one you gave in https://github.com/purescript/purescript-foldable-traversable/issues/69#issuecomment-709562001 ?

I think that toList makes more sense that adding foldrLazy because by reifying it as a lazy data structure you can write a tail-recursive consumer to avoid stack issues.

To clarify, lets take all as an example. The naive implementation with foldrLazy would be
all = foldrLazy (\a b -> Lazy.defer \_ -> a && Lazy.force b) (Lazy.defer \_ -> true)

I consider this naive because foldrLazy requires a Lazy constraint, and you can just lift anything into Data.Lazy. This is basically what you'd write in Haskell, but this just basically allocates a list of thunks that will probably blow the stack when forced. This is equivalent to a stack-unsafe foldr. In my opinion, using foldrLazy to fold into Data.Lazy is an anti-pattern. foldrLazy should not be used as a consumer, it should be used to build a producer! If you instead just had toList as the canonical producer, then you could write
all = go <<< toList where
  go list = case List.step list of
    Cons b tail
      | b -> go tail
      | otherwise -> false
    Nil ->
      true

Which, while ugly, is totally safe and short circuits.

I would actually probably even prefer something like
data Producer a = Done | Next a (Unit -> Producer a)

As opposed to Data.List.Lazy because the extra allocations for dealing with Data.Lazy is non-trivial IME.

That makes sense. This feels like something I'd like to prototype outside of core first, probably.

Just for comparison, here are some benches for and (I incorrectly called it all above) with 1000 trues, implemented as described above.
Foldable Array:
mean   = 90.88 μs
stddev = 49.84 μs
min    = 67.80 μs
max    = 1.47 ms

Producer:
mean   = 36.46 μs
stddev = 29.04 μs
min    = 27.49 μs
max    = 647.35 μs

toList:
mean   = 66.11 μs
stddev = 49.43 μs
min    = 49.41 μs
max    = 935.74 μs

foldrLazy:
mean   = 261.97 μs
stddev = 90.12 μs
min    = 212.11 μs
max    = 2.75 ms

The times obviously improve for the latter 3 when the whole list is not true, while Foldable does not.


Fixing issue in the output of keras model.predict method

The Keras model.predict outputs a list, when inputs are multiple, but an array otherwise. This caused a bug described in #16 . I'm trying to correct it. Not sure if this is the best solution, but it works.

Ok, I initially tried with it, without success, but I'll see if I can figure it out now.

Check https://github.com/hipster-philology/pandora/blob/master/pandora/tagger.py#L691
You need to import jumpy if it is not done.
Also, do directly [var] instead of append

Ok, I initially missed the "as np", that's why it didn't work.

Go ahead and do a squash


Update datasets 2.19.1 with hotfix to shorten long logs

Update datasets 2.19.1 with hotfix to shorten long logs.

There is an incompatibility after the merge of:

#2781

When I try to lock the poetry files, I get:

Because huggingface-hub[hf-transfer] (0.20.0.dev0) @ git+https://github.com/huggingface/huggingface_hub.git@657a1bdcc0545309463e8651f62010154e9b3792 depends on huggingface-hub (0.20.0.dev0) @ git+https://github.com/huggingface/huggingface_hub.git@657a1bdcc0545309463e8651f62010154e9b3792
and datasets[audio,vision] (2.19.1) @ git+https://github.com/huggingface/datasets.git@3638183e2f7e0dce8924e46e7cc21bf6d5d7adfb depends on huggingface-hub (>=0.21.2), huggingface-hub[hf-transfer] (0.20.0.dev0) @ git+https://github.com/huggingface/huggingface_hub.git@657a1bdcc0545309463e8651f62010154e9b3792 is incompatible with datasets[audio,vision] (2.19.1) @ git+https://github.com/huggingface/datasets.git@3638183e2f7e0dce8924e46e7cc21bf6d5d7adfb.
And because libcommon (0.6.8) @ file:///home/albert/projects/forks/huggingface/datasets-server/libs/libcommon depends on datasets[audio,vision] (2.19.1) @ git+https://github.com/huggingface/datasets.git@3638183e2f7e0dce8924e46e7cc21bf6d5d7adfb, huggingface-hub[hf-transfer] (0.20.0.dev0) @ git+https://github.com/huggingface/huggingface_hub.git@657a1bdcc0545309463e8651f62010154e9b3792 is incompatible with libcommon (0.6.8) @ file:///home/albert/projects/forks/huggingface/datasets-server/libs/libcommon.
So, because cache-maintenance depends on libcommon (0.6.8) @ file:///home/albert/projects/forks/huggingface/datasets-server/libs/libcommon which depends on huggingface-hub[hf-transfer] (0.20.0.dev0) @ git+https://github.com/huggingface/huggingface_hub.git@657a1bdcc0545309463e8651f62010154e9b3792, version solving failed.

I get the same issue even on the main branch:
git checkout main
cd jobs/cache_maintenance
<EMAIL_ADDRESS>lock --no-update

Do you have the same issue?

Apparently, it was an issue with my local Python environments.
I deleted my .venv directories and then I locked the poetry files with success.


Initial setup

Current upstream available status is based on: https://github.com/zephyrproject-rtos/zephyr/pull/79673
This work item will help,

setup openocd environment
Pull the PR or the msp-ti repo
Compile + Flash Lanuchpad
Basic testing of clock, pinctrl, GPIO and UART functions

All the items in the TODO here is done and tested.


label value in CustomDataset

Describe the bug
Hi, I'm new in object detection. I have some experience in classification and segmentation. We usually regard label value 0 as background. However, it seems mmdetection regards label value 0 as the first foreground? I test with KittiTiny dataset, and here are my scripts.
Reproduction

convert KittiTiny to mmdet's middle format
script to convert KittiTiny to mmdet's middle format

#!/usr/bin/env python

import os
import os.path as osp
import mmcv
import numpy as np
import pickle

if __name__ == "__main__":
    CLASSES = ('Car', 'Pedestrian', 'Cyclist')
    cat2label = {k: i for i, k in enumerate(CLASSES)}
    image_list = mmcv.list_from_file("data/kitti_tiny/train.txt")
    data_infos = []
    for image_id in image_list:
            filename = osp.join("data/kitti_tiny/training/image_2", image_id+".jpeg")
            image = mmcv.imread(filename)
            height, width = image.shape[:2]

            data_info = dict(filename=f'{image_id}.jpeg', width=width, height=height)

            # load annotations
            lines = mmcv.list_from_file(osp.join("data/kitti_tiny/training/label_2", f'{image_id}.txt'))

            content = [line.strip().split(' ') for line in lines]
            bbox_names = [x[0] for x in content]
            bboxes = [[float(info) for info in x[4:8]] for x in content]

            gt_bboxes = []
            gt_labels = []
            gt_bboxes_ignore = []
            gt_labels_ignore = []

            # filter 'DontCare'
            for bbox_name, bbox in zip(bbox_names, bboxes):
                if bbox_name in cat2label:
                    gt_labels.append(cat2label[bbox_name])
                    gt_bboxes.append(bbox)
                else:
                    gt_labels_ignore.append(-1)
                    gt_bboxes_ignore.append(bbox)

            data_anno = dict(
                bboxes=np.array(gt_bboxes, dtype=np.float32).reshape(-1, 4),
                labels=np.array(gt_labels, dtype=np.long),
                bboxes_ignore=np.array(gt_bboxes_ignore,
                                       dtype=np.float32).reshape(-1, 4),
                labels_ignore=np.array(gt_labels_ignore, dtype=np.long))

            data_info.update(ann=data_anno)
            data_infos.append(data_info)
    with open("kitti.pkl", 'wb') as f:
        pickle.dump(data_infos, f)

config for kitti_detection.py

# modify from configs/_base_/datasets/coco_detection.py
# we use the same dataset pipeline as coco_detection
# for dataset_type is CustomDataset by default, and ClassBalancedDataset for trainset
# evaluation metric is mAP for CustomDataset
dataset_type = 'CustomDataset'
data_root = 'data/kitti/'
classes = data_root + 'classes.txt'
img_norm_cfg = dict(
    mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=True)
train_pipeline = [
    dict(type='LoadImageFromFile'),
    dict(type='LoadAnnotations', with_bbox=True),
    dict(type='Resize', img_scale=(1333, 800), keep_ratio=True),
    dict(type='RandomFlip', flip_ratio=0.5),
    dict(type='Normalize', **img_norm_cfg),
    dict(type='Pad', size_divisor=32),
    dict(type='DefaultFormatBundle'),
    dict(type='Collect', keys=['img', 'gt_bboxes', 'gt_labels']),
]
test_pipeline = [
    dict(type='LoadImageFromFile'),
    dict(
        type='MultiScaleFlipAug',
        img_scale=(1333, 800),
        flip=False,
        transforms=[
            dict(type='Resize', keep_ratio=True),
            dict(type='RandomFlip'),
            dict(type='Normalize', **img_norm_cfg),
            dict(type='Pad', size_divisor=32),
            dict(type='ImageToTensor', keys=['img']),
            dict(type='Collect', keys=['img']),
        ])
]
data = dict(
    classes=classes,
    samples_per_gpu=2,
    workers_per_gpu=2,
    train=dict(
        classes=classes,
        type='ClassBalancedDataset',
        oversample_thr=1e-3,
        dataset=dict(
            classes=classes,
            type=dataset_type,
            ann_file=data_root + 'train.pickle',
            img_prefix=data_root + 'train',
            pipeline=train_pipeline
        )
    ),
    val=dict(
        classes=classes,
        type=dataset_type,
        ann_file=data_root + 'train.pickle',
        img_prefix=data_root + 'train',
        pipeline=test_pipeline
    ),
    test=dict(
        classes=classes,
        type=dataset_type,
        ann_file=data_root + 'train.pickle',
        img_prefix=data_root + 'train',
        pipeline=test_pipeline
    )
)
evaluation = dict(interval=1, metric='mAP')

and classes.txt
Car
Pedestrian
Cyclist

the faster rcnn config faster_rcnn_r50_fpn_1x_kitti.py

_base_ = [
    '../_base_/models/faster_rcnn_r50_fpn.py',
    'kitti_detection.py',
    '../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'
]
model = dict(
    roi_head=dict(
        bbox_head=dict(
            num_classes=3
        )
    )
)

I add these lines to tool/train.py after dataset are build:

x = []
    for item in datasets[0].dataset.data_infos:
        for _ in item['ann']['labels']:
            x.append(_)
    x = set(x)
    print(x)

Environment

Please run python mmdet/utils/collect_env.py to collect necessary environment information and paste it here.

sys.platform: linux
Python: 3.7.7 (default, May  7 2020, 21:25:33) [GCC 7.3.0]
CUDA available: True
CUDA_HOME: /cm/shared/apps/cuda10.1/toolkit/10.1.243
NVCC: Cuda compilation tools, release 10.1, V10.1.243
GPU 0: GeForce RTX 2080 Ti
GCC: gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)
PyTorch: 1.6.0
PyTorch compiling details: PyTorch built with:
  - GCC 7.3
  - C++ Version: 201402
  - Intel(R) Math Kernel Library Version 2020.0.1 Product Build 20200208 for Intel(R) 64 architecture applications
  - Intel(R) MKL-DNN v1.5.0 (Git Hash e2ac1fac44c5078ca927cb9b90e1b3066a0b2ed0)
  - OpenMP 201511 (a.k.a. OpenMP 4.5)
  - NNPACK is enabled
  - CPU capability usage: AVX2
  - CUDA Runtime 10.1
  - NVCC architecture flags: -gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_37,code=compute_37
  - CuDNN 7.6.3
  - Magma 2.5.2
  - Build settings: BLAS=MKL, BUILD_TYPE=Release, CXX_FLAGS= -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -DNDEBUG -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DUSE_VULKAN_WRAPPER -O2 -fPIC -Wno-narrowing -Wall -Wextra -Werror=return-type -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-unused-local-typedefs -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-stringop-overflow, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, USE_CUDA=ON, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=ON, USE_NNPACK=ON, USE_OPENMP=ON, USE_STATIC_DISPATCH=OFF,

TorchVision: 0.7.0
OpenCV: 4.4.0
MMCV: 1.1.1
MMDetection: 2.3.0+unknown
MMDetection Compiler: GCC 7.3
MMDetection CUDA Compiler: 10.1

You may add addition that may be helpful for locating the problem, such as

conda install -c pytorch pytorch cudatoolkit=10.1.243 torchvision

Outputs
{0, 1, 2}

So the label values are 0, 1, 2 for 3 classes, 0 is not background.

I check Codebase Conventions,

In MMDetection 2.0, label “K” means background, and labels [0, K-1] correspond to the K = num_categories object categories.
So, for CustomDataset, we need to regenerate the middle format and make sure label values [0, K-1], am I right?

Yes. As you have quoted, in MMDetection 2.0 the background class is put at the end and class 0 is the first foreground class.

According to https://github.com/open-mmlab/mmdetection/blob/master/mmdet/models/dense_heads/rpn_head.py Line 22, background_label=0.
I'm quite confused now. When preparing my annotations, what value should I assign for my foreground items? (assuming that I only have 1 foreground)

For CustomDataset, you label value is 0.
On Sat, Sep 19, 2020, 22:09 Shujian Deng<EMAIL_ADDRESS>wrote:

According to
https://github.com/open-mmlab/mmdetection/blob/master/mmdet/models/dense_heads/rpn_head.py
Line 22, background_label=0.
I'm quite confused now. When preparing my annotations, what value should I
assign for my foreground items? (assuming that I only have 1 foreground)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/open-mmlab/mmdetection/issues/3629#issuecomment-695217993,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAWP34LEBFXPPWPH4ZOCN73SGS3R5ANCNFSM4QMPEFGA
.

For CustomDataset, you label value is 0.
…
On Sat, Sep 19, 2020, 22:09 Shujian Deng @.***> wrote: According to https://github.com/open-mmlab/mmdetection/blob/master/mmdet/models/dense_heads/rpn_head.py Line 22, background_label=0. I'm quite confused now. When preparing my annotations, what value should I assign for my foreground items? (assuming that I only have 1 foreground) — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#3629 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAWP34LEBFXPPWPH4ZOCN73SGS3R5ANCNFSM4QMPEFGA .

did u notice the code? it states that background_label=0. So I'm not sure if there is something wrong.

@emergencyd Check https://mmdetection.readthedocs.io/en/latest/compatibility.html#codebase-conventions, for CustomDataset, label value [0, K-1], where 0 is for the first foreground class.

@emergencyd Check https://mmdetection.readthedocs.io/en/latest/compatibility.html#codebase-conventions, for CustomDataset, label value [0, K-1], where 0 is for the first foreground class.

I know it is stated that we should use K for the background. But the code shows that 0 is for the background.

@emergencyd you mean this line?
https://github.com/open-mmlab/mmdetection/blob/14b5d8eb426ebdf102a2906626f610e25e91866b/mmdet/models/dense_heads/rpn_head.py#L121
But, according to https://github.com/open-mmlab/mmdetection/blob/14b5d8eb426ebdf102a2906626f610e25e91866b/configs/base/models/faster_rcnn_r50_fpn.py#L32
use_sigmoid=true.

No. please check Line 22:
def __init__(self, in_channels, **kwargs):         super(RPNHead, self).__init__(             1, in_channels, background_label=0, **kwargs)

@RyanXLi @ZwwWayne Could you answer it? Maybe update the document to clarify.

The background_label=0 is only for RPN to use binary cross entropy loss. In other places, the background label is N. When generating your label, you do not need to take care about the label in RPN, just prepare the foreground class label into [0, N-1] will be fine. This PR https://github.com/open-mmlab/mmdetection/pull/3221 will unify the notion, we will merge this PR in the near future.


FDG 9851 Federal Revenue Trends Over Time, FY 2015-2024 chart is cutting off.

Ticket: https://federal-spending-transparency.atlassian.net/browse/FDG-9851
No change in coverage

I'm getting runtime errors when hovering over the chart while testing locally against qat.


What are seeds? What is the optimal number of seeds to run?

Hi,
I am trying to integrate our zebrafish and mouse datasets.
My analysis results are present here
Then, I read your vignette that "To replicate SATURN results for frog and zebrafish embryogenesis you need to run SATURN 30 times with different seeds."
Now I am wondering what are these seeds and how does it affect my cross-species integration? What do you think is the optimal number of seeds that I should be running in my analysis ?
Which seed should I be selecting at the end ?
Please help me.
Thanks in advance,
Vishnu

The seed is just used to initialize the centroid creation and dataloader-- it is the seed used to generate random numbers.
You don't need to run multiple seeds, however it can be useful to get a sense of the variance in integration results. You could then choose the seed that got the highest integration score if you want.

"Okay, thank you for the swift response!"

@Yanay1 , I have a naive question regarding the highest integration score after running multiple seeds. In you vignette, the fz_multi_seeds_scores.csv provides values for logistic and balanced regression. I am assuming the best integration seed is the one that got highest logistic and balanced regression? If that is true,  is it seed # 19 the selected seed for your frog_zebrafish_embryogenesis analysis. Seed#19 got has logistic regression = 0.867293 	 and balanced regression =0.545929 , which is the highest that you got out of 30 different seeds.
Thank you for your answer.

We did use the highest scoring seed for some downstream analysis, based on 30 seeds (seeds 0-29).
It might not have been seed 19 thoug:, the multi-seed run in the vignette although it is also 30 seeds from 0-29, might be different than then 0-29 seeds I ran originally since I re-ran it before pushing to Github, and things like running on a different machine or updating some packages can cause the seeds to change a bit.


Bump EKS-D to latest version

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

/cherry-pick release-0.19

kubeVersion: v1.26.12 does not match version from EKS-D release manifest: v1.26.13
kubeVersion: v1.27.9 does not match version from EKS-D release manifest: v1.27.10
kubeVersion: v1.28.5 does not match version from EKS-D release manifest: v1.28.6
kubeVersion: v1.29.0 does not match version from EKS-D release manifest: v1.29.1

/approve


Feature request: support extended string types

#1018

Codecov Report

Merging #1043 into dev will increase coverage by 0.02%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##              dev    #1043      +/-   ##
==========================================
+ Coverage   78.86%   78.89%   +0.02%
==========================================
  Files          25       25
  Lines        8129     8134       +5
==========================================
+ Hits         6411     6417       +6
+ Misses       1718     1717       -1

Impacted Files
Coverage Δ

...x86/php-7.1.32-src/ext/sqlsrv/shared/core_stmt.cpp
84.85% <0%> (-0.47%)
:arrow_down:

...php-7.1.32-src/ext/pdo_sqlsrv/shared/core_sqlsrv.h
79.39% <0%> (ø)
:arrow_up:

...php-7.1.32-src/ext/pdo_sqlsrv/php_pdo_sqlsrv_int.h
100% <0%> (ø)
:arrow_up:

...x86/php-7.1.32-src/ext/sqlsrv/shared/core_sqlsrv.h
81.16% <0%> (ø)
:arrow_up:

...c14/x86/php-7.1.32-src/ext/pdo_sqlsrv/pdo_util.cpp
90.21% <0%> (ø)
:arrow_up:

...c14/x86/php-7.1.32-src/ext/pdo_sqlsrv/pdo_stmt.cpp
84.59% <0%> (+0.03%)
:arrow_up:

...php-7.1.32-src/ext/pdo_sqlsrv/shared/core_stmt.cpp
78.39% <0%> (+0.36%)
:arrow_up:

...vc14/x86/php-7.1.32-src/ext/pdo_sqlsrv/pdo_dbh.cpp
92.61% <0%> (+0.48%)
: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 2557520...d6d1bbc. Read the comment docs.

Coverage increased (+0.1%) to 73.607% when pulling d6d1bbca89de62cb0ca1572f9d5f05c7e7fd8860 on yitam:gh1018 into 255752066dc4180645b07cbdff718899b302df1a on microsoft:dev.


_Finished in ReadAheadChunks does not reach end

For some reason the ReadAheadChunks sometimes does not reach the _Finished = true; During dispose() that flag is tested and causes an Exception to be thrown. I have no clue what could cause this. Is it possible there is a race condition problem here. The ReadAheachChunks() is a Task being run same as the Parallel tasks being run.

Are you sure that your inputSourceStream has flushed all data?
Do you have an example, or can you describe your input and output streams (socket,file etc..)

I have just reviewed the code. The Dispose should not be called before _finished it is set to false. But it is threading, so anything is possible ;)
Is it anyway possible for you to show the code?


version update

@luiztauffer I think we should finish review/approval/merge of some of the more valuable hanging PRs before a new release, so it's not just a synch update with spikeextractors. I'll go through some with Ben later to see if we can't clean up the 10 that are posted as of 3/15/21.
@luiztauffer If you in particular could help review this one, it's the biggest feature update to supported data type conversions to NWB.

@CodyCBakerPhD there's not just a sync with spikeextractors for this new release, there are other fixes and datainterfaces as well
But if you want to use it as a boost to merge many PRs that are left hanging, that's fine with me
I still think though it is useful to have more frequent releases than make massive merges of several PRs, like you propose. This allows us to know specific versions for which we are certain our converters are working

@luiztauffer With the merging of those other PRs this should be good to go if you can improve the run_conversion docstring as per my comment above. Then we should be good for a new release!

Guys what's the ETA for this PR?

@alejoe91 I went ahead and made the changes myself - once the tests verify it didn't interfere with anything I'll merge and start the release process

@luiztauffer OK, if you need to make something like it (that doesn't also break default behavior) go ahead and make a hotfix for v0.7.0, bump it to v0.7.1 in that PR and we'll release after that


AOT Angular2 compilation

I'm trying to use this plugin for scss. this is my conf:
{
                test: /\.css$/,
                include: path.resolve(process.cwd(), 'src', 'app'),
                loaders: ['to-string-loader', 'css-loader']
            },
            {
                test: /\.css$/,
                exclude: path.resolve(process.cwd(), 'src', 'app'),
                loader: ExtractTextPlugin.extract({
                    fallbackLoader: 'style-loader',
                    loader: 'css-loader'
                })
            },
            {
                test: /\.scss$/,
                use: extractCSS.extract({
                    fallbackLoader: 'style-loader',
                    loader: 'css-loader!sass-loader'
                }),
            },

But when I try to compile in aot I receive this error:
ERROR in ../aot/src/app/components/hello-world.component.ngfactory.ts
Module not found: Error: Can't resolve '../../../../src/app/components/hello-world.style.scss.shim' in '/Users/danielezurico/Desktop/webpack-aot/aot/src/app/components'
 @ ../aot/src/app/components/hello-world.component.ngfactory.ts 19:0-86
 @ ../aot/src/app/modules/main.module.ngfactory.ts
 @ ./app/bootstrap.aot.ts

repro: https://github.com/daniele-zurico/webpack-aot

I'm experiencing the same issue! Did you find out any solution?

Looking at the stracktrace ETWP isn't even called there, this seems to be an error elsewhere in your setup :)


 I finished coding on this PR)
[ ] All changes have test coverage: No test exists for examples at this point
[x] Code is well-documented:
[x] To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

Changes

[x] Updated README with information about dataset and script behavior
[x] Fixed scripts for python 2.7 and 3.6 conformity
[x] Replaced Model.FeedForward with Module API
[x] Fixed pylint issues with scripts
[x] Removed incorrect dependency on MXNet source to be part of example tree

LGTM.

we don't include binaries (images) in the repo. Put them at some other place (dmlc/web-data) and link to them

Will remove images
Will move functions into a separate file to avoid name clash