object oriented programming

Modify the content in utilities.py in a way that all functions sit in a "Listener" class. Also make sure that the new class is used properly in continuous_listing.ipynb . Instead of calling individual functions, you instantiate an object of the new class. Afterwards, call functions on that object.
git-bob think about this.

Yes, wonderful! Go ahead git-bob implement  this!


installation fails (windows, go 1.4)

First thing, go 1.4 says there is no -U flac for the get command
I tried with and without the -u flag with similar results (my $GOPATH = C:\temp\goodrive):
go get  -u github.com/go-libs/growl
# github.com/go-libs/growl
C:\temp\goodrive\src\github.com\go-libs\growl\linux.go:4: getCmd redeclared in this block
        previous declaration at C:\temp\goodrive\src\github.com\go-libs\growl\darwin.go:6
C:\temp\goodrive\src\github.com\go-libs\growl\linux.go:31: missing return at end of function
C:\temp\goodrive\src\github.com\go-libs\growl\windows.go:4: getCmd redeclared in this block
        previous declaration at C:\temp\goodrive\src\github.com\go-libs\growl\linux.go:4

This package has probably never built (at least not in many years):
http://stackoverflow.com/questions/10646531/golang-conditional-compilation/10649653#10649653


glossary: Fix PDB tooltip text

Description
The tooltip text for the Pod Disruption Budget term renders incorrectly due to the templating of the "Pod" term within the short_description. This can be observed by hovering the cursor over the "PodDisruptionBudget" term on the following page: https://kubernetes.io/docs/concepts/scheduling-eviction/node-pressure-eviction/

Fix the issue by replacing the templated text with the literal word "Pod" for the English and Chinese versions of the documentation. Also slightly modify the wording to align with the full description on the following page: https://kubernetes.io/docs/concepts/workloads/pods/disruptions/#pod-disruption-budgets
Issue

Closes: #

@disposedtrolley,
Thanks for your efforts in creating this PR.
It appears that this PR includes changes to files across multiple languages English and Chinese. However, docs follows different processes for each localization, and we typically don't accept pull requests that impact multiple languages simultaneously. I would recommend modify only the primary website content (which means only English content) initially with this PR. After the merge of the English content, we could create separate pull request for the remaining language(s).

Explicit hold until this PR only covers one language
(Ok to unhold once that's done)
/hold

@T-Lakshmi thanks for the review! I've modified the commit so it only changes the English documentation.

/approve

/unhold


Horizontal layout?

Hello,
I really like the layout. However, is there a way to make this layout horizontal instead of vertical?
Thank you.
My regards.

Hi @MarbleDaemon and sorry for the late answer this somehow went through my notifications.
I think it should not be hard to implement support of horizontal layout. I'd be happy to accept your PR or help with any question.
To start with something you can take a look at ADMozaikLayoutSectionGeometry that is the main class that builds the layout.


MVP: Navbar fixes

Description

The active Navbar links don't turn green when you navigate between pages.
For the MVP, we'll only need these pages on the navbar:

Home
About Us
Community

Tasks

[x] Display the active navbar link for the current page
[x] Add a max-width for large screen displays (about 1920px)
[x] Comment out nav links that are not required for the MVP

commented out the currently unneeded navlinks


Replaced tf.Variable with tf.constant in most places.

Making everything a tf.Variable caused performance problems. This reverts most instances back to tf.constant. Only optimization parameters are left as tf.Variable.

Codecov Report

Merging #46 (b9dcd6c) into dev (6ac6ba0) will not change coverage.
The diff coverage is 53.65%.

@@           Coverage Diff           @@
##              dev      #46   +/-   ##
=======================================
  Coverage   46.62%   46.62%
=======================================
  Files          35       35
  Lines        4525     4525
=======================================
  Hits         2110     2110
  Misses       2415     2415

Impacted Files
Coverage Δ

c3/optimizers/c3.py
0.00% <0.00%> (ø)

c3/optimizers/sensitivity.py
0.00% <ø> (ø)

c3/system/tasks.py
45.28% <0.00%> (ø)

c3/libraries/fidelities.py
18.50% <11.11%> (ø)

c3/utils/tf_utils.py
44.44% <33.33%> (ø)

c3/optimizers/optimizer.py
76.19% <50.00%> (ø)

c3/experiment.py
55.44% <66.66%> (ø)

c3/system/model.py
79.71% <66.66%> (ø)

c3/system/chip.py
75.10% <90.00%> (ø)

c3/c3objs.py
79.56% <100.00%> (ø)

... and 3 more

Continue to review full report at Codecov.

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


Default object passed as references to all the components

Hi,
I'm trying this component for one of my project.
I've followed one of the example that use this component in conjunction with the field-object, and following that example, in my schema I've an "items.default: {}".
Doing that, I've found a strange behavior: When I have more than once instance of the object, they are all referring to the same default object, so the similar fields are compiled with the same values in all the instances of the component. For example, if you have a text input in the schema of the field-object, all those text input will share the same values.
Looking at the code of the field-array.vue, I see that you're assigning the same object and pushing it  to the value array (around line 89), shouldn't be deep cloned? So that every time there's a new instance of the object and not a reference to the same.
Thanks for your work!
Daniele

Solved by the PR #3 thanks to your amazing work! =D


API Documentation??

Describe the problem feature solves
A clear document generated from the JSDoc's that used to live... now, there is no way to go and view all of the resource options / etc from the site making things extremely difficult to locate what options are able to be passed.  For example; I am looking for customizing a Resource, however, I cannot determine what all of the various properties are besides digging through a ton of source code and then looking back through to see for instance what the navigation specs are.
Describe the solution you'd like
Publish the API documentation along with the current tutorial style navigation.
Describe alternatives you've considered
Provide types for everything so I might be able to view everything in VSCode?
Acceptance criteria

API style documentation published somewhere.

The old "API reference" documentation is still available here: https://adminjs-docs.web.app
The new tutorial-styled documentation is what people preferred over API reference when we asked our Slack community; most people couldn't find relevant information there and still asked questions that had been asked numerous amount of times, that's why we switched the priorities.
The API documentation, although still available, hasn't been maintained for a while. The reason is that it's difficult to do so as we currently have around 30 repositories. We'd previously tried to use git submodules with all our repositories to read through JSDocs in source code to generate it, but sometimes there have been issues where certain pages were missing after being deployed etc that we hadn't noticed until someone reported that. I have a few ideas to better automate it but it isn't prioritised right now.

I will close this for now, the new documentation now has a link to the old API Reference in the sidebar.


Zerokit development planning

This is a tentative dynamic meta-issue which collects required and desirable features for Zerokit with a reasonably clear scope.
Ideally, each item should correspond to one or more issues to be addressed according to agreed monthly development planning.
Items marked with a (*) are currently prioritized.
Implementation
General

[ ] Release v0.2 (select subset of items in this issue) (*)
[ ] Check license compatibility with dependencies and add a license (*)
[ ] Reduce static libraries and WASM sizes (includes revising dependencies):

https://github.com/vacp2p/zerokit/issues/37

[ ] Standardize an abstract ZK circuit interface to be used on all modules:

https://github.com/vacp2p/zerokit/issues/71

[ ] Address any eventual requirement coming from projects using zerokit modules (nwaku, js-waku, etc.)
[ ] Separate tests from logic (*)
[ ] Embed the circuit loading logic in utils (at the moment we use ark-circom, which uses heavy dependencies)

rln

[ ] Code refactoring/optimization/clean-up (chores, todos, clippy, revise serialization, etc.) (*):

https://github.com/vacp2p/zerokit/issues/96
https://github.com/vacp2p/zerokit/issues/39

[ ] Complete documentation of the modules (ffi, protocol, utils, etc.) (*) :

https://github.com/vacp2p/zerokit/issues/69

[ ] Audit FFI (in particular usage of not_unsafe_ptr_arg_deref):

https://github.com/vacp2p/zerokit/issues/96 (item) (*)

[ ] Push RLN crate to crates.io (requires license) (*)
[ ] MVP CLI interface:

https://github.com/vacp2p/zerokit/issues/70

[ ] Add support to nrln, i.e. use degree-n polynomials (requires analysis and agreement on coefficients generation)

rln-wasm

[ ] Generate proofs using multi-threading:

https://github.com/vacp2p/zerokit/issues/55

[ ] Explore/implement WASM-friendly DB solutions (to be implemented in pmtree) for tree persistence using browsers
[ ] Ensure all rln module public APIs are exposed by rln-wasm (*) :

https://github.com/vacp2p/zerokit/issues/64

semaphore

[ ] Refactor RLN module (i.e. make it stand-alone similarly as RLN):

https://github.com/vacp2p/zerokit/issues/78

utils
Merkle tree (pmtree - in collaboration with PSE)

[ ] Align pmtree APIs with OptimalMerkleTree APIs, i.e. make the two interchangeable
[ ] Properly benchmark pmtree performances:

https://github.com/vacp2p/zerokit/issues/89

[ ] Add support in pmtree to database DB configurations in order to keep traits and APIs abstract https://github.com/vacp2p/zerokit/pull/86#discussion_r1044333626

Poseidon Hash

[ ] Generate Poseidon round parameters and constants:

https://github.com/vacp2p/zerokit/issues/50 Only round parameters (easy) and secure MDS matrices verification algorithms (hard) missing

Design/analysis
rln

[ ] RLN V2 (in collaboration with PSE):
Optimize circuit evaluation costs, i.e. compute outside the circuit external_nullifier, etc.
Implement/audit a single general degree-n zk circuit with n compile-time parameter (falls back to rln when n=1)
[ ] Allow higher messaging rate (i.e. >1 message/epoch):
Compare computational/communication/zk-evaluation costs of using n degree-1 RLN credentials vs. 1 degree-n RLN credential

utils
Merkle tree (pmtree)

[ ] Based on above benchmark results, tune default DB parameters to increase efficiency or move to a better default DB implementation

Should we cut up a Zerokit v0.2 release issue and aim to get it out in a few weeks?
Also generic Makefile probably useful https://github.com/vacp2p/zerokit/issues/41


liblinphone: 4.4.15 -> 4.4.21

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/liblinphone/versions.
meta.description for liblinphone is: "Library for SIP calls and instant messaging"
meta.homepage for liblinphone is: "https://www.linphone.org/technical-corner/liblinphone"
meta.changelog for liblinphone is: ""
Updates performed

Version update

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 4.4.21 with grep in /nix/store/dyid6chcdwbs75ixprqfa76x5mznwv6q-liblinphone-4.4.21

directory tree listing: https://gist.github.com/3a87a1667b4525e2ac915efc5d6cbcf5

du listing: https://gist.github.com/2e1ab1ed88f7ac0dd938bb0a3a40a4fd

Rebuild report (if merged into master) (click to expand)

6 total rebuild path(s)

2 package rebuild(s)

2 x86_64-linux rebuild(s)
2 i686-linux rebuild(s)
0 x86_64-darwin rebuild(s)
2 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
liblinphone
linphone

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/dyid6chcdwbs75ixprqfa76x5mznwv6q-liblinphone-4.4.21 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A liblinphone https://github.com/r-ryantm/nixpkgs/archive/07cf2a4b8a228fd01f401ceadf5cddcf1384a076.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/dyid6chcdwbs75ixprqfa76x5mznwv6q-liblinphone-4.4.21
ls -la /nix/store/dyid6chcdwbs75ixprqfa76x5mznwv6q-liblinphone-4.4.21/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

2 packages built:

liblinphone
linphone

Maintainer pings
cc @jluttine for testing.

@ofborg eval

@ofborg eval


Plain text password in the nextcloud session

Created new report here: https://hackerone.com/reports/2035300

closed on hackerone.


Add more customization options

People like adding drives, interfaces, ISOs, all that jazz. Now, instead of asking an RTP, do it yourself!

hmmm. Testing it on my Winjoes VM, it doesn't see the extra disk I made, nor the drives I added, nor the network interface I made. Winjoes moment? Or did I skip a step?


how to convert std::vector to tensor in c++

Hi there!

GitHub issues are for bugs / installation problems / feature requests.
For general support from the community, see StackOverflow.
To make bugs and feature requests more easy to find and organize, we close issues that are deemed
out of scope for GitHub Issues and point people to StackOverflow.

I'm going to close this issue because it's a question rather than a bug, but if you'd like to ask it on Stack Overflow then one of the team will respond with an answer (and it will be easier for other people to find if they hit the same problem).


Backtick is inserted when assigning shortcut to cmd+` (AZERTY)

Issue Type: Bug

I opened two editor windows.
I mapped the following shortcut to have the same window switching shortcut as with the other apps I use:

    {
        "key": "cmd+`",
        "command": "workbench.action.quickSwitchWindow",
        "when": "editorTextFocus"
    }

I used the previously defined shortcut to switch between two VSCode windows.
I observed that the shortcut worked (I switched windows), but the actual backtick character got inserted in the editor from which I switched (the first one I had focused). This litters my editors with backticks after every use.

I tested this on a QWERTY layout and it doesn't happen there, only with AZERTY.
VS Code version: Code 1.40.2 (f359dd69833dd8800b54d458f6d37ab7c78df520, 2019-11-25T14:52:45.129Z)
OS version: Darwin x64 19.0.0

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz (8 x 2300)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: disabled_offprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_offsurface_control: disabled_offsurface_synchronization: enabled_onvideo_decode: enabledviz_display_compositor: enabled_onviz_hit_test_surface_layer: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
2, 2, 2

Memory (System)
8.00GB (0.13GB free)

Process Argv
.

Screen Reader
no

VM
0%

Extensions (15)

Extension
Author (truncated)
Version

swagger-viewer
Arj
2.2.2

vsc-prolog
art
0.8.23

vscode-svgviewer
css
2.0.0

xml
Dot
2.5.0

gitlens
eam
10.2.0

prettier-vscode
esb
3.11.0

vscode-edit-csv
jan
0.2.5

expand-region
let
0.1.2

rainbow-csv
mec
1.3.1

python
ms-
2019.11.50794

remote-ssh
ms-
0.47.2

remote-ssh-edit
ms-
0.47.2

remote-ssh-explorer
ms-
0.47.2

vscode-jumpy
wma
0.3.1

material-theme
zhu
3.2.1

(2 theme extensions excluded)

Thought about it again, this is as designed, currently IME always overrides keybindings.


Fatal Crash if Avoiding View is Improperly Set

I caught this in a code review of someones code.  They set a view to be the avoiding view of an outlet in viewDidLoad and the code crashed.  There was a ton of force unwrapping when the app crashed.  Just passing along.  Very easy fix would be to nil coalesce the count to 0 if the avoiding view is nil.

Hiya Marquis,
This one was fixed a couple weeks ago - the latest version, 3.7, will sort you out
Cheers
Fraser


Bug- Getting a error

[19:43:07] [Client thread/WARN]: ERROR : Couldn't load Narrator library : Unable to load library 'fliteWrapper': Native library (linux-aarch64/libfliteWrapper.so) not found in resource path ([file:/home/ubuntu/.minecraft/libraries/com/mojang/patchy/1.3.9/patchy-1.3.9.jar, file:/home/ubuntu/.minecraft/libraries/oshi-project/oshi-core/1.1/oshi-core-1.1.jar, file:/home/ubuntu/.minecraft/libraries/net/java/dev/jna/jna/4.4.0/jna-4.4.0.jar, file:/home/ubuntu/.minecraft/libraries/net/java/dev/jna/platform/3.4.0/platform-3.4.0.jar, file:/home/ubuntu/.minecraft/libraries/com/ibm/icu/icu4j-core-mojang/51.2/icu4j-core-mojang-51.2.jar, file:/home/ubuntu/.minecraft/libraries/net/sf/jopt-simple/jopt-simple/5.0.3/jopt-simple-5.0.3.jar, file:/home/ubuntu/.minecraft/libraries/com/paulscode/codecjorbis/20101023/codecjorbis-20101023.jar, file:/home/ubuntu/.minecraft/libraries/com/paulscode/codecwav/20101023/codecwav-20101023.jar, file:/home/ubuntu/.minecraft/libraries/com/paulscode/libraryjavasound/20101123/libraryjavasound-20101123.jar, file:/home/ubuntu/HeadlessMC/7b5c7fd2-0b47-423b-b1f8-de7905cf1ba1/librarylwjglopenal-20100824.jar, file:/home/ubuntu/HeadlessMC/7b5c7fd2-0b47-423b-b1f8-de7905cf1ba1/soundsystem-20120107.jar, file:/home/ubuntu/.minecraft/libraries/io/netty/netty-all/4.1.9.Final/netty-all-4.1.9.Final.jar, file:/home/ubuntu/.minecraft/libraries/com/google/guava/guava/21.0/guava-21.0.jar, file:/home/ubuntu/.minecraft/libraries/org/apache/commons/commons-lang3/3.5/commons-lang3-3.5.jar, file:/home/ubuntu/.minecraft/libraries/commons-io/commons-io/2.5/commons-io-2.5.jar, file:/home/ubuntu/.minecraft/libraries/commons-codec/commons-codec/1.10/commons-codec-1.10.jar, file:/home/ubuntu/.minecraft/libraries/net/java/jinput/jinput/2.0.5/jinput-2.0.5.jar, file:/home/ubuntu/.minecraft/libraries/net/java/jutils/jutils/1.0.0/jutils-1.0.0.jar, file:/home/ubuntu/.minecraft/libraries/com/google/code/gson/gson/2.8.0/gson-2.8.0.jar, file:/home/ubuntu/.minecraft/libraries/com/mojang/authlib/1.5.25/authlib-1.5.25.jar, file:/home/ubuntu/.minecraft/libraries/com/mojang/realms/1.10.22/realms-1.10.22.jar, file:/home/ubuntu/.minecraft/libraries/org/apache/commons/commons-compress/1.8.1/commons-compress-1.8.1.jar, file:/home/ubuntu/.minecraft/libraries/org/apache/httpcomponents/httpclient/4.3.3/httpclient-4.3.3.jar, file:/home/ubuntu/.minecraft/libraries/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar, file:/home/ubuntu/.minecraft/libraries/org/apache/httpcomponents/httpcore/4.3.2/httpcore-4.3.2.jar, file:/home/ubuntu/.minecraft/libraries/it/unimi/dsi/fastutil/7.1.0/fastutil-7.1.0.jar, file:/home/ubuntu/HeadlessMC/7b5c7fd2-0b47-423b-b1f8-de7905cf1ba1/log4j-api-2.8.1.jar, file:/home/ubuntu/HeadlessMC/7b5c7fd2-0b47-423b-b1f8-de7905cf1ba1/log4j-core-2.8.1.jar, file:/home/ubuntu/HeadlessMC/7b5c7fd2-0b47-423b-b1f8-de7905cf1ba1/lwjgl-2.9.4-nightly-20150209.jar, file:/home/ubuntu/HeadlessMC/7b5c7fd2-0b47-423b-b1f8-de7905cf1ba1/lwjgl_util-2.9.4-nightly-20150209.jar, file:/home/ubuntu/HeadlessMC/7b5c7fd2-0b47-423b-b1f8-de7905cf1ba1/lwjgl-platform-2.9.4-nightly-20150209.jar, file:/home/ubuntu/.minecraft/libraries/com/mojang/text2speech/1.10.3/text2speech-1.10.3.jar, file:/home/ubuntu/.minecraft/libraries/com/mojang/text2speech/1.10.3/text2speech-1.10.3.jar, file:/home/ubuntu/.minecraft/versions/1.12.2/1.12.2.jar, file:/home/ubuntu/HeadlessMC/7b5c7fd2-0b47-423b-b1f8-de7905cf1ba1/headlessmc-lwjgl.jar])
connect

I need some more info about your operating system and the Minecraft version you are trying to run.
You could try to add hmc.osarch=true to your headlessmc config.

Wait but does the game crash?

Hey, the os is ubuntu.
the mc version is 1.12.2
It looks like the process is still running but nothing's working, like i cant use hmc commands or anything.

It looks like the process is still running but nothing's working, like i cant use hmc commands or anything.

If you want to run commands you need the -commands flag when launching the game.
Or run 1.12.2-forge and use the hmc-specifics, which I would recommend doing.

yes i did get forge 1.12.2 and hmc specifics, i was trying the hmc specifics commands

And does it work now?


CIDR sort order

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

124 of 130 (95.38%)  changed or added relevant lines in 2 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage increased (+0.08%) to 94.577%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

node.go
118
124
95.16%

Files with Coverage Reduction
New Missed Lines
%

node.go
1
94.7%

Totals

Change from base Build<PHONE_NUMBER>:
0.08%

Covered Lines:
1273

Relevant Lines:
1346

💛  - Coveralls


Product Requirements Document - additional questions

Ask additional questions about requirements
Schedule a meeting

Some questions answered, the rest will be resolved in issue #3


pdfstudio: 2022.2.2 -> 2022.2.4

Description of changes
This updates pdfstudio2022 and pdfstudioviewer to latest version (2022.2.4).
Fixes https://github.com/NixOS/nixpkgs/issues/221513

Things done

Built on platform(s)

[X] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

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

[X] Fits CONTRIBUTING.md.

I guess it's a good idea to remove the broken flag?

I guess it's a good idea to remove the broken flag?

I would think so.

Could you make that a revert commit of 756c5ea?

Done.

Please follow the commit message guidelines for the update commit.

Right. Done!

Usually we use , rather than / to separate the package names when there are multiple. Following that convention makes it easier to write tooling which consumes these facts later.

Usually we use , rather than / to separate the package names when there are multiple. Following that convention makes it easier to write tooling which consumes these facts later.

Fixed.


bug: Lockscreen info not displayed anymore

Since I recently upgraded to the latest pod of this project, the lock screen doesn't show info anymore (artist, title & artwork).
I also tested the Example project to make sure it's not related to my code and also there I don't see any lock screen info.
I found that self.mediaInfo is nil at: https://github.com/tanhakabir/SwiftAudioPlayer/blob/master/Source/SAPlayerPresenter.swift#L123

Will look into today!

@tanhakabir I found that I was using 3.0.0 before and if I switch back to 3.0.0 the lockscreen is working fine again.


Jörmungandr block format

Context

Jörmungandr introduces a new binary block format. This format is described in
rust-cardano-/chain-impl-mockchain/doc/format.md.
In order to integrate with Jörmungandr, we therefore need to build a few
primitives first, starting with the block format. As a starter for testing,
we have the following test vector for the a genesis block generated via jcli:
005200000000009f000000000000000000000000ffadebfecd59d9eaa12e903a
d58100f7c1e35899739c3d05d022835c069d2b4f000000000000000000000000
00000000000000000000000000000000000000000047000048000000005cc1c2
4900810200c200010108000000000000087001410f01840000000a01e030a694
b80dbba2d1b8a4b55652b03d96315c8414b054fa737445ac2d2a865c76002604
0001000000ff0005000006000000000000000000000000000000000000000000
0000000000002c020001833324c37869c122689a35917df53a4f2294a3a52f68
5e05f5f8e53b87e7ea452f000000000000000e

NOTE:
Convert back to raw bytes using Data.ByteArray.Encoding(convertFromBase, Base16)

Decision

Implement block decoder, in a modular fashion, similar to the existing
implementation for the http-bridge (so this includes a transaction decoder,
certificate decoder etc...)

Disregard for now, anything related to transactions and only focus on the block structure and what's available in the genesis block.

Acceptance Criteria

We must have a type-1 (common structure) binary decoder for the new block format used by Jörmungandr
We must have a binary decoder that also supports decoding block headers in the format used by Jörmungandr
Type 2, Type 3, Type 4 and Type 5 binary decoders may be left for later.

Development Plan
Setup

[x] Create a new package
[x] Write a unit test, with stubbed undefined functions
I plan on using the binary package
[x] Decode the genesis blockHeader and check/debug/log that values seem sane (e.g the decoded sizes-values are correct)

Then

[ ] Something more strategic / update development plan again

PR

#244
#245

QA

I think the example is wrong 🙃 (or so I hope at least)
The Initial- and Transaction-messages were just way off from the format spec (and mockchain code).
This (from the mockchain) works much better:

diff --git a/chain-impl-mockchain/src/multiverse.rs b/chain-impl-mockchain/src/multiverse.rs
index ae8c69f4..719132ce 100644
--- a/chain-impl-mockchain/src/multiverse.rs
+++ b/chain-impl-mockchain/src/multiverse.rs
@@ -275,6 +275,10 @@ mod test {
     use quickcheck::{Arbitrary, StdGen};
     use std::time::SystemTime;

+    use std::io::prelude::*;
+    use std::fs::File;
+    use chain_core::property::Serialize;
+
     fn apply_block(state: &Ledger, block: &Block) -> Ledger {
         if state.chain_length().0 != 0 {
             assert_eq!(state.chain_length().0 + 1, block.chain_length().0);
@@ -328,6 +332,12 @@ mod test {
         let mut _root = None;
         let mut parent = genesis_block.id();
         let mut ids = vec![];
+
+        let mut f = File::create("foo.txt").unwrap();
+        let vs = Serialize::serialize(&genesis_block, f);
+        panic!("genesis block: {:?}", vs);
+
+
         for i in 1..10001 {
             let mut block = BlockBuilder::new();
             block.chain_length(state.chain_length.next());

00520000000000450000000000000000000000000873e3c710075f5fe45352c16ff15b16d76410687a20872fa36eff88147cf47f0000000000000000000000000000000000000000000000000000000000000000004300000600810200c2000102e03ebedfc75fc6c7ddf2342ade92d211a02d59a5e0486ea09d00d88d7a9b9ddc9e0048000000000000000001410a020800000000000001f4

though it is only the Initial message.

@Anviking So indeed, the format seems to have changed a bit but after checking with the Rust team, the documentation seems okay. Here-below is a new genesis block generated from the latest master branch (+ some small tweaks to resolve compile-error :s). It should also include some initial certificate and legacy funds. So, more fun to decode:
00520000000001ca000000000000000000000000f7becdf807c706cef54ec4832d2a747591c3f21
41de3e4f2aef59a130d890c12000000000000000000000000000000000000000000000000000000
0000000000007c00000c0088000000005cc1c24900410200c2000101040000087001410f0184000
0000a02e030a694b80dbba2d1b8a4b55652b03d96315c8414b054fa737445ac2d2a865c76020800
000000000000dc0244000000ff028800000000000000dc034101039800000000000000000000000
0000000000000000000000000002c020001833324c37869c122689a35917df53a4f2294a3a52f68
5e05f5f8e53b87e7ea452f000000000000000e00620101000000000000007b005682d818584c835
81c2ac3cc97bbec476496e84807f35df7349acfbaece200a24b7e26250ca20058208200581ca6d9
aef475f3418967e87f7e93f20f99d8c7af406cba146affdb71910146450102030405001a89a5937
100b803000004000000000000000000000000000000d501d0fa7e180d33987d17f77cbf70e1463b
ce01d32d952ed6f9823f0d69eb37e35f931417c6075e0f3e5858198fe15831ba7fb51368fa2f0ac
27a799032729e08a624a4aafb7a4dde35e4742d258d04c5f3ec87e616b9bcb0cdc070b503fe634b
46010040a856b8a6f8d18d588b5e1cfd3ea2e56ae45b80126bb25feb8ccde27fe61ebc7fd64deb7
667ab1a79ca2448f56e60f3097c2fa657febdec19e7bd7abfb0ea4705

I am thinking of starting #242  to get more blocks to test vectors here… 🤔

By the way @Anviking, this is the genesis file that was used to generate the block above:
# The Blockchain Configuration defines the different settings
# of the blockchain that cannot be changed once the blockchain
# is started.
blockchain_configuration:

  # The block0-date defines the date the blockchain starts
  # expected value in seconds since UNIX_EPOCH
  block0_date:<PHONE_NUMBER>

  # This is the type of dicrimination of the blockchain
  # of this blockchain is meant for production then
  # use 'production' instead.
  #
  # otherwise leave as this
  discrimination: test

  # The initial consensus version:
  #
  # * BFT consensus: bft
  # * Genesis Praos consensus: genesis
  block0_consensus: bft

  # Number of slots in each epoch
  slots_per_epoch: 2160

  # The slot duration, in seconds, is the time between the creation
  # of 2 blocks
  slot_duration: 15

  # The number of blocks (*10) per epoch
  epoch_stability_depth: 10

  # A list of Ed25519 Extended PublicKey that represents the
  # BFT leaders encoded as bech32. The order in the list matters.
  consensus_leader_ids:
    - ed25519e_pk1xznffwqdhw3drw9yk4t99vpajcc4epq5kp205um5gkkz625xt3mqn4z3mx

  # Genesis praos parameter D
  bft_slots_ratio: 0.220

  # Genesis praos active slot coefficient
  # Determines minimum stake required to try becoming slot leader, must be in range (0,1]
  consensus_genesis_praos_active_slot_coeff: 0.22

  # This is the max number of messages allowed in a given Block
  max_number_of_transactions_per_block: 255

  # Allow the creation of accounts from the output of a transaction
  #
  # if set to false, account based wallet will not be created without
  # publishing a stake certificate.
  # if set to true, simply adding the account in the output of a transaction
  # will allow the account to exist in the blockchain.
  allow_account_creation: true

  # The fee calculations settings
  #
  # fee(num_bytes, has_certificate) = constant + num_bytes * coefficient + has_certificate * certificate
  linear_fee:
    constant: 0
    coefficient: 0
    certificate: 0

  kes_update_speed: 16

# The initial deposits present in the blockchain.
#
# It can be UTxO addresses or account (if allow_account_creation is set).
initial_funds:
  - address: ta1svejfsmcd8qjy6y6xkghmaf6fu3ffga99a59up04lrjnhpl8afzj7w4yyxw
    value: 14

# The initial certificates.
initial_certs:
  - cert1qsqqqqqqqqqqqqqqqqqqqqqqqr2sr5860cvq6vuc05tlwl9lwrs5vw7wq8fjm9fw6mucy0cdd84n0c6ljv2p03s8tc8nukzcrx87zkp3hflm2ymglghs4sn60xgryu57pznzff92ldaymh34u36z6fvdqnzl8my8ucttn09sehq8pdgrle35k3spqpq2s44c5mudrr2c3d0pelf75tjk4ezmsqfxhvjlawxvmcnluc0tcl7kfh4hveatrfuu5fzg74hxpucf0sh6v4l7hhkpneaa02lmp6j8q5jqgzt4

# the initial deposits present in the blockchain but utilising the
# legacy cardano address format
legacy_funds:
  - address: 48mDfYyQn21iyEPzCfkATEHTwZBcZJqXhRJezmswfvc6Ne89u1axXsiazmgd7SwT8VbafbVnCvyXhBSMhSkPiCezMkqHC4dmxRahRC86SknFu6JF6hwSg8
    value: 123

I am thinking of starting #242 to get more blocks to test vectors here…

I'd suggest to finalize #218 first. This ticket was really about getting the block content and header decoded as a first step. You also added (partial) transaction decoding which is cool. So I'd suggest to wrap up and send this one in QA before going with #242

lgtm :+1:


Retrying passed tasks shouldn't cause deduping.

I tried to retry a task that passed (I have reasons):
https://chromium-swarm.appspot.com/task?id=32c3f93e5ee9bd10
The retry just got deduped, but I need it to run:
https://chromium-swarm.appspot.com/task?id=32c43f1eebe8e91
I'd expect that when a user actively presses the retry button, a real retry happens.

Kevin, I looked at https://github.com/luci/luci-py/blob/master/appengine/swarming/ui/res/imp/taskpage/task-page.html#L777 but didn't find anything where "idempotent" would be set to true.

The right link for the second task is https://chromium-swarm.appspot.com/task?id=32c43f1eebe8e910

Sorry, my link was incorrect above. I cut off a digit when c/p. But the link you provided shows that it got deduped. I only see Idempotent True in the old UI in both requests.

This should be fixed on chromium-swarm

Thanks!


Add Convenience and Parallel Methods to Files

Add the parallel and convenience upload and download methods to Files, these should match what Blobs has currently.

This has been resolved.


Is any pretrained model available?

Hi, Chris!
Great works! I wonder if you could upload the pretrained model on cifar10? Thx!

Sure thing, I'll dig around and see if I still have those models sitting on our server somewhere.

Cool!!! Thx a lot!!


http triggered dotnet-isolated .NET 5 function receives empty body stream when Transfer-Encoding is 'chunked'

Hi,
we are experiencing a problem with an http triggered dotnet-isolated .NET 5 function behind Azure API Management. When Transfer-Encoding is set to 'chunked', the HttpRequestData.Body stream is always empty. Is this a scenario which is expected to work out of the box?
If what I describe is expected to work, what information do you need us to provide, to investigate the cause of the experienced problem further?
Update: HttpRequestData.Body stream is also empty when calling the function directly. I updated the title to reflect this.
Thanks! David

Chunked requests are not currently supported for the OOP scenarios. We did some work to enable binding data in the past, so I'll leave this open so we can identify the work required to expose an option for this as well.


pager: do not open an empty WAL

That makes the behavior consistent with how this code used to work

if there are no pages in WAL (e.g. an empty database), opening WAL is deferred.

@MarinPostma no, it's only incorrect once we started using WAL mode as default for connections that declare virtual WAL methods


🧪 Add GitHub Python test workflow

A test run is here: https://github.com/AlexV525/atomicals-electrumx/actions/runs/8081676142/job/22080791819
Checks in this repo will take effect after it gets landed.


Add Depreciation Warning to All Needed QDE Docs

What New Or Updated Would You Like To See?
Add agreed upon deprecation notice to other lower level docs pages under QDE section.
Why Is It Needed?
Better convey QDE is deprecated
Additional Context?
NA

No further warnings needed.


issue-15: Fix to pass list to join, not two arguments.

Signed-off-by: Adam Donahue<EMAIL_ADDRESS>

thanks!


Not an issue but a question

Hi, @paulgreg !
Is it possible to create a plugin like this one for OpenLayers?
Thank you for your work! It helped me a lot!
Mihai

Hello,
You’re welcome.
I don’t understand : the plugin is a leaflet plugin which uses OpenStreetMap as datasource.

Hi! You're right. I was thinking to OpenLayers and wrote OSM.

Ok.
I’m sorry but that‘s not on our tracks for now.

Thank you for your response!


Simplifying topo implementations.

Now that all implementations are based on the topo.Backend sub-interface, this is possible.
BUG=30274258

@sougou ready for review. Probably one commit at a time is easier.
(will create an internal CL for it too)

And this: +938 −3,855 yes!

And thanks @pivanof for the review, this is a lot of cleanup. 👍

@pivanof addressed latest comments, with commit.
One comment was lost in there, but I saw it somewhere:

Should actually NewTee accept Server instead of Impl and return Server as well?

I think so, but I also have on my list to refactor some of that code, so I'll do it then, if you don't mind. Right now, the tee is at the Impl level, it should either be at Backend, or Server, as Impl is going to disappear. So this code will need to change at some point again.


What about switching from  sw-toolbox to Workbox?

No one pointed this out, but it seems workbox is the new standard and I guess the replacement would be pretty easy.

@bogomips Yes, we've talked about moving off of SW-toolbox to Workbox before internally. Since it is technically an issue in app-scritps, I'm going to close this for now. Can you open an issue on the app-scripts repo?

Thanks for the fast answer, I will open it there right now.


"No such module" error for archive with custom configuration in objc project.

I have several custom build configurations, which are copies of 'release' configuration. But i can't archive using any of them and if i use default 'release' configuration, it successfully archives it.
i build for iOS 9, Charts.framework is in 'embedded binaries'. Embedded content contains swift - set to yes. It's objc project, so i created an empty swift file. In that file i wrote
    import Foundation
    import UIKit;
    import Charts;

Third line is where i receive an error No such module.
And in my viewcontroller, i have #import "(ProductModuleName)-Swift.h". Any idea why i can't archive for custom configuration?

I got it. Charts project should also contain the same build configurations as your project. That's why it couldn't find charts for other configurations and for release it worked.


Parallelize token frequency calculation

Make token frequency calculation parallel.
Currently relies on a couple of functions from more-itertools. We could also take a dependency on the package instead if that's desirable. It's even endorsed by the official Python docs.
Pull Request Checklist

[X] Changes are complete (if posting work-in-progress code, prefix your pull request title with '[WIP]'
until you can check this box.
[X] Unit tests pass (pytest)
[ ] Were system tests modified? If so did you run these at least 5 times to account for the variation across runs?
[ ] System tests pass (pytest test/system)
[X] Passed code style checking (./style-check.sh)
[X] You have considered writing a test
[X] Updated major/minor version in sockeye/__init__.py. Major version bump if this is a backwards incompatible change.
[X] Updated CHANGELOG.md

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Thanks! What speed-ups are you seeing from this?

You're right, I only got a small improvement with 4 processes, close to none with more, depending on how the chunking params are tweaked. This particular functionality does take a lot of time though, do we need a frequency-ranked vocabulary on the full data? Maybe we could take a different approach and offer to optionally calculate it on a sample of the data only?

Thanks, that makes sense. I think basing this on a subset of the data does sound quite reasonable as a way to cut down the time. The other option from a Sockeye user perspective is to build vocabularies outside of Sockeye (say on a subsample) and then import those into Sockeye. We could of course support this directly in Sockeye without the additional step through a separate CLI.

Closing for now, as this doesn't seem like a promising avenue to speed-up the vocabulary building. We'd need to subsample the data or move to something like Dask that can read a large file in chunks for parallel processing.


[Release] sdk/resourcemanager/nginx/armnginx/2.0.0

https://github.com/Azure/sdk-release-request/issues/3266

Breaking changes are from PR and have been approved. @jhendrixMSFT @JeffreyRichter Please help to approve the major version release.

@tadelesh could you please help merge this RP? Thanks.

@tadelesh could you please help merge this RP? Thanks.

We'll merge and finish the release today.


[DO NOT MERGE] Memory Leak Debugging Work

Description
DO NOT MERGE
Using this PR as a place to record steps taken in attempting to diagnose a possible memory leak.
Generating pdfs containing all of the receipts associated with a move via either the "Download All Attachments" or the "Download Orders and Weight Tickets" buttons appears to permanently increase the memory utilization of the app.
To reproduce:

Create a move or use an existing move.
In the office app upload several large images (10 MB+).
Open CloudWatch and note the memory utilization metric.
Click "Download All Attachments" or the "Download Orders and Weight Tickets"
Monitor the memory utilization in CloudWatch. You should see it spike and then plateau, but never decrease (unless there is a deploy to staging).

Reviewer Notes
This PR adds the pprof debugging tools in order to help understand memory utilization of the app. To use the debugging tools. Login as an office user and visit http://officelocal:${PORT}/debug/pprof
Since we use Fargate with ECS, it's my understanding that we can not just login to the containers or the server hosting them. So, I've been trying to replicate our existing production setup locally and monitor both docker stats and pprof as the pdfs are generated.
Setup

make docker_compose_up

visit http://milmovelocal:5000/devlocal-auth/login and create a move.

visit http://officelocal:5000/devlocal-auth/login and upload several large images for the move created in 2).

in a terminal run docker stats mymove_milmove_1 note the MEM USAGE

open a separate browser tab for http://officelocal:5000/debug/heap?debug=1.

The format of the debug output is: heap profile: (IN USE OBJECTS): (IN USE BYTES) [(TOTAL ALLOCATED OBJECTS): (TOTAL ALLOCATED BYTES)] @ heap/(2*MEMPROFILERATE) https://github.com/golang/go/blob/master/src/runtime/pprof/pprof.go#L594-L597
You can also generate snapshots to be analyzed with the go tool. Visiting http://officelocal:5000/debug/heap will download a snapshot which can then be passed to the go tool, for further analysis go tool pprof downloadedfilename (i.e. generating SVGs of the stacktraces)

Generate a pdf. Typically, I see the following:

At http://officelocal:5000/debug/heap?debug=1 the in use bytes spikes for a moment, but then decreases. Also, you'll see the various code paths associated with pdf generation consuming heap space, but these will disappear eventually. Total allocated objects will + Total allocated bytes will increase as expected.
The MEM USAGE in docker spikes, but it never decreases. This seems similar to what we see in the application.
Also, this branch uses a debug version of the container which allows for ssh access (distroless containers normally don't allow this). You can connect to the container using docker run --entrypoint=sh -ti imageNameOfYourContainer. Once inside you can also monitor memory usage using normal linux commands like free -m and top

Resources

https://github.com/moby/moby/issues/10824
https://stackoverflow.com/questions/41604669/memory-used-metric-go-tool-pprof-vs-docker-stats/41687155#41687155
https://github.com/aws/amazon-ecs-agent/issues/2022
https://www.linuxatemyram.com
https://shuheikagawa.com/blog/2017/05/27/memory-usage/

closing / archiving


create table of commands

Must have:

a struct to run command with file descriptor to link with fork and pipe

solved
fork for builtins
https://github.com/tonnytg/42_minishell/blob/e3981da2f0bcbac991d737d5e1cda67e35af31cf/srcs/commands/nodes.c#L51
for for external
https://github.com/tonnytg/42_minishell/blob/e3981da2f0bcbac991d737d5e1cda67e35af31cf/srcs/commands/nodes.c#L53


Identify what's left to do on PRP demo infrastructure

Context
In July, we launched demonstration versions of the PRP as long-standing hosted examples of the work. There was a flurry of work at the end of the project based on #6, but #6 has still not been merged.
Tasks

Verify that the current terraform state matches what is currently in #6

In other words, there should be no manual overrides in the AWS Console for terraform-managed resources
Think about how you will demonstrate this

Identify if there are any resources deployed to AWS that are not captured in terraform

Did any manual changes happen the AWS Console that need to be transferred to terraform?
Think about how you will demonstrate this

Note: This ticket does not include doing any new terraform work. This ticket is specifically about performing research before any terraform work begins.

@rocketnova here are my findings for the demo infrastructure:

The current terraform state matches what is in #6. This was verified by checking out the alsia/manage-envs branch and running a terraform plan
screenshot after running terraform plan

I haven't seen any manual changes that needed to be added into terraform. Places looked:

IAM
S3
SSM
Databases
Security Groups
load balancers
ECS
ACM

There are a few things manually created that should probably be deleted.:

test-stage-staff-lambda in security groups
wic-services.org cert in ACM (us-east-1)

@aplybeah Thank you for doing this work! This looks excellent. I'll go ahead and merge PR #6 now.

Thank you for surfacing the additional manual components!

I've manually deleted test-stage-staff-lambda in security groups.
I'm going to leave the wic-services.org cert in ACM (us-east-1) just in case we need it. Since it will auto-expire anyway, I think that's acceptable.


introduce a real RadioTable model

up till now, we've had a very hacky approach to tables with row selection ("RadioTable"). it pretty much amounted to a bunch of hacks on top of the already hacky core table model.
let's introduce a real RadioTable, and an spi for component UI impls

we can start with the core themes command, which returns an old hacky radio table. i think that this and kubectl contexts and kubectl namespaces are the only current uses of radio tables.


Option to return only deployments that happened in the last X days/hours

The CLI should support an option to filter deployments that happened in the last X days/hours/minutes.
Let's call that option -t .

ecs-lens -r us-east-1 -c apps -t d2 should return deployments from the last 2 days
ecs-lens -r us-east-1 -c apps -t h10 should return deployments from the last 10 hours
ecs-lens -r us-east-1 -c apps -t m30 should return deployments from the last 30 minutes

#2


HSEARCH-4020 Add the entity reference to the message of exceptions occurring during automatic indexing

https://hibernate.atlassian.net/browse/HSEARCH-4020

@fax4ever Actually this is not very important or dangerous, I'll merge as soon as CI passes, so you can take a break from reviewing PRs :)


Implement basic auth handling

Depends on:
https://github.com/Apicurio/apicurio-common-app-components/pull/155

@EricWittmann ready for another review round!


Add support for resource types in policy generation

This code snippet is a simplified version of the examples in the Boto3 docs
import boto3

db = boto3.resource("dynamodb")
tbl = db.Table('mytable')
r = tbl.get_item(Key={'mykey': myval})

The policy generator misses that this will need to add a dynamodb:GetItem.
In contrast, the policy generator does notice it when using this (more low-level) snippet:
dbc = boto3.client("dynamodb")
r = dbc.get_item(TableName="mytable", Key={"mykey": {"S": myval }})

Related: added the following two lines to my config, as described on the Quick start page:
"manage_iam_role":false
"iam_role_arn":"arn:aws:iam::<account-id>:role/<role-name>"

and then deployed again. Seems that the role for the Chalice lambda function is not updated to this role though, had to do that manually.

Also requested here: https://github.com/awslabs/chalice/issues/132
The issue is that the policy generator doesn't understand resource types (anything with boto3.resource(...).  This is something I'd like to add.
Marking as a feature request.

If you REALLY want to use boto3.resource(...) but don't want to manually generate IAM, I've found a dirty little work around:
ddb = boto3.client("dynamodb")
try:
    ddb.get_item(TableName="helloworld")
    ddb.put_item(TableName="helloworld")
except:
    print("move along")

tbl = boto3.resource('dynamodb').Table('helloworld')
tbl.put_item(Item={ 'keyname': key, 'body': request.raw_body } )

The first ddb load with the get/put in the try/except will trigger Chalice into generating the proper IAM. Those calls will, of course, fail (as expected). You could also probably put them into a function that is never called. Then you can use the boto3.resource(...) as normal (so long as you have a "fake" call for each real call).

A good enough workaround is suggested here: https://github.com/aws/chalice/issues/692#issuecomment-426738566


Added Writeup for CSS in front-end folder resources

Covered Specificity, Positioning and Floats
Added links to Mozilla css docs for each list item

Thanks @jjingrong ! Didn't think you would have time for this given that you founded a startup 😂


Customize error display

It seems that we cannot customize error display (except via the exposeRequestErrors or exposeResponseErrors options).
I'd like to be able to customize the error format (for example in order to give more user friendly messages)
Is it something that is possible, do you intend to implement it, or would you be open for a PR in that sense?

Hi @lbesson-della, thanks for the input.
I'm currently working on a new release where I'm formatting the errors a bit better. But I'm open to any suggestions you have.
What exactly did you have in mind as far as the feature you are proposing?

it will be fairly similar, except rather than than pass the handler as an option, you'll be able to add your error-handler as a middleware to the router before your actual request handlers. or make it route specific if you want to do it that way too. I might actually have it released today if i can get it properly tested and working hopefully 😄

hi @lbesson-della i've gone ahead and released 1.2.0. you can find details of how you can achieve custom error handling here.
Hope you find it to be useful, and appreciate your feedback so far. Let me know of any additional feedback you may have! Thanks!

hello,
I haven't time to look at it yet, but will definitely do

Hello,
I've been giving it a try, but I think I got a bit lost with the middleware order when it's mixed with routers.
I've tryed different versions of the code below, but the validationErrorMiddleware is always called before the actual validation of the input
What I ultimately would like to achieve is that when I get a request, I first go the the auth middleware to check if the request is valide (for every endpoint), then the endpoint being validated with it's specific validator instance, catch all validation errors with the validationErrorMiddleware, and if everything is fine, finally pass it to my endpoint handler
export const router = zodRouter({
  zodRouter: { enableMultipart: true, continueOnError: true }
});

router.use(myAuthMiddleware); // middleware to validate jwt for each request linked to the router

const errorSpecFactory = routerSpecFactory();
const validationErrorMiddleware = errorSpecFactory.createUseSpec({
  handler: async (ctx, next) => {
    if (ctx['invalid']?.error) {
      ctx.throw(400, 'customerrror');
      return;
    } else {
      await next();
    }
  }
});
router.use(validationErrorMiddleware);

router.get(
  "/object/:id",
  async ctx => {
    ctx.body = 'OK';
  },
  validate: {
    params: {
      id: z.string().uuid()
    }
  }
);

Looks like I made a mistake of not testing it out with the use method, and tested with regular route handlers instead 🤦 . Sorry about this, I'm going to work towards getting a fix soon. Thanks for input

hi @lbesson-della I'm adding this to 2.0.0. you can try out the beta by installing koa-zod-router@beta
import { ValidationErrorHandler } from 'koa-zod-router';

const validationErrorHandler: ValidationErrorHandler = async (ctx, next) => {
  if (ctx.invalid.error) {
    ctx.status = 400;
    ctx.body = 'hello';
  } else {
    await next();
  }

  return;
};

const router = zodRouter<UserState>({
  zodRouter: { exposeRequestErrors: true, exposeResponseErrors: true, validationErrorHandler },
});

Thanks.
Will have a look asap

Thanks @JakeFenley, this seems to perfectly fit my needs.


test different nodejs version

During reproducing issue #30, I ran into problems with an old nodejs version. We should adapt the automated tests to different nodejs versions and probably require a recent one.
As seen below, the default nodejs version in Ubuntu 14.04 is 0.10.25. The current version 6.9.1 can be obtained via a third-party repository.
$ apt-cache policy nodejs
nodejs:
  Installed: 6.9.1-1nodesource1~trusty1
  Candidate: 6.9.1-1nodesource1~trusty1
  Version table:
 *** 6.9.1-1nodesource1~trusty1 0
        500 https://deb.nodesource.com/node_6.x/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status
     0.10.25~dfsg2-2ubuntu1 0
        500 http://de.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages

Tested node versions via travis:

0.1 :x:
0.12 :x:
4.2 :white_check_mark:
4.6 :white_check_mark:
5.12 :white_check_mark:
6.9 :white_check_mark:
7.0 :white_check_mark:

https://travis-ci.org/molbiodiv/biojs-io-biom/builds/171059935
So node version 0.x is not supported while node version >=4.2 is supported.
So we should clearly state node >=4.2 as a requirement for our module.

related to #30

Now also documented.


1.13.1 "Cannot inherit Oauth2 from collection."

I have checked the following:

[X] I use the newest version of bruno.
[X] I've searched existing issues and found nothing related to my issue.

Describe the bug
"Cannot inherit Oauth2 from collection."
Not sure why... no additional information.
.bru file to reproduce the bug
No response
Screenshots/Live demo link

This is a duplicate of #1704


[Bug-FE][UI Next][V1.0.0-Alpha] Task Definition page demonstrator display error

Search before asking

[X] I had searched in the issues and found no similar issues.

What happened

What you expected to happen
Task Definition page demonstrator shows normal
How to reproduce
click Task Definition
Anything else
No response
Version
dev
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

I will fix it

This seems to be a backend problem.

will check it out soon

PR have merged
refer to https://github.com/apache/dolphinscheduler/pull/9354


Remove calls to deprecated functions

Remove last references to make_metrics_client and make_tracing_client.
👓 @spladug

Yeah, totally. Just wanted baseplate itself to be a good example. :)


JsonCodec decoder accepts malformed JSON string with extra characters

The JSON codec accepts malformed JSON strings like {}}, "foo"" without error.
Reproducer: https://scastie.scala-lang.org/guersam/IFS2CO8dRGiNpsQhId3u3A/5

/bounty $75

/attempt #712
Problem

The JsonDecoder.decode function in JsonCodec likely parse only the necessary portion of the input string and might ignore trailing characters.
This behavior is problematic because it can lead to silent errors where malformed JSON is accepted as valid, potentially causing data inconsistencies or unexpected behavior later in the application.

Potential Solutions

Strict Parsing: The most robust solution is to enforce strict JSON parsing. This means the decoder should explicitly check if the entire input string has been consumed after parsing the JSON object. If there are any remaining characters, the decoding should fail with an appropriate error. Here are the key changes that should be made:

In the JsonDecoder object, modify the decode method to check for any remaining non-whitespace characters after parsing is complete. If any are found, it should return an error.
In the string parsing logic (likely in the Lexer object), add a check to ensure there are no extra quotes after the closing quote of a string.
In the object parsing logic, add a check to ensure there are no extra closing braces after the object is closed.

/attempt #712
The inferSchema method is not correctly handling optional fields in case classes. This needs to be addressed to ensure that optional fields are properly recognized and handled.
Update the method to correctly identify and handle optional fields. This involves checking if a field’s type is an Option and adjusting the schema accordingly.
Objective: Ensure optional fields are recognized.
Approach: Use reflection to check if a field’s type is an Option. Update the schema to reflect this.


TiCDC stability issue when PD cluster is not stable

What did you do?
I deploy TiDB on the 3 servers that the stability is not good for testing and verifying how TiCDC behave in case of shaking network issue or other physical server related issues (slow disk, overloaded CPU, lacking of RAM...). To be clearer, our cluster usually have problems and the healthcheckers will detecting it and restart the failed/dead container. All component like PD, TiDB and TiKV behave great in that case but it's not for TiCDC which is a very important component that we expect the latency is always fast.
After our PD cluster is down and recovered (it's usually down few times per day), TiCDC usually get stuck with may be up to few hours (some time more than a day) and then it will back to normal. I checked log and there is a lot of error of loading safe point from PD like below, but I'm definitely sure that the PD has been recovered and working normally (downtime usually in just few minutes):
[2022/01/09 05:13:37.650 +00:00] [ERROR] [kv.go:241] ["fail to load safepoint from pd"] [error="context deadline exceeded"] [errorVerbose="context deadline exceeded\ngithub.com/pingcap/errors.AddStack\n\tgithub.com/pingcap/errors@v0.11.5-0.20201126102027-b0a155152ca3/errors.go:174\ngithub.com/pingcap/errors.Trace\n\tgithub.com/pingcap/errors@v0.11.5-0.20201126102027-b0a155152ca3/juju_adaptor.go:15\ngithub.com/tikv/client-go/v2/tikv.(*EtcdSafePointKV).Get\n\tgithub.com/tikv/client-go/v2@v2.0.0-20210617115813-8d4847a86878/tikv/safepoint.go:130\ngithub.com/tikv/client-go/v2/tikv.loadSafePoint\n\tgithub.com/tikv/client-go/v2@v2.0.0-20210617115813-8d4847a86878/tikv/safepoint.go:165\ngithub.com/tikv/client-go/v2/tikv.(*KVStore).runSafePointChecker\n\tgithub.com/tikv/client-go/v2@v2.0.0-20210617115813-8d4847a86878/tikv/kv.go:234\nruntime.goexit\n\truntime/asm_amd64.s:1371"]
[2022/01/09 05:15:03.710 +00:00] [ERROR] [kv.go:241] ["fail to load safepoint from pd"] [error="context deadline exceeded"] [errorVerbose="context deadline exceeded\ngithub.com/pingcap/errors.AddStack\n\tgithub.com/pingcap/errors@v0.11.5-0.20201126102027-b0a155152ca3/errors.go:174\ngithub.com/pingcap/errors.Trace\n\tgithub.com/pingcap/errors@v0.11.5-0.20201126102027-b0a155152ca3/juju_adaptor.go:15\ngithub.com/tikv/client-go/v2/tikv.(*EtcdSafePointKV).Get\n\tgithub.com/tikv/client-go/v2@v2.0.0-20210617115813-8d4847a86878/tikv/safepoint.go:130\ngithub.com/tikv/client-go/v2/tikv.loadSafePoint\n\tgithub.com/tikv/client-go/v2@v2.0.0-20210617115813-8d4847a86878/tikv/safepoint.go:165\ngithub.com/tikv/client-go/v2/tikv.(*KVStore).runSafePointChecker\n\tgithub.com/tikv/client-go/v2@v2.0.0-20210617115813-8d4847a86878/tikv/kv.go:234\nruntime.goexit\n\truntime/asm_amd64.s:1371"]
[2022/01/09 05:15:19.734 +00:00] [ERROR] [kv.go:241] ["fail to load safepoint from pd"] [error="context deadline exceeded"] [errorVerbose="context deadline exceeded\ngithub.com/pingcap/errors.AddStack\n\tgithub.com/pingcap/errors@v0.11.5-0.20201126102027-b0a155152ca3/errors.go:174\ngithub.com/pingcap/errors.Trace\n\tgithub.com/pingcap/errors@v0.11.5-0.20201126102027-b0a155152ca3/juju_adaptor.go:15\ngithub.com/tikv/client-go/v2/tikv.(*EtcdSafePointKV).Get\n\tgithub.com/tikv/client-go/v2@v2.0.0-20210617115813-8d4847a86878/tikv/safepoint.go:130\ngithub.com/tikv/client-go/v2/tikv.loadSafePoint\n\tgithub.com/tikv/client-go/v2@v2.0.0-20210617115813-8d4847a86878/tikv/safepoint.go:165\ngithub.com/tikv/client-go/v2/tikv.(*KVStore).runSafePointChecker\n\tgithub.com/tikv/client-go/v2@v2.0.0-20210617115813-8d4847a86878/tikv/kv.go:234\nruntime.goexit\n\truntime/asm_amd64.s:1371"]
[2022/01/09 05:15:52.650 +00:00] [INFO] [reactor_state.go:63] ["remote capture offline"] [capture-id=f9ec6645-bb48-45d2-b939-145ec56f1abf]
[2022/01/09 05:16:12.594 +00:00] [INFO] [reactor_state.go:74] ["remote capture online"] [capture-id=14cca246-7ed3-472b-9c89-6b3449d7f1ef] [info="{\"id\":\"14cca246-7ed3-472b-9c89-6b3449d7f1ef\",\"address\":\"<IP_ADDRESS>:8300\",\"version\":\"v5.2.1\"}"]
[2022/01/09 05:16:47.525 +00:00] [ERROR] [kv.go:241] ["fail to load safepoint from pd"] [error="context deadline exceeded"] [errorVerbose="context deadline exceeded\ngithub.com/pingcap/errors.AddStack\n\tgithub.com/pingcap/errors@v0.11.5-0.20201126102027-b0a155152ca3/errors.go:174\ngithub.com/pingcap/errors.Trace\n\tgithub.com/pingcap/errors@v0.11.5-0.20201126102027-b0a155152ca3/juju_adaptor.go:15\ngithub.com/tikv/client-go/v2/tikv.(*EtcdSafePointKV).Get\n\tgithub.com/tikv/client-go/v2@v2.0.0-20210617115813-8d4847a86878/tikv/safepoint.go:130\ngithub.com/tikv/client-go/v2/tikv.loadSafePoint\n\tgithub.com/tikv/client-go/v2@v2.0.0-20210617115813-8d4847a86878/tikv/safepoint.go:165\ngithub.com/tikv/client-go/v2/tikv.(*KVStore).runSafePointChecker\n\tgithub.com/tikv/client-go/v2@v2.0.0-20210617115813-8d4847a86878/tikv/kv.go:234\nruntime.goexit\n\truntime/asm_amd64.s:1371"]

Other command that requires data from PD is still find, like changefeed list.
What did you expect to see?
TiCDC will quickly recover from PD failed state to maintain the good latency.
FYI: I'm using Pulsar as sink, not sure it's related. All I just one is TiCDC should try to recover for any connection/network related issue asap to maintain the best latency or configurable as we are a Change Data Capture.
What did you see instead?
TiCDC is hang with a lot of error "fail to load safepoint from pd" even the PD is recovered (other component like TiDB, TiKV is still working find).
Versions of the cluster
Upstream TiDB cluster version (execute SELECT tidb_version(); in a MySQL client):
Release Version: v5.2.1
Edition: Community
Git Commit Hash: cd8fb24c5f7ebd9d479ed228bb41848bd5e97445
Git Branch: heads/refs/tags/v5.2.1
UTC Build Time: 2021-09-08 02:32:56
GoVersion: go1.16.4
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false

TiCDC version (execute cdc version):
Release Version: v5.2.1
Git Commit Hash: 81c22b1c1b2041e2806160d8c7e1105a70815ff5
Git Branch: heads/refs/tags/v5.2.1
UTC Build Time: 2021-09-09 12:00:16
Go Version: go version go1.16.4 linux/amd64
Failpoint Build: false

It may cause by this issue: https://github.com/pingcap/tiflow/issues/3615, and it will be fix in the newer version.

I close it since it nerver happen again in TiCDC v6.1.0, please fell free to reopen it, if you see it again.


Unable to do Vector Search

I am able to insert vector to my search index. However, when trying to do vector search or hybrid search. I am facing this error:
SerializationError: (', DeserializationError: (", AttributeError: \'float\' object has no attribute \'lower\'", \'Unable to deserialize to object: type\', AttributeError("\'float\' object has no attribute \'lower\'"))', 'Unable to build a model: (", AttributeError: \'float\' object has no attribute \'lower\'", \'Unable to deserialize to object: type\', AttributeError("\'float\' object has no attribute \'lower\'"))', DeserializationError(", AttributeError: 'float' object has no attribute 'lower'", 'Unable to deserialize to object: type', AttributeError("'float' object has no attribute 'lower'")))

Can you share your request body?


indicate full OS during installation and remote connection

easier to debug such cases:
https://sourceforge.net/p/spinalcordtoolbox/discussion/help/thread/9d988979/?limit=25#bc03

It seams that the pandas package dependency "pytz" is not accessible. Can the user print out the list packages? The channel which the package is installed comes from conda_forge, while in my version it comes from the default channel. There might be a conflict in channels.
Check if the user's ~/.condarc looks something like this:
channels:
  - defaults
  - conda-forge

sct-dirt/python/bin/conda config --show
Would also help. But it is most likely set in ~/.condarc

Printed by sct_check_dependencies -> closing


Add library to platformio

Hey!
I use your library and like it! But it would be nice to have it available at platformio.org. Obvious benefit is that we don't have to manually manage it as a dependency. I prepared a library definition for that. I think if this PR get merged the library can be pushed to the platformio registry (it works for me already if I add it to my platformio.ini: lib_deps = /home/cyrill/mess/ESP32-Digital-RGB-LED-Drivers)
Cheers, xermic

At the moment I'm not actively working on this library. Issue #29 is going to require extensive rework to resolve, and https://github.com/FastLED/FastLED is a more comprehensive solution (though I understand it has a larger footprint).

I haven't forgotten this - I've been doing the rework noted above, and have been considering how to get this into the Arduino ecosystem as well as PlatformIO (I just haven't tried the latter yet). Stay tuned!

I'm closing this PR as I've made similar changes as part of recent enhancements and submitted the library to the Arduino and PlatformIO library registries (pending approval from both).

Awesome, thx!


fix: Broken pipe in FormatPath

1. Does this PR affect any open issues?(Y/N) and add issue references (e.g. "fix #123", "re #123".):

[ ] N
[x] Y

fix #75
2. What is the scope of this PR (e.g. component or file name):
KusionStack/kclvm-go/pkg/kclvm_runtime/proc.go
3. Provide a description of the PR(e.g. more details, effects, motivations or doc link):

[x] Other

4. Are there any breaking changes?(Y/N) and describe the breaking changes(e.g. more details, motivations or doc link):

[x] N
[ ] Y

5. Are there test cases for these changes?(Y/N) select and add more details, references or doc links:

[x] Unit test
[ ] Integration test
[ ] Benchmark (add benchmark stats below)
[ ] Manual test (add detailed scripts or steps below)
[ ] Other

6. Release note
Please refer to Release Notes Language Style Guide to write a quality release note.
None

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.1%) to 47.698%

Totals

Change from base Build<PHONE_NUMBER>:
0.1%

Covered Lines:
2673

Relevant Lines:
5604

💛  - Coveralls


feat: add geoman drawing control

Add geoman drawing control

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 96.46%. Comparing base (440c415) to head (79cb10b).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #951      +/-   ##
==========================================
+ Coverage   96.43%   96.46%   +0.02%
==========================================
  Files          39       39
  Lines        4015     4014       -1
==========================================
  Hits         3872     3872
+ Misses        143      142       -1

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


#71 Improved exception handling in SecurityUtilities.SignFile

#71 Improved exception handling in SecurityUtilities.SignFile.
A specific check is now performed for a null value in the PrivateKey property.
The message prefix chosen here, MSB3487, may appear to have skipped two at first glance - this is intentional, based on the following comment in Strings.resx:
// MSB3485 MSB3486 not used but already shipped, do not reuse

Hi @davecluderay, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
We will now validate the agreement and then real humans will evaluate your PR.
TTYL, DNFBOT;

:+1:
CI build failing. Please rebase and fix CI build failure.

Should be sorted out now.

Please rebase:
git remote add msbuild https://github.com/microsoft/msbuild
cd into/msbuild/directory
git pull --rebase msbuild master
git push -f

Sorry - rebased now.

You did not mean to keep last two commits, right?
# in msbuild directory
git rebase -i HEAD~3
# text-editor/notepad will open
# delete lines starting with "pick b281960 .." and "pick aa7fee7..."
# save and close notepad
git push -f

This will leave one clean commit.

Makes sense, thank you. Done.

:+1:

LGTM

:+1:
Could this also be included in xplat branch?


Can't start server

After having my server running for month I just restarted it, and took the time to get the latest code from git.
Now I get this when I start:
ERROR [2020-05-16 07:47:56,842] io.dropwizard.cli.ServerCommand: Unable to start server, shutting down
,! liquibase.exception.ValidationFailedException: Validation Failed:
,!      1 change sets check sum
,!           changelogs/db.changelog-1.0.xml::create-users::athou was: 8:ca2d6edef0263a78cab9cc0942972d50 but is now: 8:a19e9e8007137d83c8a6b9ead5a2ecac
,!
,! at liquibase.changelog.DatabaseChangeLog.validate(DatabaseChangeLog.java:276)
,! at liquibase.Liquibase.update(Liquibase.java:198)
,! at liquibase.Liquibase.update(Liquibase.java:179)
,! at liquibase.Liquibase.update(Liquibase.java:175)
,! at liquibase.Liquibase.update(Liquibase.java:168)
,! at com.commafeed.backend.service.StartupService.lambda$updateSchema$2(StartupService.java:67)
,! ... 22 common frames omitted```

After reverting to bb429afd95ae5c5e86599ecb22d0e9c05a8eef5c I got it up and running again, so there is something odd in the latest commit

Hi,
Thanks for the report. I commited a change that should fix the issue, although I'm not sure why you have the error to begin with.
I hope you won't get the same error for another changeSet, if you do let me know.

I just got
ERROR [2020-05-22 02:11:16,375] io.dropwizard.cli.ServerCommand: Unable to start server, shutting down
! liquibase.exception.ValidationFailedException: Validation Failed:
!      5 change sets check sum
!           changelogs/db.changelog-1.0.xml::create-app-settings::athou was: 8:4453304273ff7f1b095e83240bf176e0 but is now: 8:b92da3e1d6fc0e55ab7056f861fe3a0c
!           changelogs/db.changelog-1.0.xml::create-cat::athou was: 8:316a80e427241a4bf7a3e9db908c2996 but is now: 8:531b6ae85a8026559f9daa7078c3c297
!           changelogs/db.changelog-1.0.xml::create-statuses::athou was: 8:df2678511ba8ad87fee51aa3e1aac26d but is now: 8:44886681f6ea292d11729bcd1fa755fc
!           changelogs/db.changelog-1.0.xml::create-users::athou was: 8:97bcb18a90dbbf89252d9dab38cb719d but is now: 8:4868360a987096a67048845fb6321902
!           changelogs/db.changelog-1.0.xml::create-user-settings::athou was: 8:3528d8cb1988e72c9ed566d224a88d10 but is now: 8:b296201d9301897cbfec8967b807e259

on latest master after updating from ea5fccfe5f931fa4483c8fff72c7bb20f9e91825.

I'm seeing this same issue after trying to upgrade to v2.6.0.  Running Ubuntu 20.04 fully patched and utilizing a MySQL database, everything worked great until I tried the latest release, now can't start the server.

Ah of course, sorry, upgrading from version 2.5.0 (7b686d8).

Sure, very rusty in MySQL though so might take me some time to get around to getting it done properly.  If any readers can drop in the command I'd need then I'll gladly throw some praise your way lol.

Try something like this:
UPDATE DATABASECHANGELOG SET MD5SUM=NULL WHERE ID='create-users';

Yeap that exact command did the trick, commafeed spun up without issue after and is humming along nicely.  Thanks for the help, and if anyone else stumbles on this from the same error give the above a try on your database.


Possibility to persist container configuration

I would be nice to be able to stop and container and/or the core0 itself and after restart to be able to just restart the previous defined container.
At the moment core0 doesn't persist any configuration of container. I think since the container are stateless anyway, an easy way of implementing this would be to save the configuration of the created container on disk and just reload them during startup.
This would also allow to have an auto-start feature for containers.
This feature doesn't concern data persistence for containers. for that we should use data volumes mounted in containers.
Also with this method we can't assure container will receive same IP address after restart.

handled by AYS


For Iris Desktop GPU example, got the error "Side packet "focal_length_pixel" is required but was not provided."

I tried running the Iris GPU example in Ubuntu 20.04 LTS.
I ran the following for building:
bazel build -c opt --copt -DMESA_EGL_NO_X11_HEADERS --copt -DEGL_NO_X11 mediapipe/examples/desktop/iris_tracking:iris_tracking_gpu

And the following for running the binary:
GLOG_logtostderr=1 bazel-bin/mediapipe/examples/desktop/iris_tracking/iris_tracking_gpu --calculator_graph_config_file=mediapipe/graphs/iris_tracking/iris_tracking_gpu.pbtxt

The build was successful but I received the following error when I tried to run:
$ GLOG_logtostderr=1 bazel-bin/mediapipe/examples/desktop/iris_tracking/iris_tracking_gpu --calculator_graph_config_file=mediapipe/graphs/iris_tracking/iris_tracking_gpu.pbtxt
I20201106 18:49:44.087379 19292 demo_run_graph_main_gpu.cc:51] Get calculator graph config contents: # MediaPipe graph that performs iris tracking with TensorFlow Lite on GPU.
# Used in the examples in
# mediapipie/examples/android/src/java/com/mediapipe/apps/iristrackinggpu and

# GPU buffer. (GpuBuffer)
input_stream: "input_video"
....
....
I20201106 18:49:44.088325 19292 demo_run_graph_main_gpu.cc:57] Initialize the calculator graph.
I20201106 18:49:44.093295 19292 demo_run_graph_main_gpu.cc:61] Initialize the GPU.
I20201106 18:49:44.104634 19292 gl_context_egl.cc:158] Successfully initialized EGL. Major : 1 Minor: 4
I20201106 18:49:44.108723 19305 gl_context.cc:324] GL version: 3.1 (OpenGL ES 3.1 Mesa 20.0.8)
I20201106 18:49:44.108911 19292 demo_run_graph_main_gpu.cc:67] Initialize the camera or load the video.
Gtk-Message: 18:49:44.297: Failed to load module "canberra-gtk-module"
I20201106 18:49:44.308125 19292 demo_run_graph_main_gpu.cc:88] Start running the calculator graph.
E20201106 18:49:44.313082 19292 demo_run_graph_main_gpu.cc:186] Failed to run the graph: ValidateRequiredSidePackets failed to validate:
; Side packet "focal_length_pixel" is required but was not provided.

If I comment out the following line from mediapipe/graphs/iris_tracking/iris_tracking_gpu.pbtxt, then I get the error Only BGRA/RGBA textures are supported, passed format: 24.
Commented out statement:
node {
...
#  input_side_packet: "FOCAL_LENGTH:focal_length_pixel"
...
}

Error:
...
...
I20201106 20:12:37.840118 21807 demo_run_graph_main_gpu.cc:57] Initialize the calculator graph.
I20201106 20:12:37.844599 21807 demo_run_graph_main_gpu.cc:61] Initialize the GPU.
I20201106 20:12:37.855563 21807 gl_context_egl.cc:158] Successfully initialized EGL. Major : 1 Minor: 4
I20201106 20:12:37.860030 21820 gl_context.cc:324] GL version: 3.1 (OpenGL ES 3.1 Mesa 20.0.8)
I20201106 20:12:37.860173 21807 demo_run_graph_main_gpu.cc:67] Initialize the camera or load the video.
Gtk-Message: 20:12:38.025: Failed to load module "canberra-gtk-module"
I20201106 20:12:38.031477 21807 demo_run_graph_main_gpu.cc:88] Start running the calculator graph.
I20201106 20:12:38.035310 21807 demo_run_graph_main_gpu.cc:93] Start grabbing and processing frames.
INFO: Created TensorFlow Lite delegate for GPU.
ERROR: Following operations are not supported by GPU delegate:
DEQUANTIZE:
164 operations will run on the GPU, and the remaining 0 operations will run on the CPU.
I20201106 20:12:47.249657 21807 demo_run_graph_main_gpu.cc:175] Shutting down.
E20201106 20:12:47.410118 21807 demo_run_graph_main_gpu.cc:186] Failed to run the graph: CalculatorGraph::Run() failed in Run:
Calculator::Process() for node "facelandmarkfrontgpu__facedetectionfrontgpu__ImageToTensorCalculator" failed: Only BGRA/RGBA textures are supported, passed format: 24

Was able to run by converting RGB to RGBA in mediapipe/examples/desktop/demo_run_graph_main_gpu.cc:
...
if (!load_video) {
      cv::flip(camera_frame, camera_frame, /*flipcode=HORIZONTAL*/ 1);
    }

    uchar* camData = new uchar[camera_frame.total()*4];
    cv::Mat continuousRGBA(camera_frame.size(), CV_8UC4, camData);
    cv::cvtColor(camera_frame, continuousRGBA, CV_RGB2RGBA, 4);

    // Wrap Mat into an ImageFrame.
    auto input_frame = absl::make_unique<mediapipe::ImageFrame>(
        mediapipe::ImageFormat::~SRGB~SRGBA, camera_frame.cols, camera_frame.rows,
        mediapipe::ImageFrame::kGlDefaultAlignmentBoundary);
    cv::Mat input_frame_mat = mediapipe::formats::MatView(input_frame.get());
    camera_frame.copyTo(input_frame_mat);
...

hej, same problem, for me your code didnt work out, but this instead:
    cv::cvtColor(camera_frame_raw, camera_frame, cv::COLOR_BGR2RGBA);
    if (!load_video) {
      cv::flip(camera_frame, camera_frame, /*flipcode=HORIZONTAL*/ 1);
    }

    // Wrap Mat into an ImageFrame.
    auto input_frame = absl::make_unique<mediapipe::ImageFrame>(
        mediapipe::ImageFormat::SRGBA, camera_frame.cols, camera_frame.rows,
        mediapipe::ImageFrame::kGlDefaultAlignmentBoundary);
    cv::Mat input_frame_mat = mediapipe::formats::MatView(input_frame.get());
    camera_frame.copyTo(input_frame_mat);

basically adding a A to both COLOR_BGR2RGB and to SRGB

Nice! That is concise and would save running time. I guess A just adds another channel for alpha transparency value

hej, same problem, for me your code didnt work out, but this instead:
    cv::cvtColor(camera_frame_raw, camera_frame, cv::COLOR_BGR2RGBA);
    if (!load_video) {
      cv::flip(camera_frame, camera_frame, /*flipcode=HORIZONTAL*/ 1);
    }

    // Wrap Mat into an ImageFrame.
    auto input_frame = absl::make_unique<mediapipe::ImageFrame>(
        mediapipe::ImageFormat::SRGBA, camera_frame.cols, camera_frame.rows,
        mediapipe::ImageFrame::kGlDefaultAlignmentBoundary);
    cv::Mat input_frame_mat = mediapipe::formats::MatView(input_frame.get());
    camera_frame.copyTo(input_frame_mat);

basically adding a A to both COLOR_BGR2RGB and to SRGB

Yes, your code worked out from my side too! Thank you!

Thank you both, for pinpointing the problem and fixing it in the best way.
The more we share, the farther we go.

What if i have my focal length in pixels and i want to put it in to get distance?


Add descending sorting in fetch data by end date

Currently, the projects are not sorted by date, rather by insertion time (most probably, guessed). Most of the time people want to showcase the latest projects on top.
In this PR, after fetching data from the API, the projects will be sorted by end_date or date_to.

thanks for your contribution


TimeZoneId: Update with current zones

And remove a few outdated ones.
ping @olsson

I think so. Otherwise, I'll ping @nzroller after this is merged, but I would need a merge first :)

Nice. Thank you @olsson !


WMS 1.3.0 Boolean representation

In terms of https://github.com/geotrellis/geotrellis-server/pull/311 it was revealed that OWSLib represents Booleans as {0, 1} of type Integer. At this point the workaround was to skip Booleans in all WMS endpoints, but in the future we may want to use these extra parameters.
This task is to track the status of this issue. That was an appropriate OWSLib restriction for the WMS 1.1.x, but it could be legitimate to represent Booleans as strings ("true" / "false") in terms of the WMS 1.3.x.

It looks like the majority of libraries work with WMS Booleans as with 0 and 1 (QGIS is an example of such library). I think it makes sense for us to force {0, 1} usage for all WMS endpoints.


Project summary

[ ] Summary
[ ] Goals
[ ] Features to work with later

please mention that we achieved 90% coverage, the old and new reports are in /htmlcov folder (old.html, new.html)


Manual entry

Hi all.
If the user is unable to scan the qrcode, google authenticator has a manual entry option. What would the user enter in this field, I would assume it would not be the secret key that gets generated? Thanks

secret.base32 is what Google Authenticator expects when entering the secret manually. I have tested this with Google Authenticator for iOS.

@DmitryGG I'm not a security expert but here is what I know.
Totp is generated using a secret that is shared between user and provider. So your user must have the exact same secret that you saved in your database for them to be able to authenticate. You can either send them the plain base32 encoded secret to enter into Google Authenticator or a similar app like 1Password, or convert the secret to QRCode and send it. QRCode is just a convenient way for the user to enter the secret into their authenticator app.
I suggest you read this:
https://github.com/google/google-authenticator/wiki/Key-Uri-Format


AttributeError: module 'importlib' has no attribute 'util' with python-markdown 3.4

With python3.9 on macOS:
$ python3.9 -m venv venv
$ source venv/bin/activate
$ pip install markdown
Collecting markdown
  Using cached Markdown-3.4-py3-none-any.whl (93 kB)
Collecting importlib-metadata>=4.4; python_version < "3.10"
  Using cached importlib_metadata-4.12.0-py3-none-any.whl (21 kB)
Collecting zipp>=0.5
  Using cached zipp-3.8.1-py3-none-any.whl (5.6 kB)
Installing collected packages: zipp, importlib-metadata, markdown
Successfully installed importlib-metadata-4.12.0 markdown-3.4 zipp-3.8.1
WARNING: You are using pip version 20.2.3; however, version 22.1.2 is available.
You should consider upgrading via the '/Users/mike/tmp/resume.md/venv/bin/python3.9 -m pip install --upgrade pip' command.
$ python
Python 3.9.4 (default, Apr 16 2021, 21:18:07)
[Clang 12.0.0 (clang-1<IP_ADDRESS>)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import markdown
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/mike/tmp/resume.md/venv/lib/python3.9/site-packages/markdown/__init__.py", line 22, in <module>
    from .core import Markdown, markdown, markdownFromFile
  File "/Users/mike/tmp/resume.md/venv/lib/python3.9/site-packages/markdown/core.py", line 27, in <module>
    from .preprocessors import build_preprocessors
  File "/Users/mike/tmp/resume.md/venv/lib/python3.9/site-packages/markdown/preprocessors.py", line 29, in <module>
    from .htmlparser import HTMLExtractor
  File "/Users/mike/tmp/resume.md/venv/lib/python3.9/site-packages/markdown/htmlparser.py", line 29, in <module>
    spec = importlib.util.find_spec('html.parser')
AttributeError: module 'importlib' has no attribute 'util'
>>>

With python3.10 on macOS:
$ python3.10 -m venv 3.10
$ source 3.10/bin/activate
$ pip install markdown
Collecting markdown
  Using cached Markdown-3.4-py3-none-any.whl (93 kB)
Installing collected packages: markdown
Successfully installed markdown-3.4
WARNING: You are using pip version 22.0.4; however, version 22.1.2 is available.
You should consider upgrading via the '/Users/mike/tmp/resume.md/3.10/bin/python3.10 -m pip install --upgrade pip' command.
$ python
Python 3.10.3 (main, Mar 25 2022, 22:16:41) [Clang 12.0.5 (clang-1<IP_ADDRESS>)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import markdown
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/mike/tmp/resume.md/3.10/lib/python3.10/site-packages/markdown/__init__.py", line 22, in <module>
    from .core import Markdown, markdown, markdownFromFile
  File "/Users/mike/tmp/resume.md/3.10/lib/python3.10/site-packages/markdown/core.py", line 27, in <module>
    from .preprocessors import build_preprocessors
  File "/Users/mike/tmp/resume.md/3.10/lib/python3.10/site-packages/markdown/preprocessors.py", line 29, in <module>
    from .htmlparser import HTMLExtractor
  File "/Users/mike/tmp/resume.md/3.10/lib/python3.10/site-packages/markdown/htmlparser.py", line 29, in <module>
    spec = importlib.util.find_spec('html.parser')
AttributeError: module 'importlib' has no attribute 'util'

pip install "markdown<3.4" works, so this is perhaps a regression in the 3.4 release?

What version of importlib-metadata are you using, we can see here that Python Markdown requires: importlib-metadata>=4.4 for Python < 3.10.

These are installations into fresh virtual environments of only python-markdown. I get whatever packages markdown declares as dependencies.
As you can see above, that results in:
Successfully installed importlib-metadata-4.12.0 markdown-3.4 zipp-3.8.1

in python 3.9, and just
Successfully installed markdown-3.4

I wonder if something changed in 4.12.0...I'm on 4.11.3 on Python 3.10 and I wasn't experiencing any issues. Tests were run on Py3.10 as well with no issues: https://github.com/Python-Markdown/markdown/runs/7359376261?check_suite_focus=true. If you downgrade importlib-metadata to 4.11.X do you still get the issue?

Away from test environment now, will check later. But downgrading importlib-metadata on 3.9 won't help on python 3.10. It seems like the current release of python-markdown is broken on 3.10.

Hmm, I'm running macOS and Python 3.10 importlib-metadata 4.12.0 and Python Markdown 3.4 with no issues. I cannot seem to reproduce...

Is this running with a brew python or an official python distribution?

Locally it happens to be running in pyenv-installed fresh builds of official python 3.9.6 and 3.10.3, and fresh virtual environments. brew is not involved.
But please note I am seeing the exact same error in Github actions on macOS and Windows.

Thanks! I will also try to narrow this down more later.

The code which is raising this error has not changed in two years and was part of the 3.3.0 release. There were no changes in any release from 3.3.1 through 3.3.7. If it works in any of those but not in 3.4.0, then the issue is something other than our code.
When you do pip install "markdown<3.4", which version do you get?

I also have plenty of Windows actions run with Python 3.9 and 3.10 with the version right before Markdown 3.4: https://github.com/facelessuser/pymdown-extensions/actions/runs/2652028392. So I am hesitant to think there is an issue.

What version of importlib-metadata are you using, we can see here that Python Markdown requires: importlib-metadata>=4.4 for Python < 3.10.

Actually, we don't require importlib-metadata at all for Python 3.10, only for any previous Python version. It was my understanding that by default, Python 3.10 was supposed to match importlib-metadata version 4.4 or later. Perhaps that is not true in some cases. Although, it seems strange that an import path for a standard lib would only exist on some platforms.

Sorry, I may have stated it backward.

@mikepqr if you install importlib-metadata>=4.4 in python 3.10 does that resolve the issue for you?

I can confirm on macOS that util does exist. I just don't have 3.9 on this machine anymore to test that.
Python 3.10.4 (v3.10.4:9d38120e33, Mar 23 2022, 17:29:05) [Clang 13.0.0 (clang-13<IP_ADDRESS>)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import importlib
>>> importlib.util
<module 'importlib.util' from '/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/util.py'>
>>>

@mikepqr if you install importlib-metadata>=4.4 in python 3.10 does that resolve the issue for you?

I can check later, but I feel like 3.9 vs. 3.10 is probably a red herring, given the error is the same on both versions.

Do these work with markdown 3.4 though?

We'll know shortly: https://github.com/facelessuser/pymdown-extensions/actions/runs/2678476922

is this relevant, i.e. are you trying to access importlib.util as an attribute of importlib, rather than by importing importlib.util?

It's a submodule, nothing is wrong with that:
Python 3.10.4 (v3.10.4:9d38120e33, Mar 23 2022, 17:29:05) [Clang 13.0.0 (clang-13<IP_ADDRESS>)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import importlib
>>> importlib.util.find_spec
<function find_spec at 0x108703d00>

Actions passed on py3.9 and py3.10 on Windows. I don't test in CI on mac, but as I stated, I cannot reproduce locally on my mac.

🤷🏻
Configured the action to just access importlib.util.find_spec. Same error.
And locally in fresh environments:
$ python
Python 3.9.6 (default, Jul  5 2021, 13:23:11)
[Clang 12.0.5 (clang-1<IP_ADDRESS>)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import importlib
>>> importlib.util.find_spec
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'importlib' has no attribute 'util'

$ python
Python 3.10.3 (main, Mar 25 2022, 22:16:41) [Clang 12.0.5 (clang-1<IP_ADDRESS>)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import importlib
>>> importlib.util.find_spec
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'importlib' has no attribute 'util'

There is something very unique about your environment and how you are doing things. I have many, many projects that rely on Markdown for their documentation. I've demonstrated that PY3.10 does in fact access util just fine along with current actions indicating that to be the case as well.
I do not deny you are having an issue, but I cannot reproduce it in any way. You appear to be an outlier. Maybe try using actions/setup-python@v2 for Python actions 🤷🏻.

It's a submodule, nothing is wrong with that

I don't think that's generally true. It depends on how importlib/__init__.py is set up. You get importlib.util in your namespace iff that __init__.py explicitly gives it to you:
$ tree
.
└── package
    ├── __init__.py
    └── util.py

2 directories, 3 files
$ cat package/__init__.py
$ python3
Python 3.9.12 (main, Mar 26 2022, 15:51:15)
[Clang 13.1.6 (clang-13<IP_ADDRESS>)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import package
>>> package.util
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'package' has no attribute 'util'
>>> import package.util
>>> package.util
<module 'package.util' from '/Users/mleewilliams/tmp/package/package/util.py'>

I'm wondering if a change in importlib/__init__.py explains what we're seeing?

There is something very unique about your environment

eh, I'm validating this behavior with the default version of python provided in the Windows and macOS Github CI runners, and I found out about this problem because a user reported it to me.

Maybe try using actions/setup-python@v2 for Python actions

I will try later.

$ git clone https://github.com/Python-Markdown/markdown/
Cloning into 'markdown'...
remote: Enumerating objects: 10709, done.
remote: Counting objects: 100% (507/507), done.
remote: Compressing objects: 100% (237/237), done.
remote: Total 10709 (delta 357), reused 360 (delta 265), pack-reused 10202
Receiving objects: 100% (10709/10709), 3.41 MiB | 15.57 MiB/s, done.
Resolving deltas: 100% (7001/7001), done.

$ cd markdown/

$ python3 -m venv venv

$ source venv/bin/activate

$ python
Python 3.9.12 (main, Mar 26 2022, 15:51:15)
[Clang 13.1.6 (clang-13<IP_ADDRESS>)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import markdown
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/mleewilliams/tmp/markdown/markdown/__init__.py", line 22, in <module>
    from .core import Markdown, markdown, markdownFromFile
  File "/Users/mleewilliams/tmp/markdown/markdown/core.py", line 27, in <module>
    from .preprocessors import build_preprocessors
  File "/Users/mleewilliams/tmp/markdown/markdown/preprocessors.py", line 29, in <module>
    from .htmlparser import HTMLExtractor
  File "/Users/mleewilliams/tmp/markdown/markdown/htmlparser.py", line 29, in <module>
    spec = importlib.util.find_spec('html.parser')
AttributeError: module 'importlib' has no attribute 'util'
>>>

$ vim markdown/htmlparser.py

$ git diff
diff --git a/markdown/htmlparser.py b/markdown/htmlparser.py
index 7ca858e..3512d1a 100644
--- a/markdown/htmlparser.py
+++ b/markdown/htmlparser.py
@@ -20,7 +20,7 @@ License: BSD (see LICENSE.md for details).
 """

 import re
-import importlib
+import importlib.util
 import sys

$ python
Python 3.9.12 (main, Mar 26 2022, 15:51:15)
[Clang 13.1.6 (clang-13<IP_ADDRESS>)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import markdown
>>>

Okay, I can reproduce the error sometimes, but not every time.

I think the difference you're seeing is because import importlib imports importlib/__init__.py and from importlib import util  imports importlib/util.py. See this comment for more.
The importlib/__init__.py is very, very complicated, and I can't figure out what it's doing at all. It's certainly doing some weird stuff. But importing importlib.util directly circumvents this complexity entirely so yes, that diff would fix it for me.
So would the diff I posted, which matches what Markdown already does in its setup.py.

So would the diff I posted, which matches what Markdown already does in its setup.py.

Well, I guess that should be the route we take to fix it then. I still have no idea why the error didn't appear before now or why it suddenly started appearing now.

Well, this is has been a weird and interesting bug. Nice to see a resolution.

Well, I can't promise the fix doesn't break currently working environments, given that it seems like none of us understand the problem! But the fix unblocks me, so I'm all for it ;-)

Given that Python documentation has an example of importing importlib.util, I don't think it can break any currently working environment. Of course, unless someone relied on us raising AttributeError :)

My builds are green again. Thanks folks!


1 view but showing another to right

so the scenaio is
I have 2 elements in the smooth slider if I remove one and notify the adapter.
it changes the element to 1 but it still has a view visible to its right which feels there is still a view there.
but if I go with just 1 element then it doesn't draw any view.
can you please tell how should i fix it

Hi @billy9222 , it looks like the view is not invalidating properly, i will take a look to it :) Sorry for my late reply, best regards!


Remove unneccessary method in ReadEvaluatorFactories

Be sure to do all of the following to help us incorporate your contribution
quickly and easily:

[x] Make sure the PR title is formatted like:
[BEAM-<Jira issue #>] Description of pull request
[x] Make sure tests pass via mvn clean verify. (Even better, enable
Travis-CI on your fork and ensure the whole test matrix passes).
[x] Replace <Jira issue #> in the title with the actual Jira issue
number, if there is one.
[x] If this contribution is large, please file an Apache
Individual Contributor License Agreement.

The getTransformEvaluator() method's only call is poll on the result of
getTransformEvaluatorQueue (which is only ever called by
getTransformEvaluator). Instead, move the construction to
getTransformEvaluator and call poll on the result.

R: @lukecwik

LGTM


Multi json

This adds multi_json and the Faraday middleware to take advantage of it and symbolizes all hash keys. Performance is improved throughout the gem as a result.
I'm going to fix the auth stuff right now, then we can merge.

Coverage decreased (-0.76%) to 92.68% when pulling e3f6b6c38455787d5cb1219af03165a8d169ed71 on multi_json into c9795d3dc21d874bd8a5b0b15979838ef0eeb738 on master.

Coverage decreased (-0.76%) to 92.68% when pulling e3f6b6c38455787d5cb1219af03165a8d169ed71 on multi_json into c9795d3dc21d874bd8a5b0b15979838ef0eeb738 on master.

Coverage decreased (-0.76%) to 92.68% when pulling e3f6b6c38455787d5cb1219af03165a8d169ed71 on multi_json into c9795d3dc21d874bd8a5b0b15979838ef0eeb738 on master.

Coverage decreased (-0.77%) to 92.67% when pulling 5ca221543470a7557aa8d245dc4d967f8d7b1a09 on multi_json into c9795d3dc21d874bd8a5b0b15979838ef0eeb738 on master.

Coverage decreased (-0.76%) to 92.68% when pulling 674c6c9e94ed6022e76a6955b7c78b992b843291 on multi_json into c9795d3dc21d874bd8a5b0b15979838ef0eeb738 on master.


Model with resolution of 384 and clip size of 16

Hello,
I need to use a pretrained model with resolution of 384 and clip size of 16 and the model in the last row of the table for MiT V1 (Model Zoo page) can satisfy my need. But in the table it is mentioned 16 frames but in the run.sh file and also the file name of the checkpoint it is mentioned 8 frames. Do you have other pretrained models with the above-mentioned specifications that you have not still uploaded? If yes, please let me know.
Thank you

Hi! It's a mistake in the MiT table.
I only use 8 frames. As for 16 frames, it runs slowly and performs similarly.