Integration tests fail when default is protected

We wrote integrationtest.py before taking up the best practice of protecting the default version in all environments.  As a result:
ERROR: test_bsyncupdates (__main__.ReplicaTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "xxxxxxxxxxx\integrationtest.py", line 149, in test_bsyncupdates
...snip
Error posting version xxx.REPLICATOILER.[Operation can only be executed by the
owner since the version is protected. [SDE.DEFAULT]]

Same error for all tests.

I think the replica class will need an administrator geodatabase input in order to flip the protected switch off and on for the child replica.


Update flannel to v0.16.3

Updating Flannel per Calico v3.25.0 upgrade, see https://docs.tigera.io/archive/v3.25/release-notes/
Ran
git rebase v0.16.3
git add (after updating Readme)
git commit
git tag v0.16.3-gh1 e11cf0a4
git push
git push --tags

@Adam262 can you provide more context on the intended result or why we're bumping this?

@Adam262 can you provide more context on the intended result or why we're bumping this?

Sure - Flannel was bumped in the Calico v3.25.0 release notes -- https://docs.tigera.io/archive/v3.25/release-notes/


Fix GAX logging system tests

Logging system tests now pass both with GCLOUD_ENABLE_GAX and without it.
The _retry_backoff function added in  3a3613e may help toward #1619.

@daspecster I added the missing continue in 6ffe88d.  Any remaining issues?

LGTM!


Added resources cleanup for system test cases

Fixes #496

[x] Tests and linter pass
[x] Code coverage does not decrease (if any source code was changed)
[x] Appropriate docs were updated (if necessary)

@callmehiphop I am planning to add a prefix to resources name and delete all resources by identifying prefix in after callback.

@jiren I'm not sure how we plan on using a prefix, but I think it will suffer from the same issues. If we only delete resources with the unique prefix and something goes wrong, then there's a good chance those resources will linger around forever. On the flip side if we were to delete any resources that didn't have the prefix, there's a good chance we could sabotage any parallel CI runs.

This is a good start, but I think it is still possible we'll still see lingering resources in the event that an after hook fails.
In other client libraries our approach has been to record a timestamp representing the test run on each of the test resources, then in the after hook we grab a list of all the resources and delete any that are older than 1 hour.
I think we can accomplish something similar here by using labels and the setMetadata methods.

@callmehiphop Right now there is no direct option available to set metadata(labels) to Topic, Subscription, Snapshot. So labels can be set using setMetadata only after resource created. In this case, any error can prevent setting metadata.
We should add an option to labels while creating Topic, Subscription, Snapshot as per protobuf definition.


Switch to music-metadata?

https://www.npmjs.com/package/musicmetadata
https://www.npmjs.com/package/music-metadata

As shown by @SirWindfield in #369
music-metadata seems to support more format and would allow us to not use an external library for WAV.

Yeah, but even that module may cause reading the entire file. Worth a try tho.

Isn't knowing the duration of a song the only case where you need to read the entire file? Out of my head the specifications for id3,wav and vorbis all are some header metadata and (for vorbis if I remember correctly) some seeking at the end of a file. Not sure how node handles I/O but seeking shouldn't load the entire file.

Yes, by reading I meant "reading through"

This is currently happening with musicmetadata anyway. It goes through the whole stream.

I know ffprobe gets metadata consistently fast, but that's native code/binary.
One possible way could be to compile and expose it via WASM, but that's challenging :)


Change the color of the status bar

Solution: https://github.com/yoha/Notes/commit/d554f808614e8568c4d3a5631e7eacb2661d75e1


Added 16 different diagnosis prediction tasks for mimic-iv

*Fixed some typo errors from the previous PR, and reopened it
I added 16 different diagnosis prediction tasks for mimic-iv where each high-level diagnosis label is defined by a set of ICD codes using multi-level CCS tools.
Each of these tasks predicts whether a patient will be assigned corresponding ICD codes at the time of hospital discharge, given the data from the first 24 hours of hospital admission. I included only the patients whose hospital stay is at least 24 hours for these tasks.
There are so many predicates defined in each config file, which may need to discuss further regarding it.

Summary by CodeRabbit

New Features

Introduced configurations for extracting and analyzing data related to various medical conditions, focusing on the first 24 hours of hospital admissions.
Enhanced predictions for the assignment of ICD codes at discharge through improved processing of hospital admission data.

Bug Fixes

Resolved inconsistencies in mappings between ICD9CM and ICD10CM codes across multiple diagnosis configurations.

Documentation

Updated descriptions and predicates for enhanced clarity and accuracy regarding hospital admissions and discharges.

Chores

Organized and structured YAML files for improved maintainability and accessibility.

Let's wait until we have a revised ACES that incorporates https://github.com/justin13601/ACES/issues/90. Once that is in I will update this PR to simplify the configs.

Can you update this to use the regex and/or any syntax that ACES now supports? @justin13601 can help clarify syntax as needed @Jwoo5

Sure, I will update this after the ML4H deadline as this task seems not that urgent at this moment.

sounds good @Jwoo5, thanks! Note there may be some other changes to organization and such before then in the repo, but I think it won't be a big issue. For cleanliness of our github repo, I'm going to close this PR for now and we can re-open and update it when we're ready to merge it in. Thanks!


Some problems about val

hello, I find some problems about 'val', I found that there was a problem with the code in line 144 'val_dataset.pipeline = cfg.data.train.pipeline', and it needs to be changed to this val_dataset.pipeline = cfg.data.train.dataset.pipeline. right?

Looks you are right, in case of RepeatDataset wrapper. It is kind of mmdetection3d bug, as we don't modify this file.

If I want to train 10 classes of detection on the nuscenes dataset, do I just need to change the following two things？
（1）Comment this line： gt_labels_3d[gt_labels_3d > 0] = -1 in mmdet3d/datasets/nuscenes_monocular_dataset.py
（2）Modify this line：num_classes=1==>num_classes=10 in configs/imvoxelnet/imvoxelnet_nuscenes.py
Am I right?  O(∩_∩)O

Basically yes, but the performance will be very low. For better performance you may follow Anchor3DHead parameters for NuScenes including sizes, scales and rotations. And for 3 scales here you also need to save 3 2d feature maps from 3 levels of the neck. We use only 1 scale (and 1 output of the neck) if I remember correctly.


Some basic Python 3 compatibility in grumpy_tools

Focus only on grumpy_tools for now.

Define xrange() in Python 3
Define long in Python 3
print() is a function in Python 3

I would be ok with http://python-future.org/quickstart.html as dependency if you want.
Please ping me when you think it is good to merge.

I am not going to touch the two flake8 issues in grumpy-tools-src/grumpy_tools/compiler/expr_visitor.py as that will require a steadier hand than mine.  The tricks are that in Python 3:

unicode was removed because all str are Unicode, and
long was removed because all int are of infinite precision.

The unicode vs str issue is easier, using b'' and u'' notations. And an intermediary step can be running in 2.7 with unicode_literals future.
The long vs int issue I have no previous experience on dealing with it.

...should be simple enough to do the old fashioned way...

Some old-fashioned projects use a compat.py and imports stuff from it. Then it checks all this try..except there and the main modules does from compat import long, for exemple.
Is just an idea I saw before some times. Feel free to keep your style if you find it better 👍

I am not a fan of the compat.py approach.  I would lean towards six before creating yet another compat.py which is subtly different from all other compat.pys.  I find six to be more straightforward than future which I sense redefines things in tricky / non-intuitive ways.
When you have reviewed these changes, please merge them it or let me know what changes need to be made.  Thx.

Thanks @cclauss for the effort.


Avoid double-copy merging String from non-Bytes input.

See https://github.com/tokio-rs/prost/issues/571
The optimization in https://github.com/tokio-rs/prost/pull/449 avoids
copies when both the input and output are Bytes, but it can cause
double copies when neither the input nor output is Bytes.
This is easy to trigger by using &[u8] as the input buffer and merging
a Vec<u8> or String, both of which are generated by prost-build.
Introduce encoding::bytes::merge_one_copy() and use it to guarantee
that encoding::string::merge() copies exactly once. The new function
is only visible to the encoding module so it does not affect the API.
It would also be useful to make prost-derive call this for
#[prost(bytes="vec")], but that may require making it public, which
is a more drastic and less justified change. It may be better to wait
for type specialization to be stabilized.

It would also be useful to make prost-derive call this for
#[prost(bytes="vec")], but that may require making it public, which
is a more drastic and less justified change. It may be better to wait
for type specialization to be stabilized.

Can we export it with doc(hidden)?


Support Circles Safes in frontend on xDai

Let's only implement this in case this is comparably easy to do. In case this requires a big refactoring, let's so that later.
What is this feature about? (1 sentence)
This allows users to add Safes created via Circles to the Gnosis Safe web interface.
Why is it needed? What is the value? For whom do we build it?

Circles got quite popular recently. They create a Safe for every user under the hood.
Circle unfortunately did not use our deployed master copy and proxy factory.

They just added 1 event, the rest of the code is the same.

Being interoperable is good for the Safe since we want to build an open system, hence we should add support for Circles Safes.

High-level overview of the feature

This feature is only for the xDai env.
Users can add Circles Safes via the "add Safes" flow
In the settings, it says 1.1.1-Circles for the Safe version.

Tapping the link should open https://github.com/CirclesUBI/safe-contracts/releases

Misc

The backend already supports the Circles master copy: https://safe-transaction.xdai.gnosis.io/api/v1/about/master-copies/

i.e. Circles Safes can already be loaded via the URL, e.g. https://xdai.gnosis-safe.io/app/#/safes/0x7087C0338aA7Cd34Ba918A7fC14B39b18b7a85Ab/settings

Circles runs on xDai
Circles Master copy: https://blockscout.com/poa/xdai/address/0x2CB0ebc503dE87CFD8f0eCEED8197bF7850184ae/contracts
Circles ProxyFactory: https://blockscout.com/poa/xdai/address/0x8b4404DE0CaECE4b966a9959f134f0eFDa636156/contracts

If it's too much for 2.16.0, let's at least try to evaluate how much effort this would be, so we know better for 2.17.0 or future planning.

I was the one responsible of doing QA to this. I was able to load my Circles account using "Load safe" flow. After getting the private key of my Circles owner I was able to successfully execute a transaction.
@francovenica will do a check to this in release branch, where an xDai environment is created


Can't deselect specific nodes with a second CMD click

After Selecting multiple nodes using click and CMD Click (on the Mac), I can't deselect any of those nodes with a second CMD Click on the node. The only option that remains is to click elsewhere to deselect ALL selected nodes.
Using Bloom 2.8.1 on the Mac

Thanks @nghiemt for raising this topic, we will treat it as a feature request and it will be evaluated in the future releases of Bloom!


[tool_crash] FileSystemException: Failed to decode data using encoding 'utf-8', null

Error Message
Oops; flutter has exited unexpectedly: "FileSystemException: Failed to decode data using encoding 'utf-8', path =
'/Volumes/R/Rob/source/repos/Fluid/qbitservice-flutter/ios/Pods/Target Support Files/Pods-Runner/._Pods-Runner.profile.xcconfig'".

flutter build ipa --export-options-plist=/Volumes/R/Rob/source/repos/Fluid/qbitservice-flutter/dist/ExportOptions.plist --obfuscate --split-debug-info=/Volumes/R/Rob/source/repos/Fluid/qbitservice-flutter/dist/iOS/

OR

flutter build ios

Steps to Reproduce

Run above command
...
...

Logs
FileSystemException: Failed to decode data using encoding 'utf-8', null
#0      _File._tryDecode (dart:io/file_impl.dart:615:7)
#1      _File.readAsStringSync (dart:io/file_impl.dart:624:7)
#2      _File.readAsLinesSync (dart:io/file_impl.dart:630:36)
#3      ForwardingFile.readAsLinesSync (package:file/src/forwarding/forwarding_file.dart:107:16)
#4      ForwardingFile.readAsLinesSync (package:file/src/forwarding/forwarding_file.dart:107:16)
#5      ProjectMigrator.processFileLines (package:flutter_tools/src/base/project_migrator.dart:40:37)
#6      CocoaPodsToolchainDirectoryMigration.migrate (package:flutter_tools/src/migrations/cocoapods_toolchain_directory_migration.dart:46:9)
#7      ProjectMigration.run (package:flutter_tools/src/base/project_migrator.dart:84:16)
#8      CocoaPods.processPods (package:flutter_tools/src/macos/cocoapods.dart:184:24)
<asynchronous suspension>
#9      processPodsIfNeeded (package:flutter_tools/src/macos/cocoapod_utils.dart:43:30)
<asynchronous suspension>
#10     buildXcodeProject (package:flutter_tools/src/ios/mac.dart:245:3)
<asynchronous suspension>
#11     _BuildIOSSubCommand.runCommand (package:flutter_tools/src/commands/build_ios.dart:655:37)
<asynchronous suspension>
#12     BuildIOSArchiveCommand.runCommand (package:flutter_tools/src/commands/build_ios.dart:420:50)
<asynchronous suspension>
#13     FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1350:27)
<asynchronous suspension>
#14     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#15     CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#16     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:348:9)

[✓] Flutter (Channel stable, 3.16.3, on macOS 13.6 22G120 darwin-x64, locale en-US)
    • Flutter version 3.16.3 on channel stable at /Volumes/R/Rob/macOS/Development/lib/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b0366e0a3f (9 days ago), 2023-12-05 19:46:39 -0800
    • Engine revision 54a7145303
    • Dart version 3.2.3
    • DevTools version 2.28.4

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at /Users/robclarkson/Library/Android/sdk
    • Platform android-33-ext5, build-tools 33.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A507
    • CocoaPods version 1.14.0

[✓] Android Studio (version 2022.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)

[✓] VS Code (version 1.85.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.78.0

[✓] VS Code (version 1.56.0)
    • VS Code at /Volumes/R/Rob/macOS/Development/apps/Visual Studio Code.app/Contents
    • Flutter extension version 3.78.0

[✓] Connected device (1 available)
    • Dad iPad (mobile) • 00008020-00164D6C3E80402E • ios • iOS 17.1.2 21B101

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Flutter Application Metadata
Type: app
Version: 2.3.4
Material: true
Android X: false
Module: false
Plugin: false
Android package: null
iOS bundle identifier: null
Creation channel: stable
Creation framework version: 8af6b2f038c1172e61d418869363a28dffec3cb4
Plugins
background_fetch-1.2.1
flutter_background_geolocation-4.13.5
path_provider_linux-2.2.1
path_provider_windows-2.2.1
shared_preferences-2.2.2
shared_preferences_android-2.2.1
shared_preferences_foundation-2.3.4
shared_preferences_linux-2.3.2
shared_preferences_web-2.2.2
shared_preferences_windows-2.3.2
url_launcher-6.2.1
url_launcher_android-6.2.0
url_launcher_ios-6.2.1
url_launcher_linux-3.1.0
url_launcher_macos-3.1.0
url_launcher_web-2.2.1
url_launcher_windows-3.1.0
NOTES:
Can build and Archive through XCode with no issues.  Can run (via VS Code and XCode) on hardware devices, simulators, in dev and prod modes with no issues.
Prior to running this command we ran the Archive function from XCode - everything working there.
The file that is being pointed to, 'ios/Pods/Target Support Files/Pods-Runner/._Pods-Runner.profile.xcconfig', does not exist.  I have hidden files visible.
Already Tried / Additional Info

flutter clean etc
Pod install, upgrade
running xcodebuild I get:

fatal error: module map file
      '/Volumes/R/Rob/source/repos/Fluid/qbitservice-flutter/ios/build/Release-iphoneos/shared_preferences_foundation/shared_preferences_foundation.modulemap' not found

Fixed for now.
From ios directory run:
pod deintegrate
pod install

Closing as duplicate of https://github.com/flutter/flutter/issues/65021


Mix of tabs and spaces leads to warning about indentation

Around parson.c:276 tabs are used for indentation rather than spaces like everywhere else. This leads to a compiler warning. The warning is unfounded, IMHO.
	gcc -std=gnu99 -g -fpic -Wall -c -o parson/parson.o parson/parson.c
	parson/parson.c: In function ‘remove_comments’:
	parson/parson.c:282:13: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
							 for (i = 0; i < (ptr - string) + end_token_len; i++)
							 ^~~
	parson/parson.c:284:12: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
							string = ptr + end_token_len - 1;
							^~~~~~

Thanks, I've fixed this in https://github.com/kgabis/parson/commit/c22be794ce4d1befbb8c68487a96a6aa8d482e90.


sage: 6.8 -> 8.0

This "un-breaks" sage while also updating it to 8.0.
It compiles sage with its dependencies as one big pile, which is not
the best approach but definately better than nothing for now.
To be able to shrink the huge output pile a little, it also splits
docs from the rest of the output.
A fair warning for anybody who would like to test this: The final test build
took 2h 45min on my laptop, with the main package taking up 2.1G and the
docs 1.8GB.
As mentioned in the comments there are some things that could be solved
better, but as it already took more time than expected and I don't know
when or if I will find that time I thought I'd push something working now.
I actually started writing a script to convert the spkg declarations to
nix packages. Thanks to nix we could pin down all those dependencies to the
exact versions used upstream and those versions could co-exist with the newest
versions. It would allow gradual picking of dependencies and overwriting single
dependencies. I'm not sure if I will go through with this though.
Fixes #27335. Also we should close #15732.
Motivation for this change
Sage has been broken and outdated for a while.
Things done

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

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

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

I tested the execution of bin/sage, but not the other executables as most are irrelevant and/or I don't know what they do.

Oh, thanks.
Re: dependencies — well, there are tests, and there is a mechanism of replacing a dependency with a system-wide one (when I tried to package 7.x that was complicated, and eventually I got stuck when I couldn't understand which test failures were real). Adding proper versions to Nixpkgs is the relatively easy part even without automation.

Yeah that's another reason why I stopped going down that path for now and decided on just shipping something working. I think automation would be needed though, otherwise we would need to basically duplicate all the packaging work sage is doing for every update and the package would just stay outdated.

I have no Idea, I thought it would be best to take an optimistic approach and restrict it when its not working. If I'd restrict the platform to linux now, probably nobody would test it for other platforms.

I think we try to follow a reasonable estimation of success chances. I don't think there is a policy that is actually followed. But this is a huge heavy build (hopefully someone will find a way to make it smaller), and it is known to be brittle, so I would recommend restricting testing it on Darwin to people who know how to override meta.broken

Yeah that's another reason why I stopped going down that path for now and decided on just shipping something working. I think automation would be needed though, otherwise we would need to basically duplicate all the packaging work sage is doing for every update and the package would just stay outdated.

Well, if we had tests, it would probably be enough to just make sure that version is roughly the same for most packages, then just build the correct version (changing only src) of the rest.

They have tests, but they also patch a lot of their dependencies.

Some of their patches seem to be just related to how they organize the builds, though.

Maybe, I didn't look into the details.
I think the best approach would be to start with getting it working with all the exact same dependencies, just build by nix. From there its trivial to switch out different dependencies and test what is working.

I think we try to follow a reasonable estimation of success chances. I don't think there is a policy that is actually followed. But this is a huge heavy build (hopefully someone will find a way to make it smaller), and it is known to be brittle, so I would recommend restricting testing it on Darwin to people who know how to override meta.broken

My concern was that nobody would actually know that it was available and so nobody would test it.
But I'm fine with changing it, maybe someone with a darwin system will see the commit and test.

Well, in reality it does sometimes happen that people using macOS try to build packages declared Linux-only and then ask to change the platform set (or submit a PR with fixes, if some changes to the build are needed).
I think the Darwin part of Hydra is weaker than the Linux part, too; and without tests we won't even know if the builds are useful until someone with a Mac investigates.

Okay, you're probably right that would be an unnecessary high load on hydra.


Markdown (re)renderer

It's mainly a question, if you like to add the markdown renderer to your code. I created one to share for markdown auto-recoding purposes (for example internationalization).

Would you like to share it in https://github.com/lepture/mistune-contrib

close it in flavour of https://github.com/lepture/mistune-contrib/issues/1


fix root context not shared

Fixes an issue where each directory under paths had its own copy of the context object. As it stands, this is a breaking change: existing $.context.ts files won't work. Need to add a migration to detect and fix legacy files.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

49 of 54 (90.74%)  changed or added relevant lines in 5 files are covered.
11 unchanged lines in 2 files lost coverage.
Overall coverage decreased (-0.3%) to 87.558%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/server/context-registry.ts
0
5
0.0%

Files with Coverage Reduction
New Missed Lines
%

src/server/context-registry.ts
1
78.08%

src/typescript-generator/context-coder.js
10
82.14%

Totals

Change from base Build<PHONE_NUMBER>:
-0.3%

Covered Lines:
2455

Relevant Lines:
2836

💛  - Coveralls


Add highlighted fix

I tried the previous fix but i was still getting the ? when the icon was clicked in the Toolbar, but the solution was correct - it just need to be duplicated into the SetFAIcon func.  I've done this and tested, and all seems to be working fine now.

Thanks for your contribution. I resolved the issue also by adding other states to make it work.


openssl dgst extra space?

I downloaded the new beta2 to integrate and test it and I saw this when I verified the package
There seems to be an extra space generated at the front of the digest output. I assume that the .sha256 file was also generated using the openssl command line as it exhibits the same leading space.
$ openssl dgst -sha256 openssl-3.0.0-beta2.tar.gz
SHA256(openssl-3.0.0-beta2.tar.gz)= e76ab22879201b12f014393ee4becec7f264d8f6955b1036839128002868df71
$ cat openssl-3.0.0-beta2.tar.gz.sha256
 e76ab22879201b12f014393ee4becec7f264d8f6955b1036839128002868df71

This isn't unexpected and in no way changes the validity of the checksum.
As noted in the CHANGES file:

The output from the command line applications may have minor
changes.
Paul Dale

The output from numerous "printing" may have minor changes.
David von Oheimb

The output from the command line applications may have minor
changes.

This isn't a change in the output of the command line app. The app had the same behaviour in 1.1.1 and 1.0.2. The space is produced there as well.
What has (apparently) changed is that there is an extra space at the beginning of the sha1/sha256 files we generate for the tarballs. This was stripped off in previous releases but not in 3.0.
The difference is in the release script. The release script we use for 1.1.1 looks has this:
    my $sha256hash = `$openssl sha256 < ../$tarfile`;
    chomp $sha256hash;
    $sha256hash =~ s/^.*=\s//;
    die "invalid hash" unless $sha256hash =~ /[0-9a-f]{20}/;
    open OUT, ">../$tarfile.sha1";
    print OUT $sha1hash . "\n";
    close OUT;
    open OUT, ">../$tarfile.sha256";
    print OUT $sha256hash . "\n";

Note the line $sha256hash =~ s/^.*=\s//; which strips off everything before the hash including the space, before outputting it to the file.
In the 3.0 release script it is done completely differently. Like this:
openssl sha256 < "../$tgzfile" | \
    (IFS='='; while read X H; do echo $H; done) > "../$tgzfile.sha256"

This also strips everything from the "=" and before, but not the leading space.
As @paulidale says this is harmless and in no way changes the validity of the checksum. But it is perhaps surprising and I guess it could trip up some automated scripts, so perhaps we should clean it up.


logback: move test configuration to test/resources and cleaned dependencies

The logback.xml file in src/resources impacts all projects using the library. This PR moves this file to test/resources to avoid polluting project classpath.
The logback dependency is also moved to be a test dependency, only the slf4j-api dependency is explicitly required by the library.

Codecov Report

Merging #90 (1fdec54) into master (abd8f51) will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff             @@
##              master       #90   +/-   ##
===========================================
  Coverage     100.00%   100.00%
  Complexity        31        31
===========================================
  Files              5         5
  Lines            111       111
  Branches           4         4
===========================================
  Hits             111       111

Continue to review full report at Codecov.

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

@nicerloop thanks for contribution!


Update aws-core, http-client-spi, ... to 2.17.232

Updates

software.amazon.awssdk:aws-core
software.amazon.awssdk:http-client-spi
software.amazon.awssdk:netty-nio-client

from 2.17.104 to 2.17.232.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "software.amazon.awssdk" } ]

labels: library-update, early-semver-patch, semver-spec-patch, commit-count:1

Superseded by #216.


[Request] Make PromptWriter add Template data as a newline

Mostly this is a request so that webui's infotext_utils.parse_generation_parameters can return res["Template"] and can be added quickly to img2img to use Template instead of Prompt. I'm unsure if it's the PromptWriter class or pnginfo_saver.strip_template_info adding the generation params to the resultant PNG but this would probably be a convenient.

So, in checking some of my previous gens using the extension, I found that, at one time, Template data was added as a newline and was changed. I'm guessing the commit #692 was to blame and am looking it over to make a fix.

Actually, it's probably easier to make edits to modules/img2img.py.
For anyone who is looking to apply the Template previously used to gen a picture with dynamic prompts, edit lines 100-108 of modules/img2img.py to the following:

            png_info_props.append("Template")   # Add Template support
            parsed_parameters = {k: v for k, v in parsed_parameters.items() if k in (png_info_props or {})}
        except Exception:
            parsed_parameters = {}

        if "Template" in parsed_parameters:     # Add support for Template inputs
            p.prompt = (" " + parsed_parameters["Template"] if "Template" in parsed_parameters else "")
        else:
            p.prompt = prompt + (" " + parsed_parameters["Prompt"] if "Prompt" in parsed_parameters else "")

if you want to append prompt info from the img2img input, change

p.prompt = (" " + parsed_parameters["Template"] if "Template" in parsed_parameters else "")

to

p.prompt = prompt + (" " + parsed_parameters["Template"] if "Template" in parsed_parameters else "")


Pseudo-element anchors

TODO:

[x] Fix the "Positioning with anchor() [passed through multiple CSS custom properties]" example. customPropsMapping seems not to get populated.
[x] Update tests to expect pseudo elements.
[ ] Get WPT passing for pseudo-element anchors. The polyfill is working (if I manually check the conditions, eg. anchored1.offsetTop === 100) but WPT reports 0, no tests went down.

~Performance does not seem worse (tested with console.time consistently at ~110ms).~
Closes #208.

I updated the tests and fixed @position-fallback. Also now instead of inserting the pseudo-element's content as text into the fake pseudo-element, it add it to the ::before of the fake pseudo-element supporting all types (eg. images).
Currently all these changes add about 15ms to the polyfill (on the homepage, on my machine). It seem that the increase is only because of enabling parseRulePrelude for csstree, so it won't increase much with the amount of pseudo-element anchors, so that amount seems fine.
I looked into WPT, the problem is that --inject-script is sync and we have async code, so WPT runs before everything has been polyfilled, I think window.CHECK_LAYOUT_DELAY in src/index-wpt.ts should fix this but I can't find any docs on it to continue debugging.
One unrelated WPT test started passing with these changes (/css/css-anchor-position/anchor-query-custom-property-registration.html).

I looked into WPT, the problem is that --inject-script is sync and we have async code, so WPT runs before everything has been polyfilled, I think window.CHECK_LAYOUT_DELAY in src/index-wpt.ts should fix this but I can't find any docs on it to continue debugging.

window.CHECK_LAYOUT_DELAY was added to the WPT in order to make this polyfill testable. It is currently used in checkLayoutForAnchorPos to add a delay of 3 animation frames before checking layout. See this comment for more info.
The pseudoelement tests are not using checkLayoutForAnchorPos, and so I think we'll need another strategy. Perhaps we add a function to WPT that we can use to delay other tests that aren't using checkLayoutForAnchorPos? I'm guessing this is also the case for other test files as well.

I'm not familiar with the WPT codebase, but could

<title>Test</title>

Test

And with something like --inject-script-module, if it could be implemented:
<!DOCTYPE html>
<title>Test</title>

Test

This would solve our use case.
A issue with this idea is that all tests would have to be converted to

But that also impacts non-polyfilled tests. @jgerigmeyer  Do you have any thoughts on an analog to the window.checkLayoutForAnchorPos might be? I'm wondering about a waitForAtLeastOneFrame wrapper that only waits if CHECK_LAYOUT_DELAY is true?

@jgerigmeyer Do you have any thoughts on an analog to the window.checkLayoutForAnchorPos might be? I'm wondering about a waitForAtLeastOneFrame wrapper that only waits if CHECK_LAYOUT_DELAY is true?

@jamesnw Yeah, when we landed https://github.com/web-platform-tests/wpt/pull/38442 we knew that there were a few WPTs that called test() directly, and it didn't fix those cases. We might want to check to mfreed to see what the WPT folks would be open to, but I could see adding something similar to checkLayoutForAnchorPos that would replace test() for anchor-position tests only.

I opened a PR on oddbird:wpt https://github.com/oddbird/wpt/pull/3/files that adds a test function which waits for the polyfill to run. It makes pseudo-element-anchor.html pass, but doesn't work on pseudo-element-anchor-dynamic.html because dynamic changes aren't yet supported.

@ayoreis I'm going to go ahead and merge this -- thanks!
I think the only outstanding somewhat-related item I see is this, but it's not urgent/blocking:

At some point, could you also open issues for the things we are not covering here- other pseudo elements like the file upload input button, or scrolling?


Please publish to Gradle Plugin Repository

Feature description
Please publish to Gradle plugin repo so we can use id correctly. Or correct the plugin name so it can be resolved correctly: com.spotify.ruler:com.spotify.ruler:version
Thanks!
Reasoning
Work around:
settings.gradle.kts
pluginManagement {
    resolutionStrategy {
        eachPlugin {
            //https://github.com/spotify/ruler/issues/85
            if (requested.id.id == "com.spotify.ruler") {
                useModule("com.spotify.ruler:ruler-gradle-plugin:1.3.0")
            }
        }
    }
}

Thanks for opening this issue! IIRC the reason why we didn't do this in the first place was that the Gradle plugin portal didn't allow us to publish artifacts in additon to the plugin (which we need to - see ruler-models). Maybe we didn't look hard enough or maybe this is possible now, do you know?
Another practical reason was that Spotify already has an account on Maven central and uses that for all OSS projects, so it was nice to keep everything in a central place (and using it from there is totally possible). Not sure if that's a strong reason, but we'd need to set up a corporate account for the plugin portal before we can publish it and I'm not sure how high of a priority this would have (since I'm no longer at Spotify - maybe @ViktorPetrovski or @botronic can check that if it's deemed important enough).

Another way to fix (Which is what we do internally) is correct the group and package name, for example we have internal plugins (obviously not published Gradle Repo).
Example:
create("lintPlugin") {
  id = "com.instacart.shopper.tooling.lint"
  //...
}

We set the groups to match the base id name:
allprojects {
    it.group = "com.instacart.shopper.tooling"

When you upload this it looks a bit weird but it means gradle can resolve this correctly:

Now in our main repo we can consume them correctly:
id("com.instacart.shopper.tooling.lint).version(...)

Hope that helps :)

Hey @chrisjenx , thanks for bringing this up. Feel free to open a PR with your suggested changes and we will review it.


Add charts category for streamlit-charticulator

Hello! Could you add the category for Charticulator component?

For sure, thanks for the suggestion!


BFF using the new Blazor Web App?

Thanks for the amazing template! It works really well.
I'm wondering if you could make this work with the new Blazor Web App template and it's 'Auto' mode?
I've been trying but not succeeding.

Blazor Web with web assembly does not support CSP nonces and the CSRF protection with API calls needs implementation.
Switching to Blazor Web and web assembly mode is less secure

Wow, that's a shame! Seems like a pretty big oversight from Microsoft then?

Will probably support this at some stage.


How can I estimate distance from object to my camera based on YOLO? (I have both stereo and 2D camera)

Hi,
I am using darknet_ros for custom object detection and I have one class called "traffic_cone"
Now, I am able to detect objects but I need to get the distance from the object detected. Is there anyway to do it?
I have gone through this thread but no success!! https://github.com/leggedrobotics/darknet_ros/issues/103
Could anyone help me how to achieve this?
Thank you :)
TK

Hey, I guess there are some techniques to get distance with stereo camera, for  using 2D camera you can do this: https://www.youtube.com/watch?v=h8WoErQle2U

@thejeshk I use #103 as reference and write a package to retrieve the real distance. You can find the related codes in the following link:
link
I retrieve the camera_info once in link

You can try OpenCV depth function


Request with no output

Dear developers,
following up on https://hypernews.cern.ch/HyperNews/CMS/get/dataopsrequests/1322/1/1.html
It would be worthwhile to have the request manager check on whether the request has any output. Especially, whether the we're going to keep anything from the last defined step or the request.

Provided Dirk's comment, should we close this issue @hufnagel @ticoann


Dead link to DropHandlerExample in README.md

The link points to a 404 page. I clicked it while looking for the nice-looking application from which the screenshots above were taken. Does this example application still exist, and if it does, where?

@rillig Uups, just forgot to fix this link. I completely chnaged the examples. You can look at the new one here https://github.com/punker76/gong-wpf-dragdrop/tree/dev/src/Showcase.WPF.DragDrop.NET45.
A compiled executable can be found at the last release https://github.com/punker76/gong-wpf-dragdrop/releases

readme updated


Google Calendar events not colored correctly.

When an event's color is not set to the same color as the calendar's default, the event is colored black.
I set the calendar's color to birch on Google Calendar's website, and all the events having syntax ID other than CalendarfrobSelect will be rendered with black foreground color. However, events with calendar's default color works fine.
I'm using vim 8.2 under konsole. I have the following options set in my .vimrc:
set t_Co=256
set termguicolors
syntax on

I'm using nord theme, which the background option is dark.
Please let me know if any further information is needed. Also, may I know the what does the characters between "Calendar" and "Select" mean? They seems random. Thanks!

The two on the left column has the correct color (birch) while the one on the right column should be green.
Also, my terminal has a transparent background, so the screenshot is transparent too.

Let me know the result of
:hi CalendarfrobSelect
:hi Calendarfrob

:hi CalendarfrobSelect
CalendarfrobSelect xxx guifg=#cabdbf guibg=#505661
:hi Calendarfrob
Calendarfrob   xxx ctermfg=181 guifg=#cabdbf

Additionally, for those black events (there are more IDs for them, just listing two here):
:hi Calendar58kgSelect
Calendar58kgSelect xxx guifg=#1d1d1d guibg=#505661
:hi Calendar7nqmSelect
Calendar7nqmSelect xxx guifg=#1d1d1d guibg=#505661

What are the original colors in Google Calendar? You can list the colors by jq '.items[] | { summary, colorId, foregroundColor, backgroundColor }' ~/.cache/calendar.vim/google/calendarList.

{
  "summary": "日曆",
  "colorId": "20",
  "foregroundColor": "#000000",
  "backgroundColor": "#cabdbf"
}

That "日曆" calendar is properly displayed on the left column in your screenshot, right? I'd like to know the original colors of calendars not displayed properly in the plugin.

The event on the right column is also in the calendar "日曆", but I assigned a different color for the event (for color-coding my events) from Google Calendar website using the "Select event color" button in the event's edit screen.

I think I fixed the issue and thanks for patient debugging.


With email verification disabled in my project, email verification is still required in order to promote an anonymous user

Bug report

[X] I confirm this is a bug with Supabase, not with my own application.
[X] I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug
With email verification disabled in my project, email verification is still required in order to promote an anonymous user (created via signInAnonymously) to a non-anonymous user (via auth.updateUser({ email }).
To Reproduce

Disable email verification in your project.
Create an anonymous user via auth.signInAnonymously().
Attempt to link the anonymous user to an email identity via auth.updateUser({ email }) per instructions found in your docs and blog post.

Expected behavior

If I've disabled email verification, I expect email verification to be disabled globally, in all scenarios, along all paths.
If this is a known limitation, it ought to be disclosed in the docs and blog post.

Additional context

This is blocking us from migrating from Firebase. It would be wonderful to understand whether this can be prioritized, an ETA for a fix, and/or possible workarounds that do not require email linking to emit a verification email.
Devs may encounter "Updating password of an anonymous user is not possible" when attempting to set a user's password via auth.updateUser({ password }) per your docs, after attempting the auth.updateUser({ email }) call.
The current, buggy updateUser flow appears to write the supplied email to email_change instead of email on the anonymous user's row in the auth.users table.

This suggests that the bugfix would involve referring to the project settings, and then if email verification is disabled, set email and email_confirmed_at accordingly, while triggering whatever additional business logic is required to promote the anonymous user, without emitting an email or requiring email verification.

hey @symbolpunk,

This is blocking us from migrating from Firebase.

can you elaborate on why this is a blocker for migrating from Firebase?

Devs may encounter "Updating password of an anonymous user is not possible" when attempting to set a user's password via auth.updateUser({ password }) per your docs, after attempting the auth.updateUser({ email }) call.

This is the current limitation and we're working to see how this can be improved. Currently, an anonymous user will need to verify the email change first before calling updateUser to add a password.

The current, buggy updateUser flow appears to write the supplied email to email_change instead of email on the anonymous user's row in the auth.users table.

yeah, it doesn't respect the email verification disabled config and this seems like a bug - i'll check with the team if there are any concerns before making a fix for this

This is a blocker for projects that want minimal friction, which is the purpose of anonymous logins

hey @symbolpunk and @NodeAdam, this took some time as the team was quite tight on bandwidth, but i've just put a PR up for it, thanks for reporting this!


modestbranding does not remove YouTube Logo Watermark

The YouTube Watermark remains, even when setting modestbranding={true}.  I believe it might be related to how the playerVars are set in the .html file?

If anyone else is wondering about this... its due to the fact you cannot have showinfo={false} AND modestbranding={false} ... apparently Google/YouTube allows only one of those options to be set. More info at: http://stackoverflow.com/a/35174042/6019768 closing this issue! :)

I am unable to hide the youtbe button which is present at the bottom right of the video. Even when i set
modestbranding={true} and showinfo={false} still I am not able to remove the youtube button ?


⚠ ClamAV has degraded performance

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

HTTP code: 200
Response time: 55 ms

Resolved: ClamAV performance has improved in 334482a.


ERC721 assets no longer render properly

Now they render like 875 defaults.

@James-Sangalli I can't reproduce it. Do you know how?


Subject with dashes are decoded as None

PR to show this: https://github.com/jwt-scala/jwt-scala/pull/249
Regex for subject doesn't include dashes, and if dashes are included, the decoded subject is None.
There are examples in your tests using uuid subjects, but they would not pass this decoding.  Small fix, that would help me (we have some negative principal ids that fail because of this).  Thanks!

thanks, I'll take a look!

that's fixed in v8.0.2


[hmac] Revise Unreachable Error

Revise the Unreachable SwPushMsgWhenDisable to detect the software write op when SHA disabled. msg_write signal is now not asserted to prevent unwanted message push to the FIFO. It is still useful to detect the event and report to software to find the incorrect behavior of the software.
Addressing the issue #2848
CC: @cindychip

@eunchan i think this one is already done right..? let me know if i'm wrong.

No. This is not fixed yet. SwPushMsgWhenDisabled is not needed anymore as SwPushMsgWhenDisallowed supersede this.

looks like this has been addressed.

@eunchan could you confirm if this is implemented? https://github.com/lowRISC/opentitan/blob/master/hw/ip/hmac/rtl/hmac.sv#L518
I still see this err_code here?


Update Tokio to version 1.12.0

Motivation

This is part of the update to use Tokio version 1 (#2200), and must be merged together with the other PRs.
Newer versions of Tokio have some interesting features, as well as unblocking Zebra from updating other dependencies.
Solution

The Tokio version was updated to 1.12.0. This unfortunately breaks the Zebra build, so this PR can't be merged until other PRs that fix the issues are approved.
One of the fixes is to not use the StreamExt trait that was available in Tokio 0.3.6 but isn't available in Tokio 1.12.0. Some usages of that trait need some work, but one of the usages just needs to change the import so it was included in this PR.
Review

Anyone from the team can review this, but it shouldn't be merged yet.
Testing
In the tokio rollup PR, make sure that Zebra's dependency tree only has the upgraded tokio version. Also check for duplicates for other dependencies we upgraded.
If we have multiple versions, we'll be running multiple executors, and might have other subtle bugs.
We can check for duplicates using cargo deny check bans:
https://embarkstudios.github.io/cargo-deny/checks/bans/index.html#use-case---duplicate-version-detection
Reviewer Checklist

[ ] Code implements Specs and Designs
[ ] Tests for Expected Behaviour
[ ] Tests for Errors

Follow Up Work

I added a testing section:
In the tokio rollup PR, make sure that Zebra's dependency tree only has the upgraded tokio version. Also check for duplicates for other dependencies we upgraded.

This is covered by PRs #2986 and #2987.

Note: the tokio::stream::StreamExt import in tower-batch has been removed in the latest main branch.

Merged through #2994.


VSCode Insiders breaks into Chrome developer tools with "TypeError: Cannot read property 'layout' of undefined"

VSCode Version:
Version: 1.39.0-insider (system setup)
Commit: bdd1971f2cd9d08a8a90e02740f1850afe03da66
Date: 2019-09-17T06:02:08.670Z
Electron: 6.0.9
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Windows_NT x64 10.0.18362

Steps to Reproduce:

Open and start debugging VSCode Live Share extension
When another instance of VSCode Insiders opens up (to debug the extension), it immediately breaks into Chrome dev tools with lots of TypeError: Cannot read property 'layout' of undefined errors:

[uncaught exception]: TypeError: (e.args.enable-proposed-api || []).map is not a function
onUnexpectedError @ bootstrap-window.js:212
bootstrap-window.js:215 TypeError: (e.args.enable-proposed-api || []).map is not a function
    at new x (abstractExtensionService.ts:455)
    at new e (abstractExtensionService.ts:85)
    at new P (extensionService.ts:71)
    at h._createInstance (instantiationService.ts:117)
    at h._createServiceInstance (instantiationService.ts:216)
    at h._createServiceInstanceWithOwner (instantiationService.ts:205)
    at h._createAndCacheServiceInstance (instantiationService.ts:194)
    at h._getOrCreateServiceInstance (instantiationService.ts:142)
    at h._createInstance (instantiationService.ts:94)
    at h.createInstance (instantiationService.ts:82)
    at Q.open (desktop.main.ts:133)
onUnexpectedError @ bootstrap-window.js:215
log.ts:173   ERR (e.args.enable-proposed-api || []).map is not a function: TypeError: (e.args.enable-proposed-api || []).map is not a function
    at new x (file:///C:/Program Files/Microsoft VS Code Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:3431:327)
    at new e (file:///C:/Program Files/Microsoft VS Code Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:3424:386)
    at new P (file:///C:/Program Files/Microsoft VS Code Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:4097:206)
    at h._createInstance (file:///C:/Program Files/Microsoft VS Code Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1496:201)
    at h._createServiceInstance (file:///C:/Program Files/Microsoft VS Code Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1498:173)
    at h._createServiceInstanceWithOwner (file:///C:/Program Files/Microsoft VS Code Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1497:768)
    at h._createAndCacheServiceInstance (file:///C:/Program Files/Microsoft VS Code Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1497:443)
    at h._getOrCreateServiceInstance (file:///C:/Program Files/Microsoft VS Code Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1496:709)
    at Object.get (file:///C:/Program Files/Microsoft VS Code Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1495:231)
    at t.Workbench.initLayout (file:///C:/Program Files/Microsoft VS Code Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:5437:383)
    at file:///C:/Program Files/Microsoft VS Code Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:5462:443
    at h.invokeFunction (file:///C:/Program Files/Microsoft VS Code Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1495:365)
    at t.Workbench.startup (file:///C:/Program Files/Microsoft VS Code Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:5462:318)
    at Q.open (file:///C:/Program Files/Microsoft VS Code Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:6014:390)
bootstrap-window.js:212 [uncaught exception]: TypeError: (e.args.enable-proposed-api || []).map is not a function
onUnexpectedError @ bootstrap-window.js:212
bootstrap-window.js:215 TypeError: (e.args.enable-proposed-api || []).map is not a function
    at new x (abstractExtensionService.ts:455)
    at new e (abstractExtensionService.ts:85)
    at new P (extensionService.ts:71)
    at h._createInstance (instantiationService.ts:117)
    at h._createServiceInstance (instantiationService.ts:216)
    at h._createServiceInstanceWithOwner (instantiationService.ts:205)
    at h._createAndCacheServiceInstance (instantiationService.ts:194)
    at h._getOrCreateServiceInstance (instantiationService.ts:142)
    at h._createInstance (instantiationService.ts:94)
    at h.createInstance (instantiationService.ts:82)
    at t.WorkspaceService.acquireInstantiationService (configurationService.ts:305)
    at workbench.ts:207
onUnexpectedError @ bootstrap-window.js:215
bootstrap-window.js:212 [uncaught exception]: TypeError: Cannot read property 'layout' of undefined
onUnexpectedError @ bootstrap-window.js:212
bootstrap-window.js:215 TypeError: Cannot read property 'layout' of undefined
    at t.Workbench.layout (layout.ts:885)
    at Q.onWindowResize (desktop.main.ts:163)
    at desktop.main.ts:123
[uncaught exception]: TypeError: Cannot read property 'layout' of undefined
onUnexpectedError @ bootstrap-window.js:212
bootstrap-window.js:215 TypeError: Cannot read property 'layout' of undefined
    at t.Workbench.layout (layout.ts:885)
    at Q.onWindowResize (desktop.main.ts:163)
    at desktop.main.ts:123
onUnexpectedError @ bootstrap-window.js:215
bootstrap-window.js:212 [uncaught exception]: TypeError: Cannot read property 'layout' of undefined
onUnexpectedError @ bootstrap-window.js:212
bootstrap-window.js:215 TypeError: Cannot read property 'layout' of undefined
    at t.Workbench.layout (layout.ts:885)
    at Q.onWindowResize (desktop.main.ts:163)
    at desktop.main.ts:123
onUnexpectedError @ bootstrap-window.js:215
bootstrap-window.js:212 [uncaught exception]: TypeError: Cannot read property 'layout' of undefined
onUnexpectedError @ bootstrap-window.js:212
bootstrap-window.js:215 TypeError: Cannot read property 'layout' of undefined
    at t.Workbench.layout (layout.ts:885)
    at Q.onWindowResize (desktop.main.ts:163)
    at desktop.main.ts:123
...

Does this issue occur when all extensions are disabled?: No - it repros when I debug an extension

After I removed --enable-proposed-api from debug arguments, the issue doesn't repro.

@aeschli that seems to be related to c27d4e086e7409a19f67f4c8b514044187f1d295.


[iOS] Exception 'Native GetParsedStatusEx failed' when Printer Turned Off

Attempting to run StarPRNT.checkStatus after connecting to a printer and then turning the printer off causes
Exception 'Native GetParsedStatusEx failed' was thrown while invoking checkStatus on target RNStarPrnt with params(...)

Maybe this line needs to be wrapped in a try/catch? https://github.com/infoxicator/react-native-star-prnt/blob/3a371b61765bd1c13cfa9226d627c96d5909bf95/ios/RNStarPrnt.m#L109

I have the same issue. @kevinvangelder did you find a fix that could be implemented on javascript side? I don't think I can use the checkStatus method if there is a possibility of crash.
Help is appreciated.

I don't think I did, sorry.


Make withExtraArgument accept an object or a function

Currently the withExtraArgument function allows us to inject an extra argument into our middleware, which is pretty handy.
However, this solution has the limitation of only allowing to pass that argument when applying the middlewares, which makes it hard to provide dynamic arguments to it.
Many scenarios can include this need: multi-tenant apps, locale-dependant apps, etc, basically where there's the need to evaluate something (current state / variable value / etc), before providing it to the thunk expression.
Is there any solution which you suggest? If you not, would it make sense to create a PR where the extra argument could take a form of a function, allowing the developer to decide that to inject dynamically?

There are several ways to archive this, the simplest is to use a getter to initialize your extra argument:
let arg = {
    get api() {
        return ...;
    }
};

withExtraArgument(arg);

On environment where getters are not available, use a function directly:
let arg = {
    api: function () {
        return ...;
    }
};

withExtraArgument(arg);

Other than that, I developed a more complex thunk middleware redux-managed-thunk and provided an injectWith function to handle your case


Fix setup scripts

I think this will fix #4 issue.
The variable script must be called within the same context for it to work.  An issue I forgot to fix.  This will ensure the .env files are populated with the variable values.
Regrettably you'll need to either manually fix your .env or just delete them and recreate them again.
I've added a make nuke command in other projects, might be useful to add to this one when I have time.

Ok, this got me further! Now I get:
Microsoft.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 35 - An internal exception was caught)
 ---> System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (00000005, 0xFFFDFFFF): nodename nor servname provided, or not known
   at System.Net.Dns.GetHostEntryOrAddressesCore(String hostName, Boolean justAddresses, AddressFamily addressFamily, ValueStopwatch stopwatch)
   at System.Net.Dns.GetHostAddresses(String hostNameOrAddress, AddressFamily family)
   at Microsoft.Data.SqlClient.SNI.SNITCPHandle.Connect(String serverName, Int32 port, TimeSpan timeout, Boolean isInfiniteTimeout, String cachedFQDN, SQLDNSInfo& pendingDNSInfo)
   at Microsoft.Data.SqlClient.SNI.SNITCPHandle..ctor(String serverName, Int32 port, Int64 timerExpire, Boolean parallel, String cachedFQDN, SQLDNSInfo& pendingDNSInfo) in /_/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNITcpHandle.cs:line 153
   at Microsoft.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) in /_/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlInternalConnection.cs:line 617
   at Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) in /_/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParser.cs:line 1327
   at Microsoft.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, Boolean withFailover, SqlAuthenticationMethod authType) in /_/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParser.cs:line 460
   at Microsoft.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover) in /_/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlInternalConnectionTds.cs:line 1874
   at Microsoft.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout) in /_/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlInternalConnectionTds.cs:line 1463
   at Microsoft.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance) in /_/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlInternalConnectionTds.cs:line 1409
   at Microsoft.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken, DbConnectionPool pool) in /_/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlInternalConnectionTds.cs:line 507
   at Microsoft.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions) in /_/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlConnectionFactory.cs:line 133
   at Microsoft.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions) in /_/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Microsoft/Data/ProviderBase/DbConnectionFactory.cs:line 138
   at Microsoft.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) in /_/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/ProviderBase/DbConnectionPool.cs:line 726
   at Microsoft.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) in /_/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/ProviderBase/DbConnectionPool.cs:line 1737
   at Microsoft.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) in /_/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/ProviderBase/DbConnectionPool.cs:line 1147
   at Microsoft.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) in /_/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/ProviderBase/DbConnectionPool.cs:line 1115
   at Microsoft.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) in /_/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/ProviderBase/DbConnectionFactory.cs:line 121
   at Microsoft.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) in /_/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Microsoft/Data/ProviderBase/DbConnectionInternal.cs:line 338
   at Microsoft.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) in /_/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Microsoft/Data/ProviderBase/DbConnectionClosed.cs:line 39
   at Microsoft.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry, SqlConnectionOverrides overrides) in /_/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlConnection.cs:line 1687
   at Microsoft.Data.SqlClient.SqlConnection.Open(SqlConnectionOverrides overrides) in /_/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlConnection.cs:line 1183
   at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerConnection.OpenDbConnection(Boolean errorsExpected)
   at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternal(Boolean errorsExpected)
   at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Open(Boolean errorsExpected)
   at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerDatabaseCreator.<>c__DisplayClass18_0.<Exists>b__0(DateTime giveUp)
   at Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.<>c__DisplayClass12_0`2.<Execute>b__0(DbContext c, TState s)
   at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded)
   at Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.Execute[TState,TResult](IExecutionStrategy strategy, TState state, Func`2 operation, Func`2 verifySucceeded)
   at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerDatabaseCreator.Exists(Boolean retryOnNotExists)
   at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerDatabaseCreator.Exists()
   at Microsoft.EntityFrameworkCore.Migrations.HistoryRepository.Exists()
   at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.Migrate(String targetMigration)
   at Microsoft.EntityFrameworkCore.Design.Internal.MigrationsOperations.UpdateDatabase(String targetMigration, String connectionString, String contextType)
   at Microsoft.EntityFrameworkCore.Design.OperationExecutor.UpdateDatabaseImpl(String targetMigration, String connectionString, String contextType)
   at Microsoft.EntityFrameworkCore.Design.OperationExecutor.UpdateDatabase.<>c__DisplayClass0_0.<.ctor>b__0()
   at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.Execute(Action action)
ClientConnectionId:00000000-0000-0000-0000-000000000000

This might work for the nuke command (the steps I used anyhow). Downside is of course removal of any local editor/other config that one may want to keep around, upside is not having to maintain a list of untracked files to remove. Anyhow, just a thought - maybe there's a better way.
nuke:
	$(info Removing all containers, images, volumes, and configuration for solution.)
	@make clean
	@git clean -fx

That error is because your database was most likely initiated with the wrong .env files.  You'll need to remove the database volume and restart it with the new .env.

Huh. I did try that.

Matt Bennett
On Dec 25, 2021, 19:41 -0800, Jeremy Foster @.***>, wrote:

That error is because your database was most likely initiated with the wrong .env files. You'll need to remove the database volume and restart it with the new .env.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because your review was requested.Message ID: @.***>

Can you connect to the database with a different admin tool?  Does docker show that it's running?  Can you ssh into the container and use the sqlcmd cli:?
docker exec -it ce-database bash
/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P {YOUR PASSWORD} -d coevent
select * from dbo.users;
go

The container starts fine, I can login to the db, it's the migrations step that fails:
1> select * from information_schema.tables;
2> go
TABLE_CATALOG                                                                                TABLE_SCHEMA                                                                                TABLE_NAME                                                                                TABLE_TYPE
-------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------- ----------

(0 rows affected)

Full verbose output of make db-update:
Update the database with the latest migration.
Using project '/Users/matthewbennett-work/Sites/coevent/api/libs/dal/Coevent.Dal.csproj'.
Using startup project '/Users/matthewbennett-work/Sites/coevent/api/libs/dal/Coevent.Dal.csproj'.
Writing '/Users/matthewbennett-work/Sites/coevent/api/libs/dal/obj/Coevent.Dal.csproj.EntityFrameworkCore.targets'...
dotnet msbuild /target:GetEFProjectMetadata /property:EFProjectMetadataFile=/var/folders/xz/w8n2gjfj2xb6qgfj6nty6jp80000gp/T/tmpcvBaPi.tmp /verbosity:quiet /nologo /Users/matthewbennett-work/Sites/coevent/api/libs/dal/Coevent.Dal.csproj
Writing '/Users/matthewbennett-work/Sites/coevent/api/libs/dal/obj/Coevent.Dal.csproj.EntityFrameworkCore.targets'...
dotnet msbuild /target:GetEFProjectMetadata /property:EFProjectMetadataFile=/var/folders/xz/w8n2gjfj2xb6qgfj6nty6jp80000gp/T/tmpYm7nuT.tmp /verbosity:quiet /nologo /Users/matthewbennett-work/Sites/coevent/api/libs/dal/Coevent.Dal.csproj
Build started...
dotnet build /Users/matthewbennett-work/Sites/coevent/api/libs/dal/Coevent.Dal.csproj /verbosity:quiet /nologo

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:05.85
Build succeeded.
dotnet exec --depsfile /Users/matthewbennett-work/Sites/coevent/api/libs/dal/bin/Debug/net6.0/Coevent.Dal.deps.json --additionalprobingpath /Users/matthewbennett-work/.nuget/packages --additionalprobingpath /usr/local/share/dotnet/sdk/NuGetFallbackFolder --runtimeconfig /Users/matthewbennett-work/Sites/coevent/api/libs/dal/bin/Debug/net6.0/Coevent.Dal.runtimeconfig.json /Users/matthewbennett-work/.dotnet/tools/.store/dotnet-ef/6.0.1/dotnet-ef/6.0.1/tools/netcoreapp3.1/any/tools/netcoreapp2.0/any/ef.dll database update --assembly /Users/matthewbennett-work/Sites/coevent/api/libs/dal/bin/Debug/net6.0/Coevent.Dal.dll --project /Users/matthewbennett-work/Sites/coevent/api/libs/dal/Coevent.Dal.csproj --startup-assembly /Users/matthewbennett-work/Sites/coevent/api/libs/dal/bin/Debug/net6.0/Coevent.Dal.dll --startup-project /Users/matthewbennett-work/Sites/coevent/api/libs/dal/Coevent.Dal.csproj --project-dir /Users/matthewbennett-work/Sites/coevent/api/libs/dal/ --root-namespace Coevent.Dal --language C# --framework net6.0 --nullable --working-dir /Users/matthewbennett-work/Sites/coevent/api/libs/dal --verbose
Using assembly 'Coevent.Dal'.
Using startup assembly 'Coevent.Dal'.
Using application base '/Users/matthewbennett-work/Sites/coevent/api/libs/dal/bin/Debug/net6.0'.
Using working directory '/Users/matthewbennett-work/Sites/coevent/api/libs/dal'.
Using root namespace 'Coevent.Dal'.
Using project directory '/Users/matthewbennett-work/Sites/coevent/api/libs/dal/'.
Remaining arguments: .
Finding DbContext classes...
Finding IDesignTimeDbContextFactory implementations...
Found IDesignTimeDbContextFactory implementation 'CoeventContextFactory'.
Found DbContext 'CoeventContext'.
Finding application service provider in assembly 'Coevent.Dal'...
Finding Microsoft.Extensions.Hosting service provider...
No static method 'CreateHostBuilder(string[])' was found on class 'Program'.
No application service provider was found.
Finding DbContext classes in the project...
Using DbContext factory 'CoeventContextFactory'.
info: Coevent.Dal.CoeventContextFactory[0]
      Context created for host.docker.internal,10000
Using context 'CoeventContext'.
Finding design-time services referenced by assembly 'Coevent.Dal'...
Finding design-time services referenced by assembly 'Coevent.Dal'...
No referenced design-time services were found.
Finding design-time services for provider 'Microsoft.EntityFrameworkCore.SqlServer'...
Using design-time services from provider 'Microsoft.EntityFrameworkCore.SqlServer'.
Finding IDesignTimeServices implementations in assembly 'Coevent.Dal'...
No design-time services were found.
Migrating using database 'coevent' on server 'host.docker.internal,10000'.
Opening connection to database 'coevent' on server 'host.docker.internal,10000'.
An error occurred using the connection to database 'coevent' on server 'host.docker.internal,10000'.
'CoeventContext' disposed.
Microsoft.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 35 - An internal exception was caught)
 ---> System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (00000005, 0xFFFDFFFF): nodename nor servname provided, or not known
   at System.Net.Dns.GetHostEntryOrAddressesCore(String hostName, Boolean justAddresses, AddressFamily addressFamily, ValueStopwatch stopwatch)
   at System.Net.Dns.GetHostAddresses(String hostNameOrAddress, AddressFamily family)
   at Microsoft.Data.SqlClient.SNI.SNITCPHandle.Connect(String serverName, Int32 port, TimeSpan timeout, Boolean isInfiniteTimeout, String cachedFQDN, SQLDNSInfo& pendingDNSInfo)
   at Microsoft.Data.SqlClient.SNI.SNITCPHandle..ctor(String serverName, Int32 port, Int64 timerExpire, Boolean parallel, String cachedFQDN, SQLDNSInfo& pendingDNSInfo) in /_/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNITcpHandle.cs:line 153
   at Microsoft.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) in /_/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlInternalConnection.cs:line 617
   at Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) in /_/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParser.cs:line 1327
   at Microsoft.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, Boolean withFailover, SqlAuthenticationMethod authType) in /_/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParser.cs:line 460
   at Microsoft.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover) in /_/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlInternalConnectionTds.cs:line 1874
   at Microsoft.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout) in /_/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlInternalConnectionTds.cs:line 1463
   at Microsoft.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance) in /_/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlInternalConnectionTds.cs:line 1409
   at Microsoft.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken, DbConnectionPool pool) in /_/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlInternalConnectionTds.cs:line 507
   at Microsoft.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions) in /_/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlConnectionFactory.cs:line 133
   at Microsoft.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions) in /_/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Microsoft/Data/ProviderBase/DbConnectionFactory.cs:line 138
   at Microsoft.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) in /_/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/ProviderBase/DbConnectionPool.cs:line 726
   at Microsoft.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) in /_/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/ProviderBase/DbConnectionPool.cs:line 1737
   at Microsoft.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) in /_/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/ProviderBase/DbConnectionPool.cs:line 1147
   at Microsoft.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) in /_/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/ProviderBase/DbConnectionPool.cs:line 1115
   at Microsoft.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) in /_/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/ProviderBase/DbConnectionFactory.cs:line 121
   at Microsoft.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) in /_/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Microsoft/Data/ProviderBase/DbConnectionInternal.cs:line 338
   at Microsoft.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) in /_/src/Microsoft.Data.SqlClient/netcore/src/Common/src/Microsoft/Data/ProviderBase/DbConnectionClosed.cs:line 39
   at Microsoft.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry, SqlConnectionOverrides overrides) in /_/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlConnection.cs:line 1687
   at Microsoft.Data.SqlClient.SqlConnection.Open(SqlConnectionOverrides overrides) in /_/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlConnection.cs:line 1183
   at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerConnection.OpenDbConnection(Boolean errorsExpected)
   at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternal(Boolean errorsExpected)
   at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Open(Boolean errorsExpected)
   at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerDatabaseCreator.<>c__DisplayClass18_0.<Exists>b__0(DateTime giveUp)
   at Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.<>c__DisplayClass12_0`2.<Execute>b__0(DbContext c, TState s)
   at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded)
   at Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.Execute[TState,TResult](IExecutionStrategy strategy, TState state, Func`2 operation, Func`2 verifySucceeded)
   at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerDatabaseCreator.Exists(Boolean retryOnNotExists)
   at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerDatabaseCreator.Exists()
   at Microsoft.EntityFrameworkCore.Migrations.HistoryRepository.Exists()
   at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.Migrate(String targetMigration)
   at Microsoft.EntityFrameworkCore.Design.Internal.MigrationsOperations.UpdateDatabase(String targetMigration, String connectionString, String contextType)
   at Microsoft.EntityFrameworkCore.Design.OperationExecutor.UpdateDatabaseImpl(String targetMigration, String connectionString, String contextType)
   at Microsoft.EntityFrameworkCore.Design.OperationExecutor.UpdateDatabase.<>c__DisplayClass0_0.<.ctor>b__0()
   at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.Execute(Action action)
ClientConnectionId:00000000-0000-0000-0000-000000000000
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 35 - An internal exception was caught)
make[2]: *** [db-update] Error 1
make[1]: *** [db-update] Error 2


AUTOMATIC1111.ipynb Error when running Start stable-diffusion

Warning: CodeFormer not found at path /content/gdrive/MyDrive/sd/stablediffusion/src/codeformer/inference_codeformer.py
Warning: BLIP not found at path /content/gdrive/MyDrive/sd/stablediffusion/src/blip/models/blip.py
Warning: k_diffusion not found at path /content/gdrive/MyDrive/sd/stablediffusion/src/k-diffusion/k_diffusion/sampling.py
Traceback (most recent call last):
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 14, in
from modules import shared, devices, sd_samplers, upscaler, extensions, localization, ui_tempdir
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_samplers.py", line 8, in
import k_diffusion.sampling
ModuleNotFoundError: No module named 'k_diffusion'

remove the folder sd and do a clean run

remove the folder sd and do a clean run

Thanks,it works.


Update Documentation on New cloudtrace Roles

Per the change in PR #1926

Pending completion of the OpenCensus work.

It was decided that tracing is not valuable to Forseti. Closing documentation PR as the code changes for tracing PR has been closed.


Use owncloud 10.12.2 as our base

We're still using the ocm-via-sciencemesh branch of owncloud as the base.
https://github.com/pondersource/dev-stock/blob/273ca5b/docker/owncloud.Dockerfile#L14
I know that we're mounting some folder on top of that, but i'm getting some weird startup errors
so I want to try with https://github.com/owncloud/core/tree/v10.12.2

Building this now, will push to Docker hub when done

And actually in the owncloud-opencloudmesh image we now use the accept-ocm-to-groups  branch directly inside the Dockerfile.


command to run  modbus and dnp3 using snort

hi,
how can i make modbus.pcap file , can u please suggest how to run modbus in snort

You need a modbus master slave to create the pcap. There are some free ones
out there.
FYI .. Wireshark has Modbus dissectors that are quite good.
You can write rules directly or use the Snort Modbus TCP preprocessor, see
https://www.snort.org/faq/readme-modbus
Best Regards,
Dale Peterson
CEO / Catalyst
@digitalbond, dale-peterson.com
Subscribe to my ICS Security: Friday News and Notes
https://friday.dale-peterson.com/signup email
Check out the S4 Videos on the S4 Events YouTube Channel
https://www.youtube.com/s4events
On Wed, Aug 9, 2023 at 12:35 AM MLPrajwalGowda @.***>
wrote:

hi,
how can i make modbus.pcap file , can u please suggest how to run modbus
in snort
—
Reply to this email directly, view it on GitHub
https://github.com/digitalbond/Quickdraw-Snort/issues/3, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACIRI3UMWXCS4ITME56O6U3XUNRYDANCNFSM6AAAAAA3JZJ5FQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

thank you @DalePeterson


"About" window doesn't appear on nightly

Lapce Version
Nightly release (June 25, 2023)
System information
Kernel: 5.19.0-45-generic x86_64 bits: 64 compiler: N/A Desktop: Cinnamon 5.6.8 tk: GTK 3.24.33
wm: muffin dm: LightDM Distro: Linux Mint 21.1 Vera base: Ubuntu 22.04 jammy
Describe the bug
When I click on the gear wheel on the right corner, no window appears to display a menu (update, about Lapce, ...).
Additional information
There is no issue on release 0.2.8 and has appeared in nightly a few weeks ago

Tracked in #2417


fix(ui): resolve intermittent category reordering and toggling issues on mobile

This PR addresses three related UI interaction issues affecting category management on WebKit and Chromium-based mobile browsers.
Steps to Reproduce:

Navigate to kite.kagi.com on a mobile device
Access Settings > Categories tab
Toggle issue:

Rapidly toggle multiple category switches in quick succession (e.g. using multi-touch)
Expected: UI remains responsive to all toggle interactions
Actual: UI becomes unresponsive until page refresh

For reordering issue:

Reorder any category using drag-and-drop
Attempt to toggle category switches
Expected: Toggles work normally after reordering
Actual: Toggle functionality breaks after reordering

For click event issue:

Attempt to toggle categories on affected systems
Expected: Toggle responds to click/tap
Actual: No response to click/tap interactions

This was not easy, thanks for doing it!


modify the type of advertiseAddr to unify with listenAddr

Signed-off-by: yupengzte<EMAIL_ADDRESS>
- What I did
When I do it with “docker swarm”, I found that the descriptions of  advertiseAddr  and listenAddr is same, but their type is different. So modify the type of advertiseAddr to unify with listenAddr.
- How I did it
modify string to NodeAddrOption
- How to verify it
- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

This doesn't look right to me. NodeAddrOption is just a wrapper around a string option that adds a default port if none is specified. As the comment says, we don't want to do this, because advertise-addr should use whatever port listen-addr is using if none was specified, not use its own default.
Also, the NodeAddrOption value is not being initialized, so the parsing won't work properly (see NewNodeAddrOption and how it is used for listen-addr).

Actually CI failing
01:05:44.025 ----------------------------------------------------------------------
01:05:44.025 FAIL: docker_cli_swarm_test.go:91: DockerSwarmSuite.TestSwarmInitUnspecifiedAdvertiseAddr
01:05:44.025
01:05:44.025 [de70b36ecbfd3] waiting for daemon to start
01:05:44.026 [de70b36ecbfd3] daemon started
01:05:44.026
01:05:44.026 docker_cli_swarm_test.go:95:
01:05:44.026     c.Assert(out, checker.Contains, "advertise address must be a non-zero IP address")
01:05:44.026 ... obtained string = "" +
01:05:44.026 ...     "invalid argument \"<IP_ADDRESS>\" for --advertise-addr: missing port in address\n" +
01:05:44.026 ...     "See 'docker swarm init --help'.\n"
01:05:44.026 ... substring string = "advertise address must be a non-zero IP address"
01:05:44.026
01:05:44.026 [de70b36ecbfd3] exiting daemon
01:05:45.629
01:05:45.629 ----------------------------------------------------------------------

Thanks @aaronlehmann @AkihiroSuda
Yes, the CI failing.
I do it on local, like this

It is no need to add port.
So, I think it would be not a problem without port, the problem would be the all zero IP.

It is no need to add port.

That is the reason advertiseAddr cannot be NodeAddrOption and CI is actually failing.
I suggest closing this PR.


wiki Commands section: stats list needs to be updated

I am newer to memcached, I need to refer to the official wiki to learn sometimes, but I found the stats section of the wiki Commands is not completed/updated, for example, below command is not mentioned at least:
stats cachedump
stats detail
stats malloc
stats reset

BTW, I don't know if any way to get the completed list and the corresponding instructions.

doc/protocol.txt in the tarball is supposed to be the complete documentation for the protocol. Some of those commands are for debugging and not end users though.


Separate consoles for RITE and SADL

Ask John @tuxji if you have questions about how to use SADL API. Or maybe this is rather an Eclipse thing.

I have an alternative approach that need not use SADL API, that can programmatically pin the rack console
https://github.com/ge-high-assurance/RITE/blob/sarat-sprint-2/tools/rack/rack.plugin/src/com/ge/research/rack/views/ViewUtils.java#L105
We can pass the rack console object to pinConsole method
By default RackConsole messages will be shown
If needed the user can switch to SADL console


Variables no longer displaying

Only the first occurrence of
$(OSC___ISO_module:GalleryPosition01)    |    Gallery Position 1
$(OSC___ISO_module:Participant001).      |    Participant 1
are displaying under the Variables tabs. Referencing other positions and participants does work, but the ability to verify their value and/or copy the name of the variable is no longer available.

That's intended. The list of variables became to long. All variables do work you just manually change the number.
for example $(OSC___ISO_module:GalleryPosition35).
If/When this is missed very much let me know including a usecase

That's intended. The list of variables became to long. All variables do work you just manually change the number.
for example $(OSC___ISO_module:GalleryPosition35).
If/When this is missed very much let me know including a usecase

@JeffreyDavidsz is this documented in the help?

@ZoomTestKitchen I believe that many of us do this troubleshooting technique due to not having trust that the module is working correctly.   I would rather see us focus on making the module stable so that we can trust it.  As well, the available variables should be documented in the help of it isn’t already there.


Add Tanstack Query functionality to the DataService extension

I've recently been introduced to Tanstack Query and really like how they automate a lot of the server state synchronization. My only problem with this is that I think NGRX is a much better solution for client-side management, and don't want to have 2 state management libraries holding separate slices of my state.
What are some thoughts on adding Tanstack Query features to the DataService extension to provide loading states, cache invalidation, polling etc.. available out of the box (with opt-in configuration)?

Hi, @anthony-b-dev. Thanks for reaching out. It would of course be great to extend the functionality of the DataService. The only question is who wants to do it, respectively would you have the time?

@rainerhahnekamp I would love to do it... unfortunately I'm so new right now I'm confident I wouldn't do a good job. Are you opposed to leaving this open for others to consider and comment on, and then I can revisit once I grow my skills? I think it would be a good addition, but I'll defer to your recommendation.


Post info about flowershow on different forums

Create a post about Flowershow and publish it on relevant forums.
Tasks

[X] Draft copy in gdoc for announce ✅ 2022-08-03 created in HackMD
[ ] Identify forums to post in and post there:

[x] Obsidian forum ✅ 2022-08-17 see post
[ ] Reddit

Forums to post in

obsidian forum
reddit channels: PKMS
dev.to (later when more working?)

@rufuspollock if we're not going to post on other forums for now, I'll remove it from from the last sprint and leave it in the backlog maybe?

Flowershow announced on Obsidian Forum and Reddit


Make the grammar PCRE compatible

This pull request changes 1 regular expressions in an attempt to make the grammar PCRE-compatible. While Atom uses an Oniguruma engine, github.com (which rely on this grammar for YAML highlighting) uses a PCRE-based engine. The two engines interpret \h differently, and only Oniguruma engines support implicit count modifiers ({,n}).

@taschetto Did you get a chance to look into this?


Add 5 new Spools (3DE, Alfawise, Stronghero3D)

Added 5 new spools with pictures measurements and temperatures.
3DE Premium Cardboard Spool
3DE Premium Plastic Spool
Two Alfawise Plastic Spools
Stronghero 3D PLA Spool

Thanks, merging!


Add keyboard shortcuts to ask-dialogs

Accepted any dialog with Y, and vice versa by pressing N or Esc

Great. Thank you. :)


Thinking of Refactor object.  Should we change it?

First thought, what???
Second thought, why??
Ok, follow me.  The pipeline pattern that is emerging is a bit of a implied structure throughout the code and I don't like it.  It makes it hard for any new person to understand where things come from.  What if we strip out the logic and put them into functions that are called within the refactor operations.
example: I also don't mean to rid of all the refactor object, just confine it a bit
-- Inline var refactor
local definition = lsp_utils.get_definition_under_cursor(refactor.bufnr)
local references = lsp_utils.get_references(definition)
...

The only downside I see is error handling.  This can become really annoying.
I don't have a clear idea of where I want to go, I just like the implicit communications that are happening.
Effectively we are a weak decorator pattern.

As of right now I haven't seen anything in the pipeline pattern that buys you anything new over just calling the functions in a row or appending them to a table or some other lua primitive.

I completely agree. I thought there may be more better good, but instead it sucks.
Better to just have some tables in my book.

For now I'm just going to close this issue due to inactivity, but in case we want to reopen later on to reconsider this we can do that as well.


Select the device for the change folder action

Describe the bug
Change Folder does not change the folder on the device neither does change profile
To Reproduce

Expected behavior
The Device should change into the folder Locker as soon as the variable changes to True
Additional context
I wrote a automatic Locker system that uses TaskScheduler to execute a batch file that writes true or false when someone locks windows -_> WIN+L and then when time updates it read the variable from the file so when I lock my PC Macrodeck will evetually be locked as well, sadly the part that macrodeck should change the folder does not work correctly, it only changes on the server.
Change Profile does not work as well.
Confirmed by Xenox003:
https://cdn.discordapp.com/attachments/1053031619969167450/1053039451930107974/20221215_205757.mp4?ex=653ac5e9&is=652850e9&hm=cf0a0fb37a65e3b43beba10cc706163d087640869174efb33000640e0667efc7&
For reference:
https://discord.com/channels/869913729939148800/1053031619969167450
Log file
2023-10-14.log

Is is not a bug, currently this is more "by design". The "change folder" action changes the folder on the device where the button with this action is pressed. Since there is no device when a action is executed by a automation, this cannot work currently.
An idea for a future improvement would be to let the user select on which device the folder should be changed.

Is is not a bug, currently this is more "by design". The "change folder" action changes the folder on the device where the button with this action is pressed. Since there is no device when a action is executed by a automation, this cannot work currently.
An idea for a future improvement would be to let the user select on which device the folder should be changed.

Oh okay I see.
Yeah I'd love to see some sort of this implemented, so I could display a little lock when my Macrodeck instance is locked.


Request More Tips of the Week

Sorry if this is not a suitable place to request.
I've seen a Googler’s code review comment mentioning http://go/totw/151, but I can't find it at https://abseil.io/tips/.
If it's C++ related and doesn't contain Google's confidential information, I hope it's open to the broader C++ community.
Thank you.

I saw other comments on http://go/totw/203. I wish these were made public.


WIP: Add Stripe Payments Intents API SCA-compliant Payment Component (Not intended for merge right now)

Signed-off-by: Janus Reith<EMAIL_ADDRESS>Resolves #5304
Impact: breaking|major
Type: feature|refactor
Issue
The new Stripe Payment api plugin would not be compatible with the existing stripe frontend integration.
Solution
This PR adds a new Stripe Credit Card form and utilizes the new mutation to create a Stripe payment intent.
Breaking changes
This might replace the existing integration in the default storefront, or live side by side with it.
Removing the existing one might be desired though, since it requires an outdated stripe package to be be bundled, as the old integration is not entirely decoupled in the existing component library.
Testing
See here: https://github.com/reactioncommerce/api-plugin-payments-stripe-sca/pull/2
Notice & Todo
This branch is intended for testing and should not be merged. I envision this payment component to be distributed as separate module which could be imported from the storefront.
A separate PR might get rid of the existing stripe package included in the storefront, one blocker here is the component library currently throwing errors if that package is not present, regardless of its Stripe Payment Form actually being in use.

:tada: This PR is included in version 5.1.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket: