phpactor: 2023.01.21 -> 2023.06.17

@ryantm Hi ! Any reason why this derivation hasn't been picked up by the bot for the automatic updates?
Description of changes

Things done

Built on platform(s)

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

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

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

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

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

[ ] Fits CONTRIBUTING.md.

Hmm. I don't think the bot knows how to update traditional fixed output derivations! It has hard coded logic for go, rust, etc, but nothing for the standard way.


login and password for portal doesnt work

Hi !
I have a fresh raspbian install + fresh allsky and portal install and Pi3 but default login and password does not work when accessing allsky.local or localhost or ipnumber.
Thank you

raspap.php:
 'admin',
  'admin_pass' => '$2y$10$YKIyWAmnQLtiJAy6QgHQ.eCpY4m.HCEbiHaTgN6.acNC6bDElzt.i'
);

if(file_exists(RASPI_CONFIG.'/raspap.auth')) {
    if ( $auth_details = fopen(RASPI_CONFIG.'/raspap.auth', 'r') ) {
      $config['admin_user'] = trim(fgets($auth_details));
      $config['admin_pass'] = trim(fgets($auth_details));
      fclose($auth_details);
    }
}
?>

Same issue, what's wrong with the installation?

 'admin',
  'admin_pass' => '$2y$10$YKIyWAmnQLtiJAy6QgHQ.eCpY4m.HCEbiHaTgN6.acNC6bDElzt.i'
);

if(file_exists(RASPI_CONFIG.'/raspap.auth')) {
    if ( $auth_details = fopen(RASPI_CONFIG.'/raspap.auth', 'r') ) {
      $config['admin_user'] = trim(fgets($auth_details));
      $config['admin_pass'] = trim(fgets($auth_details));
      fclose($auth_details);
    }
}
?>

included this file but still no authorisation

create the file as mentioned above, make sue you set right user - look at the other files in that dir. Should work.

Ok thanks, but something has changed in the GUI setup process it is a bug that should be fixed. This was working previously.

changed ownership of raspap.php to www-data and permissions to 644, same as other files in /etc/raspap.
also created a null file raspap.auth both of these Changes still fail to allow me to authenticate.

Other than a me too, I can't find much on changing / setting this password with searches.

Thats what I did. I did not create  raspap.auth. Works for me.
DId you stop / start?
On Mon, 24 Aug 2020 at 15:32, guineapigsoup2<EMAIL_ADDRESS>wrote:

changed ownership of raspap.php to www-data and permissions to 644, same
as other files in /etc/raspap.
also created a null file raspap.auth both of these Changes still fail to
allow me to authenticate.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/thomasjacquin/allsky/issues/237#issuecomment-679128075,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACKKCKVYTCESEWRIGPTCQS3SCJTV7ANCNFSM4QH3YLJQ
.

https://github.com/linuxkidd/allsky-portal/blob/master/raspap.php
Thats the file as it has been removed - guess by mistake.
On Mon, 24 Aug 2020 at 15:32, guineapigsoup2<EMAIL_ADDRESS>wrote:

changed ownership of raspap.php to www-data and permissions to 644, same
as other files in /etc/raspap.
also created a null file raspap.auth both of these Changes still fail to
allow me to authenticate.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/thomasjacquin/allsky/issues/237#issuecomment-679128075,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACKKCKVYTCESEWRIGPTCQS3SCJTV7ANCNFSM4QH3YLJQ
.

That fixed it, yes!

Thank you for your help. Creating the above mentionned raspap.php file in etc/raspap solved the problem

@martinmagnan Why closing this? The bug in the setup script has not been fixed yet and everyone is going to face the same issue.

Sorry
first time here on github, I tought it had to be closed since there is a solution.

file posted fixed the problem eventually, once I had worked out that password in the file is a hash of the default password secret.

Hey, New to everything! I tryed to create the missing file but there was en error that I don't have de permission to create A file in that folder and I can't change the folder settings to "everyone"! can someone help?

The file was deleted by accident. It re-added it last night. Things should work properly now. Running sudo gui/install.sh should re-build the GUI and bring the new file along.

Thank you @thomasjacquin

Thank you !!

Problem resolved so closing this issue.


Registration brings me Error 404

Upon Registration, I'm forwarded to /register but get an Error 404. No errors in the error log.
Unsure what file it can't find.

google SEO frendly urls ,htaccess for php

I get the same thing. Have you found a solution?


Models generated by CI not up to date

E.g. some labels sizes are too large, the pendulum movie does not include dissipation, etc.

Nah, that's fine. I was actually seeing stuff from the browser cache I guess. CTRL+SHIT+R solved the issue.


Update Cargo.toml

Fix compilation error on Windows 10.

This is not necessary because solana-client allows any version above tokio 1.14.1 now(https://github.com/solana-labs/solana/pull/33058). You can verify that adding anchor-client will use the latest tokio version which is 1.32.0 as of right now.
cargo new latest-tokio
cargo add anchor-client
cargo build
cargo tree -i tokio --depth 0

will output
tokio v1.32.0

This is not necessary because solana-client allows any version above tokio 1.14.1 now(https://github.com/solana-labs/solana/pull/33058). You can verify that adding anchor-client will use the latest tokio version which is 1.32.0 as of right now.

cargo new latest-tokio

cargo add anchor-client

cargo build

cargo tree -i tokio --depth 0

will output

tokio v1.32.0

But when it's not specifying a version, it's causing build failure on Windows 10, platform which I tried to build on.

Could you share the output after running the exact same commands I've shared?

Could you share the output after running the exact same commands I've shared?

Get this error when running on Git Bash, Powershell and Command Prompt.

Well that's not running the commands that I've shared above. As the output suggests, you are trying to compile anchor-cli 0.28.0 which uses --locked argument when installing via avm, hence the outdated tokio version. You can install without the --locked argument to get the updated dependencies:
cargo install --git https://github.com/coral-xyz/anchor --tag v0.28.0 anchor-cli

Well that's not running the commands that I've shared above. As the output suggests, you are trying to compile anchor-cli 0.28.0 which uses --locked argument when installing via avm, hence the outdated tokio version. You can install without the --locked argument to get the updated dependencies:
cargo install --git https://github.com/coral-xyz/anchor --tag v0.28.0 anchor-cli

Okay, thanx alot!


The code takes 4h foe each epoch in google colab.

Hi,
i'm trying to run your code but in google colab the time needed for each epoch si about 4h:

I also downloaded the notebook and run it on my local machine with cuda and GTX 1050 and the time needed  is about 30min for every epoch.
Do you have an idea why this happens? It seems should be necessary only 3-4min for every epoch.
EDIT:
I forgot to change the runtime type to colab, now it takes about 10min, however i cant't understand why on my lapton takes 30-40min.

Hey @damorosodaragona ,
Good that your problem is resolved; I was just writing you about changing the runtime to GPU that I saw you edited your post.
About the issue regarding your laptop, I should admit that I'm not an expert in GPUs but after a quick looking up your GPU specs vs Tesla K80 which Colab offers, I think it is not that unexpected that it takes too long on your laptop and not on Colab.
I think K80 GPU is a better fit for deep learning rather than 1050; although I could be totally wrong.

Thaks @moein-shariatnia .
I have couple of "stupid" question more:
a) in the colab notebook is written that we are using 8000 images for the training of the model and in the following images

this is explained very well.
But if we are using 8000 samples why the train_model function iterates over only 500 images?

b) the output that we visualize every 200 iteration is composed by:

on the top the b/n images
in the middle the results of the colorization (so the prediction of the L,b channels of our model)
at the bottom the real image
it is right?
I'm asking this because in the visualize function the images in the middle are called "fake_image" and this are getting me in confusion.

It is alright!
a) That number, 500, shows the number of batches. Each batch is composed of 16 images and 16 * 500 will be 8000 which is the number of training images
b) Yes, the interpretation is right. Fake images denote the colored images which the model predicts and real images are the colorful target images that we wish the model learns to predict.
I used the terms fake vs real from the GAN literature which denotes the images predicted by the generator and the real-world data respectively.
I hope this helps.


Delete execute()

Fixes #ISSUSE_ID.
Changes proposed in this pull request:

Delete execute()
AccessLevel.PROTECTED

Pull Request Test Coverage Report for Build 5139

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

Files with Coverage Reduction
New Missed Lines
%

sharding-orchestration/sharding-orchestration-reg/src/main/java/io/shardingsphere/orchestration/reg/newzk/client/zookeeper/base/Holder.java
1
73.77%

sharding-opentracing/src/main/java/io/shardingsphere/opentracing/listener/SQLExecuteEventListener.java
1
87.5%

sharding-opentracing/src/main/java/io/shardingsphere/opentracing/listener/RootInvokeEventListener.java
1
64.29%

Totals

Change from base Build 5138:
0.1%

Covered Lines:
8034

Relevant Lines:
12666

💛  - Coveralls


Add stopping of long running WASM processes

Now that wasmtime has support for stopping a running instance, we should be able to add this in to our Stop implementation for the wasi provider.
This will need to wait until a new version of the wasmtime crate is released

@thomastaylor312 0.16.0 of wasmtime has been released and should contain the interruption feature.

Awesome. Thanks for letting us know


gem: bump version to 0.5.5

Codecov Report

Merging #89 (4c3d381) into main (5243c13) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #89      +/-   ##
==========================================
- Coverage   99.73%   99.71%   -0.03%
==========================================
  Files          67       67
  Lines        3801     3801
==========================================
- Hits         3791     3790       -1
- Misses         10       11       +1

Impacted Files
Coverage Δ

spec/eth_spec.rb
100.00% <100.00%> (ø)

lib/eth/client/ipc.rb
93.33% <0.00%> (-6.67%)
:arrow_down:

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more


update to the latest schema installer snapshot

this should fix the project location failure in the project lock integration tests as the change has been merged in.

A newer version has already been incorporated


iOS 8 : Add support for layout margins

While it does seems to be documented anywhere by Apple, iOS 8 introduced a couple of new layout attributes in NSLayoutConstraint.h:
NSLayoutAttributeLastBaseline = NSLayoutAttributeBaseline,
NSLayoutAttributeFirstBaseline NS_ENUM_AVAILABLE_IOS(8_0),

NSLayoutAttributeLeftMargin NS_ENUM_AVAILABLE_IOS(8_0),
NSLayoutAttributeRightMargin NS_ENUM_AVAILABLE_IOS(8_0),
NSLayoutAttributeTopMargin NS_ENUM_AVAILABLE_IOS(8_0),
NSLayoutAttributeBottomMargin NS_ENUM_AVAILABLE_IOS(8_0),
NSLayoutAttributeLeadingMargin NS_ENUM_AVAILABLE_IOS(8_0),
NSLayoutAttributeTrailingMargin NS_ENUM_AVAILABLE_IOS(8_0),
NSLayoutAttributeCenterXWithinMargins NS_ENUM_AVAILABLE_IOS(8_0),
NSLayoutAttributeCenterYWithinMargins NS_ENUM_AVAILABLE_IOS(8_0),

It would be nice to be able to use these using Masonry. Something like:
[view1 mas_makeConstraints:^(MASConstraintMaker *make) {
    make.left.equalTo(superview.mas_leftMargin);
}];

As far as I can tell, this issue has been closed but margins haven't been added yet. Is this being worked on or would a PR be welcome?

PRs are always welcome!
On Sat, Feb 21, 2015 at 9:44 AM, Craig Siemens<EMAIL_ADDRESS>wrote:

As far as I can tell, this issue has been closed but margins haven't been added yet. Is this being worked on or would a PR be welcome?
Reply to this email directly or view it on GitHub:
https://github.com/Masonry/Masonry/issues/108#issuecomment-75315945

In the mean time this has been added: 1a7f0d235


Reachy hitting pieces when moving objects over the field

Reachy hits the Cylinders on the board with the Cylinders in the hand.
Suggestion: Test a higher DELTA_ABOVE_OBJ
https://github.com/alpakadev/robot-ludens/blob/8b4939af0b1920ef741871713f024f7f1fabccaf/PythonScripts/Movement/constants.py#L5-L7

Closes due to the merging of #78


yarn install offline fails

Package stream-to-observable is a dependency for one of the lint packages.
$ yarn why "@samverschueren/stream-to-observable"
yarn why v1.7.0
[1/4] Why do we have the module<EMAIL_ADDRESS>[2/4] Initialising dependency graph...
[3/4] Finding dependency...
[4/4] Calculating file sizes...
=> Found "<EMAIL_ADDRESS>info Reasons this module exists
   - "lint-staged#listr" depends on it
   - Hoisted from "lint-staged#listr#@samverschueren#stream-to-observable"
Done in 1.80s.

Our build system uses offline mirror for couple of reasons: a) Build on IPv6 only network b) Cache packages to expedite the build. However, this dependency have an unique pattern "@samverschueren/stream-to-observable" and for some reason yarn doesn't detect that this package indeed exists in offline cache.
I tried creating a directory named "@samverschueren" and stored the file there, but didn't help.
Any insights to resolve the issue is appreciated?

My bad, we had a script to pull files for offline use and that didn't pull the file in proper format. Closing this!


FR: sensor for 'Nieuws'

HI
please consider adding a sensor for Nieuws, like we can see in the Saver App:

would be really nice to have a (binary) sensor for new news being published, and be able to create a (persistent) notification based on that. Of course with the full message in its attributes, so we can show that easily eg in a markdown card.
thanks for considering

This is a nice addition, and next week I`ll try to implement it. It shouldn't be hard.

I created some code to parse the news but I also noticed multiple news items may persist. So when the case is that there are 5 news items, 5 new sensors will be created. Besides that the code differs for each provider, so it'll cause really messy code. I decided to leave it out for now, but I created a branch for further development. Maybe in the future I think otherwise.


Why set "Do not assign a public IPv4 address" checkbox?

https://github.com/hitrov/oci-arm-host-capacity#instance-parameters

Adjust Networking section, set "Do not assign a public IPv4 address" checkbox

Above is written to README but why specify Do not assign a public IPv4 address?
Is this setting required? (If not set or assign IPv4 address then create instance fail?)
Thanks.

Previously there was a limitation for the number of IP addresses assigned. Now it seems disappeared, so we could actually remove this, thanks

regardless, it's easy to set ipv4 address after getting the server :)


PLT add plot with iterations

Add plot relative to iteration numbers.
Also quick start a documentation page on plotting tools. This should be populated at some point.... :(

Codecov Report

Merging #287 (0c52aab) into main (3f32ba3) will increase coverage by 0.28%.
The diff coverage is 85.29%.

@@            Coverage Diff             @@
##             main     #287      +/-   ##
==========================================
+ Coverage   60.84%   61.13%   +0.28%
==========================================
  Files          41       41
  Lines        2240     2267      +27
  Branches      410      415       +5
==========================================
+ Hits         1363     1386      +23
- Misses        778      781       +3
- Partials       99      100       +1

I got confused by the strong change when switching to iteration curve. Can we rename to "objective per iteration" and "suboptimality per iteration" ?
How do we sell it for solvers based on tolerance ?

For the interpolation part,

main
this PR

1 rep

5 reps

Closing this one in favor of #479


gates (A matrix) with a shape of batch * dim * dim * seqlen

Thank you for your excellent work!
I was wondering if it’s possible to modify your code to handle a state-space model case where the gates (A matrix) have a more general shape of batch × dim × dim × seqlen?

Thanks @WeihanLikk!

Thanks for your reply! In my case, the maximum dim is around 100.

That sounds reasonable! I would make an entirely new kernel though, that could be simpler because the thread block layout would be different.

Thanks!


Broken import after upgrading to 5.2.11

Version of react-native-iap
5.2.11
Version of react-native
0.63.4
Platforms you faced the error (IOS or Android or both?)
iOS
Expected behavior
import package successfully
Actual behavior
imported package is undefined
Tested environment (Emulator? Real Device?)
Emulator
Steps to reproduce the behavior
Just trying to import the package import RNIap from 'react-native-iap' and then RNIap.initConnection() results in ExceptionsManager.js:179 TypeError: Cannot read property 'initConnection' of undefined
This is not happening after downgrading to 5.2.7

Oppps I have exported that as a default. Sorry will fix it. Currently use destructured funtion from imports

use this import * as RNIap from 'react-native-iap';

Related  #1260
Please use this way for now.


chore(release): v1.0.2 🎉

:robot: I have created a release beep boop
1.0.2 (2023-09-16)
Bug Fixes

defs: enable .skip and .only (2b1a68a)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/ehmpathy/test-fns/releases/tag/v1.0.2 :sunflower:


WASM FFI 2

Make rust-simplicity compile in WASM.
Move test-only FFI bindings into separate module, separating them from jet-only FFI bindings. The latter compile in WASM while the former don't.
Define more C types (checked in WASM) and use these local types. Remove libc dependency entirely.
Redefine allocation in Rust.

CI failure looks real.

Fixed the fuzz tests. The import paths changed and test-utils needed to be activated.

a37068e5c8219ba50f482ab591382a39319cbfef looks fine to me. Cannot test locally because #204 broke my local CI.

Sorry for the broken CI :) I will get the Haskell Gen PR up to speed in the net 24 hours.

Depends on #208. Rebased onto #208 and added allocation.

Updated to use the allocator functions from https://github.com/BlockstreamResearch/simplicity/pull/222.
MSRV broke CI again. This error likely exists on master. I will work on a separate CI overhaul PR. In the meantime, let's ignore the CI failure and move forward with the present PR.

CI is fixed in #210

Rebased on master and updated lock file

Added runtime assertions to the allocation function.

Note that I had to explicitly whitelist the simplicity_alloc.h file when checking the diff between this repo and upstream. I think that's the right approach.


Js modern syntax supplement challenges

They seems okay. But the README.md file are missing in both challenges.

Haven‘t touched any of them - then they‘ve been missing all along. Everything happens in the /index.js files


style(blog): add thumbnail image to 'how to optimize your VSCode workflow' blog post

Description
This pull request includes a small change to the data/blog/how-to-optimize-your-vscode-workflow-setup.mdx file. The change adds an image to the images field to enhance the blog post.

data/blog/how-to-optimize-your-vscode-workflow-setup.mdx: Added an image to the images field.

Nice 💯


Docker container running locally, not starting within a Swarm

I have a local swarm cluster with three nodes (Virtualbox).
I am able to  run locally an image of mine using
docker run zopyx/basex-86

Creating a service with the same container does not start the service properly
docker service create --name basex zopyx/basex-86

root@vm1:~# docker service ps basex
ID                  NAME                IMAGE                   NODE                DESIRED STATE       CURRENT STATE           ERROR                              PORTS
xr42qxxrgqjq        basex.1             zopyx/basex-86:latest   vm2                 Ready               Ready 2 seconds ago
yhgtqyjwksb3         \_ basex.1         zopyx/basex-86:latest   vm1                 Shutdown            Failed 2 seconds ago    "starting container failed: oc…"
ihedpda2d9vx         \_ basex.1         zopyx/basex-86:latest   vm2                 Shutdown            Failed 8 seconds ago    "starting container failed: oc…"
zdu3qi9i9742         \_ basex.1         zopyx/basex-86:latest   vm2                 Shutdown            Failed 13 seconds ago   "starting container failed: oc…"
3fp2hgvzwvk0         \_ basex.1         zopyx/basex-86:latest   vm2                 Shutdown            Failed 18 seconds ago   "starting container failed: oc…"

root@vm1:~# docker service ps basex --no-trunc
ID                          NAME                IMAGE                                                                                NODE                DESIRED STATE       CURRENT STATE         ERROR               PORTS
pwzix9zz6zlyccv3kmecz5z7u   basex.1             zopyx/basex-86:latest@sha256:40782fef2b5dd0a53282dbdcf7d4c902be8e60f44e3a3cbb62035f0c77d9a463   vm2                 Ready               Ready 1 second ago
zdu1nqaxhxna744aovnnxf3s9    \_ basex.1         zopyx/basex-86:latest@sha256:40782fef2b5dd0a53282dbdcf7d4c902be8e60f44e3a3cbb62035f0c77d9a463   vm3                 Shutdown            Failed 1 second ago   "starting container failed: oci runtime error: container_linux.go:262: starting container process caused "exec: \"--detach=false\": executable file not found in $PATH"
"
nova87me3nu6rfhqkk1r567ly    \_ basex.1         zopyx/basex-86:latest@sha256:40782fef2b5dd0a53282dbdcf7d4c902be8e60f44e3a3cbb62035f0c77d9a463   vm1                 Shutdown            Failed 7 seconds ago   "starting container failed: oci runtime error: container_linux.go:262: starting container process caused "exec: \"--detach=false\": executable file not found in $PATH"
"
iswn7q16wxc6k3965ls5pnact    \_ basex.1         zopyx/basex-86:latest@sha256:40782fef2b5dd0a53282dbdcf7d4c902be8e60f44e3a3cbb62035f0c77d9a463   vm2                 Shutdown            Failed 12 seconds ago   "starting container failed: oci runtime error: container_linux.go:262: starting container process caused "exec: \"--detach=false\": executable file not found in $PATH"
"
xr42qxxrgqjqjmdv6z4dfe6q5    \_ basex.1         zopyx/basex-86:latest@sha256:40782fef2b5dd0a53282dbdcf7d4c902be8e60f44e3a3cbb62035f0c77d9a463   vm2                 Shutdown            Failed 17 seconds ago   "starting container failed: oci runtime error: container_linux.go:262: starting container process caused "exec: \"--detach=false\": executable file not found in $PATH"

root@vm1:~# docker version
Client:
 Version:      17.06.0-ce
 API version:  1.30
 Go version:   go1.8.3
 Git commit:   02c1d87
 Built:        Fri Jun 23 21:15:15 2017
 OS/Arch:      linux/amd64

Server:
 Version:      17.06.0-ce
 API version:  1.30 (minimum version 1.12)
 Go version:   go1.8.3
 Git commit:   02c1d87
 Built:        Fri Jun 23 21:51:55 2017
 OS/Arch:      linux/amd64
 Experimental: false
root@vm1:~# docker --version
Docker version 17.06.0-ce, build 02c1d87

@zopyx this is a Docker swarm mode issue, it belongs on https://www.github.com/moby/moby. Can you please open it there?


repeat drawImage  result of toImageSync leading memory leak

Steps to reproduce
1.execute program.
2.waiting and observe memory.
3.press mouse left to stop memory increasing.
4.press mouse right to clear memory.
Expected results
memory is released.
Actual results
memory remain unchanged.
Code sample
Code sample

import 'dart:typed_data';
import 'dart:ui' as ui;

import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';

// The FlutterView into which this example will draw; set in the main method.
late final ui.FlutterView view;

void paintExpensive(ui.Canvas canvas, ui.Rect paintBounds) {
}

void paintCheap(ui.Canvas canvas, ui.Rect paintBounds) {
}

ui.Image? lastImage;
PointerEvent? lastEvent;

bool stop=false;
bool clear=false;
ui.Picture paint(ui.Rect paintBounds) {
  final ui.PictureRecorder recorder = ui.PictureRecorder();
  final ui.Canvas canvas = ui.Canvas(recorder, paintBounds);

  ui.Picture picture;

  if (!clear&&lastImage == null) {
    paintExpensive(canvas, paintBounds);
    picture = recorder.endRecording();

    lastImage = picture.toImageSync(paintBounds.width.ceil(), paintBounds.height.ceil());
  } else {
    if(clear) {
      canvas.drawCircle(const ui.Offset(0, 0), 60, ui.Paint()..color=Colors.redAccent);
    }else{
      canvas.drawImage(lastImage!, ui.Offset.zero, ui.Paint());
    }

    paintCheap(canvas, paintBounds);
    picture = recorder.endRecording();

    if(!stop){
      lastImage?.dispose();
      lastImage = picture.toImageSync(paintBounds.width.ceil(), paintBounds.height.ceil());
    }

    if(lastEvent is PointerDownEvent){
      var pointerDownEvent = lastEvent as PointerDownEvent;
      if(pointerDownEvent.buttons==kPrimaryMouseButton){
        stop=true;
      }
      if(pointerDownEvent.buttons==kSecondaryMouseButton){
        clear=true;
        lastImage?.dispose();
        lastImage=null;
      }

    }

  }

  return picture;
}

ui.Scene composite(ui.Picture picture, ui.Rect paintBounds) {
  double devicePixelRatio = view.devicePixelRatio;
  final Float64List deviceTransform = Float64List(16)
    ..[0] = devicePixelRatio
    ..[5] = devicePixelRatio
    ..[10] = 1.0
    ..[15] = 1.0;

  final ui.SceneBuilder sceneBuilder = ui.SceneBuilder()
    ..pushTransform(deviceTransform)
    ..addPicture(ui.Offset.zero, picture)
    ..pop();
  return sceneBuilder.build();
}

Future<void> beginFrame(Duration timeStamp) async {
  final ui.Rect paintBounds = ui.Offset.zero & (view.physicalSize / view.devicePixelRatio);
  final picture = paint(paintBounds);

  final ui.Scene scene = composite(picture, paintBounds);
  view.render(scene);
  ui.PlatformDispatcher.instance.scheduleFrame();
}
void handlePointerDataPacket(ui.PointerDataPacket packet) {
  var expand = PointerEventConverter.expand(packet.data, (viewId) => view.devicePixelRatio).toList();
  if(expand.isEmpty)return;
  lastEvent=expand.last;
}

void main() {

  view = ui.PlatformDispatcher.instance.implicitView!;
  // Finally, we register our beginFrame callback and kick off the first frame.
  ui.PlatformDispatcher.instance
    ..onBeginFrame = beginFrame
    ..onPointerDataPacket = handlePointerDataPacket
    ..scheduleFrame();
}

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
[√] Flutter (Channel stable, 3.19.4, on Microsoft Windows [版本 10.0.19045.4412], locale zh-CN)
    • Flutter version 3.19.4 on channel stable at D:\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 68bfaea224 (8 weeks ago), 2024-03-20 15:36:31 -0700
    • Engine revision a5c24f538d
    • Dart version 3.3.2
    • DevTools version 2.31.1
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at D:\Android\Sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = D:\Android\Sdk
    • Java binary at: D:\Program Files\Android\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.10+0--11572160)
    • All Android licenses accepted.

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

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.8.3)
    • Visual Studio at D:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.8.34330.188
    • Windows 10 SDK version 10.0.22621.0

[√] Android Studio (version 2023.3)
    • Android Studio at D:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.10+0--11572160)

[√] IntelliJ IDEA Community Edition (version 2024.1)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2024.1
    • Flutter plugin version 79.1.3
    • Dart plugin version 241.15845

[√] IntelliJ IDEA Ultimate Edition (version 2022.3)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2022.3
    • Flutter plugin version 72.1.4
    • Dart plugin version 223.7571.203

[√] VS Code (version 1.76.2)
    • VS Code at C:\Users\Administrator\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.86.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [版本 10.0.19045.4412]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 125.0.6422.60
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 124.0.2478.105

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

• No issues found!

Hi @leegean, I think you forgot to dispose a picture created there: picture = recorder.endRecording();.

Hi @leegean, I think you forgot to dispose a picture created there: picture = recorder.endRecording();.

i's not working.besides,addPicture need it.

@leegean I see there's a similar issue with toImageSync at https://github.com/flutter/flutter/issues/138627 (another duplicated issue https://github.com/flutter/flutter/issues/145210).
Closing this issue in favor of that one, so please follow up on https://github.com/flutter/flutter/issues/138627 for further updates. Thank you!


Added solution for Leetcode Valid Sudoku problem in Python.

Description
Added Solution for LeetCode problem Valid Sudoku in Pytthon. https://leetcode.com/problems/valid-sudoku/
Type of change

[x] New feature (non-breaking change which adds functionality)

Checklist:

[x] My code follows the style guidelines(Clean Code) of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings

Can this PR be eligible for the Hacktoberfest?


just: 0.9.6 -> 0.9.8

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/casey/just/releases.
meta.description for just is: "A handy way to save and run project-specific commands"
meta.homepage for just is: "https://github.com/casey/just"
meta.changelog for just is: "https://github.com/casey/just/blob/0.9.8/CHANGELOG.md"
Updates performed

Rust version update

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/010sa3vwa55s3sgl6j03nkfwzxcjd8qn-just-0.9.8/bin/just 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.9.8 with grep in /nix/store/010sa3vwa55s3sgl6j03nkfwzxcjd8qn-just-0.9.8

found 0.9.8 in filename of file in /nix/store/010sa3vwa55s3sgl6j03nkfwzxcjd8qn-just-0.9.8

directory tree listing: https://gist.github.com/a2a49626f3b34033206bcb72f4516b73

du listing: https://gist.github.com/b196ac2462d20388284113326680552d

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

4 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
1 i686-linux rebuild(s)
1 x86_64-darwin rebuild(s)
1 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
just

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/010sa3vwa55s3sgl6j03nkfwzxcjd8qn-just-0.9.8 \
  --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 just https://github.com/r-ryantm/nixpkgs/archive/f3a4c7a0b1bf593aa560607d8480679bf9012c9c.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/010sa3vwa55s3sgl6j03nkfwzxcjd8qn-just-0.9.8
ls -la /nix/store/010sa3vwa55s3sgl6j03nkfwzxcjd8qn-just-0.9.8/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:

just

Maintainer pings
cc @xrelkd @06kellyjac for testing.

Result of nixpkgs-review pr 129213 at f3a4c7a0 run on aarch64-linux 1

1 package failed to build:

just

Note that build failures may predate this PR, and could be nondeterministic or hardware dependent.
Please exercise your independent judgement. Does something look off? Please file an issue or reach out on IRC.


feat: migrate to snarkify/sirius

Describe the feature you would like
Use sirius project, instead of halo2
Additional context
No response

Blocked by https://github.com/snarkify/sirius/milestone/4


model type interpreted as Cmdstan.Variational in read_samples function

https://github.com/StanJulia/CmdStan.jl/blob/master/src/utilities/read_samples.jl#L51
I am using a package which uses CmdStan for generating samples. If I just call the package and not CmdStan, the ftype determined in line 41 is cmdstan.variational. The code is as follows:
ftype = lowercase(string(typeof(m.method)))
This causes a problem in Line 51 (linked above) since the generated CSV file is of the form modelname_variational_1.csv and not modelname_cmdstan.variational_1.csv.
A possible solution to this would be to identify if cmdstan is prepended to variational in method type and then remove it. I have implemented on my local machine and this works fine.

Has the package you are using been published? I'm just looking for a MWE of a case where this is happening.
I think I've seen this issue a while ago, quite a while ago in fact (when the scope became bound to packages).
How did you solve it?

Unfortunately, the package has not been published.
The simple solution was to call using CmdStan every single time.
The more convenient solution was to change the substring ftype to trim "cmdstan" if it was prepended in the read_samples package.
I can make a PR soon to review if you would like that.

That would be great, I’ll wait for a PR!

I have created a MWE package for this issue here https://github.com/mkshirazi/JuliaTestPackage .
In the given package, simply running this would suffice :
using JuliaTestPackage

main_run()

I have also made a PR that provides an easy fix for this particular problem.

Hi @mkshirazi
Thanks for the MWE and the PR. I merged the PR, will release later today or tomorrow. The MWE was also useful and conformed what I expected (qualification of method names when included in a package).
Let me know if this doesn't solve your issue, thanks again for your help, Rob


VFESecurity.CompProperties_Submersible support

https://github.com/Vanilla-Expanded/VanillaFurnitureExpanded-Security/blob/master/Source/VFESecurity/HarmonyPatches/Patch_PathGrid.cs#L99

submergedPathCost is currently unused in this mod. A compatibility patch is not required.


feat(specs): upgrade PrecastConcrete category properties

asana: Updates to precast category

@alexche-cchange , would not "element_type" be more conventional name for a property then "precast_element_type"?
Improve commit message to something like: "add element_type property to Precast spec".

I will add it as a description, because there is several changes.

Added new category CivilPrecast to OpenEpd specification
Added precast_element_type properties to each of PrecastCategory subcategories


build(deps): update itertools 0.9 -> 0.10

NOTE: This raises the MSRV to Rust 1.32.0.

cargo test is running into an issue currently where rustdoc is printing the following error:
---- src\lib.rs - (line 39) stdout ----
error[E0585]: found a documentation comment that doesn't document anything
  --> src\lib.rs:51:1
   |
14 | /// ```
   | ^^^^^^^
   |
   = help: doc comments must come before what they document, maybe a comment was intended with `//`?

Didja want me to report it as a separate issue? :)

@ErichDonGubler yes please, with a way to reproduce if you can. Thanks!

As itertools is a build dep, I don't see a compelling reason to bump MSRV.


How can I add order to my MultiResultQuery then page the query?

I want some things like this
var query = _missionRepository
                .MultipleResultQuery()
                .OrderBy(x => x.StartDate)
                .Page(request.Params.PageNumber, request.Params.PageSize);

Sorry I put it in wrong repository

Sorry I put it in wrong repository

Hi!
You can simply add OrderBy after Page, like this:
var query = _missionRepository
                .MultipleResultQuery()
                .Page(request.Params.PageNumber, request.Params.PageSize)
                .OrderBy(x => x.StartDate);

It's just a query builder and the order of the methods doesn't matter.
Or you can use a cast, like this:
var query = ((IMultipleResultQuery<Mission>)_missionRepository
                .MultipleResultQuery()
                .OrderBy(x => x.StartDate))
                .Page(request.Params.PageNumber, request.Params.PageSize);

Thank you for your help! Your answer was very informative and helpful. I appreciate your time and effort in answering my question.


Testing

Is there anyway to write test cases for EventPage variables, so i changed
export default.... to const EventPage...export { EventPage }
this is the code i changed.

this is the error i got when i run : npm run testonly

In your test you'll want to change your import statement
import { EventPage } from '../event-page.jsx';
and you will want to pass the specific property value along rather than the whole event object.

thank you this helps alot


Can't find Phantomjs

I just upgraded from 0.15.0 to 0.19.1, and after updating my tests to match the new api, wallaby fails to start on my CI server with this error:
Wallaby can't find phantomjs. Make sure you have phantomjs installed
and included in your path, or that your `config :wallaby, :phantomjs`
setting points to a valid phantomjs executable.

We are using phantom-prebuilt, here is the config for wallaby:
config :wallaby,
  base_url: "http://#{dev_host}:#{dev_port}",
  screenshot_on_failure: true,
  phantomjs: "node_modules/.bin/phantomjs",
  phantomjs_args: "--webdriver-logfile=log/phantomjs.log",
  js_logger: "log/acceptance_browser.log"

This is running on Elixir 1.5 with Erlang 20.0.

@RobinClowers I see what you mean. It turns out that System.find_executable/1 doesn't like relative paths. I think there's a few options for a workaround.

Update your config to use Path.expand/1config :wallaby,
  phantomjs: Path.expand("node_modules/.bin/phantomjs", ".")

Add phantomjs to your PATH before running the command and use the following config:config :wallaby,
  phantomjs: "phantomjs" # Or just use the default config

Use an absolute path:config :wallaby,
  phantomjs: "/home/user/node_modules/.bin/phantomjs"

Thanks for pointing this out and it seems like this warrants a code or documentation fix.

@RobinClowers I just tried it out and this issue has been fixed on master (#296).


fix OBSVerse

I created frok from ru/gl/OBS_ru. And change it, But I didn't find how to include it in our app


Patchfusion for relative depth to solve sky and ceiling problem

Since metric depth estimation means that the depth of the sky will not be realistic, is it possible to train Patchfusion for relative depth estimation to solve the sky issue?

Hi, some discussions can be found: https://github.com/zhyever/PatchFusion/issues/24
For me, the metric depth estimator provides absolute depth, which is somehow useful in certain practical cases. It would be better to investigate a possible solution for this issue just in a metric setting.
But anyway, it's not difficult to train PatchFusion for relative depth. We just need to change the loss function as far as I can see.


docs(Button): add example with custom link component as root

Closes IBM/carbon-components-react#1909
This PR adds support for configuring button examples that use custom root nodes

curious if there is any downside to moving away from the React <Link> component… otherwise looks good!

it's just a component example so I don't see any down side. The existing example would have color contrast problems if we add knobs to the custom example though


[FEATURE] Decouple security configuration from user data storage

Is your feature request related to a problem?
Initially reported in https://github.com/opensearch-project/security/issues/1842

Unfortunately, the architecture of the security configuration, on update a full recreation of all configuration derived objects is performed. This is an issue because the internal IdP shares the same configuration as the security config.

The implication of this is that if any information about a user is changed, such as a password being modified or a permission added the plugin is reloaded on all nodes.
What solution would you like?
The internal identity provider should have its configuration data stored in a separate configuration index from the configuration values that cause the whole plugin to reload itself.

[Triage] @scrawfor99 Would you mind taking a look?

I like your proposal and I would go even farther, I think we should store the new data in a legit metadata index instead of reusing the existing config system.  I think you could just link the other issue where you were documenting how to handle permissions (in abstract the problem is identical)

...legit metadata index

@peternied What is a metadata index?

Finally did my homework... thanks for bearing with me
How it works today
SystemIndexPlugin is the mechanism to declare index(es) that are used by a plugin.  The Security Plugin is using this capability already.  The Security Plugin uses a single index, shard'ed onto every node, with N documents, a document is a json version of the yml configuration files in the repository.
ConfigurationRepository handles initialization and retrieval/caching, the schema modeling is handled by ConfigurationLoaderSecurity7.  DynamicConfigFactory listens for change updates from ConfigurationRepository and then push them out via a pub/sub event bus.
AbstractApiAction is the base action for security plugin actions, for any put/delete action a saveAnUpdateConfigs(...) call puts an updates document in the index, and then TransportConfigUpdateAction fans out to all nodes so ConfigurationRepository flushes its cache and reloads.
The Security Plugin stores its configuration data on the index in a in-memory cache, which it can also use to create instances of its objects dynamically.  Cache invalidation issues are avoided by invalidating the entire cache whenever a request could possibly have updated the security configuration.
Potential problem
As the amounts of mutable data grows in the Security Plugin, invalidation will happen more often and take longer to resolve.  That data also has to be held in memory and higher JVM memory pressure takes down nodes.
To date I have seen several anecdotes around tight loops interacting with security objects, but not what I would data to justify a change.
Potential next steps

How bad is the cache invalidation on the service performance, user perceptible?  Is it impacted by cluster size?
If using get/search calls to an index of users/permissions, how fast is it compared to the cache?
Root cause on what is slowing down node start up (mostly see failing integration test runs), this might be the cause but maybe its something else?

@peternied thank you for your detailed notes on this. I have updated the Permission Storage design I was working on to include the parts that overlap with what you found.
Am I correct in understanding your third sentence in the "Potential Problem" section, that you would not want to split the storage apart anymore? You mention that you don't see "evidence to justify a change", so should I pivot from solving this similarly to the permission handling?

I still think we should store the user data separately, but I'm not as convinced what the drawbacks are with the existing implementation.  If we wanted to explore the implementation I've highlighted how I think we could investigate it.
If we had a pull request in-hand reusing the existing storage concepts for a separate user data storage I wouldn't request changes around these design elements without more more data.

@scrawfor99 Looks like your comment was truncated Another example is

Hi @peternied, oops. I don't have another example yet but will update when I do haha.


correct module packages from over-eager migration

some packages were moved onto the engine path (#4571) so this will tracks changes that move packages back off of engine.
#!/bin/bash
for i in "AdditionalItemPipes" "AdditionalRails" "AdventureAssets" "Alchemy" "AlterationEffects" "Anatomy" "Apiculture" "BasicCrafting" "Behaviors" "BlockDetector" "BlockPicker" "Books" "Breathing" "ClimateConditions" "Climbables" "CombatSystem" "Compass" "Cooking" "CopperAndBronze" "CoreWorlds" "DamagingBlocks" "Drops" "Durability" "DynamicCities" "Economy" "Equipment" "EquipmentSmithing" "Exoplanet" "Explosives" "FallingBlocks" "FlowingLiquids" "Fluid" "FluidComputerIntegration" "FlyingIslands" "FunnyBlocks" "Genome" "GooeyDefence" "GooeysQuests" "GooKeeper" "GrowingFlora" "Health" "Hunger" "Inferno" "InGameHelpAPI" "Inventory" "IRLCorp" "ItemPipes" "ItemRendering" "JoshariasSurvival" "Journal" "KComputers" "LightAndShadow" "Lost" "Machines" "ManualLabor" "MasterOfOreon" "Maze" "MetalRenegades" "Minesweeper" "Minimap" "MobileBlocks" "ModularComputers" "MultiBlock" "PhysicalStats" "PotentialEnergyDevices" "Potions" "Projectile" "Rails" "Sample" "Scenario" "Sensors" "Signalling" "SimpleFarming" "Smithing" "StoneCrafting" "StructuralResources" "StructureTemplates" "SubstanceMatters" "Tasks" "Thirst" "Volcanoes" "WildAnimals" "WoodAndStone" "WoodAndStoneCraftingJournal" "WoodCrafting" "Workstation" "WorkstationCrafting" "WorldlyTooltip" "Xmas"; do
    git -C "$(pwd)/$i" checkout "chore/migrate-off-engine-path"
done;

tests out good! merged!


remove duplicate cilium helmchart

What type of PR is this?

What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer:
TODOs:

[ ] squashed commits
[ ] includes documentation
[ ] adds unit tests
[ ] adds or updates e2e tests

I don't see k3s clusters getting provisioned after this change. Not sure if its working on your end.


Support plain-text sitemaps (sitemap.txt) in the Sitemap class

Describe the feature
Support plain-text sitemaps (sitemap.txt) in the Sitemap class. The class should detect the type based on the file extension.
See https://www.sitemaps.org/protocol.html#otherformats for specification.

This is resolved via #2315.
(next time add it to the PR description to make this automatic, and more importantly, to have the changelog include the issue number)


Clean up extension-config stubbing for unit tests

Reviewer: @sammacbeth

Description:
We've been depending on loading the live config for a while, which makes testing impossible if we want to verify certain parts of the config work.
Steps to test this PR:

Automated tests:

[ ] Unit tests
[ ] Integration tests

Reviewer Checklist:

[ ] Ensure the PR solves the problem
[ ] Review every line of code
[ ] Ensure the PR does no harm by testing the changes thoroughly
[ ] Get help if you're uncomfortable with any of the above!
[ ] Determine if there are any quick wins that improve the implementation

PR Author Checklist:

[ ] Get advice or leverage existing code
[ ] Agree on technical approach with reviewer (if the changes are nuanced)
[ ] Ensure that there is a testing strategy (and documented non-automated tests)
[ ] Ensure there is a documented monitoring strategy (if necessary)
[ ] Consider systems implications

Aren't these mostly the same changes as #738?

The other PR depends on this one, I thought this could land first to allow the test to be fixed.


Stuck in loop when sizing with variable Tg

When sizing with a variable Tg, the sizing can become stuck in an infinite loop when the field is limited by the maximum temperature.
This is due to the fact that in order to make sure that the field does not exceed this maximum temperature, the field size should be larger, meaning: deeper. This however increases also the main temperature, which can lead to a runaway iteration.
This can be solved by including a specific error message for this problem.

This has been solved and added to the main branch


May i know how you handled the logics

this is project is really amazing, you're doing incredible job. it really inspires me.
the components are there but I couldn't see how the events are triggered and logics are handled? would you please help?

Thanks for the praise!
Can you give an example of what you mean by events and logics? Any specific part of app/functionality?

let's take the calculator as an example
the buttons are their but i couldn't see anything like onclick handler and something like that

Calculator has no logic by design. It's just visual. Doesn't do anything

This is really an excellent project, can you please tell me how much time did it took to complete till here. May I also know that how difficult is to code in Svelte?
And yeah mate, thanks in advance!

I've been working since a year on this.
Coding in Svelte is an absolute breeze. Absolutely recommend it

Ive been learning Svelte for the last few months and love it so far too. What background did you have before switching to Svelte?  I am inspired by your clean and simple approach. Im trying to develop a style for using components along with more classic OO for data and non-UI objects. Im learning some nice techniques from this example app. Thanks and keep it up!

Ive been learning Svelte for the last few months and love it so far too. What background did you have before switching to Svelte?  I am inspired by your clean and simple approach. Im trying to develop a style for using components along with more classic OO for data and non-UI objects. Im learning some nice techniques from this example app. Thanks and keep it up!

@newlegendmedia Hi!
I messed around with PHP, MySQL, Jquery, a little Angular, StencilJS for first 5 years. Then I went into Svelte, tho the ecosystem wasn't on par, and I not up to the mark to re-implement those things myself. I left Svelte after a while, did some pure NodeJS work, then learned React by building the Original macOS Web.
Then, around August, I remade macOS web in 2 days, and it made me fall in love with Svelte, and I haven't looked back ever since

@newlegendmedia Hi!
I messed around with PHP, MySQL, Jquery, a little Angular, StencilJS for first 5 years. Then I went into Svelte, tho the ecosystem wasn't on par, and I not up to the mark to re-implement those things myself. I left Svelte after a while, did some pure NodeJS work, then learned React by building the Original macOS Web.
Then, around August, I remade macOS web in 2 days, and it made me fall in love with Svelte, and I haven't looked back ever since


Add the possibility to write a new query in an HTML form

The form should have:

A drop down to select whether it's a it's a table or graph query
A text field with the name of the query (will be slugified)
A text field with the SPARQL query
A button to test the query (whether the query returns a 200 status code, and is consequently valid).
A button to save the query

Moved to https://github.com/ColinMaudry/sparql-router-ui/issues/4

UI was moved back to this project #45.


Refactor OmniSci to Heavy

Closes #451

https://github.com/xnd-project/rbc/blob/master/.github/workflows/rbc_test.yml requires an update as well. For instance, currently, CI does not run any of the heavyai tests..

Most tests seem to be passing except: rbc/tests/heavyai/test_math.py::test_numpy_function[np.positive-cpu]
There is a core dump when evaluating: nb.njit(fn)

ok we debugged with @guilhermeleobas and #445 fixes the segfault.
@pearu Once this is green, I propose to merge maybe with the test skip, and then @guilhermeleobas would remove it in his PR.

Considering that this PR is mostly about renaming omnisci to heavydb, @tupui , @guilhermeleobas could you explain how #445 that deals with numba internals is related to the changes in this PR?

AFAIU, @guilhermeleobas noticed it elsewhere.

Ok seems like all CI is passing. There is one workflow failing one test but seems unrelated test_add_ints_rjit. I tried to relaunch the failed workflow but GitHub is having issues currently.

See here for to view the previous run: https://github.com/xnd-project/rbc/actions/runs/2023309018/attempts/1

@pearu @guilhermeleobas the CI is green. It was just a hiccup (maybe even related to GH's current outage).


Parse the regular website instead of using the tumblr api

I've uploaded a branch here where my first steps are visible. If someone wants to participate, I think the hard thing is already done: How to parallelize it?
By using the archive page it's possible to determine the lifetime of the blog. Now we can access the archive page by using _archive?before_time= where the before time is unix time. So we could start the crawl at several times during the blogs lifetime. Say xxx crawls per month and stop the crawlers once it hit a post of a different crawler started at an earlier time.
I've uploaded a functional commit for image crawling without accessing the tumblr api. Still needs optimization and a code rebase to the current master branch.

For people only interested in photos and videos, here we go scraping the website. Might be faster since the scan connections can be cranked up in the settings as it does not depend on the Tumblr api anymore.
I've also played around with saving the cookie from the login process using the .NET browser (some IE/Edge version) for private blog download, but unfortunate there are some redirects and the resulting site is completely different. So there is some detection missing and requires a complete set of code for its own.

No tagging support yet.
ONLY photos and videos yet.

TumblThree-v<IP_ADDRESS>.zip

That's definitely preferable for me. I only want pictures, video, and gifs. I assume photos includes gifs?
FWIW, <IP_ADDRESS> never successfully downloaded anything for me coming from my <IP_ADDRESS> index files, although that doesn't matter much if the non-api verison works. I'll test in a bit.

I've rebased it again to the current master release (the one that uses the v1 api) @bb20189. Nothing is tested at all.
I too think that's the way to go because we could potentially access private blogs, no connection limits. It's probably even worth considering to just use RegEx and filter all jpg/png/gifs instead of using html nodes. It's much less a hassle to write the code and even if tumblr changes their layout, nothing should be broken if we just scan the whole html for specific tags.
I think it does not detect photosets nor inline images yet.
TumblThree-v<IP_ADDRESS>.zip

<IP_ADDRESS> and <IP_ADDRESS> cannot load my index files. "Error 1: Could not load file in library:" when I launch the program
I also just realized that <IP_ADDRESS> must have messed up some of my index files last month when I ran it....I have blank "Downloaded Files"(But "Number of Downloads" is still populated) for some long running blogs, and the index files are very small. When I try to download again with <IP_ADDRESS>, sure enough, it downloads every post ever instead of just the ones from the last month. I made sure to never expose said index files to any of the newer versions, I keep a backup, and a good number of the other blogs seem fine.
Argh, not sure how to deal with this....

<IP_ADDRESS> seems to work with those broken index files though....I assume because it's only grabbing the posts since the last completion date? While that idea is great in theory, I worry about bugs, like if the program crashes mid crawl or something.
Is that version safe to use for now? If I use that, will my index files become incompatible moving forward?

New Version: TumblThree-v<IP_ADDRESS>.zip

So, we could also use a WebDriver, which essentially is a chrome/firefox without the UI. That would also simplify the private blog access. It probably uses lots of memory and fattens the application a lot, but it sure is the most simple implementation for now.

New Version: TumblThree-v<IP_ADDRESS>.zip

New version:
TumblThree-v<IP_ADDRESS>.zip

Hello, i do not seen any settings or things about this no-use of API,

The rate limiter is not included in this release, thus it's not limited and just connects to the normal website depending on the remaining connection settings.
You can adjust the scan connections with the scan connection settings and if you want to include the scanning connections in the bandwidth throttler.

ok tks i understand now ;)


[WIP] help: Revise the desktop install help for clarity.

This deserves a fact-check to make sure I haven't simplified
anything past what's true!  Note in particular the TODO comments.
Especially in particular, I took out references to the .zip installer
for macOS and the .deb installer for Linux.  I couldn't tell in what
situation we'd really want to steer a user toward them (and wouldn't
recommend instead either the .dmg installer, or the apt or AppImage
instructions, respectively), so taking them out simplifies the
instructions and avoids presenting the user with a choice they have no
context for making.  But if there is such a situation, then we can put
them back.

@akashnimare can you look at this?

In the interest of expediency, I went ahead and merged this.  I'd still appreciate a review on this @akashnimare since we'd like to clear out the TODO comments.
@gnprice the one change I made was fixing the 3 issues like this:

(caused by line-wrapping of inline code blocks).  I think we should probably open an issue about that behavior in our /help/ markdown styling, since it's a land mine and get Brock looking at it, since past experience shows that sort of issue is very likely to be accidentally re-introduced.


Added support for chamber labels

Extending the labels to support chamber specific labels. Using a chamber specific label results in one label per chamber.
withLabel now has "leftchamber", "rightchamber", "centerchamber" options.
Changed labelWidth from 0.1 to 0.01 precision, to better support smaller labels.
I considered how this might impact, custom chamber sizes. One option was to change withLabel to be a percentage of the container. But doing this you would likely need min size, or you might get silly sized label.
In the end I left it as is. I did limit the labels max size to the containers size, just in case a label is too large to fit.

Looks good!  Thanks!


Possible workaround for unsupported nested structs

I'm playing around with Numba and emscripten, taking the LLVM IR code generated by Numba on a function in nopython mode, and translating it to JavaScript with emscripten. I've run into an issue. PNaCl, which emscripten relies on, has a problem with nested structs. The error message is:
LLVM ERROR: ExpandStructRegs does not handle nested structs

This is a problem when working with NumPy arrays, because AFAIU, an array is stored in a struct like { i8*, i64, i64, i32*, [1 x i64], [1 x i64] }. The shape and strides are contained in an array within a struct, which makes emscripten unhappy.
I can get around the issue by manually editing the LLVM IR, replacing e.g.:
  %agg6.fca.5.0.extract = extractvalue { i8*, i64, i64, i32*, [1 x i64], [1 x i64] } %agg6, 5, 0

by
  %agg6.fca.5.extract = extractvalue { i8*, i64, i64, i32*, [1 x i64], [1 x i64] } %agg6, 5
  %agg6.fca.5.0.extract = extractvalue [1 x i64] %agg6.fca.5.extract, 0

This is equivalent to the original statement, but it makes emscripten happier.
Until the bug is fixed in PNaCl, what should I tweak in Numba's LLVM code generation to implement this change?

That particular pattern seems to be generated as part of an optimisation pass, rather than anything emitted explicitly by Numba - if you run with NUMBA_DEBUG=1 you can confirm if this is the case for your particular code by comparing the "LLVM DUMP" and "OPTIMIZED DUMP" sections of the output. If this turns out not to be the case and Numba is emitting that code directly, if you could provide a sample of the source code you're using that would help to work out the necessary changes.
One possible workaround is to set NUMBA_OPT=0 in order to prevent optimisation occurring.
At a guess, I think the instruction combining pass might be responsible for making this transformation - I'm not sure if there are ways to switch on and off specific passes from within Numba, but someone else may be able to shed more light on this.

I'm testing this on:
@jit(int32(int32[:]), nopython=True)
def f(x):
    return x[0] + x[1]

Using NUMBA_DEBUG=1 it does look like this pattern is generated as part of an optimization pass (it seems to first appear in the FUNCTION OPTIMIZED DUMP section).
I'll see if emscripten works with NUMBA_OPT=0.

OK without optimization I have another error message with emscripten:
Value:   %.15 = load [1 x i64]* %.14
LLVM ERROR: Unrecognized struct value

This time I'm not sure what's happening...
Here is the code just before that failing instruction (same function example f as before):
B0:                                               ; preds = %entry
  %.6 = load { i8*, i64, i64, i32*, [1 x i64], [1 x i64] }* %arr
  store { i8*, i64, i64, i32*, [1 x i64], [1 x i64] } %.6, { i8*, i64, i64, i32*, [1 x i64], [1 x i64] }* %arr.1
  store i32 0, i32* %"$const0.2"
  %.9 = load { i8*, i64, i64, i32*, [1 x i64], [1 x i64] }* %arr.1
  %.10 = load i32* %"$const0.2"
  %.11 = sext i32 %.10 to i64
  store { i8*, i64, i64, i32*, [1 x i64], [1 x i64] } %.9, { i8*, i64, i64, i32*, [1 x i64], [1 x i64] }* %.12
  %.14 = getelementptr { i8*, i64, i64, i32*, [1 x i64], [1 x i64] }* %.12, i32 0, i32 4
  %.15 = load [1 x i64]* %.14

What version of LLVM does emscripten use? I am wondering if there are some differences in semantics between the versions used in Numba and emscripten. (Numba presently uses LLVM 3.5).

That's also what I thought. I originally tested with the latest stable version, which uses LLVM 3.4 as far as I can tell. Then I updated to WIP branches with LLVM 3.5, and I got the same problems.
FWIW I've found a similar bug report here: http://code.google.com/p/nativeclient/issues/detail?id=3932
I'm wondering whether this would be better solved in Numba or in emscripten/PNaCl. I've sent an e-mail to the emscripten mailing list: https://groups.google.com/forum/#!topic/emscripten-discuss/eWwyFw-YYPo

I got around these two problems with NUMBA_OPT=0 and the following fixes that were made for Rust (it also looks like Julia has similar problems):

Patch to PNaCl: https://github.com/rossant/emscripten-fastcomp/commit/1331b061fcb813dad71719792a89fa5cc396864a
Special LLVM pass to be done on Numba generated IR, and before emscripten: https://github.com/rossant/rust-emscripten-passes

I'll let you know once I have something working...

BTW, this sounds very interesting.  Definitely let us know how things work out!

BTW, this sounds very interesting. Definitely let us know how things work out!

Here you go: http://cyrille.rossant.net/numpy-browser-llvm/ :)

Wow, that's amazing!  I am impressed you got that all working.

Closing this issue as it seems to be resolved. If this is not the case please re-open with a comment about any item that appears to be unresolved. Many thanks.


fix - OptionParser::parseQualOption doesn't consider the cases for "Quality Trace" mode: the trace node has not been specified; the specified trace node doesn't exist

Issue Description:
if the model is set to Quality Trace mode, but the traced node has not been specified or specified to a wrong node ID.
the application will crash during initializing the TraceModel since the trace node index is -1.
void TraceModel::init(Network* nw)
{
    traceNode = nw->node(nw->option(Options::TRACE_NODE));
    traceNode->quality = Ctrace;
}

Analysis and Solution:
In OptionParser::parseQualOption method, the validation of "traced node" has not been done correctly in "Quality Trace" node.

if the traced node is not specified, we should throw InputError exception with type "UNDEFINED_OBJECT"
there is a typo to check if the specified traced node is invalid or can't be found. We should use nodeIndex but not i

Btw, the "Quality Chemical" mode should check the third parameter similar as "Quality Trace" mode too.

@LRossman Could you please take a look at this PR? Thanks


Imports in raft_internal.proto are inconsistent

I noticed some inconsistency in the *.proto files for etcd. Most files have imports relative to one directory above etcd root. E.g. in rpc.proto we see:
import "etcd/storage/storagepb/kv.proto";
import "etcd/auth/authpb/auth.proto";

However the file raft_internal.proto contains an import relative to its own directory:
import "etcdserver.proto";
import "rpc.proto";

This makes it problematic to create an automatic way to compile all the files into a working python package. Is there a reason for this inconsistency or is it a mistake?

@zefciu Can you send a pull request and fix it? Thanks.

@xiang90 @zefciu
Cockroach team also achieves this
https://github.com/cockroachdb/cockroach/blob/master/build/protobuf.mk#L60
with bunch of sed commands (subst in Makefile)
And also set the Proto file import paths like
package etcd.etcdserver.etcdserverpb;
option go_package = "etcdserverpb";

which would require changes in all of our proto files.
I don't think it's worth that effort since we only need this for etcdserverpb

We could make the import paths as absolute paths, just in raft_internal.proto, and let genproto.sh handle the string substituitions
Or combine etcdserver.proto, raft_internal.proto, rpc.proto into one file, so we don't need import paths

Closing due to inactivity. Please create a new issue if needed.


Youtube Audio Streams

In this branch I will add youtube support to the music module(cog).
It will be a pure additon.
I also decided to put exception classes in their seperate files.
In a later pr I will add more consistency to my code design and refactor the project to be even more modular.

To make sure that the youtube-dl library runs smoothly It's recommended to rebuild the docker container or manually update youtube-dl regularly.
(a weekly update should be more than enough)


⚠ ClamAV has degraded performance

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

HTTP code: 200
Response time: 70 ms

Resolved: ClamAV performance has improved in c49236c.


[Automation]  Setting Mac address using REST - HTTP_UNAUTHORIZED Response

Looks like this REST method is restricted or not allowed via REST for setting MAC value
The  interface /org/openbmc/NetworkManager/Interface//action/SetHwAddress  request results in HTTPS 401 response which means HTTP_UNAUTHORIZED
So this needs to confirm with the development if this method is valid or not. If so why this 401
GOOD PATH This test case add the ip address on the interface and validates that ip address has been added or not. Expectation is the ip address should get added.
Documentation:
Send a POST request on the session object found using the
Start / End / Elapsed:  20160913 10:50:42.478 / 20160913 10:50:51.358 / 00:00:08.880
10:50:51.358    INFO    Post Request using : alias=openbmc, uri=/org/openbmc/NetworkManager/Interface//action/SetHwAddress, data={"data": ["eth0", "00:01:6c:80:02:78"]},                     headers={u'Content-Type': u'application/json'}, files=None, allow_redirects=True
10:50:51.358    INFO    ${ret} = Response [401]
Two network test cases are failing Set and revert mac value

I think the networking will be unavailable after configuring the interface with a different MAC address. It's a known issue in NCSI stack. The new MAC address isn't configured to the filter in time, meaning the BRT won't forward incoming frames whose destination MAC is the newly configured one to BMC accordingly. As we have different (NCSI) code in 4.4/5/6 and 4.7, could you please claim which release the issue was reported from?

@GHF  The driver info
root@barreleye:~# cat /etc/version
20160913033422
root@barreleye:~# cat /etc/os-release
ID="openbmc-phosphor"
NAME="Phosphor OpenBMC (Phosphor OpenBMC Project Reference Distro)"
VERSION="v1.99.0-60"
VERSION_ID="v1.99.0-60-g2b717d8-dirty"
PRETTY_NAME="Phosphor OpenBMC (Phosphor OpenBMC Project Reference Distro) v1.99.0-60"
BUILD_ID="v1.99.0"

@gwshan From today build as well same error
Set valid Mac address :: GOOD PATH                              URI:https://<IP_ADDRESS>/org/openbmc/NetworkManager/Interface//action/SetHwAddress, method:Post, args:{u'data': {u'data': [u'eth0', u'00:21:cc:73:91:dd']}, u'headers': {u'Content-Type': u'application/json'}}
Response code:401, Content:{
"data": {
"description": "Login required"
},
"message": "401 Unauthorized",
"status": "error"
}
F
FFDC Collection Started 	:<PHONE_NUMBER>0959974789
FFDC Collection Completed 	:<PHONE_NUMBER>1034179346
Set valid Mac address :: GOOD PATH                              | FAIL |
401 != 200
Revert old Mac address :: GOOD PATH                             URI:https://<IP_ADDRESS>/org/openbmc/NetworkManager/Interface//action/SetHwAddress, method:Post, args:{u'data': {u'data': [u'eth0', u'00:01:6c:80:02:78']}, u'headers': {u'Content-Type': u'application/json'}}
Response code:401, Content:{
"data": {
"description": "Login required"
},
"message": "401 Unauthorized",
"status": "error"
}
F
FFDC Collection Started 	:<PHONE_NUMBER>1047281718
FFDC Collection Completed 	:<PHONE_NUMBER>1122420709
Revert old Mac address :: GOOD PATH                             | FAIL |
401 != 200
root@barreleye:~# cat /etc/version
20160913205350
root@barreleye:~# cat /etc/os-release
ID="openbmc-phosphor"
NAME="Phosphor OpenBMC (Phosphor OpenBMC Project Reference Distro)"
VERSION="v1.99.0-75"
VERSION_ID="v1.99.0-75-gc36e20e-dirty"
PRETTY_NAME="Phosphor OpenBMC (Phosphor OpenBMC Project Reference Distro) v1.99.0-75"
BUILD_ID="v1.99.0"
root@barreleye:~#
Build Name: #239-c36e20e583d937      Build Number: 239

Build Info:
Build #239-c36e20e583d937 (Sep 13, 2016 8:48:46 PM)
Build Change info:
Changes
Git (git https://github.com/openbmc/openbmc.git)
network: add missing systemd dep (commit: c36e20e) (detail)
Started by GitHub push by williamspatrick
Revision: c36e20e583d937052a0564794fa7f8e6be3264a7
refs/remotes/origin/master

@gwshan Anything we need to know more on this... ?

The error 401 Unauthorized says the REST server rejected the attempt.
I doubt it is a mapping back from the kernel.  I doubt this has anything to do with timings in the NCSI stack.   I expect the code to change the MAC is never executed.

ah okie.. From Journald i see message log like this
Sep 08 21:50:36 barreleye phosphor-gevent[974]:xx.xx.xx.xx - - [2016-09-08 21:50:36] "POST /org/openbmc/NetworkManager/Interface//action/SetAddress4 HTTP/1.1" 401 230 0.187601

Please check the automation, the most likely cause is an error with the login request or failing to pass the authorization cookie.

@mdmillerii   Just reran the test, the login request went fine.. but the next operation to set failed as reported
method:Post, args:{u'data': {u'data': [u'eth0', u'00:21:cc:73:91:dd']}, u'headers': {u'Content-Type': u'application/json'}}
Response code:401, Content:{
"data": {
"description": "Login required"
},
"message": "401 Unauthorized",
"status": "error"
}
Send a POST request on the session object found using the
Start / End / Elapsed: 	20160919 07:22:34.279 / 20160919 07:22:36.402 / 00:00:02.123
07:22:36.401 	INFO 	Post Request using : alias=openbmc, uri=/login, data={"data": ["root", "0penBmc"]},                     headers={u'Content-Type': u'application/json'}, files=None, allow_redirects=True
07:22:36.402 	INFO 	${resp} = <Response [200]>
Send a POST request on the session object found using the
Start / End / Elapsed: 	20160919 07:22:36.405 / 20160919 07:22:47.303 / 00:00:10.898
07:22:47.303 	INFO 	Post Request using : alias=openbmc, uri=/org/openbmc/NetworkManager/Interface//action/SetHwAddress, data={"data": ["eth0", "00:21:cc:73:91:dd"]},                     headers={u'Content-Type': u'application/json'}, files=None, allow_redirects=True
07:22:47.303 	INFO 	${ret} = <Response [401]>

I already had the patch allowing to run below commands. I will post them together with other NCSI patches at appropriate time:
bmc# ifconfig eth0 down
bmc# Ifconfig eth0 hw ether A0:42:3F:2D:08:7E
bmc# ifconfig eth0 up
bmc# # ifconfig
eth0      Link encap:Ethernet  HWaddr A0:42:3F:2D:08:7E
inet addr:<IP_ADDRESS>  Bcast:<IP_ADDRESS>  Mask:<IP_ADDRESS>
inet6 addr: fe80::a242:3fff:fe2d:87e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:955 errors:0 dropped:0 overruns:0 frame:0
TX packets:367 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:51235 (50.0 KiB)  TX bytes:23430 (22.8 KiB)
gwshan@gwshan:~$ sudo arp | grep "a0:42:3f:2d:08:7e"
gwshan@gwshan:~$ sudo ping -c 1 <IP_ADDRESS>
PING <IP_ADDRESS> (<IP_ADDRESS>) 56(84) bytes of data.
64 bytes from <IP_ADDRESS>: icmp_seq=1 ttl=64 time=1.62 ms
:
gwshan@gwshan:~$ sudo arp | grep "a0:42:3f:2d:08:7e"
palm8-bmc.ozlabs.ibm.co  ether   a0:42:3f:2d:08:7e   C                     eth0

@gwshan  That's cool.. is changes this one going in soon :)

@gkeishin Dear George, Are we still seeing this issue?

@sivassrr This is now in extended use case.. and we haven't tested it yet. On top of that the networking test case for MAC are needed to be updated as discussed earlier..

@prkatti1  Can you take a look into this Network test

@prkatti1  As discussed, Please test using official release driver of all our network TCs and update it accordingly.

Closing this as the new network refactor code is coming in.


HDDS-5043. Consistently use user's short name in secure mode

https://issues.apache.org/jira/browse/HDDS-5043
This issue aims to fix the incorrect usage of UGI's getUserName in secure mode.
In my test and search code, I Found we couldn't list volume accurately in secure mode.

@jojochuang Yeah, I check it except s3 (I don't know the usage about s3). I also found some wrong usage about ACL,  but it doesn't mater, Because acl check both getUserName and getShortUserName.
I only correct the code which will faill the unit test. If you think we need to correct all wrong usage, I will do it.
Here are all wrong usage:

wrong usage function
description

ObjectStore.listVolumesByUser
fixed in this PR

RpcClient.createVolume
fixed in this PR

OzoneAclUtil.checkAclRights
fixed in this PR

RpcClient.getAclList
usage for set default acl. Becuase this acl user is owner. So it doesn't matter

OmKeyGenerator.createKey
usage for set default acl. Becuase this acl user is owner. So it doesn't matter

s3
I don't know the usage about s3, so I do not correct it.

BenchMark
I think there is no need to set security mode when benchmark before, so I don't correct it.

@jojochuang Can I ask another question? I don't know why this PR fail when check, though this patch work well in my laptop or server.

From a quick peek the failure might be related to the check change. I am trigger a rebuild to verify

@bharatviswa504  FYI we should review the getShortUserName usage in s3g.
benchmark -- it's going to be valuable to be able to benchmark in secure mode in the future. But let's do that in a separate jira.

@jojochuang Can we reopen this issue? Sorry for rebase this branch, so this issue was closed.
And how about the progress about benchmark in secure mode?

i don't have the privilege to reopen the PR. Could you follow this instruction to reopen? https://gist.github.com/robertpainsi/2c42c15f1ce6dab03a0675348edd4e2c

i don't have the privilege to reopen the PR. Could you follow this instruction to reopen? https://gist.github.com/robertpainsi/2c42c15f1ce6dab03a0675348edd4e2c

Thank you very much! It works.

our tests have been quite flaky these days.  i retriggered the build.

@zhengchenyu failure in acceptance (secure) seems related to this change.  Can you please check?
Can follow link with read access                                      | FAIL |
'PERMISSION_DENIED User<EMAIL_ADDRESS>doesn't have READ permission to access volume 71945-target null null' does not contain 'key-in-readable-bucket'

@zhengchenyu failure in acceptance (secure) seems related to this change. Can you please check?
Can follow link with read access                                      | FAIL |
'PERMISSION_DENIED User<EMAIL_ADDRESS>doesn't have READ permission to access volume 71945-target null null' does not contain 'key-in-readable-bucket'

Yes, I found it. the setup of test like below:
    Execute             ozone sh volume addacl --acl user:testuser2/scm@EXAMPLE.COM:r ${target}
    Execute             ozone sh volume addacl --acl user:testuser2/scm@EXAMPLE.COM:rl ${source}
    Execute             ozone sh bucket addacl --acl user:testuser2/scm@EXAMPLE.COM:rl ${source}/readable-bucket
    Execute             ozone sh bucket addacl --acl user:testuser2/scm@EXAMPLE.COM:r ${target}/readable-link
    Execute             ozone sh bucket addacl --acl user:testuser2/scm@EXAMPLE.COM:r ${target}/link-to-unreadable-bucket

I think it is reasonable that set acl with testuser2. But if someone set acl with<EMAIL_ADDRESS>I think we need make sure that this setting is only for<EMAIL_ADDRESS>but not for testuser in other host.
I have fix it, Let's wait to check.

Still run failed. error like below:
List root                                                             | FAIL |
Parent suite setup failed:
'{
  "metadata" : { },
  "name" : "27000-source",
  "admin" : "root",
  "owner" : "root",
  "quotaInBytes" : -1,
  "quotaInNamespace" : -1,
  "usedNamespace" : 3,
  "creationTime" : "2021-08-06T09:11:43.411Z",
  "modificationTime" : "2021-08-06T09:12:18.682Z",
  "acls" : [ {
    "type" : "USER",
    "name" : "root",
    "aclScope" : "ACCESS",
    "aclList" : [ "ALL" ]
  }, {
    "type" : "GROUP",
    "name" : "root",
    "aclScope" : "ACCESS",
    "aclList" : [ "ALL" ]
    [ Message content over the limit has been removed. ]
  "name" : "vol-kaart",
  "admin" : "root",
  "owner" : "root",
  "quotaInBytes" : -1,
  "quotaInNamespace" : -1,
  "usedNamespace" : 1,
  "creationTime" : "2021-08-06T09:29:29.277Z",
  "modificationTime" : "2021-08-06T09:29:29.277Z",
  "acls" : [ {
    "type" : "USER",
    "name" : "root",
    "aclScope" : "ACCESS",
    "aclList" : [ "ALL" ]
  }, {
    "type" : "GROUP",
    "name" : "root",
    "aclScope" : "ACCESS",
    "aclList" : [ "ALL" ]
  } ]
}' does not match '"admin" : "(hadoop|testuser/scm[^@]*@EXAMPLE.COM)"'

I think here admin should be testuser, but not<EMAIL_ADDRESS>But I don't know why admin and owner is root. Can you tell me where is the setting of "acceptance (secure)", then I will set the integeration test in my pc. @adoroszlai @jojochuang

@zhengchenyu If you run acceptance (secure) check locally as
cd hadoop-ozone/dist/target/ozone-1.2.0-SNAPSHOT/compose/ozonesecure
KEEP_RUNNING=true ./test.sh

the docker cluster will be kept alive and you can investigate the problem.

@adoroszlai
I found this config, and the ugi.getShortUserName was replace with root.
CORE-SITE.XML_hadoop.security.auth_to_local=RULE:[2:$1](testuser2.*) RULE:[2:$1@$0](.*)s/.*/root/

I don't know why use this config, I can't find the init commit, this is too old.
In CreateVolumeHandler.java, I changed code. Because I think owner and admin should be shortUserName, but not fullUserName. But the shortUserName was replace with root.

@jojochuang @adoroszlai can you help reiview this? I have rebase all commit to f70217fa5a89194a54f94c62a0b55baada09d68b.

@zhengchenyu do you plan to rebase this PR to the latest code?

Hi @zhengchenyu , are you merging this PR?

@zhengchenyu Can you rebase this branch with the latest master? It is a good to have a successful CI run of should before it can be merged. @jojochuang Can this be merged?

Hi @jojochuang , can you help to take a look again?

Related PR https://github.com/apache/ozone/pull/2343

@fapifta , could you help to review this patch once you got time?

Looking through the patch, the change itself seems to be straigthforward, and the fact that the test are running fine after the modifications indicates for me that it will be better than it was before for sure.
With that I could not get into deeper investigation on the effects of any individual change, but I have checked that the relevant piece from #2343 is included in this PR.
I am +1 to commit this PR as it is, we may find more issues around the checks, but currently this seems to be better than it was. It is though important to note that it might affect those clusters that have similar access right configuration set as we had in tests, but I think this is a price we should pay, to simplify and do not make the code more complex to handle those cases.
After this one, I think #2343 will become meaningless and should be closed, I will comment there why.

Thank you @fapifta and @jojochuang for the code review.


Efficient nearest neighbor queries for Python 3.6

Currently Python 3.6 support is limited due to slow KDTree implementation of scipy <1.5 (see 1.5 changelog). Possible fix might be to use scikit.neighbors module instead.
See #1 for initial discussion of this issue.

Python 3.6 reached its end-of-life. Therefore, only Python 3.7 will be supported in future versions.


Help for downstream packagers

Hi,
it would be nice if there were some changes to make life for downstream packagers easier:

Use releases with names. At the moment the releases are just named with the version like 0.6.2, it would be better if they would be named libpsl-0.6.2 for tarball consistency.
The tarballs are not bootstrapped. I understand that generated stuff should not be in the repo, but the tarballs should contain configure as bootstrapping is system dependent.

Thanks! -- Dago

Hi Dago,

I'll try to remember ;-)
Just pushed a commit to include ./configure into dist tarball (branch 'develop). Could you give it a try and report back if that works for you ?

I just found an older libpsl tarball... and yes, it contains ./configure script.
So, what exactly is your problem here ?

Negative, the latest 0.6.2.tar.gz does not contain configure:
dam@unstable10s [unstable10s]:/home/dam/tmp > wget https://github.com/rockdaboot/libpsl/archive/0.6.2.tar.gz
--2015-01-20 15:29:27--  https://github.com/rockdaboot/libpsl/archive/0.6.2.tar.gz
Resolving proxy (proxy)... <IP_ADDRESS>
Connecting to proxy (proxy)|<IP_ADDRESS>|:3128... connected.
Proxy request sent, awaiting response... 302 Found
Location: https://codeload.github.com/rockdaboot/libpsl/tar.gz/0.6.2 [following]
--2015-01-20 15:29:27--  https://codeload.github.com/rockdaboot/libpsl/tar.gz/0.6.2
Connecting to proxy (proxy)|<IP_ADDRESS>|:3128... connected.
Proxy request sent, awaiting response... 200 OK
Length: 87140 (85K) [application/x-gzip]
Saving to: '0.6.2.tar.gz'

100%[====================================================================================================================================================================================================>] 87,140       277KB/s   in 0.3s

2015-01-20 15:29:28 (277 KB/s) - '0.6.2.tar.gz' saved [87140/87140]

dam@unstable10s [unstable10s]:/home/dam/tmp > gtar zxvf 0.6.2.tar.gz
libpsl-0.6.2/
libpsl-0.6.2/.dir-locals.el
libpsl-0.6.2/.gitignore
libpsl-0.6.2/.travis.yml
libpsl-0.6.2/ABOUT-NLS
libpsl-0.6.2/AUTHORS
libpsl-0.6.2/COPYING
libpsl-0.6.2/LICENSE
libpsl-0.6.2/Makefile.am
libpsl-0.6.2/NEWS
libpsl-0.6.2/README
libpsl-0.6.2/README.md
libpsl-0.6.2/autogen.sh
libpsl-0.6.2/configure.ac
libpsl-0.6.2/data/
libpsl-0.6.2/data/Makefile.am
libpsl-0.6.2/data/effective_tld_names.dat
libpsl-0.6.2/data/test_psl.txt
libpsl-0.6.2/docs/
libpsl-0.6.2/docs/libpsl/
libpsl-0.6.2/docs/libpsl/Makefile.am
libpsl-0.6.2/docs/libpsl/libpsl-docs.sgml
libpsl-0.6.2/docs/libpsl/libpsl-sections.txt
libpsl-0.6.2/docs/libpsl/version.xml.in
libpsl-0.6.2/include/
libpsl-0.6.2/include/Makefile.am
libpsl-0.6.2/include/libpsl.h
libpsl-0.6.2/libpsl.pc.in
libpsl-0.6.2/po/
libpsl-0.6.2/po/Makevars
libpsl-0.6.2/po/POTFILES.in
libpsl-0.6.2/src/
libpsl-0.6.2/src/Makefile.am
libpsl-0.6.2/src/psl.c
libpsl-0.6.2/src/psl2c.c
libpsl-0.6.2/tests/
libpsl-0.6.2/tests/Makefile.am
libpsl-0.6.2/tests/test-is-cookie-domain-acceptable.c
libpsl-0.6.2/tests/test-is-public-all.c
libpsl-0.6.2/tests/test-is-public-builtin.c
libpsl-0.6.2/tests/test-is-public.c
libpsl-0.6.2/tests/test-registrable-domain.c
libpsl-0.6.2/tools/
libpsl-0.6.2/tools/Makefile.am
libpsl-0.6.2/tools/psl.c
dam@unstable10s [unstable10s]:/home/dam/tmp > ls -l 0.6.2/configure
0.6.2/configure: No such file or directory

That is the tar.gz of the archive from github. It is not a distribution tarball (created by make dist). Thus ./configure is missing.

I see. Is there an official release tarball? I can't find one and the debian package also seems to do autogen.sh. It would make the life for downstream packagers much easier. Thanks! -- Dago

I just added a tarball within the github release section (special present for you ;-).
I am not sure how a packager is able to do his/her job without the complete toolchain incl. auto* tools and tools for generating docs. Tarballs are generated with some specialties from the generating system inside (though I do also see some advantages). So I personally tend to create packages from the real sourcecode. And that seems the way the bigger distributors go...
But anyway, thanks for bringing it up. I'll start adding tarballs for the next releases.

Well, being as the Fedora libpsl maintainer here, I'd say this is pretty common.
But packagers should be able to handle this:
[ -f configure ] || autoreconf -fiv


GEOPY-1883: Failing docs on plate-simulation

GEOPY-1883 - Failing docs on plate-simulation

release branch merged in with changes of https://github.com/MiraGeoscience/plate-simulation/pull/51. No need for further changes


content_md5 causes TypeError: string argument without an encoding

Package Name: azure.storage.blob
Package Version: 12.3.2
Operating System: MacOS and Ubuntu Linux
Python Version: 3.7

Describe the bug
When uploading a large file I'm trying to use the content_md5 property of the ContentSettings object.
When I try to set the set_http_headers with the documented type str this fails with TypeError: string argument without an encoding. this comes from the construction of the standard bytearray. This is all a bit goofy because I already had to use the base64 package which returns  bytes.
To Reproduce
Steps to reproduce the behavior:
simplified for the issue. My code will chunk to generate md5.
with open(filepath, 'rb') as f:
  hash = hashlib.md5(f.read())
  f.seek(0)
  blobclient.upload_blob(f, content_settings=ContentSettings(content_md5=b64encode(hash.digest()).decode('utf-8)))

Providing this content settings configuration for upload_blob and set_http_headers methods both cause this exception. Looks like different code paths causing the same problem, copy and paste-like. Seems to work fine with V2 of the SDK.
Expected behavior
No exceptions and correct md5 so a consumer can validate the result of the whole file.

Hi @thomasmilas-swe-bc
Thanks for reaching out!
if you do content_md5=hash.digest() it will work. It's pretty confusing, we will try to make it easier to use.

Hi @thomasmilas-swe-bc
Thanks for reaching out!
if you do content_md5=hash.digest() it will work. It's pretty confusing, we will try to make it easier to use.

Yea, the ContentSetting object that we are setting content_md5 on should have the proper docs on what it expects. Seems like this is a carryover from the v2 SDK where a BASE64 string was requried. My linting goes crazy because that hash.digest returns bytes

Hi @thomasmilas-swe-bc
Thanks for your feedback, we will improve the doc to tell the user to pass in byte. Let me know how you feel about this!

we will close this for now and make the doc clear


Training of Swin-L for video instance segmentation

Hi Bowen,
I am working on an 8*V100(32G) cluster.
When I use this config for training, it is still out of memory.
python scripts/train_net_video.py \
  --num-gpus 8 \
  --config-file configs/youtubevis_2021/swin/video_maskformer2_swin_large_IN21k_384_bs16_8ep.yaml

RuntimeError: CUDA out of memory. Tried to allocate 68.00 MiB (GPU 4; 31.75 GiB total capacity; 28.95 GiB already allocated; 11.75 MiB free; 30.10 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation.  See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

I will appreciate it if you can provide more information about GPUs for training.

Swin-L models were all trained with 16*V100(32G)


Flag for color coded output

Is this a BUG REPORT or FEATURE REQUEST?:

[ ] bug
[X] feature

Description of Bug or Feature
It would be really nice to get the output color-coded. Especially when -vv is flagged. In a reasonably large package in combination with a wide terminal output, correlating those "COVERED" and "MISSED" labels with the corresponding item is often difficult.
Having the option to print lines as green for covered items and red for missed items would be really great to quickly identify the items with no docstring.

great idea - should be easy enough; I'll try to incorporate it in the next release!

Added --color (default) / --no-color flags in ddcfd464 and released in v 1.2.0 - thanks for the suggestion!


ListItem Joy - hover effect not applied in beta as it was in alpha

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Steps to reproduce 🕹
Link to live example:
https://codesandbox.io/p/sandbox/wispy-bush-nz49xs
Steps:

install latest joy
use baseline example in docs https://mui.com/joy-ui/react-list/#actionable
UI doesn't have noticable hover like in docs pages

This extends to other components as well, but after the theme changes in beta.0, many items don't seem to have the correct styling.
You can see how the alpha looks here:
https://codesandbox.io/p/sandbox/lively-monad-8chdhh
Current behavior 😯
UI has limited visible hover/selected change on some components.
Expected behavior 🤔
UI state should show hover/selected states correctly.
Context 🔦
No response
Your environment 🌎

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Thanks for reporting the issue but the hover background is applied. It's just that the color is the same as the body background. If you wrap the list with Sheet component or a white background container, you should see the hover background.

Here is the proof:
https://github.com/mui/material-ui/assets/18292247/61d061d1-2bb4-4914-baf7-99dc20da2422


updated README file

Hey Guys, I have updated the Readme file. Let me know if we need to add anything else. The references are to be added.

Ok good stuff, I think this contains everything we need for an proper README - but we need to add references at some point.


Add session summary report

In session, start/stop report generation to track player, spellName, and rank used to whisper to raid leader or post to chat.

MVP done with #44

if you send to say/raid/guild, there's a chance you'll get yourself muted from spamming. Still need to batch or limit outputs.

Haven't hit rate limiting yet


syncplay.pl has broken links to the beta download

Describe the bug
Links to download the beta version of Syncplay in the official website syncplay.pl are broken
To Reproduce
Steps to reproduce the behavior:

Go to syncplay.pl
Click Download Syncplay 1.7.0 beta 1
Attempt to download any version

Additional information
The links point to 1.70beta1 where they should point to 1.7.0beta1 - I assume the release on Github got renamed but the links at syncplay.pl didn't get updated.

Cheers, that's been fixed. You're right on all fronts.


Module Manager config file incomplete syntax

Hi there.
I am the mod author of DeepFreeze Continued...
I have an issue with Snacks compatibility that is caused by incomplete Module Manager syntax in your patch.cfg file that you distribute with Snacks.
The issue is you are not using the :FOR[Snacks] syntax in your MM file and therefore your MM config file is not running in the correct sequence, resulting in other MM config files being overwritten and/or unable to override each other. If you could make this change then our mods would work well together.
If you change the syntax in your patch.cfg to have :FOR[Snacks] at the end of every @PART line in your file then everything works well together.
Example:
@PART[*]:HAS[@MODULE[ModuleCommand],#CrewCapacity[1]]:FOR[Snacks]
.........
@PART[*]:HAS[@MODULE[ModuleCommand],#CrewCapacity[2]]:FOR[Snacks]
.........
etc....

Thanks for the heads up.  I plan to make some improvements to the MM config
based on this and what a few others have suggested.  I'm not sure when I'll
get around to publishing the updates.  Hopefully in the next week or two.
Troy
On Thu, Jun 11, 2015 at 5:32 PM, Jamie Leighton<EMAIL_ADDRESS>wrote:

Hi there.
I am the mod author of DeepFreeze Continued...
I have an issue with Snacks compatibility that is caused by incomplete
Module Manager syntax in your patch.cfg file that you distribute with
Snacks.
The issue is you are not using the :FOR[Snacks] syntax in your MM file and
therefore your MM config file is not running in the correct sequence,
resulting in other MM config files being overwritten and/or unable to
override each other. If you could make this change then our mods would work
well together.
If you change the syntax in your patch.cfg to have :FOR[Snacks] at the end
of every @PART https://github.com/PART line in your file then
everything works well together.
Example:
@PART[]:HAS[@MODULE[ModuleCommand],#CrewCapacity[1]]:FOR[Snacks]
.........
@PART[]:HAS[@MODULE[ModuleCommand],#CrewCapacity[2]]:FOR[Snacks]
.........
etc....
—
Reply to this email directly or view it on GitHub
https://github.com/tgruetzm/Snacks/issues/8.

Any idea on when you might be able to make this change?
Thanks!

Still awaiting a snacks update?

I have try to simplify the patch with some changes, now is added only store capacity for snacks and  the lab can support max 3 kerbals
@PART[]:HAS[@MODULE[ModuleCommand],#CrewCapacity[],~CrewCapacity[0],!RESOURCE[Snacks]]
{
RESOURCE
{
name= Snacks
amount = 0
maxAmount = 50
@maxAmount *= #$/CrewCapacity$
}
}
@PART[]:HAS[@MODULE[ModuleCommand],#CrewCapacity[],~CrewCapacity[0]!RESOURCE[Snacks]]
{
RESOURCE
{
name= Snacks
amount = 0
maxAmount = 100
@maxAmount *= #$/CrewCapacity$
}
}
@PART[seatExternalCmd]
{
RESOURCE
{
name= Snacks
amount = 2
maxAmount = 2
}
}
@PART[Large_Crewed_Lab]
{
@RESOURCE[Snacks]
{
@amount = 200
@maxAmount = 200
}
MODULE
{
	 name = ModuleResourceConverter
	 ConverterName = Snack Cultivator
	 StartActionName = Start Snack Cultivator
	 StopActionName = Stop Snack Cultivator
	AutoShutdown = false
	GeneratesHeat = false
	UseSpecialistBonus = true
	SpecialistEfficiencyFactor = 0.2
	SpecialistBonusBase = 0.05
	Specialty = Engineer
	EfficiencyBonus = 1

	 INPUT_RESOURCE
	 {
		ResourceName = Ore
		Ratio = 0.00015
		FlowMode = STAGE_PRIORITY_FLOW
	 }
	 INPUT_RESOURCE
	 {
		ResourceName = ElectricCharge
		Ratio = 5
	 }
	 OUTPUT_RESOURCE
	 {
		ResourceName = Snacks
		Ratio = 0.00015
		DumpExcess = false
		FlowMode = STAGE_PRIORITY_FLOW
	 }
}

}
@PART[cupola]
{
@RESOURCE[Snacks]
{
@amount = 0
@maxAmount = 100
}
}
@PART[roverBody]
{
RESOURCE
{
name = Snacks
amount = 0
maxAmount = 10
}
}


Reconsider default divisibility

I think divisibility zero might be a better default. 18 is fine, but it could be unexpected.

18 was pulled from ethereum to coincide with the borrowed and non-sensical name BRC-20.
Bitcoin is all about 8 dec so I encourage staying inline with Bitcoin of a default other than 0 (which I might prefer acrually).

Changed to 0, I think a zero default is just simpler conceptually.


UTC probably a more appropriate default timezone

Since this image is used downstream by various others, it was rather hidden what the timezone would be until referring to this repository.
Etc/UTC seems like a reasonable timezone as default

You are right, makes much more sense.  These are copies of our internal images with a few features stripped out for sharing with the public. I've altered each to utilize UTC going forward for usage on the Docker Hub.


endPhaseIf doesn't have a global equivalent

Most options can be defined per-phase or globally.  We should do this for endPhaseIf as well (especially so it can be used in the default phase).
Code location: https://github.com/nicolodavis/boardgame.io/blob/master/src/core/flow.js#L315
Compare with: https://github.com/nicolodavis/boardgame.io/blob/master/src/core/flow.js#L329

Obsolete with the upcoming phase redesign.


feat: add type declaration

Thanks for this nice package!
I want to use it in a TS project, so I can add type declaration.

Published in v1.2.0