Restructure main package

Fix init.py

Best way to run would probably be through a combination of config files and command line overrides. Best config file format is most likely YAML or perhaps StrictYAML or alternatively TOML (for arguments against it see this) or JSON. Best options seem to be to use one of these:

ConfigArgParse
yconf
confuse
yamlargparse

Decided to use yamlargparse. I am quite happy with it for now. Resolved in 71e423b6628c86fde81765e505b42a919c2b8ac0. It will need additional restructuring so that it can be effectively used as a library, but that will be solved in a separate issue.


Remove old static channel backups

Currently we do not remove old static channel backups, which end up unnecessarily wasting disk space on the machine.
Once we have successfully saved a channel backup, I think the old ones should be able to be safely removed from the local filesystem.
Also, once all hubs are updated to v1.10.4+, we should not do a backup on node startup.

@rdmitr would you be up to working on this?


Clickhouse data loading customisations

Fine tune clickhouse v<IP_ADDRESS> settings to be able to load the release data.

@mkarmona @pieterlukasse I've updated the PR. FYI Google cloud tools get installed in the dockerfile now.


re-render Sender examples after master secret renewal AGPUSH-1504

https://issues.jboss.org/browse/AGPUSH-1504
How to test this?

Renew master secret on Sender API tab
check that masterSecret was updated in the sender examples bellow

JVM exit reported again :-) Yay!

nice! works very well


[cherry-pick][branch-2.1] Optimize schema change

What type of PR is this：

[ ] bug
[ ] feature
[x] enhancement
[ ] others

Which issues of this PR fixes ：

Fixes #4806
Problem Summary(Required) ：

run starrocks_fe_unittest


Start at 3.4 kHz

Frequency Counter library: https://github.com/PaulStoffregen/FreqCount
Usage in last year's robot:
Preprocessor statements:
#include "FreqCount.h"

#define LOW_START 3230
#define HIGH_START 4370

Declaration:
// Sound Sensor
bool robotOn = false;
unsigned long count;

Setup:
FreqCount.begin(1000);

Loop:
if (FreqCount.available()) {
    count = FreqCount.read();
    //Serial.println(count);
  } else {
    count = 0;
  }

  //  Serial.println(getAngle('z'));
  if ((count > 3230 && count < 4370) || digitalRead(startSwitch)) {
    digitalWrite(SOUND_LED, HIGH);
    firstStart = true;
    robotOn = !robotOn;
    resetGyro('z');
  }

Last year's code: https://github.com/GW-Robotics/2017-Firefighter/blob/master/Arduino-Project/firefighter/firefighter.ino

This is the one thing working pretty reliably 🙃


VLC version 3.0.0 uses times in microseconds

Hi,
this pull request fixes the Syncplay plugin for VLC 3.0.0.

Looks pretty elegant. Why does the multiplication/division also apply to the title check - is the title value also off by such a large factor?

Hi,
yes you are correct. I didn't try with DVD movie yesterday. I've updated the pull request accordingly.

I tried testing it and it appears setting the position to >= 2148 seconds results in VLC setting the position to 0. Do other people have this problem, and is this a VLC 3.0 bug?

I have the same problem with this.
I could not find the 'time' variable initialisation in vlc, but if it is set to int, the boundaries check will reset it to it's minimum if it's under it (vlc/src/misc/variables.c 192->240). Since the int can contain numbers up to +2147483647 which in our case is 2147.483647 seconds, when provided with a number<PHONE_NUMBER> it will overflow and will become negative. The mentioned check will see that it is under the minimum allowed value for this variable which is 0 seconds and will automatically set it to 0.
I assume that when they changed seconds to microseconds they forgot the change the variable time to float, which can handle bigger numbers.

My suspicion was that it was some kind of overflow issue, thanks for the investigation.
I've created a ticket at https://trac.videolan.org/vlc/ticket/17285#ticket

You probably meant vlc.var.set(vlc.object.input(), "time",<PHONE_NUMBER>) as example for the ticket?

Yup, that's the one :+1:

351024fcaabb2ff9399a02c5f7da235414668550 means Syncplay now fails with an appropriate error message when you try to use Syncplay with VLC 3 due to its lack of Syncplay support. Anyone wishing to fix the microsecond issue can see https://trac.videolan.org/vlc/ticket/17285 - either VLC Lua needs to support the values beyond microseconds, or needs to use the old decimal seconds system for the Lua "time" variable.


Add tox support

Add configuration to run py.test, flake8 and sphinx with tox.

doh. not to myself.


(internal) release_patch: build v5.3.9071

Test plan: automated release PR, CI will perform additional checks

:green_circle: Internal release is ready for promotion!
:warning: Do not close/merge the pull request or delete the associated branch if you intend to promote it.


Spiral Print

Related Issue
-Close #728
Proposed Changes

Created a SpiralPrint.cpp file in Arrays Section.
Updated README.md in Arrays Section accordingly and mentioned about file in README.md with some Test cases, Sample Output and Discussed about the Algorithm, Its Time & Space Complexity, Approach and Explanation of Code etc..

Checklist

[x] ✅ My code follows the code style of this project.
[x] 📝 My change requires a change to the README.
[x] 🎀 I have updated the README accordingly.
[x] 👀 I have read the CONTRIBUTING document.
[x] ✨ I have added tests to cover my changes.
[x] 🚩 All new and existing tests passed.
[x] 🌟 ed the repo

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Output Screenshots
| Screenshot #1
CODE IMAGE

OUTPUT OF CODE

| Screenshot #2
README UPDATED EDITS.

You need to follow particular guidelines for your README , please follow
these guidelines click here
also you can see how your README should look like see here
for more please go through these here

Also you haven't recieved code SS from description.

*I am Closing Your PR as it already takes 7 commits....create fresh PR with fewer commits and follow proper guidelines.


avoid naming conflict with devise_token_auth #28

@parndt will go ahead and merge as it appears to resolve the issue - please feel free to suggest a better/more common way of addressing this

It makes sense 😄


Bind mount failed

I'm running Docker on Synology 918+ and when I put the below docker run command  via SSH using putty
docker run -v $(pwd)/config.json:/volume1/docker/riscolocal/config/config.json vanackej/risco-mqtt-local
I get this error
docker: Error response from daemon: Bind mount failed: '/root/config.json' does not exists.
ERRO[0003] error waiting for container: context canceled
What am I doing wrong?
I have created the config.json and placed it config folder

Your volume mounting is inverted First part is the path in the host, second part is the path in the container.
Just open your terminal in /volume1/docker/riscolocal/config and use docker run command as documented in README.

works thanks


I get an error when trying to authorize from the api managment developer portal.

When executing this step - "Select Authorization code from the authorization drop-down list, and you are prompted to sign in to the Azure AD tenant. If you are already signed in with the account, you might not be prompted."
I get an error
An error has occurred while authorizing access via Testing oauth 2: invalid_client AADSTS650053: The application 'consumer' asked for scope 'user_impersonation' that doesn't exist on the resource '00000003-0000-0000-c000-000000000000'. Contact the app vendor. Trace ID: a5842728-283e-4d9f-a1e9-c414f76c0000 Correlation ID: ff97c808-1ace-4b68-a05d-d56df10ca933 Timestamp: 2019-08-16 23:50:34Z`

I don't know why it is trying to get the scopes for resource on "00000003-0000-0000-c000-000000000000". This resource does not exist in either of my manifests. This was present for micrsofot graph but I have since deleted that entry.

I can confirm that the consumer app has permission "user_impersonation" and that the "server app" has the scope that is being asked for.

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

ID: 823eb96f-e5f1-0832-b175-0b31009be92f
Version Independent ID: 330085ae-dcf6-e930-86a8-0e4a60ab1314
Content: Protect an API by using OAuth 2.0 with Azure Active Directory and API Management
Content Source: articles/api-management/api-management-howto-protect-backend-with-aad.md
Service: api-management
GitHub Login: @miaojiang
Microsoft Alias: apimpm

@flyingUnderTheRadar
Thanks for the question! We are investigating and will update you shortly.

@flyingUnderTheRadar I believe the problem here is that the full scope has to be provided which includes the client id as well. You can get it from the API Permission blade like below

@flyingUnderTheRadar Just following up here... I hope my previous comment clears things up

@flyingUnderTheRadar Since we have not heard back from you we will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.

Yep I figured that out soon after I filed the issue. For some reason I never got notifications for the comments from you.
Thanks a lot for following up !

Can you please let me know how you fixed this. Same issue here. Thanks.

@flyingUnderTheRadar I have the same problem. Where in the screenshot is the full scope (as you mention)? What would the client id be in your screenshot? And where should this full scope be provided in the Developer Portal? Or is it to be configured somewhere in application in the App registrations page?

See here.... https://www.andrew-best.com/posts/please-sir-can-i-have-some-auth/. I only got this working when I used scope "https://management.azure.com/user_impersonation" when getting a token. I had been using scope "user_impersonation" and was getting this error message. This is terribly documented.

@flyingUnderTheRadar I believe the problem here is that the full scope has to be provided which includes the client id as well. You can get it from the API Permission blade like below

Legend. I was having ""error":"invalid_grant","error_description":"AADSTS65001: The user or administrator has not consented to use the application with ID...." and this fixed it.
Many thanks.

Can you confirm incremental/dynamic admin consent only works for delegated permissions? I am trying to get an application permission granted (yes by an admin) and it does not work:
There error URL fragment is:
?error=invalid_client&error_description=AADSTS650053%3a+The+application+%27TestIncrementalConsent%27+asked+for+scope+%27CallRecords.Read.All%27+that+doesn%27t+exist+on+the+resource+%2700000003-0000-0000-c000-000000000000%27.+Contact+the+app+vendor.

please-sir-can-i-have-some-auth saved the day. Too bad you can only request the https://management.azure.com/user_impersonation scope since no other scopes work with it at the same time.


Write README.md for repo

Potentially write other READMEs to explain other aspects of the config

Fixed by #16


Adding displayName to the Spec

Allows the user to specify a display name for the component. This is set automatically by the JSX compiler when using JSX. When the display name is not set, all components are displayed as <Unknown>.
I realize this is adding an additional property to the Spec record. However, I admit that being able to name the components was quite helpful during app development and debugging. If your intention is to keep the Spec small, I could go either way on this. Or perhaps there is a better or alternative approach? I am open to ideas!

Looks good, but how do you actually specify the display name?

Also, could you please exclude example/index.js?

Ah, will do on the exclude for example/index.js.
I was thinking to manually create a spec to specify the display name. But I can add a function displayName similar to componentWillMount. Would this be good?

I was thinking that something like componentWillMount would be nice. Otherwise, the user will have to use SpecRecord directly, right? Really, I'd like to move that type into an internal module.

Right. I've added the displayName function.

:+1: thanks!

Thank you!
On Wednesday, January 28, 2015, Phil Freeman<EMAIL_ADDRESS>wrote:

[image: :+1:] thanks!
—
Reply to this email directly or view it on GitHub
https://github.com/paf31/purescript-thermite/pull/8#issuecomment-71943342
.


Firebase-query data binding

Description
Data binding not working in firebase-query when implementing as component. I need to use firebase-query in different components and using polymer-cli to lazyload the components. If I use firebase-document I will get data.
Expected outcome
An array of the data set from the data attribute.
Actual outcome
No results and empty array.

Live Demo
http://jsbin.com/xixirarile/edit?html,output
Steps to reproduce
Took a screenshot of my console log.
Browsers Affected
Any browser.

same issue for me

Any ideas or is anyone planning to look into this issue for the polymer fire team?
The firebase-element worked perfectly. I understand polymerfire component is fairly new development but please any help on this?

did you put an attribute name on your firebase-app at the root?

Ahh wait... now i understand.
@JGSolutions: you have to understand that having this...
items: {
          type: Array,
          notify: true,
          observer: '_itemsChange'
        }

will not work because you are observing the changes in the whole item property and NOT in the item elements. I had this problem before only to find out that when I printed each element inside a dom-repeat template makes it work...
what you need to do is this:
properties: {
        items: {
          type: Array,
          notify: true,
        }
      },

      observers: [
           '_itemsChange(items.splices)'
      ]

      _itemsChange: function(items) {
        console.log('items: ', items);
      }

That's the only time you can see that any time you add inside the path: /business/cuigipizza/products/cat1 an item is added into the array items via the notifySplices inside the firebase-query (actually via this.push)
You can see how it works and why it works that way here: https://www.polymer-project.org/1.0/docs/devguide/properties#array-mutation
Hope it helps

Ok yes makes sense. But reading the documentation well kind of hard to pick this up: https://elements.polymer-project.org/elements/polymerfire?active=firebase-query
I added the dom-repeat template and yes I see the results.
This ticket can be close but maybe the examples should be better for less confusion.
Thanks for the help!

Yep it really is a bit hard to pick it up. It took me a lot of racking my brains out and experiments just to arrive with the same conclusion :stuck_out_tongue:
Anyway, you're welcome :smile:

I got stuck on this one for a few hours the other day too, it would be good if the observer functioned the same as firebase-document. As below.
items: {           type: Array,           notify: true,           observer: '_itemsChange'         }
Either that or as everyone states the documentation is really lacking, it would be great if it was updated.

_itemsChange are really called but only once when created.. After that, all
changes in the elements in the array will not be observed unless used this:
observers: [
  '_itemsElementsChanged(items.splices)'
]

On Fri, 9 Sep 2016 07:18 DanielTurnerItalic<EMAIL_ADDRESS>wrote:

I got stuck on this one for a few hours the other day too, it would be
good if the observer functioned the same as firebase-document. As below.
items: {
type: Array,
notify: true,
observer: '_itemsChange'
}
Either that or as everyone states the documentation is really lacking, it
would be great if it was updated.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/firebase/polymerfire/issues/67#issuecomment-245771725,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AChe1vcr-zny9rPierkjg9qRl4kTA2uwks5qoJepgaJpZM4JEsZN
.

Are you saying there is no way that the firebase-query will ever behave in the same manner as the firebase-document? As in after the items are fully loaded from firebase the observer is triggered?
Right now the observer works for me but I found it confusing that it doesn't work in the same manner since the polymer-fire documentation doesn't clearly state that it behaves differently. Generally if you are using a dom-repeat template it doesn't matter, but if you are doing further manipulation of the data you might get stuck.

Yes. So any child_added event called will not call the _itemsChange
function. One hack is to just refire the items-changed (cant remember the
property fire event).
On Fri, 9 Sep 2016 08:45 DanielTurnerItalic<EMAIL_ADDRESS>wrote:

Are you saying there is no way that the firebase-query will ever behave in
the same manner as the firebase-document? As in after the items are fully
loaded from firebase the observer is triggered?
Right now the observer works for me but I found it confusing that it
doesn't work in the same manner since the polymer-fire documentation
doesn't clearly state that it behaves differently. Generally if you are
using a dom-repeat template it doesn't matter, but if you are doing further
manipulation of the data you might get stuck.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/firebase/polymerfire/issues/67#issuecomment-245786729,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AChe1m_TyfLOhJmJ9vpe120nOioTz4t7ks5qoKw1gaJpZM4JEsZN
.

Thanks. Ok, so then consider this another vote for better documentation on the firebase query.

Hi , I'm dealing with a similar issue as well. firebase-query doesn't seem to notify the binded data about the changes when the changes happen in levels deeper than the immediate one where the path is directed to. Would appreciate if anyone can update me on the current status, is this solved? if yes, where can I find more info on it, if not, any solution but the one above? Although, it is a good one, it's just quite annoying to go though my data to extract what I want (only the change) and also not so efficient. Thanks a lot anyways


New layout for editing files quickly: a windowed Zen Mode

Hi!
I would like a new layout, in addition to the normal layout, the Zen Mode, ..., that would be a "Quick Edit" layout, to be able to quickly view and edit files without a full-fledged IDE layout.
The problem
The primary use of VS Code is as an IDE, but I still often use it to quickly view/edit to text or code files. For example, when I downloaded a software and there's a JSON configuration file that I need to edit. Or when there's a single CSV that was sent to me and I want to have a look at it.
In all of those common cases, a full-fledged IDE seems too cluttered to me, which makes me want to use a secondary editor, like Notepad or Sublime Text, where I can have a focused, unobstructed view and do exactly what I mentioned. This way, I can also move the window to the side, and browser to the other side to look at documentation for the configuration file. Using VS Code that way can be impractical since the side bar is in the way.
The solution
Instead, I wish I could have the option to open those files automatically directly in VS Code, but in a simplified view, that I will call the Quick Edit view. That way I can:

use my favourite editor for everything instead of having two editors
enjoy my favourite extensions like one that displays argument names inline in function calls
enjoy a clutter-free interface, adapted for this kind of work since I don't need programming tools.

I can also resize the window to be small while still seeing a lot of the code since it takes up most of the space. This is not only practical for the "quick edit" use case that I want VS Code to handle better, but also for whenever someone wants to use another software next to VS Code, even when working with big projects! At those moments, a keyboard shortcut to switch to this mode could allow for a fast transition from full-functionality to a more space-efficient layout.
Implementation
To make this layout, you can simply make a windowed version of the Zen Mode.
Here are a few features that I'd like to see in this layout:

A setting under Workbench that lets me choose with which files (if not all) to open the window in Quick Edit view.

This could be done with a single "startupLayout" setting that we can set to "QuickEditView". Then we can use language-specific configuration like this:"[json]": {
    "workbench.startupLayout": "QuickEditView"
}

This could also be done with a "quickEditViewFileAssociations" setting:"workbench.quickEditViewFileAssociations": [
    "*.txt",
    "*.csv",
    "*.json"
]

or"workbench.quickEditViewFileAssociations": [
    "*"
]

A button that is very easy to see and to understand, that takes us to the "normal" view. This is very useful, because whenever you do small work on a file, you might realize that things are getting more complicated than you thought and that you might want to have access to all your usual tools.
A default keyboard shortcut - or at least a Command Palette option - to toggle on and off this view

Screenshots

Browser and VS Code (cluttered, syntax coloring):

Browser and Notepad (focused, no syntax coloring):

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

:slightly_frowning_face: In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.
Happy Coding!


Cherry pick engine 33ad6c4d3fc3f9cb4391980531cb12cfc44e4137

To include a Dart SDK fix forward to unblock internal roll.

@renyou you may need to add one additional change to packages/flutter/test/services/hardware_keyboard_test.dart
please see https://github.com/flutter/flutter/pull/91907/files

Added. Thanks! @a-siva


CoC Support

I'm not sure if this is really an issue but when using this with CoC and doing a '{' and pressing enter, it does not do an indent

I can't reproduce your issue when using coc.nvim. Please provide more details.


Allow installation without numpy already installed

Description
When installing despasito, the user must have numpy installed for the import to run. However, if the user does not have Cython installed, numpy will not be used anyway.
Todos
I propose moving the numpy import inside the same optional logic as Cython, and modifying the warning to be more explicit.
Questions
If you like this change, the README should also be updated to explain how numpy and Cython are optional for acceleration.
Status

[ ] Ready to go

Note
This PR is part of an ongoing JOSS review at https://github.com/openjournals/joss-reviews/issues/7365

Resolved in https://github.com/Santiso-Group/despasito/pull/40


fix(utils): fix relative path for utils in HandlerExecutorFactory

It's currently using an invalid path for referencing a relative file and breaking builds.

cc @ppedziwiatr

would fix #523

Thanks, released in 1.4.44


Update lilygo-t7-s3.json

Update PlatformIO board definition to enable CDC.
Fix board name.

Any reason why this change has not been accepted yet?


Outdated README.md?

Hello!
I have compiled gctools without issue. I'm attempting to extract the res/Object/* arc files (which I have reason to believe that these are the models) from Twilight Princess. In your README, specifically in this section, you use the tool rarcdump. Now, I'm not seeing rarcdump in gctool's arsenal, so I'm wondering how you got the executable.
With much appreciation for your project,

Lunar

rarcdump isn't part of gctools; you can find it here, as part of szstools. I'll update the readme with this link.

Much appreciated


Use matplotlib 3.1 and adapt tests

Now only mpl versions start to break more important stuff than 3d plotting, so let’s update.
The umap_with_edges went

from
to

Is the new one correct? If not, what did I do wrong?

seems to me like the default palette changed?

Yeah, but why does the test not fail on master then? The following works:
pbmc = sc.datasets.pbmc68k_reduced()
assert pbmc.uns['louvain_colors'].tolist() == sc.pl.palettes.zeileis_28[:11]


now dev does not forget older now.json

now dev does not appear to be forgetting older now.json files and respecting changes.,
I have a now.json with two builds.

A @now/static-build that runs nuxt generate
A series of *.js files that run a build with @now/node

For every route, nuxt generate is ran. For every request to a API endpoint, nuxt generate is ran.
I removed the first build set from the now.json file, so only the node endpoints are valid to remove the issue of nuxt generate running in all situations.
I reran now dev. nuxt generate still runs...
Help.

Which version of now CLI are you using?

I have now-desktop installed and am running with the canary flag and auto-update enabled.
▶ now -v
15.0.4-canary.5

I see, thanks. Could you create a repro repository so that I can take a closer look?

I am in the middle of creating a test repo for you. Just making sure I can validate in the test repo -
I killed this halfway through, but you can see when it was ready on localhost:3000 and I made a request to the API POST /api/v1/status and it started to process everything again. Near the bottom you can see where it generated the files again.
~/GitHub/now-dev-issue  master ✗                                                                                3m ⚑ ◒
▶ now dev
> Running initial builds
downloading user files...
running user scripts...
installing to /var/folders/48/zm1g8wcn5f9b2q6jk7mfrcrh0000gn/T/co.zeit.now/dev/workPaths/ukefh7fg
yarn install v1.15.2
info No lockfile found.
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 🔨  Building fresh packages...
success Saved lockfile.
✨  Done in 15.28s.
running "yarn run now-build"
yarn run v1.15.2
$ nuxt generate
ℹ Production build                                                                                20:54:09
✔ Builder initialized                                                                                20:54:09
✔ Nuxt files generated                                                                                20:54:09

✔ Client
  Compiled successfully in 7.60s

Hash: 956a21bcae8a0586bf78
Version: webpack 4.29.6
Time: 7601ms
Built at: 2019-04-11 20:54:18
                         Asset       Size  Chunks             Chunk Names
../server/client.manifest.json   5.45 KiB          [emitted]
       0e61694972c6b6a823ee.js    1.3 KiB       3  [emitted]  pages/index
       552c69faf0d79bffd533.js    1.3 KiB       2  [emitted]  pages/about
       7a8400d7bee9541be5a7.js    146 KiB       1  [emitted]  commons.app
       7eed4a93ad7c61d8b63f.js   35.3 KiB       0  [emitted]  app
                      LICENSES  427 bytes          [emitted]
       c5fafc6547a391c2ca16.js   2.25 KiB       4  [emitted]  runtime
 + 1 hidden asset
Entrypoint app = c5fafc6547a391c2ca16.js 7a8400d7bee9541be5a7.js 7eed4a93ad7c61d8b63f.js
ℹ Generating pages                                                                                20:54:18
✔ Generated /                                                                                20:54:18
✔ Generated /about                                                                                20:54:18
✨  Done in 12.39s.
downloading user files...
installing dependencies for user's code...
installing to /var/folders/48/zm1g8wcn5f9b2q6jk7mfrcrh0000gn/T/co.zeit.now/dev/workPaths/5lkjmj8o/user/api/v1/status
yarn install v1.15.2
info No lockfile found.
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 🔨  Building fresh packages...
success Saved lockfile.
✨  Done in 14.32s.
writing ncc package.json...
installing dependencies for ncc...
installing to /var/folders/48/zm1g8wcn5f9b2q6jk7mfrcrh0000gn/T/co.zeit.now/dev/workPaths/5lkjmj8o/ncc
yarn install v1.15.2
info No lockfile found.
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 🔨  Building fresh packages...
success Saved lockfile.
✨  Done in 0.71s.
running user script...
running "yarn run now-build"
yarn run v1.15.2
$ nuxt generate
ℹ Production build                                                                                20:54:37
✔ Builder initialized                                                                                20:54:37
✔ Nuxt files generated                                                                                20:54:37

✔ Client
  Compiled successfully in 7.54s

Hash: 5f9956f0bb0fd46cabae
Version: webpack 4.29.6
Time: 7539ms
Built at: 2019-04-11 20:54:46
                         Asset       Size  Chunks             Chunk Names
../server/client.manifest.json   5.45 KiB          [emitted]
       0e61694972c6b6a823ee.js    1.3 KiB       3  [emitted]  pages/index
       4be304d54859edfd62a4.js   35.3 KiB       0  [emitted]  app
       552c69faf0d79bffd533.js    1.3 KiB       2  [emitted]  pages/about
       7a8400d7bee9541be5a7.js    146 KiB       1  [emitted]  commons.app
                      LICENSES  427 bytes          [emitted]
       c5fafc6547a391c2ca16.js   2.25 KiB       4  [emitted]  runtime
 + 1 hidden asset
Entrypoint app = c5fafc6547a391c2ca16.js 7a8400d7bee9541be5a7.js 4be304d54859edfd62a4.js
ℹ Generating pages                                                                                20:54:46
✔ Generated /                                                                                20:54:46
✔ Generated /about                                                                                20:54:46
✨  Done in 12.22s.
compiling entrypoint with ncc...
ncc: Version 0.17.3
ncc: Compiling file index.js
> Success! Initial builds complete
> Ready! Development server running at http://localhost:3000
downloading user files...
installing dependencies for user's code...
installing to /var/folders/48/zm1g8wcn5f9b2q6jk7mfrcrh0000gn/T/co.zeit.now/dev/workPaths/5pm6jj7o/user/api/v1/status
yarn install v1.15.2
info No lockfile found.
[1/4] 🔍  Resolving packages...
⡀<EMAIL_ADDRESS>POST /api/v1/status
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 🔨  Building fresh packages...
success Saved lockfile.
✨  Done in 18.61s.
writing ncc package.json...
installing dependencies for ncc...
installing to /var/folders/48/zm1g8wcn5f9b2q6jk7mfrcrh0000gn/T/co.zeit.now/dev/workPaths/5pm6jj7o/ncc
yarn install v1.15.2
info No lockfile found.
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 🔨  Building fresh packages...
success Saved lockfile.
✨  Done in 1.41s.
downloading user files...
installing dependencies for user's code...
installing to /var/folders/48/zm1g8wcn5f9b2q6jk7mfrcrh0000gn/T/co.zeit.now/dev/workPaths/8rv8tlsg/user/api/v1/status
yarn install v1.15.2
[1/4] 🔍  Resolving packages...
success Already up-to-date.
✨  Done in 0.73s.
writing ncc package.json...
installing dependencies for ncc...
installing to /var/folders/48/zm1g8wcn5f9b2q6jk7mfrcrh0000gn/T/co.zeit.now/dev/workPaths/8rv8tlsg/ncc
yarn install v1.15.2
[1/4] 🔍  Resolving packages...
success Already up-to-date.
✨  Done in 0.10s.
running user script...
running "yarn run now-build"
yarn run v1.15.2
$ nuxt generate
ℹ Production build                                                                                20:55:29
✔ Builder initialized                                                                                20:55:29
✔ Nuxt files generated                                                                                20:55:29

✔ Client
  Compiled successfully in 7.35s

Hash: 68072cca8198432291ad
Version: webpack 4.29.6
Time: 7357ms
Built at: 2019-04-11 20:55:38
                         Asset       Size  Chunks             Chunk Names
../server/client.manifest.json   5.45 KiB          [emitted]
       0e61694972c6b6a823ee.js    1.3 KiB       3  [emitted]  pages/index
       552c69faf0d79bffd533.js    1.3 KiB       2  [emitted]  pages/about
       7a8400d7bee9541be5a7.js    146 KiB       1  [emitted]  commons.app
                      LICENSES  427 bytes          [emitted]
       c5fafc6547a391c2ca16.js   2.25 KiB       4  [emitted]  runtime
       e763eac1751155273310.js   35.3 KiB       0  [emitted]  app
 + 1 hidden asset
Entrypoint app = c5fafc6547a391c2ca16.js 7a8400d7bee9541be5a7.js e763eac1751155273310.js
ℹ Generating pages                                                                                20:55:38
✔ Generated /                                                                                20:55:38
✔ Generated /about                                                                                20:55:38
✨  Done in 11.21s.
compiling entrypoint with ncc...
ncc: Version 0.17.3
ncc: Compiling file index.js
downloading user files...
installing dependencies for user's code...
installing to /var/folders/48/zm1g8wcn5f9b2q6jk7mfrcrh0000gn/T/co.zeit.now/dev/workPaths/stbljsaj/user/api/v1/status
yarn install v1.15.2
info No lockfile found.
[1/4] 🔍  Resolving packages...

The request to the API hangs until this runs, instead of causing an error or rejecting the request. I should also mention that a POST was accepted to a route that should only accept GET. It returned the response without an error. I would expect some level of logic would be handled by the METHOD defined. Do we have to handle this in the lambda?

Steps to Reproduce

Clone https://github.com/khrome83/now-dev-issue
Run now dev
Using Postman or Curl hit localhost:300/api/v1/status with GET and POST and observe both work and rebuild nuxt generate
ctrl + c now dev
Remove the @now/static-build build line. Save.
Run now dev. Observe nuxt generate runs.

This was running now dev after remove the line.
~/GitHub/now-dev-issue  master ✔                                                                                6m  ⍉
▶ now dev
> Running initial builds
downloading user files...
installing dependencies for user's code...
installing to /var/folders/48/zm1g8wcn5f9b2q6jk7mfrcrh0000gn/T/co.zeit.now/dev/workPaths/e9skqnrv/user/api/v1/status
yarn install v1.15.2
info No lockfile found.
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 🔨  Building fresh packages...
success Saved lockfile.
✨  Done in 18.43s.
writing ncc package.json...
installing dependencies for ncc...
installing to /var/folders/48/zm1g8wcn5f9b2q6jk7mfrcrh0000gn/T/co.zeit.now/dev/workPaths/e9skqnrv/ncc
yarn install v1.15.2
info No lockfile found.
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 🔨  Building fresh packages...
success Saved lockfile.
✨  Done in 1.25s.
running user script...
running "yarn run now-build"
yarn run v1.15.2
$ nuxt generate
ℹ Production build                                                                                21:00:25
✔ Builder initialized                                                                                21:00:25
✔ Nuxt files generated                                                                                21:00:25

✔ Client
  Compiled successfully in 8.69s

Hash: 61b687e344f09c931091
Version: webpack 4.29.6
Time: 8694ms
Built at: 2019-04-11 21:00:35
                         Asset       Size  Chunks             Chunk Names
../server/client.manifest.json   5.45 KiB          [emitted]
       0e61694972c6b6a823ee.js    1.3 KiB       3  [emitted]  pages/index
       552c69faf0d79bffd533.js    1.3 KiB       2  [emitted]  pages/about
       7a8400d7bee9541be5a7.js    146 KiB       1  [emitted]  commons.app
                      LICENSES  427 bytes          [emitted]
       a7d06d5430a9001d93f4.js   35.3 KiB       0  [emitted]  app
       c5fafc6547a391c2ca16.js   2.25 KiB       4  [emitted]  runtime
 + 1 hidden asset
Entrypoint app = c5fafc6547a391c2ca16.js 7a8400d7bee9541be5a7.js a7d06d5430a9001d93f4.js
ℹ Generating pages                                                                                21:00:36
✔ Generated /                                                                                21:00:36
✔ Generated /about                                                                                21:00:36
✨  Done in 13.32s.
compiling entrypoint with ncc...
ncc: Version 0.17.3
ncc: Compiling file index.js
> Success! Initial builds complete
> Ready! Development server running at http://localhost:3000
downloading user files...
installing dependencies for user's code...
installing to /var/folders/48/zm1g8wcn5f9b2q6jk7mfrcrh0000gn/T/co.zeit.now/dev/workPaths/3jca4sbo/user/api/v1/status
yarn install v1.15.2
info No lockfile found.
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 🔨  Building fresh packages...
success Saved lockfile.
✨  Done in 16.00s.
writing ncc package.json...
installing dependencies for ncc...
installing to /var/folders/48/zm1g8wcn5f9b2q6jk7mfrcrh0000gn/T/co.zeit.now/dev/workPaths/3jca4sbo/ncc
yarn install v1.15.2
info No lockfile found.
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 🔨  Building fresh packages...
success Saved lockfile.
✨  Done in 1.44s.

Ok, so there's a couple things going on here:

The @now/node builder runs npm run now-build from the directory of the entrypoint file (so api/v1/status in your case). Because there's no package.json file in that directory, npm traverses up the directory parents until it finds a package.json, so the root now-build gets executed again and nuxt generate is ran. This happens in production as well (see the logs here https://zeit.co/deployments/now-dev-issue-ff8aeohlr.n8.io/logs?name=bld_n2jy9lp0k). To fix that, you can add a package.json file to the status directory. It could even be just {} as the contents, but it's also a good idea to separate the dependencies that the status API endpoint will use from the ones the nuxt builder uses as well.
The reason it appears to be building after the server has started is because the @now/node builder's prepareCache() function is invoked after the build has finished. In the current @now/node builder, a different directory is used to prepare the cache vs. the build work path. This has been updated in https://github.com/zeit/now-builders/pull/356, but is only in the canary release so far. Give @now/node@canary a try (or also try @tootallnate/node which has more dev-related  changes in place).

@TooTallNate - ok thank you, that helps a lot. Let me make those changes.

@TooTallNate - what about the method being ignored. A route that is specified for GET accepting a POST?
Is the lambda suppose to validate the method?

@khrome83 methods support was added in #2306.
Gonna close this one since a lot of changes have been implemented since this was opened. now.json should now be properly invalidated since we added the watcher to now dev. Please open a new issue if you are still having issues.


Object.freeze on prototype before adding delete property

I had an error (which isn't actually an issue anymore) crop up in therubyracer (v8 engine) after nuking node_modules/ which lead me to the Object.freezeing of prototypes. My PR added the delete property on the prototype after the freeze, which makes no sense that it ever worked.
Any ideas?

Since tests test only remove method, the absence of delete probably wasn't noticed. :)

Thanks. I'll increase the test coverage and fix it.


Avoid duplicating type tests

Currently, we clone all type tests across 5 files, it would be helpful to generate those out of the same file

Do you mean something like this:
// types-test/generate.mjs
import fs from "fs";
import path from "path";

const generatedTest = `
import axios from 'axios';

async function run() {
    const res = await axios.get('http://example.com');

    expect(res).toBeTruthy();

    expect(res).toBeSuccessful();
    expect(res).not.toBeSuccessful();
    ${// rest of our matchers}
}

run();
`
fs.writeFileSync(path.join(ROOT_DIR, 'types-test', 'expect-type-tests', 'types.test.ts'), generatedTest);
fs.writeFileSync(path.join(ROOT_DIR, 'types-test', 'jest-all-type-tests', 'types.test.ts'), generatedTest);
// rest of the types-test folders

Ofc there would still be a reason to run the tests to verify it's all working correctly, but this way you only need to write it once to apply changes to all 5 places.

sort of, I would still have each file but would have some kind of template that we will insert to - handlebar style

Yeah all files will still be tracked by git, this is just an easier way to write to those files so we don't have to write the same thing 5 times each time we add a matcher.
I will work on this tomorrow.

For now it seems ok


wrong command provided

The command uninstall-AzureRm appears to be incorrect.  What worked for me was "Uninstall-Module -Name AzureRM"

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

ID: bf3feb96-b9f9-c8a0-1ea9-ee52699fa445
Version Independent ID: b3ce94fa-6e76-4ffe-e70e-07f7a321fcd4
Content: Uninstall Azure PowerShell
Content Source: docs-conceptual/azps-1.0.0/uninstall-az-ps.md
GitHub Login: @sptramer
Microsoft Alias: sttramer

The command is valid, and part of the Az 1.0.0 release. See the cmdlet documentation.

For me, right now, Uninstall-AzureRm results in this message: _WARNING: Both Az and AzureRM modules were detected on this machine. Az and AzureRM modules cannot be imported in the same
session or used in the same script or runbook. If you are running PowerShell in an environment you control you can use the
'Uninstall-AzureRm' cmdlet to remove all AzureRm modules from your machine. If you are running in Azure Automation, take
care that none of your runbooks import both Az and AzureRM modules. More information can be found here:
https://aka.ms/azps-migration-guide_ I've been trying to run COnnect-AzureAD for a few hours now. This is just like the good old days of "DLL hell". You've really messed this up


Benchmarks: Upgrade to latest released package of BenchmarkDotNet on NuGet

Fix for https://github.com/dotnet/BenchmarkDotNet/issues/481 is needed for our benchmark runs. We currently depend on their nightly builds. Once the fix is available on NuGet we should remove the nightly build and depend on what is available on NuGet.

BenchmarkDotNet v0.10.9 (with fix for https://github.com/dotnet/BenchmarkDotNet/issues/481) has been released, it's already available on nuget.org: https://www.nuget.org/packages/BenchmarkDotNet/0.10.9

Thanks @AndreyAkinshin - I will update the code. At present we are stuck on merging due to windows defender raising virus alert (seems like https://github.com/dotnet/BenchmarkDotNet/issues/364)

Fixed with 0a31b87c1c044c24e5ffd8219e710fbc0faa38aa


Rendering a large amount of entity points.

I've really stuck on that mission and need help please. I need to render a huge amount of entities and if I render about 20-30 entities it renders very well. The problem starts when amount of entities becomes more. I'm relatively new in react and ask to not judge strictly.
My code for render method:
render() {
    const entityList = this.state.data;
    let result;

    if(entityList.length !== 0)
    {
        result = entityList.map((value, index) => {
            return(
                <Entity key={index} position={Cartesian3.fromDegrees(parseFloat(value.Longitude), parseFloat(value.Latitude))}>
                    <PointGraphics pixelSize={10} />
                    <EntityDescription>

{value.Name}

Year: {value.Year} Amount: {value.Amount}

                    </EntityDescription>
                </Entity>
            );
        });
    }

    return (
        <Viewer>
            {result}
        </Viewer>
    );
}

Entity is not suitable for displaying large amounts of data. I recommend using PointPrimitive and PointPrimitiveCollection.

Thanks for that fastest answer! Yes with PointPrimitive and PointPrimitiveCollection large amount renders well. But can you give some advise about what to do with description to each of this points?

Displaying description is only supported for Entity, so we have to implement the logic to display the description for each point primitives, but we can it.
<Viewer onClick={e => {
  if (e instanceof PointPrimitive) {
    // ...
  }
}}>
  {/* ... */}
</Viewer>

Unfortunately when I'm trying to click on point the following error occurs:
TypeError: Right-hand side of 'instanceof' is not callable

Instead of attach handler to Viewer component I'm attaching it to each PointPrimitive  and assign some data to only string _id property... without checking for instance. It works well. Thanks for advise!


sharpswift.exe "plc.cs" does not work

Hi,
I want check this program out, but I get an error message if I do a sharpswift.exe "plc.cs".
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at SharpSwift.Program.ParseFile(String path, String solutionPath, Boolean doIndent) in C:\Users\stalle.JM\Downloads\SharpSwift-master\SharpSwift\SharpSwift\Program.cs:line 62
at SharpSwift.Program.Main(String[] args) in C:\Users\stalle.JM\Downloads\SharpSwift-master\SharpSwift\SharpSwift\Program.cs:line 27
The error comes because it's not soluation file available.
var doc = GetDocumentFromSolution(solutionPath, path); var tree = doc.GetSyntaxTreeAsync().Result;
So...the var doc becomes null and "var tree..." crashes. Do you have a solution ?
BR Axel

Hello! Thanks for checking the project out :)
If I understand your issue correctly, could you make sure that your .cs file is part of a solution (and that the .sln file is somewhere nearby in the folder tree)? I haven't worked on this for a few months so it's possible there are other issues with it (or that Roslyn has made breaking changes since then).
The README should probably be updated to specify this, but yes, it does require the .cs file be a part of a solution.
Let me know if I've misunderstood the issue!
Thanks,
Matthew
PS: By all means feel free to use this/check it out, but on the chance you're attempting to write OSX/iOX code on Windows, it's also worth mentioning that since I first started work on this Xamarin has become free!


#942 sample layer list

this change set probably highlights the need for a new method in the overlay class. String getTitle() perhaps.


Create a simple demo UI

Basically swapping the panes on http://jsonschemalint.com/draft4/ :-)

Pane on the left to paste in the JSON instance
Pane on the right to paste in the JSON Schema

Thought experiment: could we run this UI entirely browser side by embedding the schema-guru logic via scala-js?

May be we could move it from far-out stuff to some near future? Because basic web UI will drastically increase it accessiblity and allow anyone to come up with new ideas and actually test it.

And furthermore, I think for main purpose of this application web UI is more appropriate than CLI since it allows user to check what he wants much more deliberately and precisely.

I think the UI is nice for quick experimentation, although the real value I think of schema-guru is when you can derive&merge from 100s of records. Still, agree, let's move it forwards...

What about upload an archive?

Yes that could work...

I like the idea that you could keep dragging JSONs into the left pane, one by one, and the right pane (the schema) would keep refining through merging...

Actually it could be a very sophisticated app. User uploads a bunch of files, look at the schema and just presses buttons to adjust schema.


SPDY vulnerability misleading

Not really a huge deal, but the output states my site has a spdy version <4, but that's simply b/c the protocols are not advertised b/c npn is disabled in favor of alpn.  Even if it were using npn the code is not checking the version just that the line exists.
While i'm not going to point at my site here, check the facebook.com and then go here: https://spdycheck.org/#facebook.com

I still meet this error. a2sv only search "Protocols advertised by server" in the return by "openssl s_client -connect ip:port -nextprotoneg NULL ".
If the server don't support NPN extension, a2sv will give "Includes SPDY version <4" and consider the server is vulneralbe CRIME.


Expose local_address and remote_address.

Pull Request Test Coverage Report for Build 44

2 of 4 (50.0%)  changed or added relevant lines in 1 file are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.5%) to 79.458%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

trio_websocket/init.py
2
4
50.0%

Files with Coverage Reduction
New Missed Lines
%

trio_websocket/init.py
1
87.42%

Totals

Change from base Build 41:
-0.5%

Covered Lines:
352

Relevant Lines:
443

💛  - Coveralls

Pull Request Test Coverage Report for Build 44

2 of 4 (50.0%)  changed or added relevant lines in 1 file are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.5%) to 79.458%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

trio_websocket/init.py
2
4
50.0%

Files with Coverage Reduction
New Missed Lines
%

trio_websocket/init.py
1
87.42%

Totals

Change from base Build 41:
-0.5%

Covered Lines:
352

Relevant Lines:
443

💛  - Coveralls

It would make more sense to expose the stream object than to expose the socket object. There isn't always a socket, but there is always a stream. And the stream is useful in other circumstances too, e.g. SSLStream has methods to get information about the peer's certificate.
There's also https://github.com/python-trio/trio/issues/280, which is about giving Stream a high-level API for accessing local and remote addresses... that + exposing the stream on the websocket could potentially replace this PR.
Note that when we do add this API to Stream, it will probably use await to fetch the addresses, and probably won't return bare tuples.

Making stream part of the public API feels dangerous. If the caller starts doing things with the raw stream, it could break the WebSocket protocol. For example, the caller could do perform some send or receive on the stream that would cause our local WebSocket state to miss some frames and yield invalid state.
I'd much prefer the public API to have read-only properties like remote address, local address, or SSL certificate. If somebody really needs to manipulate the stream, they can either access the private attribute _stream or they can create their own stream and wrap it in a WebSocket.

This is addressed in #109.


Solidity vs Python: Which is the Best Blockchain Platform

Proposed title of article
A Solidity vs Python: Which is the Best Blockchain Platform
Proposed article introduction
In the past few years, we’ve seen blockchain technology grow in popularity. Even though it’s still relatively new, this technology is already being adopted by big companies like IBM and Microsoft. Many software developers are looking to find ways to join the blockchain movement and get in on this exciting new market.
Solidity and Python are two popular programming languages used to write smart contracts on blockchains. The blog will discuss the most important pros and cons of both languages, helping you make an informed decision.
Key takeaways
Article quality
References
Please list links to any published content/research that you intend to use to support/guide this article.
Conclusion
Finally, remove the Pre-Submission advice section and all our blockquoted notes as you fill in the form before you submit.
We look forwarding to reviewing your topic suggestion.
Templates to use as guides

How To Guide Template
Software Review Template
Tutorial Template

Hi @BridgetMwikali
Please add the key takeaways as they help us understand the value of your article. Also, add the article quality and make sure to tell us why your article is unique and if possible what value it adds as compared to other available articles.
For now, I will close this to clear up the queue so when done, please ping the content-moderators team to re-open and review the submission.


Crash when launching isaac_moveit.py

Following the tutorial. When launching Isaac Sim by ./python.sh isaac_moveit.py error occurs.
Traceback (most recent call last):
  File "/home/hedgehao/Documents/ros/moveit2_tutorials/doc/how_to_guides/isaac_panda/launch/isaac_moveit.py", line 260, in <module>
    rs_viewport.dock_in(viewport, omni.ui.DockPosition.RIGHT)
AttributeError: 'NoneType' object has no attribute 'dock_in'
Exception ignored in: <function _make_registry.<locals>._Registry.__del__ at 0x7fc60f10bcb0>
Traceback (most recent call last):
  File "/home/hedgehao/.local/share/ov/pkg/isaac_sim-2022.2.1/kit/extscore/omni.kit.viewport.registry/omni/kit/viewport/registry/registry.py", line 103, in __del__
  File "/home/hedgehao/.local/share/ov/pkg/isaac_sim-2022.2.1/kit/extscore/omni.kit.viewport.registry/omni/kit/viewport/registry/registry.py", line 98, in destroy
TypeError: 'NoneType' object is not callable
Exception ignored in: <function _make_registry.<locals>._Registry.__del__ at 0x7fc60f10bcb0>
Traceback (most recent call last):
  File "/home/hedgehao/.local/share/ov/pkg/isaac_sim-2022.2.1/kit/extscore/omni.kit.viewport.registry/omni/kit/viewport/registry/registry.py", line 103, in __del__
  File "/home/hedgehao/.local/share/ov/pkg/isaac_sim-2022.2.1/kit/extscore/omni.kit.viewport.registry/omni/kit/viewport/registry/registry.py", line 98, in destroy
TypeError: 'NoneType' object is not callable
Exception ignored in: <function SettingChangeSubscription.__del__ at 0x7fc6d7fa0c20>
Traceback (most recent call last):
  File "/home/hedgehao/.local/share/ov/pkg/isaac_sim-2022.2.1/kit/kernel/py/omni/kit/app/_impl/__init__.py", line 114, in __del__
AttributeError: 'NoneType' object has no attribute 'get_settings'
Exception ignored in: <function RegisteredActions.__del__ at 0x7fc5242cfe60>
Traceback (most recent call last):
  File "/home/hedgehao/.local/share/ov/pkg/isaac_sim-2022.2.1/extscache/omni.kit.viewport.menubar.lighting-104.0.9/omni/kit/viewport/menubar/lighting/actions.py", line 347, in __del__
  File "/home/hedgehao/.local/share/ov/pkg/isaac_sim-2022.2.1/extscache/omni.kit.viewport.menubar.lighting-104.0.9/omni/kit/viewport/menubar/lighting/actions.py", line 352, in destroy
TypeError: 'NoneType' object is not callable
2023-06-17 01:55:45 [22,169ms] [Warning] [carb.audio.context] 1 contexts were leaked
./python.sh: line 41: 449961 Segmentation fault      (core dumped) $python_exe "$@" $args
There was an error running python

Yeah...I got the same problem like that : (

got the same

Really sorry for the slow response here! If you can test out #716 that would be great.

Really sorry for the slow response here! If you can test out #716 that would be great.

Hey now i get this errors:

2023-07-16 07:34:15 [12,648ms] [Error] [carb.graphics-vulkan.plugin] VkResult: ERROR_OUT_OF_DEVICE_MEMORY 2023-07-16 07:34:15 [12,648ms] [Error] [carb.graphics-vulkan.plugin] vkAllocateMemory failed for flags: 0. 2023-07-16 07:34:15 [12,648ms] [Error] [gpu.foundation.plugin] Unable to allocate buffer 2023-07-16 07:34:15 [12,648ms] [Error] [gpu.foundation.plugin] Buffer creation failed for the device: 0. 2023-07-16 07:34:15 [12,648ms] [Error] [rtx.raytracing.plugin] Failed to create buffers for picking results! 2023-07-16 07:34:15 [12,651ms] [Error] [carb.graphics-vulkan.plugin] VkResult: ERROR_OUT_OF_DEVICE_MEMORY 2023-07-16 07:34:15 [12,651ms] [Error] [carb.graphics-vulkan.plugin] vkAllocateMemory failed for flags: 0. 2023-07-16 07:34:15 [12,651ms] [Error] [gpu.foundation.plugin] Unable to allocate buffer 2023-07-16 07:34:15 [12,651ms] [Error] [gpu.foundation.plugin] Buffer creation failed for the device: 0. 2023-07-16 07:34:15 [12,651ms] [Error] [rtx.raytracing.plugin] Failed to create buffers for picking results! 2023-07-16 07:34:15 [12,653ms] [Error] [carb.graphics-vulkan.plugin] VkResult: ERROR_OUT_OF_DEVICE_MEMORY 2023-07-16 07:34:15 [12,653ms] [Error] [carb.graphics-vulkan.plugin] vkAllocateMemory failed for flags: 0. 2023-07-16 07:34:15 [12,653ms] [Error] [gpu.foundation.plugin] Texture creation failed for the device: 0. 2023-07-16 07:34:15 [12,653ms] [Error] [gpu.foundation.plugin] Failed to update params for RenderOp 92 2023-07-16 07:34:15 [12,653ms] [Error] [gpu.foundation.plugin] Failed to update params for RenderOp GBuffer RT. Will not execute this or subsequent RenderGraph operations. Aborting RenderGraph execution 2023-07-16 07:34:15 [12,653ms] [Error] [carb.scenerenderer-rtx.plugin] Failed to execute RenderGraph on device 0. Error Code: 7 2023-07-16 07:34:15 [12,721ms] [Error] [carb.graphics-vulkan.plugin] VkResult: ERROR_OUT_OF_DEVICE_MEMORY 2023-07-16 07:34:15 [12,721ms] [Error] [carb.graphics-vulkan.plugin] vkAllocateMemory failed for flags: 0. 2023-07-16 07:34:15 [12,721ms] [Error] [gpu.foundation.plugin] Unable to allocate buffer 2023-07-16 07:34:15 [12,721ms] [Error] [gpu.foundation.plugin] Buffer creation failed for the device: 0. 2023-07-16 07:34:15 [12,721ms] [Error] [rtx.raytracing.plugin] Failed to create buffers for picking results! 2023-07-16 07:34:15 [12,722ms] [Error] [carb.graphics-vulkan.plugin] VkResult: ERROR_OUT_OF_DEVICE_MEMORY 2023-07-16 07:34:15 [12,722ms] [Error] [carb.graphics-vulkan.plugin] vkAllocateMemory failed for flags: 0. 2023-07-16 07:34:15 [12,722ms] [Error] [gpu.foundation.plugin] Unable to allocate buffer 2023-07-16 07:34:15 [12,722ms] [Error] [gpu.foundation.plugin] Buffer creation failed for the device: 0. 2023-07-16 07:34:15 [12,722ms] [Error] [rtx.raytracing.plugin] Failed to create buffers for picking results! 2023-07-16 07:34:15 [12,722ms] [Error] [carb.graphics-vulkan.plugin] VkResult: ERROR_OUT_OF_DEVICE_MEMORY 2023-07-16 07:34:15 [12,722ms] [Error] [carb.graphics-vulkan.plugin] vkAllocateMemory failed. 2023-07-16 07:34:15 [12,722ms] [Error] [gpu.foundation.plugin] Texture creation failed for the device: 0. 2023-07-16 07:34:15 [12,761ms] [Error] [carb.graphics-vulkan.plugin] VkResult: ERROR_OUT_OF_DEVICE_MEMORY 2023-07-16 07:34:15 [12,761ms] [Error] [carb.graphics-vulkan.plugin] vkAllocateMemory failed for flags: 2. 2023-07-16 07:34:15 [12,761ms] [Error] [gpu.foundation.plugin] Texture creation failed for the device: 0. 2023-07-16 07:34:15 [12,761ms] [Error] [carb.graphics-vulkan.plugin] VkResult: ERROR_OUT_OF_DEVICE_MEMORY 2023-07-16 07:34:15 [12,761ms] [Error] [carb.graphics-vulkan.plugin] vkAllocateMemory failed for flags: 2. 2023-07-16 07:34:15 [12,761ms] [Error] [gpu.foundation.plugin] Texture creation failed for the device: 0.


🚀 Feature: Improve error handling when extending abstract/base search classes

🔖 Feature description
There should be one, idiomatic way to clean up resources in sub-classes of BatchSearchEngineIndexer and DecoratorBase when errors are encountered in other parts of the search indexing process.
🎤 Context
We have abstract classes BatchSearchEngineIndexer and DecoratorBase, which currently serve as the basis for all concrete search engine indexer and decorator implementations respectively.  The intention behind these abstract classes is to hide some of the ugly details of writable and transform streams from implementors, instead allowing them to author more idiomatic classes and methods.
...Unfortunately, when we wrote them, we did not account for situations where errors would occur within a search indexing pipeline outside of the indexer and decorators themselves (e.g. how to allow search engine and decorator implementations to clean up resources in the event that an error occurs in a collators or (other) decorators).
As a result, we have diverging ways of handling this across search engine indexer implementations (e.g. indexer.on('error', handler) in ES, and a custom _destroy method in PG), and now knowledge of how this is handled in decorators (which are less likely to be impacted because they may not require access to external resources).
This is a follow-up to #17278 and #14810
✌ Possible Implementation

We could introduce a new abstract method onError(error), which implementors would be required to implement.  We could conditionally call this from within a _destroy implementation in BatchSearchEngineIndexer and DecoratorBase when called with an error.  ...This has the disadvantage of being a major version bump (since implementors of this method would be required to implement this).
We could add an optional error argument to the existing finalize method, and allow callers to perform resource cleanup differently, depending on the error passed in.  This has the advantage of being a minor version bump (probably).

In any event, we might consider also introducing test helpers that make it easier to return errors in a test pipeline.
👀 Have you spent some time to check if this feature request has been raised before?

[X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

Are you willing to submit PR?
No, I don't have time to work on this right now

Note: the original version of this issue only made reference to BatchSearchEngineIndexer, but I've updated it to also account for the DecoratorBase abstract class (which has no concrete use in OSS plugins as of yet, but which is in use in various ways outside this monorepo).


expose middleware functions correctly

Pretty stupid and naive I was for not testing this correctly.
setConnection and closeConnection was meant to be exposed and be initialised before middleware is created..
below is example
import { createStore, applyMiddleware, compose } from 'redux';
import { routerMiddleware } from 'react-router-redux';
import reduxAutobahn from 'redux-autobahn-js';
import autobahn from 'autobahn';
import createReducer from './reducers';

const sagaMiddleware = createSagaMiddleware();
const autobahnMiddleware = reduxAutobahn.middleware();

export default function configureStore(initialState = {}, history) {
  const middlewares = [
    sagaMiddleware,
    autobahnMiddleware,
    routerMiddleware(history),
  ];

  const enhancers = [
    applyMiddleware(...middlewares),
  ];

  const autobahnConnection = new autobahn.Connection({
    url: 'URL',
    realm: 'realm1',
    authmethods: ['wampcra'],
    authid: 'AUTH_ID',
    onchallenge: function (session, method, extra) {
       if (method === "wampcra") {
         return autobahn.auth_cra.sign('SECRET', extra.challenge);
       }
    },
  });

  autobahnMiddleware.setConnection(autobahnConnection);

  /*
  .
  .
  .
  */

  const store = createStore(
    fromJS(initialState),
    composeEnhancers(...enhancers)
  );

  return store;
}

or to set connection later
const autobahnConnection = new autobahn.Connection({
  url: 'URL',
  realm: 'realm1',
  authmethods: ['wampcra'],
  authid: 'AUTH_ID',
  onchallenge: function (session, method, extra) {
     if (method === "wampcra") {
       return autobahn.auth_cra.sign('SECRET', extra.challenge);
     }
  },
});

autobahnMiddleware.setConnection(autobahnConnection);

store.dispatch(reduxAutobahn.actions.openConnection());

No worries, and thank you so much for testing this and fixing it. I really appreciate it!

Hey guys,
I have a question about accessing setConnection and closeConnection functions.
Since I use this functions in other containers I import store from my main app but that creates circular dependency issues. Is there a better way of accessing these functions I'm not aware of?
navbar.js:
import { store } from '../../app';
...
  logout(event) {
    event.preventDefault();
    console.log('logoout');
    store.closeAutobahnConnection();
}
...


Use drake_PYTHON_DIRS

Requires https://github.com/RobotLocomotion/drake/pull/8113

This change is

+@jamiesnape for feature and platform review, please.

Review status: 0 of 1 files reviewed at latest revision, all discussions resolved.

Comments from Reviewable

Reviewed 1 of 1 files at r1.
Review status: all files reviewed at latest revision, 1 unresolved discussion, some commit checks broke.

drake_cmake_installed/CMakeLists.txt, line 47 at r1 (raw file):

find_package(PythonInterp 2.7 EXACT MODULE REQUIRED)
set(ENV{PYTHONPATH} "${drake_PYTHON_DIRS}:$ENV{PYTHONPATH}")

One thing to note is that set(ENV{PYTHONPATH} "<path>:$ENV{PYTHONPATH}") does not really have much effect here and it might be better to just use  a regular variable, i.e., set(PYTHONPATH "<path>:$ENV{PYTHONPATH}").

Comments from Reviewable

Review status: all files reviewed at latest revision, all discussions resolved, some commit checks broke.

Comments from Reviewable

(should wait until tomorrow to merge)

Review status: all files reviewed at latest revision, all discussions resolved, some commit checks broke.

Comments from Reviewable

Review status: 0 of 2 files reviewed at latest revision, 1 unresolved discussion, some commit checks pending.

drake_cmake_installed/CMakeLists.txt, line 47 at r1 (raw file):
Previously, jamiesnape (Jamie Snape) wrote…
One thing to note is that set(ENV{PYTHONPATH} "<path>:$ENV{PYTHONPATH}") does not really have much effect here and it might be better to just use  a regular variable, i.e., set(PYTHONPATH "<path>:$ENV{PYTHONPATH}").

Done.

Comments from Reviewable

Review status: 0 of 2 files reviewed at latest revision, 1 unresolved discussion, some commit checks pending.

drake_cmake_installed/CMakeLists.txt, line 47 at r1 (raw file):
Previously, EricCousineau-TRI wrote…
Done.

RHS does need to be $ENV{PYTHONPATH}

Comments from Reviewable


Adds runReader, runReaderEither, runReaderTask, runReaderTaskEither

Should solve https://github.com/samhh/fp-ts-std/issues/132
I would have liked to also cover ReaderIO but I guess it would make more sense to first update the version of fp-ts used by this library before implementing runReaderIO given that ReaderIO has recently landed in fp-ts. 😅

I'm a bit puzzled by the broken test on ReadonlyArray, run tests locally as well as on another branch and did not have any error.
I guess fast-check randomly generated an array of array because of the characters fc.char can actually generate?

One printable character — ie.: one character between 0x20 (included) and 0x7e (included), corresponding to printable characters

Still seems very unlikely that could have happened but I'm at a loss here... I'm not sure how to re-run the pipeline nor too experienced with fast-check, do we need some sort of constraints on fc.string()? 🤔

Don't worry about that, I'll take a look. I upgraded fast-check recently and the arbitraries became more aggressive about generating problematic input. That's generally a good thing though in this repo it's mostly just broken some tests.
For future reference when you get a failing property-based test you can reuse the seed to run the test against the exact same inputs again, like so:
diff --git a/test/ReadonlyArray.ts b/test/ReadonlyArray.ts
index 6a469b1..9e68dd6 100644
--- a/test/ReadonlyArray.ts
+++ b/test/ReadonlyArray.ts
@@ -667,7 +667,7 @@ describe("Array", () => {
         fc.property(
           fc.array(fc.string()),
           xs => pipe(xs, f(identity), values, sum) === xs.length,
-        ),
+        ), { seed: 438761097 }
       )
     })

Feel free to bump the peer dependency on fp-ts and add it for ReaderIO as well! :slightly_smiling_face:

This should do it for the iffy tests: https://github.com/samhh/fp-ts-std/commit/3e3aa203f0693ca1cfc0a8b2c76d902acd30c3a1
Took me a while the other day to track down this issue. :upside_down_face: Thankfully this is much the same.

Thanks!


[GS-123] Consolidate all updates in batch request

Jira Ticket

Jira Ticket
Description

Consolidate all updates in batch request
Type of Change

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[X] Refactoring (non-breaking change)
[ ] Breaking change (fix or feature that would change existing functionality)

Changes

*Store requests to update assignment subsheets
*Make one batch request which includes all subsheet update requests
Testing

Ran the script locally
Checklist

[X] My branch name matches the format: <ticket-id>/<brief-description-of-change>
[X] My PR name matches the format: [<ticket-id>] <brief-description-of-change>
[ ] I have added doc-comments to all new functions (JSDoc for JS and Docstrings for Python)
[X] I have reviewed all of my code
[X] My code only contains major changes related to my ticket

Screenshots/Video

"""
2024-11-14 23:52:43,548 - INFO - Starting the gradescope_to_spreadsheet script.
2024-11-14 23:52:45,470 - INFO - file_cache is only supported with oauth2client<4.0.0
2024-11-14 23:52:45,898 - INFO - Retrieving subsheet titles to ids
2024-11-14 23:52:46,854 - INFO - Created sheets request for Lab 4: Lists + HOFs (Conceptual)
2024-11-14 23:52:47,141 - INFO - Created sheets request for Project 3: 2048
2024-11-14 23:52:47,665 - INFO - Created sheets request for Lecture Quiz 2: Functions
2024-11-14 23:52:48,369 - INFO - Created sheets request for Lecture Quiz 1: Welcome to CS10 u0026 Abstraction
2024-11-14 23:52:48,566 - INFO - Created sheets request for Lab (Optional): Lists + Loops (code)
2024-11-14 23:52:48,764 - INFO - Created sheets request for Lab 4: Lists + HOFs (Code)
2024-11-14 23:52:48,941 - INFO - Created sheets request for Midterm 2: with Snap! (Fractal)
2024-11-14 23:52:49,291 - INFO - Created sheets request for Lab 2: Build Your Own Blocks (Conceptual)
2024-11-14 23:52:49,544 - INFO - Created sheets request for Lab 2: Build Your Own Blocks (Code)
2024-11-14 23:52:49,743 - INFO - Created sheets request for Discussion 1: Welcome to Snap!
2024-11-14 23:52:49,975 - INFO - Created sheets request for Lab (Optional): Lists + Loops (Conceptual)
2024-11-14 23:52:50,430 - INFO - Created sheets request for Lab 8: Boards (Conceptual)
2024-11-14 23:52:50,654 - INFO - Created sheets request for Lab 8: Boards (Code)
2024-11-14 23:52:50,857 - INFO - Created sheets request for Discussion 2: Number Rep, Conditionals, Iteration
2024-11-14 23:52:51,077 - INFO - Created sheets request for Discussion 3: Domain/Range, Iteration, Scope, Lists
2024-11-14 23:52:51,276 - INFO - Created sheets request for Project 1: Wordlexe2x84xa2-lite
2024-11-14 23:52:51,499 - INFO - Created sheets request for Project 2: Spelling Bee
2024-11-14 23:52:51,800 - INFO - Created sheets request for Lab 3: Conditionals, Reporters, u0026 Abstraction (Conceptual)
2024-11-14 23:52:52,004 - INFO - Created sheets request for Lab 3: Conditionals, Reporters u0026 Abstraction (Code)
2024-11-14 23:52:52,440 - INFO - Created sheets request for Lab 5: Algorithms (Conceptual)
2024-11-14 23:52:52,638 - INFO - Created sheets request for Lab 5: Algorithms (Code)
2024-11-14 23:52:52,887 - INFO - Created sheets request for Lecture Quiz 9: Social Implications of Computing: Computers in Education
2024-11-14 23:52:53,376 - INFO - Created sheets request for Lecture Quiz 4: Lists, Scoping, u0026 HOFs
2024-11-14 23:52:53,640 - INFO - Created sheets request for Lecture Quiz 8: Testing + 2048
2024-11-14 23:52:53,906 - INFO - Created sheets request for Lecture Quiz 5: Algorithms
2024-11-14 23:52:54,343 - INFO - Created sheets request for Lecture Quiz 3: Numbers and Abstraction
2024-11-14 23:52:54,598 - INFO - Created sheets request for Lecture Quiz 6: Algorithmic Complexity
2024-11-14 23:52:54,893 - INFO - Created sheets request for Lecture Quiz 7: Quest Exam Review
2024-11-14 23:52:55,441 - INFO - Created sheets request for Lab 6: Algorithmic Complexity (Conceptual)
2024-11-14 23:52:55,646 - INFO - Created sheets request for Lab 6: Algorithmic Complexity (Code)
2024-11-14 23:52:55,849 - INFO - Created sheets request for Lecture Quiz 10: Linear Recursion
2024-11-14 23:52:56,159 - INFO - Created sheets request for Lab 7: Testing + 2048 (Conceptual)
2024-11-14 23:52:56,388 - INFO - Created sheets request for Discussion 4: HOFs + Quest Review
2024-11-14 23:52:56,595 - INFO - Created sheets request for Lab 16: Object-Oriented Programming (Code)
2024-11-14 23:52:56,919 - INFO - Created sheets request for Lab 16: Object-Oriented Programming (Conceptual)
2024-11-14 23:52:57,283 - INFO - Created sheets request for Lab 10: Recursive Reporters (Conceptual)
2024-11-14 23:52:57,590 - INFO - Created sheets request for Discussion 5: Algorithmic Complexity
2024-11-14 23:52:57,795 - INFO - Created sheets request for Lecture Quiz 11: Recursion II (Fractals)
2024-11-14 23:52:58,008 - INFO - Created sheets request for Lab 9: Trees and Fractals (Code)
2024-11-14 23:52:58,308 - INFO - Created sheets request for Lab 9: Trees and Fractals (Conceptual)
2024-11-14 23:52:58,543 - INFO - Created sheets request for Discussion 6: Linear Recursion + Fractals
2024-11-14 23:52:58,757 - INFO - Created sheets request for Project 4: Comments + Peer Feedback
2024-11-14 23:52:58,964 - INFO - Created sheets request for Lab 10: Recursive Reporters (Code)
2024-11-14 23:52:59,162 - INFO - Created sheets request for Lecture Quiz 12: Saving the World with Computing (Guest Lecture)
2024-11-14 23:52:59,537 - INFO - Created sheets request for Lecture Quiz 13: Tree Recursion + Fractals
2024-11-14 23:52:59,757 - INFO - Created sheets request for Discussion 7: Tree Recursion
2024-11-14 23:52:59,985 - INFO - Created sheets request for Midterm 1 Fractal (with Snap!)
2024-11-14 23:53:00,178 - INFO - Created sheets request for Lab 11: HOFs and Functions as Data (Code)
2024-11-14 23:53:00,458 - INFO - Created sheets request for Lab 11: HOFs and Functions as Data (Conceptual)
2024-11-14 23:53:00,672 - INFO - Created sheets request for Lab 12: Welcome to Python (Code)
2024-11-14 23:53:00,897 - INFO - Created sheets request for Lab 14: Linear Recursion in Python (Code)
2024-11-14 23:53:01,150 - INFO - Created sheets request for Lab 14: Linear Recursion in Python (Conceptual)
2024-11-14 23:53:01,329 - INFO - Created sheets request for Lecture Quiz 16: Python I - Intro
2024-11-14 23:53:01,551 - INFO - Created sheets request for Lecture Quiz 14 : HOFs (Functions) as Data
2024-11-14 23:53:01,838 - INFO - Created sheets request for Lab 12: Welcome to Python (Conceptual)
2024-11-14 23:53:02,099 - INFO - Created sheets request for Lecture Quiz 15: Programming Paradigms
2024-11-14 23:53:02,255 - INFO - Created sheets request for Practice Midterm: With Snap!
2024-11-14 23:53:02,468 - INFO - Created sheets request for Practice Midterm w/ Snap! (Fractal)
2024-11-14 23:53:02,726 - INFO - Created sheets request for Project 4: Artifact + Documentation
2024-11-14 23:53:02,938 - INFO - Created sheets request for Lab 13: Data Structures in Python (Code)
2024-11-14 23:53:03,320 - INFO - Created sheets request for Lab 13: Data Structures in Python (Conceptual)
2024-11-14 23:53:03,548 - INFO - Created sheets request for Lecture Quiz 17: Python II - Data Structures
2024-11-14 23:53:03,760 - INFO - Created sheets request for Discussion 9: List Comprehension u0026 Dictionaries
2024-11-14 23:53:03,981 - INFO - Created sheets request for Lecture Quiz 18: Python III - Linear Recursion
2024-11-14 23:53:04,176 - INFO - Created sheets request for Lab 15: Tree Recursion (code)
2024-11-14 23:53:04,444 - INFO - Created sheets request for Lab 15: Tree Recursion (conceptual)
2024-11-14 23:53:04,616 - INFO - Created sheets request for Lecture Quiz 19: Python IV - Tree Recursion u0026 Game Theory
2024-11-14 23:53:04,799 - INFO - Created sheets request for Resubmit Project 4: Artifact + Documentation
2024-11-14 23:53:05,011 - INFO - Created sheets request for Discussion 11: Data Structures + OOP
2024-11-14 23:53:05,213 - INFO - Created sheets request for Lab 17: Text Processing in Python (Code)
2024-11-14 23:53:05,508 - INFO - Created sheets request for Lab 17: Text Processing in Python (Conceptual)
2024-11-14 23:53:05,738 - INFO - Created sheets request for Discussion 10: Recursion in Python
2024-11-14 23:53:05,913 - INFO - Created sheets request for Midterm 3: with Snap! (Fractal)
2024-11-14 23:53:06,149 - INFO - Created sheets request for Lecture Quiz 20: Python V - OOP
2024-11-14 23:53:06,359 - INFO - Created sheets request for Lecture Quiz 21: Python VI - HOFs + Lambdas
2024-11-14 23:53:06,638 - INFO - Created sheets request for Lab 18: Concurrency u0026 Parallelism
2024-11-14 23:53:06,800 - INFO - Created sheets request for Midterm 4: with Snap! (Fractal)
2024-11-14 23:53:07,050 - INFO - Created sheets request for Project 6: Final Project Proposal
2024-11-14 23:53:07,226 - INFO - Created sheets request for Discussion 12: Concurrency + HOFs in Python
2024-11-14 23:53:07,430 - INFO - Created sheets request for Lecture Quiz 22: Concurrency + Parallelism
2024-11-14 23:53:07,584 - INFO - Created sheets request for Midterm 5: with Snap! (Fractal)
2024-11-14 23:53:07,585 - INFO - Issuing batch request
2024-11-14 23:53:08,101 - INFO - Completing batch request
2024-11-14 23:53:08,103 - INFO - Finished in 24.5 seconds
Additional Notes

Requirements:

Add a docstring somewhere so it's easier to understand the entire flow. The docstring does not have to be that long. Look at my example for a guideline.

Suggestions: 2. Can we perhaps add where populate_instructor_dashboard should be invoked if it were added to the script (but commented out)? 3. What if we add a variable POPULATE_INSTRUCTOR_DASHBOARD within the config file cs10_fall2024.json set to True or False to see if this function should be invoked? If we do this, pandas should be installed and imported regardless of the value of this variable.
Great work! Under 30 seconds is amazing!

Thanks, Mehul!!
You are correct; I will add documentation when I am able (I won't be able to today). I can do that after it is merged in.

I can do that after it is merged in.

Let's put the docstrings in the same PR as this is how it is usually done according to the checklist. The PR does not need to be done today.

I can do that after it is merged in.

Let's put the docstrings in the same PR as this is how it is usually done according to the checklist. The PR does not need to be done today.

Sounds good! Let's deploy this version of the script on the cloud, though.

Sounds good! Let's deploy this version of the script on the cloud, though.

Sure, we can do that by checking out to your branch for now and building the docker container

Added a docstring; ready for re-review!

Read through the suggestions. The TODOs can be resolved later, but are reminders for us (developers).
Resolve the suggestions and ping me again for a re-review once you have read and considered the proposed documentation suggestions.

Good suggestions, Mehul! I have accepted them

LGTM

Thanks for your review, Mehul!


API/get all comments

Closes #20
Comments will now be retrieved recursively.
News.getTopLevelComments() will return Observable<List<Comment>> that contains only top level comments of that News instance, each of it will already contain child comments.

Updated!
Please check it, I don't know why the last top level comment is rendered weirdly.

I will work on it while working on hierarchical comment view.
This one is LGTM.


Update README.md in the Videos Section

Added an amazing React JS course

What does this PR do?

Added an amazing React JS course for beginners in the videos section

Any relevant issues this PR addresses? (optional)
#
Any background context you want to add?

LGTM, Thanks!


Xcode 14 failed to compile due to a swift file annotation

[x] I have read the Get Started - Installation section
[x] I have read and done the Get Started - Setup Android section
[x] I have read and done the Get Started - Setup iOS section
[x] I have already searched for the same problem

Environment

Technology
Version

Flutter version
3.0.5

Plugin version
>= 5.4.2+1

Android version

iOS version
15.5

Xcode version
14

Device information:
Description
Expected behavior:
To compile and build my app successfully
Current behavior:
Build failure
Steps to reproduce

The environment sdk in my pub spec.yaml has a range of
environment: sdk: ">=2.7.0 <3.0.0"

errorMessage
Error output from Xcode build: /Users/daveagyakwa/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.4.2+1/ios/Classes/Types/UserScript.swift:13:6: error: stored properties cannot be marked potentially unavailable with '@available' Swift Compiler Error (Xcode): Stored properties cannot be marked potentially unavailable with '@available' Error launching application on Dave’s iPhone.

Can also confirm this issue with iOS 16.0 installed.

Same issue here, compiles fine on CI (Codemagic) though, so this is also related to Xcode 14 I think?

Same here.

Same here, any solution?

the issue start appearing after upgrading to Xcode 14

This is definitely an issue with upgrading to Xcode 14; see here: https://stackoverflow.com/questions/41904724/using-available-with-stored-properties

PR is waiting to fix this issue:
https://github.com/pichillilorenzo/flutter_inappwebview/pull/1238

To me works change 13 to 14 in podfile
platform :ios, '14.0'

Downgrading xCode from version 14.0 to previous version 13.4.1 also fix the issue, and looks like a better option according to me as some users still use IOS < 14.
Simply downnload whatever version of xCode you want, install it, and then in xCode > Preferences > Locations select the desired version in the bottom dropdown.
Hope it helps

This solution works for me 👌🏻
👉🏻 https://stackoverflow.com/a/73699790/13821080

Update version in Podfile platform :ios, '14.0'
Reset pods cd ios && rm -rf Pods/ Podfile.lock && pod install --repo-update


Chainspect proposal

Hi xGov team!
We would like to propose the inclusion of inner transactions for Algorand on Chainspect.
We decided to propose this improvement based on direct feedback from the Algorand community. In the past few weeks, we've received numerous messages on X and quite a few direct messages, all suggesting the same thing – include inner transactions in the Total Transactions Per Second (TPS) calculation.
The community is keen on changing the calculation method and recommends using the xGov process for funding.
Feel free to ask us any questions

Hi Elijah and Nick,
Thanks for engaging with folks on X and coming here to participating in the Algorand xGov process.  As there is no forum post linked for discussions (note that this is a requirement to advance to the voting stage), I will kick off a discussion here.

Deep dive into transaction structure on Algorand. This includes the research required to understand the details of inner transactions on Algorand and how they differ from inner transactions on other chains.

It is not clear to me why deep comparative research is needed to deliver this enhancement to your TPS calculations.  Algorand transaction types are described here, and inner transactions can be any of these types.  Inner transactions are also clearly visualized on popular explorers such as this example on Allo.  Perhaps research into other chains' models could be funded by grant programs associated with those chains.
I think I speak for the whole Algorand community when I say that, if you were to do any deep research to inform more meaningful measures of blockchain activity, that research should include counting successful transactions, not failed transactions or consensus work to confirm blocks, neither of which represent actual outcomes for people and institutions who are using or considering using various chains.
Additionally, it is my understanding that Algorand Foundation has already provided some example code for parsing Algorand blocks here.
With these things said, I think this proposal's ask is a bit much.  My suggestion would be to request 10,000 ALGO for this enhancement to your existing app.
Regards,
SilentRhetoric

Hi Brian!
Thanks for kicking off the discussion. QQ: Would you like us to place the link to this discussion in the proposal?

It is not clear to me why deep comparative research is needed to deliver this enhancement to your TPS calculations. Algorand transaction types are described here, and inner transactions can be any of these types. Inner transactions are also clearly visualized on popular explorers such as this example on Allo. Perhaps research into other chains' models could be funded by grant programs associated with those chains.

One of the core value propositions of Chainspect analytics platform is the standardization of metrics across various blockchains with different consensus mechanisms, txn structures, and other blockchain-specific intricacies. We don't doubt that Algorand has quality documentation, but it nonetheless will require Chainspect team to spend time and see how Algorand's transactions differ from other blockchains and how to ensure that comparison stays fair.

I think I speak for the whole Algorand community when I say that, if you were to do any deep research to inform more meaningful measures of blockchain activity, that research should include counting successful transactions, not failed transactions or consensus work to confirm blocks, neither of which represent actual outcomes for people and institutions who are using or considering using various chains.

That's true, we do not count any system or consensus-related transactions for any blockchains. Moreover, we provide info on which txn types are excluded for every chain here.|
As for failed transactions, we do not exclude them from the calculation process due to the simple reason: transactions may fail due to a variety of reasons (incorrect permissions, lack of gas/txn fee to cover for the execution cost, slippage, just to name a few). The majority of reasons why txns fail do not depend on the blockchain. That's why we do not exclude failed transactions.

With these things said, I think this proposal's ask is a bit much. My suggestion would be to request 10,000 ALGO for this enhancement to your existing app.

The cost is based on the amount of time and resources needed from the Chainspect team to deliver this custom development. We've requested 30,000 ALGO (~$5580 at the time of writing this comment), which is the bare minimum to cover the development and research costs associated with it. Moreover, the topic of inclusion of inner transactions was brought up by the Algorand community and initially was not on the agenda of Chainspect team, but after seeing numerous requests and discussions on the topic we've decided to cater to the requests of the Algofam and initiate this xGov proposal.
We do not intend to make any profit on this proposal, but instead fund the bare minimum needed to develop this custom feature and keep the Algorand community happy about the calculation process, while maintaining integrity and fairness across our platform.
BR,
Chainspect team

You should start a discussion thread on forum.algorand.org (e.g. https://forum.algorand.org/t/xgov-108-airgap-vault-wallet-integration-via-isolated-modules/11004) and then set that url as the discussions-to in the proposal.  I can copypasta my comment over there so it becomes part of the official forum thread.

Hi @SilentRhetoric
In your last comment, you mentioned that we can keep the discussion here:

As there is no forum post linked for discussions (note that this is a requirement to advance to the voting stage), I will kick off a discussion here.

If it's an option, we would like to keep the discussion in a single place (here), without moving it to forums or other places.

Let me be clear: you are required to make a forum thread for discussion under xGov rules.  If you don't, the proposal will not make it to the voting session.

Sure, we will create a forum thread!
Thanks for providing the explanation, based on your first comment we thought that this PR discussion would suffice.

Hi @SilentRhetoric
We've just created the post: https://forum.algorand.org/t/xgov-171-inclusion-of-inner-transactions-for-algorand-on-chainspect/11551

Great--I have commented there.  My comment is not the same as it was here on GitHub; I've modified a couple parts.

Hi @SilentRhetoric
Just updated the proposal to include the failed transaction ratio.
Moreover, we've kept the initial budget without increasing it.
The conversation on the Algorand forum has ended (as there were no comments in the past week).
We assume that the next logical step is the review of our proposal by the Algorand Foundation admin.
If this assumption is wrong, please suggest what should be the next step.

You're ahead of schedule for the next session (specific dates TBA by Adri).
The forum discussion may ramp up again just ahead of the deadline for proposals to be amended.
There may be some minor rule changes for the next session based on recent community feedback discussions, so watch this space or join the Algorand Discord server to follow along.
Adri will confirm the exact process for proposers in the weeks leading up to the voting session.

Got it!
Thank you so much for providing the info!

Hi @its-a-setup, thanks for creating your draft. Would you please go through the latest version of ARC-34 and the proposal template to ensure your proposal will meet the requirements? Special attention to the "Proposals MUST" and "Grants contract & payment" sections. Thanks, Adri

Also, please add xGov-175 to the title of your proposal :)

Hi @nonfungibleab
We decided not to move forward with this proposal


Automatically exclude lines that can't be rendered

The idea of using context managers to add data to exceptions raised is a bit problematic, because it makes the functions raising the exceptions dependent on global state.  I think a good solution is to treat the data as optional: it's always helpful to add extra context, but it shouldn't be necessary.  In other words, it's not an error for an info/error/hint line to use a variable that's not defined, that line will just be silently excluded from the error message.

Actually, the issue is a little different.  You can avoid the global dependency by only using the variables provided by the context manager in the message provided by the context manager.  This works pretty well, and isn't a code smell in any way.
But the fact that all of the messages have access to all of the data opens the door for writing code with the global dependencies mentioned above.  These problems won't be caught right away, because the code will work, it'll just be less maintainable.  But it makes me think it might be worth enforcing this separation.

Another thing to consider is that info provided at a higher level can be overridden at lower levels.  Any sort of sandboxing scheme would probably want to maintain that behavior.


Strange syntax in Lists.Projections.ListSortCriteria

public LocalizedString DisplaySortCriterion(dynamic context) {             bool ascending = Boolean.Parse(Convert.ToString(context.State.Sort));             return T(@ascending ? "Ordered by {0}, ascending" : "Ordered by {0}, descending", T("Position"));         }
What is the usage of this @ before acsending ?
I found nothing about a c# @operator applied to boolean ? It is supposed to compile...

Looks like a typo. There is no good reason to have a @ there. Good catch.


[$500] IOU - There is no violation in the IOU details

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: <IP_ADDRESS>
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Issue  found when executing PR https://github.com/Expensify/App/pull/34983
Action Performed:
Preconditions: Create a collect policy in OD. Enable the workspace chat. Enable "Must use tags" and "Multi level tags". Import the attached csv. Invite a member

Log in with the member
Open the workspace chat
Create a manual IOU without using any of the tags
Open the IOU details

Expected Result:
There should be only 1 "Required" text as you only have to use one tag
You should be getting a violation
Actual Result:
All of the multi level tags have the "Required" text next to them
There is no violation in the IOU details if you open it
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence

https://github.com/Expensify/App/assets/78819774/ae765859-1d56-4e23-b054-71c1f9ff3bd9
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~013c63e2b36821bb55
Upwork Job ID:<PHONE_NUMBER>869365248
Last Price Increase: 2024-02-20

Import the attached csv.

Which one?

The problem is not reproducible; also, the "must use tags" option disappears when we enable multiple tags and refresh the page.

@lanitochka17, can you retest and confirm if the issue still persists?

Import the attached csv.

Which one?

I think its the one linked in this

Issue found when executing PR https://github.com/Expensify/App/pull/34983

So this one,

You can import an attached collection of multiple levels of tags.

Issue is not reproduced in the latest build 1.4.43-12
https://github.com/Expensify/App/assets/78819774/2babe832-ae5b-409e-a0b8-392753877170

Cool, closing this issue since its not reproducible.


Delay while trying to login and I have to click on music player again to play the song.

Normally shouldnt take long to login. Might be a one time error. Music player is a known issue, will fix it.


Create and share Linux images with ADS pre-installed for releases?

Following up on @Stoyan-I-A 's instructions for running ADS with FSLeyes on a Windows computer (see here), I'm wondering if it may be worth it to create and share a Linux OS image with ADS & FSLeyes already installed. This could lower the hurdle for users to install this (they would more or less simply need to download VirtualBox, download our image, and run it), as one user already hinted that it sounds a bit complicated to do from scratch here.
Thoughts?

I like the idea. This is what we did for SCT in the past. Problem arose when the VM was no more updated, users were complaining, blablabla.
so if we go that route, we need to automatize the update of the VM across stable releases. @dyt811 @joshuacwnewton @kousu @Ainsleigh ideas? thoughts?

Following up on @Stoyan-I-A 's instructions for running ADS with FSLeyes on a Windows computer (see here), I'm wondering if it may be worth it to create and share a Linux OS image with ADS & FSLeyes already installed. This could lower the hurdle for users to install this (they would more or less simply need to download VirtualBox, download our image, and run it), as one user already hinted that it sounds a bit complicated to do from scratch here.

Thoughts?

I too am in the favour of the idea, but what about Docker images instead of VM's?

From what I understood, VM approach is being prioritized over Docker because of Docker FSLEye setup has issue with connect/setting up external display on especially Windows. There are open source tools like https://www.packer.io/ that can potentially easily allow build into both Docker images and VMs. Since these are infrastructure as code approaches, I think they should be quite robust in terms of automation and maintanability over time
We probably should build some small proof of concept of VM build process with various tools such as Packer. Here is a good list of potential candidates we can toy around with. https://docs.openstack.org/image-guide/create-images-automatically.html

Stale, closing


#[derive(Copy)] for Location and Units

Please #[derive(Copy)] for Location and Units

PartialEq and Debug would be nice too.

Until #3 is addressed, simply use haversine = { git="https://github.com/magneticflux-/haversine", branch="fix#2-derive-useful-traits" } as the dependency.


Flickering highlight on strings that contain a colon character

OS: Mac OSX Mavericks
Brackets Version: Release 1.6 build 1.6.0-16680 (release 3df0ac6fa)
Repro  Steps:

Create a javascript document with the following gist: https://gist.github.com/lkcampbell/8a40b98f307532e871b5
Mouse over either of the strings in the code

Observed Results:
There is a very brief flickering highlight of the string every time you mouse over it.
Expected Results:
No flickering highlight when you mouse over the strings.
Other Notes:
This only seems to happen when the string contains a colon character, and I believe the position of the colon characters matters. I have not tested the position, nor other special characters, but the gist posted above should repro the problem.
The problem occurs with all extensions disabled.
The problem occurs with both the Brackets dark and light themes. I have not tested any other themes.

@lkcampbell I think this is due to Brackets trying to retrieve the asset for a mouseover preview.
> Resource interpreted as Image but transferred with MIME type text/html: "http://www.foo.com/".
jquery-2.1.3.min.js:3
> Resource interpreted as Image but transferred with MIME type text/html: "file:///A:/".
jquery-2.1.3.min.js:3
> GET file:///A:/ net::ERR_FILE_NOT_FOUND

This sort of ties into the security issue of being able to perform arbitrary code on Brackets windows too (or just some code getting executed on the window in general)

@petetnt, yeah you are correct. When I toggle Quick View on Hover off, the problem and the error messages go away.

Not really very important. Closing.


Delegation data model

A user has many delegations

Delegates should not be deleted but should have active set as false

Attributes:

ID of User
ID of delegate User
Deactivated timestamp
Boolean for active
Confirmed at timestamp (null until delegate confirms from the email)

User can't delegate to self or delegate to same User twice

Admins can't have delegates nor be someone else's delegate either

ScholarsphereWorkDeposit

Delegate ID

Internal and External Waiver models

Delegate ID

Open Access Location

Delegate ID

We need to come up with some wording and database fields to indicate who is the delegate and who is the delegator.