dont reset RUBYLIB

Hi puppetlabs,
I have been trying to debug an issues using using vagrant-beaker and think i have tracked down the problem however suspect the fix is gonna break something else.   The problem im having relates to some acceptance tests using beaker, vagrant, virtualbox and a freebsd image.  The error i get is as follows
/usr/local/rvm/rubies/ruby-2.3.3/bin/ruby -I/home/gitlab-runner/puppet-openbgpd/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.6.0/lib:/home/gitlab-runner/puppet-openbgpd/vendor/bundle/ruby/2.3.0/gems/rspec-support-3.6.0/lib /home/gitlab-runner/puppet-openbgpd/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.6.0/exe/rspec spec/acceptance/06_multi_peers_spec.rb --color
/home/gitlab-runner/puppet-openbgpd/vendor/bundle/ruby/2.3.0/gems/beaker-rspec-6.1.0/lib/beaker-rspec/helpers/serverspec.rb:43: warning: already initialized constant Module::VALID_OPTIONS_KEYS
/home/gitlab-runner/puppet-openbgpd/vendor/bundle/ruby/2.3.0/gems/specinfra-2.71.2/lib/specinfra/configuration.rb:4: warning: previous definition of VALID_OPTIONS_KEYS was here
Hypervisor for router1 is vagrant
Hypervisor for router2 is vagrant
Hypervisor for router3 is vagrant
Beaker::Hypervisor, found some vagrant boxes to create

Beaker failed to destroy the existing VM's. If you think this is
an error or you upgraded from an older version of beaker try
verifying the VM exists and deleting the existing Vagrantfile if
you believe it is safe to do so.  Error was /usr/local/rvm/rubies/ruby-2.3.3/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- bundler/setup (LoadError)
  	from /usr/local/rvm/rubies/ruby-2.3.3/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'

# ./vendor/bundle/ruby/2.3.0/gems/beaker-vagrant-0.1.0/lib/beaker/hypervisor/vagrant.rb:251:in `block (2 levels) in vagrant_cmd'
# ./vendor/bundle/ruby/2.3.0/gems/beaker-vagrant-0.1.0/lib/beaker/hypervisor/vagrant.rb:246:in `block in vagrant_cmd'
# ./vendor/bundle/ruby/2.3.0/gems/beaker-vagrant-0.1.0/lib/beaker/hypervisor/vagrant.rb:244:in `chdir'
# ./vendor/bundle/ruby/2.3.0/gems/beaker-vagrant-0.1.0/lib/beaker/hypervisor/vagrant.rb:244:in `vagrant_cmd'
# ./vendor/bundle/ruby/2.3.0/gems/beaker-vagrant-0.1.0/lib/beaker/hypervisor/vagrant.rb:180:in `provision'
# ./vendor/bundle/ruby/2.3.0/gems/beaker-3.24.0/lib/beaker/hypervisor.rb:41:in `create'
# ./vendor/bundle/ruby/2.3.0/gems/beaker-3.24.0/lib/beaker/network_manager.rb:73:in `block in provision'
# ./vendor/bundle/ruby/2.3.0/gems/beaker-3.24.0/lib/beaker/network_manager.rb:72:in `each_key'
# ./vendor/bundle/ruby/2.3.0/gems/beaker-3.24.0/lib/beaker/network_manager.rb:72:in `provision'
# ./vendor/bundle/ruby/2.3.0/gems/beaker-rspec-6.1.0/lib/beaker-rspec/beaker_shim.rb:35:in `provision'
# ./vendor/bundle/ruby/2.3.0/gems/beaker-rspec-6.1.0/lib/beaker-rspec/spec_helper.rb:46:in `block in <top (required)>'
# ./vendor/bundle/ruby/2.3.0/gems/beaker-rspec-6.1.0/lib/beaker-rspec/spec_helper.rb:5:in `<top (required)>'
# ./vendor/bundle/ruby/2.3.0/gems/beaker-rspec-6.1.0/lib/beaker-rspec.rb:5:in `require'
# ./vendor/bundle/ruby/2.3.0/gems/beaker-rspec-6.1.0/lib/beaker-rspec.rb:5:in `<module:BeakerRSpec>'
# ./vendor/bundle/ruby/2.3.0/gems/beaker-rspec-6.1.0/lib/beaker-rspec.rb:1:in `<top (required)>'
# ./spec/spec_helper_acceptance.rb:3:in `require'
# ./spec/spec_helper_acceptance.rb:3:in `<top (required)>'
# ./spec/acceptance/06_multi_peers_spec.rb:3:in `require'
# ./spec/acceptance/06_multi_peers_spec.rb:3:in `<top (required)>'
No examples found.

Finished in 0.00031 seconds (files took 1.24 seconds to load)
0 examples, 0 failures, 1 error occurred outside of examples

/usr/local/rvm/rubies/ruby-2.3.3/bin/ruby -I/home/gitlab-runner/puppet-openbgpd/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.6.0/lib:/home/gitlab-runner/puppet-openbgpd/vendor/bundle/ruby/2.3.0/gems/rspec-support-3.6.0/lib /home/gitlab-runner/puppet-openbgpd/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.6.0/exe/rspec spec/acceptance/06_multi_peers_spec.rb --color failed

and can be recreated with the following commands (on a clean linux machine)
$ git clone https://github.com/icann-dns/puppet-openbgpd
$ cd puppet-openbgpd
$ git checkout add_rejected_routes
$ bundle install --path=${BUNDLE_PATH:-vendor/bundle}
$ BEAKER_destroy=no BEAKER_set=freebsd-multi-10.3 BEAKER_debug=yes bundle exec rake beaker SPEC=spec/acceptance/06_multi_peers_spec.rb

It appears that when vagrant_cmd is called it shells out to vagrant-wrapper.  however when it does this is clears the RUBYLIB environment variable.  which leaves $: being set to the following when
/usr/lib/ruby/site_ruby/2.4.0
/usr/lib/ruby/site_ruby/2.4.0/x86_64-linux
/usr/lib/ruby/site_ruby
/usr/lib/ruby/vendor_ruby/2.4.0
/usr/lib/ruby/vendor_ruby/2.4.0/x86_64-linux
/usr/lib/ruby/vendor_ruby
/usr/lib/ruby/2.4.0
/usr/lib/ruby/2.4.0/x86_64-linux

and none of these have the bundler which is why the command fails
$ locate bundler/setup.rb
/home/jbond/.gem/ruby/2.4.0/gems/bundler-1.15.4/lib/bundler/setup.rb
/home/jbond/git/puppet-openbgpd/vendor/bundle/bundler/setup.rb
/usr/lib/ruby/gems/2.4.0/gems/bundler-1.15.4/lib/bundler/setup.rb

Sorry for the long post and more then hapopy to try other solutions if you can recomend something
Thanks

Can one of the admins verify this patch?

Jenkins, test this please

sorry for the noise on further investigation this was some thing to do with a broken local environment and using vagrant-wrapper when i didn't need to


Create files using the same method, some files are 0x201 (inline) type and cannot be written

Hello,
In the current file system, the same method is used to create files, but several of the files cannot be written, and the size of the file is also 0, and the data in the file system is parsed, and the file type that cannot be written is 0x201 (inline), and the other file types that can be written normally are 0x202 (CTZ-struct).
Littlefs version is used: V2.5.0
How to reproduce: Unfortunately, there is no way to reproduce this problem reliably, and only one device in the same code environment has this problem.
Please ask what might be causing this issue, and is there anything that can be done to fix or avoid it, or in which version it has been fixed.

Thank you for your time and help!

Hello @geky,
Thanks for your reply, but the device did not lose power during the file writing.

That is strange then. Zero-length files could also be created if a file was opened but never closed. Or if there was memory corruption.
But if these files can't be written, that is curious. Do you can an error when trying to write to the files?
The fact that these files are all next to each others suggests they could be in the same metadata-log, which might mean the metadata-log was corrupted somehow.

I tried dump the file system data on the device, and mounted it on linux through lfs-fuse for test, linux can write these data normally. I think there may be a problem with flash?

That would be explained by a block returning incorrect data. Was this device under heavy use? If not maybe it was a manufacturing defect?
littlefs does extend the lifetime of the device by distributing wear it across all blocks in the device, but littlefs doesn't have mechanisms to detect or correct errors when they do happen. There's some long term plans to add error detection+correction, but they are currently just plans.
Some users have had success putting checksums in the block device layer to detect errors, if you need to protect against this type of failure: https://github.com/littlefs-project/littlefs/issues/843


netutil: add dualstack to linux_route

in v3.1.0 netutil couldn't get default interface for ipv6only hosts
Fixes #7219

lgtm. Thanks!

lgtm


Using nevergrad for constraining few of the model coefficients to be positive only in ridge regression

Hi Guys,
I am working on building a Medix mix model(MMM) and using nevergrad to tune the hyper parameters. I am using the ridge regression so that it can better handle multi collinearity in my dataset (as in MMM, input variables tend to be collinear with each other). Now, what is happening is I get some of the model coefficients to be positive where as few to be negative. But in my case, I want to constrain  specific coefficients to be positive only while others can be either positive or negative. Is there a way this coefficient constrain can be put using nevergrad ?
I am using the below optimizer : ng.optimizers.NGOpt
Can someone please help or guide me here on how to do this ?

This is rather a question for Nevergrad, not Robyn. In Robyn, we use the R package glmnet to constraint the coefficient signs, while Nevergrad is for hyperaparemter optimisation. I'm sure there'll be similar capacity on Python.


2.1.1 Create component diagram

Tasks:

[ ] Identify Components
[ ] Determine Relationships
[ ] Choose a Diagramming Tool
[ ] Create the Diagram
[ ] Add Connectors
[ ] Label Components
[ ] Document Interfaces
[ ] Specify Dependencies
[ ] Organize the Diagram

Goals:
Completion Criteria:
Allocated Time:
Start & End date :

Current state of component diagram based off current state of class diagram posted in #71
await review......

Approved and finalized with other members...


W-types

This implements (non-indexed) W-types as seen in the PDF.

The study and formalization of inductive types is notoriously difficult and a source of bugs and inconsistencies. For simplicity, we begin by studying a very restricted form of inductive types A, called polynomial types or W-types, which are defined in such a way that each constructor takes a finite number of arguments of type A (we will see that we can also easily generalize this to accept arguments whose type do not involve A, the most important part of the restriction is that constructors cannot have arguments whose type involve A in non-trivial ways, such as having an argument of type A → A).

For example, it allows us to define the natural numbers and to make computation on them:

Note that I added the def statement for making definitions. When a term is read, all current definitions are substituted in it before actually using it. It's a way to avoid typing long terms over and over again.
I also added sum types like in Pieuvre. Their elimination is done with case which you can see an example of above (it's the same syntax as in the PDF anyway).
We're still missing a lot of inductive types. For instance, it would be cool if we were able to define the equality relation inductively such as in Coq (in the example above, I'm cheating by not using inductive types). I am a bit lost for now as to how to get the more powerful inductive types. I will try to read more about this.
This is clearly not user friendly, but I still think it was useful as a place to start from.

I'm actually going to mark this as a draft for now since we might not want to merge this if we have a better way to implement inductive types.

This is abandoned in favor of actual inductive types.


HomeKit Resets to default room for all accessories after reboot

Been having an issue where homekit has reset everything to default the default room after restarting homebridge, or rebooting the host.
I'm not sure where I would go to find relevant logs for this, however, it is very annoying to have to reconfigure all the rooms every time I reboot the VM that homebridge is running in.

might be a duplicate to #874


Failed to install redacted:url runtime v6.0. - Azure Bicep

Does this occur consistently?
Repro steps:

Action: bicep.activate
Error type: Error
Error Message: Failed to install redacted:url runtime v6.0.
Version: 0.4.1124
OS: win32
OS Release: 10.0.19042
Product: Visual Studio Code
Product Version: 1.62.3
Language: en

Call Stack
extension.js:2:1960109extension.js:2:1960109
o extension.js:2:1945025

This is the same issue encountered in #2483. Please follow the steps there to continue the troubleshooting.


Several tests fail locally (Ubuntu)

The following tests fail when I run the suite on my Ubuntu 20.04 machine:

TestFailedKeysClaimRetries
TestRoomKeyIsCycledOnDeviceLogout
TestRoomKeyIsCycledOnMemberLeaving
TestSigkillBeforeKeysUploadResponse

Launch script:
#!/bin/bash

set -u
set -o pipefail

export LIBRARY_PATH="$(pwd)/rust-sdk/target/debug"
export LD_LIBRARY_PATH="$(pwd)/rust-sdk/target/debug"

export COMPLEMENT_BASE_IMAGE=homeserver
export COMPLEMENT_ENABLE_DIRTY_RUNS=1
export COMPLEMENT_CRYPTO_WRITE_CONTAINER_LOGS=1
export COMPLEMENT_SHARE_ENV_PREFIX=PASS_
export PASS_SYNAPSE_COMPLEMENT_DATABASE=sqlite
export DOCKER_BUILDKIT=1
export BUILDAH_FORMAT=docker

set -x

LOGFILE="~/Desktop/test-output-$(date '+%Y-%m-%d_%H:%M:%S').jsonl"

go test -v -timeout 15m -json ./tests "$@" 2>&1 \
    | tee "${LOGFILE} \
    | gotestfmt -hide successful-tests

Logs: complement-crypto-failures.txt

All of those tests use a callback server. Likely networking problem to the host.


P10 Toy example: when the grid line reaches 200, it is inconsistent with the results of the paper.

This is the code I changed based on example1. I just increased the number of grids in the list. When the number of grids was updated to 200, the loss suddenly became larger and jitter occurred. I don’t know what went wrong.
import sys
sys.path.append("..")
from kan import *

# initialize KAN with G=3
model = KAN(width=[2,1,1], grid=3, k=3)

# create dataset
f = lambda x: torch.exp(torch.sin(torch.pi*x[:,[0]]) + x[:,[1]]**2)
dataset = create_dataset(f, n_var=2)

grids = np.array([3,5,10,20,50,100,200,500,1000])

train_losses = []
test_losses = []
steps = 200
k = 3

for i in range(grids.shape[0]):
    if i == 0:
        model = KAN(width=[2,1,1], grid=grids[i], k=k)
    if i != 0:
        model = KAN(width=[2,1,1], grid=grids[i], k=k).initialize_from_another_model(model, dataset['train_input'])
    results = model.train(dataset, opt="LBFGS", steps=steps, stop_grid_update_step=30)
    train_losses += results['train_loss']
    test_losses += results['test_loss']

The following are the training results
train loss: 1.42e-02 | test loss: 1.49e-02 | reg: 3.02e+00 : 100%|█| 200/200 [00:25<00:00,  7.71it/s
train loss: 6.42e-03 | test loss: 6.57e-03 | reg: 2.97e+00 : 100%|█| 200/200 [00:21<00:00,  9.12it/s
train loss: 2.91e-04 | test loss: 3.35e-04 | reg: 2.97e+00 : 100%|█| 200/200 [00:20<00:00,  9.57it/s
train loss: 2.21e-05 | test loss: 2.31e-05 | reg: 2.97e+00 : 100%|█| 200/200 [00:19<00:00, 10.15it/s
train loss: 7.55e-06 | test loss: 1.56e-05 | reg: 2.97e+00 : 100%|█| 200/200 [00:22<00:00,  8.82it/s
train loss: 5.01e-06 | test loss: 1.49e-05 | reg: 2.97e+00 : 100%|█| 200/200 [00:19<00:00, 10.48it/s
train loss: 2.67e-02 | test loss: 2.11e-01 | reg: 2.96e+00 : 100%|█| 200/200 [01:21<00:00,  2.46it/s
train loss: 2.53e-02 | test loss: 4.15e-01 | reg: 3.61e+00 : 100%|█| 200/200 [01:32<00:00,  2.17it/s
train loss: 1.89e-01 | test loss: 1.38e+00 | reg: 4.19e+00 : 100%|█| 200/200 [02:11<00:00,  1.52it/s

See Figure 2.3 and Section 2.4 (Toy Example) in the paper

See Figure 2.3 and Section 2.4 (Toy Example) in the paper
I want to reproduce the results of this part, but the results I ran are as above. Can you tell me what the problem is?

@iiisak I want to reproduce the results of this part, but the results I ran are as above. Can you tell me what the problem is?

Hi, at high precision, the results can be quite sensitive to random seeds. At least when I made the plot, noise_scale_base=0.0 is used by default, and the default now becomes noise_scale_base=0.1.
Please try if model = KAN(width=[2,1,1], grid=3, k=3, noise_scale_base=0.0) helps. You may also try different random seeds to see how random seeds may affect results model = KAN(width=[2,1,1], grid=3, k=3, noise_scale_base=0.0, seed=42).


Adapt to new release workflow

I just tested the bundles shipped with https://github.com/MannLabs/alphadia/releases/tag/untagged-8e2ba4d90dd8c50c45d2
And can't launch the installed version. Is this the right installer to test?


Fix: clone not in component props

clone not in props result in the following issue:

Thank you!


Update ASC with released SDK and clean logging code for init errors

SDK v1.2.0 has been released with bug fixes and enhancements
Logging client is never nil after return from call to Initialize(), so error handling code can be simplified as was done in all the examples.

Chuck Knox has addressed this with #81


Ensure that usage is not tracked if "Do Not Track" is enabled in the browser

Closing till we understand the requirements and options. This will be worked out in #4206


Docs: Plugins section cleanup

Cleaning up the Plugins section so that it makes more sense. Changes include:

Moving the plugin guides section under the Learn sidebar category and renaming it to Guides. Also, making the guides a bit less about plugins but about getting some specific done.
Renaming pages, titles, and sidebar titles, so it's cleaner and makes more sense.
Removing duplicates
Adding notes, and adjusting sentences where necessary so things make more sense.

This PR takes care of #540.

CC @PazYanoverr.

@dericksozo please note the build error

@yuval-hazaz Fixed that issue.


copy the banner from threefold.io

to let the project website look 100% integrated
also the footer needs to be the same

added by Samar


Variable box radius for equilibration

Description
We have been using the equilibration of Adaptive to obtain different initial structures of a small ligand. The idea is to launch afterwards an unbiased PELE simulation starting from different initial positions to cover as many regions as possible in a specific protein cavity. The problem we found is that the default (and only) option to run this equilibration is with a 2Å radius spherical box. As a result, the structures resulting from the equilibrationCluster clusterization are all located in a very small region and they are not spread around the cavity we are interested in exploring.
Solution
The most straightforward solution would be allowing the users to change the hard-coded 2Å-spherical box with the radius they want.

Commit 2dac8812 in devel should fix this issue. There are 3 new parameters, equilibrationRotationRange, equilibrationTranslationRange and equilibrationBoxRadius that allow the user to control the box radius, translation and rotation of the equilibration simulation.

So fast! Thanks @cescgina, we will give it a try:)


[WFLY-17378] Update Using Keycloak with WildFly Elytron section in docs.

Fixes: https://issues.redhat.com/browse/WFLY-17378

Hello, theashiot. I'm waiting for one of the admins to verify this patch with /ok-to-test in a comment.


Better API for initializing with genesis parameters

What was wrong?
As of #123 there will be a way to specify genesis parameters, but it will take some detailed documentation to understand, and the variety of options will probably confuse beginners. (Thanks to @voith for offering to write the docs)
Let's reduce the ways to initialize the backend with custom genesis parameters, and do it in a way that leans more on the global standards (like the genesis file, which may only be a "de facto" standard, but still better than a custom web3.py thing).
How can it be fixed?
Let's can coalesce around this as the preferred single mechanism for initializing a custom genesis state:
backend = PyEVMBackend.from_genesis(dict(gas_limit=etc))

# also accepts the equivalent json-encoded string:
backend = PyEVMBackend.from_genesis('{"gas_limit": etc}')

We should further explore what use cases people have for setting up custom genesis, but I think we can handle them all cleanly by creating tools to easily generate a genesis dict.
The following APIs are shooting from the hip, I'm not saying that any specific one is a good idea. Just some examples...
from eth_utils import make_genesis_accounts

genesis_accounts = make_genesis_accounts(num_accounts=3, init_state=dict(balance=10**18))

PyEVMBackend.from_genesis(dict(gas_limit=7_000_000, accounts=genesis_accounts))

or
# some silly keys, where int(key) in range(10)
keys = eth_utils.get_test_keys(10)

genesis = eth_utils.make_funded_genesis(dict(gas_limit=7_000_000), keys=keys)

tester_backend = PyEVMBackend.from_genesis(genesis)

for key in keys:
  tester_backend.add_account(keys)

How cool is it that the same tools could be used to generate a genesis file for any other node?! Speaking of which, maybe these generation tools already exist somewhere else?

@carver and @voith maybe we should instead use a less stringent version of the EIP1085 format since it is indeed a standard format, as well as potentially some utility tools for removing any boilerplate for the common cases.
https://github.com/ethereum/py-evm/pull/1299

cool. I'll wait for ethereum/py-evm#1299 to land then!

@voith wanted to let you know that currently #1299 is stalled out and likely to still take a while before it gets closed.

Still something happening on this?

We do have the APIs now to initialize from a EIP1085 compatible genesis file but these APIs do currently live within Trinity. I actually think it may make sense to check which parts of it may better belong into py-evm so that this becomes more reusable outside of Trinity.


to add an open source flutter app "Diaspora"

Diaspora
(https://github.com/diaspora/diaspora)
Diaspora is a decentralized social networking platform that prioritizes user privacy and data ownership, allowing users to connect and share content without relying on a central authority.
Category: Social Networking

Not a flutter app.


fluxcd: 0.24.0 -> 0.24.1

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for fluxcd is: "Open and extensible continuous delivery solution for Kubernetes"
meta.homepage for fluxcd is: "https://fluxcd.io"
meta.changelog for fluxcd is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
/nix/store/rmppk0wi9q8jgkx2nyrn3p2agiw0zr45-fluxcd-0.24.1/bin/flux passed the binary check.
1 of 1 passed binary check by having a zero exit code.
1 of 1 passed binary check by having the new version present in output.
found 0.24.1 with grep in /nix/store/rmppk0wi9q8jgkx2nyrn3p2agiw0zr45-fluxcd-0.24.1
found 0.24.1 in filename of file in /nix/store/rmppk0wi9q8jgkx2nyrn3p2agiw0zr45-fluxcd-0.24.1

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

4 total rebuild path(s)

2 package rebuild(s)

2 x86_64-linux rebuild(s)
2 x86_64-darwin rebuild(s)

First fifty rebuilds by attrpath
docbookrx
fluxcd

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/rmppk0wi9q8jgkx2nyrn3p2agiw0zr45-fluxcd-0.24.1 \
  --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 fluxcd https://github.com/r-ryantm/nixpkgs/archive/5db828dbdee4809c593a7ff98852967f7205c29e.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/rmppk0wi9q8jgkx2nyrn3p2agiw0zr45-fluxcd-0.24.1
ls -la /nix/store/rmppk0wi9q8jgkx2nyrn3p2agiw0zr45-fluxcd-0.24.1/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

1 package built:

fluxcd

Maintainer pings
cc @jlesquembre @bryanasdev000 @kalbasit for testing.

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

1 package built:

fluxcd


"Missing versions of work produced for milestone 1 - sprint -2

Please update the document to include the missing artifacts (user story maps version 2 and task flow diagrams version 2.

Created a new document that reflects the total work produced for Milestone 1 - Sprint 2. We will upload the document to the usability folder on GitHub. No further review is required at this time. Thanks!


fix: round off error in ColorAlphaBlend

This PR fixes the problem described in https://github.com/raysan5/raylib/issues/2523

@royqh1979 thanks for the fix 🙂


Can amidst learn structure from data automaticlly?

Hello,
guys,
I want to know whether amidst can learn structure from data automatically; And
According to document, when new batch data comes, there is a way can update the paraments of bayesian network incremently; But I want to know whether the structure of network change because of paraments' change.
Thanks.

Not now. Amidst only learn the parameters. The key is that your structure can contain latent/hidden variables. Parameter learning can be performed in a incremental way.


Fix Your Timestep! link in README on crates.io is broken

Thanks for taking the time to create tetra. I saw your tweet on publishing it to crates.io and wanted to check it out.
Since you also wanted to get a heads up on any bugs I am creating this issue. Due note that it seems to me to be a issue with crates.io but I am not sure. I would like to investigate further, but in the meantime I would like to refer back to the first context I found it.
When I open tetra on crates.io and click on the Fix Your Timestep! link, I am redirected to a GitHub 404 page.
The reason is that the url is
https://github.com/17cupsofcoffee/tetra/blob/master/*https://gafferongames.com/post/fix_your_timestep/

When I go to the tetra repository and click the same Fix Your Timestep! I end up at the correct article.
Like I said, this is in no part your problem. I will try to investigate what causes this, and then maybe transfer the link to crates.io

Yep, I noticed this about 30 seconds after publishing, unfortunately 😅
The issue is due to the fact I made a typo in my README before publishing the crate - I've fixed it on master already (which is why the link works on GitHub), but the change won't appear on crates.io until I publish a new version of the crate.
I'll probably be doing a 0.1.1 release in the near future, so it hopefully shouldn't be broken for too long! I'll leave this issue open till then. Thanks for reporting it 😀

that would have taken me a long time before figuring it out. Great that you already fixed it.

Just published 0.1.1, and the link seems to be working now :) Thanks again!


Finish conv2d

Some combinations for Pond's conv2d is missing.

Could you elaborate more on what's missing?

I believe the backward pass is what is missing. There is a branch open with some initial work here https://github.com/mortendahl/tf-encrypted/pull/156, might need to coordinate with @koenvanderveen  to find out more!

There is also some work being done related to conv1d and might require some changes to the current conv2d implementation that could effect the backward pass. @jvmancuso or @yanndupis might have more information regarding this.

Any changes for conv1d can adapt to what's done in the meantime.  We're not entirely sure we'll need to change conv2d, but there's a lot to be done before we would need to modify conv2d, if at all.

I think pushing forward on the backwards pass for conv2d as in #156 would be super helpful to us!

ABY3 protocol now has fully functional NN training.


Cannot use --exclude-tags option after upgrade to Ruby 2.4.0

My regex is no longer valid after upgrading to Ruby 2.4.0
I'm on a Mac with macOS 10.12.2 and github_changelog_generator 1.14.3
Here's part of the generated output:
 :exclude_tags_regex=>"(jenkins-|\\d\\.\\d\\d{1,})",
 :token=>nil}

/usr/local/lib/ruby/gems/2.4.0/gems/activesupport-5.0.1/lib/active_support/xml_mini.rb:51: warning: constant ::Fixnum is deprecated
/usr/local/lib/ruby/gems/2.4.0/gems/activesupport-5.0.1/lib/active_support/xml_mini.rb:52: warning: constant ::Bignum is deprecated
Found 84 tags
Warning: unable to reject any tag, using regex nil in --exclude-tags option.

@hrmoller Hello!
Experiment: Try to fill in both the --exclude-tags-regex and --exclude-tags with your value?
See the code for why this is perhaps a way through this winding code path: https://github.com/skywinder/github-changelog-generator/blob/bcacabcf5fca8eeaba7624b7f5551c9d92244b41/lib/github_changelog_generator/generator/generator_tags.rb#L178

@hrmoller not sure if this is still an issue for you, but I just ran into it as well and wanted to post my findings.
I think the warning being printed is incorrect. I'm on macOS 10.12.6, Ruby 2.4.1 and github_changelog_generator 1.14.3 and the following syntax seems to have the desired result, albeit the warning:
github_changelog_generator --exclude-tags-regex '.*' 'OWNER/REPO'
This contrived example will exclude all tags via regex, resulting in a changelog with all changes in the "Unreleased" section. I've also tested with more meaningful regexes and they behave as expected.
I think the root cause is at https://github.com/skywinder/github-changelog-generator/blob/v1.14.3/lib/github_changelog_generator/generator/generator_tags.rb#L203, where options[:exclude_tags] is being inspected as a regex, when I think it should be options[:exclude_tags_regex] instead.

This is happening to me as well, although I'm unsure of whether it has anything to do with the GitLab feature branch I'm using. See PR #657.
$ ruby --version
ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-darwin17]

@hrmoller is it still actual? looks like it fixed already.


Reporting a vulnerability

Hello!
I hope you are doing well!
We are a security research team. Our tool automatically detected a vulnerability in this repository. We want to disclose it responsibly.  GitHub has a feature called Private vulnerability reporting, which enables security research to privately disclose a vulnerability. Unfortunately, it is not enabled for this repository.
Can you enable it, so that we can report it?
Thanks in advance!
PS: you can read about how to enable private vulnerability reporting here: https://docs.github.com/en/code-security/security-advisories/repository-security-advisories/configuring-private-vulnerability-reporting-for-a-repository

Thank you for notifying us.  I have enabled private security reporting.

Please report the issue through the private vulnerability reporting. Closing this issue.


TextFormField validator hide text

Implement a bool which will easily hide/show error text for validator (If we are showing it somewhere else, outside container for example). Validator is the only way to easily implement form validation logic without additional methods, and having to hide stock text in a hacky way inside InputDecoration is not the way to go errorStyle: const TextStyle(                     color: Colors.transparent, fontSize: 0, height: 0),

Hi @lowbit, Thanks for filing the issue. I am quite not sure I understood your proposal. If the validator returns a nonempty string it will be shown as an error. In case you don't want to show the error on validation you could just simply return an empty string.
Consider the below example from official docs

code sample
import 'package:flutter/material.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    const appTitle = 'Form Validation Demo';

    return MaterialApp(
      title: appTitle,
      home: Scaffold(
        appBar: AppBar(
          title: const Text(appTitle),
        ),
        body: const MyCustomForm(),
      ),
    );
  }
}

// Create a Form widget.
class MyCustomForm extends StatefulWidget {
  const MyCustomForm({Key? key}) : super(key: key);

  @override
  MyCustomFormState createState() {
    return MyCustomFormState();
  }
}

// Create a corresponding State class.
// This class holds data related to the form.
class MyCustomFormState extends State<MyCustomForm> {
  // Create a global key that uniquely identifies the Form widget
  // and allows validation of the form.
  //
  // Note: This is a GlobalKey<FormState>,
  // not a GlobalKey<MyCustomFormState>.
  final _formKey = GlobalKey<FormState>();

  @override
  Widget build(BuildContext context) {
    return Form(
      key: _formKey,
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          TextFormField(
            // The validator receives the text that the user has entered.
            validator: (value) {
              if (value == null || value.isEmpty) {
                return 'Please enter some text'; /// return empty string here
              }
              return null;
            },
          ),
          Padding(
            padding: const EdgeInsets.symmetric(vertical: 16.0),
            child: ElevatedButton(
              onPressed: () {
                if (_formKey.currentState!.validate()) {
                  ScaffoldMessenger.of(context).showSnackBar(
                    const SnackBar(content: Text('Processing Data')),
                  );
                }
              },
              child: const Text('Submit'),
            ),
          ),
        ],
      ),
    );
  }
}

2 ways

Return null in validator to hide error
Don't use validator and Use TextEditingController to control validation and showing error on UI

@maheshmnj The problem is if I want to show error text somewhere in parents widget, for example I have bordered input fields, and I am displaying error text somewhere else in parents row/column widget, outside inputs border.
I am using validator because I need it in order to validate my full form, and if I am using validator, by default error text will be written below.
I am using hacky solution to hide it, since I am handling it somewhere else. I cannot return non empty string to hide validator text, since if I do that ,then my form will validate successfully.

Thanks for the clarification @lowbit, I believe you should be able to do that by maintaining a bool variable yourself. Please take a look at the below code sample where I show a custom text error above the textfield if the input field is empty.

code sample
import 'package:flutter/material.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    const appTitle = 'Form Validation Demo';

    return MaterialApp(
      title: appTitle,
      home: Scaffold(
        appBar: AppBar(
          title: const Text(appTitle),
        ),
        body: const MyCustomForm(),
      ),
    );
  }
}

// Create a Form widget.
class MyCustomForm extends StatefulWidget {
  const MyCustomForm({Key? key}) : super(key: key);

  @override
  MyCustomFormState createState() {
    return MyCustomFormState();
  }
}

// Create a corresponding State class.
// This class holds data related to the form.
class MyCustomFormState extends State<MyCustomForm> {
  // Create a global key that uniquely identifies the Form widget
  // and allows validation of the form.
  //
  // Note: This is a GlobalKey<FormState>,
  // not a GlobalKey<MyCustomFormState>.
  final _formKey = GlobalKey<FormState>();
  bool isError = false;
  @override
  Widget build(BuildContext context) {
    return Form(
      key: _formKey,
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          isError
              ? const Text('My Custom Errror',
                  style: TextStyle(color: Colors.red))
              : const SizedBox(),
          TextFormField(
            validator: (value) {
              if (value == null || value.isEmpty) {
                return '';
              }
              return null;
            },
            decoration: const InputDecoration(
                /// to prevent red border when focused
                focusedErrorBorder: UnderlineInputBorder(),
                errorStyle: TextStyle(height: 0),
               /// to prevent red border when not focused
                errorBorder: UnderlineInputBorder()),
          ),
          Padding(
            padding: const EdgeInsets.symmetric(vertical: 16.0),
            child: ElevatedButton(
              onPressed: () {
                setState(() {
                  isError = !_formKey.currentState!.validate();
                });
              },
              child: const Text('Submit'),
            ),
          ),
        ],
      ),
    );
  }
}

I don't think this is a workaround but the right solution with just few lines of code. I feel it is safe to close this issue as not everything can be built into the framework, in case you disagree feel free to write in the comments and we will reopen it.
Thank you.


operator contrail-operator (21.3)

operator contrail-operator (21.3)
This helps setup Juniper contrail SDN for Openshift

closing this to fix for =v4.6 annotations


RWLock'd map deemed not linearizable

Hey @anishathalye,
Thanks for the library, we're making pretty heavy use of this now in etcd and I spent the day to play around with it and check a toy database of mine.
While doing that, I came across an odd issue with sync.RWMutex which guards the three main operations (Get with ReadLock and Put+Delete with a WriteLock).
From sync.RWMutex:

A RWMutex is a reader/writer mutual exclusion lock. The lock can be held by an arbitrary number of readers or a single writer. The zero value for a RWMutex is an unlocked mutex.
If a goroutine holds a RWMutex for reading and another goroutine might call Lock, no goroutine should expect to be able to acquire a read lock until the initial read lock is released. In particular, this prohibits recursive read locking. This is to ensure that the lock eventually becomes available; a blocked Lock call excludes new readers from acquiring the lock.

Given this is implemented correctly in Go (I would assume so), this should give us linearizability over concurrent map operations. A single threaded happy path test runs correctly, the multi-goroutine one sadly returns Illegal.
The full code can be found in this commit: https://github.com/thomasjungblut/porcupine/commit/d01d21699b74166d39f001b781767aa812fbf366
And should be reproducible with a simple go test on the rwlock package.
I would love to attach a better visualization of this issue, however there's some issue with the JS in this particular case:

The more complex case from my toy database looks like this:

I'm rather curious as to why the "Get" was allowed to run during the "Put" and even the "Put" can overlap with another.
BTW I also suspect a clock resolution / backward movement issue with time.Now here...
EDIT: this also happens with a simple sync.Mutex.

The issue is with the model. (re-attaching your original model.go here in case anyone wants to refer to it in the future).

(hidden, click to expand)
package rwlock

import (
	"fmt"
	"github.com/anishathalye/porcupine"
	"reflect"
)

const (
	GetOp = iota
	PutOp = iota
	DelOp = iota
)

type Input struct {
	Operation uint8
	Key       int
	Val       int
}

type Output struct {
	Key   int
	Val   int
	Found bool
}

type State struct {
	state map[int]int
}

var Model = porcupine.Model{
	Init: func() interface{} {
		return State{
			state: map[int]int{},
		}
	},
	Step: func(state interface{}, input interface{}, output interface{}) (bool, interface{}) {
		s := state.(State)
		i := input.(Input)
		o := output.(Output)

		stateVal, found := s.state[i.Key]

		switch i.Operation {
		case GetOp:
			if !o.Found {
				return !found, s
			} else if stateVal == o.Val {
				return true, s
			}
			break
		case PutOp:
			s.state[i.Key] = i.Val
			return true, s
		case DelOp:
			delete(s.state, i.Key)
			return true, s
		}

		return false, s
	},
	Equal: func(a, b interface{}) bool {
		return reflect.DeepEqual(a, b)
	},
	DescribeOperation: func(input interface{}, output interface{}) string {
		i := input.(Input)
		o := output.(Output)

		opName := ""
		switch i.Operation {
		case GetOp:
			opName = "Get"
			break
		case PutOp:
			opName = "Put"
			break
		case DelOp:
			opName = "Del"
			break
		}

		return fmt.Sprintf("%s(%d) -> %d", opName, i.Key, o.Val)
	},
	DescribeState: func(state interface{}) string {
		s := state.(State)
		return fmt.Sprintf("%v", s.state)
	},
}

The problem is that Model.Step violates the contract that Step should be a pure function. (This isn't explained clearly in the docs, so I'll work on improving the documentation on this.)
Fixing that:
diff --git i/rwlock/model.go w/rwlock/model.go
index 29ca178..6eba91c 100644
--- i/rwlock/model.go
+++ w/rwlock/model.go
@@ -28,6 +28,15 @@ type State struct {
 	state map[int]int
 }

+func (st State) Clone() State {
+	var st2 State
+	st2.state = make(map[int]int)
+	for k, v := range st.state {
+		st2.state[k] = v
+	}
+	return st2
+}
+
 var Model = porcupine.Model{
 	Init: func() interface{} {
 		return State{
@@ -35,7 +44,7 @@ var Model = porcupine.Model{
 		}
 	},
 	Step: func(state interface{}, input interface{}, output interface{}) (bool, interface{}) {
-		s := state.(State)
+		s := state.(State).Clone()
 		i := input.(Input)
 		o := output.(Output)

Now, it seems to pass:
$ go test -v
=== RUN   TestHappyPath
--- PASS: TestHappyPath (0.00s)
=== RUN   TestMultiGoroutines
--- PASS: TestMultiGoroutines (3.34s)
PASS
ok      github.com/anishathalye/porcupine/rwlock        3.470s

I'm guessing that the borked visualization was due to the buggy Model.Step, but if you're still seeing buggy visualizations, please let me know, I would like to debug it.

Also, btw, you'll get much better perf by partitioning the linearizability check by key, and then having the (per-key) model be just a register (i.e., a single value), like this: https://github.com/anishathalye/porcupine/blob/7cbc8342681863b08e96432402d0588fc1defa88/porcupine_test.go#L1141

I updated the documentation for Model; happy to hear any improvements you can suggest to the wording.

I've done a first attempt at moving to generics and adding the state cloning in #12, let me know what you think.


Remove unnecessary module from API

Remove modules from export that are not directly related to the API.

:tada: This issue has been resolved in version 2.0.0-beta.2 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This issue has been resolved in version 2.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This issue has been resolved in version 1.0.0-beta.6 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


MultiKueue JobSet managed-by

What type of PR is this?
/kind feature

What this PR does / why we need it:
Add support for JobSet managed-by label.
Which issue(s) this PR fixes:

Fixes #693
Special notes for your reviewer:
Does this PR introduce a user-facing change?

Add MultiKueue support for  JobSet `managed-by` label.

/unhold

/unassign
@mimowo can you handle this one?

@mimowo can you handle this one?

I think extra approve will be needed for docs, but I can approve the rest.
/approve

/release-note-edit
MultiKueue: Add support for  JobSet  `spec.managedBy` field


Clarification on 1.8 to 1.10 Direct Upgrades Announcement

It was previously announced that Istio 1.8 to 1.10 direct upgrades were supported.  Can I take this to mean that similar scenarios such as upgrading from 1.10.x to 1.12.x are also supported using the same approach?  What about any arbitrary version newer than the version I currently have in production?  Perhaps with the stipulation that the cluster is on a supported version of K8s.

From https://istio.io/latest/docs/setup/upgrade/canary/:
When using revision-based upgrades jumping across two minor versions is supported (e.g. upgrading directly from version 1.8 to 1.10). This is in contrast to in-place upgrades where it is required to upgrade to each intermediate minor release.

Much appreciated!  I see that the docs were updated in the Istio 1.11.x release.


FIX: match all possible space separator to add quotes

closes #87
Matches all possible separator spaces to add quotes.
NB: seen in a dataset with Japanese character with an ideographic space (\u3000)

@mfeurer Can you have a look at this.

Looks good to me. I'd merge once the comment from @jnothman is resolved and the description is clearer. Also, could you please add yourself to the list of contributors?

Whoops! Done.

LGTM

But you might want to just add this to the features I've got proposed for 2.4 (#85, #91)


Add example demonstrating all source-map variants

What kind of change does this PR introduce?
Add example
Did you add tests for your changes?
n/a
If relevant, link to documentation update:
n/a (is part of documentation)
Summary
This increases the understanding of devtool/source-maps. Some relevant documentation issues: https://github.com/webpack/webpack.js.org/issues/273, https://github.com/webpack/webpack.js.org/issues/971
Does this PR introduce a breaking change?
No
Other information

Thanks


could you include the environment into aws-exports

Is your feature request related to a problem? Please describe.
We are using a different cognito user pool when using dev and prod, so I need to change the domain for cognito based on the environment.
Describe the solution you'd like
to have stateless code, I want to choose the domain based on the environment (basically is it prod or not)
Describe alternatives you've considered
using same userpool for prod&dev - don't want my customers to log into beta
Additional context
amonge the generated variables in aws-exports, please include the amplify environment (and while at it best also git describe - makes test results so much easier to handle)

@h0ru5 We are currently working on the hosted UI support as a part of the CLI which would enable you to specify the domain-name per env.

I like. would be great to have hosted UI in the CLI.

With our new version of the CLI (>1.4.0), we've introduced Hosted-UI/Outh flow as a part of the CLI flow. Please feel free to check it out and re-open/comment on this issue if you see a problem with it.


accessibility updates

Added some some a11y updates for screenreaders. I wasn't able to test locally because I don't have the envs, so they may need tweaking.

thank you!


Don't create check constraints for native database enums (PG)

Fixes #97
Merge after #96

@celluj34 here's a last PR for you :)

I don't use postgres, so I don't have much to contribute on this one! Everything looks fine to me - it seems like a fairly small change.

Thanks for taking a look.


Items can be seen by members of groups which have the permission to see this item

Fixes #87
Description (what might a PO or reviewer want to know?)
PR checklist

[ ] dev-branch has been merged into local branch to resolve conflicts
[ ] tests and linter have passed AFTER local merge
[x] localization is supported (Guide)
[ ] another dev reviewed and approved
[ ] if feature-Branch: Teams PO has approved (show via e.g. screenshots/screencapture/live demo)

Peek 2023-01-30 15-29.webm

Can I get a Video of what happens when I am allowed to See an Item so that u Show me I can See ot and then you have me the permission and the I lend it and the you revoke the permission and the I give it back and the I can See it

Works as expected:
Peek 2023-01-30 15-53.webm


markdown code-preview does not match text

Issue Type: Feature Request
When writing markdown with code sections, the sytax highlighting in the preview does not match the highlighting in the markdown-text. See attached screenshot.
float4 PSMain( float4 p : SV_POSITION ) : SV_TARGET
{
    float4 color = CalcColor();
    float rnd = tex.Load(noisetex, p.xy).x; //note: [0;1]
    rnd = remap_pdf_tri( rnd ); //note: [-1;1]
    return color + rnd/255.0; //8bit dithering
}

VS Code version: Code 1.42.0 (ae08d5460b5a45169385ff3fd44208f431992451, 2020-02-06T10:51:34.058Z)
OS version: Windows_NT x64 10.0.18363

Possible duplicate of #84572

Possible duplicate of #84572

That looks likely.
Before closing this with "as designed" and "you can make the preview match vscode", again: If the decision is to use highlight.js for the preview because that is the most accurate in most cases, then the textview should probably use that as well?

Highlight js is lightweight and used by many websites. It would not be appropriate to use in the main editor as it lacks a lot of functionality


Performance issue when throwing errors that have stackTraceLimit = 0

Describe the bug
When setting Error.stackTraceLimit = 0 in a custom error and throwing it inside a test, the time it takes for vitest to display the error is proportional to the size of the object passed (size of the message string).
In the example below, you can change the value of object size and see in the console that it takes more and more time to return. You can also comment the line Error.stackTraceLimit = 0 to see that the problem disappears.
On my machine, vitest just hangs after a certain size and I have to kill the process manually.
Note that I am using an external library that throws errors with a stackTraceLimit of 0, so I do not control this on my end.
Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-edo7vt?file=test%2Fbasic.test.ts
System Info
from stackblitz:
System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.20.3 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm
  npmPackages:
    @vitest/ui: latest => 1.6.0
    vite: latest => 5.3.3
    vitest: latest => 1.6.0

Used Package Manager
npm
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

regexr.com/82i8b
https://github.com/vitest-dev/vitest/blob/354fb9d994cdd7c52d34f21964b69756f2faecdf/packages/utils/src/source-map.ts#L90-L91

@AriPerkkio @userquin - how can we move forward with PR #6123?
I really appreciate your efforts trying to fix the problem 🙏 🙏


Public release version should be aligned with internal release versions

Tested versions
4.4 public release
System information
Windows 11
Issue description
Currently the version displayed in the editor is 4.4 dev whereas in the release we have said public beta.
This needs to be fixed as both needs to be same.
Additionally, all the executables should have version number with build version in their name
Steps to reproduce
Open release notes -> Public Release 4.4 Beta - https://github.com/Redot-Engine/redot-engine/releases/tag/2024101114
Open the editor it says 4.4 dev
Minimal reproduction project (MRP)
N.A

Yeah I'm on it

This requires a bit more overhaul to building releases, should be corrected soon.


Add CapacityBasedDeterministicHashPolicy

What changes are proposed in this pull request?
Add a new block location policy CapacityBaseDeterministicHashPolicy.
Why are the changes needed?
We want a CapacityBaseRandomPolicy that is deterministic.
See also #16187.
Does this PR introduce any user facing changes?
Yes, a new block location policy is available for config item alluxio.user.ufs.block.read.location.policy and alluxio.user.block.write.location.policy.class.

https://github.com/Alluxio/alluxio/blob/da543a5b604cae9703d55dad4102996ab685c3b1/core/client/fs/src/main/java/alluxio/client/block/policy/DeterministicHashPolicy.java#L62-L66
DeterministicHashPolicy supports a num of shard config. I'm not sure if CapacityBasedDeterministicHashPolicy should do the same.
@maobaolong @dengweisysu could you please shed some light on your cases, e.g. how many number of shards you use for DeterministicHashPolicy, and if CapacityBasedDeterministicHashPolicy should support more than one shard (the current impl is equivalent to 1 shard)?

https://github.com/Alluxio/alluxio/blob/da543a5b604cae9703d55dad4102996ab685c3b1/core/client/fs/src/main/java/alluxio/client/block/policy/DeterministicHashPolicy.java#L62-L66
DeterministicHashPolicy supports a num of shard config. I'm not sure if CapacityBasedDeterministicHashPolicy should do the same.
@maobaolong @dengweisysu could you please shed some light on your cases, e.g. how many number of shards you use for DeterministicHashPolicy, and if CapacityBasedDeterministicHashPolicy should support more than one shard (the current impl is equivalent to 1 shard)?

@dbw9580 @maobaolong I suggest to support multi shards in CapacityBasedDeterministicHashPolicy, because one shard may result in IO bottleneck in highly concurrency. And background job can't ensure consistent  distribution  of replication with this policy forever.

alluxio-bot, merge this please


utcOffset parses a phantom zone from an ISO8601 string without an offset

moment('2015-01-01T00:00:00').utcOffset('2015-01-01T00:00:00').format()
returns:
2014-12-31T12:00:00-01:00
See the jsfiddle:
https://jsfiddle.net/aa25w17t/
-01:00 is not my time zone (it's +11:00), it appears to be parsing that from the date.  For example, if I change 2015-01-01 to 2015-01-02, the offset changes to -02:00
Also, moment.parseZone('2015-01-01T00:00:00').format(), which the docs say should be equivalent, returns the expected result (2015-01-01T00:00:00Z).
Environment:
console.log( (new Date()).toString()) -> "Fri Mar 31 2017 15:46:47 GMT+1100 (AUS Eastern Daylight Time)"
console.log((new Date()).toLocaleString()) -> "3/31/2017, 3:46:47 PM"
console.log( (new Date()).getTimezoneOffset()) -> "-660"
console.log( navigator.userAgent) -> "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36"
console.log(moment.version) -> "2.18.1"

Looks like a bug to me. utcOffset() isn't handling the absence of zone information right. I suspect you're right about it just finding something offset-looking anywhere in the string. I personally think it's a little silly to allow utcOffset() to take in whole ISO strings like that, but that's what the API is, so we should make it work.

parseZone isn't doing this correctly either.

UTCOffset will try finding a short-offset ([+-]\d\d with optional :\d\d) (which sadly catches on some days, like '-01' and so on.
parseZone will try finding a long-offset ([+-]\d\d:?\d\d), othewise defaults to Z.

So, if you change the parsing string, parseZone will always go to Z, but UTCoffset catches on random days.
I'm not sure what the best way forward is @icambron

Similar issue when initialising.
If it is the same, I wonder if offset parsing can be done on remaining string not already "consumed/parsed" by date and time.
Welcome to Node.js v12.17.0.
Type ".help" for more information.
> const moment = require('moment')
undefined
> moment('2020-03-28 20:00')
Moment<2020-03-28T20:00:00+00:00>   <--- Expected +01:00 (my default tz)
> moment('2020-03-29 20:00')
Moment<2020-03-29T20:00:00+01:00>   <--- Correct
> moment.version
'2.27.0'

I've updated the documentation, but i don't think we should change the functionality. The string can be a shortOffset, so ISO8601 dates without offsets will parse incorrectly.


Python port

Hi! i created a Python port of this project, see https://github.com/Salamek/cron-descriptor
Just letting you know ...
+ There is Czech translation (cs_CZ), but i'm using gettext so if you want to use it, you need to convert cs_CZ.po file to resx.
Just reverse what this conversion script is doing https://github.com/Salamek/cron-descriptor/blob/master/tools/resx2po.py

Awesome -- thanks!


The packaged Vue3 component props. ts cannot call the props. ts type properly

Environment
os: Ubuntu 22.04
node: v20.17.0
vue: 3.4.37
unbuild: 2.0.0
Reproduction
git
docs
Describe the bug

The packaged Vue3 component props. ts cannot call the props. ts type properly
I don't know why the components encapsulated in dist compiled from docs can still be used normally
Uncaught SyntaxError: The requested module<EMAIL_ADDRESS>does not provide an export named 'ProBaseFormColumn' (at ProBaseForm.vue:3:28)

In reality, I is exporting ProBaseForm (ProBaseForm/props.ts)[https://github.com/InfernalAzazel/k-naiveui-pro/blob/main/packages/k-naiveui-pro/src/components/ProBaseForm/props.ts]

import type { FormProps} from 'naive-ui'
import type { VNode } from 'vue';

export interface ProBaseFormColumn {
  label: string
  prop: string
  component: string | VNode
  props?: Record<string, any>
  span?: number
  show?: boolean

}

export interface ProBaseFormProps extends  /* @vue-ignore */ FormProps {
  columns: ProBaseFormColumn[],
  cols?: number
  xGap?: number
  yGap?: number
  columnsSpan?: number
  footerSpan?: number
  collapsed?: boolean
  collapsedRows?: number
}

This is my packaging configuration
import { defineBuildConfig } from 'unbuild'
export default defineBuildConfig({

  entries: [
    { builder: 'mkdist', input: './src', pattern: ['**/*.vue'], loaders: ['vue'] },
    { builder: 'mkdist', input: './src', pattern: ['**/*.ts'], format: 'cjs', loaders: ['js'] },
    { builder: 'mkdist', input: './src', pattern: ['**/*.ts'], format: 'esm', loaders: ['js'] },
  ],
  declaration: true,
  clean: true,
  // externals: [
  //   'vue',
  //   'naive-ui',
  //   'unplugin-vue-components',
  // ],
})

Additional context

pnpm docs:dev (Exception occurred)

2.Compile dist and upload it to GitHub page(natural)

Logs
Uncaught SyntaxError: The requested module<EMAIL_ADDRESS>does not provide an export named 'ProBaseFormColumn' (at ProBaseForm.vue:3:28)

<script setup> are closed, it means your type export would not work as you want.
move them to a non-setup script could fix it.
<script lang="ts">
export interface xxx {}
</script>


[opentitantool] Implement image digest command

Implementation for the opentitantool image digest command. Given an input image this command will produce a digest for the signed region of that image.

@cfrantz I think this also suffers from the issue I pointed out earlier with bigint if the MSB of the digest is 0. I'm going to drop the usage of bigint in this case.


unit converter

Describe the project you want to add with tech stack

Hi Sir,
This is the project where I have made a basic unit converter(feet-inches) with the help of HTML , CSS & JS. Please assign me this issue under GSSoc'23.
Expected behavior

This is the project where I have made a basic unit converter(feet-inches) with the help of HTML , CSS & JS
Screenshots (optional)

Additional context (optional )

Sir please assign me the issue.


Missing packages to pip install PyOpenSSL

Thanks for the great project, I've been working a few weeks attempting to get a working k8s cluster on my Pis, and I've had the most success with this project!
I did however run into a couple of missing dev packages on the latest stretch-lite image. Specifically, libffi-dev and libssl-dev were missing.
Opening issue, PR will follow.

Fixed via above PR. Confirmed that entire playbook runs on a fresh set of Pis!


Get "Default font" working again with chart.js 3.0.2

Get "Default font" working again with chart.js 3.0.2
Do the necessary changes in coding to meet the new specification

Published with pre-release 3.15.03


Author and Company name information like xCode default

Hi thanks for adding Author support It works great. but can you make header just like any other xCode generated file as shown below
//
//  Filename
//  Application Name
//
//  Created by Author on 17/12/14.
//  Copyright (c) 2014 Company Name. All rights reserved.
//
Can you make all these Application Name, Author and Company Name configurable?

Done in 0.2.5 @iamabhiee


Typed channel api proposal

Following up discussions in #5402, this a proposal for what a typed channel api could look like. Communication via channel is core to the storybook architecture. Adding type safety should help prevent bugs and help improve code discovery for new contributors.

@benoitdion why did u close?

this was more of a proposal/design doc than something ready to be merged. We can keep open for reference until one of us gets a chance to work on this if you think that's useful though.


switch to info level

What's the purpose of this PR
XXXXX
Which issue(s) this PR fixes:
Fixes #
Brief changelog
XXXXX
Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Read the Contributing Guide before making this pull request.
[ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[ ] Write necessary unit tests to verify the code.
[ ] Run mvn clean test to make sure this pull request doesn't break anything.
[ ] Update the CHANGES log.

@nobodyiam can we make this change?
since k8s is popular today, meta service is optional

Codecov Report

Merging #3884 (703004c) into master (2c9b4dc) will increase coverage by 0.01%.
The diff coverage is 100.00%.

:exclamation: Current head 703004c differs from pull request most recent head 6d9a063. Consider uploading reports for the commit 6d9a063 to get more accurate results

@@             Coverage Diff              @@
##             master    #3884      +/-   ##
============================================
+ Coverage     50.13%   50.14%   +0.01%
- Complexity     2477     2478       +1
============================================
  Files           485      485
  Lines         14983    14983
  Branches       1532     1532
============================================
+ Hits           7511     7513       +2
+ Misses         6939     6938       -1
+ Partials        533      532       -1

Impacted Files
Coverage Δ

...amework/apollo/internals/ConfigServiceLocator.java
87.27% <100.00%> (ø)

.../apollo/internals/RemoteConfigLongPollService.java
78.31% <0.00%> (+1.20%)
:arrow_up:

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 2c9b4dc...6d9a063. Read the comment docs.

I think we can either change it to info or leave it as warning, but what's the problem to leave to as warning?

I think we can either change it to info or leave it as warning, but what's the problem to leave to as warning?

It always show warning when starting project, it is annoying

since k8s is popular today, meta service is optional

Currently we provide 2 ways to deploy apollo in k8s, one is based on native k8s service discovery and another is based on eureka service discovery. Both ways still use meta service to locate the config services, which avoids the use of specifying config services directly and we believe this is the preferred way.
What's the use in your side?

since k8s is popular today, meta service is optional

Currently we provide 2 ways to deploy apollo in k8s, one is based on native k8s service discovery and another is based on eureka service discovery. Both ways still use meta service to locate the config services, which avoids the use of specifying config services directly and we believe this is the preferred way.
What's the use in your side?

In k8s, maybe it is better to use config-service directly, we can define one k8s service url as config-service, this k8s service can point to multiple real config service  pod, maybe there is no need to use meta service. the k8s service is better? @nobodyiam

since k8s is popular today, meta service is optional

Currently we provide 2 ways to deploy apollo in k8s, one is based on native k8s service discovery and another is based on eureka service discovery. Both ways still use meta service to locate the config services, which avoids the use of specifying config services directly and we believe this is the preferred way.
What's the use in your side?

In k8s, maybe it is better to use config-service directly, we can define one k8s service url as config-service, this k8s service can point to multiple real config service pod, maybe there is no need to use meta service. the k8s service is better? @nobodyiam

You are right, and for native k8s service discovery, the meta service will return the service which point to multiple real config service pods. It's the same effect as you specify config service directly but we think it's better to keep the pattern with meta services, you may refer #3054 for more information.

since k8s is popular today, meta service is optional

Currently we provide 2 ways to deploy apollo in k8s, one is based on native k8s service discovery and another is based on eureka service discovery. Both ways still use meta service to locate the config services, which avoids the use of specifying config services directly and we believe this is the preferred way.
What's the use in your side?

In k8s, maybe it is better to use config-service directly, we can define one k8s service url as config-service, this k8s service can point to multiple real config service pod, maybe there is no need to use meta service. the k8s service is better? @nobodyiam

You are right, and for native k8s service discovery, the meta service will return the service which point to multiple real config service pods. It's the same effect as you specify config service directly but we think it's better to keep the pattern with meta services, you may refer #3054 for more information.

Thanks for the link, it seems that in order to reduce the impact to the client and portal, so the meta service kept.
But IMO, for the client side, since we can specify config service url separately, it is much better, because we can use the k8s native service discovery, and the client do not need to start new thread to refresh config service.
@nobodyiam

I think your comment make sense in the context of using kubernetes native service discovery. As 1.9.0 is under release vote, let's hold this pr for a little longer.


Fix "Rubberband:50: bad argument #1 to 'pointToObjectSpace' (Vector3 expected, got CFrame)"

There was a minor, but pretty severe problem with findPartsInSelection.
If there was a Tool in the Workspace with a Handle in it, no parts could be highlighted because findFirstCFrame wasn't being converted to a Vector3, and therefore pointToObjectSpace would fail.

fixed from other pull request


[SD-App] please add kasanetarium's M5StackPlot

https://github.com/kasanetarium/M5StackPlot

The app has been scheduled for rebuild

Compilation of this package failed, it has been labeled as invalid until the source of the problem is identified and addressed


database/sql: in 1.8 fails to scan values in custom types, whose underlying types can be handled.

Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
go version go1.8rc3 linux/amd64
What operating system and processor architecture are you using (go env)?
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/urandom/.go"
GORACE=""
GOROOT="/opt/go"
GOTOOLDIR="/opt/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build831291172=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
What did you do?
Consider the following playground: https://play.golang.org/p/5Dsys1-OJv
Using postgresl with lib/pq, the login variable l remains black
What did you expect to see?
In 1.7, the login variable is filled correctly, since Scan knows how to treat its underlying type.
What did you see instead?
The login variable stays blank, and there is no error.

After another test on 1.7, it seems that this behavior wasn't supported there as well


Update init.py

Using OSFS.getsyspath("/diseño/test123") causes problems.
Here is a partial stack trace:
File "/usr/local/smartfile/virtualenv/lib/python2.7/site-packages/fs/osfs/__init__.py", line 246, in exists
   return _exists(self.getsyspath(path))
 File "/usr/local/smartfile/virtualenv/lib/python2.7/site-packages/fs/osfs/__init__.py", line 167, in getsyspath
   path = relpath(normpath(path)).replace(u"/", os.sep)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 21: ordinal not in range(128)

Hopefully this pull request resolves this issue

Is that a str on Python2.7?
That method takes FS paths, which should always be unicode. The fix may be to raise an error if its a bytes string.

Good call. Yes it is a str on Python2.7.

Are you suggesting adding assertions to all methods to check paths are unicode?

I think this is resolved. Close it?
Ping @lurch

This hasn't been resolved. "The fix may be to raise an error if its a bytes string."
But if you want to create an issue instead @arekbulski (which would be more appropriate) then I'll close this PR (which contains an invalid fix).

Going to close this one. Its a valid point though. fs2 it will raise an exception for any path that isn't unicode. I'd consider backporting it if there is demand...


up/down arrow history doesn't work on pipenv shell on windows

In the cmd shell, usually you can hit 'up arrow' to get your previous command.
This bug was filed in pipenv issue tracker. According to @erinxocon this is a pew bug.

Indeed!  Don't know the cause, I do believe the bug is pew!

It's a virtualenv issue, already reported
https://github.com/berdario/pew/issues/90
Sorry  :/

This is not the same issue as the virtualenv issue. That's for the python3 interpreter and it has to do with locating the history file for the python interactive shell.
This is for the windows console specifically. Note that things work when using 'conemu' instead of just 'cmd'. See details in  #166

The issue is that the windows console does not interpret the 'arrow keys' as ansi codes, like unix terminals, but rather as virtual keystrokes. The virtual keystrokes are captured by the parent process, and not translated into ansi codes or passed through to the child process windows event loop. The only way to do this is with a windows event hook dll, which translates the virtual keystrokes from the parent console and passes them to the child process event loop. This is what conemu is doing, and every similar subshell under Win32 would have to do. I'm not suggesting this is worth anyone's time, since the workaround (using conemu) is possibly acceptable.
That said, I'm not sure you'd even want this fix if i were to write it. It would involve compiling a binary that gets injected into every window on the system, which is what conemu is doing. One might be able to do it in a less invasive fashion, but it would be some pretty deep win32. I'm willing to give it a shot at some point, unless someone here really wants a go at it.

Okay, some color on this: There may be a simpler way to fix this.
There's a problem with the generated 'pew.exe' that gets created by setuptools or whatever. Something that executable is doing to launch python is doing so in a manner that is probably piping the stdin/stdout handles or something. Directly executing the process from pew in python without using the 'pew.exe' does what you'd expect:
python -c "from pew import pew; pew.pew()" in <yourvirtualenv> cmd

If you do the above, arrow keys work in cmd.

Apologies, I was too eager to close the ticket and didn't realize it was actually a different issue
The fact that setuptools would cause the issue could explain why I haven't seen it before while developing.
Is this affecting only cmd.exe or powershell as well?
I don't use Windows day to day, so I haven't tested this first hand,yet... And I don't have plans to fix it  with an invasive dll as in your first suggestion

I've tested @crioux work around and it indeed works! :smiley: :tada:
@berdario I've tested in powershell and the problem does not occur there. It's only a problem in cmd.exe it appears.

Yea, I'm looking into setuptools and working this bug through, I'll let you know what I find.

Any news or other workarounds on this issue? I just want to ask before I spend an evening on some wobbly temp solution based on the above info, to allow me to work in the vscode integrated terminal. Thanks!

I haven't had much time to look into it. I got around it by using ConEmu and my desire to fix it some other was has waned :|

@crioux's workaround doesn't work for me. I just get a list of available commands.
I'm using cmd.exe on Windows 10, with pew 1.1.2 installed in my pipenv virtualenv.

@crioux's workaround doesn't work for me. I just get a list of available commands.
I'm using cmd.exe on Windows 10, with pew 1.1.2 installed in my pipenv virtualenv.

I have the same setup as @eli-b, can confirm I get the same results

It's interesting to note that using the virtualenv-wrapper for windows that workon <env> works as expected from CMD. I suspect its working differently... maybe that method could be adopted by pew or uplevel dependencies aka pipenv could replace pew with that method since they're waiting on a fix from pew. cc: @kennethreitz and @nateprewitt

what is required to fix this?

I'm not sure. I can just add that using the command python -m pew in <yourvirtualenv> cmd works as well.
So it seems that this has something to do with using the pew.exe file.

I think the issue might be that in using Virtualenv specifically Virtualenvwrapper-win the current shell is being modified, it's not launching a new shell.
Example
workon <envionment>
https://github.com/davidmarble/virtualenvwrapper-win/blob/master/scripts/workon.bat
Calls activate <envionment>
https://github.com/pypa/virtualenv/blob/master/virtualenv_embedded/activate.bat
I hope that helps

Found this issue since it is related to the problem I'm facin, so decided to post here, despite the fact it is 2 years old.
The issue is that when I use python interactive console on windows 10 in pipenv, I have no history, so no up and down arrows work.
There is mentioned that pipenv won't use pew anymore, but still, if somebody knows how to handle this issue, I would be much obliged if you help me.
And again: the issue is as described in this thread: pipenv, windows 10, interactive python console, it doesn't save history, so up and down arrows doesn't work. Asking anybody who could help to resolve this issue.

There's a problem with the generated 'pew.exe' that gets created by setuptools or whatever. Something that executable is doing to launch python is doing so in a manner that is probably piping the stdin/stdout handles or something.

The code used by the wrappers generated by pip comes from distlib (and via that, from simple_launcher - the relevant bit is here). There's some code in there that ensures the child behaves correctly - maybe something more is needed for history?
If I'm correct, then the issue should probably be raised against that project, but it stands a better chance of being fixed if someone can produce a smaller test case (i.e., something that doesn't need all of pew to reproduce).


[homework]  Reading & experience report

Asking

[x] Ask ChatGPT for help completing this homework

Feeling, Writing, Thinking

[ ] Post an experience report (a paragraph or several) as a comment on this issue. This experience report should convey what motivates you to understand and practice data thinking. An experience report may describe a collection of experiences (which may or may not relate to data), and some questions to consider may be helpful: What were you or those involved feeling? Doing? Thinking? Asking? Where were they? What systems were involved, if any? Who would you want to better understand the incentives at play?

if you are stuck, ask for help on Zulip, come to office hours, make a plan of tasks to do and ask for feedback on the plan
try using dictation on iPhone, Android, computer, and ask ChatGPT to summarize it
ask Lex for ideas or ChatGPT for ideas
edit using https://hemingwayapp.com/, Grammarly, or any other tool to help
read the below articles for ideas

Doing

[x] Review the first class: https://panopto.ut.ee/Panopto/Pages/Sessions/List.aspx?folderID=43bb180c-79a6-4324-b055-afa400ecd1a0 - ask on Zulip if you can't access this
[x] Review the Figma whiteboard from the first class: https://www.figma.com/file/SsoNLhaZwnSGkADd4eS0D8/230220-introduction?node-id=0%3A1&t=jR2hISrDchAPapYR-1
[x] Create a LinkedIn profile. (If you are not comfortable using your real name, feel free to use a fake name + email)
[x] Post your LinkedIn profile on Zulip -- Zulip is open source and enables us to analyze our chat messages with natural language processing tools such as ChatGPT, which we will do later in the course!
[x] Read https://matt.might.net/articles/how-to-email/ to understand principles of communication over email or Zulip
[x] Read parts of the Mailchimp Style Guide (https://styleguide.mailchimp.com/voice-and-tone/ or https://styleguide.mailchimp.com/writing-principles/) to understand how written communication can be guided by principles
[x] Read https://georgesaunders.substack.com/p/on-worry to understand a professional writer's perspective on writing.
[ ] Read https://every.to/chain-of-thought/writing-essays-with-ai-a-guide to understand how to use voice recording, dictation on your smartphone or computer, and ChatGPT, and Lex to help you write
[x] Read https://simonwillison.net/2022/Dec/5/rust-chatgpt-copilot/ to understand how ChatGPT and CoPilot can help you learn data thinking, programming, and statistics skills
[x] Read http://web.archive.org/web/20170208134519/http://storyshots.tumblr.com/post/25032057278/22-storybasics-ive-picked-up-in-my-time-at-pixar -- especially the "Once upon a time" story telling framework Pixar used for its movies.
[x] Read https://www.newyorker.com/magazine/2023/02/13/the-dubious-rise-of-impostor-syndrome to help understand concepts that can increase our psychological safety and trust in class and how asking ChatGPT can help reduce our fear of asking for help when stuck.
[ ] Read https://jaan.io/my-friend-radicalized-this-made-me-rethink-how-i-build-AI/ to learn about my journey in understanding the incentives that can affect our thoughts, feelings, and actions in society and the incentives that affect how AI such as ChatGPT is built.

Programming & Infrastructure

[x] Create a GitHub Codespace using the data thinking template here (from https://github.com/onefact/datathinking.org-codespace)
[x] Send a screenshot to Zulip of a plot you made in the GitHub codespace (of any dataset or data you generated as in the live coding demo from the first lecture; ask for help if this is unclear)
[ ] Sign up for Lex - message Jaan on Zulip for an invite code
[x] Sign up for Figma as a student (https://www.figma.com/education/students/)
[x] Install copyq on Windows Powershell or Linux using Chocolatey, or install Maccy on Mac using Homebrew. This will save you a lot of time throughout the class as you copy and paste things from ChatGPT!

Experience report:
I'm interested in learning about data thinking because I feel that there's so much data out there, but a lot of it isn't useful or reliable. With the rise of AI and natural language processing models, it's becoming even harder to discern what information is factual and what isn't. In the past, there has already been a lot of misinformation and politically biased articles, which made it difficult to get objective information even without the generative models adding to it. Even worse, news websites often prioritize clicks over providing accurate, useful information, leading to clickbait articles that waste people's time. I'm especially worried about people who aren't as tech-savvy and don't know to be careful with this new technology.
However, I'm not entirely pessimistic. I think there's a lot of potential for these models to improve the quality of life and make things safer for everyone. I want to learn how to use data thinking to sort through the overwhelming amount of data out there and find useful reliable information. I'm concerned about job loss and what data generation could do for a society that is already suffering from doomscrolling, but I think that if we approach these new technologies with a positive outlook, and learn how to use them wisely, we can find ways to use them to benefit everyone. Overall, I'm hoping that by learning about data thinking, I can be a part of creating a more positive future with these new technologies, if not for everyone, then at least for me and people I'm close to.


Some background images missing in generated PDF using Edge browser!

Hello,
I am using html2pdf js to convert HTML document to pdf, it includes some background images as well, but after converting to pdf that pdf document has some missing background images, but this only happens when we download pdf through MS Edge browser, all other browsers background images working fine, Any solution for that issue? really appreciate your guidance to fix this issue,
expected result

Edge browser result

//options code
var opt = {
margin:       0.2,
filename:     'sample.pdf',
image:        { type: 'png', quality: 0.95 },
html2canvas:  { scale: 2, useCORS: true  },
jsPDF:        { unit: 'in', format: 'A4', orientation: 'portrait' },
pagebreak: 	{ mode: ['avoid-all', 'css', 'legacy'] }
};
stay safe out there with this covid19 situation! hope it all turns out well!
Thank you

@dslas4ever I'm not the maintainer here, but I suspect your issue may have something to do with html2canvas, which this project heavily depends on, there are some issues related to rendering background images on edge there, I'd recommend you to check those out and see if any of those helps you.
Some potentially related issues are:
https://github.com/niklasvh/html2canvas/issues/1688
https://github.com/niklasvh/html2canvas/issues/2167
Also the page with the list of issues filtered by "edge" https://github.com/niklasvh/html2canvas/issues?q=is%3Aissue+is%3Aopen+edge
If nothing works for you I recommend you opening a new issue there too. And if something works close this one pointing to the related solution :)

@dslas4ever I'm not the maintainer here, but I suspect your issue may have something to do with html2canvas, which this project heavily depends on, there are some issues related to rendering background images on edge there, I'd recommend you to check those out and see if any of those helps you.
Some potentially related issues are:
niklasvh/html2canvas#1688
niklasvh/html2canvas#2167
Also the page with the list of issues filtered by "edge" https://github.com/niklasvh/html2canvas/issues?q=is%3Aissue+is%3Aopen+edge
If nothing works for you I recommend you opening a new issue there too. And if something works close this one pointing to the related solution :)

Thanks a lot for your reply @gabriel-felipe , I will follow that! cheers!


'FastAPIUsers' object has no attribute 'get_verify_router'

Hello,
I copied the SQLAlchemy "full example" and fails with this error:
AttributeError: 'FastAPIUsers' object has no attribute 'get_verify_router'
Any ideas what i'm doing wrong?
Thanks

I had an outdated version of the module, sorry.

I had an outdated version of the module, sorry.


Added purescript interop libraries

Duplicate of #1845?

No - not a duplicate. I made the libraries work with ghc-8, so this PR is for master.

Could you please include your github id in your PR?

Uh! Sorry about that! I already wondered why one puts the email address in but not the github id - well you do, I just somehow missed that. Thanks - should be fixed now!

Thanks!

Unfortunately there is a haddock problem with servant-subscriber-<IP_ADDRESS>: reported in eskimor/servant-subscriber#9

Sorry - I'll fix it today!

Thanks


Set notifications for Discord does not work

I tried to set up the notifications for Discord for Untis.
The notifications with the notify works with the target of my Discord channel ID. Tested it with a test message using the developer tools in HomeAssistant. That means the notifier works and can send messages in Discord.
But now I have the problem that the Untis extension gives me the following error:
Logger: homeassistant.components.discord.notify
Source: components/discord/notify.py:124
Integration: Discord
First occurred: 07:56:01 (1 occurrences)
Last logged: 07:56:01
No target specified
And another error:
Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht
Logger: homeassistant
Source: custom_components/webuntis/notify.py:88
Integration: Web Untis (documentation, issues)
First occurred: 09:06:01 (20 occurrences)
Last logged: 10:41:01
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/config/custom_components/webuntis/init.py", line 206, in async_update
await self._async_status_request()
File "/config/custom_components/webuntis/init.py", line 353, in _async_status_request
await self.update_notify()
File "/config/custom_components/webuntis/init.py", line 910, in update_notify
notifications = get_notification(updated_items, self.notify_list)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/webuntis/notify.py", line 88, in get_notification
message += f"Change (Room): {lesson_old['rooms'][0]['name']} -> {lesson['rooms'][0]['name']}"
~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range
I do not know what exactly the problem is.
Übersetzt mit DeepL (https://www.deepl.com/app/?utm_source=ios&utm_medium=app&utm_campaign=share-translation)

fixed bug
should be working in next version
#94


Use isContract from openzeppelin's Address library

Let's remove the _isContract internal function and use the Address library which is already included in SafeERC20. Example:
    ...
    using Address for address;
    ...
    _to.isContract()
    ....

Fixed in https://github.com/poanetwork/dpos-token/commit/cd45649db324b6529b77fdfbaca7a60b4bf6a4ec


Cron is always in UTC

Hi,
thanks for great tool but I found out there is a small problem with setting cron expressions. I'm in UTC+2h and have set the backup to run at 4 AM.
I've also set up Influx metrics and found out that it actually runs at 6 AM instead of 4 AM. Timestamps of created backups confirm it's 6 AM.
After a while I've figured out that the container is running always in UTC timezone (looks like it's a Docker default - my other containers run on UTC as well). Not a big deal for people in Europe but imagine someone in Australia thinking his backups are created at night while in fact they are created in the middle of the day.
Anyone got the same? (see the results of  docker exec -it <container_name> date command)

All right... I digged a little and found the easiest solution possible.
It's just the matter of setting TZ environment variable to your timezone.
Command line:
docker run -e TZ=America/New_York [...]
Docker compose:
environment:
      TZ: Europe/Warsaw

You can get the list of available timezones here

This indeed should be included in the README, thanks a lot!


Add WebRTC Test client and Test case

WebRTC Test client implementation for testing cameras.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Vishnu Kavali seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


bug_fix_gzip: skip compression when accept-encoding in not present in the request headers

Description: This PR fixes https://github.com/envoyproxy/envoy/issues/2855. Before this change, gzip filter was compressing content even when accept-encoding was not present in the request headers.
Risk Level: Low
Testing: unit test
Signed-off-by: Gabriel<EMAIL_ADDRESS>

LGTM. Does this warrant a release note for v1.7.0 since it changes observable behavior?
The build failures all seem to be Circle CI having an outage. Once it's passed, you might have to push something, like a fresh merge from master, to get it to try again.

@zuercher I can add a short description of this bug fix in the release notes if it is really necessary. I'll keep my eyes on the CI. Thanks!

They claim it's fixed now.

@zuercher @danielhochman Thank you for the review. Please, feel free to take another look.
Quick question: Should I add the release note in here?
https://github.com/envoyproxy/data-plane-api/blob/master/docs/root/intro/version_history.rst

No problem, thank you for reviewing it.

Wow, thanks for jumping on this everyone!

@joshuarubin Thanks for reporting it. Would you mind to try it again? Thanks!

I can confirm it works for me

Thank you! Please, feel free to ping me if you find anything else.

Shouldn't this trigger a minor release/patch?
1.6.0 release is bugged and this might affect quite a number of http clients not handling decompression (as they are expecting uncompressed "identity" payload).


Silence GCC -Wsign-conversion when using CYTHON_LIMITED_API

Running
$ export CFLAGS='-O0 -Wp,-U_FORTIFY_SOURCE -Wconversion -DCYTHON_LIMITED_API=0x030B0000'
$ make

no longer generates any -W[sign-]conversion warning.
However, the -DCYTHON_LIMITED_API=0x030B0000 define triggers the following unused warnings.

‘__Pyx_GetVtable’ defined but not used [-Werror=unused-function]
‘__Pyx__CallUnboundCMethod0’ defined but not used [-Werror=unused-function]
‘__pyx_doc_6Cython_4Plex_8Scanners_7Scanner___init__’ defined but not used [-Wunused-const-variable=]

Addressing these warnings should be a matter of another PR, I don't have time to work on it right now.

triggers the following unused warnings

There are certainly worse problems with the limited API support currently than the inclusion of unused utility functions.


Uncaught Error: Class 'Representation' -> addRepresentation Function

Hi,
I'm getting error when i try different representation add. My PHP Version is 7.3.8. I tried with different php versions but still same. Can you please check?
Here is my code,
`
require_once 'assets/vendor/autoload.php';
$config = [
'ffmpeg.binaries'  => 'assets/extentions/FFmpeg/bin/ffmpeg.exe',
'ffprobe.binaries' => 'assets/extentions/FFmpeg/bin/ffprobe.exe',
'timeout'          => 3600, // The timeout for the underlying process
'ffmpeg.threads'   => 12,   // The number of threads that FFMpeg should use
];
$format = new Streaming\Format\X264();
$format->on('progress', function ($video, $format, $percentage) {
echo "$percentage% is transcoded\n";
});
$rep_1 = (new Representation())->setKiloBitrate(1000)->setResize(1080 , 720);
$rep_2 = (new Representation())->setKiloBitrate(500)->setResize(640 , 360);
$rep_3 = (new Representation())->setKiloBitrate(200)->setResize(480 , 270);
$ffmpeg = Streaming\FFMpeg::create($config)
->open('short.mp4') // the path to the video
->HLS()
->addRepresentation($rep_1) // Add a representation
->addRepresentation($rep_2) // Add a representation
->addRepresentation($rep_3) // Add a representation
->setHlsTime(20)
->setFormat($format)
->setHlsAllowCache(false)
->save();
`
Error Message,
Fatal error: Uncaught Error: Class 'Representation' not found in

Thank you for your reporting.
I have just fixed the bug and now you need to update the package:
composer update aminyazdanpanah/php-ffmpeg-video-streaming

Also, you must set format first and use full namespace of Streaming\Representation (or you can use it in your script):
use Streaming\Representation;

Try the code below:
require_once 'assets/vendor/autoload.php';

use Streaming\Representation;

$config = [
    'ffmpeg.binaries' => 'assets/extentions/FFmpeg/bin/ffmpeg.exe',
    'ffprobe.binaries' => 'assets/extentions/FFmpeg/bin/ffprobe.exe',
    'timeout' => 3600, // The timeout for the underlying process
    'ffmpeg.threads' => 12, // The number of threads that FFMpeg should use
];

$format = new Streaming\Format\X264();
$format->on('progress', function ($video, $format, $percentage) {
    echo "$percentage% is transcoded\n";
});

$rep_1 = (new Representation())->setKiloBitrate(1000)->setResize(1080, 720);
$rep_2 = (new Representation())->setKiloBitrate(500)->setResize(640, 360);
$rep_3 = (new Representation())->setKiloBitrate(200)->setResize(480, 270);

$ffmpeg = Streaming\FFMpeg::create($config)
    ->open('short.mp4')// the path to the video
    ->HLS()
    ->setFormat($format)
    ->addRepresentation($rep_1)// Add a representation
    ->addRepresentation($rep_2)// Add a representation
    ->addRepresentation($rep_3)// Add a representation
    ->setHlsTime(20)
    ->setHlsAllowCache(false)
    ->save();

Thank you for quick response, it's working great now!

Hi Amin,
Sorry my bad, i had tried again with autoRepresentation, i just noticed, it has still issue with custom presentation.
New error,
Fatal error: Uncaught Streaming\Exception\Exception: Format has not been set in E:\AppServ\htdocs\test\ffmpeg\vendor\aminyazdanpanah\php-ffmpeg-video-streaming\src\Traits\Representation.php:31 Stack trace: #0 E:\AppServ\htdocs\test\ffmpeg\index.php(29): Streaming\HLS->addRepresentation(Object(Streaming\Representation)) #1 {main} thrown in E:\AppServ\htdocs\test\ffmpeg\vendor\aminyazdanpanah\php-ffmpeg-video-streaming\src\Traits\Representation.php on line 31

First, you must add the  setFormat() method (or you can use X264(), HEVC(), VP9() alternatively) to the object, then you can add representations.
Try the code below:
require_once 'assets/vendor/autoload.php';

$config = [
    'ffmpeg.binaries' => 'assets/extentions/FFmpeg/bin/ffmpeg.exe',
    'ffprobe.binaries' => 'assets/extentions/FFmpeg/bin/ffprobe.exe',
    'timeout' => 3600, // The timeout for the underlying process
    'ffmpeg.threads' => 12, // The number of threads that FFMpeg should use
];

$ffmpeg = Streaming\FFMpeg::create($config)
    ->open('short.mp4')
    ->X264() // first set the format
    ->autoGenerateRepresentations() // then add representations
    ->save();

It worked when i move format line before addRepresentation, thank you!


Num pad numbers do not trigger PUGL_TEXT events

It is nice to have access to num pad key events, but their use right now is very limited as they do not generate character/text events which are handy for text input.
On pugl they are treated as "special" characters, but I think some of these should still to be used for text events, particularly 0-9, /, *, - and .

I ran into the same issue when trying to add pugl as backend to imgui (Linux X11 OpenGL3). It would be gread to have text events for the characters falkTX mentioned.

provided a quick and dirty hack for Linux X11 here https://github.com/lv2/pugl/pull/127