Everytime I try running flutter I get an OS error

Flutter is always struggling to upgrade its packages.
C:\flutter\flutter_app>flutter packages upgrade -v
fatal: Not a git repository (or any of the parent directories): .git
Building flutter tool...
Running pub upgrade...
[  +31 ms] executing: [C:\Users\Nick\flutter\] git rev-parse --abbrev-ref --symbolic @{u}
[  +76 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[   +1 ms] origin/beta
[        ] executing: [C:\Users\Nick\flutter\] git rev-parse --abbrev-ref HEAD
[  +45 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[   +1 ms] beta
[        ] executing: [C:\Users\Nick\flutter\] git ls-remote --get-url origin
[  +38 ms] Exit code 0 from: git ls-remote --get-url origin
[   +9 ms] https://github.com/flutter/flutter.git
[        ] executing: [C:\Users\Nick\flutter\] git log -n 1 --pretty=format:%H
[  +38 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[   +1 ms] 3b309bda072a6b326e8aa4591a5836af600923ce
[   +7 ms] executing: [C:\Users\Nick\flutter\] git log -n 1 --pretty=format:%ar
[  +37 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar
[   +1 ms] 9 days ago
[        ] executing: [C:\Users\Nick\flutter\] git describe --match v*.*.* --first-parent --long --tags
[  +41 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[   +1 ms] v0.7.3-0-g3b309bda0
[ +170 ms] Running "flutter packages upgrade" in flutter_app...
[  +10 ms] executing: [C:\flutter\flutter_app\] C:\Users\Nick\flutter\bin\cache\dart-sdk\bin\pub.bat --verbosity=warning --verbose upgrade --no-precompile
[+16555 ms] Cannot open file, path = '.\pubspec.lock' (OS Error: Access is denied.
[   +1 ms] , errno = 5)
[  +46 ms] Running "flutter packages upgrade" in flutter_app... (completed)
[  +15 ms] "flutter upgrade" took 16,687ms.
pub upgrade failed (66)

#0      throwToolExit (package:flutter_tools/src/base/common.dart:26:3)
#1      pub (package:flutter_tools/src/dart/pub.dart:170:5)
<asynchronous suspension>
#2      pubGet (package:flutter_tools/src/dart/pub.dart:104:13)
<asynchronous suspension>
#3      PackagesGetCommand._runPubGet (package:flutter_tools/src/commands/packages.dart:59:11)
<asynchronous suspension>
#4      PackagesGetCommand.runCommand (package:flutter_tools/src/commands/packages.dart:82:11)
<asynchronous suspension>
#5      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:356:18)
#6      _asyncThenWrapperHelper.<anonymous closure> (dart:async/runtime/libasync_patch.dart:77:64)
#7      _rootRunUnary (dart:async/zone.dart:1132:38)
#8      _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#9      _FutureListener.handleValue (dart:async/future_impl.dart:129:18)
#10     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45)
#11     Future._propagateToListeners (dart:async/future_impl.dart:671:32)
#12     Future._complete (dart:async/future_impl.dart:476:7)
#13     _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#14     _AsyncAwaitCompleter.complete.<anonymous closure> (dart:async/runtime/libasync_patch.dart:33:20)
#15     _rootRun (dart:async/zone.dart:1124:13)
#16     _CustomZone.run (dart:async/zone.dart:1021:19)
#17     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:947:23)
#18     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#19     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#20     _runPendingImmediateCallback (dart:isolate/runtime/libisolate_patch.dart:115:13)
#21     _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:172:5)

flutter doctor -v
C:\flutter\flutter_app>flutter doctor -v
fatal: Not a git repository (or any of the parent directories): .git
Building flutter tool...
Running pub upgrade...
[√] Flutter (Channel beta, v0.7.3, on Microsoft Windows [Version 10.0.17134.228], locale en-US)
    • Flutter version 0.7.3 at C:\Users\Nick\flutter
    • Framework revision 3b309bda07 (9 days ago), 2018-08-28 12:39:24 -0700
    • Engine revision af42b6dc95
    • Dart version 2.1.0-dev.1.0.flutter-ccb16f7282

[√] Android toolchain - develop for Android devices (Android SDK 28.0.2)
    • Android SDK at C:\Users\Nick\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.2
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
    • All Android licenses accepted.

[√] Android Studio (version 3.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 28.0.1
    • Dart plugin version 173.4700
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)

[√] IntelliJ IDEA Community Edition (version 2018.2)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.2.3
    • Flutter plugin version 28.0.4
    • Dart plugin version 182.4323.44

[√] Connected devices (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 7.0 (API 24) (emulator)

• No issues found!

Can you please add the output of git --version?

Cross-link https://stackoverflow.com/questions/52202923/flutter-running-flutter-fails-could-not-find-a-file-named-pubspec-yaml-upd?noredirect=1#comment91358543_52202923

The git version
C:\flutter\flutter_app>git --version
git version 2.14.1.windows.1

Do you think it could be a problem with git? Everytime I type a command I get fatal: Not a git repository (or any of the parent directories): .git

That's what made me suspicious.
You could try updating. The latest version is 2.18.0

I just did that.
I'm getting my version as
C:\flutter>git --version git version 1.9.4.msysgit.2
But still the error is the same

I updated my version to 2.18 but the problem still persists
C:\>git --version
git version 2.18.0.windows.1

Yes, I am positive! I got rid of it a while ago

I found a temporary solution. When I run the same command on Power Shell as an administrator it doesn't show any error.

@nikhileshp running as admin should not be necessary.
There is some issue with permission settings.

Sorry for not coming back to this earlier.
I assume this issue is stale. Please let us know if you're still seeing this problem.

Are you using a docker image?
When I use cirrusci/flutter the issue occured but using  adamantium/flutter everything worked fine!


[SPARK-29028][DOCS] Add links to IBM Cloud Object Storage connector in cloud-integration.md

What changes were proposed in this pull request?
Add links to IBM Cloud Storage connector in cloud-integration.md
Why are the changes needed?
This page mentions the connectors to cloud providers.  Currently connector to
IBM cloud storage is not specified. This PR adds the necessary links for
completeness.
Does this PR introduce any user-facing change?
Yes.
Before:

After.

How was this patch tested?
Tested using jykyll build --serve

Merged build finished. Test PASSed.

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

Test build #110375 has started for PR 25737 at commit 8f9da49.

cc @srowen Please let me know your thoughts on whether this can be added ?

Test build #110375 has finished for PR 25737 at commit 8f9da49.

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

Merged build finished. Test PASSed.

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

Test build #110420 has started for PR 25737 at commit dc6dd1c.

Merged build finished. Test PASSed.

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

Test build #110420 has finished for PR 25737 at commit dc6dd1c.

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

Merged build finished. Test PASSed.

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

Merged to master

Thank you very much @srowen


Issue in building TFLITE static library for linux environment

Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template
System information

OS Platform and Distribution
Linux Ubuntu 16.04
TensorFlow installed from (source or binary): v1.15.0-rc-2
Python version: 3.6
Installed using virtualenv? pip? conda?: From source
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source): gcc5.5
CUDA/cuDNN version: N/A
GPU model and memory: N/A

Describe the problem
Cannot compile static library for TFLITE inference engine using the provided Makefile. When run, generated_scheme.h will not be link with flatbuffers/flatbuffers.h and will flag variable not declared in this scope for everything
Provide the exact sequence of commands / steps that you executed before running into the problem
git clone https://github.com/tensorflow/tensorflow.git
git checkout tags/v1.15.0-rc-2
cd tensorflow
./tensorflow/lite/tools/make/download_dependencies.sh
./tensorflow/lite/tools/make/build_lib.sh
Any other info / logs

issue can be resolved by removing line 33 and 34 from the Makefile in ./tensorflow/lite/tools/make/Makefile
INCLUDES := \ -I. \ -I$(MAKEFILE_DIR)/../../../../../ \ -I$(MAKEFILE_DIR)/../../../../../../ \ -I$(MAKEFILE_DIR)/downloads/ \ -I$(MAKEFILE_DIR)/downloads/eigen \ -I$(MAKEFILE_DIR)/downloads/absl \ -I$(MAKEFILE_DIR)/downloads/gemmlowp \ -I$(MAKEFILE_DIR)/downloads/neon_2_sse \ -I$(MAKEFILE_DIR)/downloads/farmhash/src \ -I$(MAKEFILE_DIR)/downloads/flatbuffers/include \ -I$(OBJDIR)
To
-I. \ -I$(MAKEFILE_DIR)/downloads/ \ -I$(MAKEFILE_DIR)/downloads/eigen \ -I$(MAKEFILE_DIR)/downloads/absl \ -I$(MAKEFILE_DIR)/downloads/gemmlowp \ -I$(MAKEFILE_DIR)/downloads/neon_2_sse \ -I$(MAKEFILE_DIR)/downloads/farmhash/src \ -I$(MAKEFILE_DIR)/downloads/flatbuffers/include \ -I$(OBJDIR)

So, the issue is resolved here right @SidGATOR

So, the issue is resolved here right @SidGATOR

Yes it is. You can add the changes to the branch


Validation query works for Postgres but not for Oracle

Since the validation query validationQuery="SELECT 1" works only for Postgres and not for Oracle, the PR Web application container will fail to start with the error: Failed to validate a newly established connection.
The validation query is hardcoded in docker-pega7-tomcat-ready/conf/Catalina/localhost/prweb.xml

@ajafoufi Maybe it is an idea to make an hybrid docker-pega7-tomcat-ready container. Based on the configuration you choose, that might be an variable saying: Oracle or PostgreSQL it will fill up the validation query as well as the JDBC prefix as mentioned during your other issue.

I have made the changes locally which I could contribute.

Hi @ajafoufi, great job. Will check.

@ajafoufi Please feel free to submit a pull request.  It will be reviewed accordingly.

@dcasavant  The pull request is already submitted on June, 20.


bump deps

i was able to upgrade 5 deps at once and i used yarn for this

tagging https://github.com/solana-labs/dapp-scaffold in case we decide to submit the PR to the scaffold.


Compile with ROS iron and rolling

03:24:02 /tmp/binarydeb/ros-rolling-gazebo-ros2-control-0.6.0/src/gazebo_ros2_control_plugin.cpp:291:67: error: ‘__gnu_cxx::__alloc_traits<std::allocator<hardware_interface::HardwareInfo>, hardware_interface::HardwareInfo>::value_type’ {aka ‘struct hardware_interface::HardwareInfo’} has no member named ‘hardware_class_type’
03:24:02   291 |     std::string robot_hw_sim_type_str_ = control_hardware_info[i].hardware_class_type;
03:24:02       |

https://build.ros2.org/view/Rbin_uJ64/job/Rbin_uJ64__gazebo_ros2_control__ubuntu_jammy_amd64__binary/169/console
https://build.ros2.org/view/Rbin_uJ64/job/Rbin_uJ64__gazebo_ros2_control__ubuntu_jammy_amd64__binary/
@ahcorde or @bmagyar can you create a release with this change?

https://build.ros2.org/view/Ibin_uJ64/job/Ibin_uJ64__gazebo_ros2_control__ubuntu_jammy_amd64__binary/


Prediction on model in cpp

How exactly do you return a prediction for the keras model in the cpp code? Thanks for the help!

The prediction from Keras model in cpp is returned as DataChunk. Please check method compute_output from KerasModel. The last lines of this method return a prediction.


Add Cloudflare's R2 File Storage

Would it be possible to add Cloudflare's R2 Storage as an option for Livebooks' File System settings?
When I try, I get the following error:

I did a little digging and it looks like this Livebook function may not be compatible with the fact that R2 puts the ACCOUNT_ID first.
PS - Here is the reference docs for how R2 is S3 compatible.

Hey @joeybellerose! Should be fixed on main, let us know if you run into any further issues :)

Wow! I am blown away by how quickly you did that.
Thanks so much @jonatanklosko!


Skip isomorphism check by default

Codecov Report

Merging #8 (8f068b0) into main (9dbfb72) will increase coverage by 0.40%.
Report is 4 commits behind head on main.
The diff coverage is 73.07%.

Additional details and impacted files


Retire WIP app in favor of draft PRs

Investigate whether draft PRs are a suitable replacement for the WIP GitHub Marketplace app installed in the aspnet/Docs repo. Uninstall the app if draft PRs are sufficient.

They are. Much better, except you have to create the PR as a draft PR. Once you remove draft, you can't go back. I think we can live with those limitations.

They are. Much better, except you have to create the PR as a draft PR. Once you remove draft, you can't go back. I think we can live with those limitations.

Lets hold off on this for another month. WIP was convenient for a customer PR where they hadn't signed off.

@scottaddie  lets keep this as it solves problems draft doesn't

Removed the app and branch protection rule on master from our repo. Let's use Draft PRs, when possible, from this point forward.


Provision: Add debug option

Description
Sometimes, to debug issues, the current verbose mode on the provisioning is not enough to find out the real problems.
Add an option to the provision API to allow to print all debug logs from terraform.
Reasons
Improve debugging capabilities.

What should be done other than https://github.com/kyma-project/cli/issues/882 ?

That is all. First this issue needs to be finished and afterwards https://github.com/kyma-project/cli/issues/882

A verbose option has been added to output terraform logs

A verbose option has been added to output terraform logs


Trouble installing W10 guest on Mac

I've generated the script using a LiveUSB of Ubuntu 20.04 and rebooted into MacOS. I'm getting the following when running ./MacBookPro11_3.sh test
VBoxManage: error: Invalid MAC address format
VBoxManage: error: Details: code NS_ERROR_INVALID_ARG (0x80070057), component NetworkAdapterWrap, interface INetworkAdapter, callee nsISupports
VBoxManage: error: Context: "COMSETTER(MACAddress)(Bstr(ValueUnion.psz).raw())" at line 2068 of file VBoxManageModifyVM.cpp

and the W10 guest is giving me the BSOD with Stop Code ACPI Bios Error on booting the W10 install dvd.
I modified the relevant line in MacBookPro11_3.sh to have an even first byte of the MAC address (not sure why this is happening):
- VBoxManage modifyvm "$1" --macaddress1  e58a54e0fdca
+ VBoxManage modifyvm "$1" --macaddress1  e68a54e0fdca

and recreated the guest in VirtualBox, but it's still repeatedly crashing when the W10 install tries to load up. The W10 install DVD boots fine if I don't run the script.
The only setting I wasn't sure about from the README was the Host Network Manager - I have the vboxnet0 adapter set to Configure Adapter Manually -> <IP_ADDRESS>/24 and DHCP enabled - and the Storage. I have one SATA Storage controller with my vdi file in the first slot and the W10 install DVD in the second slot.
Not sure how to proceed - let me know if I should post the script (is that safe?)

I worked around this by downloading an existing W10 ova from Microsoft and running my script on that machine.

@mngyuan the MAC address thing, is actually something I do remember having seen before. So the script takes the real MAC address and based on that one generates one similar to the original. Sometimes the generation seems to generate a none valid MAC. I will make a mental node to look at it.
The "alert" for the standard VBox IP-range is just a soft alert and can be ignored. At least in test =)
If you look in the generated template shell script, some values might have been replaced with "*" these are for manual editing as the script was not fully able to guess the value.
I think I need to revisit this script shortly

no worries, I'm past the vm detection for the game I'm playing. a pafish run is coming up with some VirtualBox artifacts but that might be my fault for installing the guest add-ons. thanks for your hard work!


cdk-rs method_name might replace custom stack walking

The cdk-rs method_name unfortunately did not work, but we were able to implement our own global method name variable to get rid of stack walking on the Rust side


Create dart.yml

Replace this paragraph with a description of what this PR is changing or adding, and why. Consider including before/after screenshots.
List which issues are fixed by this PR. You must list at least one issue. An issue is not required if the PR fixes something trivial like a typo.
If you had to change anything in the flutter/tests repo, include a link to the migration guide as per the breaking change policy.
Pre-launch Checklist

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[x] I signed the CLA.
[x] I listed at least one issue that this PR fixes in the description above.
[x] I updated/added relevant documentation (doc comments with ///).
[x] I added new tests to check the change I am making, or this PR is test-exempt.
[x] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Closing: GItHub actions are already configured for this repo. If there is a more targeted change or addition you'd like to propose, please open a PR with more details and document the motivation.


feat: offer content from query to closest nodes

What was wrong?
Content found via find content queries is not disseminated to other peers who may store it.
How was it fixed?
Implement "poke" mechanism to offer the content found by a find content query to the nodes involved in the query who did not possess the desired content and whose radius is sufficiently large.
Also addressed:

Fix PartialEq implementation for Node so that non-ENR changes are recognized by the routing table.

To-Do

[x] Add entry to the release notes (may forgo for trivial changes)
[ ] Clean up commit history

I have limited the maximum number of poke offers to the query_parallelism configuration parameter. The current default value is 3. I'm not sure whether this limit should be higher, or whether this limit should not exist at all. The Kademlia paper specifies that the found content only be offered to the closest node. My interpretation of the portal spec is that the content should be offered to all peers with sufficient radius.

Yeah, this poke thing isn't in Kademlia at all IIRC. I would say to offer it to everyone you asked the content for along the way, who has a radius that is interested.

@carver from Kademlia section 2.3: "For caching purposes, once a lookup succeeds, the requesting node stores the (key, value) pair at the closest node it observed to the key that did not return the value."
I will change to offering found content to all encountered nodes with sufficient radius. We can always limit this spread in the future if desired.


Set fixture as a class private field

Hi,
This is a great tool you have created!
One small suggestion: when generating a test file using Fixture, it would be nice to have the fixture variable defined as a class field instead of recreating a new fixture instance in each test. Especially when we need to add our own customization, this would avoid doing it in each test method, like :

The PR for this is open - but it was a bit more complex than I thought it would be, so I will be giving it an extra review before merging

0.175 is out with support for this now - you can enable an option to emit a field when using AutoFixture ('Use field for AutoFixture' in the UI or 'UseFieldForAutoFixture' in config files). You can also configure the name for the field in the naming options.
Let me know if that works for you 👍

Ok, well, going to close this now. Feel free to re-open if it's not doing what you want 👍


New Release?

It seems like there are a few changes in master that would be nice (e.g. FakeRedis.enabled? would be awesome). Would it be possible to get a new release?

It's a duplicate of https://github.com/guilleiguaran/fakeredis/issues/198
Anyway, new version release would be welcome :-) @guilleiguaran

Done: https://rubygems.org/gems/fakeredis/versions/0.7.0

@guilleiguaran could you please create a tag and release for 0.7.0? :)

Sorry, forgot to push the tag.
It's pushed now.

Thanks!


Fix fix es regression test

Proposed changes
Issue Number: close #xxx
Because nereids do not support Es external table and complex data type，
we comment on some case first temporarily.
Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run external

run external

run external

run buildall external

run external

run external

run buildall external

run external

run buildall external

run external

run external

run p0


Dockerfile - error while/after Initiating DNS callbeack server (interact.sh)

Hi!
I'm using the Dockerfile - as it is - from this repo.
i tired the startparameter "-h" first: WORKS.
after that, for testing i tried the startparameter "-u https://google.de" (or any other url)
now my output looks like this:
[•] CVE-2021-44228 - Apache Log4j RCE Scanner

[•] Scanner provided by FullHunt.io - The Next-Gen Attack Surface Management Platform.

[•] Secure your External Attack Surface with FullHunt.io.

[•] Initiating DNS callback server (interact.sh).

Traceback (most recent call last):

  File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 699, in urlopen

    httplib_response = self._make_request(

  File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 382, in _make_request

    self._validate_conn(conn)

  File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn

    conn.connect()

  File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 416, in connect

    self.sock = ssl_wrap_socket(

  File "/usr/local/lib/python3.10/site-packages/urllib3/util/ssl_.py", line 449, in ssl_wrap_socket

    ssl_sock = _ssl_wrap_socket_impl(

  File "/usr/local/lib/python3.10/site-packages/urllib3/util/ssl_.py", line 493, in _ssl_wrap_socket_impl

    return ssl_context.wrap_socket(sock, server_hostname=server_hostname)

  File "/usr/local/lib/python3.10/ssl.py", line 512, in wrap_socket

    return self.sslsocket_class._create(

  File "/usr/local/lib/python3.10/ssl.py", line 1070, in _create

    self.do_handshake()

  File "/usr/local/lib/python3.10/ssl.py", line 1341, in do_handshake

    self._sslobj.do_handshake()

ConnectionResetError: [Errno 104] Connection reset by peer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 439, in send

    resp = conn.urlopen(

  File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 755, in urlopen

    retries = retries.increment(

  File "/usr/local/lib/python3.10/site-packages/urllib3/util/retry.py", line 532, in increment

    raise six.reraise(type(error), error, _stacktrace)

  File "/usr/local/lib/python3.10/site-packages/urllib3/packages/six.py", line 769, in reraise

    raise value.with_traceback(tb)

  File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 699, in urlopen

    httplib_response = self._make_request(

  File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 382, in _make_request

    self._validate_conn(conn)

  File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn

    conn.connect()

  File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 416, in connect

    self.sock = ssl_wrap_socket(

  File "/usr/local/lib/python3.10/site-packages/urllib3/util/ssl_.py", line 449, in ssl_wrap_socket

    ssl_sock = _ssl_wrap_socket_impl(

  File "/usr/local/lib/python3.10/site-packages/urllib3/util/ssl_.py", line 493, in _ssl_wrap_socket_impl

    return ssl_context.wrap_socket(sock, server_hostname=server_hostname)

  File "/usr/local/lib/python3.10/ssl.py", line 512, in wrap_socket

    return self.sslsocket_class._create(

  File "/usr/local/lib/python3.10/ssl.py", line 1070, in _create

    self.do_handshake()

  File "/usr/local/lib/python3.10/ssl.py", line 1341, in do_handshake

    self._sslobj.do_handshake()

urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File "/app/log4j-scan.py", line 349, in <module>

    main()

  File "/app/log4j-scan.py", line 319, in main

    dns_callback = Interactsh()

  File "/app/log4j-scan.py", line 185, in __init__

    self.register()

  File "/app/log4j-scan.py", line 193, in register

    res = self.session.post(

  File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 590, in post

    return self.request('POST', url, data=data, json=json, **kwargs)

  File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 542, in request

    resp = self.send(prep, **send_kwargs)

  File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 655, in send

    r = adapter.send(request, **kwargs)

  File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 498, in send

    raise ConnectionError(err, request=request)

requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

+1

Solved!
sudo python3 -m pip install "requests[security]"
after that, restart your pc

+1

Similar output while using the dockerfile:
[•] CVE-2021-44228 - Apache Log4j RCE Scanner
[•] Scanner provided by FullHunt.io - The Next-Gen Attack Surface Management Platform.
[•] Secure your External Attack Surface with FullHunt.io.
[•] Initiating DNS callback server (interact.sh).
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 382, in _make_request
self._validate_conn(conn)
File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1010, in validate_conn
conn.connect()
File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 416, in connect
self.sock = ssl_wrap_socket(
File "/usr/local/lib/python3.10/site-packages/urllib3/util/ssl.py", line 449, in ssl_wrap_socket
ssl_sock = ssl_wrap_socket_impl(
File "/usr/local/lib/python3.10/site-packages/urllib3/util/ssl.py", line 493, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
File "/usr/local/lib/python3.10/ssl.py", line 512, in wrap_socket
return self.sslsocket_class._create(
File "/usr/local/lib/python3.10/ssl.py", line 1070, in _create
self.do_handshake()
File "/usr/local/lib/python3.10/ssl.py", line 1341, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:997)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 755, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.10/site-packages/urllib3/util/retry.py", line 574, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='interact.sh', port=443): Max retries exceeded with url: /register (Caused by SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:997)')))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/log4j-scan.py", line 349, in
main()
File "/app/log4j-scan.py", line 319, in main
dns_callback = Interactsh()
File "/app/log4j-scan.py", line 185, in init
self.register()
File "/app/log4j-scan.py", line 193, in register
res = self.session.post(
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 590, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 514, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='interact.sh', port=443): Max retries exceeded with url: /register (Caused by SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:997)')))

For now, if you want, you can use my prebuilt images at: https://hub.docker.com/r/jauderho/log4j-scan
Usage:
docker run --rm -ti jauderho/log4j-scan:latest -u <URL>
I'll be submitting a pull request to this repo when I get some time so that folks can build locally.

Hi @jauderho! Can you please submit a PR with your fixes of the Dockerfile :)

Hi @NopeNix
The DNS callback listeners are getting constant outages over the past days. This will be probably the reason you're receiving connection reset errors. Another reason would be if the network connection is blocking this host.


Document GCG Codegen for GraphQL operation and fragment tags

Summary
This is connected to #901 in that we'd like to expand what is done with GraphQL Code Generator.
The basic idea is to have code generation that can keep up with Relay so that we enable and encourage better fragment best practices and enable a better control of the operation/fragment pipeline in the future. For now the goal is to be able to write queries with gql tags, interpolate fragments into them from other files (also written with gql tags), and to expose all gql tags A) with types somehow, and B) have separate __generated files with a large combined operation.
This encourages to define data requirements in the form of fragments in several places, and it actually creates a very compelling end to end experience with urql, where it becomes more Relay/Framework-like and encourages that paradigm. (Together with #964 this will be really strong)
Proposed Solution
TBD (This is still a placeholder and no proposed implementation path exists yet)
Requirements
TBD
cc @JoviDeCroock @dotansimha

We have some progress on generating inline types: https://github.com/dotansimha/graphql-code-generator/pull/6267

The gql-tag-operations preset is now available: https://www.graphql-code-generator.com/docs/presets/gql-tag-operations
Also started working on fragment type masking experiment: https://github.com/dotansimha/graphql-code-generator/pull/6442

Such a good thingy this! Thanks so much for the hard yards @n1ru4l 👌🏻

@n1ru4l is there a way we can use the gql operator exported from urql? Started a bit of an experiment a while back here

@JoviDeCroock Should be possible with module augmentation/declaration merging:
I quickly generated the contents of the index.ts file to the following:
/* eslint-disable */
import * as graphql from './graphql';
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';

const documents = {
  '\n  query Foo {\n    Tweets {\n      id\n    }\n  }\n': graphql.FooDocument,
  '\n  fragment Lel on Tweet {\n    id\n    body\n  }\n': graphql.LelFragmentDoc,
  '\n  query Bar {\n    Tweets {\n      ...Lel\n    }\n  }\n': graphql.BarDocument,
};

// export function gql(source: string): unknown;
// export function gql(source: string) {
//   return (documents as any)[source] ?? {};
// }

export type DocumentType<TDocumentNode extends DocumentNode<any, any>> = TDocumentNode extends DocumentNode<
  infer TType,
  any
>
  ? TType
  : never;

declare module '@urql/core' {
  export function gql(
    source: '\n  query Foo {\n    Tweets {\n      id\n    }\n  }\n'
  ): typeof documents['\n  query Foo {\n    Tweets {\n      id\n    }\n  }\n'];
  export function gql(
    source: '\n  fragment Lel on Tweet {\n    id\n    body\n  }\n'
  ): typeof documents['\n  fragment Lel on Tweet {\n    id\n    body\n  }\n'];
  export function gql(
    source: '\n  query Bar {\n    Tweets {\n      ...Lel\n    }\n  }\n'
  ): typeof documents['\n  query Bar {\n    Tweets {\n      ...Lel\n    }\n  }\n'];
}

Which worked instantly
/* eslint-disable @typescript-eslint/no-unused-vars */
import { gql } from "urql"
import { DocumentType } from '../gql';

const FooQuery = gql(/* GraphQL */ `
  query Foo {
    Tweets {
      id
    }
  }
`);

const LelFragment = gql(/* GraphQL */ `
  fragment Lel on Tweet {
    id
    body
  }
`);

const BarQuery = gql(/* GraphQL */ `
  query Bar {
    Tweets {
      ...Lel
    }
  }
`);

const doSth = (params: { lel: DocumentType<typeof LelFragment> }) => {
  params.lel.id;
};

@JoviDeCroock I adjusted the preset! Shout outs to @PabloSzx for helping me with this. 🚀
It is now possible to provide an augmentedModuleName config option for the preset.
  ./dev-test/gql-tag-operations-urql/gql:
    schema: ./dev-test/gql-tag-operations-urql/schema.graphql
    documents: './dev-test/gql-tag-operations-urql/src/**/*.ts'
    preset: gql-tag-operations-preset
    presetConfig:
      augmentedModuleName: '@urql/core'

Link
That allows writing this code:
/* eslint-disable @typescript-eslint/no-unused-vars */
import { gql } from 'urql';

const FooQuery = gql(/* GraphQL */ `
  query Foo {
    Tweets {
      id
    }
  }
`);

const LelFragment = gql(/* GraphQL */ `
  fragment Lel on Tweet {
    id
    body
  }
`);

const BarQuery = gql(/* GraphQL */ `
  query Bar {
    Tweets {
      ...Lel
    }
  }
`);

Which will generate an index.d.ts file:
/* eslint-disable */
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';

declare module '@urql/core' {

  export function gql(
    source: '\n  query Foo {\n    Tweets {\n      id\n    }\n  }\n'
  ): typeof import('./graphql').FooDocument;

  export function gql(
    source: '\n  fragment Lel on Tweet {\n    id\n    body\n  }\n'
  ): typeof import('./graphql').LelFragmentDoc;

  export function gql(
    source: '\n  query Bar {\n    Tweets {\n      ...Lel\n    }\n  }\n'
  ): typeof import('./graphql').BarDocument;

  export function gql(source: string): unknown;

  export type DocumentType<TDocumentNode extends DocumentNode<any, any>> = TDocumentNode extends DocumentNode<
    infer TType,
    any
  >
    ? TType
    : never;
}

Link
See https://github.com/n1ru4l/character-overlay/pull/339 for a usage example in a small app.

I did some progress on a babel plugin that rewrites gql tag statements to TypedDocumentNode imports from the generated artifacts.
The usage flow is the following:

Run codegen in watch mode for generating these files:

gql/index.d.ts: Overrides function signature of gql exported from urql via module augmentation
gql/graphql.ts: Contains generated TypedDocumentNodes

Use exported gql from urql and module augmentation for inferring the correct types from the gql/index.d.ts file
Babel plugin replaces gql usages with actual TypedDocumentNode imports located in the  gql/graphql.ts artifact from codegen, resolving the unreferenced fragment issue (due to referencing global fragments; fragment string interpolation would break type inference)

References
Babel Plugin Code: https://github.com/dotansimha/graphql-code-generator/pull/6492/files?file-filters[]=.lock&file-filters[]=.md&file-filters[]=.ts&file-filters[]=.yml#diff-253be75542b9e0e3e80021c380f34c220a00466081f7f236d14336e169996a98
Example babel plugin usage setup with vitejs: https://github.com/n1ru4l/character-overlay/commit/52a4c8ec94cc42a2a8b6f726986c9238fa4ae152#diff-6a3b01ba97829c9566ef2d8dc466ffcffb4bdac08706d3d6319e42e0aa6890ddR29-R57

Up next: a data/fragment matching support for this new preset ;) https://github.com/dotansimha/graphql-code-generator/pull/6442

Coming back to this we can leverage the GCG near operation file config to advise people on creating the static-typings, ... however at the end of the day we still have this two-way street where we would require people to include the fragments in their queries, we could tweak urql to look for FragmentSpread in queries and automatically include the definitions from a cache we keep in the gql helper, WDYT about that?


File tree collapses by itself when opening directories.

When I open a subdirectory in the file tree, it completely collapses, and I have to uncollapse the directory I was working in. Basically, when I open or close a directory, the whole file tree collapses. This is really annoying, and I really need help fixing it.
Here's a GIF showing what's happening:

Is anyone going to help fix this? It's been 13 days, and it's really bugging me.

Okay, it's been more than a month? Has this been fixed yet?

@sykeben Did you try reloading brackets without extensions? Looks to me a problem caused by some extension which is modifying file tree DOM.

Ill take a look, I tried that before but I don't remember it working, but I'll check again for my own sanity.

So, I reloaded without extensions (through the debug menu) and the issue still happens. If you need to know, the version I have is windows-release-1.13.1 fc2ebbeea.

So, I reloaded without extensions (through the debug menu) and the issue still happens. If you need to know, the version I have is windows-release-1.13.1 fc2ebbeea.

Thanks for reporting this @sykeben. We're looking into the issue at the moment. Meanwhile can you help us by checking the console in developer tools, and report if there are any warnings or errors logged.
Also, can you provide us with the list of extensions that you currently work with. Thanks again for reporting. Allow us sometime to debug the issue.

I'll take a look at the logs, and send you my list of extensions. Thanks a ton for looking into this!

Below are the logs (I couldn't copy-paste so I had to insert screenshots).
With Extensions

Without Extensions

Once again, thanks for all your help!

Thanks a ton for the error logs. I'll take a look into this. Also, do provide me with list of extension if you can.

Here's a list of non-default extensions I'm currently running:

Beautify 2.8.0
Brackets Icons 1.5.7
Indent Guides 1.3.11
JSHint 2.2.20
Reasonable Comments 1.3.0

Thanks.

I am not able to reproduce this on my machine. But, this might be due to a corrupted state.
Try this:

Completely close Brackets (very important)
Open Run Command Box (Win + R)
Paste %appdata%
Open Brackets Folder
Copy the state.json to some safe location, and then delete it from the Brackets folder
Relaunch Brackets

You'll start over from a fresh state.
Check if the problem is solved. If so then probably something went wrong with the serialization of your existing state.
If the problem still occurs, close Brackets again (important) and restore your original state.json back.

Looks like moving the original state.json file away from the Brackets appdata folder fixed it. Thank you guys so much for helping me fix this.


Create heh.txt

@TRIGianni I am sorry for a delay with processing your request. It seems to be a duplicate for request #1697, which is already merged. Please comment if you have any questions. Thank you!


WIP: App lifecycle suspending -> detached

Fix graphql_flutter on the most recent flutter version by updating app lifecycle
We need to restrict flutter sdk version with a lower bound, and mark this as a breaking change before merging

idk how this got created 🤦♂


New User: AutoLotto

fixes #470
Added 500x200 logo for AutoLotto and added their site in users.yml

Can you resolve the conflicts in this branch?

hey @thejameskyle I merged Issue472 into Issue472. Let me know if that resolves the merge conflict (I think it should as it now has GoDaddy and AutoLotto's logos.
I'll wait for you to merge PRs I submit for new users before I pick up the next issues (apparently there a many outstanding) so this doesn't happen again. I got to impatient I guess lol
Cheers!

I'm going to cherrypick your commits because I was hoping for a rebase not a merge as that adds extra commits.

Merged via https://github.com/babel/babel.github.io/commit/f96133ad2ebf1dcddf61d010ceac27f858a28736

@gsvolt If you do open PRs for the rest can you do them in reverse order so that they are added to the page in the order they were opened?


New vulnerabilities in used old dependencies: inquirer & lodash

npm audit
lodash  <=4.17.20
Severity: high
Prototype Pollution - https://npmjs.com/advisories/1065
Prototype Pollution - https://npmjs.com/advisories/1523
Command Injection - https://npmjs.com/advisories/1673
Prototype Pollution - https://npmjs.com/advisories/577
Prototype Pollution - https://npmjs.com/advisories/782
No fix available
node_modules/vorpal/node_modules/inquirer/node_modules/lodash
inquirer  <=0.11.4
Depends on vulnerable versions of lodash
node_modules/vorpal/node_modules/inquirer
vorpal  *
Depends on vulnerable versions of inquirer
node_modules/vorpal

Also running into this. I initially thought the issue was with Inquirer, but it appears they do not have lodash listed as a dependency, so perhaps Vorpal needs to upgrage lodash. Here is a screenshot of the audit output from npm.

anyone know a maintained fork of vorpal or something similar?

This is really disappointing.  There are currently 17 open pull requests so clearly people are trying to help maintain this.  But the project owner appears to have somewhat abandoned it.  He even suggests someone "shoot him a note" to help maintain it, but there have been no updates in years.

If you wanna help just fork it yourself in place of expecting someone that moved on to work on it again, no?

@sabbaticaldev, with respect, forking doesn't help the community.  All it does is fragment things.  The owner of this repository should ask for contributors on this repository.  Even if I fork the project, I cannot simply publish new versions of this artifact.  I'd have to create a different name and then we just add community confusion.

"dependencies": {
"lodash": "^4.17.21",
},
"overrides": {
"lodash": "$lodash",
}
Add dependencies explicitly and overrides them, in the package.json file

@robross0606 there is no fragmenting if the original work stopped like the case here. There is just complaining and laziness.

It costs nice for you to be nice too, @robross0606. Let me remind you that you started this with your condescending tone "This is really disappointing". You are not entitled to free work from free software, you know? In place of wasting so much of our energy with this useless discussion you could have done it the right way. Have a nice day and week, try better next time.

How is "disappointing" condescending?  Seriously?  Disappointing is a feeling I have.  I'm saying I'm disappointed that this repo hasn't handled shutdown properly:

It hasn't handed off to another maintainer.
It hasn't posted notice in README as to maintenance status.
It hasn't archived on GitHub.
It hasn't accepted outstanding merge requests.

That's disappointing to me. There's nothing condescending there and nothing hurtful.  Sorry, I don't know why you got feelings hurt by that, but you may want to look up the definition of "condescending". (Hint: That last sentence was condescending.).


Http error codes

This is actually two separate commits. One to fix postRouteServerMiddleware not being called. The other is giving a setStatus action and its relevant reducer.
:eyeglasses: @nramadas @schwers

LGTM. :fish: 🍣


avoiding error in new_subject method

Fixed some Sentry errors

Closing for now, see discussion https://github.com/stanfordnmbl/opencap-api/issues/136


History got lost after 14 days

Hello, this morning I reached the level of 14 days using the corona warn app on iPhone.
I was surprised that I saw the risk state "Unbekanntes Risiko". The app indicates, that I am not using the app long enough to receive a risk state.
Yesterday evening I shortly deactivated the "Risiko-Ermittlung". Maybe this has an impact.
Regards
Karsten Schiller

Hi @karstenschiller ,
Thanks for reporting this bug. Could you please tell us more detail, for example:

How long did you disable the "Risiko-Ermittlung"?
Do you disable it in the app or in the system setting?
Thanks.

Hi, to switch of "Risiko-Ermittlung" I used the switch within the app. I went back to the main screen. There I saw the status, that "Risiko-Ermittlung" was inactive. After that I activated it again within the app. So the deactivation phase was <=1 min.
Some hours later I still saw on the main screen that the app was collecting data 13/14 days but the last update/sync ("Aktualisiert") was before the point in time, when I deactivated "Risiko-Ermittlung"
Most likely the loss of historical data appeared after the 14 day level was reached.

Hi, to switch of "Risiko-Ermittlung" I used the switch within the app. I went back to the main screen. There I saw the status, that "Risiko-Ermittlung" was inactive. After that I activated it again within the app. So the deactivation phase was <=1 min.
Some hours later I still saw on the main screen that the app was collecting data 13/14 days but the last update/sync ("Aktualisiert") was before the point in time, when I deactivated "Risiko-Ermittlung"
Most likely the loss of historical data appeared after the 14 day level was reached.

Hi @karstenschiller ,
Thanks very much. cc @inf2381

Hi, same problem here and I have not deactivated anything yesterday. Counter just went down to 0.

Bug fixed - tests written - PR opened (#807 – still in draft to iron out the rough edges).

Same here. Counter is back to 0 days, I had not deactivated tracking. Question: what is the impact? Will checks still work? Does this have an impact on the reliability of the app?

Similar problem here. Today my counter went from 14/14 days down to 9/14 days. Tracking switch was on the whole time. I just opened the app again after a few hours.

The same problem also happens on android devices.

The same problem also happens on android devices.

Hi @KarstenSchiller ,
Thanks again for your test on Android. Could you please share more information for our Android devs?
cc @jakobmoellersap @harambasicluka

It is not a 100% problem:
On the smartphone of my wife we see the grey risk status on the main screen only for around 1s after starting the app. After that, I see 14/14 days in green.
On a Samsung tablet I see in grey "Unbekanntes Risiko" (not sure since when). The app was installed on June 16th. I did not open the app between ~June 20th and today.
On this device I meanwhile received an error message (Ursache: 2) which indicates a lack of memory. The details show an exception "NotEnoughSpaceOnDive" and some more problems. I'll delete some apps and test again.

After deleting some other apps "corona warn" seems to work fine: "13 von 14 Tagen aktiv" / "Aktualisiert: Heute, 20.15".
I'll send an update tomorrow evening in case of a problem after 14 days.

Same here, history reset after 14 days, did not touch app or settings (iOS 13.5.1, iPhone XR)

Mine went from 14/14 and “Niedriges Risiko” to 10/14 (“Niedriges Risiko), last updated 18:44 as expected.
My wife’s app went from 9/14 (“Niedriges Risiko) to 0/14 and had to tap through the introduction of the app again which is now showing “Risiko unbekannt”.
Neither of us changed any settings but I know she’s had airplane mode activated last night.

Observation: on my private iPhone, everything still works. Shows 14/14 days, check was done half an hour ago.
On my work iPhone I get the „not enough data“ error and 0/14 days since the check ran today.
Main difference: I open the app at least once daily on my private phone, but not every day on my work phone. Maybe that’s part of the reason why it fails. I guess the app does some „stuff“ when you open it and that should be done daily. If there’s too nicht time between the app being run, this happens. It’s just a guess, though.

I didn’t switch off anything. Yesterday it was 13/14 and today it dropped to 7/14 with no reason... or I just don’t understand the reason...

Didn’t switch off anything, too, and am down to 4 days, but installed on day one and had reached 14th day today. How can I help you with this issue?

Having the same issue. Never deactivated anything.
Did the app pruned the history or is it just a visual bug?

Observation: on my private iPhone, everything still works. Shows 14/14 days, check was done half an hour ago.
On my work iPhone I get the „not enough data“ error and 0/14 days since the check ran today.
Main difference: I open the app at least once daily on my private phone, but not every day on my work phone. Maybe that’s part of the reason why it fails. I guess the app does some „stuff“ when you open it and that should be done daily. If there’s too nicht time between the app being run, this happens. It’s just a guess, though.

At least for me, that‘s not the issue.
Installed day one and I opened the app at least once a day. Still now down to 7/14.

Same problem here (iPhone7/ Softwareversion 13.5.1)
After showing me „14 von 14 Tagen aktiv“ it‘s like that

But I can still find the „Kontaktprotokoll“ on my phone:

Dear app users,
The hot fix is available at App Store now. Please update your app.
Thank you very much for your support.

Downloaded the update just now, but nothing changed - it still says 7/14 days saved instead of 14. Does that mean my exposure checks from before 24 June have been permanently lost?

The update didn’t bring back my lost days, too.

Update installed. Still says 0/14 days. Will this fix itself when the app does its first check?

Yes, the update is not able to fix counters that jumped back to 7 days (or any other values), but will only prevent that from happening in the future. Your contact events are, however, NOT affected by that, since they are not stored by the app but the exposure notification framework.

Ok. So I just have to wait at least 24 hours from now? And hope it’ll do the check sometime? I cannot force it to manually update and I also cannot predict when it will do the check. So for the next 24 hours i will not now about possible risks, correct?

Events saved in the exposure notification framework would be visible in my device’s settings as “exposure checks”, right? Because those only go back to 24 June (7 days) for me, just like the counter in the app - even though I’ve had it installed for 15 days now, which is what sparked my concern about contact events being lost in the first place.

Because those only go back to 24 June (7 days) for me

That is correct. The first „infected“ keys were distributed to the app a week ago. So perfectly normal.

Because those only go back to 24 June (7 days) for me

That is correct. The first „infected“ keys were distributed to the app a week ago. So perfectly normal.

Makes sense, thanks!

Update from my side: my app is back to „normal“ though it „lost“ 14 days. But risk calculation seems to work again and I am relieved to see that.
Thank you to the team for fixing this nasty, but ultimately not severe bug in 24 hours! !

Since the bug was fixed with a previous hotfix, we'll close the issue accordingly. If you experience it again with latest app and iOS version, please open a new, dedicated issue for that


Symmetry code doesn’t work

Hi @ZiyaoLi ,
I tried the symmetry code example based on your colab notebook. It does n’t seem to work.
I installed libmsym package which was a dependency, though I did n’t find any installation instructions for this in the repo.
Would be great if you could look into this.
Regards
Rakesh

If the model gives far apart tetramer, it indicates that the model tends to think the input sequence cannot form a tetramer.
You may check if the monomer structure is of anticipation.
libmsym is not required. It's only used in training.

I tried your colab notebook example. When I ran without libmsym, it was complaining about this dependency.
The monomer structure based on your example sequence in the colab notebook seemed fine to me.

Thanks for the reply. I'll remove the dependency.

Hi @ZiyaoLi ,
Did you remove the dependency for libmsym. I don’t see any changes being made in the repository.
Regards
Rakesh


Wallet endpoints needed for Atomic Swaps

This are the endpoints I can think of that are needed for atomic swaps

login(list-of-coins) - to make sure the user has a wallet, and to get the public keys
swapkeys(list-of-coins) - the derivation of the keys for swaps
getbalance(list-of-coins) - we need to fetch a users balance (this will also be done before each swap and we will look at current swaps to check a user has enough balance)
sendcoins(coin, list-of-addresses) - we need to send coins to an atomic swap script so - sendcoins(list-of-addresses) - (note we may also add a swap fee address)
sign-input-hash(coin, address, hash) - when we spend the swap we will generate the hash of the input to sign

What is the use-case for login and list of coins?
What is the use-case for swap-keys, is that accounts that are of type "swap"? Why does the dapp need that?
Get balance - Does the user have to decide before the signing process how much they want to offer, or can that be done in the wallet UI? What does the balance help with?
Send Coins - should the wallet broadcast transaction or the dapp? I guess the wallet should broadcast it and deliver result to the dapp?
sign-input-hash, does the wallet at this point have the hash or can it only be derived by the dapp?

What is the use-case for login and list of coins?

We want to make sure the user has a wallet with coins before we open a swap entry, this is more for user experience then anything (i.e if you try to  make a swap and you don't have enough balance it will tell you, but also its sort of a an additional safety check for buyers to know the seller has coins)

What is the use-case for swap-keys, is that accounts that are of type "swap"? Why does the dapp need that?

This will be the key that is committed to in the swap, look in the script its the <sender-key> and  <receiver-key>
See the BCIP https://github.com/block-core/bcips/blob/75959a87f86cee6c57d8f605cdeb3f7596df2e69/bcip-002.md#the-swap-scripts
We will need later to sign the input using this key in order to claim the swap coins so its pretty essential.

Get balance - Does the user have to decide before the signing process how much they want to offer, or can that be done in the wallet UI? What does the balance help with?

The signing processes happens only after balances where established (I assume you mean the special swap script signature) we send coins to that script.
Ideally the seller will commit to an amount before hand yeah but its not mandatory, if we have a processes in place that they can negotiate the amount before starting the onchain swap we could totally do that.

sign-input-hash, does the wallet at this point have the hash or can it only be derived by the dapp?

The hash is derived when building the scriptsig to spend the special custom swap script, so in theory the wallet could build it if it was given the parameters, however it is a bit complicated
This is the line I would like to delegate to the wallet
https://github.com/block-core/blockcore-atomic-swaps/blob/main/src/Blockcore.AtomicSwaps/Shared/SwapBuilder.cs#L90
Notice we can build the hash in the dApp and then we can ask the wallet to sign it, to delegate the creation of the hash to the wallet. if we can recreate the method GetSignatureHash the wallet could do that as well

"additional safety check for buyers to know the seller has coins"
To verify that, we must sign a message based off the keys that holds the funds in that specific account. The website can of course "verify" through just checking data returned from wallet, but has zero security.
"This will be the key that is committed to in the swap"
Does the dapp require to see the clear-text version of the public key? Can't that go encrypted from sender to receiver and back?
What if anyone could go anywhere and share a small JSON-message and paste that into their wallet and it would construct the required atomic swap transaction? That's the goal here, so that the dapp becomes just a fancy way of explaining stuff and guiding the user, while we fully decentralize the swaps to use any means of communication?

To verify that, we must sign a message based off the keys that holds the funds in that specific account. The website can of course "verify" through just checking data returned from wallet, but has zero security.

When I think about it that is not at all guarantee, a malicious user can always just open a second wallet on the another browser and reuse outputs. Unless we pass proofs to the backend and assuming the same backend is used they can get rejected.

Does the dapp require to see the clear-text version of the public key? Can't that go encrypted from sender to receiver and back?

But why its gonna be public data anyway as this pubkey will be on the chain

What if anyone could go anywhere and share a small JSON-message and paste that into their wallet and it would construct the required atomic swap transaction

We don't need to reconstruct the whole trx just the swap script

The idea of recreating using a url is very interesting, as we discussed in the call yesterday we should have a second BCIP for such a protocol


npm install vue-router-mock@2 does not work

Reproduction
npm install vue-router-mock@2 --save-dev
npm ERR! code ETARGET
npm ERR! notarget No matching version found for vue-router-mock@2.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

npm ERR!      /Users/user/.npm/_logs/2021-04-20T23_46_41_778Z-debug.log

Steps to reproduce the behavior

Try to npm install

Expected behavior
The package to be available
Actual behavior
Package isn't published

Apparently it's just npm install vue-router-mock --save-dev, not sure where the @2 came from, probably good to update the readme for that.


Add pytz in requirements.txt

When you deploy masakari with setup.py pytz is required. Additionally, masakari-deploy fails to deploy masakari if it's not in requirements.txt.

@muroi Thanks for the fix. LGTM


fix plain page encoding bug (#329)

fix #329

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


[chore] update microsoft link

Changes
Update link which now redirects to another url and causes markdown-link-check error
Merge requirement checklist

[x] CONTRIBUTING.md guidelines followed.
[ ] Change log entry added, according to the guidelines in When to add a changelog entry.

If your PR does not need a change log, start the PR title with [chore]

[ ] schema-next.yaml updated with changes to existing conventions.

Hm it is still not working. @arminru do you know are there special settings for markdown check? I was thinking the problem is in redirecting but final working url is also causing check to fail

@trisch-me Sometimes the link check is a bit spotty, maybe the resolution and/or response is taking too long from the data center where the Github workflow is running. I'd not be surprised if re-running it once or twice would make it pass.
The settings don't override anything w.r.t. redirection: https://github.com/open-telemetry/semantic-conventions/blob/main/.markdown_link_check_config.json
In https://github.com/open-telemetry/opentelemetry.io they improved stability by introducing a cache for external reference checking but we haven't invested in setting this up in this repo here since it used to be working well enough for the most part.

@arminru I thought so too, but it looks like it is failing for all PRs.
From config I see we take only "aliveStatusCodes": [200, 403]. The url returns 302 and redirects to another one. But I am not sure it is the issue here because current PR has new url.
Taking into account that it is always failing after 3 minutes it looks like there is some problem with tool itself and it raises timeout

Ok it is working now so the problem was with that particular url. But I'm not sure I see the reason why it was failing

Ok it is working now so the problem was with that particular url. But I'm not sure I see the reason why it was failing

we've seen issues in the java instrumentation repo with several sites rejecting bot requests: https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/0a5c31193cb331dd47733a172db8d39c9e7016dd/.github/scripts/markdown-link-check-config.json#L7-L26

Oh I see, so you mean that microsoft start to block requests from this block. This makes sense


The action 'Change Access Tier...' is enabled when selecting more than one Append blob

Storage Explorer Version: 1.15.0-dev
Build: 20200804.19
Branch: master
Platform/OS: Windows 10/ CentOS 7.6.1810 (Core) / MacOS Catalina
Architecture: ia32/x64
Regression From: Previous release(1.14.2)
Steps to reproduce:

Expand one storage account -> Blob Containers.
Create one blob container -> Upload two blobs as Append blob.
Select the two Append blobs -> Right click the selected blobs.
Check the state of the action 'Change Access Tier...' on the context menu.

Expect Experience:
The action 'Change Access Tier...' is disabled.

Actual Experience:
The action 'Change Access Tier...' is enabled and can be executed successfully.

More Info:
This issue also reproduces for Page blobs.

Hi @JasonYeMSFT
Verified this issue on build master/20200812.2.
The action 'Change Access Tier...' is enabled when selecting one Page/ (Append) blob and one Block blob.
This issue also reproduces when selection Page/ (Append) blobs and Folders.

@v-xianya The current behavior is by design. The intention is to not block users when their selection include blobs that don't have access tier. If they change access tier on them, those blobs will be ignored.

@JasonYeMSFT OK, thank you for the clarifying. We are going to close this issue.


Use select options value and label

Fixes issue with user input when using a "select". The options labels were not being used, just the values.
Proposed Changes

Retrieve both value and label from parameter options
Use value and label when generating the InputElement, producing a better UX

Code improvements to support SELECT's options both with and without labels. Now, it doesn't break select inputs like Timeout in the Publish form:

It also displays options to users using the label (instead of the value) when available. For instance, for algo params:

The current version is displaying the value instead of the label in this case:


Support for Vinejs

Can you add support for vinejs :

https://github.com/vinejs/vine
https://vinejs.dev/docs/introduction

Thanks in advance

Launched as @typeschema/vine


Add CHSH with Estimator tutorial

Summary
This PR adds a new tutorial: CHSH with Estimator tutorial.
QPE with Sampler tutorial is in a separate PR #404
Co-authored-by: @adcorcol
Co-authored-by: @beckykd
Details and comments
Fixes #

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.02%) to 62.336%

Totals

Change from base Build<PHONE_NUMBER>:
-0.02%

Covered Lines:
2850

Relevant Lines:
4572

💛  - Coveralls

@HuangJunye Same question - is this good to go?

@kt474 I need to incorporate some changes from the feedback of the user testing session. After that it should be good to go.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: HuangJunye:x: tmittal947You have signed the CLA already but the status is still pending? Let us recheck it.

@tmittal947 Can you please sign the CLA as you are a co-author of the PR.

@kt474 This PR should be good to be merged. Only thing I need to address from the user testing is to change the plot colors. @JulesMurphy can the designers team provide color choices? I personally this won't be a blocking issue for merging. We can always change the color in a separate PR.

@HuangJunye Done


[aes/dv] added read check for IV

Small update to support the newly added feature that made the IV readable.
the change adds a check that the IV is cleared correctly

Looks good. My only question is whether you want to randomise whether to do the read_iv calls, to vary the timing a bit more. But that sacrifices some observability, so I'm not really sure what's best.

I agree this test is very directed - but the wait for IDLE already dictates timing somewhat so I am not sure the timing would change a whole lot.
the Idea of this test is simply to check that when the DUT  reaches Idle after a clear command  the register is indeed cleared.


Large image directory in S3

Core Version: 0.7.9
System: dnd5e 1.2.4 (Atropos)
moulinette-core 1.4.1 (Sven Werlen)
moulinette-gameicons 1.1.0 (Sven Werlen)
moulinette-imagesearch 1.3.0 (Sven Werlen)
moulinette-scenes 1.2.0 (Sven Werlen)
moulinette-sounds 1.1.0 (Sven Werlen)
moulinette-tiles 1.6.0 (Sven Werlen)
With a large image directory in S3 (for instance the entire map making pack from Forgotten Adventures) the indexing of the assets fails.  If I keep removing items it will eventually get to a point where the indexing works, but if I try to do it for the full set of items then it doesn't work.  No errors in the console, the message just never comes up to say it has finished and the index is not updated.

I think that this issue is now fixed. It was caused by a strange issue in Foundry itself. I implemented a workaround to avoid the issue and people confirmed that large directories on S3 work now. Could you please update the core module and re-test?
I'll close this issue. Please re-open it if it's not fixed for you. Note that some people also mentioned that FVTT doesn't support well spaces in folder names.

Yep working now, thanks!  I had a workaround of indexing on a local instance and then copying up the JSON, but it working on the server neatly is so much better, great module.


AttributeError: 'Config' object has no attribute '_mypy_results_path'

I get this error when using the plugin v0.10.3 together with xdist 3.5.0
addopts = --numprocesses=auto --mypy
.nox/tests-3-12/lib/python3.12/site-packages/_pytest/main.py:306: PluggyTeardownRaisedWarning: A plugin raised an exception during an old-style hookwrapper teardown.
Plugin: terminalreporter, Hook: pytest_sessionfinish
AttributeError: 'Config' object has no attribute '_mypy_results_path'

Hey thanks for the report!
I haven't been able to repro with Python 3.12, pytest-xdist-3.5.0, and pluggy-1.4.0 :thinking:
$ venv/bin/pytest --mypy -n auto demo/test_demo.py
====================== test session starts =======================
platform linux -- Python 3.12.1, pytest-8.0.0, pluggy-1.4.0
Using --randomly-seed=3813770279
rootdir: /home/dtux/Projects/pytest-mypy
configfile: tox.ini
plugins: xdist-3.5.0, mypy-0.10.3, randomly-3.15.0, forked-1.6.0, cov-2.12.1
8 workers [4 items]
...F                                                       [100%]
============================ FAILURES ============================
__________________________ test session __________________________
[gw1] linux -- Python 3.12.1 /home/dtux/Projects/pytest-mypy/venv/bin/python
mypy exited with status 1.
============================== mypy ==============================
demo/uncollected.py:1: error: Incompatible types in assignment (expression has type "int", variable has type "str")  [assignment]
Found 1 error in 1 file (checked 1 source file)
==================== short test summary info =====================
FAILED demo/test_demo.py::mypy1.8.0-status
================== 1 failed, 3 passed in 1.39s ===================

What version of Pytest are you using?


[Event Request] Page 497 Reservation Entries - OnCancelReservationOnBeforeConfirm

Hi Team,
In Page 497 we need possibility to have our additional checks . Having event in the trigger OnAction of action CancelReservation , would be a perfect solution :

[IntegrationEvent(false, false)]
local procedure OnCancelReservationOnBeforeConfirm(var ReservEntry: Record "Reservation Entry")

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.


Omitting Stale Measurements

Extrapolating possible intent from that "string_received" global before, this patch only prints EC_data values if they were obtained during the current loop() iteration. Otherwise, "---" is logged instead, via ternary operator magic.
.
.
Sidenote: ecSerial.readBytesUntil(13, ...) seems fairly safe. It only threatens incomplete reads if you underestimate the max chars per line - or if the device becomes unresponsive until the serial's adjustable timeout is reached (default: 1 second).
.
.

If the device is wants to send a huge line or is laggy beyond a reasonable timeout, the parser will get very confused.

(The vulnerability exists already and would be unaffected by this patch.)

If the device is unavailable or sent an uninteresting line of text, nothing will be printed during that loop().

(This patch happens to fix an edge case where that could happen on the first loop() and leave the values undefined.)

The rest of the time, I expect EC_data should be valid.

Err, not unavailable. That should say "If the device is silent (no pending bytes to read)... nothing will be printed that loop()."
Depending on how laconic the EC circuit is, dashes may be common.

If EC values being logged intermittently turns out to be irksome, declining to reset the valid/stale flag at the top of each loop will make it "---" until it receives one message it can parse, then always print the most recent measurement.

So I'm finally digging back in to the source code this week and will upload you changes to the device and see how it functions. In the meantime, check out the output from the first field trial!


its dead

hui
i only want know if bitwasp its dead  or live
thanks

I think its dead

There has been one pull request three years, and that's enough reason to give up IMO. You are free to fork and put in the effort yourself.


using docker file and docker compose file

Describe the feature
Using a Docker image, we can access several facilities.

Containers run in isolated environments, ensuring that applications and their dependencies do not conflict with other applications or the host system.
Containers make it easy to set up and run projects locally, regardless of the operating system or environment, ensuring a consistent development experience
Containers simplify the installation and management of auxiliary services and databases required for your projects, such as MongoDB, PostgreSQL, or Redis
Add ScreenShots
kkj
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

How are you going to proceed? @iritikyadav123

First, I created a Dockerfile in which I added all the commands necessary to run the website. After that, I created a Docker Compose file and added some commands so that after creating the Docker image, we only need to bring up the Compose file to run the website.

First, I created a Dockerfile in which I added all the commands necessary to run the website. After that, I created a Docker Compose file and added some commands so that after creating the Docker image, we only need to bring up the Compose file to run the website.

Ok go ahead

@hustlerZzZ  Can you assign this issue to me ?

@hustlerZzZ Can you assign this issue to me ?

Ok

can you assign me , so I can added docker compose file , so that we  would able to run project in single command


⚠ ClamAV has degraded performance

In f489293, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 383 ms

Resolved: ClamAV performance has improved in 6d95286.


Johnny/reusable event card

Add event detail page with parallax image scroll

Please configure prettier in your IDE (Vscode likely) to use prettier on save for files in the future. I will fix this after you merge to avoid conflicts with the whole repo but for the future, this is a necessity

Also please add some simple docs for each component/ page you have added


Squared Euclidean not metric

Hi, great library!
But I think it’s incorrect to use the squared Euclidean optimization since vp trees require a real metric which I think the squared distance is not.

I just made the bulids a bit simpler and also made it compile on windows.
https://github.com/pablocael/pyvptree/compare/main...Dobatymo:pyvptree:windows-compat?expand=1
Let me know if there's anything I can do to help.

Fixed on #8


Issues with v28

Hey there! I just updated my testing branch from 28-beta1 to the final version and it seems like it is no longer required to have the files named as mjs as I get this message now:
Unable to find Electron app at /home/stan/projects/personal/WeakAurasCompanion

Cannot find module '/home/stan/projects/personal/WeakAurasCompanion/dist-electron/main/index.mjs'. Please verify that the package.json has a valid "main" entry

but when I rename them back to js I get this:
Unable to load preload script: /home/stan/projects/personal/WeakAurasCompanion/dist-electron/preload/index.js
(anonymous) @ node:electron/js2c/renderer_init:2
node:electron/js2c/renderer_init:2 Error: require() of ES Module /home/stan/projects/personal/WeakAurasCompanion/dist-electron/preload/index.js not supported.
Instead change the require of index.js in null to a dynamic import() which is available in all CommonJS modules.
    at __node_internal_captureLargerStackTrace (node:internal/errors:496:5)
    at new NodeError (node:internal/errors:405:5)
    at Module._extensions..js (node:internal/modules/cjs/loader:1299:19)
    at Module.load (node:internal/modules/cjs/loader:1126:32)
    at Module._load (node:internal/modules/cjs/loader:967:12)
    at l._load (node:electron/js2c/asar_bundle:2:13642)
    at o._load (node:electron/js2c/renderer_init:2:2455)
    at node:electron/js2c/renderer_init:2:33274
    at node:electron/js2c/renderer_init:2:33726
    at ___electron_webpack_init__ (node:electron/js2c/renderer_init:2:33730)
    at node:electron/js2c/renderer_init:2:33853
    at BuiltinModule.compileForInternalLoader (node:internal/bootstrap/loaders:336:7)
    at BuiltinModule.compileForPublicLoader (node:internal/bootstrap/loaders:272:10)
    at loadBuiltinModule (node:internal/modules/cjs/helpers:57:9)
    at Module._load (node:internal/modules/cjs/loader:943:15)
    at l._load (node:electron/js2c/asar_bundle:2:13642)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:101:12)
    at node:internal/main/run_main_module:23:47

Hey! 👋
Upgrade vite-plugin-electron to v0.28.0, It has on mandatory changes.

Hey! 👋
Upgrade vite-plugin-electron to v0.28.0, It has on mandatory changes.

sorry if i wasnt clear here, thats what I did, updated from beta 1 to the final version

I also have a problem with loading the preload script

Problem disappears if fix it manually: require => await import

Interesting, I have
nodeIntegration: true,
nodeIntegrationInWorker: true,
contextIsolation: false,

and sandbox not set at all. My preload script only one import so I assume the default is true.

The docs also say "ESM preload scripts must have the .mjs extension" but after the recent plugin changes it seems like I need to rename it back to js?

In v0.28.0, the main process uses .js files by default, and the build format output is esm or cjs depending on "type"="module" or "type"="commonjs" .
The Preload scripts is built using the cjs format, and the cjs format is available in most scenarios, When "type"="module" is used, the build file suffix is .mjs. The only difference is the file suffix.

{ "type": "module" }
┏————————————————————┳——————————┳———————————┓
│       built        │  format  │   suffix  │
┠————————————————————╂——————————╂———————————┨
│ main process       │   esm    │    .js    │
┠————————————————————╂——————————╂———————————┨
│ preload scripts    │   cjs    │   .mjs    │ diff
┠————————————————————╂——————————╂———————————┨
│ renderer process   │    -     │    .js    │
┗————————————————————┸——————————┸———————————┛

{ "type": "commonjs" } - default
┏————————————————————┳——————————┳———————————┓
│       built        │  format  │   suffix  │
┠————————————————————╂——————————╂———————————┨
│ main process       │   cjs    │    .js    │
┠————————————————————╂——————————╂———————————┨
│ preload scripts    │   cjs    │    .js    │ diff
┠————————————————————╂——————————╂———————————┨
│ renderer process   │    -     │    .js    │
┗————————————————————┸——————————┸———————————┛

The docs also say "ESM preload scripts must have the .mjs extension" but after the recent plugin changes it seems like I need to rename it back to js?

In v0.28.0, the main process uses .js files by default, and the build format output is esm or cjs depending on "type"="module" or "type"="commonjs" .
The Preload scripts is built using the cjs format, and the cjs format is available in most scenarios, When "type"="module" is used, the build file suffix is .mjs. The only difference is the file suffix.

How do I fix this then?
I have
"main": "dist-electron/main/index.js",
"type": "module",

and get
Unable to load preload script: /home/stan/projects/personal/WeakAurasCompanion/dist-electron/preload/index.js
(anonymous) @ node:electron/js2c/renderer_init:2
node:electron/js2c/renderer_init:2 Error: require() of ES Module /home/stan/projects/personal/WeakAurasCompanion/dist-electron/preload/index.js not supported.
Instead change the require of index.js in null to a dynamic import() which is available in all CommonJS modules.
    at __node_internal_captureLargerStackTrace (node:internal/errors:496:5)
    at new NodeError (node:internal/errors:405:5)
    at Module._extensions..js (node:internal/modules/cjs/loader:1299:19)
    at Module.load (node:internal/modules/cjs/loader:1126:32)
    at Module._load (node:internal/modules/cjs/loader:967:12)
    at l._load (node:electron/js2c/asar_bundle:2:13642)
    at o._load (node:electron/js2c/renderer_init:2:2455)
    at node:electron/js2c/renderer_init:2:33274
    at node:electron/js2c/renderer_init:2:33726
    at ___electron_webpack_init__ (node:electron/js2c/renderer_init:2:33730)
    at node:electron/js2c/renderer_init:2:33853
    at BuiltinModule.compileForInternalLoader (node:internal/bootstrap/loaders:336:7)
    at BuiltinModule.compileForPublicLoader (node:internal/bootstrap/loaders:272:10)
    at loadBuiltinModule (node:internal/modules/cjs/helpers:57:9)
    at Module._load (node:internal/modules/cjs/loader:943:15)
    at l._load (node:electron/js2c/asar_bundle:2:13642)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:101:12)
    at node:internal/main/run_main_module:23:47
(anonymous) @ node:electron/js2c/renderer_init:2

We will not provide specific option support for preload scripts as this time, as doing so may not necessarily solve all problems.
You can built the esm format in the following way.
{
  preload: {
    // Shortcut of `build.rollupOptions.input`.
    // Preload scripts may contain Web assets, so use the `build.rollupOptions.input` instead `build.lib.entry`.
    input: 'electron/preload.ts',
+   vite: {
+     build: {
+       rollupOptions: {
+         output: {
+           format: 'esm',
+         },
+       },
+     },
+   },
  },
}

I don't see an option to let the plugin generate a mjs for the preload script

We will not provide specific option support for preload scripts as this time, as doing so may not necessarily solve all problems. You can built the esm format in the following way.
{
  preload: {
    // Shortcut of `build.rollupOptions.input`.
    // Preload scripts may contain Web assets, so use the `build.rollupOptions.input` instead `build.lib.entry`.
    input: 'electron/preload.ts',
    vite: {
      build: {
        rollupOptions: {
          output: {
+           format: 'esm',
          },
        },
      },
    },
  },
}

I tried that but that still generates a .js file, not .mjs

@Stanzilla, add:

output: {
+ format: 'esm',
+ entryFileNames: `[name].mjs`
},

@Stanzilla, add:

output: {
+ format: 'esm',
+ entryFileNames: `[name].mjs`
},

perfect, thanks! That should probably be added to the documentation? Or let the plugin handle it?

perfect, thanks! That should probably be added to the documentation? Or let the plugin handle it?

A documentation may be needed to explain this, but I haven't figured out where to write it yet. 🤔


feat: redis

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

97 of 118 (82.2%)  changed or added relevant lines in 5 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-4.2%) to 89.375%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/Exceptions/QueueException.php
0
2
0.0%

src/Handlers/BaseHandler.php
3
5
60.0%

src/Handlers/PredisHandler.php
44
51
86.27%

src/Handlers/RedisHandler.php
48
58
82.76%

Totals

Change from base Build<PHONE_NUMBER>:
-4.2%

Covered Lines:
286

Relevant Lines:
320

💛  - Coveralls


Istanbul's chainid oppcode returns incorrect restults

Issue raised on ganache-cli that is caused by ganache-core:
https://github.com/trufflesuite/ganache-cli/issues/700

Transferred the issue over to core :+1: https://github.com/trufflesuite/ganache-core/issues/515


github: add Asset Transparency action for GitHub releases

This adds a GitHub Action to have Helm release inserted into the Asset
Transparency log[1].
With these assets in the log it would be great to also recommend users
verify their download of helm using the Asset Transparency CLI like
this:
tl verify https://get.helm.sh/helm-v3.3.1-darwin-amd64.tar.gz helm-v3.3.1-darwin-amd64.tar.gz

[1] https://www.transparencylog.com
See kubernetes-dev discussion here:
https://groups.google.com/g/kubernetes-dev/c/iWr5FiOyU78

What this PR does / why we need it:
Special notes for your reviewer:
If applicable:

[ ] this PR contains documentation
[ ] this PR contains unit tests
[ ] this PR has been tested for backwards compatibility

I just noticed that get.helm.sh isn’t a redirection to the GitHub release assets. Do y’all have a shell script or something that generates those URLs from a git tag? Then I can use the additionalURLs input to handle that.

I just noticed that get.helm.sh isn’t a redirection to the GitHub release assets.

get.helm.sh is the hsot for the release assets. Only the PGP signatures are hosted on Github.
https://helm.sh/blog/get-helm-sh/

Do y’all have a shell script or something that generates those URLs from a git tag?

get-helm-3 will generate the URL and fetch the content.

@philips can you clarify how this differs from the approach being taken in https://github.com/helm/helm/pull/7944?

It looks like #7944 is automating signature verification and doing trust on first use of a gpg signing key. This system is complementary to gpg signing. From the FAQ
Why not use GPG keys or other public key signing?
This is complimentary to public key signing! Public key signing asserts that someone with access to the private key signed the exact content. But, the private key can be used to generate an unlimited number of signatures for different content. If the URLs contents are both signed and logged in the URL content record then there is a guarantee that both the owner of the private key signed the content AND the content being fetched is cryptographically identical to the content other people are fetching using tl.

Hi, @philips! Thanks for adding this. We'll hopefully sort out any remaining details after the holiday weekend; meanwhile if you want to fix the DCO on that commit, then that blocker will be out of the way: https://github.com/helm/helm/pull/8697/checks?check_run_id=1072837057

@bridgetkromhout done.
I will hold off on the additionalURLs generation for the get.helm.sh URLs until I hear back if this is something y’all are interested in having in your release process.

I think it's always good to introduce more assistive tooling, especially when it's automated and complementary to the existing toolset.
However, the statement made in tl's README seems concerning.

Alpha Warning: tl works as described but has minimal testing, no peer review, and no load testing. Please test the tool and provide feedback.

Perhaps it'd be worth testing the viability of this project on smaller open source projects before suggesting to a community with a massive user base (read: large blast radius).

@bacongobbler I can sympathize with the blast radius concern. However, there are two things to consider:
Adding this GitHub action simply registers Helm releases with Asset Transparency. In the worst case the GitHub action fails if there is an issue with the Asset Transparency service. In the “best” case if the Helm storage buckets or webservers are compromised you can rely on the Asset Transparency API to audit what files might have been compromised.
If you do recommend tl in helm install/download docs the effect of a “blast” is fairly minimal:

If the Asset Transparency service had an issue the user would experience a tl verify failure and likely file an issue, etc on this repo.
The Helm team could remove the recommendation to do tl verify from their download/install docs until the service was fixed.

Sorry folks for this off-topic comment but this is the only way for me to contact @philips directly. Please don't remove it until he replies. Hi @philips, I have been searching for any email of yours to contact you but I could not find anything. Can you please post your email here, or just send me an empty email me to the email address in my Github profile in order to contact you? Sorry if this looks weird but I've been trying to reach out to you about a FOSS project within your area of expertise that I've been working on that I am about to release and just wanted some advice from you. Again I apologize for this weird and off-topic comment.

Does this require any credentials to work?

No it doesn't require credentials.
On Wed, Sep 16, 2020, 2:33 PM Josh Dolitsky<EMAIL_ADDRESS>wrote:

Does this require any credentials to work?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/helm/helm/pull/8697#issuecomment-693677395, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAIGCASDR5EJWP5RFBVZT3SGEVJDANCNFSM4QY2CUFQ
.

@philips I just noticed this PR. Thanks for pointing us at Asset Transparency and sending over the NYU blog post. I wasn't aware this had been created. The NYU blog post helps me to trust this project and org as I had no idea who Honesty Owl (the parent company behind the project) was prior to seeing this. Security is about trust and that's good link.
Helm uses CircleCI and a deploy script. This is something that would sit nicely in there after the deploy. You have both the local file and the file is in the remote location.
I'll take the action to discuss this with both the Helm client maintainers and the Helm security team.

Just so we are clear: Honesty Owl, Inc is a public benefit company that was formed by me to create products like transparencylog.com.

I am definitely good with adding this functionality to Helm's build pipeline. Given our size, structure, and existing involvement with other projects like in-toto and TUF, this would be a great fit and help us further our long term goal of exhibiting good software supply chain practices. And I feel better knowing this is one of @philips 's projects, and that Trishank (who wrote much of the CNAB security spec) has already looked at it.

kicking CI


python: 2.7.9 -> 2.7.10

(cherry picked from commit c918903381e0aa2c48c5f40e9270148324bb476a)

I don't know if this will break lots of stuff, making PR.

Looks good on master, merging.


Is it possible to create a similar filter for fluent-bit?

Is it possible to create a similar filter for fluent-bit (https://github.com/fluent/fluent-bit)?
Thanks in advance for your reply.

It is possible to implement the filter plugin for fluent-bit using libmaxminddb.
Check the document carefully, please.
But this is a Ruby C extension library.


Parser Bug: For Loop Fails When 'in' Keyword Is Followed by a Line Break

Description
The parser fails to correctly handle a for loop when the 'in' keyword is followed by a line break and the iterable is placed in next line. This results in compilation errors.
#{
for i in
  (1, 2, 3) {
  [#i]
}
}

Error: expected expression
   ╭─[/main.typ:9:9]
   │
 9 │ for i in
───╯

Error: expected semicolon or line break
    ╭─[/main.typ:10:12]
    │
 10 │   (1, 2, 3) {
────╯

Reproduction URL
No response
Operating system
Web app, Windows, Linux, macOS
Typst version

[X] I am using the latest version of Typst

Also for dict:
#{
for i in
  (a: 1, b: 2) {
  [#i]
}
}

I'm not sure if this is a "bug", or a WAI? Maybe @laurmaedje

In a code block this would not be expected. I believe this is a bug, looking into it.

agree. For markup i think it is intended. But for code i think it's a bug

any idea why this is not allowed in code mode? This enforce binary op chains should always stay in the same line.
#{
let a = 1
 + 2
 + 3
  [a]
}

Error: cannot join integer with integer
    ╭─[/main.typ:11:2]
    │
 11 │  + 3
────╯

#{
let a = 1 +
  2 +
  3
  [a]
}

Error: expected expression
   ╭─[/main.typ:9:12]
   │
 9 │ let a = 1 +
───╯

Error: expected expression
    ╭─[/main.typ:10:6]
    │
 10 │   2 +
────╯

In a code block this would not be expected. I believe this is a bug, looking into it.

If no parentheses are placed, even in code mode there are only two cases (IIRC) where a line can continue: With a full stop for field access or method call, or with an else. Everything else cannot continue. We could potentially expand this to in in a for loop. I wouldn't classify it as a bug, but rather as a design choice that we can discuss.

It's definitely not a bug, but I'll argue that it should be changed because it is unintuitive and limits code flexibility where we don't need to, effectively enforcing a style guide on code that is more of a job for a linter.
Current Behavior
First let's clarify the current behavior.
Non code-blocks
Normal code eagerly converts to markup and only
allows "atomic" expressions:
#(5+2)+4
// a. => "7+4"

Although some common statements are "non-atomic" and
allow binary operators etc:
#let x = (5 + 2) + 4
#x
// b. => "9"

Expressions like `(x) => x + 1` or `context` inherit
their atomicity from their parent:
#let y = context x + 1
#y
// c. => "10"
#context x + 1
// d. => "9+ 1"

Code-blocks
In code-blocks, two things change:

We allow lines to span expressions only in the case of dot-continuations and else-statements. This is hard-coded in the current Parser::lex function, although I've recently moved it into the Lexer in #4364 as part of the refactor.
We allow expressions on the same line, but only if they're separated with a semicolon.

Otherwise we keep the same newline behavior, which causes the above for-loop behavior.
#if false [ True ]
else [ False ]
// e. => "else [ False ]"
#{
  if false [ True ]
  else [ False ]
} // f. => "False"

#{
  (1, 2, 3)
    .map(x => x + 1)
    .filter(x => x > 2)
} // g. => (3, 4)

#{
  for i in
  (1, 2, 3) { i }
} // h. => Error! No expression after 'in'
#{
  let y = (x)
  => x + 1
} // i. => Error! Unexpected arrow '=>'

#let naive_result(result /*dict like: (ok: {}, err: {})*/) = {
  result.ok
  if result.err != none {
    return
    result.err
  }
}
#naive_result((ok: "ok", err: none))
// j. => "ok"
#naive_result((ok: "still ok", err: "some error"))
// k. => "still ok"
// Wait what?!
This one is tricky. It's syntactically allowed, but
a return followed by a newline doesn't include the
newline expression and returns any existing placed
content.

This also has a really annoying interaction with number literal syntax. Try to guess if this produces content or an error, and for either, what?
#{
  let x = 5
  + 4
  #x
} // l.

Answer

The answer is "45"!
This comes the use of leading minus for negation (-4) and the symmetry that allows leading plus in +4 combined with whitespace insensitivity. Lovely.

Ok, Now What?
First, some prior art.
# Python disallows this:
x = 1 +
2
# py. => syntax error

// But it works in Javascript:
var x = 1 +
2
// js. => x === 3

Options
I see three likely options for code-blocks in Typst.

Greedy newlines: Keep the current behavior of greedily checking for newlines in the lexer, but carve-out specific edge cases for common items like if-else or trailing-dot function calls.

Greedy expressions: Expressions try to operate over whitespace if possible within blocks and parentheses, stopping only at explicit semicolons. This would change examples g through l. And would affect leading minus signs at the start of lines (usually meaning negation to now usually meaning subtraction with previous token), but I think this could work well.

Indentation sensitivity: An alternative is a hybrid approach, where we require binary operators continuing over lines to to be indented further than the starting column of their parent in the source code. This is an odd choice, but does have prior art in Haskell and some Lisp derived languages (see i.e. some Rhombus lang syntax exporations)

Indentation sensitivity examples

We might allow this trailing arrow so long as it increases the indenation of the previous statment sufficiently. There are a few bikeshedding opportunities here, but the general idea should stay the same.
#{
  let x = (really, long, chain, of, arguments)
    => { ... }
  // m. => No error

  let y = 1
  + 2
  #y
  // n.  => "21" (see above)

  let z = 1
    + 2
  #z
  // o. => "3"
}

Pros/Cons
Greedy newlines is the best for error messages and performance: it makes it easy to stop parsing at newlines and generate partial parses in an IDE for separating errors. One notable win is if you type a bare let with no variable in the middle of a code-block, the parser only has to generate an error on that line and doesn't have to search forward for a potential identifier and equals-sign to associate.
It is also probably good for beginners as it imposes the most requirements on syntax so users can't type things incorrectly and error messages are usually localized if they do happen.
Greedy expressions is the most ergonomic and flexible. It's good for code formatting as expressions can be moved arbitrarily and makes the parser's implementation much cleaner. I'm personally a fan of this one, but it does increase the scope of possible errors and likely some performance burden.
Indentation sensistivity is the most consistent and likely most beautiful. With greedy expressions' comes flexibility for beauty but also flexibility for ugliness. Indentation sensitivity makes using binary operators over multiple lines require explicit indentation which clarifies programmer intent. However this is likely the worst for teaching newcomers and would complicate the existing parser.

Errors
Teaching
Flexibility
Beauty

Greedy newlines
✅
✅
❌
❔

Greedy expressions
❌
✅
✅
❔

Indentation sensistivity
❔
❌
❔
✅

Conclusion
I'm personally partial to greedy expressions, it's the most flexible syntactically and feels the most like a "real programming language". We can also make choices at a more fine-grained level (like requiring return expressions to be on the same line), but I think it's important to have a well-defined default method first.
We should also expand on these nuances in the syntax documentation and the Parser. I'll make a new issue for that, might do it myself, but would appreciate help if anyone's interested in writing things up.
And again, this discussion only applies to code syntax within code-blocks. Regardless of what is chosen for code-blocks, I think we should absolutely keep the greedy newline behavior with the current atomic/non-atomic system when not in code-blocks.


(PE-35088) Relax net-scp gem dependency versions

As we prep for building bolt to work with puppet 8 we need to relax the net-scp version dependency while we come up with a way to support running against both the puppet 7 and 8 runtimes.

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