Solidity functions which take an array parameter get an error at runtime

It looks like in the generation code which creates a new DeferredTransactionWrapper, all input arguments have their toString method called on them. This works fine normally, but for array arguments the web3 formatting runtime gives an error trying to iterate over a string when it expects and array.
Given this Contract:
contract TypeChainBugDemo {

  uint256 public _val;

  // Calling this function from the generated TypeChain bindings will fail
  function callWithArray(uint256[] arrayArg) public {
    _val = arrayArg[0];
  }
}

The callWithArray function will generate the following TS definition:
  public callWithArrayTx(
    arrayArg: BigNumber[]
  ): DeferredTransactionWrapper<ITxParams> {
    return new DeferredTransactionWrapper<ITxParams>(this, "callWithArray", [
      arrayArg.toString()
    ]);
  }

The line arrayArg.toString() will convert our array into a single string. web3 eventually throws an error in SolidityType.prototype.encode when it attempts to operate on that string thinking it's an array
TypeError: value.forEach is not a function
    at /Users/sdesmond/GitHub/EVNT/truffle/node_modules/web3/lib/solidity/type.js:165:19
    at SolidityTypeUInt.SolidityType.encode (/Users/sdesmond/GitHub/EVNT/truffle/node_modules/web3/lib/solidity/type.js:170:11)
    at /Users/sdesmond/GitHub/EVNT/truffle/node_modules/web3/lib/solidity/coder.js:91:29
    at Array.map (<anonymous>)
    at SolidityCoder.encodeParams (/Users/sdesmond/GitHub/EVNT/truffle/node_modules/web3/lib/solidity/coder.js:90:34)
    at SolidityFunction.toPayload (/Users/sdesmond/GitHub/EVNT/truffle/node_modules/web3/lib/web3/function.js:92:52)
    at SolidityFunction.sendTransaction (/Users/sdesmond/GitHub/EVNT/truffle/node_modules/web3/lib/web3/function.js:163:24)
    at /Users/sdesmond/GitHub/EVNT/truffle/gen-src/typechain-runtime.ts:58:9

Fixed by https://github.com/Neufund/TypeChain/pull/40. Thanks for contribution!

Released as 0.1.5


npm install fails to build exokit on aarch64

Platform

CPU Architecture: ARM aarch64 Little Endian (tested on a ROCK64 from Pine64 and an arm server from Scaleway)
OS: Ubuntu Bionic

Steps To Reproduce

git clone https://github.com/webmixedreality/exokit
Download node (https://nodejs.org/dist/v10.15.1/node-v10.15.1-linux-arm64.tar.xz), extract archive, and add bin folder to path.
cd exokit and npm install

Expected Result
npm install builds exokit without errors.
Actual Result
npm install produces multiple errors:
tar (child): /home/r/exokit/node_modules/native-browser-deps-linux/lib4.xz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
Error: invalid status code 2
    at ChildProcess.cp.on.code (/home/r/exokit/node_modules/native-browser-deps-linux/postinstall.js:84:15)
    at ChildProcess.emit (events.js:189:13)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
make: Entering directory '/home/r/exokit/build'
  CXX(target) Release/obj.target/exokit/exokit.o
In file included from ../exokit.cpp:10:0:
/home/r/exokit/deps/exokit-bindings/bindings/include/bindings.h:16:10: fatal error: browser.h: No such file or directory
 #include <browser.h>
          ^~~~~~~~~~~
compilation terminated.
exokit.target.mk:208: recipe for target 'Release/obj.target/exokit/exokit.o' failed
make: *** [Release/obj.target/exokit/exokit.o] Error 1
make: Leaving directory '/home/r/exokit/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/r/node-v10.15.1-linux-arm64/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:189:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 4.9.93-mainline-rev1
gyp ERR! command "/home/r/node-v10.15.1-linux-arm64/bin/node" "/home/r/node-v10.15.1-linux-arm64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/r/exokit
gyp ERR! node -v v10.15.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>install: `node ./scripts/preinstall.js && node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/r/.npm/_logs/2019-02-26T09_12_21_426Z-debug.log

Full NPM build log
Notes on the first error
Looking in the node_modules/native-browser-deps-linux, it appears that the first error (beginning tar (child):) is caused by trying to extract the lib4.xz file multiple times.  I tried checking whether the archive had already been extracted, but I still get the error from node-gyp (beginning In file included from ../exokit.cpp:10:0:).

AARCH64 is only supported on Magic Leap right now, and hopefully soon other Android derivatives like Oculus Go/actual android. Linux itself however is not on that roadmap.
Although I expect it wouldn't be too bad to port to Linux, because most of the libraries are not OS-specific, there are places you'd probably run into trouble, such as libcef integration which cares more about the underlying platform.
We'd take a pull request to add this support, however. The fix for the particular error about is to do a linkage port for libcef ARM64/Linux. That might be enough for the rest to go smoothly, but I haven't tried enough to know for sure.

Closing this for now as working as intended; if we want to work on Ubuntu ARM64, we should make an implementation issue + PR for it.


dm_control 1.0.0 support

Are you planning to add support for dm_control 1.0.0?

Yes, an update to version 1.0.2 will happen this week.

Thank you so much!

@shacklestone are there any updates? I wanted to use dm_robotics for a new project I'm working on, and it relies on some features introduced in the most recent versions of mujoco.

Any update on this? Would love to bring up rgb-stacking to dm_control > 1.0.0 :)

Apologies for the delay, version 0.4.0 has been released it uses dm_control 1.0.1 and mujoco 2.1.3
It is not compatible with mujoco >= 2.2.0


Cannot Resolve Host on api.nuget.org From Within Docker-From-Docker-Compose Container on WSL

VSCode Version:1.67.2
Local OS Version: Windows 10 21H2 Build 19044.1708, running WSL v2 Ubuntu 20.04
Local chip architecture: x86
Reproduces in: Remote - Containers
Name of Dev Container Definition with Issue: Docker From Docker Compose

Steps to Reproduce:

Open Ubuntu shell via WSL v2
Create new empty directory - mkdir test
Open VS Code in empty directory - code test
Use command palette to invoke "Remote-Containers: Add Development Container Configuration Files..." command
Select "Docker from Docker Compose" container definition and accept all defaults
Use command palette to invoke "Remote-Containers: Reopen in Container" action
Open bash shell and run curl api.nuget.org response is:

curl: (6) Could not resolve host: api.nuget.org

Additional Notes:

I tried the same steps as above but with the "Docker From Docker" container definition (i.e. no compose) and I did not get the same error
This may be related, but seems slightly different from the issue I opened earlier today: #1470
when comparing between the Docker From Docker vs the Docker From Docker Compose containers, /etc/hosts, /etc/nsswitch.conf, and /etc/resolv.conf all match
I tested that curl google.com works:

301 Moved
301 Moved
The document has moved
here.

I installed host and dnsutils, results are as follows:
$ host -v api.nuget.org >

Trying "api.nuget.org"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 33132
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;api.nuget.org.                 IN      A
Received 31 bytes from <IP_ADDRESS>#53 in 10 ms
Trying "api.nuget.org"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 22994
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;api.nuget.org.                 IN      AAAA
Received 31 bytes from <IP_ADDRESS>#53 in 0 ms
Trying "api.nuget.org"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18793
;; flags: qr rd; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;api.nuget.org.                 IN      MX
;; ANSWER SECTION:
api.nuget.org.          0       IN      CNAME   nugetapiprod.trafficmanager.net.
nugetapiprod.trafficmanager.net. 0 IN   CNAME   apiprod-mscdn.azureedge.net.
apiprod-mscdn.azureedge.net. 0  IN      CNAME   apiprod-mscdn.afd.azureedge.net.
apiprod-mscdn.afd.azureedge.net. 0 IN   CNAME   star-azureedge-prod.trafficmanager.net.
star-azureedge-prod.trafficmanager.net. 0 IN CNAME dual.part-0043.t-0009.t-msedge.net.
dual.part-0043.t-0009.t-msedge.net. 0 IN CNAME  part-0043.t-0009.t-msedge.net.
Received 239 bytes from <IP_ADDRESS>#53 in 60 ms

$ nslookup -debug api.nuget.org >

Server:         <IP_ADDRESS>
Address:        <IP_ADDRESS>#53

QUESTIONS:
    api.nuget.org, type = A, class = IN
ANSWERS:
AUTHORITY RECORDS:
ADDITIONAL RECORDS:

Non-authoritative answer:
QUESTIONS:
    api.nuget.org, type = AAAA, class = IN
ANSWERS:
AUTHORITY RECORDS:
ADDITIONAL RECORDS:

*** Can't find api.nuget.org: No answer

Two more notes that may be relevant:

$ curl api.nuget.org works from the WSL bash shell (i.e. not inside the dev container.
I am not able to reproduce this issue when running Docker for Windows using Hyper-V driver (haven't checked what happens if I switch Windows Docker to use WSL driver)

same for me. Any news?
Thanks

Facing same issue with windows container, when trying to ping from within windows container it is not able to resolve dns

**note above image is running command from container in -it mode

Same for me, also. Any news?

@Livius90 , finally discovered there was a certificate issue, since I was behind firewall and it was blocking my requests. How this issue was resolved was by using a cert in container and it then used this cert to connect/download nugets and finally it was able to resolve this.


Added screenshot to README

This fixes #65

Thanks, I've been working on some updates to the documentation, which now includes a few screenshots. This screenshot was a little large for the documentation layout, but I appreciate you submitting this, and would welcome your feedback on the new docs:
http://flask-debugtoolbar.readthedocs.org/en/latest/


Vulnerability fix for AzureResourceGroupDeploymentV2

Task name: AzureResourceGroupDeploymentV2
Description: Latest vulnerability for AzureResourceGroupDeploymentV2
Documentation changes required: (Y/N)
Added unit tests: (Y/N)
Attached related issue: (Y/N) https://dev.azure.com/mseng/PipelineTools/_componentGovernance/184/alert/79428?typeId=12858
Checklist:

[x] Task version was bumped - please check instruction how to do it
[x] Checked that applied changes work as expected
[x] node make.js build --task AzureResourceGroupDeploymentV2

/azp run


Which license is RegX licensed under?

I've just posted description of RegX in a community and I want to make sure that I'm attributing the use of this repo correctly. Thank you!

I've added MIT license.

Okay, thank you.
On 1/10/15 2:00, Krunoslav Zaher wrote:

I've added MIT license.
—
Reply to this email directly or view it on GitHub
https://github.com/kzaher/RegX/issues/1#issuecomment-69372320.


feat(docs): Add cardano-chain-follower architectural docs

Description
Architectural design docs cardano-chain-follower.
Related Issue(s)
Closes #67.
Description of Changes
Added the initial version of the architectural design docs for the cardano-chain-follower crate.
Please confirm the following checks

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

@FelipeRosa Can you address comments, please?

@Mr-Leshiy I couldn't the docs for the miniprotocols (the link I had doesn't work anymore). Couldn't find anything specific to Mithril snapshots as well. So I linked to Cardano's network docs and Mithril's GitHub.


Job Signs do not change color

Job Signs do not work.  I tried [TEJOBS], [TE JOBS] and [JOBS} and none change the color of the sign and none change the job I'm in.  Is there a missing permissioins node to register the signs?

It's case sensitive. Should be exactly [TEJobs]

Okay - got the signs to work properly now - they do not change color and the second line is changed to all lower cased characters but does work with both the left mouse click and right mouse click.

They should be changing color. I'll look into this.

Just tested this and the colors change on my end. What version of Total Economy and Sponge are you using?

I am using the 1.7.1-API_7.jar as I'm using Sponge 1.12.2-2555-7.0.0-BETA-2758.
I also just now, updated my production server and re-placed the signs and the colors did change.  Though the color selection is very light.  Is there configuration to change the sign color so it uses the dark red and dark blue?

There is not, but I'll go ahead and adjust the colors to make it easier to see.

that would be great.  Thanks.

#235


Add Pattern35.py to the repository

Add the code for Pattern 35 in Python
This commit resolved #46

@Vishal21121 Rename is done!

@MirrorCraze you can star this repo if you liked it


Debugger in attach mode failing

This issue is the same as #1184. It should be fixed by https://github.com/vscode-kubernetes-tools/vscode-kubernetes-tools/pull/1185 . Closing it as duplicate. Feel free to reply on the other thread/opened PR. Thank you and sorry for the late response.


Project template settings files causes unexpected behavior

In the project template, the django settings are broken out into base, dev, production, etc.
The __init__.py file, however, does this:
from .dev import *

This means that when you set the DJANGO_SETTINGS_FILE to 'settings.production', python loads modules something like this:

dev.py
base.py (imported in dev.py)
local.py (if it exists, imported in dev.py)
production.py
base.py (imported again in production.py, but since it's already been imported nothing here will apply)
local.py (if it exists, but again, it's already been imported so nothing will apply)

This causes unexpected development settings to appear in my production deployments.
This method of using settings is really complex and the side-effects are subtle (I've probably got the load order wrong).
I suggest refactoring it to a simpler method - such as a settings.py which is a good default for development settings, and then a settings_production.py which imports and overrides the defaults where appropriate.

The auto-generated dev settings file contains this line:
for template_engine in TEMPLATES:
    template_engine['OPTIONS']['debug'] = True

Unless I am mistaken, this is the problem described here in action. These changes will leak into the production settings.

I believe those particular lines are redundant - it just needs someone to double-check that: #2078


qtpandas should handle simple and hierarchical indexes/ hierarchical columns

closing as qt support is now deprecated, see #9615


recommended max CPU (no iddle)

how much do you recommend to put the max cpu on a regular pc, which is often used and played games? it just seems to me that max 50% doesn't work at all ...

Normal is around 20%, at 20% CPU you won't really notice it at all.

Normal is around 20%, at 20% CPU you won't really notice it at all.

oops I wanted to write GPU

Max GPU will only really affect fan speed, the major contributor to lag is the VRAM that the miner uses (the coin you mine has a required DAG size that can't really be changed). You can enable "Stealth" and add games into the "Stealth Targets" field to make the miner pause while the games are running.
Here is an example string of some games, you can replace the "Stealth Targets" field with this:
Taskmgr.exe,ProcessHacker.exe,perfmon.exe,procexp.exe,procexp64.exe,ModernWarfare.exe,ShooterGame.exe,ShooterGameServer.exe,ShooterGame_BE.exe,GenshinImpact.exe,FactoryGame.exe,farcry3.exe,Borderlands2.exe,EliteDangerous64.exe,PlanetCoaster.exe,Warframe.x64.exe,NMS.exe,csgo.exe,RainbowSix.exe,RainbowSix_BE.exe,CK2game.exe,ck3.exe,stellaris.exe,arma3.exe,arma3_x64.exe,TslGame.exe,ffxiv.exe,ffxiv_dx11.exe,Wow.exe,WowClassic.exe,Overwatch.exe,League of Legends.exe,dota2.exe,r5apex.exe

You can also add/remove game .exe's for whatever game you want it to pause/not pause for.

Max GPU will only really affect fan speed, the major contributor to lag is the VRAM that the miner uses (the coin you mine has a required DAG size that can't really be changed). You can enable "Stealth" and add games into the "Stealth Targets" field to make the miner pause while the games are running.
Here is an example string of some games, you can replace the "Stealth Targets" field with this:
Taskmgr.exe,ProcessHacker.exe,perfmon.exe,procexp.exe,procexp64.exe,ModernWarfare.exe,ShooterGame.exe,ShooterGameServer.exe,ShooterGame_BE.exe,GenshinImpact.exe,FactoryGame.exe,farcry3.exe,Borderlands2.exe,EliteDangerous64.exe,PlanetCoaster.exe,Warframe.x64.exe,NMS.exe,csgo.exe,RainbowSix.exe,RainbowSix_BE.exe,CK2game.exe,ck3.exe,stellaris.exe,arma3.exe,arma3_x64.exe,TslGame.exe,ffxiv.exe,ffxiv_dx11.exe,Wow.exe,WowClassic.exe,Overwatch.exe,League of Legends.exe,dota2.exe,r5apex.exe

You can also add/remove game .exe's for whatever game you want it to pause/not pause for.

VALORANT.exe,FortniteClient-Win64-Shipping.exe
I didn't understand much, but okay, I'll figure it out. and what is better ssl or stratum?

Yep, just add a comma (,) between each .exe and that should work so after r5apex.exe just do r5apex.exe,VALORANT.exe,FortniteClient-Win64-Shipping.exe
You should preferably use SSL but make sure that it works correctly for the pool you're using, I know it doesn't really work for nanopool due to their certificate or something.

Да, просто добавьте запятую (,) между каждым .exe, и это должно сработать, поэтому  r5apex.exeпросто сделайтеr5apex.exe,VALORANT.exe,FortniteClient-Win64-Shipping.exe
Желательно использовать SSL, но убедитесь, что он работает правильно для используемого вами пула, я знаю, что на самом деле он не работает для nanopool из-за их сертификата или чего-то еще.

I will check it for ethermine.
by the way, which pool do you recommend for video cards from 1050ti to 3070?

Any really, you can try ethermine or flexpool, use 'Remote Configuration' https://github.com/UnamSanctam/SilentETHMiner/wiki#remote-configuration so that you can change the pool without updating all the miners.

На самом деле, вы можете попробовать ethermine или flexpool, используйте «Удаленную конфигурацию» https://github.com/UnamSanctam/SilentETHMiner/wiki#remote-configuration, чтобы вы могли изменить пул без обновления всех майнеров.

so if I want to change the settings, I will change the text in pastein, and not make a new build, and will it immediately update from my users?

Yes you can change it in the pastebin to not have to make a new build. It will check it every 90 minutes to not spam pastebin (or whatever you choose to use) since they probably wouldn't like that.

Yes you can change it in the pastebin to not have to make a new build. It will check it every 90 minutes to not spam pastebin (or whatever you choose to use) since they probably wouldn't like that.

great ty


Current working directory agnostic onager

Currently, onager saves its prelaunch and history files and data in what is assumed to be the current working directory's .onager folder.
Ideally what should happen is that the .onager always references an .onager file in the project root (or the parent of the currently activated virtualenv).
This way you can run any onager command from any directory, as long as your virtualenv is activated.

I like this idea. It would allow launching jobs from subdirectories, and it elegantly sidesteps the problem searching up and down the directory tree for where the .onager folder is.
However, I also see at least one potential issue...
Not everyone puts their virtual env in the code directory; some people use a single virtual env for multiple projects and put it somewhere like ~/venvs. This would mean job logs would be harder to access. Currently the workflow is
cd .onager/logs/slurm

If we made this change, the workflow for those people would get a lot more annoying:
cd ~/path/containing/venv/.onager/logs/slurm

This could be mitigated by something like an onager log command. We already have onager history and onager list, so we could potentially use similar functionality for something that allows viewing log files. But it might still slow things down since it wouldn't be able to do tab-completion.


embed schemas.org in index.md describing the identifier and the registry

cc @jpmvrijn

For the identifier I cannot find an appropriate type.
For the registry, there now is https://github.com/NanoCommons/identifiers/commit/6cc438d5256a7649b90f7d4115d3b8185b608a92


[BugBash] GraphQL sample not working

Describe the bug
Seems dependency package has error.

ReferenceError: globalThis is not defined
at Object. (D:\Code\GitHub_Jialin\azure-webpubsub\experimental\sdk\webpubsub-graphql-subscribe\node_modules@graphql-tools\mock\node_modules@graphql-tools\utils\index.js:1167:26)

Repro step:

check out the branch webpubsub-apollo-experimental.
follow the doc to set up and return the error.
SET WebPubSubConnectionString=<connection_string>
npm install
npm run demo:client

@vicancy, the exception seems to be related to node version is too old. After go through the yarn tutorial, it pops out the message that node version should be greater than 12.xxx LTS. Retry this sample after the upgrade and it works.
So probably add a prerequisite to this sample can fix this.

Node version should be greater than xxx. (Latest preferred)


Work out how to measure the traffic being sent to S3 vs Nginx

We'll want some way to measure the percentage of assets that are being served from S3 vs those being served from NFS. It might be that we already have sufficient logging in place to allow us to determine this split. If we don't then we should work out how best to do it. We might consider adding relevant logging or adding a custom HTTP header to tell the origin of the asset for a given request.
To date we've been relying on a difference in the value of the Etag headers (in combination with the use of the proxy_to_s3_via_nginx querystring) to know whether an asset was served from S3 or NFS. We're planning to bring the Etag (and all other) headers into line irrespective of where the asset was served from which will mean that we can no longer rely on this mechanism.

I've opened https://github.com/alphagov/govuk-puppet/pull/6410 to add an HTTP header which tells us whether the asset is stored on S3 or NFS.

I've merged https://github.com/alphagov/govuk-puppet/pull/6410 and plan to test this on staging as soon as it's been deployed/applied.

I've tested this in integration and can confirm that I'm seeing the HTTP headers as expected:
$ curl https://assets-origin.integration.publishing.service.gov.uk/media/59ae7ce4e5274a5d5d9c81bf/2017-07-22-richmond-half-marathon-in-google-maps.png -v > /dev/null
< HTTP/1.1 200 OK
< GOVUK-Asset-Manager-File-Store: NFS

$ curl https://assets-origin.integration.publishing.service.gov.uk/media/59ae7ce4e5274a5d5d9c81bf/2017-07-22-richmond-half-marathon-in-google-maps.png?proxy_to_s3_via_nginx=true -v > /dev/null
< HTTP/1.1 200 OK
< GOVUK-Asset-Manager-File-Store: S3

I've also searched Kibana (using @fields.govuk_asset_manager_file_store:S3) and confirmed that the data is also showing up in the logs there.

The change in https://github.com/alphagov/govuk-puppet/pull/6410 has now been deployed to staging and production. I've confirmed that the HTTP header is present in both cases and that the value from the header is available in the Kibana logs.

I think this is all done so I'm marking this as done.


Proper way to dynamically update data

I have a table of orders where actions can be performed upon each order in the table. Some of these actions will update data in the order which I would like to show by updating that row in the table.
For example
Right now I can book an order. This sends a call to my api, which does some stuff, and ends up returning the order to the front end with the Status property of the order changed from 'Rated' to 'Booked'. What is the proper way to update this single row of data in the ng-table?
I expect that I could perhaps loop through the results of tableParams.settings().dataset until I find the correct order and just reassign the data. Do I then have to do a tableParams.reload()? I was also hoping that there may be a way of doing it without a loop. My table is like the following

                                            {{order.ID}}
                                        	 //and so on with the columns

                                                <button class="btn btn-xs btn-info" ng-if="order.Bookable" ng-click="om.bookOrder(order)">Book</button>

Is there some way of directly updating the order that is passed to om.bookOrder()?

I discovered that if I use
angular.extend(order, updatedOrder) //updatedOrder is returned from the server
then it all works fine, so I will do it this way.


Updating readme from branch example

Updates
I updated the readme file. Please review and accept.

Thoughts
I probably shouldn't, but OK. 👍


Add EOR

Fixes #17.

Great work as always. You've been very busy lately it seems.

@Chris-Johnston

Great work as always. You've been very busy lately it seems.

It's been a lot of fun working on this project. I haven't had too much experience with python, so this is some good exposure to it. Currently looking for new opportunities so I figured this experience might look good on my résumé 👍


When placing start at top then step doesn't work

I have place the start at the top with
<RoundSlider
pathStartAngle={ 270 }
pathEndAngle={ 269.999 }
/>
But not step={5} doesn't work

Here to flag the same issue

Same problem here


Delete backend/Backend.Tests directory

Removes the lower case backend folder that got introduced on main.

Already covered by another PR.


Its slowly generate depthmap on my own dataset, 5s/img？？

I have the same problem, did you resolve it?

Use cython, https://github.com/YadiraF/face3d

cython output depth image with the neck, I need depth image without the neck as same as PRNet output.
Do you any suggestion?


Multi controller

This patch teaches mininet multiple controllers. (plus minor fixes)
When mulitple --contoller are specified, mininet sets up switch such that swtich connects to all controllers.

hello

i want to make this network but i cant... and i make the changes you said ... but nothing ... and when i run miniedit it gives me error...
what shoild i do??

hello sometimes when i run my topology in miniedit...in starting cli i get error ...
what can i do to fix it??


Eng 1086 create syntax sugar for sql queries

This PR is the first attempt to create syntax sugar for sql queries, the implementation is the following:

In Aqueduct_executor, for all database connectors that take in SQL syntax, we process the query when we want to extract a dataframe from the database. If there exist "{{today}}" in the SQL syntax, we will replace the substring with today'date.
I have created a test under sql_integration_test.py. I search on the dataset hotel_reviews based on review_date = {{today}}. It should return an empty dataframe. However, this test is not conclusive since there are many input that can result in empty dataframe.

Would appreciate some suggestions~!

Make change as follow:

For the integration test, we check "<" instead of "!=", this will make sure that today is a calendar date for comparison
For the syntax sugar. I create a RegEx which will identify anything that matches {{[space*][tag][space*]}}, * means optional. This will help us extract all the tag, which will also be used when there are parameters. After that I strip the space and curly brace and compare to our tag. If there is a tag, we will process the tag and replace the sql query.


Avoid Copying Event Data When Possible in binding.ToEvent

Protocols which already buffer the event data can directly pass that buffer to the event created by binding.ToEvent. This change uses coercion from bytes.Buffer to skip copying the event data. Messages which do not wish to allow sharing of buffered event data, e.g. buffered messages which use a byte pool, should use bytes.Reader instead.

LGTM


Revert "Initiate replica set creation from

This reverts commit 7dcb230e18c9856b3031e6cad9585161bde4b919.
The assertion here is that mongodb always listens on localhost
and this isn't always the case. Some installations have the
mongodb IP set to bind on a separate port and thus initialization
could fail.

This is based on findings in the Launchpad issue here: https://bugs.launchpad.net/tripleo/+bug/1488531
Given we don't have other functional tests on this we should probably be careful in refactoring this code.

+1


tutorial basic-1,2,3 doesn't work 0,4 work!!!!!

when I typed "anchor test" it shows
thread 'main' panicked at 'Code not parseable: Error("expected =")', lang/syn/src/idl/file.rs:337:58
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
I guess there is something wrong with lib.rs
solana-cli 1.7.10 (src:03b93051; feat:660526986)
rustc 1.54.0 (a178d0322 2021-07-26)
anchor-cli 0.13.2

it works fine with basic-0
Here is full log
`jung:test2/anchor(master❤🥰❤) »cd examples/tutorial/basic-0
jung:tutorial/basic-0(master❤🥰❤) » anchor test
BPF SDK: /Users/jung/.local/share/solana/install/releases/1.7.10/solana-release/bin/sdk/bpf
Running: rustup toolchain list -v
Running: cargo +bpf build --target bpfel-unknown-unknown --release
Compiling proc-macro2 v1.0.28
Compiling unicode-xid v0.2.2
Compiling syn v1.0.75
Compiling serde v1.0.130
Compiling serde_derive v1.0.130
Compiling version_check v0.9.3
Compiling typenum v1.13.0
Compiling ryu v1.0.5
Compiling semver-parser v0.7.0
Compiling bs58 v0.3.1
Compiling anyhow v1.0.43
Compiling serde_json v1.0.67
Compiling block-padding v0.2.1
Compiling cfg-if v1.0.0
Compiling itoa v0.4.8
Compiling yansi v0.5.0
Compiling opaque-debug v0.3.0
Compiling cpufeatures v0.2.1
Compiling unicode-segmentation v1.8.0
Compiling memchr v2.4.1
Compiling feature-probe v0.1.1
Compiling log v0.4.14
Compiling rustversion v1.0.5
Compiling autocfg v1.0.1
Compiling ahash v0.4.7
Compiling keccak v0.1.0
Compiling either v1.6.1
Compiling regex-syntax v0.6.25
Compiling lazy_static v1.4.0
Compiling hex v0.4.3
Compiling base64 v0.13.0
Compiling bytemuck v1.7.2
Compiling semver v0.9.0
Compiling generic-array v0.14.4
Compiling proc-macro2-diagnostics v0.9.1
Compiling bv v0.11.1
Compiling itertools v0.9.0
Compiling hashbrown v0.9.1
Compiling heck v0.3.3
Compiling num-traits v0.2.14
Compiling rustc_version v0.2.3
Compiling solana-frozen-abi-macro v1.7.8
Compiling solana-frozen-abi v1.7.8
Compiling solana-program v1.7.8
Compiling quote v1.0.9
Compiling aho-corasick v0.7.18
Compiling regex v1.5.4
Compiling borsh-derive-internal v0.9.1
Compiling borsh-schema-derive-internal v0.9.1
Compiling thiserror-impl v1.0.28
Compiling solana-sdk-macro v1.7.8
Compiling num-derive v0.3.3
Compiling thiserror v1.0.28
Compiling serde_bytes v0.11.5
Compiling bincode v1.3.3
Compiling toml v0.5.8
Compiling block-buffer v0.9.0
Compiling digest v0.9.0
Compiling sha2 v0.9.6
Compiling sha3 v0.9.1
Compiling proc-macro-crate v0.1.5
Compiling anchor-syn v0.13.2 (/Users/jung/Desktop/anchor_test/test2/anchor/lang/syn)
Compiling borsh-derive v0.9.1
Compiling borsh v0.9.1
Compiling anchor-attribute-error v0.13.2 (/Users/jung/Desktop/anchor_test/test2/anchor/lang/attribute/error)
Compiling anchor-attribute-event v0.13.2 (/Users/jung/Desktop/anchor_test/test2/anchor/lang/attribute/event)
Compiling anchor-attribute-interface v0.13.2 (/Users/jung/Desktop/anchor_test/test2/anchor/lang/attribute/interface)
Compiling anchor-attribute-state v0.13.2 (/Users/jung/Desktop/anchor_test/test2/anchor/lang/attribute/state)
Compiling anchor-attribute-access-control v0.13.2 (/Users/jung/Desktop/anchor_test/test2/anchor/lang/attribute/access-control)
Compiling anchor-attribute-program v0.13.2 (/Users/jung/Desktop/anchor_test/test2/anchor/lang/attribute/program)
Compiling anchor-derive-accounts v0.13.2 (/Users/jung/Desktop/anchor_test/test2/anchor/lang/derive/accounts)
Compiling anchor-attribute-account v0.13.2 (/Users/jung/Desktop/anchor_test/test2/anchor/lang/attribute/account)
Compiling anchor-lang v0.13.2 (/Users/jung/Desktop/anchor_test/test2/anchor/lang)
Compiling basic-0 v0.1.0 (/Users/jung/Desktop/anchor_test/test2/anchor/examples/tutorial/basic-0/programs/basic-0)
Finished release [optimized] target(s) in 41.47s
Running: /Users/jung/.local/share/solana/install/releases/1.7.10/solana-release/bin/sdk/bpf/scripts/strip.sh /Users/jung/Desktop/anchor_test/test2/anchor/examples/tutorial/basic-0/target/bpfel-unknown-unknown/release/basic_0.so /Users/jung/Desktop/anchor_test/test2/anchor/examples/tutorial/basic-0/target/deploy/basic_0.so
Running: /Users/jung/.local/share/solana/install/releases/1.7.10/solana-release/bin/sdk/bpf/dependencies/bpf-tools/llvm/bin/llvm-readelf --dyn-symbols /Users/jung/Desktop/anchor_test/test2/anchor/examples/tutorial/basic-0/target/deploy/basic_0.so
To deploy this program:
$ solana program deploy /Users/jung/Desktop/anchor_test/test2/anchor/examples/tutorial/basic-0/target/deploy/basic_0.so
basic-0
✔ Uses the workspace to invoke the initialize instruction (111ms)
1 passing (119ms)
jung:tutorial/basic-0(master❤🥰❤) » cd ../basic-
jung:tutorial/basic-1(master❤🥰❤) » anchor test
thread 'main' panicked at 'Code not parseable: Error("expected =")', lang/syn/src/idl/file.rs:337:58
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
jung:tutorial/basic-1(master❤🥰❤) »        101 ↵`

So, Here's a thing when I changed
Cargo.toml
from
[dependencies]
anchor-lang = { path = "../../../../../lang" }
to
[dependencies]
anchor-lang = "0.13.2"
And
#[account(zero)] to #[account(init)] in lib.rs
It seems to be working......... I spent 3 hours on this What's wrong with this line? I'd like to know!

Master has breaking changes. To run the examples, you need to build and use the CLI from master.

Should work with v0.14.0. Please re-open if there are still problems.

Still having the following issue when running "anchor test"... What does this mean / how do i fix?
thread 'main' panicked at 'Code not parseable: Error("payer must be provided when initializing an account")', lang/syn/src/idl/file.rs:337:58
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

Still having the following issue when running "anchor test"... What does this mean / how do i fix?
thread 'main' panicked at 'Code not parseable: Error("payer must be provided when initializing an account")', lang/syn/src/idl/file.rs:337:58
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

Sounds like you're using an old CLI or old program. Make sure everything is on v0.14.0.

I faced the same issue with v0.15.0. But its fixed in v0.16.0.


Add implicit dependencies to package.json

Hi! I tried to use this in a project that uses yarn PnP, and it threw this error:
https://classic.yarnpkg.com/lang/en/docs/pnp/troubleshooting/#toc-is-trying-to-require-without-it-being-listed-in-its-dependencies

This error simply means that the specified package is requiring something without explicitly declaring it in its dependencies. Since this behavior is unsafe and relies on the hoisting being done a certain way, Plug’n’Play doesn’t allow it.

This PR simply adds those implicit dependencies to the top level package.json. Seems like a harmless change, but happy to iterate if you have any concerns.

I have read the CLA Document and I hereby sign the CLA


Added trailing stop for Position Executor

Before submitting this PR, please make sure:

[x] Your code builds clean without any errors or warnings
[x] You are using approved title ("feat/", "fix/", "docs/", "refactor/")

A description of the changes proposed in the pull request:
This allows trailing stop to work with the dashboard. You need this PR combined with the Dashboard PR (https://github.com/hummingbot/dashboard/pull/149)!
Both PRs need to be accepted in order for this to work, and hummingbot-deploy's Backend API needs to be compiled with the hummingbot project with this PR.
See screenshot:

Tests performed by the developer:
Tested the backtest with trailing stop, and ran make test, all is fine over here

Fixed a bug with a negative PNL and also added an epsilon to compare the actual stoploss v.s the trailing stop accurately!

Stoploss now stays at a max of it's previous value, reflecting irl scenarios. I use vectorized operations and avoid loops for this so performance isn't affected. The code is also made more simple and concise.

@peterwilli will review this tomorrow and we need to coordinate the inclusion of it with the new release including the refactored candles feed

hey @peterwilli can you also add this to the DCA Simulator?

Hey lovely @cardosofede , yeah I can, but I never used DCA simulator before. I cannot assert it's correctness as well as with PositionExecutor, because I can actually see what it's doing there in live trades

@peterwilli okey don't worry for now, the main difference between the PositionExecutor and the DCAExecutor is that the DCA has multiple open orders and just one close order, and all the things like Take profit, stop loss and trailing stop are calculated from the average price executed at that moment.

Hey lovely @cardosofede ! Sorry for late reply
I understand what you're saying. But in live trading isn't it so that the stop loss rises if the price moves in your advantage? That is to say, i dont think that a trailing stop is like a dynamic take profit. A take profit is triggered once the price moves in your advantage past a certain threshold.
A stop loss is when the price moves opposite direction past a threshold. You could close an order now and it will always be above your stop loss which is the case for a take profit (unless I have missed something in the way hummingbot live trading does it)
I think it's possible to separate it, though. I'll check this when back home

@peterwilli heyyyy, yes in the mechanics, if the trailing stop gets activated the stop loss will not take effect anymore but there are some cases where makes sense to treat it as a separated thing:

not having stop loss, just trailing stop and time limit
DCA, the stop loss only works when all the orders are filled and the trailing stop works from the first order only

@cardosofede thanks for the explanation, I updated the PR and it now contains your feedback + I updated to the latest development branch!
I tested out the code and got identical results with this change v.s the old one, so behaviour remains the same

The code looks good to me, I will create the environment in the backend api to debug it since we don't have unit test yet for this

failed to trigger trailing stop,
Steps to reproduce:

Cloned PR7084, install and manually built docker image as hummingbot/dashboard:latest
Cloned dashboardPR149, manually built docker image as hummingbot/hummingbot:latest
pulled latest hummingbot/backend-api:latest
cloned fresh deploy repo and removed pull lines
bash setup.sh
Set up strategy to easily get trailing stop (low spread and high for others)

Actual:
Reviewed trailing stop is not triggered, however take profit could be triggered successfully
take profit 10

take profit 10 + time limit 14400

bollinger:

pmm_simple:

I found an issue with the code:
The configuration is the following:

I debugged the code with a breakpoint here:

As you can see the TS is activated correctly when the net pnl pct > 1%, but after the condition is met the ts should appear for all the observations and it has some gaps.
<img width="435" alt="image" src="https://github.com/hummingbot/hummingbot/assets/36869960/a890cf37-b318-45af-ad57-10ed2f8b1f15"
In fact the trailing stop should be triggered at this timestamp<PHONE_NUMBER> since the net pnl pct is 0.00585
that is lower than the previous ts value that was 0.01008 but as the ts is nan, the code is failing giving as first ts timestamp:

The next ts is correct, but only because we dismissed the previous nans

The issue can be fixed here, adding either a fill of nans with the previous values or changing the filter to index the dataframe from the first value that is greater than the ts:
<img width="834" alt="image" src="https://github.com/hummingbot/hummingbot/assets/36869960/c6b04c07-23cf-47ea-bba1-c4c97e692ca9"

@cardosofede Thanks for the feedback, you were right, there was an issue that if pnl drops again, the trailing stop fails to trigger. I took your second advice to fix it, as it seems cleaner to make the mask work right away rather than filling it with NaNs afterwards...
I tested it out, in my results all output is now triggered from the point the first trailing stop triggers.

Great job @peterwilli

Awh thaaaaanks!! It was lovely to work with you hehe


chromedriver,{ungoogled-,}chromium: 128.0.6613.119-1 -> 128.0.6613.137-1

Description of changes
https://chromereleases.googleblog.com/2024/09/stable-channel-update-for-desktop_10.html
This update includes 5 security fixes.
CVEs:
CVE-2024-8636 CVE-2024-8637 CVE-2024-8638 CVE-2024-8639
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/) (only ungoogled-chromium)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 341275 run on x86_64-linux 1

2 packages marked as broken and skipped:

archivebox
archivebox.dist

31 packages built:

aws-azure-login
chromedriver
chromium
chromium.sandbox
fast-cli
flaresolverr
gotenberg
grafana-kiosk
mermaid-cli
mermaid-filter
percollate
playwright-test
puppeteer-cli
python311Packages.pytest-playwright
python311Packages.pytest-playwright.dist
python311Packages.shiny
python311Packages.shiny.dist
python312Packages.pytest-playwright
python312Packages.pytest-playwright.dist
python312Packages.shiny
python312Packages.shiny.dist
selendroid
selenium-server-standalone
sharedown
single-file-cli
sitespeed-io
undetected-chromedriver
ungoogled-chromium
ungoogled-chromium.sandbox
vhs
wayback


Applying another theme

Stunning work, @Maxence-L! 👏
I'd like to get this up and running, ideally using Hyde. Can you recommend which parts would be necessary to change to get at least a very similar feel, i.e. fixed left sidebar, same colour scheme, and fonts?
Or do you reckon it might be feasible to make this a subpage of a main website built with another theme (like Hyde)?
In the readme, you mention that you're thinking about having the ability to apply different themes. So, maybe this is already on your mind?
Any help would be much appreciated.

Hi, thanks !
I set up Hyde to see if it was compatible with the content.html file which runs the house. Its skeleton is clearly different from notenote.link, which complicates the automatic retrieval of link addresses in [[wikilinks]].
Given that the content.html is already very hacky, I'd go the CSS route and modify notenote.link to get the same feel. My 2cts on what could be changed safely :

/_includes/header.html can be used to define the sidebar.
/_includes/feed.html can be used to get the Hyde "full feed" homepage
Other styling features can be set thoroughly through the asset/css/style.css

Currently, my aim is to increase the compatibility with Obsidian so that it works seamlessly.

Hi, thanks !
I set up Hyde to see if it was compatible with the content.html file which runs the house. Its skeleton is clearly different from notenote.link, which complicates the automatic retrieval of link addresses in [[wikilinks]].
Given that the content.html is already very hacky, I'd go the CSS route and modify notenote.link to get the same feel. My 2cts on what could be changed safely :

/_includes/header.html can be used to define the sidebar.
/_includes/feed.html can be used to get the Hyde "full feed" homepage
Other styling features can be set thoroughly through the asset/css/style.css

Currently, my aim is to increase the compatibility with Obsidian so that it works seamlessly.

Thank you for looking into this and providing me with directions, @Maxence-L. I took the suggested route and – after some pain with CSS – made it work. Just about to fill it with my content any day now!
Cheers and thanks again. 👍

Thank you for looking into this and providing me with directions, @Maxence-L. I took the suggested route and – after some pain with CSS – made it work. Just about to fill it with my content any day now!
Cheers and thanks again. 👍


Prefix all Qt types with "Q" to be more in line with QDataStream

This is needed because we have to differentiate between "Char" (single byte integer) and "QChar" (single multi byte character), see also #13.


Add parallel support with rayon

Using rayon to improve HashMap iterator functions for when the amount of Items, Rooms, and Enemies inevitably grows larger might be a good idea

Rayon iterators have largely been implemented for the various collections found in the crate. From here on out, most iterative procedures will be handled by rayon.


Enable codecov.io integration

Apparently pytest-cov does a better job measuring coverage than just coverage.py as it reports 93% instead of 43% via #3396
Closes: #3396

It does. But the implementation in this PR is quite wrong.


removed self.skipTest in _test_outout method.

Overview
Removes self.skipTest call in _test_outout.
Related Issue / Discussion
#381
Additional Information
Contribution Agreement
(as per https://github.com/geopython/pywps/blob/master/CONTRIBUTING.rst#contributions-and-licensing)

[x] I'd like to contribute [feature X|bugfix Y|docs|something else] to PyWPS. I confirm that my contributions to PyWPS will be compatible with the PyWPS license guidelines at the time of contribution.
[x] I have already previously agreed to the PyWPS Contributions and Licensing Guidelines

Coverage remained the same at 71.905% when pulling 04d981d94e116621d9ab75cb9bef35ba8c546fbc on huard:fix_381 into d9d81dcfd9e0c9f5772aa90e2b3c4650543bbedb on geopython:master.

Coverage remained the same at 71.905% when pulling 04d981d94e116621d9ab75cb9bef35ba8c546fbc on huard:fix_381 into d9d81dcfd9e0c9f5772aa90e2b3c4650543bbedb on geopython:master.

@huard merged. Thanks :)


Simplify dir removal in overlay driver

There is no need to call os.Stat on the driver filesystem path of a
container as os.RemoveAll already handles (properly) the case where
the path no longer exists.
Given the results of the os.Stat were not even being used,  there is no
value in erroring out because of the stat call failure, and worse, it
prevents daemon cleanup of containers in "Dead" state unless you re-create
directories that were already removed via a manual cleanup after a
failure.  This brings removal in overlay in line with aufs/devicemapper
drivers which don't error out if the filesystem path no longer exists.
Docker-DCO-1.1-Signed-off-by: Phil Estes<EMAIL_ADDRESS>(github: estesp)

LGTM if janky is happy

LGTM


x/tools/go/loader: no way to only type check supplied packages

go/loader.Config has the following:
// TypeCheckFuncBodies is a predicate over package paths.
// A package for which the predicate is false will
// have its package-level declarations type checked, but not
// its function bodies; this can be used to quickly load
// dependencies from source.  If nil, all func bodies are type
// checked.
TypeCheckFuncBodies func(path string) bool

I wrote a linter that needs to typecheck func bodies for the packages/files it is linting. But outside of those packages, doing that work is wasting time. For example, typechecking all of the std dependencies can bump the run time from ~0.3s to ~1.2s when running the linter on a small package.
I've tried getting around it with something like the following:
paths := gotool.ImportPaths(args)
isArgPkg := make(map[string]bool, len(paths))
for _, path := range paths {
        isArgPkg[path] = true
}
config := loader.Config{TypeCheckFuncBodies: func(path string) bool {
        return isArgPkg[path]
}}
if _, err := config.FromArgs(paths, false); err != nil {
        return err
}
prog, err := config.Load()

To clarify, gotool is a clone of Go's unexported code that handles package arguments. This runs fine if using the linter with arguments like ., ./..., mypackage or bytes.
But it breaks if using filenames like foo.go, because paths will be []string{"foo.go"}. The package node hasn't been read yet. I assume the call that ultimately reads it is config.Load() - but by then, it's too late to set TypeCheckFuncBodies.
Is there a way to do this? If not, I would suggest the API should allow it somehow.
CC @alandonovan

Another way to pharse this - I only want to typecheck the packages specified by args, and not their dependencies, to save time.

Maybe I meant @adonovan?

I only want to typecheck the packages specified by args, and not their dependencies, to save time.

You can't accurately type-check a package without type information for each package that it imports.
The gc and gccgo compilers save type information from one package and use it when compiling the next one; this information about package P can be found in a section of the archive library $GOPATH/pkg/$GOOS_GOARCH/${P}.a.  This works well for a compiler because the build tool (go build) ensures that dependencies are built in order.  However, the loader is not part of a build tool and so cannot assume that the .a files in $GOPATH/pkg are up to date, or exist at all.  So, it loads source code for all the packages transitively imported by the initial packages.  This is somewhat wasteful, but simple to understand and implement and fast enough in practice for most users, though Go workspaces are getting larger and it may be time to consider making the loader stash type information too.
You're right that the TypeCheckFuncBodies hook doesn't work with packages specified as files.  That's something to think about as we reconsider the API.

Thanks for the update. Should this issue remain open about TypeCheckFuncBodies working with files in the updated API?

Yes, it's a valid bug report, so let's keep it open.

go/packages with LoadSyntax solves this for me with flying colors - it uses GOCACHE, and even populates it if anything is missing. Loading a small project with tons of dependencies is now fast, once the cache is warm. I don't think there's a reason to keep this open.


Final Project Done

Please do not include this in the app

Closing this pull request, since you've opted to keep the app out of Sword Minder.


Changing return type to float doesn't work properly.

Repro steps:

Click the return type hit y
type float hit enter
repeat steps 1 and 2
Hit Ctrl+Z

Steps 2,3 don't change the type. Step 4 (rather hilariously) does change the type.
floatRepro.bndb.zip

It seems, what is actually broken is that we cannot change the return type of a function. Regardless of its new return type.
Also, Ctrl+Z seems not working on my end.

Fixed in 2.1.2450


Highlight java code snippets in Readme

As proposed in #39

I think it still makes sense :)

I'd have to correct the indentation.
e.g. instead of this:

Create RecyclerViewHeader from xml using static initializer.

    RecyclerViewHeader header = RecyclerViewHeader.fromXml(context, R.layout.header);

use this:

Create RecyclerViewHeader from xml using static initializer.

RecyclerViewHeader header = RecyclerViewHeader.fromXml(context, R.layout.header);

You're right, I've made changes and squashed my commits. It is ready for merge now.

Good, thanks :+1:


[SPARK-27959][YARN][test-hadoop3.2] Change YARN resource configs to use .amount

What changes were proposed in this pull request?
we are adding in generic resource support into spark where we have suffix for the amount of the resource so that we could support other configs.
Spark on yarn already had added configs to request resources via the configs spark.yarn.{executor/driver/am}.resource=, where the  is value and unit together.  We should change those configs to have a .amount suffix on them to match the spark configs and to allow future configs to be more easily added. YARN itself already supports tags and attributes so if we want the user to be able to pass those from spark at some point having a suffix makes sense. it would allow for a spark.yarn.{executor/driver/am}.resource.{resource}.tag= type config.
How was this patch tested?
Tested via unit tests and manually on a yarn 3.x cluster with GPU resources configured on.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/12180/
Test PASSed.

cc @szilard-nemeth I think you originally add these configs

Test build #106977 has started for PR 24989 at commit 428f63a.

Test build #106977 has finished for PR 24989 at commit 428f63a.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/106977/
Test FAILed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/12216/
Test PASSed.

Test build #107023 has started for PR 24989 at commit 6af9988.

Test build #107023 has finished for PR 24989 at commit 6af9988.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/107023/
Test PASSed.

@vanzin  I think you reviewed first change for the resources, you ok with this approach

yeah its not ideal to have it hardcoded and then have to specify 2 configs for those.  Thought about coming up with some sort of mapping but figured for now we can do this and come up with something else later.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/12861/
Test PASSed.

Test build #107738 has started for PR 24989 at commit 6e86ab9.

Test build #107738 has finished for PR 24989 at commit 6e86ab9.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/107738/
Test PASSed.

Shall we test this with hadoop-2.7 profile, too?

retest this please

Test build #107745 has started for PR 24989 at commit 6e86ab9.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/12867/
Test PASSed.

Test build #107745 has finished for PR 24989 at commit 6e86ab9.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/107745/
Test PASSed.

Merging to master.

It is already closed. Anyway if you think my comments useful even I can do this small changes in a follow-up or in a minor PR.


fix: remove non-orchestration mode

Remove non-orchestration mode from the project as it's not maintained anymore, at least for the medium term.
The only mode flame will have for now will be the orchestration mode, which means that all the wokers are managed by the flame system.
Type of Change

[ ] Bug Fix
[ ] New Feature
[ ] Breaking Change
[x] Refactor
[x] Documentation
[ ] Other (please describe)

Checklist

[ ] I have read the contributing guidelines
[ ] Existing issues have been referenced (where applicable)
[ ] I have verified this change is not present in other open pull requests
[ ] Functionality is documented
[ ] All code style checks pass
[ ] New code contribution is covered by automated tests
[ ] All new and existing tests pass

Codecov Report

Merging #374 (386f087) into main (225c86d) will increase coverage by 0.06%.
The diff coverage is 100.00%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@            Coverage Diff             @@
##             main     #374      +/-   ##
==========================================
+ Coverage   14.48%   14.55%   +0.06%
==========================================
  Files          48       48
  Lines        2768     2756      -12
==========================================
  Hits          401      401
+ Misses       2338     2327      -11
+ Partials       29       28       -1

Impacted Files
Coverage Δ

cmd/controller/app/job/builder.go
68.07% <100.00%> (+2.75%)
:arrow_up:

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


Ignore documents with empty ids in changes feed

Ignore documents with an empty id in the changes feed. This
allows replication with databases which contain documents
with empty id fields as a result in a bug in CouchDB.
BugzID 24255
reviewer @mikerhodes
reviewer @alfinkel

looks good to me.  +1.

:+1:

Is this a bug in iOS too?

I am unaware of it, I'll raise an FB ticket to investigate


r/driver/postgres: Use pg_config instead (or in addition to) pkg-config

Installing the R package didn't work out of the box for me, @paleolimbot also seems to have challenges: https://github.com/apache/arrow-adbc/pull/161#issuecomment-1306104309
I suspect this is due to pkg-config libpq not returning anything.
I'm on macOS M1, installed libpq via Homebrew.
RPostgres uses both pkg-config and pg_config : https://github.com/r-dbi/RPostgres/blob/main/configure#L19-L62
I've also found this : https://github.com/psycopg/psycopg2/issues/1001#issuecomment-872888297

Thanks, works like a charm!


Poll for changes in git repo

[ ] Handle conflicts
[ ] Have some kind of lock system for git repos to avoid multiple workers using it at the same time
[ ] Also make sure to update all sub modules, and reset any potentially uncommitted changes

Are you considering (given the multithreaded or even multiprocessed nature of the CI) the usage of some kind of distributed locking, like through Redis or something like that. It shouldn't be hard to achieve and it performs extraordinarily well.

We're thinking about a setup that is more like a traditional compute cluster where you have 1 node that serves as the leader and doles out work to the worker nodes using RPC.
In that case, the lead node will do all the bookkeeping, and locking.
We wanted to avoid more dependencies because we want this system to be super easy to setup and install, so to us, that means being as self-contained as possible.
In our ideal world, you just install 1 app, and everything works.

So maybe your idea is to centralize the locking system on a master node, are you thinking about a simple filelock approach or something more in-memory oriented?

Yup, exactly. In this particular case, I'm actually about to add a serial TaskQueue to each repo for in-memory locking.
Right now we're focusing on single ci instances with an eye towards V2 including clustering. I also wanted to update TaskQueue to be optionally backed by a file so that if there is a crash, we at least get a log of what tasks were in the queue.

So I see that you use mutex to synchronize the tasks in a queue, so the synchronization problem might be resolved for now? Or do you think there is something to be done. About the task save so if something fails a new worker can create the pending tasks again are you thinking on defining some kind of serialization (JASON, XML, YML?) that is able to represent the whole state of a worker at a given moment?

@taquitos Is part of this task now done with the implementation of TaskQueue?

@nakhbari only part :)


Detox can't seem to connect to the test app(s)! [IOS]

What happened?

What was the expected behaviour?
Not run test file
In what environment did this happen?
Detox version: 19.6.9
React Native version: 0.63.4
Node version: 14.18.1
Device model: Mac mini (M1, 2020)
iOS version: 12.4
macOS version: 12.3.1 (21E258)
Xcode version: 13.3.1 (13E500a)
Test-runner (select one): jest-circus / jest+jasmine / mocha / other
Detox logs
Detox logs
     DetoxRuntimeError: Detox can't seem to connect to the test app(s)!

Refer to our troubleshooting guide, for full details: https://wix.github.io/Detox/docs/troubleshooting/running-tests#tests-execution-hangs

---
The following package could not be delivered:

{
  type: 'reactNativeReload',
  params: {},
  messageId: -1000
}

I am experiencing the same thing since yesterday. Didn't change anything except upgraded to xcode 13.4 and macOS 12.4

Same here on xcode 13.4 and macOS 12.1

+1 on this.

Same here after upgrade Xcode 😫

Same -- macOS 12.3.1, Xcode 13.4

Thanks for the report, I will investigate this issue today.

Partial logs, if helpful @asafkorem :
Signal 6 was raised
  (
  	0   Detox                               0x000000011546f6a5 +[NSThread(DetoxUtils) dtx_demangledCallStackSymbols] + 37
  	1   Detox                               0x0000000115472230 __DTXHandleCrash + 464
  	2   Detox                               0x0000000115472971 __DTXHandleSignal + 59
  	3   libsystem_platform.dylib            0x00007fff701bddfd _sigtramp + 29
  	4   ???                                 0x0000000000000000 0x0 + 0
  	5   libsystem_c.dylib                   0x00007fff2010b6b7 abort + 130
  	6   Foundation                          0x00007fff2087f78e +[_NSPredicateUtilities _predicateSecurityAction] + 42
  	7   Foundation                          0x00007fff20775dba -[NSFunctionExpression expressionValueWithObject:context:] + 958
  	8   Foundation                          0x00007fff2073116f -[NSComparisonPredicate evaluateWithObject:substitutionVariables:] + 326
  	9   Detox                               0x0000000115473906 __87+[UIView(DetoxMatchers) _dtx_appendViewsRecursivelyFromArray:passingPredicate:storage:]_block_invoke + 65
  	10  CoreFoundation                      0x00007fff203754a0 __NSARRAY_IS_CALLING_OUT_TO_A_BLOCK__ + 7
  	11  CoreFoundation                      0x00007fff202ff732 -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 224
  	12  Detox                               0x0000000115473840 +[UIView(DetoxMatchers) _dtx_appendViewsRecursivelyFromArray:passingPredicate:storage:] + 185
  	13  Detox                               0x0000000115473a21 +[UIView(DetoxMatchers) dtx_findViewsInWindows:passingPredicate:] + 89
  	14  Detox                               0x0000000115473c2d +[UIView(DetoxMatchers) dtx_findViewsInKeySceneWindowsPassingPredicate:] + 144
  	15  Detox                               0x000000011548f286 Detox.Element.(views in _14E24C92C1353FEA1FC68E698CB917EF).getter : Swift.Array<__C.NSObject> + 214
  	16  Detox                               0x000000011548f5b2 Detox.Element.(view in _14E24C92C1353FEA1FC68E698CB917EF).getter : __C.NSObject + 50
  	17  Detox                               0x0000000115490dd2 Detox.Element.isVisible(with: Swift.Optional<Swift.UInt>) throws -> Swift.Bool + 50
  	18  Detox                               0x0000000115489dfe Detox.ToBeVisibleExpectation._evaluate() -> () + 110
  	19  Detox                               0x00000001154898d7 closure #1 () -> () in Detox.Expectation.evaluate(completionHandler: (Swift.Optional<Swift.Error>) -> ()) -> () + 103
  	20  Detox                               0x0000000115484f9c reabstraction thunk helper from @callee_guaranteed () -> () to @escaping @callee_guaranteed () -> () + 12
  	21  Detox                               0x0000000115482cbe reabstraction thunk helper from @escaping @callee_guaranteed () -> () to @escaping @callee_unowned @convention(block) () -> () + 14
  	22  Detox                               0x000000011547c000 +[DTXAssertionHandler try:error:] + 47
  	23  Detox                               0x000000011548d8df function signature specialization <Arg[1] = Dead, Arg[2] = Owned To Guaranteed, Arg[3] = Owned To Guaranteed> of function signature specialization <Arg[1] = [Closure Propagated : closure #1 (Swift.Optional<Swift.Dictionary<Swift.String, Any>>, Swift.Optional<Swift.Error>) -> () in closure #2 () -> () in Detox.DetoxManager.webSocket(_: Detox.WebSocket, didReceiveAction: Swift.String, params: Swift.Dictionary<Swift.String, Any>, messageId: __C.NSNumber) -> (), Argument Types : [Detox.DetoxManager__C.NSNumber]> of static Detox.InvocationManager.invoke(dictionaryRepresentation: Swift.Dictionary<Swift.String, Any>, completionHandler: (Swift.Optional<Swift.Dictionary<Swift.String, Any>>, Swift.Optional<Swift.Error>) -> ()) -> () + 1823
  	24  Detox                               0x00000001154a74e1 partial apply forwarder for closure #2 () -> () in Detox.DetoxManager.webSocket(_: Detox.WebSocket, didReceiveAction: Swift.String, params: Swift.Dictionary<Swift.String, Any>, messageId: __C.NSNumber) -> () + 65
  	25  Detox                               0x0000000115482cbe reabstraction thunk helper from @escaping @callee_guaranteed () -> () to @escaping @callee_unowned @convention(block) () -> () + 14
  	26  DetoxSync                           0x00000001151c00c4 __36+[DTXSyncManager _tryIdleBlocksNow:]_block_invoke.128 + 184
  	27  libdispatch.dylib                   0x00007fff201148e4 _dispatch_call_block_and_release + 12
  	28  libdispatch.dylib                   0x00007fff20115b25 _dispatch_client_callout + 8
  	29  libdispatch.dylib                   0x00007fff20123043 _dispatch_main_queue_drain + 1050
  	30  libdispatch.dylib                   0x00007fff20122c1b _dispatch_main_queue_callback_4CF + 31
  	31  CoreFoundation                      0x00007fff20371ed5 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
  	32  CoreFoundation                      0x00007fff2036c6ca __CFRunLoopRun + 2761
  	33  CoreFoundation                      0x00007fff2036b704 CFRunLoopRunSpecific + 562
  	34  GraphicsServices                    0x00007fff2cba9c8e GSEventRunModal + 139
  	35  UIKitCore                           0x00007fff2509e65a -[UIApplication _run] + 928
  	36  DetoxSync                           0x00000001151bba52 __detox_sync_UIApplication_run + 362
  	37  UIKitCore                           0x00007fff250a32b5 UIApplicationMain + 101
  	38  AppName                        0x000000010fbdad08 main + 104
  	39  dyld                                0x000000011508ef21 start_sim + 10
  	40  ???                                 0x00000001245b351e 0x0 +<PHONE_NUMBER>
  )
      at Object.<anonymous> (/.../loginFlow.js:29:40)
      at Generator.next (<anonymous>)
})

Ran into the same issue today, downgrading to 13.3.1 works. Let me know if I can help by sharing any specifics!

@2ducanhpham, @danilobuerger, @RichardPetrov, @ivari, @wkoutre, @isilher, and anyone who has experienced this issue,
Please update Detox to the latest version (v19.7.0), we have fixed this issue in that version (here).

Yay @julienR2, I'm very happy to hear that 😄

Can also confirm that this fixes the problem. Thanks for the great work @asafkorem


Help needed with deployment on heroku

I had to change the github repository for some reason. I also created a new main branch as being told by heroku and pushed it. I linked the github account to heroku but deployment fails with errors. I do not understand the solution in the log "Run bundle install elsewhere ". WHERE should I run that? I have no idea how this GEMthingies work!
`-----> Building on the Heroku-18 stack
-----> Using buildpack: heroku/ruby
-----> Ruby app detected
-----> Installing bundler 2.2.16
-----> Removing BUNDLED WITH version in the Gemfile.lock
-----> Compiling Ruby/Rails
WARNING:
   Your app was upgraded to bundler 2.2.16.
   Previously you had a successful deploy with bundler 2.0.2.

   If you see problems related to the bundler version please refer to:
   https://devcenter.heroku.com/articles/bundler-version#known-upgrade-issues

-----> Using Ruby version: ruby-2.5.1
-----> Installing dependencies using bundler 2.2.16
Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 bundle install -j4
You are trying to install in deployment mode after changing
your Gemfile. Run bundle install elsewhere and add the
updated Gemfile.lock to version control.
   If this is a development machine, remove the /tmp/build_0d31ef42/Gemfile freeze
   by running ``.

   The list of sources changed

   You have added to the Gemfile:
   * source: https://github.com/activeadmin/activeadmin.git

   You have deleted from the Gemfile:
   * source: git://github.com/activeadmin/activeadmin.git
   Bundler Output: You are trying to install in deployment mode after changing
   your Gemfile. Run `bundle install` elsewhere and add the
   updated Gemfile.lock to version control.

   If this is a development machine, remove the /tmp/build_0d31ef42/Gemfile freeze
   by running ``.

   The list of sources changed

   You have added to the Gemfile:
   * source: https://github.com/activeadmin/activeadmin.git

   You have deleted from the Gemfile:
   * source: git://github.com/activeadmin/activeadmin.git

!
!     Failed to install gems via Bundler.
!
!     Push rejected, failed to compile Ruby app.
!     Push failed`

Hi! This is the old version of Dreams, and it is no longer being maintained. We have a new version now that is hosted and a lot better. You can try it out here: https://dreams.wtf/
Here is an example of it in action:
https://kiezburn.dreams.wtf/kb21

We should probably update the README with this info now that we’ve stopped maintaining.

Our new version is also open-source, but it’s a little more complicated to set up.
https://github.com/Edgeryders-Participio/multi-dreams

yes, but I have everything running! I just cannot deploy the update!

I did this now:
heroku run "bundle install"  -a schoenburn-dreams
and it succeded:
Bundle complete! 53 Gemfile dependencies, 155 gems now installed.
Gems in the groups development and test were not installed.
Bundled gems are installed into ./vendor/bundle
but still, deployment is not possible. How do I solve this gemfile thing?
You have added to the Gemfile:
source: https://github.com/activeadmin/activeadmin.git
You have deleted from the Gemfile:
source: git://github.com/activeadmin/activeadmin.git

No idea, unfortunately. We moved away from Ruby a couple of years ago, and the new version is on a more modern JavaScript stack.
ActiveAdmin is the admin backend component that was used with the old Dreams platform.
I think that it probably requires a bit of work on the code to get the old Dreams platform to work with the current versions of Ruby and Rails that are required for Heroku. My recommendation would be to rather use the new Dreams platform - either on the dreams.wtf deployment or self hosted.

ok. so I will dump it.


Implementing Schedulable interface for Opp Naming Batch.

Critical Changes
Changes

Opportunity Naming batch job can now be scheduled.

Issues Closed

Fixes #2455

@davidhabib This pull request fixes the recurring donations rollup issue, removes all cascade deletion functionality, and makes the opportunity naming batch class schedulable.

@njjc can you add the nightly rd error to the list of issues closed.  thanks.

@davidhabib thanks for the fixes, I had to create a new issue for the error fixed, #2455, to differentiate it from #2377.

@njjc This fixes #2435, correct? That's still sitting as open.

Yep, I'll close it. I think not including the issue in the release is fine because I wrote out the change in Changes.

That's fine, I was just cleaning up the Milestones for the new sprint and noticed it was still open. Thanks!


Add activity heartbeat metric

Currently there is no metric emitted related to activity heartbeat. So customers have no way to monitor it.

For example, we want to trigger an alert if a long-running activity has been inactive. We have our own metrics on the workflow level, but umonitor constrains the sustain to <120mins. An activity may take longer. Since we want to avoid false-positives, it would be better to trigger an alert with a query based on an intra-activity metric (e.g. heartbeat).
Like @mfateev said we could implement our own metric but a cadence-side solution may be re-used by other cadence users

@szimmer1  For "long running activity being inactive" you can use activity timeout metric

In latest v0.7.1, there are metrics about RecordActivityTaskHeartbeat.
Cadence will emit request count, invalid request count, err count, and latency for every service API call, including RecordActivityTaskHeartbeat from v0.7.1


[Question]

Checklist

[ x] I'm asking a question
[ x] I've looked through the README and FAQ for similar questions
[ x] I've searched the bugtracker for similar questions including closed ones

Question

WRITE QUESTION HERE
So I was trying to download the video sited in here https://github.com/blackjack4494/yt-dlc/issues/7 and while its true that youtube-dl downloads something, like @nbmrjuhneibkr said, it just downloads a test video that says it is age restricted, not the actual video
Edit: I got confused, he posted a test video and it has similar link, but the https://www.youtube.com/watch?v=7takIh1nK0s can't download
I used the cookies extension (both, the current site and all the sites option) and have the "--cookies cookies.txt" paramether and I still get the "ERROR: Video is age restricted and only playable on Youtube. Requires cookies!"
Here is my config, I have no problem with it on YT-DL so I'm guessing they all work in here too.. Its the only video I haven't been able to download
config.txt
Edit2: After trying and retrying for some time, it finally worked.. Guess it was an issue with th YT connection?

Also getting an error here with the latest release - 2020.11.11-2
Log below:
_./dlctest -v -F --cookies cooktest.txt https://www.youtube.com/watch?v=7takIh1nK0s
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'-F', u'--cookies', u'cooktest.txt', u'https://www.youtube.com/watch?v=7takIh1nK0s']
[debug] Loading archive file None
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dlc version 2020.11.11-2
[debug] Python version 2.7.16 (CPython) - Darwin-19.6.0-x86_64-i386-64bit
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] 7takIh1nK0s: Downloading webpage
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "./dlctest/main.py", line 19, in
File "./dlctest/youtube_dlc/init.py", line 487, in main
File "./dlctest/youtube_dlc/init.py", line 477, in _real_main
File "./dlctest/youtube_dlc/YoutubeDL.py", line 2104, in download
File "./dlctest/youtube_dlc/YoutubeDL.py", line 830, in extract_info
File "./dlctest/youtube_dlc/extractor/common.py", line 532, in extract
File "./dlctest/youtube_dlc/extractor/youtube.py", line 1865, in _real_extract
File "./dlctest/youtube_dlc/extractor/common.py", line 2866, in get_cookies
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/Cookie.py", line 583, in init
if input: self.load(input)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/Cookie.py", line 643, in load
for k, v in rawdata.items():
AttributeError: 'unicode' object has no attribute 'items'

Yeah it seems there is a problem with YT tonight, I got scared as I downloaded the whole Unus Annus + some concerts + some videos and while downloading the last Unus one I got error 503.. thought YT temporarily suspended my IP.. but using VPN, phone, etc doesn’t load.. and online people are saying it’s down to them too
So I’ll guess we need to try later

Also getting an error here with the latest release - 2020.11.11-2/3
Log below:
_./dlctest -v -F --cookies cooktest.txt https://www.youtube.com/watch?v=7takIh1nK0s
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'-F', u'--cookies', u'cooktest.txt', u'https://www.youtube.com/watch?v=7takIh1nK0s']
[debug] Loading archive file None
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dlc version 2020.11.11-2
[debug] Python version 2.7.16 (CPython) - Darwin-19.6.0-x86_64-i386-64bit
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] 7takIh1nK0s: Downloading webpage
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "./dlctest/main.py", line 19, in
File "./dlctest/youtube_dlc/init.py", line 487, in main
File "./dlctest/youtube_dlc/init.py", line 477, in _real_main
File "./dlctest/youtube_dlc/YoutubeDL.py", line 2104, in download
File "./dlctest/youtube_dlc/YoutubeDL.py", line 830, in extract_info
File "./dlctest/youtube_dlc/extractor/common.py", line 532, in extract
File "./dlctest/youtube_dlc/extractor/youtube.py", line 1865, in _real_extract
File "./dlctest/youtube_dlc/extractor/common.py", line 2866, in get_cookies File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/Cookie.py", line 583, in init if input: self.load(input) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/Cookie.py", line 643, in load for k, v in rawdata.items(): AttributeError: 'unicode' object has no attribute 'items'
@insaneracist could this be python version related?
This link also fails:
https://www.youtube.com/watch?v=XgnwCQzjau8

this link - https://www.youtube.com/watch?v=XgnwCQzjau8 works if you use the cookies option

Also getting an error here with the latest release - 2020.11.11-2/3
Log below:
_./dlctest -v -F --cookies cooktest.txt https://www.youtube.com/watch?v=7takIh1nK0s
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'-F', u'--cookies', u'cooktest.txt', u'https://www.youtube.com/watch?v=7takIh1nK0s']
[debug] Loading archive file None
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dlc version 2020.11.11-2
[debug] Python version 2.7.16 (CPython) - Darwin-19.6.0-x86_64-i386-64bit
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] 7takIh1nK0s: Downloading webpage
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "./dlctest/main.py", line 19, in
File "./dlctest/youtube_dlc/init.py", line 487, in main
File "./dlctest/youtube_dlc/init.py", line 477, in _real_main
File "./dlctest/youtube_dlc/YoutubeDL.py", line 2104, in download
File "./dlctest/youtube_dlc/YoutubeDL.py", line 830, in extract_info
File "./dlctest/youtube_dlc/extractor/common.py", line 532, in extract
File "./dlctest/youtube_dlc/extractor/youtube.py", line 1865, in _real_extract
File "./dlctest/youtube_dlc/extractor/common.py", line 2866, in get_cookies File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/Cookie.py", line 583, in init if input: self.load(input) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/Cookie.py", line 643, in load for k, v in rawdata.items(): AttributeError: 'unicode' object has no attribute 'items'
@insaneracist could this be python version related?
This link also fails:
https://www.youtube.com/watch?v=XgnwCQzjau8

this link - https://www.youtube.com/watch?v=XgnwCQzjau8 works if you use the cookies option.
and this link here - https://www.youtube.com/watch?v=7takIh1nK0s also works if you use the cookies option.
just make sure that you are signed in to youtube when using the cookies option.

I am logged in to YT using Chrome, immediately creating a cookie file with https://chrome.google.com/webstore/detail/get-cookiestxt/bgaddhkoddajcdgocldbbfleckgcbcid
used --rm-cache-dir and --no-cache-dir. Neither helped. Running MacOS with Python 2.7
am I doing something wrong? any advice is appreciated.
Just out of curiosity tried with --username -- password params and got ERROR: Video is age restricted and only playable on Youtube. Requires cookies! which is probably expected behavior.

retry like this >   youtube-dlc https://www.youtube.com/watch?v=7takIh1nK0s --cookies cookies.txt -f mp4   see if that works

retry like this > youtube-dlc https://www.youtube.com/watch?v=7takIh1nK0s --cookies cookies.txt -f mp4 see if that works

Nope.. it's the same crash as in my initial report.
@blackjack4494 @insaneracist
However, if I use Python 3 it works like a charm! It's definitely Python version problem on how cookies file is handled. might be again some "str" variable as it was in some playlist case, if I remember correctly. Hope someone can make it compatible with python 2.7 as may MacOS users are running it in terminal out of the box.

run sudo apt install python3-pip
install that and then run python3 -m pip install --upgrade youtube-dlc

run sudo apt install python3-pip
install that and then run python3 -m pip install --upgrade youtube-dlc

Thank for you help. Installing and using Python3 is not a problem, however, like I sad thousands of ytdlc users can be and are running 2.7 in MacOS Terminal. Making cookie functionality compatible with 2.7 will just help with future duplicate issue reports like this and will make the tool more flexible.

This line probably triggers the error
cookie_keys = self._get_cookies('https://www.youtube.com').keys()
There is seems to be a problem when using keys()


deal function compatible with aave-tokens

Component
Forge
Describe the feature you would like
It would be great to have the deal function working with the aave-tokens.
Currently, the function deal gives an error about missing storage when trying to mint aave-tokens (aWETH for example).
Here is the error I'm getting:

[FAIL. Reason: stdStorage find(StdStorage): Slot(s) not found. Counterexample: calldata=0x3c2c6ad7000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000, args=[0x0000000000000000000000000000000000000000, 1, 0]]

Additional context
No response

do you have an example that I can use to debug this?

`// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
import<EMAIL_ADDRESS>import<EMAIL_ADDRESS>contract aaveVaultTest is Test {
address aPolUsdc = 0x625E7708f30cA75bfd92586e17077590C60eb4cD;
function setUp() public {
activateFork(33424436);
vm.deal(RANDOM, 10 ether);
//give RANDOM enough to pay for gas
vm.deal(RANDOM, 10 ether);
//give random some aPolUSDC
deal(aPolUsdc, RANDOM, 10 ether);
}
}

The cause here is that aTokens don't return a static value for balanceOf, instead it's dynamically calculated. There's an issue for this in forge-std here, though no one has gotten around to adding support for rebase/dynamic-balance tokens like this


Safe Login-Data

Entered Login-Data gets lost, when the App is restarted. Would be good if they would automatically be saved on the mobile.

The Login-Data will be now stored on the local storage of the mobile device.


Not return error information

Describe the problem
In test cases of "sad path", 4xx HTTP status code (400 Bad Request & 404 Not Found) should be returned and displayed at the "Status" part. However, the current implementation doesn't display an error message (both the GUI and the CLI).
To Reproduce
Steps to reproduce the behavior:

Go to 'home page'
Enter bad data (e.g. a non-existing customer), click on 'Retrieve'
See error

Expected behavior
return the error message and display it at the "Status" part.

After switching to Flask-RESTX, this issue still exists. No error message shown in the logs or in the "Status" part of the webpage.


[ENG-729]Add SchemaBlocks in Mirage

Purpose

Summary of Changes

Add SchemaBlocks in Mirage and update the registration schema model
Side Effects
none

Feature Flags

QA Notes
none

Ticket

https://openscience.atlassian.net/browse/ENG-729
Reviewer Checklist

[ ] meets requirements
[ ] easy to understand
[ ] DRY
[ ] testable and includes test(s)
[ ] changes described in CHANGELOG.md

Refer to this PR:
https://github.com/CenterForOpenScience/ember-osf-web/pull/738


Fix 'm' array length

Hi Jim, this is not a fake PR, I think it actually solve a problem, but I mostly wanted to ask what you wanted to do with this fork!
We already have our own fork where I fixed some things, notably the damn wa array length. Because noshu don't answer much and can't even merge a one-line PR, we were thinking of renaming the project and creating our own crate with it. However, I found your fork and:

you're a better Rust programmer than me (and noshu I guess). Your version is more "rustic", err, idiomatic.
you already fixed more things than I fixed.

so I believe the Rust community would be happy to have your version in a crate, with a maintainer that actually answer. Do you have an opinion on that subject? :)
As for the PR... I'm pretty sure wa should be created only when we know the final value of m. This is what SciPy does. I also used their array length because I believe they are probably right because they are tested by thousands of users.
scipy   (2 * m * n) + 5 * n + 11 * m * m +  8 * m
jturner (2 * m + 5)     * n + 12 * m * m + 12 * m

Hi Nil! Thanks for the PR; you're right about the length of wa.
I've been meaning to clean up the rustimization code some more and submit it under a different name to crates.io (or ask noshu for ownership of the existing crate); I just haven't gotten around to it yet. (I cleaned up rustimization to a point where it was good enough for my needs and stopped there.) Now that I know someone else is interested, I have more motivation to work on it. :)
If you create your own fork, I'll be happy to contribute to it, or I can create the fork myself; either way is fine with me. If you create your own fork, please let me know. Otherwise, I'll take some time the next couple of days to work on cleaning up rustimization some more, and if I get it to a state where I'm satisfied, I'll publish it to crates.io. I'll keep you updated, and I'm happy to accept more PRs. :)
By the way, it's kind of a funny story for why I changed the length of wa to that value. In noshu's initial version of rustimization, the length was 2 * 5 * len + 11 * 5 * 5 + 5 * len + 8 * 5 (which corresponds to m = 5). I changed m to the scipy.optimize.fmin_l_bfgs_b default of 10 without realizing I needed to also increase the length of the wa allocation. Anyway, this caused the lbfgsb routine to trample over my program's memory, but it only trampled some of the elements in some of my arrays. (It didn't cause a segfault or anything.) It took forever to track down the cause to lbfgsb because I assumed that my calculations were wrong. When I looked at the Fortran code, I saw that the docs for setulb say that wa should be (2 * m + 5) * n + 12 * m * m + 12 * m, not 2 * 5 * len + 11 * 5 * 5 + 5 * len + 8 * 5, so I changed the allocation to use that value, and that fixed the issue. Later on, I looked at the SciPy source to double-check and saw that SciPy uses (2 * m * n) + 5 * n + 11 * m * m +  8 * m. Initially, I thought that SciPy was wrong, and I was going to submit a PR, until I noticed that the Fortran code is actually a new version with lower memory requirements. I didn't get around to fixing my code since (2 * m + 5) * n + 12 * m * m + 12 * m is strictly larger than (2 * m * n) + 5 * n + 11 * m * m +  8 * m, so I knew that it wouldn't cause any more memory-safety issues. Thanks for fixing it for me!


Python script suddenly closes

Hi!
I'm quite noob when it comes to programming, so take it into consideration
I just tried to run the unlock.py script, i entered my IMEI and everything was going well, it asked me to press enter to start running the script (at this point, the mobile had already rebooted into fastboot mode), it appeared a command line saying that it was at 10% of progress and suddenly it closed without doing nothing.
I just don't know if it is normal or not, but i'm sure that it hasn't happened nothing.
Any help would be appreciated :)

Seems to be similar to #13
Go ahead and tell me everything so I can actually do something.

Ok,
first of all, thanks for your quick answer and effort.
On my mobile, debug mode and OEM unlock are both activated, I run the unlock.py python script once the mobile has been connected via USB to the PC, it asks me for my mobile's IMEI, I type it, and then you just press enter. At this point, a message like the one in the screenshot appears, it sounds like a disconnecting usb sound on the PC, the mobile reboots into fastboot mode and the python screen closes after some seconds.
Hope you can help me.

What python version and where did you download python from? Check if #8 is the case.


Resolve deployment to staging following project rename

Related to #98
As you might expect, renaming the entire project is pretty disruptive.
I've managed to migrate the entire chartpress workflow, but I don't have the skills to know whether renaming unnamed to frx-challenges in the various helm charts worked (see https://github.com/2i2c-org/frx-challenges/pull/148).
When doing a local deployment to staging using https://github.com/2i2c-org/segmentation-challenge-deploy/pull/42 as the source, I run into the following error
> python3 deployer.py app --namespace=staging
Fetching cluster endpoint and auth data.
kubeconfig entry generated for openorganelle.
Running helm upgrade --install --create-namespace --wait --namespace=staging staging /Users/jnywong/Documents/github/segmentation-challenge-deploy/helm-charts/app --values=/Users/jnywong/Documents/github/segmentation-chall
enge-deploy/helm-charts/app/common.values.yaml --values=/Users/jnywong/Documents/github/segmentation-challenge-deploy/helm-charts/app/staging/staging.values.yaml --values=/var/folders/cf/9rjbnz9s2t73k23s1r0j2ds40000gn/T/tmp689mtcs7
Error: UPGRADE FAILED: failed to create resource: admission webhook "validate.nginx.ingress.kubernetes.io" denied the request: host "staging.cellmapchallenge.2i2c.cloud" and path "/" is already defined in ingress staging/staging-unnamed

Because renaming a helm chart is a fairly intrusive operation (all the resource names have the chart name in thtem by default, for example (something I hate, but I digress)), the easiest way to do this is to undeploy the old release and deploy anew. But because we have data on disk, this is actually destructive to that data.
So we have to:

Copy the data locally
Undeploy the old helm release
Deploy new one

Let me try to do this and livestream it for posterity.

Done!


Update Page to Match Solution

Hello Team,
As the AD Assessment solution seems to have been updated with two additional focus areas (Operations & Monitoring and Change & Configuration Management), could we get an update to this page to include the descriptions for the two additional focus areas?
Many thanks!

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

 The feedback has been shared with the content owner for further review. Thanks for your patience.

@ROSMITHJ-MSFT - Created a work item and will address when time permits.  Thanks.  #please-close


CXXCBC-303: build jsonsl with the library

At this stage, we rather own jsonsl implementation, and it would be easier to compile and maintain it as a part of the main source set.
The changes in the library is just result of tidy and formatter scripts, nothing really changed in the library except the build process

I think I'd rather defer this change for later


Radius size on map changes with zoom

If I zoom in on the map, then decide to change the radius size of the points, even the smallest setting results in very large points, and then after that if I move the map or change the zoom, the nodes change to tiny dots.
Setting node radius:

After moving the map:

Thanks for reporting this. It will be resolved by the transition from 0.1.11 to 0.2.0.


attempt to fix nfd build, update buildx actions, etc

Signed-off-by: Nick M<EMAIL_ADDRESS>Description
This is an attempt to fix the node-feature-discovery workflow.

Updated Docker BuildX action to use the official Docker version
updated the build commands to reflect the current build process for NFD

Ok - built and tested on my arm64 cluster. New GRPC checks all work.
NAME                                             READY   STATUS    RESTARTS   AGE
node-feature-discovery-master-7fd848b878-dhm8d   1/1     Running   0          84s
node-feature-discovery-worker-82tlc              1/1     Running   0          74s
node-feature-discovery-worker-hcjc6              1/1     Running   0          61s
node-feature-discovery-worker-hssg4              1/1     Running   0          82s
node-feature-discovery-worker-r5t64              1/1     Running   0          46s


Background/Foreground notification not working on IOS

Hi @evollu, Im having an issue integrating this on IOS. on Android it works pretty fine.
I am sure that i followed all the steps correctly including installing the firebase package through cocoapods. I have also setup my firebase app properly and uploaded the apn p.8 and key. I have really don't have any idea what i've missed. my app boots fine and it also registers the device and gets the device token. when i tried to send a message using the firebase console message compose and the message was sent successfully but im not getting any notification at all both background and foreground.
If you guys have any idea what to do please kindly push a comment below :)
I am using RN version 0.42 and react-native-fcm 7.0.3
I have tested it on iphone devices running IOS8+

can you try the example solution and see if you can receive remote notif?

Even I am facing the similar issue

Until now I was only able to have notifications on iOS by uploading APN p.12, not p.8

I have the same issue
I've uploaded APN p.12
but still not working

Can you guys try the native sample app provided by firebase to make sure all configurations are correct?

@sarahmarciano I basically did it by following this tutorial https://www.youtube.com/watch?v=XxKdVjYRjI8
it explains very well the part of certificates
the part where he has an error with the import in Appdelegate.me is because he didn't do react-native link

so I finally did it by uploading APN p.8 and this worked
I followed this tutorial https://www.youtube.com/watch?v=HRocERqesHA
if this can help someone
(there is 3 parts but this is the important one)


Add description to the repo

When I'm opening repository page I see a message "No description or website provided." I think that it should be easy to add a description.

@php-coder @hhorak @bparees Does any other RHSCL/OpenShift Docker image repository contain similar information?

@omron93 no, i think they would all need to be updated if we're going to do this.

And what kind of description could be there?

I think a sentence from beginning of the README.md would be sufficient: "Dockerfiles for MongoDB images for OpenShift. Users can choose between RHEL and CentOS based images." There is also possibility to add URL to the project there, do we want to promote some? (maybe some RH containers entry page?)

Added description similar to Mariadb contaiener.
"Dockerfiles for MongoDB images for OpenShift and general usage. Users can choose between RHEL and CentOS based images." and URL "https://softwarecollections.org"