Fidget is triggering "FileType" events when it is displayed

Fidget triggers the FileType event every time it is shown.
This has wreaked havoc on some of my plugins and autocmds.
I imagine it can be a nuisance for users that listen for FileType events on all buffer types.
The expectation is that the "FileType" event is triggered once or twice during the lifetime of a read buffer. Unfortunately, fidget forces my FileType events to be triggered every time it pops up.
It has been the source of hours of troubleshooting.
Could you provide an option to disable this feature?

I found a way to filter out the buffet type in the nvim_create_autocmd API.
I'm closing this issue.


Fix tier selection when using different units.

The problem was
Rates are tiered. Tier is selected based on the metrics' value.
When metric value and tier boundaries were in different units (metric in bytes, tiers in gigabytes), the tier selection was broken. We used / operator instead of *.
Cause
This problem existed since the day 0. It became just more visible after recent refactoring in #13331. I noticed that on one ocasion we had value * rate_adjustment and on another occasion we had value / rate_adjustment. That begged for investigation.
@miq-bot add_label chargeback, wip, bug
@miq-bot assign @gtanzillo

@miq-bot remove_label wip, unmergeable

Ping, any idea?

@miq-bot what's up?

Thanks!!!


[MGDOBR-855] Provision performance test resources using qDup

Signed-off-by: Karel Suta<EMAIL_ADDRESS>MGDOBR-855
PR owner checklist
Please make sure that your PR meets the following requirements:

[ ] Your code is properly formatted according to this configuration.
Run mvn clean verify -DskipTests so that imports are correctly set.
[ ] Your commit messages are clear and reference the JIRA issue e.g: "[MGDOBR-XXX] - $clear_explanation_of_what_you_did"
[ ] The layers in the kustomize folder have been updated accordingly.
[ ] All new functionality is tested
[ ] Pull Request title is properly formatted: MGDOBR-XYZ Subject
[ ] Pull Request contains link to the JIRA issue
[ ] Pull Request contains link to any dependent or related Pull Request
[ ] Pull Request contains description of the issue
[ ] Pull Request does not include fixes for issues other than the main ticket

PR reviewer(s) checklist

[ ] Check if code and Github action workflows have been modified and if the modification is safe
[ ] If the modification is safe, add the safe to test label

How to trigger pipelines and use the bots:

Run the end to end pipeline
Annotate the pull request with the label: safe to test. If you want to run the pipeline again, remove and add it again.

Rebase the pull request
Comment with: /rebase.

Deploy BOT
Comment with `/deploy <dev,stable> when the PR has been merged to deploy to a target environment.

@winklerm Helper script to run qDup without previous installation.
Will add convert more scripts here.

@sutaakar Thanks!

As V2 won't be done, I would close this. wdyt?

right, closing


Kekulization error from CreateScaffoldNetwork

Configuration:

RDKit Version: 2020.03.2 (also master)
Operating system: all
Python version (if relevant): all

Description:
In [10]: m = Chem.MolFromSmiles('[O-][C+]1C=CC(CC2=CC=CC2)=CC=C1')

In [11]: ps = rdScaffoldNetwork.ScaffoldNetworkParams()

In [12]: rdScaffoldNetwork.CreateScaffoldNetwork([m],ps)
---------------------------------------------------------------------------
KekulizeException                         Traceback (most recent call last)
<ipython-input-12-1e83c5d98959> in <module>
----> 1 rdScaffoldNetwork.CreateScaffoldNetwork([m],ps)

KekulizeException: Can't kekulize mol.  Unkekulized atoms: 0 2 3 4 5 6 7

Using a more "standard" representation of the molecule works fine:
In [13]: m = Chem.MolFromSmiles('O=C1C=CC(CC2=CC=CC2)=CC=C1')

In [14]: rdScaffoldNetwork.CreateScaffoldNetwork([m],ps)
Out[14]: <rdkit.Chem.Scaffolds.rdScaffoldNetwork.ScaffoldNetwork at 0x23733a1e5d0>

Thanks to an anonymous reviewer of the scaffold network application note for pointing this out. :-)

Can I take this up?

@manangoel99 : sure. Tracking down the source of the problem and coming up with a fix will be a good chance to learn more about the code.

@greglandrum I wanted to know if ideally, the workflow for both the examples should be identical or not. I've found that the point where the workflow diverges for the two is in MurckoDecompose function in Code/GraphMol/ChemTransforms/ChemTransforms.cpp.

@manangoel99 : I agree that the problem is in that function. It’s connected to whether or not implicit Hs are allowed to be added to atoms (this is what setNoImplicit() does). This isn’t working properly with the C+ when it is aromatic. So some logic needs to be added for that. Similar to what is done when you call that function on c1cccn1CC. (At least I think that works).
FYI: I am away from the computer and will be mostly out of email contact until Monday.

In the MurckoDecompose function for adding Explicit Hydrogens to aromatic heteroatoms, the following code snippet is used
if (nbr->getIsAromatic() && nbr->getAtomicNum() != 6) {
            // fix aromatic heteroatoms:
            nbr->setNumExplicitHs(1);
          }

So one way of doing this could be to add another condition that if it's a C+, then 1 explicit H should be added.

@greglandrum In the above-mentioned approach, would I be missing any cases that would need to be handled?

@manangoel99 this is one of those "gifts that keeps on giving" in terms of there seeming to always been additional special cases, but adding a condition to that test for C+ seems like a reasonable way to fix this particular example. And it's fine to fix this particular example.


Looking for a zero-to-hero tutorial for how to utilise this framework

Hi Guys,
Can anyone suggest a tutorial for a neebie on how to use oidc-client-ts? I understand OIDC, PKCE, etc. I've just never used oidc-client-ts before and I am looking for a tutorial that can get me started.

Have a look and run the demo site (./samples/Parcel): oidc-client + user-manager.
Also see Angular sample or react-oidc-context.

setup your settings and setup your oidc provider configuration (authority + client-id + redirect-uri) see https://authts.github.io/oidc-client-ts/#required-settings
trigger authz process: mgr.signinRedirect()
handle callback (setup via redirect-uri) by calling mgr.signinCallback()
verify user is in session storage
if not verify network traffic + enable console log see https://authts.github.io/oidc-client-ts/#logging

I wrote a series of posts about working with Keycloak, Angular and oidc-client-js that might be of help:

https://robferguson.org/blog/2019/12/24/getting-started-with-keycloak/
https://robferguson.org/blog/2019/12/29/angular-openid-connect-keycloak/
https://robferguson.org/blog/2019/12/30/angular-oauth2-keycloak/
https://robferguson.org/blog/2020/01/03/keycloak-flowable-and-openldap/

These are excellent. Thanks, gents.


Implement Uri fragment

Doh. Nvm. Guess I should read ahead :)

Haha I already found that typo. Hooray for unit testing ;)


Invalid value "undefined" for header "X-Goog-Visitor-Id"

This is a very useful package, but I am having some problems when searching with the api. It seems like this issue was opened and closed in https://github.com/emresenyuva/youtube-music-api/commit/b52b2b0d3fd146face64d193ba333c948e857451, but I am still having this issue...

When I use the api like so, the search is successful:

However, when I use the api like this, the search is unsuccessful:

Any fixes for this? Thanks...

I have the same problem...
Have you found a solution or an alternative since then?

i guess https://github.com/emresenyuva/youtube-music-api/commit/b52b2b0d3fd146face64d193ba333c948e857451 wasn't published on npm
could @emresenyuva, @wilsonpage or @valeriangalliat do that?

The issues looks to be that you need to wait for api.initialize to finish it's HTTP request. Initialize actually pings YouTube music to grab session cookies in order to be able to ping the private API so you can't make any API requests until initialize finishes grabbing session cookies.
Recommend using async/await pattern so you can do this:
await api.initizalize();
const result = await api.search('search term', 'song', 1);

I created a small REST api app for this package where you can see me doing the async/await stuff.
https://github.com/abetwothree/youtube-music-rest-api-microservice

Hi, there is a workaround if you are not able to make it work:
`const YouTubeMusicAPI = require('youtube-music-api');
const youtubeMusic = new YouTubeMusicAPI();
async function searchForSong(title, artist) {
await youtubeMusic.initalize();
youtubeMusic.ytcfg.VISITOR_DATA = '';
const searchResult = await youtubeMusic.search(${title} ${artist});
if (searchResult && searchResult.content) {
const songId = searchResult.content[0].videoId;
const songUrl = https://www.youtube.com/watch?v=${songId};
console.log(songUrl);
return songUrl;
}
return null;
}`


Build TensorFlow library iOS from source

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): MacOS 10.15.2
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: iOS
TensorFlow installed from (source or binary): source
TensorFlow version: 2.0.0
Python version: 3.6
Installed using virtualenv? pip? conda?: Conda
Bazel version (if compiling from source): 0.26.1

Describe the problem
I need to build Tensorflow 2.0.0 from source for iOS devices, to get a library libtensorflow-core.a, I found this link https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/ios where I found another link that seems to have the answer, but it redirect me to a missing page.
Has anyone an idea or a simple guide on how I can build 2.0.0 library for iOS?
Thanks!

@SestoAle
please refer to this link and let us know if it helps.

@SestoAle
please update on above comment

Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!


NETOBSERV-1242 Console plugin build infos

get build version and build date from backend
display these

in query summary
in console as debug

Would it be ok as well to just write that with console.log ? Just asking because it doesn't seem the best place to put that in the "Query Summary" panel, but on the other hand, it probably doesn't worth it either to create a new "About"-like panel just for that, so I was wondering if console.log would be good enough. Anyway, up to you, I'm also fine if you prefer to keep that as is.

how would the Version show for downstream builds? would it show the iteration for.e.g: 1.4.0-27 ? I am fine having it a way that you have under Configuration. Thanks!

how would the Version show for downstream builds? would it show the iteration for.e.g: 1.4.0-27 ? I am fine having it a way that you have under Configuration. Thanks!

Yes ! That's my expectation. It reuses the tags from the makefile; these are already displayed in pod logs

I can add an extra section like Version under Configuration or we can rename it to something general like Misc.

Yes +1 for an extra section like "Version"

I can add an extra section like Version under Configuration or we can rename it to something general like Misc.

Yes +1 for an extra section like "Version"

Done:

https://github.com/netobserv/network-observability-console-plugin/compare/011be3e64f641727dc9b8a3ca928b9fdd2be8482..8501428163754edf63a63cf2d4b5da3ad314d53c

Thanks guys !


Custom resolvers for requirejs

Similar to commonjs, module and node_resolve plugins, it would be useful to have ability to add custom resolver plugins for requirejs.

@vlada79 It does have support for requireJS. See: http://ternjs.net/doc/manual.html#plugin_requirejs
For my project, I have something like this in my .tern-project file:
  "plugins": {
    "requirejs": {
      "baseURL": "./static/js/",
      "paths": {
        "analytics": "./analytics/_module",
        "analyticsSub": "./analytics",
        "api": "./api/_module",
        // more modules
      }
    }
  }


Maybe change gameident in mapformat

So, as written here: https://incoherency.co.uk/interest/sauer_map.html
The mapformat has a game ident. The site (which is not a real documentation) says

This is a string to identify which game the map is intended for. It consists of a single byte to give the length of the string, followed by a string of that length, plus a zero-terminating byte. For normal Sauerbraten, this string is just "fps".

So I'm not sure if this type is meant for things like "fps" or "rpg" (which the original value uses) or for game (like "inexor").
The original value suggests the first case, the site suggests the second case.
So maybe it might be an option to change that to "inexor" this would also allow to start with map version "1" (instead of currently.. 40?) which (at least for me) seems a little nicer.

As far as I know @a-teammate should be the one to talk to since he has worked on the map format.

I don't think we should do this right now. It has literally no advantage as long as we don't change the map format in another way.

I agree, as #53 does go far beyond just changing a value :)

I will close this, since we will solve this probably with #53, as soon as we need it for adding more features.


Refactor chat-plugins to for...of

In the instances of for (let x of y), I didn't use const because they were modified within the loop and I don't like declaring needless variables just do modify them if we use const. However, if const is supposed to be standard, I will do that.

Travis tests have failed
Hey Kris Johnson,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.
Node.js: 7.7

npm test

><EMAIL_ADDRESS>test /home/travis/build/Zarel/Pokemon-Showdown
> eslint --rulesdir=dev-tools/eslint --cache . && tsc && mocha

/home/travis/build/Zarel/Pokemon-Showdown/chat-plugins/mafia.js
  683:1  error  Expected indentation of 5 tabs but found 6  indent
  684:1  error  Expected indentation of 6 tabs but found 7  indent
  685:1  error  Expected indentation of 5 tabs but found 6  indent
  686:1  error  Expected indentation of 6 tabs but found 7  indent
  687:1  error  Expected indentation of 5 tabs but found 6  indent
  688:1  error  Expected indentation of 5 tabs but found 6  indent

/home/travis/build/Zarel/Pokemon-Showdown/chat-plugins/trivia.js
  399:16  warning  'roomid' is assigned a value but never used  no-unused-vars

✖ 7 problems (6 errors, 1 warning)
  6 errors, 0 warnings potentially fixable with the `--fix` option.

npm ERR! Test failed.  See above for more details.

Travis tests have failed
Hey Kris Johnson,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.
Node.js: 7.7

npm test

><EMAIL_ADDRESS>test /home/travis/build/Zarel/Pokemon-Showdown
> eslint --rulesdir=dev-tools/eslint --cache . && tsc && mocha

/home/travis/build/Zarel/Pokemon-Showdown/chat-plugins/mafia.js
  683:1  error  Expected indentation of 5 tabs but found 6  indent
  684:1  error  Expected indentation of 6 tabs but found 7  indent
  685:1  error  Expected indentation of 5 tabs but found 6  indent
  686:1  error  Expected indentation of 6 tabs but found 7  indent
  687:1  error  Expected indentation of 5 tabs but found 6  indent
  688:1  error  Expected indentation of 5 tabs but found 6  indent

/home/travis/build/Zarel/Pokemon-Showdown/chat-plugins/trivia.js
  399:16  warning  'roomid' is assigned a value but never used  no-unused-vars

✖ 7 problems (6 errors, 1 warning)
  6 errors, 0 warnings potentially fixable with the `--fix` option.

npm ERR! Test failed.  See above for more details.

Travis tests have failed
Hey Kris Johnson,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.
Node.js: 7.7

npm test

><EMAIL_ADDRESS>test /home/travis/build/Zarel/Pokemon-Showdown
> eslint --rulesdir=dev-tools/eslint --cache . && tsc && mocha

/home/travis/build/Zarel/Pokemon-Showdown/chat-plugins/mafia.js
  683:1  error  Expected indentation of 5 tabs but found 6  indent
  684:1  error  Expected indentation of 6 tabs but found 7  indent
  685:1  error  Expected indentation of 5 tabs but found 6  indent
  686:1  error  Expected indentation of 6 tabs but found 7  indent
  687:1  error  Expected indentation of 5 tabs but found 6  indent
  688:1  error  Expected indentation of 5 tabs but found 6  indent

/home/travis/build/Zarel/Pokemon-Showdown/chat-plugins/trivia.js
  399:16  warning  'roomid' is assigned a value but never used  no-unused-vars

✖ 7 problems (6 errors, 1 warning)
  6 errors, 0 warnings potentially fixable with the `--fix` option.

npm ERR! Test failed.  See above for more details.

ok did

Travis tests have failed
Hey Kris Johnson,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.
Node.js: 7.7

npm test

><EMAIL_ADDRESS>test /home/travis/build/Zarel/Pokemon-Showdown
> eslint --rulesdir=dev-tools/eslint --cache . && tsc && mocha

/home/travis/build/Zarel/Pokemon-Showdown/chat-plugins/trivia.js
  399:16  warning  'roomid' is assigned a value but never used  no-unused-vars

✖ 1 problem (0 errors, 1 warning)

config.js doesn't exist - creating one with default settings...
NEW GLOBAL: global
NEW CHATROOM: lobby
NEW CHATROOM: staff
․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․,․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․,․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․,․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․,,,,,․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․,,,,,,,,,,,,,,․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․!․․․․․․․․․․․․․․․․․

  935 passing (41s)
  22 pending
  1 failing

  1) Trivia
       should not throw when attempting to broadcast after the game has ended:
     AssertionError: Got unwanted exception..
      at _throws (assert.js:356:5)
      at Function.doesNotThrow (assert.js:375:3)
      at Context.<anonymous> (test/chat-plugins/trivia.js:183:10)

npm ERR! Test failed.  See above for more details.

Travis tests have failed
Hey Kris Johnson,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.
Node.js: 7.7

npm test

><EMAIL_ADDRESS>test /home/travis/build/Zarel/Pokemon-Showdown
> eslint --rulesdir=dev-tools/eslint --cache . && tsc && mocha

/home/travis/build/Zarel/Pokemon-Showdown/chat-plugins/trivia.js
  399:16  warning  'roomid' is assigned a value but never used  no-unused-vars

✖ 1 problem (0 errors, 1 warning)

config.js doesn't exist - creating one with default settings...
NEW GLOBAL: global
NEW CHATROOM: lobby
NEW CHATROOM: staff
․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․,․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․,․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․,․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․,,,,,․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․,,,,,,,,,,,,,,․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․!․․․․․․․․․․․․․․․․․

  935 passing (43s)
  22 pending
  1 failing

  1) Trivia
       should not throw when attempting to broadcast after the game has ended:
     AssertionError: Got unwanted exception..
      at _throws (assert.js:356:5)
      at Function.doesNotThrow (assert.js:375:3)
      at Context.<anonymous> (test/chat-plugins/trivia.js:183:10)

npm ERR! Test failed.  See above for more details.

wtf? i removed it?


Massive build time for large site

Hi,
I have close to 7000 posts on my blog and wanted to use Lanyon as a theme. Since Lanyon builds a separate directory for every year with subdirectories for month, day and each post that day plus a directory for each page, it absolutely kills my (Linux based) server when I try to build the site with build times up to two hours.
I tried building it on my Core i7 Macbook Pro (16GB RAM, fast flash storage) and it's close to one hour to build the site.
I understand that most people don't keep blogs this size very often but if, or when, you are looking at a re-design, I would love if you would keep this in mind. I have no idea if there is any way around this "problem" but I'm keeping my fingers crossed.
Thanks,
Joacim

Unfortunately this is an issue with Jekyll (the static site generator) and not Lanyon itself. Lanyon cannot fix this issue. Build times take a while with Jekyll because subsequent builds end up rebuilding the entire site from scratch (and I don't think it's because of the directory structure).
Fortunately, Jekyll 3 is in development and plans to fix these performance issues by maintaining a cache and gradually rebuilding the site. Jekyll 3 is not stable yet, but there is a beta build you can use today (though you can't use it on GitHub Pages yet).

Sorry, I just noticed your [Not compatible with Jekyll 3.0](Not compatible with Jekyll 3.0) issue.

I run Jekyll on mu own server so I can help out with beta testing Lanyon with Jekyll 3 if needed.

I've since posting my observations abandoned Jekyll and (reluctantly) returned to Wordpress but I thought I would have a second look now as a few years have past.
With Jekyll 3.4.3, the current (when posting this) version of Lanyon and with 7400+ posts the first build of the site took almost 8 hours on a eight core Mac Pro with 16GB RAM and a pretty fast SSD.
A rebuild with the --incremental flag set took just over 47 minutes.
I guess Jekyll isn't for me as long as I want to use Lanyon.


Overrides depreciated API

Note: C:\flutter\.pub-cache\hosted\pub.dartlang.org\tflite_flutter-0.8.0\android\src\main\java\com\tfliteflutter\tflite_flutter_plugin\TfliteFlutterPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

This should actually already be solved with #37

@CaptainDario but I am still getting this , so what can be potential causes

As I am not a maintainer of this package I am not sure.
However you could try v0.9.0 ?
@am15h is this deprecation message a new one or related to #37 ?

@am15h please fix this depreciation issue, I am not able to build release apk due to this .
Note: C:\flutter\.pub-cache\hosted\pub.dartlang.org\tflite_flutter-0.9.0\android\src\main\java\com\tfliteflutter\tflite_flutter_plugin\TfliteFlutterPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.


'sqlite3_bind_blob' does not have an implementation.

I am using SQLite-net-pcl 1.3.1 with a Xamarin Forms application. All works fine on Android, but if I run the UWP application on Windows Mobile 10 - on ARM - (10.0.14393.1066) I get the following exception:

TypeInitializationException: The type initializer for 'SQLite.SQLiteConnection' threw an exception.
TypeLoadException: Method 'sqlite3_bind_blob' in type 'SQLitePCL.SQLite3Provider_e_sqlite3' from assembly 'SQLitePCLRaw.provider.e_sqlite3, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=9c301db686d0bd12' does not have an implementation.

Thoughts?

Hmmm.  That seems bad.
  I use SQLitePCL.raw with UWP every day, and I've never seen this.

Could it have anything to do with being on ARM?
Is there anything else I should be installing at the same time (I tried adding "Microsoft Visual C++ 2013 Runtime Package for Windows Universal" for example as another post seemed to indicate it might be required but it has made no difference)?

ARM?  Yeah that's a good clue for the detective work.  Let me check something...

Just to add some fuel, I can create a new SQLiteAsyncConnection("path") without an error, but the error is then thrown when I call SQLiteAsyncConnection.CreateTableAsync.

Well there is an arm build for UWP, so that's not the problem.
You're talking about UWP 10, not the previous universal windows app stuff for win 8.0/1, right?  Because you mentioned the "Microsoft Visual C++ 2013 Runtime Package for Windows Universal", that made me wonder.

I have just tried running the same application on the desktop (Debug, Any CPU [ = x86 ]) and I am seeing exactly the same error. For my own sanity, I then ran it again on Android and - as previously - it runs fine.

Definitely UWP and Windows 10; not Windows 8.0/8.1.
"Microsoft Visual C++ 2013 Runtime Package for Windows Universal" was a red herring I picked up from another post.

"I have just tried running the same application on the desktop (Debug, Any CPU [ = x86 ]) and I am seeing exactly the same error."
Well that's helpful, so now we know it's not related to arm.  Does x64 give the same problem?

Yes, same on x64 (Debug).

Not sure if this helps, but the PCL and platform projects all have "sqlite-net-pcl" installed whilst "SQLitePCLRaw.bundle-green" is installed for the platform projects only (though not the UWP platform project) and "SQLitePCLRaw.core" is installed for all of the platform projects. Seems a little strange to me that the UWP platform project is not referencing the "SQLitePCLRaw.bundle-green" project like the others (or is it using a native implementation instead?)

Well yeah, that looks wrong.  The UWP platform project should be referencing bundle_green, I would think.

Just creating a new project now and adding "sqlite-net-pcl" to see what ends up installed and referenced...

If I create a new project with Android/iOS and UWP and then install the latest "sqlite-net-pcl" (1.3.3) the "SQLitePCLRaw.bundle-green" is not installed to the UWP project, but neither is "SQLitePCLRaw.core".
None of the "SQLitePCLRaw.lib.e_sqlite3.*" packages are installed to UWP either.

If you explicitly install bundle_green into the UWP project, what happens to that error?

That fixes it.
Do not know if I am interpreting this correctly, but it looks to me as if there may be a problem with the "sqlite-net-pcl" nuget package as it is not installing the "SQLitePCLRaw.bundle-green" dependency for UWP?
Thanks for your help.

Strictly speaking, no, that's not a problem with sqlite-net-pcl.  I'm pretty sure what you're seeing is a difference in the way Xamarin projects handle transitive nuget dependencies compared to UWP.  :-)

Having never tried to create a nuget package, I would not know - hence my wording it above as a question :)
Again, thanks for all of your help; I will make a mental note to ensure I always add the "SQLitePCLRaw.bundle-green" dependency in the future (or at least check to make sure it has been added).
Martin.

Yeah, I was just trying to answer the question.  No criticism or emotion was implied.  Cheers.

None taken.


[XLA] AlgebraicSimplifier pass - handle And and Or

Add handling of logical And and Or, where:

(a && True) => a
(True && a) => a
(a && False) => False
(False && a) => False
(a || True) => True
(True || a) => True
(a || False) => a
(False || a) => a

Added tests for these as well.

Thank you for the review, all done now


Call of external resource https://ditro.io/policy.json leads to warnings

Hi,
First of all, thanks for developing this great platform that I'm discovering since yesterday.
It has a lot of the features I need and I really enjoy using it !
Describe the bug
The warning strict mode: missing type "array" for keyword "items" at "https://ditro.io/policy.json#/allOf/0/then/properties/permissions" (strictTypes) appears three times in the console when trying to create a new policy
Set up
I run ODD with the Docker image. It's the latest one and ODD version in the help menu is 0.8.0
Steps to Reproduce

Go to Management => Policies => Create Policy

Expected behavior
I expect the platform to use only local files because when I try to access the resource _https://ditro.io/policy.json_ I've got an Access Denied error. I suppose it's the cause of the warning
Best Regards,
Christophe

Hi, Christophe.
Thank you for kind words, we really appreciate it!
We are using json schema for policy validations, you can check it here:
https://github.com/opendatadiscovery/odd-platform/blob/main/odd-platform-api/src/main/resources/schema/policy_schema.json
As you can see https://ditro.io/policy.json is just an id of document, and we don't use any external files.
We will check why these warnings are happening, but you can not worry about them.
Best,
Damir

Hey @csebille!
That's kind of you, thank you!
To add to Damir's answer (thank you btw) — did I understand correctly that you're trying to create a policy, but it doesn't work? If so, it seems like the policy is malformed and our JSON schema we use for validation tells you about that.
If you'd attach here a policy you are trying to create (masking all sensitive data ofc, if there's any), we could figure this out together.
Also, we have this piece of docs that may help you: https://docs.opendatadiscovery.org/configuration-and-deployment/enable-security/authorization/policies
Please don't hesitate to ask us anything, we'll wait for your response

Ok, we've discussed internally and recreated the issue. It seems like that a policy is successfully created, but with some warnings from validator.
@csebille we'll let you know once it's fixed

Hi Damir and Nikita,
Thanks for your answer and for the investigation.
When I've discovered Swagger some years ago, I became an openapi enthusiast and now thanks to your platform, I become a OpenDataDiscovery enthusiast ;)
Christophe

hey @csebille, thank you for these kind words!


Quantum counting

Dear all,
I wrote a quantum counting kata but I'm encountering problems, it works for some functions and doesn't for others, should I submit a pull request?
Best
Fabrizio

Sure, if you need help figuring out how to make the kata work, you can open a pull request, describe what works and what doesn't work, and we can discuss it. I might not answer very fast (and I apologize for that in advance), as I'm working on bringing in the currently open PRs and on porting some of the katas to Jupyter Notebook format, but I'll try to not disappear altogether :-)

Hi Mariia,
before submitting the kata, I would like to get the implmentation right.
I have this program
https://gist.github.com/friguzzi/84fbba72f7b6ba7bd58b0c4f8a8be60f
https://gist.github.com/friguzzi/3c7b836d572c26450efbdc2380cbc97e
for counting the solutions of the 3 bits formula
(not reg[0] or reg[2]) and (not reg[1] or reg[2]) and (not reg[0] or not reg[1])
This formula has 4 solutions.
I consider an extended formula with 7 bits that is true when the first three bit satisfy the above formula and the other three bits are at 0. The extended formula this has 4 solutions as well but i can increase easily the number of solutions by excluding variables from the formula.
I compute the phase \phi with the linked program, then I compute \theta/2 as 2PI\phi/2=PI*\phi
Now the number of solutions should be 128sin(\theta/2)^2 right?
I get the correct number of solutions if I compute 128(1-sin(\theta/2)^2).
It's as if the formula is negated but I can't find where the negation is.
This same formula with GroverSearch returns correct solutions.
Any help is appreciated.
best
Fabrizio
The linked program

Sorry for the delay replying, I'll need to dig deeper into this topic to answer, and so far I haven't had time for it. I'll try to figure it out in the next couple of days.

Hi Mariia,
have you had the chance to have a look at the code?

I spent a couple of hours today looking into the algorithm for quantum counting and your code for it - so far everything you do looks reasonable. Why the answer diverges from the expected one, I don't know yet - I'll have to keep looking. Sorry it's taking me so long!

Thanks Mariia

I'm also writing an implementation of quantum counting (in quipper rather than C# though), and ran into the exact same problem. When I replaced sin²(θ) with 1-sin²(θ) it worked as expected. This means there's probably some shared issue between both of our implementations, rather than just a bug in yours. My current hypothesis is that θ is off by π/2, since 1-sin²(θ)=cos²(θ).
My implementation is here for comparison.

I think I found the issue - I wrote it up as an answer to your StackExchange question, since GitHub doesn't really do formulas. Sorry it took so long - it was a well-hidden bug!
@Benjamin-L - I don't know enough Quipper to check whether your implementation has the same issue, but an extra global phase of -1 on Grover iteration will manifest in this way. In this case it came from the conditional phase flip stage: in Nielsen and Chuang you're supposed to flip all phases except the |0...0⟩ state, and Q# implementation flipped only the phase of the |0...0⟩ state. Hope that helps!

@friguzzi Are you still working on the quantum counting kata? It would be an interesting one to have, especially the approximate counting.

I submitted a pull request with quantum counting

We're moving the discussion to the pull request #168, so I'll close this issue to keep the discussion in a single place.


Add an option to enable debug mode if a test is failed

I suppose it would be useful if test run will stop and be switched to debug mode when a test is failed to see what happened on the page. It also would be nice to see the error in this moment.
Something like --debug-on-fail or --pause-on-fail
UPD: when test is stopped the page should be 'unfrozen'. It should be possible to perform interaction with the page elements.

I'm working on this


[Nuxt Removal] - Fix live/hot module reload

Live/hot module reload aren't working in the nuxt removal branch. I think this will be a relatively simple webpack configuration task. I think it's just missing rather than being broken.
Notes:

Branch with nuxt removal https://github.com/codyrancher/dashboard/tree/nuxt-out

Closing this - added as a note to the main ticket #5968


Update README.md

Checklist:

[ x ] I have read freeCodeCamp's contribution guidelines.
[ x] My pull request has a descriptive title (not a vague title like Update index.md)
[ x] My pull request targets the main branch of freeCodeCamp.
[ x] I have tested these changes either locally on my machine, or GitPod.

Closes #XXXXX

I have changed some grammmer and added a line to the rules to contribution

Hey
Thank you for opening this pull request.
This is a standard message notifying you that we've reviewed your pull request and have decided not to merge it. We would welcome future pull requests from you.
Thank you and happy coding.


Line length and wrapping in pod files

I think it's a good practice to have lines in our .pod6 files wrapped at around 72 characters (with some exceptions). This is the case for many parts of the documentation, but not all contributors are doing that. In the end we have files with mixed line lengths.
Should we just autowrap the whole repo? Or should we add a file to xt/ that will give warnings for too long lines?

Another good reason to wrap lines is how github renders diffs:

Yep, right. I don't have atom configured for line wrapping. I don't know if we need a test, because I've found all kind of lines and wrapping every file would be a pain... But I think this should definitely go to the guidelines.

Maybe wrap (no pun intended) this into #2057?


fix(toast): position toast for mobile

What this PR does 📖

Toast width grew past view

Which issue(s) this PR fixes 🔨

Resolve #
#172

Special notes for reviewers 🗒
Please ignore branch name, tab failure
Additional comments 🎤
hi

Yo! So when testing I verified on Macos and Windows, it looks like on dev it used to sit all the way to the left, and now it seems to be all the way to the right now
Dev

Branch

I was just like what the heckin-dog. Should be fixed now!

I was just like what the heckin-dog. Should be fixed now!

Looks perfect! 🌟


Unhandled exception in script , Failed to excute script 'TwitchLink' due to unhandled excepation : DLL load faild while importing QtGul

The above message appears,
Is there a program or extension that I didn't install?
How can I solve this problem?
I appreciate your help.

TwitchLink only supports Windows 10 and higher.
Make sure you are using these operating systems.


Invoke-DscBuild throws error if cNetworking is in DSC_Resources

Invoke-DscBuild ends with this error.
WARNING: Get-TargetResource should return a [Hashtable] mapping all schema properties to their values. Prepend the
param block with [OutputType([Hashtable])].
WARNING: Test-TargetResource should return a [boolean]. Prepend the param block with [OutputType([Boolean])].
WARNING: Get-TargetResource should return a [Hashtable] mapping all schema properties to their values. Prepend the
param block with [OutputType([Hashtable])].
WARNING: Test-TargetResource should return a [boolean]. Prepend the param block with [OutputType([Boolean])].
New-cDscResourceProperty : ValidateSet can not be used for Arrays, PSCredentials, and Hashtable.
At C:\Program Files\WindowsPowerShell\Modules\cDscResourceDesigner\cDscResourceDesigner.psm1:3211 char:24

    $properties += New-cDscResourceProperty `

                   ~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
FullyQualifiedErrorId : InvalidValidateSetUsageError,New-cDscResourceProperty

Fixed in the latest versions of cNetworking and cDscResourceDesigner.


MQ HA In Containers - Success Stories?

Hello-
My organization is in need of a MQ HA capability with MQ in containers.  We currently rely on the single resilient QMgr pods. With recent issue with our environment (kubernetes workers failing) it has become evident that we need failover MQ pods.  We tried replicants, but when the "promary" pod fails, the standbywill only handle new messages (messages in failed MQ pod are unavailable).  Also, remote MQ connections (SDR/RCV channels) suffer sequence number issues when connecting to the standby MQ pod.  Has anyone successfully implemented MQ HA in a CaaS (kubernetes) environment, using shared storage or some other way of replicating the messages amongst the MQ replicant pods?

As discussed we will hold a call and then document any important aspects here. Closing for the moment.


Add IPIntel API support.

About the PR

This PR adds support for the IPIntel API and adds it in the connection manager.
Why / Balance

Small servers may not have the time to add a bunch of VPN ranges
Even for big servers, adding a bunch of ranges is tasking and requires manual intervention.
Those IP ranges may at any day become outdated and lead to false positives.
Ban evaders frequently use VPN's to bypass bans.

Technical details

Welcome to what I like to call "return spaghetti"
BREATH IN
This function is at the very end of the connection manager and should STAY THERE AT ALL COSTS. Since we have an API limit to abide by, Anyone working with this codebase should prioritize trying to not make a request to IPIntel if possible. To enable this system, you need to manually enable game.ipintel_enabled in your config. Along with a contact email for the IPIntel service game.ipintel_contact_email
IF YOU DON'T PROVIDE THESE TWO CCVARS IT WILL NOT FUNCTION
If the player has Datacenter or BlacklistedRange ban exemptions, then they get to bypass this system. It's not by any means perfect, so administrators should be expected to receive false positives and act accordingly for their player base. Ensure your admins are aware of the ban_exemption_update and ban_exemption_get commands.
Next up, the player's total playtime is checked. By default, game.ipintel_exempt_playtime is set to 5 Hours. This is in an effort to preserve the API limit for big servers. You can disable this by setting it to 0 if you really hate this.
Next, we will check our cache. Every time we make a request to IPIntel we cache the response for 7 days (game.ipintel_cache_length) since we want to hit IPIntel as little as possible. Again for our API limit. If we got one that's still valid, we use it. If we already have an old record, we mark it as expired and move forward. The same if we are seeing it for the first time.
 We will use the b flag by default as we don't care about if the IP of the player is compromised. (You can change the flag with the game.ipintel_flags ccvar) Just that if it's a datacenter. It also reduces the request time (assuming no latency) to 120ms~ from 200ms-5seconds for a regular scan.
Finally comes the decision. We will now compare what we got from the API. If what we got is bigger, then game.ipintel_bad_rating then we deny the connection if game.ipintel_reject_badwith an optional reject notice to the admin (game.ipintel_alert_admin_rejected). Optionally, if you set game.ipintel_alert_admin_warn_rating to something, and we did not just reject the connection, then you can warn in game admins.
If we had any errors during this process, we will return an unknown result. Whether we kick or not is determined with if game.ipintel_reject_unknown is true or not
Media

game.ipintel_alert_admin_rejected enabled

game.ipintel_alert_admin_warn_rating enabled

Default Disconnect message to blocked players

Requirements

[x] I have read and am following the Pull Request and Changelog Guidelines.
[x] I have added media to this PR or it does not require an ingame showcase.

Changelog

:cl: Myra
ADMIN:

add: Added IPIntel's API to the connection code. If enabled, this will automate VPN/Proxy detection.

You know this is for sure the first time I've had GitHub just completely break its review feature and split them up like this. I'm not even done.

gulps


Detach the binary tree structure from the RatchetTree

This PR introduces the BinaryTree as data structure, which is then used to represent the RatchetTree. With the exception of verify_integrity, which operates on a slice of nodes, all functions of tree/mod.rs have been refactored to use the BinaryTree. The functions provided by BinaryTree are somewhat tailored to what is needed by RatchetTree, so they're not meant to be particularly general or even useful in many other cases.
Additionally (sorry about the scope creep):

Indexing has been improved: More (and more general) Index implementations, allowing us to get rid of a lot of index conversions.
Removed the dirpath_long function, as it's not used anymore.
Added some unwraps in treemath in places where we know that no errors will be thrown, simplifying some functions downstream.

Note, that the BinaryTree is not yet incorporated into the SecretTree (which also uses some treemath).
Test coverage is nothing to be excited about, especially in tree/mod.rs, but that should improve with the planned uptick in managed-API testing.
(Please don't look at the commit messages, they're pretty worthless. I'll squash in the end and write a proper one.)

@raphaelrobert Thanks for all the great feedback! I talked to @franziskuskiefer yesterday to figure out if this is indeed the abstraction we want and in the end, we were both not too certain. We agreed to put this PR on hold and reconvene for a discussion on Monday. I'll still tackle all your comments, but probably not until then, as I might have to re-write/move chunks of this code anyway.
To summarize our discussion, Franziskus thought that the implementation was too specificly focused on an array-based binary tree. At the same time, the functions are not very generic, but rather pretty aligned with the needs of MLS.
After the discussion, I think the best solution would be to choose the functions provided by treemath as the binary tree interface and then write a more MLS specific second layer of abstraction which contains algorithms that handle more complex operations on the tree, that are somewhere between MLS-specific and somewhat binary-tree generic. For example, the algorithms could be blank-aware (which would allow us to pull more logic into that layer), but otherwise leave node-content specific operations to the higher layers by using closures.

This is pretty stale at this point. Closing in favour of #323.

This is pretty stale at this point. Closing in favour of #323.


Catch exceptions and prompt user for github username

Ah, sorry I didn't see someone pushed a PR. I made a new release with a fix.


Index user profiles / usernames for search

not relevant anymore since replacement of search with google custom search (#508)


Convolutional Layers seem to be broken

I tried running both the "VGG-like convnet" in the documentation and "mnist_cnn.py" in the examples folder. Both fail with this error:
$ python mnist_cnn.py
X_train shape: (60000, 1, 28, 28)
60000 train samples
10000 test samples
Traceback (most recent call last):
  File "mnist_cnn.py", line 69, in <module>
    model.compile(loss='categorical_crossentropy', optimizer='adadelta')
  File "/usr/local/lib/python2.7/site-packages/keras/models.py", line 358, in compile
    self.y_train = self.get_output(train=True)
  File "/usr/local/lib/python2.7/site-packages/keras/layers/containers.py", line 74, in get_output
    return self.layers[-1].get_output(train)
  File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py", line 480, in get_output
    X = self.get_input(train)
  File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py", line 102, in get_input
    return self.previous.get_output(train=train)
  File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py", line 654, in get_output
    X = self.get_input(train)
  File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py", line 102, in get_input
    return self.previous.get_output(train=train)
  File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py", line 455, in get_output
    X = self.get_input(train)
  File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py", line 102, in get_input
    return self.previous.get_output(train=train)
  File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py", line 480, in get_output
    X = self.get_input(train)
  File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py", line 102, in get_input
    return self.previous.get_output(train=train)
  File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py", line 654, in get_output
    X = self.get_input(train)
  File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py", line 102, in get_input
    return self.previous.get_output(train=train)
  File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py", line 560, in get_output
    X = self.get_input(train)
  File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py", line 102, in get_input
    return self.previous.get_output(train=train)
  File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py", line 459, in get_output
    X *= self.srng.binomial(X.shape, p=retain_prob, dtype=theano.config.floatX) / retain_prob
  File "/usr/local/lib/python2.7/site-packages/theano/sandbox/rng_mrg.py", line 1289, in binomial
    x = self.uniform(size=size, nstreams=nstreams)
  File "/usr/local/lib/python2.7/site-packages/theano/sandbox/rng_mrg.py", line 1270, in uniform
    size=size, nstreams=orig_nstreams)
  File "/usr/local/lib/python2.7/site-packages/theano/sandbox/rng_mrg.py", line 331, in new
    return op(rstate, cast(v_size, 'int32'))
  File "/usr/local/lib/python2.7/site-packages/theano/tensor/basic.py", line 1178, in cast
    return _cast_mapping[dtype](x)
  File "/usr/local/lib/python2.7/site-packages/theano/gof/op.py", line 527, in __call__
    raise ValueError('Cannot compute test value: input %i (%s) of Op %s missing default value' % (i, ins, node))
ValueError: Cannot compute test value: input 0 (Shape.0) of Op Elemwise{Cast{int32}}(Shape.0) missing default value

I'm using the latest Theano and Keras releases. I would try to fix the error, but I'm fairly new to Theano at this point.

Is this on GPU?
Can anyone repro this?
On 2 November 2015 at 08:31, Clay McLeod<EMAIL_ADDRESS>wrote:

I tried running both the "VGG-like convnet" in the documentation and
"mnist_cnn.py" in the examples folder. Both fail with this error:
$ python mnist_cnn.py
X_train shape: (60000, 1, 28, 28)
60000 train samples
10000 test samples
Traceback (most recent call last):
File "mnist_cnn.py", line 69, in
model.compile(loss='categorical_crossentropy', optimizer='adadelta')
File "/usr/local/lib/python2.7/site-packages/keras/models.py", line 358, in compile
self.y_train = self.get_output(train=True)
File "/usr/local/lib/python2.7/site-packages/keras/layers/containers.py", line 74, in get_output
return self.layers[-1].get_output(train)
File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py", line 480, in get_output
X = self.get_input(train)
File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py", line 102, in get_input
return self.previous.get_output(train=train)
File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py", line 654, in get_output
X = self.get_input(train)
File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py", line 102, in get_input
return self.previous.get_output(train=train)
File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py", line 455, in get_output
X = self.get_input(train)
File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py", line 102, in get_input
return self.previous.get_output(train=train)
File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py", line 480, in get_output
X = self.get_input(train)
File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py", line 102, in get_input
return self.previous.get_output(train=train)
File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py", line 654, in get_output
X = self.get_input(train)
File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py", line 102, in get_input
return self.previous.get_output(train=train)
File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py", line 560, in get_output
X = self.get_input(train)
File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py", line 102, in get_input
return self.previous.get_output(train=train)
File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py", line 459, in get_output
X *= self.srng.binomial(X.shape, p=retain_prob, dtype=theano.config.floatX) / retain_prob
File "/usr/local/lib/python2.7/site-packages/theano/sandbox/rng_mrg.py", line 1289, in binomial
x = self.uniform(size=size, nstreams=nstreams)
File "/usr/local/lib/python2.7/site-packages/theano/sandbox/rng_mrg.py", line 1270, in uniform
size=size, nstreams=orig_nstreams)
File "/usr/local/lib/python2.7/site-packages/theano/sandbox/rng_mrg.py", line 331, in new
return op(rstate, cast(v_size, 'int32'))
File "/usr/local/lib/python2.7/site-packages/theano/tensor/basic.py", line 1178, in cast
return _cast_mappingdtype
File "/usr/local/lib/python2.7/site-packages/theano/gof/op.py", line 527, in call
raise ValueError('Cannot compute test value: input %i (%s) of Op %s missing default value' % (i, ins, node))
ValueError: Cannot compute test value: input 0 (Shape.0) of Op Elemwise{Cast{int32}}(Shape.0) missing default value
I'm using the latest Theano and Keras releases. I would try to fix the
error, but I'm fairly new to Theano at this point.
—
Reply to this email directly or view it on GitHub
https://github.com/fchollet/keras/issues/937.

This is not on a GPU, just a CPU.
On Mon, Nov 2, 2015 at 3:36 PM, François Chollet<EMAIL_ADDRESS>wrote:

Is this on GPU?
Can anyone repro this?
On 2 November 2015 at 08:31, Clay McLeod<EMAIL_ADDRESS>wrote:

I tried running both the "VGG-like convnet" in the documentation and
"mnist_cnn.py" in the examples folder. Both fail with this error:
$ python mnist_cnn.py
X_train shape: (60000, 1, 28, 28)
60000 train samples
10000 test samples
Traceback (most recent call last):
File "mnist_cnn.py", line 69, in
model.compile(loss='categorical_crossentropy', optimizer='adadelta')
File "/usr/local/lib/python2.7/site-packages/keras/models.py", line 358,
in compile
self.y_train = self.get_output(train=True)
File
"/usr/local/lib/python2.7/site-packages/keras/layers/containers.py", line
74, in get_output
return self.layers[-1].get_output(train)
File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py", line
480, in get_output
X = self.get_input(train)
File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py", line
102, in get_input
return self.previous.get_output(train=train)
File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py", line
654, in get_output
X = self.get_input(train)
File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py", line
102, in get_input
return self.previous.get_output(train=train)
File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py", line
455, in get_output
X = self.get_input(train)
File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py", line
102, in get_input
return self.previous.get_output(train=train)
File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py", line
480, in get_output
X = self.get_input(train)
File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py", line
102, in get_input
return self.previous.get_output(train=train)
File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py", line
654, in get_output
X = self.get_input(train)
File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py", line
102, in get_input
return self.previous.get_output(train=train)
File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py", line
560, in get_output
X = self.get_input(train)
File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py", line
102, in get_input
return self.previous.get_output(train=train)
File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py", line
459, in get_output
X *= self.srng.binomial(X.shape, p=retain_prob,
dtype=theano.config.floatX) / retain_prob
File "/usr/local/lib/python2.7/site-packages/theano/sandbox/rng_mrg.py",
line 1289, in binomial
x = self.uniform(size=size, nstreams=nstreams)
File "/usr/local/lib/python2.7/site-packages/theano/sandbox/rng_mrg.py",
line 1270, in uniform
size=size, nstreams=orig_nstreams)
File "/usr/local/lib/python2.7/site-packages/theano/sandbox/rng_mrg.py",
line 331, in new
return op(rstate, cast(v_size, 'int32'))
File "/usr/local/lib/python2.7/site-packages/theano/tensor/basic.py",
line 1178, in cast
return _cast_mappingdtype
File "/usr/local/lib/python2.7/site-packages/theano/gof/op.py", line
527, in call
raise ValueError('Cannot compute test value: input %i (%s) of Op %s
missing default value' % (i, ins, node))
ValueError: Cannot compute test value: input 0 (Shape.0) of Op
Elemwise{Cast{int32}}(Shape.0) missing default value
I'm using the latest Theano and Keras releases. I would try to fix the
error, but I'm fairly new to Theano at this point.
—
Reply to this email directly or view it on GitHub
https://github.com/fchollet/keras/issues/937.

—
Reply to this email directly or view it on GitHub
https://github.com/fchollet/keras/issues/937#issuecomment-153164637.

Can't repro, the mnist_cnn and cifar10_cnn work for me on CPU with bleeding
edge Keras and Theano.
On 2 November 2015 at 13:41, Clay McLeod<EMAIL_ADDRESS>wrote:

This is not on a GPU, just a CPU.
On Mon, Nov 2, 2015 at 3:36 PM, François Chollet<EMAIL_ADDRESS>
wrote:

Is this on GPU?
Can anyone repro this?
On 2 November 2015 at 08:31, Clay McLeod<EMAIL_ADDRESS>wrote:

I tried running both the "VGG-like convnet" in the documentation and
"mnist_cnn.py" in the examples folder. Both fail with this error:
$ python mnist_cnn.py
X_train shape: (60000, 1, 28, 28)
60000 train samples
10000 test samples
Traceback (most recent call last):
File "mnist_cnn.py", line 69, in
model.compile(loss='categorical_crossentropy', optimizer='adadelta')
File "/usr/local/lib/python2.7/site-packages/keras/models.py", line
358,
in compile
self.y_train = self.get_output(train=True)
File
"/usr/local/lib/python2.7/site-packages/keras/layers/containers.py", line
74, in get_output
return self.layers[-1].get_output(train)
File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py",
line
480, in get_output
X = self.get_input(train)
File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py",
line
102, in get_input
return self.previous.get_output(train=train)
File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py",
line
654, in get_output
X = self.get_input(train)
File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py",
line
102, in get_input
return self.previous.get_output(train=train)
File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py",
line
455, in get_output
X = self.get_input(train)
File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py",
line
102, in get_input
return self.previous.get_output(train=train)
File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py",
line
480, in get_output
X = self.get_input(train)
File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py",
line
102, in get_input
return self.previous.get_output(train=train)
File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py",
line
654, in get_output
X = self.get_input(train)
File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py",
line
102, in get_input
return self.previous.get_output(train=train)
File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py",
line
560, in get_output
X = self.get_input(train)
File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py",
line
102, in get_input
return self.previous.get_output(train=train)
File "/usr/local/lib/python2.7/site-packages/keras/layers/core.py",
line
459, in get_output
X *= self.srng.binomial(X.shape, p=retain_prob,
dtype=theano.config.floatX) / retain_prob
File
"/usr/local/lib/python2.7/site-packages/theano/sandbox/rng_mrg.py",
line 1289, in binomial
x = self.uniform(size=size, nstreams=nstreams)
File
"/usr/local/lib/python2.7/site-packages/theano/sandbox/rng_mrg.py",
line 1270, in uniform
size=size, nstreams=orig_nstreams)
File
"/usr/local/lib/python2.7/site-packages/theano/sandbox/rng_mrg.py",
line 331, in new
return op(rstate, cast(v_size, 'int32'))
File "/usr/local/lib/python2.7/site-packages/theano/tensor/basic.py",
line 1178, in cast
return _cast_mappingdtype
File "/usr/local/lib/python2.7/site-packages/theano/gof/op.py", line
527, in call
raise ValueError('Cannot compute test value: input %i (%s) of Op %s
missing default value' % (i, ins, node))
ValueError: Cannot compute test value: input 0 (Shape.0) of Op
Elemwise{Cast{int32}}(Shape.0) missing default value
I'm using the latest Theano and Keras releases. I would try to fix the
error, but I'm fairly new to Theano at this point.
—
Reply to this email directly or view it on GitHub
https://github.com/fchollet/keras/issues/937.

—
Reply to this email directly or view it on GitHub
https://github.com/fchollet/keras/issues/937#issuecomment-153164637.

—
Reply to this email directly or view it on GitHub
https://github.com/fchollet/keras/issues/937#issuecomment-153165883.

Maybe this link will help: https://github.com/Theano/Theano/issues/1439

Can confirm that this fixed my issue.
On Mon, Nov 2, 2015 at 10:28 PM, cyc<EMAIL_ADDRESS>wrote:

Maybe this link will help: Theano/Theano#1439
https://github.com/Theano/Theano/issues/1439
—
Reply to this email directly or view it on GitHub
https://github.com/fchollet/keras/issues/937#issuecomment-153235791.


Add more theming locations to levels 1 and 2

Hi, these are locations that we always give access by default on AM, but I think it is better if aisap handles them instead like the case of the gtk-3.0 dir.

Looks good, thank you!


Create Survival_prediction_titanic.ipynb

Survival Predicted
Description
Predicted Survival of Passengers travelling on Titanic.
Fixes # (issue)
Type of change
Please delete options that are not relevant.

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

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

[ ] Test A
[ ] Test B

Test Configuration:

Firmware version:
Hardware:
Toolchain:
SDK:

Checklist:

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

Name it TITANIC_SURVIVAL_PROJECT2
Add some screenshots in the same folder
Add some resource links in the README of the project.

What kind of screenshots do you want me to add?

just a screenshot of the final accuracy you get. It can also be an MD file and paste the final metrics in it.

Please name the folder TITANIC_SURVIVAL_PROJECT2

Hi @garimasingh128 ,i have made the changes you suggested. Plz let me know if any further changes required.

Please name the folder TITANIC_SURVIVAL_PROJECT2 not the python file.

i have already changed the name of folder as Titanic_Survival_Project2 . Do you want me to change the name of ipynb file as well ?

https://github.com/anushka645/awesome-python-projects/tree/master/Titanic Survival Project
Change the name of this to TITANIC_SURVIVAL_PROJECT2 as you can see there is already a Titanic survival project folder in the root and yours will overwrite it.

Perfect. Just one last thing. Can you delete the folder Titanic Survival Project from ur forked copy.

This one ?
https://github.com/anushka645/awesome-python-projects/tree/master/Titanic Survival Project

Yup

Perfect. Just one last thing. Can you delete the folder Titanic Survival Project from ur forked copy.

Done


Fix system-test on non-POSIX paths

Properly add tls, net and http2 node modules to the exclusion
list for the system-test webpack build.

Replace hard-coded slashes (/) with either slashes or backslashes
in the module exclusion rules for the system-test webpack build.

Partially addresses #327.
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

[x] Make sure to open an issue as a bug/issue before writing your code!  That way we can discuss the change, evaluate designs, and agree on the general idea
[x] Ensure the tests and linter pass
[x] Code coverage does not decrease (if any source code was changed)
[x] Appropriate docs were updated (if necessary)

Fixes #327 🦕

@elierotenberg it looks like these changes actually landed with your other PR, has this addressed #327 at this point?

Indeed, the other PR includes this commit, although it seemed relevant to create a PR with only this one.
It adresses the webpack-related issues in #327, but the auth-related issues is not really solved. I doubt it will be solved at the source code level though, maybe in the CONTRIBUTING docs?

@elierotenberg 👍 let's keep #327 open as a reminder to better document this.


iOS crash on startup (5.5.0 and 5.6.0)

Please fill in the following fields:
Unity editor version: 2017.4.17
Firebase Unity SDK version: 5.6.0 (also tried 5.5.0)
Additional SDKs you are using (Facebook, AdMob, etc.):  Fabric, Facebook, Zendesk, Appsflyer
Platform you are using the Unity editor on (Mac, Windows, or Linux): Mac
Platform you are targeting (iOS, Android, and/or desktop): iOS
Please describe the issue here:
(Please list the full steps to reproduce the issue. Include device logs, Unity logs, and stack traces if available.)
I don't know exact reproduce case. But it happens on startup (probably while initializing firebase)
Fatal Exception: NSGenericException
0  CoreFoundation                 0x1848aed8c __exceptionPreprocess
1  libobjc.A.dylib                0x183a685ec objc_exception_throw
2  CoreFoundation                 0x1848ae3c0 -[__NSSingleObjectEnumerator initWithObject:]
3  manorcafe                      0x100ef4988 +[FIRApp firebaseUserAgent] (FIRApp.m:515)
4  manorcafe                      0x100f25798 +[FIRDiagnostics populateLogProtoWithCommonInfo:app:]
5  manorcafe                      0x100f27840 +[FIRDiagnostics clearcutLoggerWillSendLogs:forApp:userDefaults:]
6  manorcafe                      0x100f2767c +[FIRDiagnostics clearcutLoggerWillSendLogs:]
7  manorcafe                      0x100f24400 -[FIRClearcutLogger sendLogsWithCompletionHandler:]
8  libdispatch.dylib              0x1841a0aa0 _dispatch_call_block_and_release
9  libdispatch.dylib              0x1841a0a60 _dispatch_client_callout
10 libdispatch.dylib              0x1841aa9b4 _dispatch_queue_serial_drain$VARIANT$mp
11 libdispatch.dylib              0x1841ab2fc _dispatch_queue_invoke$VARIANT$mp
12 libdispatch.dylib              0x1841abcc8 _dispatch_root_queue_drain_deferred_wlh$VARIANT$mp
13 libdispatch.dylib              0x1841b4098 _dispatch_workloop_worker_thread$VARIANT$mp
14 libsystem_pthread.dylib        0x1844d3e70 _pthread_wqthread
15 libsystem_pthread.dylib        0x1844d3b08 start_wqthread

Please answer the following, if applicable:
Have you been able to reproduce this issue with just the Firebase Unity quickstarts (this GitHub project)?
Didn't tried

FIRApp.m line 515
+[FIRApp firebaseUserAgent]
We have a similar problem. There are 32000 crash messages in the last 24 hours on
Crashlytics. The situation is very urgent because the game is active. Thank you for all kinds of help about this problem.

Hi all,
This is apparently being caused by an issue in the underlying iOS SDK, https://github.com/firebase/firebase-ios-sdk/issues/2624.  I've reached out to that group to try to find a solution, and will try to get back to you all as soon as possible.

@legoritma and @uboncukcu , it seems like the iOS SDK has released a new version with the fix.  If you can, you can update the Unity SDK to use that version by changing Assets > Firebase > Editor > *Dependencies.xml, and in those files there should be a line about iosPod, which you can set the version to 5.20.0
For example, AppDependencies.xml has:
<iosPod name="Firebase/Core" version="5.18.0" minTargetSdk="8.0">

which you could update to:
<iosPod name="Firebase/Core" version="5.20.0" minTargetSdk="8.0">

Note that you will need to do this for all the Firebase dependencies files.

We've documented this in known issues at the moment here:
https://firebase.google.com/docs/unity/setup#potential_ios_crash_on_startup
We'll be bumping the iOS dependencies in a point release shortly.

We've documented this in known issues at the moment here:
https://firebase.google.com/docs/unity/setup#potential_ios_crash_on_startup
We'll be bumping the iOS dependencies in a point release shortly.

The record question on your official website does not see the record for this problem. please update it.

Hi all.  We've released a new version of the Firebase Unity SDK, 5.6.1, which contains updated dependencies files that link to the fixed version of the iOS SDK.  Thanks again for bringing this to our attention.


Coverage Pool v1.0.0 deployment

Team
Members

Deployment Team
0x123694886DBf5Ac94DDA07135349534536D14cAf

Technical Wallet Team
0xB3726E69Da808A689F2607939a2D9E958724FC2A

Community Multisig
0x19FcB32347ff4656E4E6746b4584192D185d640d

Reward Manager
0xb78c0cf4c9e9bf4ba24b17065fa8c0ac71957653

Communications
TBD

Prerequisites

[x] Determine initial auction length (https://github.com/keep-network/coverage-pools/issues/126)
[ ] Deployment scripts ready
[ ] All security audit issues addressed

Deploy smart contracts
All steps done by Deployment Team

[ ] Tag solidity/v1.0.0 in `keep-network/coverage-pools
[ ] Sign solidity/v1.0.0 commit hash
[ ] Deploy UnderwriterToken contract (address: 0x...) with the following parameters:

_name: covKEEP underwriter token
_symbol: covKEEP

[ ] Deploy AssetPool (address: 0x...) with the following parameters:

_collateralToken: KEEP@0x85eee30c52b0b379b046fb0f85f4f3dc3009afec
_underwrtierToken: UnderwriterToken.address (deployed in previous step)
rewardsManager: Technical Wallet

[ ] Deploy CoveragePool (address: 0x...) with the following parameters:

_assetPool: AssetPool.address (deployed in previous step)

[ ] Deploy AuctionBidder (address: 0x...) with the following parameters:

_coveragePool: CoveragePool.address (deployed in previous step)

[ ] Deploy SignerBondsManualSwap (address: 0x...)
[ ] Deploy SignerBondsUniswapV2  (address: 0x...) with the following parameters:

_uniswapRouter: UniswapV2Router02@0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
_coveragePool: CoveragePool.address

[ ] Deploy master Auction contract (address: 0x...)
[ ] Deploy RiskManagerV1  (address: 0x...) with the following parameters:

_tbtcToken: TBTC@0x8dAEBADE922dF735c38C80C7eBD708Af50815fAa
_tbtcDepositToken: TDT@0x10b66bd1e3b5a936b7f8dbc5976004311037cdf0
_signerBondsSwapStrategy: SignerBondsUniswapV2.address
_masterAuction: master Auction.address
_auctionLength: 604800
_bondAuctionThreshold: 100

[ ] Deploy CoveragePoolBeneficiary beneficiary (address: 0x...) with the following parameters:

token:  KEEP@0x85eee30c52b0b379b046fb0f85f4f3dc3009afec
rewards: assetPool.rewardsPool().address

[ ] Transfer UnderwriterPool ownership to AssetPool
[ ] Transfer RewardsPool ownership to CoveragePoolBeneficiary
[ ] Transfer ownership of CoveragePoolBeneficiary to BatchedPhasedEscrow@0x1b8e50ec9fbf844c3671bc178df8eadfcff831ca.
[ ] Approve RiskManagerV1 on CoveragePool calling approveFirstRiskManager
[ ] Transfer ownership of SignerBondsUniswapV2 ownership to Keep Community Multisig
[ ]  Transfer ownership of SignerBondsManualSwap to Keep Community Multisig
[ ] Transfer CoveragePool ownership to Keep Community Multisig
[ ] Transfer RiskManagerV1 ownership to Keep Community Multisig

Test reward funding
Done by Reward Manager

[ ] Top-up coverage pool rewards with 1 KEEP

Etherscan verification
All steps done by Deployment Team

[ ] Verify UnderwriterToken contract
[ ] Verify AssetPool contract
[ ] Verify CoveragePool contract
[ ] Verify AuctionBidder contract
[ ] Verify SignerBondsManualSwap contract
[ ] Verify SignerBondsUniswapV2 contract
[ ] Verify Auction contract
[ ] Verify RiskManagerV1 contract
[ ] Verify RewardsPool contract
[ ] Verify rewards pool beneficiary contract

Package publication
Done by Deployment Team

[ ] Publish v1.0.0 package of coverage pools to NPM

Release notes
Done by Deployment Team

[ ] Publish solidity/v1.0.0 release notes in keep-network/coverage-pools

Rewards beneficiary approval
Done by Technical Wallet Team

[ ] Approve RewardsPool beneficiary on BatchedPhasedEscrow@0x1b8e50ec9fbf844c3671bc178df8eadfcff831ca

After the Auction deployment, do we want to include initialize step for the Auction contract?
Is auction length has been determined already? _auctionLength: 1209600
I believe we need to determine if we need a new BatchedPhasedEscrow based on this conversation and change ownership of RewardsPool accordingly.

Looks good to me!

* After the `Auction` deployment, do we want to include `initialize` step for the `Auction` contract?

No, we can not even do that because it will fail on require(!isMasterContract, "Can not initialize master contract");. Only clones created by the Auctioneer can get initialized.

* Is auction length has been determined already? `_auctionLength: 1209600`

No, this issue was opened before any work in https://github.com/keep-network/coverage-pools/issues/126 has been done. I've created the Prerequisites section with that issue lined.

* Don't we need to transfer ownership for `UnderwriterToken` to the `AssetPool` contract?

Yes, good catch. Added to the list.

Do we want to mention that UniswapV2Pair should be deployed as a pre-requisite? https://github.com/keep-network/coverage-pools/blob/72e4055630c9f919444820be1a74a628c7da3990/contracts/SignerBondsUniswapV2.sol#L116-L121

Based on the conversation in https://github.com/keep-network/coverage-pools/issues/126, I updated the initial auction length to one week.

Don't we need to transfer AssetPool ownership  to CoveragePool?

Don't we need to transfer AssetPool ownership to CoveragePool?

We do, good catch. Added.

For AssetsPool deployment, we have rewardsManager: Technical Wallet. The table at the very top contains an entry with Reward Manager address. Could you please confirm that it's intended to use Technical Wallet instead of Reward Manager?

I believe we need to include CoveragePool address in RiskManagerV1 deployment
https://github.com/keep-network/coverage-pools/blob/87a5f22c435648680b96b6e9f20c17ea1d1933fc/contracts/RiskManagerV1.sol#L206-L214

For AssetsPool deployment, we have rewardsManager: Technical Wallet. The table at the very top contains an entry with Reward Manager address. Could you please confirm that it's intended to use Technical Wallet instead of Reward Manager?

Rewards Manager is the owner of Rewards Pool contract. The Technical Wallet was there only because it wasn't clear if we would have the beneficiary ready and deployed. I fixed it - let's assign the deployer address as Rewards Manager and this role will be later transferred to the beneficiary contract:

Transfer RewardsPool ownership to CoveragePoolBeneficiary


Nullish coalescing operator corrupts for-of loop when targeting ES5

TypeScript Version: 3.7.5 to 4.0.0-dev.20200803
Search Terms:
ES5
Optional chaining operator
Nullish coalescing operator
"Cannot read property 'next' of undefined"
"Cannot read property 'length' of undefined"
Code
const outerItems: any = [
    { innerItems: [ {} ] }
];

for (const outerItem of outerItems) {
    () => {
        outerItem;
    };
    for (const innerItem of outerItem.innerItems) {
        innerItem.member ?? "";
    }
}

console.log("Succeeded");

Is compiled to (target ES5):
"use strict";
var _a;
var outerItems = [
    { innerItems: [{}] }
];
var _loop_1 = function (outerItem) {
    (function () {
        outerItem;
    });
    for (var _i = 0, _a = outerItem.innerItems; _i < _a.length; _i++) {
        var innerItem = _a[_i];
        (_a = innerItem.member) !== null && _a !== void 0 ? _a : "";
    }
};
for (var _i = 0, outerItems_1 = outerItems; _i < outerItems_1.length; _i++) {
    var outerItem = outerItems_1[_i];
    _loop_1(outerItem);
}
console.log("Succeeded");

Expected behavior:
Output:
Succeeded

Actual behavior:
Error is thrown when compiled output is executed:
Cannot read property 'length' of undefined

Temporary variable _a holding the iterated array is overwritten by the nullish coalescing operator.
The state is also corrupted if:

?? is replaced with ?. Playground
downlevelIteration is enabled, where it will instead overwrite the variable holding the iterator. Playground

The emulated block scope for ES5 caused by the inner function seems to be the key for triggering this behavior.
Playground Link:
Playground
Related Issues:
https://github.com/microsoft/TypeScript/issues/37686

// @showEmit
// @target: es5
const outerItems: any = [
    { innerItems: [ {} ] }
];

for (const outerItem of outerItems) {
    () => {
        outerItem;
    };
    for (const innerItem of outerItem.innerItems) {
        innerItem.member ?? "";
    }
}

console.log("Succeeded");

Workbench Repro

Fixed by #41791


Package clientside JS Payload using esbuild golang version

Is your feature request related to a problem? Please describe.
Its faster and its golang so you have deep control of what it does.
Describe the solution you'd like
Here is example code of its usage from https://github.com/tmc/goloz/blob/master/Makefile

go get github.com/evanw/esbuild/cmd/esbuild

esbuild \
		client/$(SOURCEPATH)/index.js \
		'--define:process.env.NODE_ENV="development"' \
		--sourcemap \
		--serve=8000 --servedir=docs --outfile=$(OUTPATH)/app.js --bundle

Describe alternatives you've considered
...
Additional context
Its faster. way faster.
You get nice sourcemaps still.
Its well used now and even JS devs are starting to use it. SO i dont think its going away.
we can mix and match JS and WASM compilation in any way we need to since its golang lib where we have full control.

I don't really understand a difference between existing approach and your proposal. We are already using esbuild for building TS code. You can find it here.
After building, payload is packaging into .go file with package.js (thanks to @RowdyHcs) because go packaging system can't include non-go files. After that, payload can be injected into page with dynamics template function.

Oppsy i missed that :) all good then ...


Homepage stats auto

Alternative solution to homepage stat updater that does it all in a management command. Will make cronjob easier.

Pair PR on deployment: https://github.com/IATI/deployment/pull/36

Might want to merge https://github.com/IATI/preview-website/pull/129 first

Hey @Dale I think I addressed all of your comments:

Refactored command into two functions with two URL variables (easier import into unit test)
Unit testing using responses and mock JSON downloaded from the registry
Added explicit references to requests version and responses in requirements.txt and requirements_dev.txt respectively.

Approved - would still recommend making the test data more simplified (otherwise debugging failures related to this could be a bit bewildering).
Could anyone explain why the changes for events tests have made it into this branch? I'm confused given I'd expect those changes to already be in the base branch...


Fix dev url

Oversight when preparing sirocco-feedstock based on libbraiding-feedstock?

Checklist

[ ] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

You are totally right

@isuruf Is bumping the build number needed in this case?


Vaccination affects random seed

Describe the bug
Hello,
I am trying to run multiple covasim simulations with different vaccination schemes to test their impact. I would like each simulation to be identical up to the point when vaccinations begin, at which point I would expect them to diverge. I set the seed for the simulations to be the same, but they do not progress in identical manner even before the vaccinations start.
How can I get each simulation to be completely identical except for who gets vaccinated?
To reproduce
I made a colab notebook that can reproduce, or the code below should work as well.
https://colab.research.google.com/drive/1ugfrWu1sz_2xQ5E6ThyxPMdM6WIPU-aG?usp=sharing
For model issues:

import numpy as np
import covasim as cv
import sciris as sc

def prioritize_by_age(people):
    return np.argsort(-people.age)

def rand_priority(people):
    return np.random.permutation(people.uid)

def inorder_priority(people):
    return people.uid

def reverse_priority(people):
    return np.argsort(-people.uid)

np.random.seed(19143)

pars = {
    'beta': 0.015,
    'n_days': 120,
}

## make dictionary to match name to priority
name_key = {"random": rand_priority, "age":prioritize_by_age,
            "inorder":inorder_priority, "reverse":reverse_priority}
sims = []

## try simulations with a variety of vax schemes
for vax in ["age", "age", "random", "random"]: ## run each one twice, to make sure it's internally consistent

  ## get the priority function
  intervention = name_key[vax]

  ## get the vax function
  pfizer = cv.vaccinate_num(vaccine='pfizer', num_doses={20:5000},
                                      sequence = intervention,
                                      line_args = sc.mergedicts(dict(linestyle='--', c='#bbbbbb', lw=1.0)))
  ## Make simulation
  sim = cv.Sim(
      use_waning=True,
      pars=pars,
      label = vax, ## label with vax name
      interventions=pfizer,
      rand_seed = 19143
  )
  ## Set sim seed
  sim.set_seed(19143)
  sims.append(sim)

## Run simulations
for sim in sims:
  sim.run(verbose = False)
  print("Vax priority: ", sim.label)
  print("exposed, first 10 days: ", [sum(sim.people.date_exposed < x) for x in range(0, 10)])
  print("vax, first 10 days: ", [sum(sim.people.date_vaccinated < x) for x in range(0, 10)])

  print("\n ------------------------------------\n")

Expected behavior
I expected that each simulation would have identical numbers of people exposed on each of the first 10 days, because the vaccination doesn't start until day 20. This was not the case though, we see that a different number of people are infected between the "random" and "age" simulations, even though there should be no difference between the two simulations in days 0-10.
Screenshots or outputs
Here is an image of the output that I get when running the above code.

Platform (please complete the following information):
Google Colab

Thanks for noting this @cmerenstein ! We'll take a look in the next couple days.

Hi @cmerenstein , apologies for the slow reply! It turns out there's a simple explanation for this -- using sim.people.date_exposed is not reliable when you have waning immunity, since if a person becomes reinfected, it refers to the most recent date of exposure, not the first. If instead of
  print("exposed, first 10 days: ", [sum(sim.people.date_exposed < x) for x in range(0, 10)])

you use
  print("exposed, first 10 days: ", [sim.results.cum_infections[x] for x in range(0, 10)])

then it should work as expected. Please let us know if you're still having issues!

I'm not sure this really solves the issue, unless I'm not understanding right.
In the first 10 days, each simulation should be identical. No one has been vaccinated yet, and vaccination allocation is the only way in which they are intended to differ. So even if a person were exposed, recovered, and reinfected, all within the first 10 days, shouldn't that happen to the same person in every simulation?
I don't understand why every single aspect of sim.people isn't identical between my simulations, up until the first vaccine gets allocated. What do I have to set in order for this to be the case?

Thanks for the help!
This does seem to be the issue, but cum_infections doesn't really have all the same information I'm looking for. In the minimal example I posted it doesn't matter much who is getting infected, just the #, but in my actual use case the population is split into different clusters, and I want to know cumulative infections within each cluster, which is why I needed to get the result from sim.people.
Is there some way to see the first time a person was infected, or all of the dates at which a person was infected, that won't be changed by later infections?
Thanks again!


Support for schema building

Wasn't able to get this to work always just 'Additional properties not supported yet' for any connector type I enter

I forgot to bump the version of the library here: https://github.com/wtrocki/survey-json-schema/releases/tag/v0.5.0

Found an issue with picking AWS region.

Run rhoas connector build --type=aws_kinesis_sink_0.1
Get to picking AWS region and I get the following error for every option I pick

Sorry, your reply was invalid: {ap-northeast-1 2} not found in [af-south-1 ap-east-1 ap-northeast-1 ap-northeast-2 ap-northeast-3 ap-south-1 ap-southeast-1 ap-southeast-2 ap-southeast-3 ca-central-1 eu-central-1 eu-north-1 eu-south-1 eu-west-1 eu-west-2 eu-west-3 fips-us-east-1 fips-us-east-2 fips-us-west-1 fips-us-west-2 me-south-1 sa-east-1 us-east-1 us-east-2 us-west-1 us-west-2 cn-north-1 cn-northwest-1 us-gov-east-1 us-gov-west-1 us-iso-east-1 us-iso-west-1 us-isob-east-1]

Thank you so much. I will actually download all connectors schemas and test them

Passing a empty type rhoas connector build --type= gives this error and not something like type needs to be set.
Creating connector specification
❌ Unable to find root element in &{[] map[] true}. Run the command in verbose mode using the -v flag to see more information

Passing a empty type rhoas connector build --type= gives this error and not something like type needs to be set.

Nice! Same happens for rhoas connector type describe

Current build is not working:

Run make binary
Run ./rhoas
Got expected value for key "error" be a string but got map[string]interface {}{"one":"cannot read file content"}

Running rhoas connector build --type=data_generator_0.1 --output-file=spec.json over and over does not overwrite file it appends to it

Appends

Yes. I have that fixed along with number of other bugs.

@jackdelahunt do you mind taking look on this.  I removed json schema based interactive mode and I think we need to build one manually.


Feature: v2 API - use v2/histogram/prs in place of v1/prs/insights

Type of feature
🍕 Feature
Current behavior
Currently, v1/prs/insights grabs blocks of data in for accepted_prs, closed_prs, etc. based on a few time buckets (typically 30 days wide). This is very close to what we can do with v2/histogram/pull-requests and a wider time bucket.
Suggested solution
For example, hitting the v2/historgram/prs endpoint for the open-sauced/app repo:
curl -X 'GET' \
  'https://alpha.opensauced.pizza/v2/histogram/pull-requests?range=90&prev_days_start_date=0&width=90&repo=open-sauced%2Fapp' \
  -H 'accept: application/json'

Returns data that looks like:
[
  {
    "bucket": "2023-11-28T00:00:00.000Z",
    "prs_count": 109,
    "accepted_prs": 75,
    "closed_prs": 14,
    "draft_prs": 9,
    "active_prs": 9,
    "spam_prs": 0,
    "pr_velocity": 3
  },
  {
    "bucket": "2023-10-14T00:00:00.000Z",
    "prs_count": 151,
    "accepted_prs": 130,
    "closed_prs": 9,
    "draft_prs": 5,
    "active_prs": 5,
    "spam_prs": 0,
    "pr_velocity": 3
  },
  {
    "bucket": "2023-08-30T00:00:00.000Z",
    "prs_count": 2,
    "accepted_prs": 0,
    "closed_prs": 1,
    "draft_prs": 0,
    "active_prs": 0,
    "spam_prs": 0,
    "pr_velocity": 0
  }
]

If these bucket times/widths look abit strange, it's because timescale is doing most of the heavy lifting trying to figure out where the "origin" is for the given data and the associated events. Read more on this here: https://docs.timescale.com/use-timescale/latest/time-buckets/about-time-buckets/#origin

Related to:

https://github.com/open-sauced/api/pull/470
https://github.com/open-sauced/app/issues/2507

Additional context
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Contributing Docs

[X] I agree to follow this project's Contribution Docs

@brandonroberts - I think you were last looking at this: feel free to unassign yourself if other things have come up!

Closed in https://github.com/open-sauced/app/pull/2516


Read count label

Describe your suggested feature
After i read a manga and remove it from my library. The manga should show the read count in number or in %.
Ex:- after reading and removing, i open an extension/source and the manga i removed should show how many chapters i've read on the Cover of the manga.
Other details
Non.
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a short but informative title.
[X] If this is an issue with an official extension, I should be opening an issue in the extensions repository.
[X] I have updated the app to version 1.11.2.
[X] I will fill out all of the requested information in this form.

Do you really want to see the read chapter? Or it's just that you want to know that you already read/finished this manga?


Dungeon preset: Clockwork ruins

About the PR
Add Ratwar themed dungeon generation to cavs and lava biome
+reinforsed clockwork walls and windows
Media

[x] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Changelog
:cl:

add: Added clockwork dungeon in caves and lava biomes

ratwar...

rat warops vs ratvar ops

Add Ratwar themed dungeon generation to cavs and lava biome

The entities name is Ratvar, it's a rot 13 of Engine.
We might want to look how these are generated because there's a specific style that clock cult has where their base is surrounded by "void" which is really just white squares.
This is one of the older maps but you get a general idea of how the "outside" area looks


Chore/notarize app

Short summary

the path to notarize script was wrong
the notarize script needs to be in commonjs format

Test steps

yarn run deploy the app should build/package without errors. Output is in apps/course-authoring/release/build

Can we also add the exclude path in the apps/course-authoring/.eslintrc.json?

Added it to the eslint ignore file


Running in Docker with Kubernetes

This is a tutorial on how to setup Azure DevOps Agent with Docker running on Kubernetes.
Why did i create this documentation
I think its important to share knowledge on how you could setup the agents in kubernetes in a step by step tutorial.
Why i choose to download previously the agent instead of the docker file
Docker caches resources into layers, therefore it is faster to download it in the first hand and then copy it to the container. This facilitates building the docker container multiple times as well.
Why i used the current date with milliseconds to create the Agent Name
It is easier to handle concurrency when scaling multiple pods, therefore all pods have unique agents capable of responding.
Why i created a stop script
When we scale down containers they emit a life cycle hook called "PreStop" that waits at max 30 seconds (https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods) until it deletes the container, this allows enough time to delete the agent from the server. (More on https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/)

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

@brunomartinspro Thank you for this contribution, I am going to work with you and get this published. I need to stage it on our private repo and add some required metadata to the top. Before I do that I am going to give it a review, do you mind if I push changes to your branch and update this article?

@brunomartinspro Thank you for this contribution, I am going to work with you and get this published. I need to stage it on our private repo and add some required metadata to the top. Before I do that I am going to give it a review, do you mind if I push changes to your branch and update this article?

@steved0x please do, feel free to make any changes needed, thank you very much 😁

@brunomartinspro I'm in the process of editing this article and getting it reviewed. We do that in the private repo by pushing the commits from your branch into a branch there. We have some required metadata, including author, which is a GitHub alias for a Microsoft FTE responsible for GitHub issues, and ms.author, which must be a Microsoft FTE. However, ms.author can have multiple values, and while one value must be a Microsoft FTE, the other can be your email address. If you would like me to include that, please let me know and I will add it. I am setting myself (or possibly one of my team) as the value for author and ms.author so that the article will validate through our build process. Your will be credited for your contribution from your commits, and in your email address (if you wish to provide it). I'll keep you updated as the article goes through a review. Thank you again for your contribution.

@brunomartinspro Do you see your article in the TOC as a sibling to this article:
Running a self-hosted agent in Docker
Or perhaps as a new section in that article in the Windows section of that article? Please send me an email to<EMAIL_ADDRESS>and we can continue the discussion there, might be easier than me leaving a lot of comments here :)

@brunomartinspro Do you see your article in the TOC as a sibling to this article:
Running a self-hosted agent in Docker
Or perhaps as a new section in that article in the Windows section of that article?

Thank you for letting me contribute to this, sent you an email from<EMAIL_ADDRESS>😁

Hi @steved0x - Is this pull request still in progress? Thanks.

@brunomartinspro I am closing this PR and sending you an email very shortly. We are releasing a feature soon called Elastic self-hosted pools and this is the recommended solution by the Pipelines team for this issue. For that reason we are unable to add your new article at this time. I am sorry that it took so long to close the loop on this, and I want to thank you again for your contribution.

Glad this was added later on, the community really needed this! 💯
https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/docker?view=azure-devops#use-azure-kubernetes-service-cluster


hasArgument on Commands returns true instead of false

Laravel Version: 5.4.19
PHP Version: 5.6.15, 7.1.2
Database Driver & Version:
MySQL

Description:
Calling hasArgument() on a command returns true, even if the argument is missing.
This obviously only happens for optional arguments.
Steps To Reproduce:
Create fresh Laravel Project.
run php artisan make:command testCommand
change signature of command to test:testCommand {argument1?} {argument2?}
add command to Kernel.php
add code below to handle method.
        if ($this->hasArgument('argument1')) {
            echo "Hsa Argument1: " . $this->argument('argument1') . "\n";
        }
        if ($this->hasArgument('argument2')) {
            echo "Hsa Argument2: " . $this->argument('argument2') . "\n";
        }

Command: php artisan test:testCommand arg1 arg2
Result:
Hsa Argument1: arg1
Hsa Argument2: arg2

Expected:
Hsa Argument1: arg1
Hsa Argument2: arg2

Command: php artisan test:testCommand arg1
Result:
Hsa Argument1: arg1
Hsa Argument2:

Expected:
Hsa Argument1: arg1

Command: php artisan test:testCommand
Result:
Hsa Argument1:
Hsa Argument2:

Expected:

The 'hasArgument' method from Laravel's Command class,
    return $this->input->hasArgument($name);

defers to the Symfony\Component\Console\Input\Input class,
    return $this->definition->hasArgument($name);

which defers to the Symfony\Component\Console\Input\InputDefinition class, which checks to see if the argument is part of the InputDefinition
            $arguments = is_int($name) ? array_values($this->arguments) : $this->arguments;

            return isset($arguments[$name]);

Seems like 'hasArgument' just checks to see if the argument is defined for the Input Definition for the command, not whether or not it was actually included in the call.
Either way, since this is a symfony question, it might be best to ask on their repo

I'l post it on The Symfony repo, thanks for the heads up =)

@dnatabar If by chance you did post it on the Symfony repo, could you please link to that issue here?

The symfony documentation clearly states that it checks the definition:

Returns true if an InputArgument object exists by name or position.

whereas the laravel documentation says otherwise:

Determine if the given argument is present.

I'd say either the laravel code is wrong (considering the PHPDoc) or at least the documentation is wrong. There's nothing to ask on the symfony side...

Went looking at the docs to see what I was doing wrong, this seems like a bug, surely?
If the option has not been provided, this should return false.

Went looking at the docs to see what I was doing wrong, this seems like a bug, surely?
If the option has not been provided, this should return false.

I'l post it on The Symfony repo, thanks for the heads up =)

@dnatabar Anything ever happen with this?

I'l post it on The Symfony repo, thanks for the heads up =)

@dnatabar Anything ever happen with this?

@kirkbushell it's more of a misunderstanding.
Anyway, you could also ask @themsaid why the ticket was closed without justification.

@kirkbushell it's more of a misunderstanding.
Anyway, you could also ask @themsaid why the ticket was closed without justification.

@uuf6429 of how they function, yes - without a doubt, but that doesn't make it the right UX for the feature.
Working with them, I've had to set default values (false) for those I want to check, but because false values are strings and not actually booleans, it results in really bizarre, checks, like this:
if ($this->getOption('option') !== 'false)) // do thing

It's just a weird API to work with. Imho, if the option has not been provided, a boolean false value should be returned, not null, as null is also the value when the option IS provided without a value (which imho, is correct).

strange that hasOption returns true for an option that was not provided, is it possible that it gets replaced with a default value like null somewhere along the line and that's considered as being "present" now? I ended up just checking if option() returns null in my command

strange that hasOption returns true for an option that was not provided, is it possible that it gets replaced with a default value like null somewhere along the line and that's considered as being "present" now? I ended up just checking if option() returns null in my command

It's almost like the hasOption check simply checks whether or not such an option is defined as part of the command, which is again, an odd UX outcome.