feat(bulk-import): add import source

Hey, I just made a Pull Request!

Adds field source to GET /imports endpoint indicating from which Catalog source the import came from (config, location, other). In case of duplicates, the first source is taken (in the order of config, location, other), since there is no way of knowing if entity returned from locations endpoint and from entities endpoint is a duplicate or only a location entity.
This is needed so UI is able to show correct dialog when deleting bulk-import entities.
(Backstage in unregister shows dialog for location entity, even if it is a duplicate for e.g. config. Then after unregistration of this entity, it will show again 'This entity does not seem to originate from a registered location.')
Fixes
RHIDP-3931
How to test

You can add in app-config.yaml locations accessible from GH integrations e.g.:

catalog:
  locations:
    - type: url
      target: https://github.com/.../catalog-info.yaml

Add GH Discovery plugin to backend workspace and configurate it, for example:

catalog:
  providers:
    github:
      myorg:
        organization: ${GH_ORG}'
        schedule:
          frequency: { minutes: 30 }
          timeout: { minutes: 3 }

Add some location manually via Create... -> Register Existing Component

Example request/response:
Request:

http -A bearer -a "${ADMIN_CURL_TOKEN}" \
      GET http://localhost:7007/api/bulk-import/imports \
      page==1 size==3

Response:
[
    {
        "approvalTool": "GIT",
        "id": "https://github.com/dzemanov/example",
        "lastUpdate": "2024-11-19T07:37:01Z",
        "repository": {
            "defaultBranch": "main",
            "id": "dzemanov/example",
            "name": "example",
            "organization": "dzemanov",
            "url": "https://github.com/dzemanov/example"
        },
        "source": "location",
        "status": "ADDED"
    },
    {
        "approvalTool": "GIT",
        "id": "https://github.com/dzemanov/hello-world",
        "lastUpdate": "2024-11-19T06:54:29Z",
        "repository": {
            "defaultBranch": "master",
            "id": "dzemanov/hello-world",
            "name": "hello-world",
            "organization": "dzemanov",
            "url": "https://github.com/dzemanov/hello-world"
        },
        "source": "config",
        "status": "ADDED"
    },
    {
        "approvalTool": "GIT",
        "id": "https://github.com/dzemanov-org/test",
        "lastUpdate": "2024-10-31T18:40:10Z",
        "repository": {
            "defaultBranch": "main",
            "id": "dzemanov-org/test",
            "name": "test",
            "organization": "dzemanov-org",
            "url": "https://github.com/dzemanov-org/test"
        },
        "source": "other",
        "status": "ADDED"
    }
]

:heavy_check_mark: Checklist

[X] A changeset describing the change and affected packages. (more info)
[ ] Added or Updated documentation
[ ] Tests for new functionality and regression tests for bug fixes
[ ] Screenshots attached (for UI changes)

/cc @ciiay

@ciiay I have added external provider - GH Discovery plugin:
yarn workspace backend add @backstage/plugin-catalog-backend-module-github.
And configured it via:
catalog:
  providers:
    github:
      myorg:
        organization: ${GH_ORG}'
        schedule:
          frequency: { minutes: 30 }
          timeout: { minutes: 3 }

@dzemanov thanks for the reply. Is this GH Discovery plugin the only way considered source value of other, or there are other ways to add a repository other than via GH Discovery plugin that is other case? I'm asking because @ShiranHi is considering to use "This repository added to the app-config file. To remove it modify the file directly" as a informative message to disable the deletion to repositories that are added via sources other than "location", and we want to make sure this wording covers both "config" and "other". Or we can mention like "This repository is added via app-config file", does this cover both config and other cases? Any suggestions?


Make timeout keyword arguments mandatory

The gerbil-ethereum portion of the fix for https://github.com/Glow-Lang/glow/issues/413, which makes the timeout: keyword argument mandatory in &check-timeout! and &define-check-participant-or-timeout.
This PR goes with https://github.com/Glow-Lang/glow/pull/416

The tests won't pass on https://github.com/Glow-Lang/glow/pull/416 unless some version of this is merged at the same time. However, if that's a concern, I can make the keyword argument optional again, so that it's compatible with both the old and new versions. I believe it should be made mandatory, but making it optional will allow a three-phase merge where it passes on every phase. I can do that.


CI- build webui

Today we need to build the webui locally and check in dist dir.
I think it would be good to have gh action build webui prior to building the binary.
It would also be nice to add some sort of tests here as a final step

I think we will wait with this - it is working fairly well to do checked in dist for now


csharp/switch to central build and package mgmt

[x] I own the full rights to my contribution, and agree to release it under the terms of the Creative Commons Zero Public Domain Dedication

oops, this PR was to wrong repo


Corrected Syntax For Android Register With Tags

Each tag should be a separate parameter since they are varargs in the library. Also, , is an invalid tag character.

Hi @cogree, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no contribution license agreement is required at this point. Real humans will now evaluate your PR.

TTYL, AZPRBOT;

@cogree : Thanks for your contribution to the Azure documentation! The author, @wesmc7777, has been notified to review your proposed change.

You are correct. Thank you

#sign-off

@tysonn please merge this PR


TAS: cleanup Job e2e tests

What type of PR is this?
/kind cleanup
What this PR does / why we need it:
To align with the e2e test for Jobset in https://github.com/kubernetes-sigs/kueue/pull/3591
Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?

NONE

Thank you
/lgtm


Vivado timing check is not done for Arty

If I build for Arty, like this:
make PLATFORM=common_soc TARGET=digilent_arty bitstream

the timing check for Vivado is not done. Timing failures are ignored. I really want them to be reported instead.
The Makefiles do the timing check when USE_VIVADO is defined. The problem is that Litex will use Vivado by default for Arty (and other boards using Xilinx parts I guess), even though USE_VIVADO is not explicitly defined. The timing check is needed in those cases too.
This is only a problem for Vivado. For nextpnr, timing failures are indicated with a non-zero exit status. For Radiant, Litex checks the logs itself. It's only Vivado where we have to check the logs ourselves in the Makefile.

This sounds like LiteX should be checking the logs rather than doing it ourselves?

It's strange @danc86 , this was the first timing check that I added  (just a grep of the Vivado build log), and I haven't disabled it as far as I know.   Let me poke around.
Yes, we noticed earlier that LiteX is inconsistent in this way -- some build backends have the check, others don't.

Please make LiteX consistent rather then working around it.

https://github.com/google/CFU-Playground/blob/main/soc/common_soc.mk#L79-L92
I suspect that now the timing check is performed only if you explicitly set "USE_VIVADO", but it isn't performed if you use Vivado as the default.
Yes, the Makefile ifdef logic is quite bug-prone.

Right, as a workaround while I'm developing hps_accel I am now running this, to get the timing check:
make PLATFORM=common_soc TARGET=digilent_arty USE_VIVADO=1 software

Please make LiteX consistent rather then working around it.

:+1:


Any reason for adding Microsoft.Maui.Controls dependency?

Describe the bug
Adding Microsoft.Maui.Controls and its friend causes conflicts with Android package in net8 for Android projects.
See:
https://github.com/Alex-Dobrynin/Controls.UserDialogs.Maui/blob/master/Controls.UserDialogs.Maui/Controls.UserDialogs.Maui.csproj#L34-L37
Also, these changes were made in a commit named "Increase version," which raises doubts.
Did you found a workaround?
Using older version

these were added to support older version of maui if someone don't want to update version of maui in their projects. if don't do this the version of maui will be 8.0.6 required for this library, because i have 8.0.6 MAUI workload installed on my machine (under the hood it will use installed version if not specify explicitly).
About naming of commits: this is not information for you, this is information for me.
Hope I've answered on your question.
Also, if you want to prove smth, please provide the repro project with conflicts. if not, I will close this issue

@Alex-Dobrynin thanks for the reply.
It is easy to reproduce, steps: create a net8 mobile app, create android project within it, add userdialogs.maui and use Android.Views.View. You will get this:

'View' is an ambiguous reference between 'Microsoft.Maui.Controls.View' and 'Android.Views.View'

Although it can be fixed by specifying the full component path, it is still a compilation error, and thus a breaking change in the library you are distributing.
Regarding your case about supporting older versions. I believe there shouldn't be any issues as the final application will decide whether to add this dependency and which version to use.
Version 1.5.2 works for me, so I'm using it as a workaround.

Have you tried Sample project from this repo? is there the same?

It is easy to reproduce, steps: create a net8 mobile app, create android project within it, add userdialogs.maui and use Android.Views.View.

please provide the test project (.zip). I don't have time playing with this.
You can try Sample project from this repo and tell me if there is the same behavior as you describe. if not, you should look into your project and find where you did wrong


[BEAM-8201] Cleanup other FnServices from DockerEnvironmentFactory

All endpoints are passed through the provisioning endpoint and the old
references can be removed as they are unused.

I noticed the extra endpoints are still passed in ProcessEnvironmentFactory. Can we remove them there as well?https://github.com/apache/beam/blob/2c3eb1b7f1f8f3adf26f7c01ef77ee98e32e81aa/runners/java-fn-execution/src/main/java/org/apache/beam/runners/fnexecution/environment/ProcessEnvironmentFactory.java#L118-L121

Updated.


[AutoPR] logic/resource-manager

Created to accumulate context: logic/resource-manager

(message created by the CI based on PR content)

Codecov Report

Merging #2782 into master will increase coverage by 0.47%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #2782      +/-   ##
==========================================
+ Coverage   56.01%   56.49%   +0.47%
==========================================
  Files        7365     7559     +194
  Lines      154340   160704    +6364
==========================================
+ Hits        86459    90783    +4324
- Misses      67881    69921    +2040

Impacted Files
Coverage Δ

...azure/mgmt/logic/operations/sessions_operations.py
20.43% <ø> (ø)
:arrow_up:

...gic/azure/mgmt/logic/operations/maps_operations.py
19.13% <ø> (ø)
:arrow_up:

...perations/workflow_trigger_histories_operations.py
25% <ø> (ø)
:arrow_up:

...ogic/operations/workflow_run_actions_operations.py
22.78% <ø> (ø)
:arrow_up:

...ure/mgmt/logic/operations/agreements_operations.py
19.13% <ø> (ø)
:arrow_up:

.../azure/mgmt/logic/operations/schemas_operations.py
19.13% <ø> (ø)
:arrow_up:

.../mgmt/logic/operations/workflow_runs_operations.py
25% <ø> (ø)
:arrow_up:

...zure/mgmt/logic/operations/workflows_operations.py
20.6% <ø> (ø)
:arrow_up:

...azure/mgmt/logic/operations/partners_operations.py
19.13% <ø> (ø)
:arrow_up:

azure-mgmt-logic/azure/mgmt/logic/version.py
100% <100%> (ø)
:arrow_up:

... and 387 more

Continue to review full report at Codecov.

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


Change name of NoopMembershipManager

What changes are proposed in this pull request?
Change name of NoopMembershipManager to MasterMembershipManager.
Why are the changes needed?
N/A
Does this PR introduce any user facing changes?
N/A

don't we need to change the enum ?

thanks for catching, fixed

alluxio-bot, merge this please.


Flaky test: iroh-gossip net::test::gossip_net_smoke

https://github.com/n0-computer/iroh/actions/runs/7638667215/job/20810051355

I just had a look.
The failure is:
thread 'net::test::gossip_net_smoke' panicked at iroh-gossip/src/net.rs:817:18:
called `Result::unwrap()` on an `Err` value: aborted by peer: the application or application protocol caused the connection to be closed during the handshake

https://github.com/n0-computer/iroh/blob/main/iroh-gossip/src/net.rs#L817
This seems to be related to shutdown logic.
The error is the result of unwrapping the endpoint loop tasks, which look like this:
https://github.com/n0-computer/iroh/blob/main/iroh-gossip/src/net.rs#L675
loop {
            tokio::select! {
                biased;
                _ = cancel.cancelled() => break,
                conn = endpoint.accept() => match conn {
                    None => break,
                    Some(conn) => gossip.handle_connection(conn.await?).await?
                }
            }
        }

The error message is prose for a quinn APPLICATION_ERROR. The only place where this is used in quinn is here:
https://github.com/quinn-rs/quinn/blob/597b10b2d5758198fe433e4aab492a0daae36551/quinn-proto/src/connection/mod.rs#L775
If I read it correctly, a ConnectionClose frame with this APPLICATION_ERROR code is sent whenever closing a connection without a reason. So this seems fine? Not sure why this never showed up so far.


Numbers with 4 digits

In our project we try to get numbers(int and float) with 4 optional digits.
We used setNumberFormat with the String "0.####". The result is shown in the picture (Excel using german).

Is there a way to use setNumberFormat to get integers without the comma?

Dear @PMime
Can you show me some code for testing?

With an excel viewer, i have the same problem.
With Openoffcie 4.1.7 (german settings) there is no problem.
It seems to be a problem with the system language settings and the decimal separator.

With an excel viewer, i have the same problem.
With Openoffcie 4.1.7 (german settings) there is no problem.
It seems to be a problem with the system language settings and the decimal separator.
If i understand the openxml, there is is no chance to have a solution without a vba macro.

Dear @GitterRalf
If you have any code that you have tested, please post it.
We will be able to start debugging and help you.

With an excel viewer, i have the same problem.
With Openoffcie 4.1.7 (german settings) there is no problem.
It seems to be a problem with the system language settings and the decimal separator.
If i understand the openxml, there is is no chance to have a solution without a vba macro.

Dear @GitterRalf
If you have any code that you have tested, please post it.
We will be able to start debugging and help you.

I simply added "0.####" to numberformat.xlsx:
//Custom number formats
QStringList numFormats;
numFormats
	<< "Qt #"
	<< "yyyy-mmm-dd"
	<< "$ #,##0.00"
	<< "[red]0.00"
	<< "0.####";

In my opinion, it seems to be different depending on local notation, not error.

Numeric formatting, In ECMA376

Picture Item
Description

.
Indicates the radix-point position. [Example: In a US-English context, =95.4 # $###.00 displays "$ 95.40. end example] The radix-point character displayed is locale-specific.

,
Separates groups of three digits. [Example: In a US-English context, =2456800 # $#,###,### displays "2,456,800". end example] The separator character displayed is locale-specific.


map powder snow & related stuff

haha FluidDrainable and FluidPlaceable

welp i guess i cant read, haykam already did the exact same thing in #1865


Empty record data on chrome but it works in firefox

i ran your audio-video.html of examples. but it didnt work in chrome.work fine in firework.
in chrome,it shows

var player = videojs("myVideo",
{
controls: true,
width: 320,
height: 240,
plugins: {
record: {
audio: true,
video: true,
maxLength: 10,
debug: true
}
}
});

// error handling
player.on('deviceError', function()
{
console.log('device error:', player.deviceErrorCode);
});
player.on('error', function(error)
{
console.log('error:', error);
});

// user clicked the record button and started recording
player.on('startRecord', function()
{
console.log('started recording!');
});

// user completed recording and stream is available
player.on('finishRecord', function()
{
// the blob object contains the recorded data that
// can be downloaded by the user, stored on server etc.
console.log('finished recording: ', player.recordedData);

});

i didnt change js but i changed js url
my chrome 57.0.2987.110 (64-bit)
video.js 5.19.0
Latest version of RecordRTC.js and videojs-record
sorry
i  closed the last issues because of my carelessness so i open another issue about the same problem

that's strange, although I haven't tested with video.js 5.19.0 yet. @liufitch can you reproduce this with older video.js versions?

i know why. because i used http not https. it  says " getUserMedia() no longer works on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details.
device error: DOMException: Only secure origins are allowed (see: https://goo.gl/Y0ZkNV)."

Thx


showdown not defined in demo-materialize

After updating the bridge in demo-materialize I tried to circumvent the recent problems with aurelia-polyfills by downgrading to<EMAIL_ADDRESS>After that I encountered errors with <au-markdown>:
ReferenceError: showdown is not defined
and another I can't seem to reproduce right now, telling me something about 'Extension "prettify" could not be loaded. It was either not found or is not a valid extension.
I'm sure I've seen that before but tbh I can't recall it.

That is easy to address as you have even two solutions:

Add markdown module which is being  used to render the .md files defining the texts in Code View panel tabs. @JeroenVinke removed that at some point from KendoUI catalog app but I believe that you have not switched to current catalog infrastructure.

Upgrade your catalog app to the current KendoUI catalog

I'll try that tomorrow since jspm keeps throwing timeouts again.
But isn't that strange? I didn't remove anything since last week when it still worked. Right, I may not use the latest infrastructure but I also can't remember having changed it. :smile:
We'll see tomorrow.

After updating jspm again (and thus pulling the fixed polyfills version) it works again.
I had to reactivate babel runtime which I don't need to do locally.
I'm also getting a lot of warnings:
Warning: a promise was created in a handler but was not returned from it


Fix dependencies errors with latest Python version

This PR fixes some dependencies issues I found while using this project during the ETHGlobal Brussels 2024 hackathon.
It includes the switch to pynacl made in #19, along with the addition of aiohttp as an explicit dependency.
cc @gagdiez

What is the reason to move to nacl

What is the reason to move to nacl

As explained in #19, ed25519 isn't maintained anymore, and causing errors when installing py-near with recent versions of Python.
The creator of this PR had to make a fork since it wasn't merged for months, and I had to make another fork based on it to be able to install it to build https://github.com/RezaRahemtola/near-ai-assistant during a hackathon


Fix canvas light shaders on GLES2

Canvas shaders usiing light() wouldn't compile on GLES2 because there was no LIGHT_SHADER_CODE tag in canvas.glsl

Thanks!


After waking up from a campfire, the Outer Wilds Ventures no longer loads back in and you can only see Timber Hearth's atmosphere.

Time stamp: 12:11
Video: https://youtu.be/A0c84tr4NyI

Caused by opening pause menu during sleep


Add version check service

Description
Adds upgrade notification functionality.
Fixes https://github.com/tripleblindmarket/covid-safe-paths/issues/652, https://github.com/tripleblindmarket/covid-safe-paths/issues/40
Currently, version checker relies on static version file
It makes fetch requests as soon as a user opens the app and then every hour in the background. If the app's current version (from package.json) is less than version specified in json file, a simple alert will appear with an ability to delay the upgrade:

If the app's current version (from package.json) is less than mandatory_version specified in json file, alert without the ability to delay + push notification will appear:

The above is useful for critical updates.
TODO:

[ ] Add translations for new texts: Push title, message, alert label, sublabel, later and update buttons
[x] Add correct links to AppStore and Playstore
[x] Change location of versions.json file, or switch to other solution (need to discuss)
[x] Fix typo in Application is outdate :)

How to test
Change your package.json to

1.0.0 to see no notifications
0.9.4 to see only gentle alert
0.9.1 for mandatory update

Will update link to yaml file after https://github.com/tripleblindmarket/covid-safe-paths/pull/658 is merged


Text fixes in main yml files and ubiquity_installer.conf file

Only text alignments per ticket UB-359

This change is

Reviewed 4 of 4 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable


Use go install instead of go get to build and install binaries

This PR fixes #6661 by changing all of our usages of go get with go install.

Which Traffic Control components are affected by this PR?

Traffic Monitor - integration tests
CDN in a Box
test/fakeOrigin

What is the best way to verify this PR?

Build the TM Integration Tests
Build the unit tests from tools/golang
Build CDN in a Box with debugging:

docker-compose -f docker-compose.yml -f optional/docker-compose.debugging.yml build --parallel

PR submission checklist

[x] This PR has tests
[ ] This PR has documentation
[ ] This PR has a CHANGELOG.md entry
[x] This PR DOES NOT FIX A SERIOUS SECURITY VULNERABILITY (see the Apache Software Foundation's security guidelines for details)

LGTM. TM integrations tests, TO unit tests, and CDN in a Box with debugging all build successfully with no issues.

thanks for jumping on this @zrhoffman @ericholguin


#1921 Version check before creating auto-init flag file

Added check for source code version before creating file for auto-init, if terraform source is changed - create auto init file
Example runs:
Local dependency(https://github.com/Ic3w0lf/terragrunt-test/tree/main/auto-init-issue/accounts/prod/vpc):
$ terragrunt plan
Initializing the backend...

Initializing provider plugins...
- Reusing previous version of hashicorp/local from the dependency lock file
- Installing hashicorp/local v2.1.0...
- Installed hashicorp/local v2.1.0 (signed by HashiCorp)

Terraform has been successfully initialized!
...

$ terragrunt plan
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create

Changing terraform source path(https://github.com/denis256/terragrunt-tests/tree/master/terragrunt-init)
$ terragrunt plan
Initializing the backend...

Initializing provider plugins...
- Reusing previous version of hashicorp/local from the dependency lock file
- Using previously-installed hashicorp/local v2.1.0

Terraform has been successfully initialized!
...
$ terragrunt plan
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create

Change terraform source:
$ terragrunt plan
Initializing the backend...

Initializing provider plugins...
- Reusing previous version of hashicorp/local from the dependency lock file
- Using previously-installed hashicorp/local v2.1.0

Terraform has been successfully initialized!

$ terragrunt plan
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create

Fixes: https://github.com/gruntwork-io/terragrunt/issues/1921

Sorry for the delay getting this reviewed. Plan is to review this week (today hopefuly).

@denis256 Can you please update this PR to resolve conflicts?

@rhoboat yup, synchronized with master branch

This again LGTM! With the added context of #1901 I understand a bit better why it was failing before. Go ahead and merge and release!


[tool_crash] FileSystemException: Cannot create file, OS Error: The file or directory is corrupted and unreadable., errno = 1392

Command
flutter --quiet assemble --no-version-check --depfile D:\food_delivery_app\build\app\intermediates\flutter\debug/flutter_build.d --output D:\food_delivery_app\build\app\intermediates\flutter\debug -dTargetFile=D:\food_delivery_app\lib\main.dart -dTargetPlatform=android -dBuildMode=debug -dTrackWidgetCreation=true --DartDefines=Zmx1dHRlci5pbnNwZWN0b3Iuc3RydWN0dXJlZEVycm9ycz10cnVl,RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ== debug_android_application

Steps to Reproduce

...
...
...

Logs
FileSystemException: Cannot create file, OS Error: The file or directory is corrupted and unreadable.
, errno = 1392
#0      _File.throwIfError (dart:io/file_impl.dart:635:7)
#1      _File.createSync (dart:io/file_impl.dart:273:5)
#2      ForwardingFile.createSync (package:file/src/forwarding/forwarding_file.dart:23:16)
#3      ErrorHandlingFile.createSync.<anonymous closure> (package:flutter_tools/src/base/error_handling_io.dart:286:22)
#4      _runSync (package:flutter_tools/src/base/error_handling_io.dart:597:14)
#5      ErrorHandlingFile.createSync (package:flutter_tools/src/base/error_handling_io.dart:285:5)
#6      FileStore.persist (package:flutter_tools/src/build_system/file_store.dart:155:18)
#7      FlutterBuildSystem.build (package:flutter_tools/src/build_system/build_system.dart:606:17)
<asynchronous suspension>
#8      AssembleCommand.runCommand (package:flutter_tools/src/commands/assemble.dart:314:32)
<asynchronous suspension>
#9      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1125:27)
<asynchronous suspension>
#10     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#11     CommandRunner.runCommand (package:args/command_runner.dart:209:13)
<asynchronous suspension>
#12     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:288:9)
<asynchronous suspension>
#13     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#14     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:236:5)
<asynchronous suspension>
#15     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
<asynchronous suspension>

[✓] Flutter (Channel stable, 2.5.3, on Microsoft Windows [Version 10.0.19041.1288], locale en-PK)
    • Flutter version 2.5.3 at D:\All Data\Softwares\Latest Flutter\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 18116933e7 (4 weeks ago), 2021-10-15 10:46:35 -0700
    • Engine revision d3ea636dc5
    • Dart version 2.14.4

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at C:\Users\Bilal Saeed\AppData\Local\Android\sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: C:\Program Files\Android\Android Studio1\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[✓] Android Studio (version 2020.3)
    • Android Studio at C:\Program Files\Android\Android Studio1
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[✓] Connected device (3 available)
    • Infinix X656 (mobile) • 052932507A001352 • android-arm64  • Android 10 (API 29)
    • Chrome (web)          • chrome           • web-javascript • Google Chrome 95.0.4638.69
    • Edge (web)            • edge             • web-javascript • Microsoft Edge 94.0.992.50

• No issues found!

Flutter Application Metadata
Type: app
Version: 1.0.0+1
Material: true
Android X: false
Module: false
Plugin: false
Android package: null
iOS bundle identifier: null
Creation channel: stable
Creation framework version: e6b34c2b5c96bb95325269a29a84e83ed8909b5f
Plugins
cloud_firestore-2.5.4
cloud_firestore_web-2.4.4
cloud_functions-3.0.5
cloud_functions_web-4.0.14
connectivity-3.0.6
connectivity_for_web-0.4.0+1
connectivity_macos-0.2.1+2
device_info-2.0.3
firebase_analytics-8.3.4
firebase_analytics_web-0.3.0+1
firebase_app_check-0.0.2+3
firebase_app_check_web-0.0.1+7
firebase_auth-3.1.4
firebase_auth_web-3.1.3
firebase_core-1.8.0
firebase_core_web-1.1.0
firebase_crashlytics-2.2.4
firebase_messaging-10.0.9
firebase_messaging_web-2.0.7
firebase_storage-10.0.6
firebase_storage_web-3.0.4
flutter_local_notifications-9.0.2
flutter_plugin_android_lifecycle-2.0.4
fluttertoast-8.0.8
geocoding-2.0.1
geolocator-7.7.1
geolocator_android-2.1.0
geolocator_apple-1.2.2
geolocator_web-2.0.6
google_maps_flutter-2.1.0
google_sign_in-5.2.1
google_sign_in_web-0.10.0+3
image_picker-0.8.4+4
image_picker_for_web-2.1.4
maps_launcher-2.0.1
package_info-2.0.2
path_provider-2.0.6
path_provider_linux-2.1.0
path_provider_macos-2.0.2
path_provider_windows-2.0.3
share-2.0.4
shared_preferences-2.0.8
shared_preferences_linux-2.0.2
shared_preferences_macos-2.0.2
shared_preferences_web-2.0.2
shared_preferences_windows-2.0.2
sqflite-2.0.0+4
url_launcher-6.0.12
url_launcher_linux-2.0.2
url_launcher_macos-2.0.2
url_launcher_web-2.0.4
url_launcher_windows-2.0.2
video_player-2.2.6
video_player_web-2.0.4

Hi @bilalsaeedjh, Thanks for filing the issue. Can you please verify if this file package_config.json exists
at
D:\All Data\Softwares\Latest Flutter\flutter\packages\flutter_tools\.dart_tool\package_config.json

as mentioned in this comment https://github.com/flutter/flutter/issues/80010#issuecomment-819978379

Yes it was already there. But I have solved it now. This error was being caused because flutter clean wasn't deleting .dart-tool folder. So I copied all files except .dart-tool and build folder and re-run the project and it started to work fine. Going to close this issue.


Peer deps not optional

When using the FormBuilder create-react-app CLI says failed to load module ./node_modules/@jeremyling/react-material-ui-rich-text-editor. After installing the dependency it asks for react-player.
To my understanding those should be optional if not used?

Thanks for highlighting this. I believe the issue is due to CRA using webpack to compile and for some reason the unused component is not being tree-shaken.
That said, I've always felt like the react-player library does not belong within this module as it doesn't explicitly aim to conform to material design. I've removed the display-media component from v1.2.0 and going forward, do not intend to use react-player in this library.
If a media component is required (and it very rarely is), it's still easily injected as a custom component and the developer is free to choose between react-player or any other media player.

As a workaround for now, you could install any optional peer dependencies as a dev dependency. When building the project, webpack will tree shake to remove the unused modules and it should work. Your production build will not require the optional dependencies.


yarn doesn't respect yarnWorkDir

I have all js code in src/main/web and both package.json, yarn.lock
def webDir = new File(projectDir, "src/main/web")

node {
    distBaseUrl = 'https://nodejs.org/dist'
    version = '6.9.0'
    download = true

    npmVersion = '3.10.6'

    yarnVersion = '1.2.1'
    workDir = webDir
    yarnWorkDir = webDir
}

task yarnBuild(type: YarnTask, dependsOn: "yarn_install") {
    execOverrides {
        it.workingDir = webDir
    }
    args = ['run','build']
}

when i run ./gradlew yarn_install i get:
:nodeSetup UP-TO-DATE
:yarnSetup UP-TO-DATE
:yarn_install
yarn install v1.2.1
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
info Lockfile not saved, no dependencies.

so it looks like it is not seeing my package.json
./gradlew yarnBuild works fine as long as dependeciec were installed

Hi @dmnk89
Did you try to initialize nodeModulesDir instead of yarnWorkDir ?


Enhancing Home page in mobile view

@MitulSonagara
In mobile view, the home page is not looking good, I would like to enhance it
Could you please assign it to me

@AswaniBolisetti
Someone is already working on this


fixing toc

fixes #1230

I am not sure if this is the best way to approach this. While this works for this component, it means that no page that is using the UI components can use the onPush strategy, which will cause a large performance hit, especially for tables.  We should try to find the UI component that is actually failing to update, and try to fix the problem there.
I made this change in #1233 anyway, but will reopen the issue to try and fix


Revert "MM-43306 : Support graphQL for channels, channel members"

Reverts mattermost/mattermost-webapp#11113 discussion on private staff channel https://community.mattermost.com/private-core/pl/cjgnsf4aj7yczxmforkn89ifcc
Reverted the graphQL PR for channels and channel members

Apologies removing @isacikgoz as i thought he was on SET. Corrected the reviewer.

/cherry-pick cloud

Cherry pick is scheduled.


getDrawingCache returns distorted bitmap

getDrawing cache returns distorted image of the view like its shown in preview of xml

This is outdated and probably irrelevant now, but just for documentation: from reading the sources it seems unlikely to be an issue with this library. Usage of drawing cache quality and scaling flag should be checked.


Include flake8 in pre-commit manifest

Fixes: #1
Ref: #24, #28
Credits: @ntkathole
Signed-off-by: Leela Venkaiah G<EMAIL_ADDRESS>

@simzacks

Added flake8 to run only on src/pylero after a PR is raised
Recommended a tool for less diff in-case the user has to fix flake8 issues but didn't mandated it
autopep8 is chosen as it's default formatting is not aggressive and it changed <10 lines in whole code base

@ntkathole credited you since this fix is part of your original PR #24, any suggestions are welcome.


Preserve the log file from a prior ocp-ansible.sh run

In the case of a retry, when the new Ansible run is started the old log file is removed. If someone attempts a cluster rebuild "over the top" of an existing build, the reason they attempted the prior build is lost.  Let's change the process so that the log file is date/time sensitive and "rotated" when a new attempt is generated.
Possibly corollary to this should be the return of the lockout of the automation to prevent multiple or simultaneous build runs.

Possible implementation: the actual log file is created with a timestamp, and /var/www/html/logfile.txt is a symlink to that file. When a new attempt is started, the symlink is updated.

Consider also relating it to the name of the cluster, for when/if named cluster support comes along.

New plan: a userid created for each cluster. This userid will have all the content for that given cluster: install-config.yaml, logfile(s), links to corresponding OpenShift clients, etc.


CI and Function Type

In Julia, as we can see
julia> typeof(abs)
typeof(abs) (singleton type of function abs, subtype of Function)

the function abs has a subtype of function so it is better to define
function circlepoints(f::FunctionType,n; dir="acw") where {FunctionType <: Function}
    if dir=="acw"
        return [GeometryBasics.Point{3, Float64}(f(t)*cos(t),f(t)*sin(t),0) for t ∈ range(0,2*π-(2*π)/n,n)]
    else
        return [GeometryBasics.Point{3, Float64}(f(t)*cos(t),f(t)*sin(t),0) for t ∈ range(0,(2*π)/n-2*π,n)]
    end
end

rather than
function circlepoints(f::Function,n; dir="acw")
    if dir=="acw"
        return [GeometryBasics.Point{3, Float64}(f(t)*cos(t),f(t)*sin(t),0) for t ∈ range(0,2*π-(2*π)/n,n)]
    else
        return [GeometryBasics.Point{3, Float64}(f(t)*cos(t),f(t)*sin(t),0) for t ∈ range(0,(2*π)/n-2*π,n)]
    end
end

Addition to this, this PR add GitHub CI workflow.

docstring in Julia be like

"""
docstring
"""
function f(x)
end

and it is a little bit different of its Python counterpart. I've just copied and pasted the docstring at the top of the function definition.


getChat() php fatal error

[error] [client <IP_ADDRESS>] PHP Notice:  Undefined variable: command in /vendor/longman/telegram-bot/src/Telegram.php on line 477
[error] [client <IP_ADDRESS>] PHP Fatal error:  Call to a member function getChat() on a non-object in /vendor/longman/telegram-bot/src/Commands/GenericCommand.php on line 29
Bot worked very well last 4 month.
But yesterday began errors.
Nothing changed on server.
Any suggestions?
longman/telegram-bot : 0.21.0
       DB::insertRequest($update);         $result = $this->executeCommand($command, $update);         return $result;

Very outdated library version.

Your solution didn't help.
Just updated for a new version and there is new error:
PHP Fatal error:  Call to a member function getFrom() on a non-object in /vendor/longman/telegram-bot/src/Commands/SystemCommands/GenericmessageCommand.php on line 51
       $conversation = new Conversation(             $this->getMessage()->getFrom()->getId(),             $this->getMessage()->getChat()->getId()         );

Would be useful to see the raw update

@ivanuz Is this still a problem or has it been solved in the meantime?
If it's still an issue, a raw update as @MBoretto suggested would really help, thanks!

@ivanuz If this is still an issue for you, feel free to reopen.

version: 0.36.0
PHP Fatal error:  Call to a member function getFrom() on null in ...public_html/telegram/vendor/longman/telegram-bot/src/Commands/SystemCommands/GenericmessageCommand.php on line 63


Add Nunchuk to list of wallets

Nunchuk is a relatively new Bitcoin only wallet coordinator, much like Specter.
https://nunchuk.io/

It appears that only the library is OpenSource, but not the front end. This seems like a security concern.

Messaged dev's for clarification

Front end is closed source. Currently a malicious front end  could present non user-derived addresses, leading to loss of funds. Work is ongoing to resolve this so I will review once these mitigations are made.

Added to the closed source section.
I appreciate that being open source does not necessarily mean a wallet is more secure (especially if not reproducible) but I think the assumption is that wallets are open, therefore the distinction is important.

Nunchuk is now completely open-source. @6102bitcoin


[Global Styles] Variable '$global-margin' described twice in docs

variable '$global-margin' described twice with different description:

Name
Type
Default Value
Description

$global-margin
Number
1rem
Global value used for margin on components.

$global-padding
Number
1rem
Global value used for padding on components.

$global-margin
Number
1rem
Global value used for margin between components.

Same issue at _settings.scss itself:
$global-margin: 1rem;
$global-padding: 1rem;
$global-margin: 1rem;

Merged in #7107


allow user to select how they want the article titles

Overview
Made the user able to select the old article style without a only article title, and always full length articles
connected issues and PRs:
GN-5235
Setup
None
How to test/reproduce
Change the parameters in besluit config to:
structure: {
        fullLenghtArticles: true,
        disableOnlyArticleSpecialName: true,
},

And observe how the style on the article titles change
Challenges/uncertainties
None
Checks PR readiness

[x] UI: works on smaller screen sizes
[x] UI: feedback for any loading/error states
[x] Check if dummy app is correctly updated
[x] Check cancel/go-back flows
[x] changelog
[x] npm lint
[x] no new deprecations

need to fix the lenght -> length typo

thanks missed elena comment


Remove jetify from post install

Please verify the following:

[x] yarn ci:test jest tests pass with new tests, if relevant
[x] README.md has been updated with your changes, if relevant

Describe your PR
We have a couple open issues around calling jetifier post install being deprecated:

https://github.com/infinitered/ignite/issues/1978
https://github.com/infinitered/ignite/issues/2208

Specifically #2208 has some good relevant articles.
It appears that react-native run-android now handles using jetifier, and most modules should have made the migration to AndroidX by now.
I've run through the existing android workflows with this PR, and they work for me https://github.com/infinitered/ignite/issues/2135#issuecomment-1256562340

@joshuayoes jetifier package should also be removed from devDependencies in package.json


Computing Hartree-Fock magnetizability

I am computing the magnetizability at the Hartree-Fock level and I obtained different results compared to the Dalton code. Moreover, I saw that in the code in rhf/magnetizability there is this warning: "warnings.warn('Module magnetizability is under testing')". Are there any problems with Pyscf magnetizability?
Bests,
Alberto Barlini

Hi, can you give a sample input and output?
When you have done so, you can ping @fishjojo


PageHeader title not focusable

Accessibility review
Component epic #
Standard keyboard interaction for a component should be supported
Page header title is not keyboard operable.
Please refer to the below guidelines -
https://www.ibm.com/able/requirements/requirements/?version=v7_2#2_1_1
Keyboard
Level 1

[ ] Properly code the navigation order

[ ] Ensure interactive elements are reachable with the keyboard
[ ] Where possible, achieve the desired tab order by adjusting the DOM,
rather than overriding the tabindex
[ ] When overriding the default focus indicator, confirm focus is highly
visible

[ ] Implement established keyboard conventions

[ ] Use standard HTML elements where possible, using CSS to alter appearance
not behavior
[ ] Be familiar with established keyboard conventions
[ ] Implement keyboard operation for custom elements

Level 2

[ ] Ensure keyboard access to complex interactions

[ ] Make custom media player and animation controls keyboard accessible

Level 3

[ ] Code screen updates predictably

[ ] Use “activate” rather than “focus” as a trigger
[ ] Use an onchange event without disorienting the user

Dynamic updates
Level 1

[ ] Provide errors accessibly

[ ] Use accessible methods to implement error messages
[ ] Implement validation and notification to minimize interruptions

Level 2

[x] Make content accessible that appears on hover or focus

[ ] Ensure Esc dismisses new content
[ ] If content appears on hover, the new content needs to remain visible
until dismissed
[ ] Moving the pointer away from the trigger should not be the action that
dismisses the new content
[x] Ensure custom tooltips and similar hover text can be triggered by
keyboard
[ ] Discuss alternatives to hover text
[ ] Use caution where interactive controls appear in the hover text

[ ] Code cancellation actions accessibly

[ ] Provide accessible ways of cancelling pointer interaction

[ ] Properly code status messages

[ ] Use role=status to advise on the success or results of an action
[ ] Use role=alert or an ARIA live region to convey a suggestion or
warning

Level 3

[ ] Allow reduced motion

[ ] Implement motion media queries to reduce user risk

Text and non-text
Level 1

[ ] Implement text alternatives for meaningful images, sound, and visual data

[ ] Give decorative images an ALT attribute with an empty string (alt="")
[ ] Use HTML, ARIA, or technology-specific techniques to add short text
alternatives
[ ] Where relevant text exists in the UI, use aria-labelledby and
aria-describedby to reference
[ ] Provide an accessible method for exposing long text alternatives
[ ] Embed multimedia content that supports closed captions

[ ] Implement correct structure and metadata

[ ] Code headings according to specifications
[ ] ~Code the <title> element on every page according to specifications~
[ ] ~Set the language for each page~

Level 2

[ ] Add additional structure where appropriate

[ ] Use <figcaption> and <caption> elements where figures and tables are
titled
[ ] Add additional context to generic link names
[ ] Consider adding regions and other ARIA roles to distinguish text
groupings

Level 3

[ ] ~Mark up foreign words and abbreviations~

[ ] ~Use the lang attribute for foreign words and phrases~
[ ] Use <abbr> elements and title attributes to expand abbreviations

[ ] Achieve necessary reading order

[ ] Order content appropriately in the DOM
[ ] Only use CSS to alter text position without altering meaning

User input
Level 1

[ ] Associate labels with inputs

[ ] Programmatically associate inputs with labels
[ ] Add accessible names for inputs lacking visible labels

[ ] Provide correct name, role, and value

[ ] If repurposing a standard component, use ARIA to set the correct name
and role
[ ] On custom components, use ARIA to expose name, role, and value

Level 2

[ ] Reduce conflict between the visible label and a component’s accessible
name

[ ] Match the accessible name to the visible label
[ ] Include the text of the label in the accessible name

Level 3

[ ] Indicate the purpose of common inputs

[ ] Use HTML autocomplete attributes, where appropriate

@lisawu-1 Is there a specific instance or variant of the PageHeader that you’re expecting to be able to focus? If the PageHeader is non-interactive, it would not receive focus. If this is a bug, can you reopen this or edit this issue with information from this bug report issue template?


Post request fails after initial cloudflare bypass.

Hi!
I'm using Cloudscraper version 4.14 on Node version 12.10.0.
I'm attempting to access this website, which has a cloudflare protection page with a captcha.
I can bypass the cloudflare and access the site's homepage/any page, however, after bypassing, I am unable to successfully send a post request. The weirdest part about this is that my code works using the Python version of the module recreating the exact same requests.
When sending the post request, the console sometimes prints:
request received invalid json when debug is on.
In my second request I need a csrf token that gets returned with the first request's (the bypass request) response. Essentially I am trying to create an account on this website by first retrieving the csrf after the initial bypass (which I can do successfully) and then sending a post request with the account information.
Like I said, I can do this successfully in Python which leads me to believe the issue is related to the module's way of handling post requests, but of course I'm probably wrong. This is my code when sending both requests.
const captchaAPI = require("imagetyperz-api")
const cloudscraper = require("cloudscraper").defaults({ onCaptcha })

cloudscraper.debug = true

let captchaRes
// CALLED IF SCRAPER RUNS INTO CAPTCHA
async function onCaptcha(options, response, body) {
  const captchaData = response.captcha
  captchaRes = await solveCaptcha(
    response.request.uri.href,
    captchaData.siteKey
  )
  captchaData.form["g-recaptcha-response"] = captchaRes
  captchaData.submit()
}

// CALLED WHEN SOLVING A CAPTCHA IS NECESSARY
async function solveCaptcha(uri, sitekey) {
  captchaAPI.set_access_key("KEY")
  const params = {
    page_url: uri,
    sitekey: sitekey
  }
  console.log("Solving captcha...")
  const id = await captchaAPI.submit_recaptcha(params)
  const token = await captchaAPI.retrieve_recaptcha(id)
  return token
}

// GENERATE AN ACCOUNT
async function genAccount(req) {
  const Csrf = req.body.match(/setRequestHeader\('X-AntiCsrfToken', '(.+)'/)[1]
  console.log(`CSRF: ${Csrf}`)
  cloudscraper.defaultParams.headers = {}
  console.log(`CAPTCHA: ${captchaRes}`)
  const headers = {
    authority: "www.nakedcph.com",
    path: "/auth/submit",
    scheme: "https",
    accept: "application/json, text/javascript, */*; q=0.01",
    "accept-encoding": "gzip, deflate, br",
    "accept-language": "en-US,en;q=0.9,pt;q=0.8",
    "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
    origin: "https://www.nakedcph.com",
    referer: "https://www.nakedcph.com/auth/view?op=register",
    "sec-fetch-mode": "cors",
    "sec-fetch-site": "same-origin",
    "user-agent":
      "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.87 Safari/537.36",
    "X-AntiCsrfToken": Csrf,
    "X-Requested-With": "XMLHttpRequest"
  }
  const gen = await cloudscraper({
    url: "https://nakedcph.com/auth/submit",
    method: "POST",
    resolveWithFullResponse: true,
    // followOriginalHttpMethod: true,
    json: true,
    simple: false,
    headers: headers,
    formData: {
      _AntiCsrfToken: Csrf,
      firstName: "CLOUDSCRAPER TEST",
      email<EMAIL_ADDRESS>      password: "MyPassword123",
      "g-recaptcha-response": String(captchaRes),
      action: "register"
    }
  })
  console.log("RESULT:")
  console.log(gen.statusCode)
  console.log(gen.body)
}

const headers = {
    "User-Agent":
      "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.81 Safari/537.36",
    Accept: "application/json, text/javascript, */*; q=0.01",
    "Accept-Language": "en-US,en;q=0.5",
    "Accept-Encoding": "gzip, deflate, br",
    "X-Requested-With": "XMLHttpRequest"
  }
// FIRST REQUEST GETS SENT HERE
  const req = await cloudscraper({
    url: "https://www.nakedcph.com",
    method: "GET",
    resolveWithFullResponse: true,
    // json: true,
    simple: false,
    headers: headers
  })
  if (req.statusCode === 200) {
// IF FIRST REQUEST IS GOOD AND CLOUDFLARE IS BYPASSED, WE TRY SENDING THE POST
    await genAccount(req)
  }
  console.log(req.statusCode)

I get a 200 on the first request, and a 403 on the 2nd.  And like I said, my Python version is 100% functional doing the exact same request with the same headers and everything.
Thanks and sorry for any confusions and the long code. I've been looking at this for way longer than I should have and haven't been able to find the solution. Any help is much appreciated.

I used this this module  in Python, is this the one that is dangerous to use?

Yes:exclamation: I used to own that pypi.org project. Unfortunately, it is owned by a very cunning individual now. You've been warned.
I've noticed that you're attempting to send pseudo HTTP/2 headers.
The underlying request library doesn't support HTTP/2 and adds the host header automatically. The same applies to python's requests library. The :authority and host headers are mutually exclusive. The :authority header should not be sent when using HTTP/1. The host header should not be sent when using HTTP/2.
HAR file excerpt
  {
       "request": {
          "method": "GET",
          "url": "https://www.nakedcph.com/auth/view?op=register",
          "httpVersion": "http/2.0",
          "headers": [
            {
              "name": ":method",
              "value": "GET"
            },
            {
              "name": ":authority",
              "value": "www.nakedcph.com"
            },
            {
              "name": ":scheme",
              "value": "https"
            },
            {
              "name": ":path",
              "value": "/auth/view?op=register"
            }
        ]
  }

All of the above headers should be omitted when imitating a browser's HTTP/1 request.
I'm using https://httpbin.org which responds with the request info that you sent to demonstrate the difference between the json and formData options:
Request - formData option
require('cloudscraper').get({
  uri: 'https://httpbin.org/anything',
  formData: { test: 'foobar' }
}).then(console.log)

Request as reported by httpbin.org
{
  "args": {},
  "data": "",
  "files": {},
  "form": {
    "test": "foobar"
  },
  "headers": {
    "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
    "Accept-Encoding": "gzip, deflate, br",
    "Accept-Language": "en-US,en;q=0.8",
    "Content-Length": "165",
    "Content-Type": "multipart/form-data; boundary=--------------------------864593522106200008829719",
    "Host": "httpbin.org",
    "Upgrade-Insecure-Requests": "1",
    "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.78 Safari/537.36"
  },
  "json": null,
  "method": "GET",
  "origin": "<IP_ADDRESS>, <IP_ADDRESS>",
  "url": "https://httpbin.org/anything"
}

Request - json option
require('cloudscraper').get({
  uri: 'https://httpbin.org/anything',
  json: { test: 'foobar' }
}).then(console.log)

Request as reported by httpbin.org
{
  args: {},
  data: '{"test":"foobar"}',
  files: {},
  form: {},
  headers: {
    Accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8',
    'Accept-Encoding': 'gzip, deflate, br',
    'Accept-Language': 'en-US,en;q=0.8',
    'Content-Length': '17',
    'Content-Type': 'application/json',
    Host: 'httpbin.org',
    'Upgrade-Insecure-Requests': '1',
    'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.78 Safari/537.36'
  },
  json: { test: 'foobar' },
  method: 'GET',
  origin: '<IP_ADDRESS>, <IP_ADDRESS>',
  url: 'https://httpbin.org/anything'
}

Perform the same tests with your python code to ensure that everything lines up. If I had the debug output from python maybe I could pinpoint the issue.
Prepend the following to your python code to generate similar debug output:
Python code snippet
import logging

try:
    from http.client import HTTPConnection # py3
except ImportError:
    from httplib import HTTPConnection # py2

HTTPConnection.debuglevel = 1

logging.basicConfig()
logging.getLogger().setLevel(logging.DEBUG)
requests_log = logging.getLogger("requests.packages.urllib3")
requests_log.setLevel(logging.DEBUG)
requests_log.propagate = True

# import cfscrape
# scraper = cfscrape.create_scraper()
# print(scraper.get('https://google.com'))

With fresh eyes, the server expects the body to be application/x-www-form-urlencoded: https://github.com/request/request#forms
const cloudscraper = require('cloudscraper')
const { headers: defaultHeaders } = cloudscraper.defaultParams

const uri = new URL('https://www.nakedcph.com/auth/view?op=register')

const response = await cloudscraper.post({
  uri: new URL('/auth/submit', uri.href),
  resolveWithFullResponse: true,
  followOriginalHttpMethod: true,
  json: true,
  simple: false,
  headers: {
    ...defaultHeaders,
    Origin: uri.origin,
    Referer: uri.href,
    'Sec-Fetch-Mode': 'cors',
    'Sec-Fetch-Site': 'same-origin',
    'X-AntiCsrfToken': csrf,
    'X-Requested-With': 'XMLHttpRequest'
  },
  form: {
    _AntiCsrfToken: csrf,
    firstName: username,
    email: username +<EMAIL_ADDRESS>    password: password,
    'g-recaptcha-response': gRes,
    action: 'register'
  }
})

@pro-src I love you. Thanks.
Following the above changes you made to the request, I was able to get a 500 response instead of a 403. The 500 response included a captchaError. So instead of letting Cloudscraper set the sitekey and URL to solve the captcha for, I simply hard-set them in my captcha solving function, sent the post request, and the 500 then became a 200, and now, everything works perfectly.
Takeaways:

Something with how you setup those headers and/or the URI, as in the example, above definitely did something to help.
Hard setting the captcha parameters can help if getting captcha errors. For the Captcha API I'm using, the URL can just be something like nakedcph.com as opposed to having a URL with a declared protocol and path.

Hope this helps anyone else having this issue and thank you so much @pro-src for all of the help.
My issue is resolved 😊

There hasn't been a whole lot of feedback concerning the reCaptcha related API.
Per your feedback, I've sent a PR(#260) to soft deprecate captcha.url in preference of captcha.uri which is an instance of the builtin URL class. This new property conveniently allows for captcha.uri.origin, captcha.uri.host, captcha.uri.hostname, etc. to be used in place of captcha.url. The old property would still be available with deprecation warnings for sometime and is equivalent to captcha.uri.href aka response.request.uri.href.
Secondly, I fixed a few bugs:

The fallback siteKey was being preferred over the primary siteKey that is taken from the data-sitekey attribute of the cf.challenge.js script tag.
The fallback siteKey regular expression was too greedy and could erroneously include URL query parameters, if ever present.
The siteKey related regular expressions could return an empty match, although unlikely.

Finally, the regular expressions have been greatly improved. The siteKey can be found 4 times within Cloudflare's reCaptcha(v2) response, e.g. https://captcha.website, and this update is aware of all them. Previously, this would only match 2, the data-sitekey attribute and the fallback.
Could I get you to test this and report back whether pinning the URL and/or siteKey is still necessary?
npm install "git://github.com/pro-src/cloudscraper.git#recaptcha"
OR
git clone --single-branch --branch recaptcha https://github.com/pro-src/cloudscraper
cd cloudscraper

# Feel free to replace npm with yarn in any of these commands
npm install # Optionally add --production, if skipping test
npm test # Optional but recommended

# If you're going to manually update your require calls, you're done
# Otherwise register cloudscraper with NPM globally
npm link

# Proceed to create a symlink to cloudsraper in your project's node_modules/
cd ../my-project
npm link cloudscraper
node index.js

sorry for missing this! I was about to post another issue when I saw this. Will be performing these tests today and reporting back.

Did some more testing. I'm able to bypass the initial Cloudflare captcha page here. However, when sending the post request we revised above, I keep getting captchaError now or some unexpected responses from the server instead of a successful account creation, like in my Python script.
Any ideas on the fix? This is my code:
var cloudscraper = require("cloudscraper")
const captchaAPI = require("imagetyperz-api")
const { headers: defaultHeaders } = cloudscraper.defaultParams

//cloudscraper.debug = true

let captchaRes

async function onCaptcha(options, response, body) {
  const captcha = response.captcha
  // solveReCAPTCHA is a method that you should come up with and pass it href and sitekey, in return it will return you a reponse
  const token = await solveCaptcha(response.request.uri.href, captcha.siteKey)
  captcha.form["g-recaptcha-response"] = token
  captcha.submit()
}
// python sitekey = '6LeNqBUUAAAAAFbhC-CS22rwzkZjr_g4vMmqD_qo'
async function solveCaptcha(uri, sitekey) {
  captchaAPI.set_access_key("MY CAPTCHA SOLVING API KEY")
  const params = {
    page_url: uri,
    sitekey: sitekey
  }

  console.log("Solving captcha...")
  const id = await captchaAPI.submit_recaptcha(params)
  const token = await captchaAPI.retrieve_recaptcha(id)
  captchaRes = token
  return token
}

async function run() {
  const req = await cloudscraper.get({
    uri: "https://nakedcph.com",
    onCaptcha: onCaptcha,
    resolveWithFullResponse: true,
    simple: false,
    headers: {
      "user-agent":
        "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.87 Safari/537.36",
      Accept: "application/json, text/javascript, */*; q=0.01",
      "Accept-Language": "en-US,en;q=0.5",
      "Accept-Encoding": "gzip, deflate, br"
    }
  })
  if (req.statusCode === 200) {
    const AntiCsrfToken = req.body.match(
      /setRequestHeader\('X-AntiCsrfToken', '(.+)'/
    )[1]
    const post = await cloudscraper.post({
      uri: "https://nakedcph.com/auth/submit",
      onCaptcha: onCaptcha,
      resolveWithFullResponse: true,
      followOriginalHttpMethod: true,
      json: true,
      simple: false,
      headers: {
        ...defaultHeaders,
        "user-agent":
          "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.87 Safari/537.36",
        Accept: "application/json, text/javascript, */*; q=0.01",
        "Accept-Language": "en-US,en;q=0.5",
        "Accept-Encoding": "gzip, deflate, br",
        "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
        "x-AntiCsrfToken": AntiCsrfToken,
        "x-Requested-With": "XMLHttpRequest",
        origin: "https://www.nakedcph.com",
        referer: "https://www.nakedcph.com/auth/view?op=register"
      },
      form: {
        _AntiCsrfToken: AntiCsrfToken,
        firstName: "My Name",
        email<EMAIL_ADDRESS>        password: "MyPassword",
        "g-recaptcha-response": captchaRes,
        action: "register"
      }
    })
    console.log("ACC RESULT:")
    console.log(post.statusCode)
    console.log(post.body)
    return
  }
}
run()

Running the following code with debug on generates the attached logs.
Thanks for helping out, hopefully we can get this working and the module bugs sorted out ASAP!
out.txt

@pro-src any updates?

Not as of yet.

was the issue resolved? Just wondering why this was closed with no reply.
I'm still having issues with the example I sent on the updated version! Any help is appreciated. Thanks.

was the issue resolved? Just wondering why this was closed with no reply.

You said:

My issue is resolved :blush:

The issue was reopened to address the bugs that I discovered and subsequently closed automatically by Github once the (fix)PR was merged.
I understand there's a new issue that's related to the old one but would you mind opening a new issue for that and just referencing this one. I have meant to attend your issue.

Very weird that the sitekey commented out works in the Python version but yields captchaErrors in the node js version.

That's very weird indeed considering how the python regex is merely:
'data-sitekey="(.+?)"'

Where as Cloudscraper's primary siteKey regex is robust (not mentioning the fallbacks):
/\sdata-sitekey=["']?([^\s"'<>&]+)/

So if anything, the python code would be failing you. I would just create a simple (working) snippet to show the difference if there was one but I don't see it. Feel free to prove me wrong.
Somebody will eventually get around to your issue. If you would like me personally to expedite your issue, consider becoming a patron.
Thanks for your understanding.

@pro-src i do not mind becoming a patron to get assisted ASAP!
Just tell me how to go about doing that and how much I should pledge to be worth your time :)
Would love to work on my issue specifically with you if possible. If becoming a patron is what it takes to get some 1-on-1 assistance from you I will definitely do it.

@luizkc There's a couple tiers at this link and there's an option to make a custom pledge. :)

@pro-src awesome! Just pledged. See you in Discord! Can't wait :)

Sorry to comment on a closed issue, but was there a resolution to this? I am also experiencing the 500 issue


VipMobility changes for MAML

These changes are adding generated files for Network Specification change to support VipMobility. The hydra changes are already merged but latest hydra network specification package is not yet published. This is a pull request that just adds the generated source files from latest hydra network spec in  MAML.

Can one of the admins verify this patch?

Hi @avijitgupta, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

It looks like you're working at Microsoft (avgupt). If you're full-time, we DON'T require a contribution license agreement.

If you are a vendor, or work for Microsoft Open Technologies, DO please sign the electronic contribution license agreement. It will take 2 minutes and there's no faxing! https://cla.azure.com.

TTYL, AZPRBOT;


scArches incompatible with latest version of scvi

When using scvi-tools-0.9.0a1, I hit the following error when importing scArches:
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-b440abd12709> in <module>
      6 import zipfile
      7 import scipy.io
----> 8 import scarches as sca
      9
     10 sc.set_figure_params(dpi=200)

~/.local/lib/python3.8/site-packages/scarches/__init__.py in <module>
----> 1 from . import metrics, models, dataset, trainers, zenodo, plotting
      2 from .surgery import scvi_operate, trvae_operate
      3
      4 __author__ = ', '.join([
      5     'Marco Wagenstetter',

~/.local/lib/python3.8/site-packages/scarches/models/__init__.py in <module>
----> 1 from .trvae import trVAE, TRVAE
      2
      3 from scvi.model import SCVI, SCANVI, TOTALVI

~/.local/lib/python3.8/site-packages/scarches/models/trvae/__init__.py in <module>
      1 from .trvae import trVAE
----> 2 from .trvae_model import TRVAE

~/.local/lib/python3.8/site-packages/scarches/models/trvae/trvae_model.py in <module>
      9
     10 from .trvae import trVAE
---> 11 from scarches.trainers.trvae.unsupervised import trVAETrainer
     12 from ._utils import _validate_var_names
     13

~/.local/lib/python3.8/site-packages/scarches/trainers/__init__.py in <module>
----> 1 from .scvi import (
      2     scVITrainer,
      3     scANVITrainer,
      4     totalTrainer
      5 )

~/.local/lib/python3.8/site-packages/scarches/trainers/scvi/__init__.py in <module>
----> 1 from .trainers import scVITrainer, scANVITrainer, totalTrainer
      2
      3 __all__ = [
      4     "scVITrainer",
      5     "totalTrainer",

~/.local/lib/python3.8/site-packages/scarches/trainers/scvi/trainers.py in <module>
      1 from typing import Union
----> 2 from scvi.core.trainers import UnsupervisedTrainer, SemiSupervisedTrainer, TotalTrainer
      3
      4
      5 class scVITrainer(UnsupervisedTrainer):

ModuleNotFoundError: No module named 'scvi.core'

This does not occur when using scvi-tools-0.8.1

Hi, it is fixed on master.
@Cottoneyejoe95 , @M0hammadL maybe a new release?

@Cottoneyejoe95  would you please update pip with new release.

Updated to version 0.3.4.

Hi all,
there might be further tweaks in our new release (official date TBD) that will require changes to some parameter names in the tutorials (e.g., n_epochs is now max_epochs). The overall API will not change though, except for SCANVI. We can talk more on slack about these details.

On that note, it would probably be beneficial if you all pinned scvi-tools==0.8.1

Thx Adam, @Koncopd  would you please change to 8.0.1 when we instal scvi-tools?

@M0hammadL do you want a new release then?

On that note, it would probably be beneficial if you all pinned scvi-tools==0.8.1

I just pinned it to scvi-tools==0.8.1 to make sure everything works with our API now. we can discuss this further in slack.
@Cottoneyejoe95  could you please test all our notebooks with scvi-tools==0.8.1 and make a new release?


feat: add mattr interop

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Fix/Feature

What is the current behavior? (You can also link to an open issue here)

JSON Schema can't contain contains, items and jwt_vc_json. All are needed for MATTR Launchpad interop

What is the new behavior (if this is a feature change)?

It is all supported.

Other information:

Needs PR https://github.com/Sphereon-Opensource/pex-openapi/pull/29 released, as there's currently some ts ignores and FIXMEs
Also added a test with the actual PD from MATTR launchpad, to make sure it works

cc @nklomp

pex models has a new release. BTW except for the formats no changes should be made to v1, as we have a complete implementation for v1, unlike v2. I will update this PR later today unless you beat me to it.

Hmm but then the pex models PR should also have the types adjusted again.
I'd see the changes as adding missing properties from JSON Schema spec, and thus doesn't really matter whether it's v1 / v2? The properties are valid JSON Schema. Or do you mean with complete version that you have a feature freeze for v1?

Yeah, I need to update anyway, as V2 can have an optional format at the descriptor level, which is being used by Mattr

Interesting discovery:
The MATTR PD contains a path of $.vc.type. The PEX library does evaluation on WrappedVerifiableCredential.credential, which is a stable uniform credential, but therefore doesn't have the .vc..
It seems that MATTR expects the evaluation to be done on the decoded JWT, no the vc property within the JWT. And this aligns with the examples gives in the spec.
https://github.com/Sphereon-Opensource/PEX/blob/a81ce76c78a02a4c3f777a9ee6927fa8e819d026/lib/evaluation/handlers/inputDescriptorFilterEvaluationHandler.ts#L31-L33
I've changed it from wvc.credential to wvc.decoded, and that seems to do the trick, but breaks some other tests. Not sure what the best way forward is here. Should we do evaluation on the decoded credential instead of the stable credential?

Hmzz, that for sure should be the decoded credential to begin with yes

Codecov Report

Merging #128 (cf44d0e) into develop (a81ce76) will decrease coverage by 0.17%.
The diff coverage is 69.23%.

:exclamation: Current head cf44d0e differs from pull request most recent head e548e9c. Consider uploading reports for the commit e548e9c to get more accurate results

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
@@             Coverage Diff             @@
##           develop     #128      +/-   ##
===========================================
- Coverage    95.70%   95.54%   -0.17%
===========================================
  Files           63       63
  Lines         2213     2222       +9
  Branches       473      481       +8
===========================================
+ Hits          2118     2123       +5
- Misses          95       96       +1
- Partials         0        3       +3

Flag
Coverage Δ

unittest
?

Flags with carried forward coverage won't be shown. Click here to find out more.

Files
Coverage Δ

lib/validation/bundlers/fieldsVB.ts
96.42% <ø> (-1.79%)
:arrow_down:

...ib/validation/bundlers/presentationSubmissionVB.ts
100.00% <100.00%> (ø)

lib/PEX.ts
93.38% <0.00%> (ø)

...ion/handlers/formatRestrictionEvaluationHandler.ts
96.15% <85.71%> (-3.85%)
:arrow_down:

.../validation/bundlers/presentationDefinitionV1VB.ts
96.93% <50.00%> (-0.98%)
:arrow_down:

.../validation/bundlers/presentationDefinitionV2VB.ts
97.93% <50.00%> (-1.01%)
:arrow_down:

... and 2 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

@nklomp I think I just pushed some changes that broke some tests before you merged ... :(


sit: better fix for aarch64 bug

Motivation for this change
Following further investigation of the original issue with aarch64 test failure for sit, a more elegant solution was found (one that wouldn't change the code)
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg build sit

Success on x86_64-linux (full log)
Attempted: sit
Partial log (click to expand)
cp: -r not specified; omitting directory 'target/release/examples'
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/sr66wmwzhbrlg8qgsajkh8ypljak54vc-sit-0.3.2
shrinking /nix/store/sr66wmwzhbrlg8qgsajkh8ypljak54vc-sit-0.3.2/bin/sit-web
shrinking /nix/store/sr66wmwzhbrlg8qgsajkh8ypljak54vc-sit-0.3.2/bin/sit
strip is /nix/store/j75dgadrff2d1fyc4fczmcgqkid2imdx-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/sr66wmwzhbrlg8qgsajkh8ypljak54vc-sit-0.3.2/bin
patching script interpreter paths in /nix/store/sr66wmwzhbrlg8qgsajkh8ypljak54vc-sit-0.3.2
checking for references to /build in /nix/store/sr66wmwzhbrlg8qgsajkh8ypljak54vc-sit-0.3.2...
/nix/store/sr66wmwzhbrlg8qgsajkh8ypljak54vc-sit-0.3.2

Success on aarch64-linux (full log)
Attempted: sit
Partial log (click to expand)
cp: -r not specified; omitting directory 'target/release/deps'
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/7rlfw19ss2zzjgjb40c6m0py5mrh4yr4-sit-0.3.2
shrinking /nix/store/7rlfw19ss2zzjgjb40c6m0py5mrh4yr4-sit-0.3.2/bin/sit
shrinking /nix/store/7rlfw19ss2zzjgjb40c6m0py5mrh4yr4-sit-0.3.2/bin/sit-web
strip is /nix/store/gp7fylxwn18b7pl2c18ks89hsiaxyfvf-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/7rlfw19ss2zzjgjb40c6m0py5mrh4yr4-sit-0.3.2/bin
patching script interpreter paths in /nix/store/7rlfw19ss2zzjgjb40c6m0py5mrh4yr4-sit-0.3.2
checking for references to /build in /nix/store/7rlfw19ss2zzjgjb40c6m0py5mrh4yr4-sit-0.3.2...
/nix/store/7rlfw19ss2zzjgjb40c6m0py5mrh4yr4-sit-0.3.2

Failure on x86_64-darwin (full log)
Attempted: sit
Partial log (click to expand)
          clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)

error: aborting due to previous error

error: Could not compile `sit-web`.

To learn more, run the command again with --verbose.
builder for '/nix/store/6mmkzjg3s6n4rd70chjrms8i1npxrnfp-sit-0.3.2.drv' failed with exit code 101
error: build of '/nix/store/6mmkzjg3s6n4rd70chjrms8i1npxrnfp-sit-0.3.2.drv' failed

I'll address darwin failure separately.
On Tue, May 8, 2018, 1:04 PM GrahamC of Borg<EMAIL_ADDRESS>wrote:

Failure on x86_64-darwin (full log)
https://logs.nix.ci/?key=nixos/nixpkgs.40151&attempt_id=9d281b0f-8521-46bb-a5fb-015d299815dd
Attempted: sit
Partial log (click to expand)
      clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)

error: aborting due to previous error
error: Could not compile sit-web.
To learn more, run the command again with --verbose.
builder for '/nix/store/6mmkzjg3s6n4rd70chjrms8i1npxrnfp-sit-0.3.2.drv' failed with exit code 101
error: build of '/nix/store/6mmkzjg3s6n4rd70chjrms8i1npxrnfp-sit-0.3.2.drv' failed
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/NixOS/nixpkgs/pull/40151#issuecomment-387525586, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAABxGDwFNlRugjqsQ5gXseSXevcCGuMks5twfpjgaJpZM4T1ydV
.

Thank you!


Why Conv2D, not Conv1D ?

Just wondering, why did you use Conv2d, not Conv1d ?
Thanks.

The paper I based the implementation off uses 2d convolutions, so I did too. They use 2d convolutions as they experimented with multiple input channels (one from pre-trained word embeddings and one from randomly initialized word embeddings) which you cannot do with Conv1d.
I also personally found it easy to think about in terms of having the sentence be represented as a 2d object, with words along one axis and embeddings along the other.

Here's a gist of how to implement the model using Conv1d:
https://gist.github.com/bentrevett/844f5169b86d2d8adc61b93b563a4ddf
Notice how we get pretty much the exact same result.


julia version bump

bumping julia version
@willingc

As a note, this wasn't enough - '0.5' was hard coded in the assemble script, and it broke julia builds for a bit.
Let's figure out ways to add tests for these soon :)

oops, my bad :-(
On Sat, Jul 1, 2017 at 2:51 AM Yuvi Panda<EMAIL_ADDRESS>wrote:

As a note, this wasn't enough - '0.5' was hard coded in the assemble
script, and it broke julia builds for a bit.
Let's figure out ways to add tests for these soon :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jupyter/repo2docker/pull/30#issuecomment-312417576,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABwSHfZe2ntgshtQjMqPrxOoBghhzq-8ks5sJfqLgaJpZM4ODtDa
.

Nope, it turns out a .gitignore file had accidentally ignored the assemble
file, so it wasn't even in the repo! I've fixed it now.
On Sat, Jul 1, 2017 at 3:43 PM, Chris Holdgraf<EMAIL_ADDRESS>wrote:

oops, my bad :-(
On Sat, Jul 1, 2017 at 2:51 AM Yuvi Panda<EMAIL_ADDRESS>wrote:

As a note, this wasn't enough - '0.5' was hard coded in the assemble
script, and it broke julia builds for a bit.
Let's figure out ways to add tests for these soon :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jupyter/repo2docker/pull/30#issuecomment-312417576,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/
ABwSHfZe2ntgshtQjMqPrxOoBghhzq-8ks5sJfqLgaJpZM4ODtDa>
.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/jupyter/repo2docker/pull/30#issuecomment-312459574,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAB23tDj5xeVM5t3Ly4hkmYcK2LTRGF-ks5sJsujgaJpZM4ODtDa
.

--
Yuvi Panda T
http://yuvi.in/blog


[FEATURE] make it available from the terraform registry

Currently the terraform provider can not be found on the terraform registry. The installation is super simple if its available on there. Also the documentation is nice to use.

Please see #8


Option to make the nets more deterministic

What do you think about introducing an option to seed the random before doing the KFold on train test split ? That way the net predictions and loss details will be more deterministic over multiple runs on the same set.
Thanks

I think right now you can do a np.random.seed(42) before training and it'll be deterministic?

Sure yes. I just wanted to check if you want to add it as a option. I will close this and you can reopen it if and when you want to.

The default for KFold is actually NOT to shuffle (i.e. it is deterministic):
https://github.com/scikit-learn/scikit-learn/blob/38104ff4e8f1c9c39a6f272eff7818b75a27da46/sklearn/cross_validation.py#L320

Ah yes, very useful if your data is not independently distributed.

It might be worth tossing a note along the lines of:

By default no shuffling occurs, including for the (stratified) K fold cross- validation....

Yes, you're right.  And that reminds me that I should be working on proper docstrings soon.

From what I can see there is more randomness than just in the train test splits. From the tests I have done there is randomness when I include a dropout layer. I can't seem to make this the same for each run by doing a np.random.seed(42) before the run. I have tried tracing it back throug the source, and it appears to be setting a seed by default in RandomStreams from theano, which is called in the DropoutLayer, but I am still getting changes from run to run when I include a DropoutLayer, but no changes when there is no DropoutLayer.

There's an issue for that in Lasagne: https://github.com/Lasagne/Lasagne/issues/6


More small fixes

Readme updates
Simplify -m flag to simply passing it instead of it having a value (P.S. You should look into argparse. It's really easy to use, I have actual usage I can show you)
Add __all__ tuple to restrict what gets imported wildcard import is used
Small log fixes. If a part could not be found, None was displayed as the part name. Also, do not  run self.findFile() just to say we are caching the part (this one change decreases runtime, will help if locate() is ever hit, and was a bug anyway. :P)
Make locate() a private static method. This is a debatable change, as some say this can be done just as easily using a global function (as it was before), but I argue for this way as it is best to keep methods that pertain to the object's operations within the object, especially if it's only intended for internal use and has no meaning outside the object context (which locate() falls directly into).

Merging! Thanks a lot!
I'll definitely take a look at argparse.


Locked down environment

Good morning,
My workplace has a locked down environment and I am unable to add / use tools like the atlas packager. Is there any chance you can offer this as a installable app for Bitbucket ?
Many Thanks in Advance
Martin

You can download an already packaged jar file from: https://github.com/Cyanoth/Bitbucket-EagerPR-Updates/releases, download eagerpr-0.1.5.jar
Then on the Bitbucket Instance:
Global Admin -> Manage Apps -> Upload App and Select the download jar file.


use segment scan equal to capacity size

I still need to vet that this solves the bottleneck we're seeing with high cpu, low i/o migrations.

Yeah I think that we'd benefit more from being able to run multiple processes, and specify a segment ID for each one.

my fear is that that is a pretty big breaking change (which we should do). I'd like to see what the gains for this are first.

I am confident that these gains are trivial. This is fundamentally the same as increasing the concurrency on a single scan. You're still going to be constrained by synchronous work on a single process.
I don't think that adding an optional --segment flag to the CLI needs to be such a big breaking change, does it?

You're still going to be constrained by synchronous work on a single process

Yep, but you won't be constrained by a single poll which I suspect (I don't have proof) is 1/4 of the problem.

I don't think that adding an optional --segment flag to the CLI needs to be such a big breaking change, does it?

No matter how we do this, the ability to use closure scope to share state between jobs is going to be lost.
--segment is a nice way to make this its own feature, but it complicates the API. I'd prefer we did this via --concurrency. One gain of using --concurrency is that we could map this functionality to query and stream in the future.
query is not a feature now, but I think it should be, opening that issue


Add ability to define record

When multiple A records exist on a domain, due to sub-domains, this allows the ability to specify which A record to edit.

I don't see the reason for adding a variable for DNS record. What is the necessity of having two different variables for domain, especially if one of them is not used in the API command?

Correct, you technically don't need two variables, making only the change:
if values[3]==rec_type:
to
if values[2]==domain and values[3]==rec_type:
would solve the issue.
Also, TLS 1.0 doesn't seem to work with Dreamhost's API anymore so to get the script working you need to change:
context = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
to
context = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2)

Ha, I was working on this for you when you accepted my first pull. Submitted a new pull with one variable and updated comments. Thanks.


Determine how the min/max value for each variable should be obtained

The planned implementation of the min/max value for each variable is to determine these values for each root region. However, this min/max values won't be updated for the subdivisions of the root region, which can have different range of values, for instance if the root region includes mountains and the subdivisions only plains.
This task is to decide that this working is ok (or not) for Karl.

I realized that this has much more implication for the user experience. It can be confusing for him that if he change of regions, the variable legend colormap range value changes too. This definitely asks for clarification by Karl before implementing this feature

This also implies that there would be different legends per variable per region

Currently, the ingest code generates each legend, one per super-region/variable combination, based on the config using Matplotlib.


Move automatic signing and update tests

Signing now happens in the TransactionBuilder when .build() is called
instead of .execute() on Transction. This allows easier user of SDK.

@danielakhterov we need a way for the user to build an unsigned transaction; in the Java SDK we do this by making the client nullable in TransactionBuilder. This is probably a good time to duplicate that here.

@abonander I felt that belonged in a different PR; https://github.com/hashgraph/hedera-sdk-js/pull/86


Limited rows to 200 video's views

Hi Miguel, really like your work. I posted on the PowerBI community page about a difference between the total views from your template and the total views shown on my YouTube channel's analytics on YouTube itself. I looked through the code, and see the following:
VidNoNulls = Table.SelectRows(#"Expanded id", each [videoId] <> null and [videoId] <> ""),
   VideoList = List.Buffer(VidNoNulls[videoId]),
   maxIterations = Number.RoundUp( List.Count( VideoList) /200),
   setofVideos= List.Generate( () =>
          [Result = Text.Combine(List.Transform(List.Range(VideoList,0,200), Text.From), ","), Offset = 0, Counter = 0],
                each [Counter] < maxIterations,
                each [Result = Text.Combine( List.Transform(List.Range(VideoList,[Offset]+200,200), Text.From), ","),
            Counter = [Counter] +1,
            Offset = [Offset] + 200], each [Result]),

I'm guessing that you're using the youtube analytics API instead of the youtube reporting API where you may be limited to returning 200 rows, so maybe since I have ~1900 videos, the views for videos after my 200th most watched video of the day, are not counted. Do you think that is why I have a difference? I'm not confident in parsing this code, just a guess, so let me know your thoughts and if you would have a way to incorporate the YouTube reporting API to get around this limit. Thank you!
For reference see the section "Key Differences">"Sorting" https://developers.google.com/youtube/reporting/

Hey!
Thanks for giving this a try. The code in question is used just to make sure that I do not go over the 200 vids per request limit that the API has, but before that:

Where it does get all of the videos (even unlisted and private videos), I have no limits on how many videos I get. I basically get all of them, but I can only query 200 at a time for the "daily stats" hence why you see that 200. You can see this by clicking on the "Videos" table which should show all of the videos for your Channel.
I tested the connector with a friend that has over 2000 videos and there were some differences with values back from 2008, 2009 and 2010 / apparently the API had some issues back then which might be causing the differences in views.
The differences in views might be something different. Do you have a video that we could use a sample? like what should be the total views vs what are the ones taken from the API through this custom connector?

Thanks for pointing that out, I did notice that you were getting Unlisted videos which is what I thought the issue would have been (but I'm glad that you accounted for that). I'd be happy to give you a test video. The following video shows that it has 83,636 views on YouTube but the screenshot of the Videos Performance tab shows only 49,391 views. Let me know if you need other information to dig in further. Thank you for taking the time to help!
https://www.youtube.com/watch?v=zj2EoTkpz1k

Hey,
Just wanted to follow up on this. Were you able to find out where the differences came from? From a code standpoint, the calls are correct, but maybe there was a glitch at the API and some views are not accounted for at the API level. I've heard about some dates (between 2008 and 2010) where the API doesn't show correct data. That might be the case, but it might be due to the API and not the connector itself.

Hi Miguel,
It looks like there are not even close to the right amount of rows for the
DailyVideoStats table. When I look at particular dates, there are only a
small amount of rows with video data which makes the count off
significantly. Any idea as to why it may not get back all of the rows?
Thanks for your help,
Jeff
On Sat, Sep 15, 2018 at 8:53 PM Miguel Escobar<EMAIL_ADDRESS>wrote:

Hey,
Just wanted to follow up on this. Were you able to find out where the
differences came from? From a code standpoint, the calls are correct, but
maybe there was a glitch at the API and some views are not accounted for at
the API level. I've heard about some dates (between 2008 and 2010) where
the API doesn't show correct data. That might be the case, but it might be
due to the API and not the connector itself.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/migueesc123/YoutubeAnalytics/issues/12#issuecomment-421663729,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AopfEvWxVhzHXP6jfv-A7Z1_1Ly-v3oIks5ubaEggaJpZM4WIXVm
.

And this is for dates more recent than 2014. For example, if I look at
October 6, 2016, I see 9 rows returned in the table, but there are easily
50+ videos that show that they were viewed on that day, so I'm not sure why
they aren't added to the table.
On Thu, Sep 20, 2018 at 2:43 PM Jeff Resnick<EMAIL_ADDRESS>wrote:

Hi Miguel,
It looks like there are not even close to the right amount of rows for the
DailyVideoStats table. When I look at particular dates, there are only a
small amount of rows with video data which makes the count off
significantly. Any idea as to why it may not get back all of the rows?
Thanks for your help,
Jeff
On Sat, Sep 15, 2018 at 8:53 PM Miguel Escobar<EMAIL_ADDRESS>wrote:

Hey,
Just wanted to follow up on this. Were you able to find out where the
differences came from? From a code standpoint, the calls are correct, but
maybe there was a glitch at the API and some views are not accounted for at
the API level. I've heard about some dates (between 2008 and 2010) where
the API doesn't show correct data. That might be the case, but it might be
due to the API and not the connector itself.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/migueesc123/YoutubeAnalytics/issues/12#issuecomment-421663729,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AopfEvWxVhzHXP6jfv-A7Z1_1Ly-v3oIks5ubaEggaJpZM4WIXVm
.

Closing the ticket. Can't replicate scenario and new API restrictions obfuscate a way to find the root cause of the issue.


NTR: microtubule severing inhibitor activity

Please provide as much information as you can:

Suggested term label: ~negative regulation of microtubule severing (& parent 'regulation of microtubule severing')~

Will create the MF: microtubule severing inhibitor activity

Definition (free text) Any process that stops, prevents, or reduces the frequency, rate or extent of the breaking down of a microtubule into smaller segments

Reference, in format PMID:####### PMID:34970964 (shows that SSNA1 protects microtubules from severing by spastin)

Gene product name and ID to be annotated to this term human SSNA1 (O43805)

Parent term(s) GO:0051013 (microtubule severing)

Children terms (if applicable) Should any existing terms that should be moved underneath this new proposed term?

Synonyms (please specify, EXACT, BROAD, NARROW or RELATED)

Cross-references

For enzymes, please provide RHEA and/or EC numbers.

Can also provide MetaCyc, KEGG, Wikipedia, and other links.

Any other information

Sorry to complicate this but:
We have a number tickets to migrate of actin -related processes that are really "activities"  out of the  BP ontology.  We would eventually want to do the same for microtubule processes that are single-step, like "microtubule severing".
This new term  might be better are a Molecular function "microtubule serving inhibitor"
Here is a related (open) ticket for actin severing activity, and actin severing inhibitor
https://github.com/geneontology/go-ontology/issues/18437

I created this:
+[Term]
+id: GO:0140775
+name: microtubule severing inhibitor activity
+namespace: molecular_function
+def: "Binds to and stops, prevents, or reduces the activity of a microtubule severing protein." [PMID:34970964]
+is_a: GO:0140678 ! molecular function inhibitor activity
+property_value: term_tracker_item https://github.com/geneontology/go-ontology/issues/23014 xsd:anyURI
+created_by: pg
+creation_date: 2022-03-22T10:23:35Z
+
But I am not sure this is right - I think this is a microtubule stabilizer activity. We dont have 'stabilizer' as  molecular function, but I think that would be useful? I remember we mentioned that before, but I cannot find where...
Thanks, Pascale

stabilizer might be better. We have talked about "stabilizer' a lot, particularly in the context of RNA binding proteins that stabilize mRNAs. I'm not sure if it ever made it into a ticket.

This is from an email exchange with Paul, David and Kimberly:

Protein stabilizer: binds to and protects a protein from degradation or unfolding, resulting in a higher level of active protein.
(m)RNA stabilizer: binds to and protects an mRNA from degradation, resulting in a higher level of transcribed product. (this would address this: https://github.com/geneontology/go-ontology/issues/20132)

However we need to see how that fits with the BP:

GO:0031647 regulation of protein stability

GO:0036506 maintenance of unfolded protein

GO:0031648 protein destabilization

GO:0050821 protein stabilization
as well as the RNA terms:

GO:0043487 regulation of RNA stability

GO:0043488 regulation of mRNA stability

GO:0044357 regulation of rRNA stability

GO:0036415 regulation of tRNA stability

GO:0050779 RNA destabilization

GO:0043489 RNA stabilization

These are potentially phenotypes , as @ValWood mentioned in https://github.com/geneontology/go-ontology/issues/20132#issuecomment-755229210

"stability" has multiple meanings. There is the very direct "binding to a protein or mRNA to stabilize it" (MF), but stability is also used for stability of protein or mRNA is over its lifetime" which is not really determined by a single process, but is a balance between translation, or mRNA/protein catabolism. So, is stabilization itself really a process ?

So, I will change the new term GO:0140775 microtubule severing inhibitor activity, to 'microtubule stabilizing activity', and put that as a child of the new term GO:0140777  protein-containing complex stabilizing activity see #23062
@magrane Does that work for you ?
Thanks, Pascale

+[Term]
+id: GO:0140778
+name: microtubule stabilizing activity
+namespace: molecular_function
+def: "A protein-containing complex stabilizing activity that prevents dissociation of microtubules," [PMID:34970964]
+is_a: GO:0140777 ! protein-containing complex stabilizing activity
+property_value: term_tracker_item https://github.com/geneontology/go-ontology/issues/23014 xsd:anyURI
+created_by: pg
+creation_date: 2022-03-23T13:20:26Z

Maybe we'll need to improve the term labels and definitions later. Right now all examples are on protein complexes (microtubules and actin filaments). Also the definition doesn't mention protection from degradation.
This is a bit restrictive because we don't want to overlap with chaperones, sequestering and other activities.

@ccasalsc


[bug] typo "sudp" -> "sudo"

https://github.com/tommytran732/Linux-Setup-Scripts/blob/4e1e7443744480339aacda992fcffa0516980499/Ubuntu-Desktop-20.04-LTS.sh#L95

Fixed. Thank you!


Amenities filter disapearing

When the mouse is leaving the window opened for the amenities filter, the amenities disappears.

Tested it again. Looks like it was fixed. Thanks!

It isn't fixed. In chrome, I can replicate the issue in both master and staging.

Strange. It was working two days ago perfectly.

Try it yourself.

Just did and commented based on that. It’s really strange that it was working after it was reported and now, 2 days later, it’s not working again.

So this is a known bug from sharetribe:

This will be fixed with the new merged.


feat: status bar so pretty

This PR resolves [MOPLAT-]

Description
support for custom color in statusbar (to be used for offline network indicator)

https://user-images.githubusercontent.com/100233/209189801-5f6fe868-bd86-44ce-aa94-6bb0e0c26da3.mov
PR Checklist

[ ] I tested my changes on iOS and Android.
[ ] I added screenshots or videos to illustrate my changes.
[ ] I added Tests and Stories for my changes.

To the reviewers 👀

[ ] I would like at least one of the reviewers to run this PR on the simulator or device.

Need help with something? Have a look at our docs, or get in touch with us.

tyyyy


Validation of entities with class-validator decorators?

I want to migrate from TypeORM to MikroORM. However, it seems like class-validator is not compatible with MikroORM which is a bit of a setback as the validation of entities with class-validator decorators was really handy.
Are there any plans of a similiar feature or even making MikroORM compatible to class-validator? Or is there a feature already implemented which supports decorator based entity validation?
Kind of related to https://github.com/mikro-orm/mikro-orm/issues/720
It is said we can use class-validator for the DTOs, but as not every field and property of entities are always handled by a DTO and instead are handled internally, a validation for entity properties is really something I'm missing.

Could you prepare a repo with demonstration of what actually does not work with class-validator? I guess it is about the Collection wrapper?

I didn't actually test it yet, but in https://github.com/mikro-orm/mikro-orm/issues/720 it sounds like it would not be advised to use this with MikroORM as of possible sideeffects and class-validator not supporting Collections.
Here is a list with validator decorators: https://github.com/typestack/class-validator#validation-decorators
You can combine multiple decorators to have a very precise validation.

The advice in #720 was mainly about not creating entity via class-transformer, and that won't change. But I think it should be fine to use class-validate to validate it.
Btw the Collection wrapper acts to a certain degree as an array like structure, it has length property and it allows index access (e.g. author.books[1]). So I wouldn't be surprised if it actually works fine with class-validator already.

Oh I see. Sounds great, will give this a try. Thank you.