Details about the pre-trained denoise model

Hi, I am wondering how is the pre-trained denoise model trained.
Is it first trained with the paired Noisy-GT images from dataset(SID or LRD), which refers to the score of "Paired data" in Table 1? During noise generator training, the denoise model is frozen. From my understanding, then the denoising model should be re-trained with generated noisy data pairs(only the generated pairs or the combination of generated pairs and original pairs), which refers to the score of "Ours" in Table 1.
Please correct me if I am wrong. Thanks.

Hi, I am wondering how is the pre-trained denoise model trained. Is it first trained with the paired Noisy-GT images from dataset(SID or LRD), which refers to the score of "Paired data" in Table 1? During noise generator training, the denoise model is frozen. From my understanding, then the denoising model should be re-trained with generated noisy data pairs(only the generated pairs or the combination of generated pairs and original pairs), which refers to the score of "Ours" in Table 1. Please correct me if I am wrong. Thanks.

Firstly, the Pre-trained Denoise-Net is trained using pairwise noisy-GT images from the dataset (SID or LRD) and frozen in the noise generator training.
Secondly, in the denoising training phase, we only utilize the generated noisy data pairs to train the denoising network from scratch, without using any real data.
Otherwise, our method improves the PSNR of the results by 1 dB and the SSIM by 0.02 when the real and generated data are mixed in a 1:1 ratio.


Effectiveness of the defense

Hi,
thanks for your interesting paper and for releasing the source code for the experiments, too. When I saw your paper for the first time, I was really interested in it as the results looked very promising.
During the past few weeks, I have worked with this code and tried to reproduce your results. Doing this, I noticed some things in your code that I would like to talk about.
My first observation is about your experiments with the VGG network. I have noticed that you calculate the KL-divergence for all layers in the network but do not use this sum of the divergences but actually just the divergence of the last layer (cf. L39 of vgg_vi.py). Therefore, your proposed regularization is only applied to the last layer during training and not the entire network. This is different from the description you give in the ICLR paper. Did you do this on purpose? I tried to train the network using the divergence on the whole network and failed using the hyperparameters reported in the paper. Is there something I am overlooking?
My second observation is about your STL10 experiments, on which I focused after my initial observations of the issues with the VGG network. I noticed that one can improve the effectiveness of the PGD attack on the Bayesian network by averaging the gradients over multiple forward-backward passes before actually performing the PGD step on the input. Using this method I was able to decrease the accuracy of your model (based on the checkpoint you've uploaded). The following table compares the results you've listed in the ICLR print with the ones I obtained with my modified attack:

Attack
0.015
0.035
0.055
0.07

Your PGD Attack
51.8
37.6
27.2
21.1

My PGD Attack
47.0
30.3
16.0
8.6

Here, one sees that for every value of the perturbation strength the modified attack is stronger, i.e. decreases the model's accuracy more strongly. This is especially true for large perturbations (e.g. 21.1% vs. 8.6%).
Next, I played a little bit around with the training of the normal VGG network (w/o Bayesian reasoning). By tweaking the hyperparameters I was able to get these accuracies on a PGD attack with the same attack parameters as you used for the results in your paper:

Training method
0.015
0.035
0.055
0.07

Your hyperparameters
46.7
27.4
12.8
7.0

My hyperparameters
43.5
30.7
18.9
12.8

Now, one can compare this set of results with the results I got with my modified PGD attack on your Bayesian model. It looks like the Bayesian model/training is not really improving the robustness of the network.
I am really looking forward to your answers and explanations, hoping that all of this can easily be solved.
Thanks,
Roland

@FlashTek
To your first question, Line 33 adds all KL terms.
I will try your new PGD-attack later.

Oh sorry, that's a bug, I will fix it soon. It is supposed to be something in aaron_vi.py

@xuanqing94 Did you run any additional experiments or do you have any explanations for my observations yet? Right now, the results of my experiments look like they contradict the main claim of your paper, that an adversarially trained Bayesian network is way more robust than a deterministic network. Provided my evaluation method was not faulty, I feel that we should shed some light on the question of whether using a Bayesian network increases the robustness because currently, it does not look like it.

@FlashTek I have some initial experiments after fixing the bugs, the original hyperparameters are no longer suitable. So I am still finding better ones (specifically the original alpha value is too big).
It is still too early to draw a conclusion, the reason you can easily attack BayesianDefense is that, due to the bug you found, only the last layer has large noise, so you can imagine the final output is just Gaussian distribution, as O = W * x, and W is Gaussian. Multiple backpropagation can cancel the noise out. However, things become different when each layer has independent noise, you can refer to the twin paper "https://arxiv.org/abs/1712.00673".
I am currently having a internship this summer, so pls expect a slow experiment progress.

@xuanqing94 Thanks for taking a look into it. I think your argument is only valid for the networks on CIFAR10/ImageNet-143 as for those networks there was this bug in the code for your initial experiments. But this does not hold true for the network on the STL10 dataset as you did not do the same typo again - this network is properly trained, just like you describe it in your paper.
I think that here we have two different problems:

the missing kl terms in the implementation of the network for CIFAR10/ImageNet-143
the general question whether this defense is really increasing the robustness if one evaluates it in a fair way.

I wrote done a more detailed description of the problems I faced testing the robustness of this defense here. Right now, I do not see a clear path of how to overcome this issue, even though the defense looked very promising at the beginning. If you'd like, we can further discuss this (personally) once you are done with your internship/have some free time again:)

@xuanqing94  Any update on this topic?


Use of deprecated stats_60

Documentation says: "This use of this field is deprecated, and will be removed in the future. Please use the last_15 endpoint to get the latest number of reports over the last 15 minutes. Alternatively, you can also use the last number in the stats_24 field to get a rough representation."

Thanks a lot, Sebastian.
I have merged your PRs.
Best,
Torben


book model

This is just the book model based on concept art from Pheonix

Where can I find the book concept art? It's not in the preproduction folder, is it?


player.on("ready")

I'm getting this error every now and then:
TypeError: player.on is not a function
    at JWPlayer._renderJWPlayerElement (http://localhost:3001/bower_components/ng-jwplayer/jwplayer.js:77:20)
    at JWPlayer.link (http://localhost:3001/bower_components/ng-jwplayer/jwplayer.js:112:21)
    at http://localhost:3001/bower_components/angular/angular.js:9033:44
    at invokeLinkFn (http://localhost:3001/bower_components/angular/angular.js:9039:9)
    at nodeLinkFn (http://localhost:3001/bower_components/angular/angular.js:8533:11)
    at compositeLinkFn (http://localhost:3001/bower_components/angular/angular.js:7929:13)
    at compositeLinkFn (http://localhost:3001/bower_components/angular/angular.js:7932:13)
    at compositeLinkFn (http://localhost:3001/bower_components/angular/angular.js:7932:13)
    at publicLinkFn (http://localhost:3001/bower_components/angular/angular.js:7809:30)
    at boundTranscludeFn (http://localhost:3001/bower_components/angular/angular.js:7947:16) <jwplayer ng-src="{{ streamPath }}" player-options="options" player-id="myplayer{{user.id}}" class="ng-isolate-scope">

Where did you find the code ng-jwplayer?
Are you sure it is the right repository and not https://github.com/ampervue/ngJWPlayer instead?
By the way, you should try this code containing updates : https://github.com/GuillaumeCisco/angular-jwplayer

You are right, @GuillaumeCisco . I am sorry for the confusion


[OTHER] (P+) Refactor a Complex Function

What would you like to share?
Refactor at least one of the functions (per group member) with high
cyclomatic complexity to reduce it by at least 35 %
Additional information
No response

working on remove and divide now

Working on regexRecursion with 2 params now

Working on regexRecursion with 4 arguments.

Done


Added optional passphrase for client certificates

Added optional passphrase for client certificates during both initial install and later certificate generation. Created after looking for a way to add passphrases for client certificates and finding #1019

Check previous duplicate issues on this matter. I have no interest in merging this feature.


Improve Log Viewer UX

Here's something I think would be nice to have to improve UX of logs viewer:
Render logs as a HTML list instead of xterm
This would make scrolling and viewing a bit nicer and easier to navigate.
Right now the scrolling behaves like a terminal scrolling (per line)
Definitely would need virtualization here
Detect and highlight errors
Being able to see errors right away would be nice
Basic filtering
Ability to only show errors or warnings, logs often have a ton of irrelevant lines so going straight to the errors/warnings would be nice

Related: This issue from a user is suggesting we have a switch for parsing json logs.


Running python eureka.py env=forward_locomotion produces All iterations of code generation failed, aborting...

python eureka.py env=forward_locomotion
[2024-05-07 05:06:14,160][root][INFO] - Workspace: /media/sda1/repos/DrEureka/eureka/outputs/eureka/2024-05-07_05-06-14
[2024-05-07 05:06:14,160][root][INFO] - Project Root: /media/sda1/repos/DrEureka/eureka
[2024-05-07 05:06:14,160][root][INFO] - Using LLM: gpt-4-0125-preview
[2024-05-07 05:06:14,160][root][INFO] - Task: Forward Locomotion
[2024-05-07 05:06:14,160][root][INFO] - Task description: To make the go1 quadruped run forward with a velocity of exactly 2.0 m/s in the positive x direction of the global coordinate frame. The policy will be trained in simulation and deployed in the real world, so the policy should be as steady and stable as possible with minimal action rate. Specifically, as it's running, the torso should remain near a z position of 0.34, and the orientation should be perpendicular to gravity.      Repeat this iteration from the current message checkpoint!
[2024-05-07 05:17:35,799][root][INFO] - All iterations of code generation failed, aborting...
[2024-05-07 05:17:35,799][root][INFO] - Please double check the output env_iter*_response*.txt files for repeating errors!

This occurs because of https://github.com/eureka-research/DrEureka/issues/2
You can see the fix here https://github.com/eureka-research/DrEureka/pull/3/commits/49bc214989c07937639cecc4485fb4bcd1f39119


Even if I stops the debugging session, vs code continues to run ballerina process in background

Description:
I debugged a ballerina service and stopped it. and when I starts debugging vscode complains that (debug) port is already taken. What has happened is VScode didn't stop/terminate ballerina program previously therefore, I can't start the new sessions.
This is a real irritation.
Suggested Labels:
blocker
Suggested Assignees:

Affected Product Version:
ballerina 1.2.9,
OS, DB, other environment details and versions:
Mac OS
Steps to reproduce:
see above
Related Issues:

Closing since this is fixed with #https://github.com/ballerina-platform/ballerina-lang/pull/28549


Improve handling of high-frequency query terms in the image view

When visiting an item consisting of multiple images, e.g. a book: https://wellcomecollection.org/works/afbv9sqw/items
You can supply a query in order to find instances of that term in it.  e.g. https://wellcomecollection.org/works/afbv9sqw/items?query=force
When the frequency of this term is reasonable, then the response is returned promptly.   However, given a very high frequency term (such as a common stop word) takes a long time to return, and may time out. In afbv9sqw, there are 453 instances of the word force (this is fine) and 4231 instances of the word the (this is bad)

More at https://wellcome.slack.com/archives/C3TQSF63C/p1701685507121779


Fix PHP 5.3 compatibility

Removed short array syntax to maintain php 5.3 style. I believe this is a bug since composer.json still has a PHP requirement value of >= 5.3.3.

Thank you for spot and fix :)


perf: Optimize the drawing of special point & starting point / fix: Fix PointTool MarkerPoint Opeartion

:tada: This PR is included in version 1.0.0 :tada:
The release is available on npm package (@latest dist-tag)
Your semantic-release bot :package::rocket:


Don't generate fetcher without operations

🚨 IMPORTANT: Please do not create a Pull Request without creating an issue first.
Any change needs to be discussed before proceeding. Failure to do so may result in the rejection of the pull request.
Description
Don't generate fetcher definition when there are no operations.
Related #5599
Type of change
Please delete options that are not relevant.

[X] Bug fix (non-breaking change which fixes an issue)

Screenshots/Sandbox (if appropriate/relevant):
Adding links to sandbox or providing screenshots can help us understand more about this PR and take action on it as appropriate
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
yarn build && yarn test

[X] Added new unit test

Test Environment:

OS: Windows 10
@graphql-codegen/...:
NodeJS: v14.15.5

Checklist:

[X] I have followed the CONTRIBUTING doc and the style guidelines 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
[X] I have added tests that prove my fix is effective or that my feature works
[X] New and existing unit tests pass locally with my changes
[X] Any dependent changes have been merged and published in downstream modules

Further comments
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...

Thanks @jvcmanke !


All examples core dump when running

This is built on a Ubuntu 18.04 docker following all of the directions for adding requirements.  Each example dies when trying to parse and build from its urdf file.  I've tried using DART master as well, which doesn't help.  Any ideas on what I could have missed that's causing this issue?
Compiled:
g++ -g -I/usr/include/eigen3 -o /tmp/hex src/examples/hexapod.cpp -l RobotDARTSimu -ldart

Run (gdb /tmp/hex):
Program received signal SIGSEGV, Segmentation fault.
__GI___libc_free (mem=0x3a1) at malloc.c:3103
3103	malloc.c: No such file or directory.
(gdb) bt
#0  __GI___libc_free (mem=0x3a1) at malloc.c:3103
#1  0x00007fa6fc740f5b in dart::common::EmbeddedStateAndPropertiesAspect<dart::dynamics::GenericJoint<dart::math::SE3Space>, dart::dynamics::detail::GenericJointState<dart::math::SE3Space>, dart::dynamics::detail::GenericJointUniqueProperties<dart::math::SE3Space> >* dart::common::SpecializedForAspect<dart::common::EmbeddedStateAndPropertiesAspect<dart::dynamics::GenericJoint<dart::math::SE3Space>, dart::dynamics::detail::GenericJointState<dart::math::SE3Space>, dart::dynamics::detail::GenericJointUniqueProperties<dart::math::SE3Space> > >::_createAspect<dart::dynamics::FreeJoint::Properties const&>(dart::common::SpecializedForAspect<dart::common::EmbeddedStateAndPropertiesAspect<dart::dynamics::GenericJoint<dart::math::SE3Space>, dart::dynamics::detail::GenericJointState<dart::math::SE3Space>, dart::dynamics::detail::GenericJointUniqueProperties<dart::math::SE3Space> > >::type<dart::common::EmbeddedStateAndPropertiesAspect<dart::dynamics::GenericJoint<dart::math::SE3Space>, dart::dynamics::detail::GenericJointState<dart::math::SE3Space>, dart::dynamics::detail::GenericJointUniqueProperties<dart::math::SE3Space> > >, dart::dynamics::FreeJoint::Properties const&) [clone .isra.593] () from /usr/local/lib/libdart.so.6.9
#2  0x00007fa6fc741f27 in dart::dynamics::FreeJoint::FreeJoint(dart::dynamics::FreeJoint::Properties const&) () from /usr/local/lib/libdart.so.6.9
#3  0x00007fa6fcc70ef5 in dart::dynamics::Skeleton::createJointAndBodyNodePair<dart::dynamics::FreeJoint, dart::dynamics::BodyNode> (this=0x55ca0103a9c0,
    _parent=0x0, _jointProperties=..., _bodyProperties=...)
    at /usr/local/include/dart/dynamics/detail/Skeleton.hpp:82
---Type <return> to continue, or q <return> to quit---
#4  0x00007fa6fb596b0b in dart::utils::DartLoader::modelInterfaceToSkeleton(urdf::ModelInterface const*, dart::common::Uri const&, std::shared_ptr<dart::common::ResourceRetriever> const&) () from /usr/local/lib/libdart-utils-urdf.so.6.9
#5  0x00007fa6fb5974ad in dart::utils::DartLoader::parseSkeleton(dart::common::Uri const&, std::shared_ptr<dart::common::ResourceRetriever> const&) ()
   from /usr/local/lib/libdart-utils-urdf.so.6.9
#6  0x00007fa6fcc66e38 in robot_dart::Robot::_load_model (
    this=this@entry=0x55ca0102cfe0, filename="res/models/pexod.urdf",
    packages=std::vector of length 0, capacity 0,
    is_urdf_string=is_urdf_string@entry=false)
    at ../src/robot_dart/robot.cpp:1013
#7  0x00007fa6fcc6990b in robot_dart::Robot::Robot (this=0x55ca0102cfe0,
    model_file="res/models/pexod.urdf",
    packages=std::vector of length 0, capacity 0, robot_name=...,
    is_urdf_string=<optimized out>, cast_shadows=<optimized out>,
    damages=std::vector of length 0, capacity 0)
    at ../src/robot_dart/robot.cpp:151
#8  0x00007fa6fcc69c95 in robot_dart::Robot::Robot (this=0x55ca0102cfe0,
    model_file="res/models/pexod.urdf", robot_name="robot",
    is_urdf_string=<optimized out>, cast_shadows=<optimized out>, damages=...)
    at ../src/robot_dart/robot.cpp:157
#9  0x000055c9ff1d96c0 in __gnu_cxx::new_allocator<robot_dart::Robot>::construct<robot_dart::Robot, char const (&) [22]> (this=0x7ffeb510ad67,
---Type <return> to continue, or q <return> to quit---
    __p=0x55ca0102cfe0) at /usr/include/c++/7/ext/new_allocator.h:136
#10 0x000055c9ff1d90d6 in std::allocator_traits<std::allocator<robot_dart::Robot> >::construct<robot_dart::Robot, char const (&) [22]> (__a=...,
    __p=0x55ca0102cfe0) at /usr/include/c++/7/bits/alloc_traits.h:475
#11 0x000055c9ff1d8b5c in std::_Sp_counted_ptr_inplace<robot_dart::Robot, std::allocator<robot_dart::Robot>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<char const (&) [22]> (this=0x55ca0102cfd0, __a=...)
    at /usr/include/c++/7/bits/shared_ptr_base.h:526
#12 0x000055c9ff1d84a5 in std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<robot_dart::Robot, std::allocator<robot_dart::Robot>, char const (&) [22]> (this=0x7ffeb510af28, __a=...)
    at /usr/include/c++/7/bits/shared_ptr_base.h:637
#13 0x000055c9ff1d8014 in std::__shared_ptr<robot_dart::Robot, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<robot_dart::Robot>, char const (&) [22]> (this=0x7ffeb510af20, __tag=..., __a=...)
    at /usr/include/c++/7/bits/shared_ptr_base.h:1295
#14 0x000055c9ff1d78d3 in std::shared_ptr<robot_dart::Robot>::shared_ptr<std::allocator<robot_dart::Robot>, char const (&) [22]> (this=0x7ffeb510af20,
    __tag=..., __a=...) at /usr/include/c++/7/bits/shared_ptr.h:344
#15 0x000055c9ff1d6d48 in std::allocate_shared<robot_dart::Robot, std::allocator<robot_dart::Robot>, char const (&) [22]> (__a=...)
    at /usr/include/c++/7/bits/shared_ptr.h:691
#16 0x000055c9ff1d60cc in std::make_shared<robot_dart::Robot, char const (&) [2---Type <return> to continue, or q <return> to quit---
2]> () at /usr/include/c++/7/bits/shared_ptr.h:707
#17 0x000055c9ff1d515d in main () at src/examples/hexapod.cpp:11
(gdb)

Additional info (linking)
 ldd /tmp/hex
	linux-vdso.so.1 (0x00007fffa57eb000)
	libRobotDARTSimu.so => /usr/local/lib/libRobotDARTSimu.so (0x00007f56b6152000)
	libdart.so.6.9 => /usr/local/lib/libdart.so.6.9 (0x00007f56b5902000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f56b5579000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f56b5361000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f56b4f70000)
	libdart-utils.so.6.9 => /usr/local/lib/libdart-utils.so.6.9 (0x00007f56b4cba000)
	libdart-utils-urdf.so.6.9 => /usr/local/lib/libdart-utils-urdf.so.6.9 (0x00007f56b4a89000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f56b486a000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f56b44cc000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f56b42c8000)
	libdart-external-odelcpsolver.so.6.9 => /usr/local/lib/libdart-external-odelcpsolver.so.6.9 (0x00007f56b40ba000)
	libboost_system.so.1.65.1 => /usr/lib/x86_64-linux-gnu/libboost_system.so.1.65.1 (0x00007f56b3eb5000)
	libboost_filesystem.so.1.65.1 => /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.65.1 (0x00007f56b3c9b000)
	libboost_regex.so.1.65.1 => /usr/lib/x86_64-linux-gnu/libboost_regex.so.1.65.1 (0x00007f56b3993000)
	libfcl.so.0.5 => /usr/lib/x86_64-linux-gnu/libfcl.so.0.5 (0x00007f56b2eab000)
	libassimp.so.4 => /usr/lib/x86_64-linux-gnu/libassimp.so.4 (0x00007f56b24e0000)
	liboctomap.so.1.8 => /usr/lib/liboctomap.so.1.8 (0x00007f56b229c000)
	liboctomath.so.1.8 => /usr/lib/liboctomath.so.1.8 (0x00007f56b2096000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f56b65b8000)
	libtinyxml2.so.6 => /usr/lib/x86_64-linux-gnu/libtinyxml2.so.6 (0x00007f56b1e82000)
	liburdfdom_model.so.1.0 => /usr/lib/x86_64-linux-gnu/liburdfdom_model.so.1.0 (0x00007f56b1c60000)
	libicui18n.so.60 => /usr/lib/x86_64-linux-gnu/libicui18n.so.60 (0x00007f56b17bf000)
	libicuuc.so.60 => /usr/lib/x86_64-linux-gnu/libicuuc.so.60 (0x00007f56b1407000)
	libccd.so.2 => /usr/lib/x86_64-linux-gnu/libccd.so.2 (0x00007f56b11fc000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f56b0fdf000)
	libminizip.so.1 => /usr/lib/x86_64-linux-gnu/libminizip.so.1 (0x00007f56b0dd4000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f56b0bcc000)
	libtinyxml.so.2.6.2 => /usr/lib/x86_64-linux-gnu/libtinyxml.so.2.6.2 (0x00007f56b09b7000)
	libconsole_bridge.so.0.4 => /usr/lib/x86_64-linux-gnu/libconsole_bridge.so.0.4 (0x00007f56b07b2000)
	libicudata.so.60 => /usr/lib/x86_64-linux-gnu/libicudata.so.60 (0x00007f56aec09000)

Ok, there's probably something missing somehow in a straight build.  But after crawling around, I found the files in cmake/example and those worked.  So I created a equivalent cmakefile for the src/examples and so far all is well.
Closing this.

@danachee thank you for using our library. First of all, as we say in the README, the library is currently under heavy restructuring and many things (including the documentation/installation instructions) might not be up to date.
We will soon make a big v1.0 release with hopefully a proper documentation and surely many new features.

Compiled:
g++ -g -I/usr/include/eigen3 -o /tmp/hex src/examples/hexapod.cpp -l RobotDARTSimu -ldart

If you want to compile it by hand, you would need to add many more flags and link to more libraries. We strongly suggest to use waf (our current favorite build system -- for an example usage for finding robot_dart can be found here and here). If you prefer CMake, we recently provided support for this, so when you do [sudo] ./waf install a CMake config file will be installed, so that one can use CMake to find RobotDART along with its dependencies.
I guess you already discovered this, but just in case..

I realize its in flux, and I might just need to wait, but it seems the python side is "missing"??  I set it up to build the bindings, and it did install the object:

install /usr/local/lib/python3/dist-packages/RobotDART.cpython-38-x86_64-linux-gnu.so (from build/RobotDART.cpython-38-x86_64-linux-gnu.so)

But it didn't install anything else, and I can't find any python modules.  Are they missing, or do I need a different branch?
Thanks,

But it didn't install anything else, and I can't find any python modules

You do not need anything else. Most probably you have to change your PYTHONPATH (I guess by default it is not looking to /usr/local/): export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python3/dist-packages/. Alternatively, you can do ./waf configure --prefix=/usr --python and then sudo ./waf install, this will install everything in /usr which should be okay for the PYTHONPATH. I prefer the first way (install in /usr/local and alter the PYTHONPATH as this keeps the system cleaner; you can also put the export in your bashrc/zshrc file so that you have it in every terminal by default).

You are correct!  Thanks again! (it was a typeo in my PYTHONPATH set that was the issue)
About waf.  Is it something that would be used on a "outside" set of code (not stored in the robot_dart repo)?
So if one were to create their own simulation, do they need to copy the waf and waf_tools into their directory?  And if so, what would they need to tell it?  Feel free to tell me this will all be in the user guide for the new version and to be patient :-).

You are correct! Thanks again! (it was a typeo in my PYTHONPATH set that was the issue)

Good!

About waf. Is it something that would be used on a "outside" set of code (not stored in the robot_dart repo)?

You do not need to use waf. We have provide the installation of CMake config for this reason: for people to use robot_dart within their CMake projects easily. So if you are familiar with CMake and using it, feel free to use the library in that way.

So if one were to create their own simulation, do they need to copy the waf and waf_tools into their directory? And if so, what would they need to tell it?

If you want to use waf for building your projects, there are many ways of doing this. I would suggest you to read the waf book where there is an extensive documentation of how to use waf in general.

Feel free to tell me this will all be in the user guide for the new version and to be patient :-).

We will make a small standalone example of how to use waf similar to our use-cases to find robot_dart and compile your projects, so you can be a bit patient until the documentation is finished. If you want to have a look now on possible use-cases, have a look at the whc library that depends on robot_dart and uses waf to get an idea.


Choice to inverse the behavior of the mute toolbar

Description of the new feature / enhancement
Add a toggle to inverse when the toolbar appears.
Optional: allow specifying the position of the toolbar by coordinates.
Scenario when this would be used?
On my laptop I usually prefer to always mute my mic and camera unless in a video conference or MP game, the opposite of what I do on my desktop. Considering there may be others who do the same, I suggest to add a toggle for showing the toolbar when either the mic or the camera is on.
With the preference described above, to use the feature in the current form means constant overlap with development tool and game UIs, which is a bit frustrating. Allowing coordinate-based position should also help. It makes sense to still prevent drag-to-move, as the toolbar should remain in the same place once customized for easy navigation.
Supporting information
No response

/dup #20593
Thanks for the feedback but VCM is moving to maintenance only in the 0.67 timeframe. Our team will only directly address critical bugs, security and accessibility issues.
We'll accept community PRs for enhancements.


TypeScript Operations Error with Zod coercing date without time

Bug description
When a date without time is passed as a parameter eg operations/demo?testDate=2023-01-01, it is incorrectly received by the zod schema as a date with time and z.coerce.date() fails the validation.
{"propertyPath":"/testDate","invalidValue":"2023-01-01","message":"invalid date-time: date-time incorrectly Formatted: parsing time \"2023-01-01\" as \"2006-01-02T15:04:05Z07:00\": cannot parse \"\" as \"T\""}

Also tried validating via string z.string().pipe(z.coerce.date()) and it returned the same error
(see https://github.com/colinhacks/zod/discussions/879#discussioncomment-4646183)
How to reproduce
export default createOperation.query({
  input: z.object({
    testDate: z.coerce.date()
  }),
  handler: async (req) => {
    return {
      testDate: req.input.testDate,
    };
  },
});

operations/demo?testDate=2023-01-01
{"propertyPath":"/testDate","invalidValue":"2023-01-01","message":"invalid date-time: date-time incorrectly Formatted: parsing time \"2023-01-01\" as \"2006-01-02T15:04:05Z07:00\": cannot parse \"\" as \"T\""}

Expected behavior
Zod validates the input as a valid date
WunderGraph information

<EMAIL_ADDRESS>Environment & setup

OS: Mac
Go version: N/A
Database: Postgres
Node.js version: v19.8.1

WunderCtl Version
Version: 0.160.0
Commit: e4e9e33eece698597a2b57bc8c5ac6562d71c94b
Date: 2023-06-21T13:06:39Z
BuiltBy: ci

As noted by @fiam

This happens because we apply the slightly stricter json-schema validation instead of the zod validation/coercion rules. You would need to specificy the date-time following RFC 3339 (e.g. 1963-06-19T08:30:06Z)

https://discord.com/channels/738739428314316823/1121195622742110248/1122886406088425553
So maybe just a note in the docs would be useful


Support tools.deps

Hello and thanks for making this. I would not be able to use clojure at work without it.
Is there any chance of supporting tools.deps, by which I mean using the clojure cli to report dependencies, classpaths, and names (library and binary) from deps.edn?

Hi @jasonh-logic2020,
thanks for reporting this and sorry for delay.
Could you elaborate more and give some examples how such integration would look like?
You need rules to emit deps.edn? Or you need a rule that consumes deps.edn?

Hello, and thanks for replying.
Since you asked:
I have a multiproject monorepo which provides two clojurescript front ends and a dozen backend artifatcts. Historically we followed the pattern described here and have moved to the third way of organizing our code described therein.
This means we use no tools other than the clojure CLI to develop, build and test. and use :override-deps to do our version pinning across projects. For example, to start a cljs repl:
clojure -M:defaults:ui:dev-cljs

n.b.: defaults does the :override-deps dependency resolution, ui adds the ui project source paths, and dev-cljs adds development dependencies (i.e. shadow-cljs) and some :main-opts to run shadow-cljs watch app.
To build a backend artifact:
clojure -M:defaults:user-service:build-clj

n.b.: build-clj adds a dependency on depstar and adds :main-opts to build a jar.
My ideal bazel rules would look similar to the tools.deps structures:
deps_run(
  alias_deps = ["defaults", "ui"],
  main_opts = ["-m", "shadow-cljs.devtools.cli", "watch", "ui"]
)

deps_build(
  alias_deps = ["defaults", "user-service"],
  main_opts = ["-X:depstar", "uberjar", "jar", "user-service.jar"]
  )

Following this tools.deps model means that clojure -Stree -M:<alias-1>:<alias-2>:...<alias-n> will return the  resolved list of maven dependencies to be turned into rules_jvm_ext/maven_install` rules in WORKSPACE.
. It also means that the same rules can support clojurescript once you have your node dependencies installed via rules_nodejs/node_repositories and rules_nodejs/npm_install in WORKSPACE.
AFAIK, using clojure's dependency resolution is deterministic, so it should work with bazel's cache.
Lastly, to hash-lock external dependencies, it would be great if we could add :bazel/hash keys with appropriate values to deps.edn deps maps like:
  {:extra-deps {thheller/shadow-cljs          {:mvn/version "2.11.22"
                                               :bazel/hash "hash goes here"}

Adding that extra key doesn't break anything but I asked alex miller and he wasn't sure whether the extra key would be passed along internally, but there is a way in tools.deps.alpha to get the project basis (including the map of dependency -> version -> downloaded jar) as a data structure after it's done, so getting the hash and the jar to provide to Bazel. is doable.
I'm happy to answer any questions or help if I can.

@jasonh-logic2020 thanks for clarification. I'll try to take a look as soon as I can. Or if you willing to contribute I'm absolutely open to it.


JOSS: Software > Design

Concerning the JOSS review thread.

Use of quote ... end in Problem Definition: The NLodeProblem utilizes the quote ... end construct, resulting in an Expr object. For example:odeprob = NLodeProblem(quote
    name=(sysb53,)
    u = [-1.0, -2.0]
    du[1] = -20.0*u[1]-80.0*u[2]+1600.0
    du[2] = 1.24*u[1]-0.01*u[2]+0.2
end)

This contrasts with a more conventional approach:ode_prob = NLodeProblem(
    name = sysb53,
    u0 = [-1.0, -2.0],  # Initial condition for u
    f = function (du, u)
        du[1] = -20.0 * u[1] - 80.0 * u[2] + 1600.0
        du[2] = 1.24 * u[1] - 0.01 * u[2] + 0.2
    end
)

Concerns: This unconventional use of quote ... end may not be the most elegant or efficient method in terms of type inference, robustness, and API accessibility.
Recommendation: Please explain the rationale behind this design choice or consider adopting the more standard method of using function arguments in Julia. The current approach makes it unclear what the function does with the input provided within the quote ... end block.

Problem definition is updated to match the differentialEquations.jl interface (except for events which are put inside the function instead of callback functions):
function func(du,u,p,t)
#parameters
#helper expressions
#differential equations
#if-statments for events
end
tspan=(initial_time,final_time)
u = [u1_0,u2_0...]
p = [p1_0,p2_0...]
odeprob=ODEProblem(func,u,tspan,p)
sol= solve(odeprob,algorithm,abstol=...,reltol=...)


There is no Merged code in PyPI(Python Package Index)

There is no Merged code in PyPI.
But, The pull request is authorized, and codes are merged.
PR => https://github.com/paypay/paypayopa-sdk-python/pull/52
Please let me know if there are any additional processes for merging to PyPI.

It would be released by tomorrow
@solancer

Released in v1.0.1


USABILITY: too much ambiguity

I would like to offer that for a system which will be used in the event of a limited thermo-nuclear war, time is of the essence. I like to offer the following suggestions:

volunteers might not have any computer knowledge. keep it simple.  ATM level of sophistication
uncertain if there are any mobile versions for portability
Remove as much info from the screen as possible.

Perhaps we should arrange for EMP shielding for the machine as well while we're at it lol...
You make a good point for the scenario you describe, but I don't think anyone seriously considers this a tool to be used in a nuclear holocaust. You'd be better off spending your time hunter / gathering...


Why my issue is deleted? (FID reaches to 200 that issue)

I am not sure it is a github problem or because the holder of the repo.... where is my issue, I recently refer to it...

If it is a problem of github, I could ask for the help of admin. But on github I have never encountered the situation before.
If there is anything wrong in my issue, we can confirm and correct that. But, deleting is a .... in-proper solution I think. Of course I do not know how that happened..

@cohimame  @windj007  Please check it. Thank you.

Hello!
Some kind of error, sorry.
So we retrained model and here is a log:
train.log

@sydney0zq
One more important thing, that is now on readme:
During training process, we observe only val and extra_val metrics on 2000 images:
[2021-11-10 23:40:09,398][saicinpainting.training.trainers.base][INFO] - Validation metrics after epoch #0, total 24999 iterations:
              fid     lpips                ssim           ssim_fid100_f1
             mean      mean       std      mean       std           mean
0-10%    9.233729  0.030847  0.015940  0.972129  0.019427            NaN
10-20%  24.030723  0.082105  0.016849  0.923911  0.029110            NaN
20-30%  36.392329  0.139558  0.021874  0.870975  0.046391            NaN
30-40%  52.908639  0.192846  0.024251  0.820481  0.062490            NaN
40-50%  80.976875  0.248025  0.026053  0.765624  0.078790            NaN
total   14.276092  0.134199  0.074044  0.875066  0.083600       0.865561

...

[2021-11-10 23:42:07,588][saicinpainting.training.trainers.base][INFO] - Extra val random_thick_512 metrics after epoch #0, total 24999 iterations:
              fid     lpips                ssim           ssim_fid100_f1
             mean      mean       std      mean       std           mean
0-10%    8.164209  0.028028  0.016255  0.974709  0.019556            NaN
10-20%  25.238185  0.087229  0.020829  0.918119  0.034653            NaN
20-30%  42.584494  0.146621  0.023015  0.860249  0.045562            NaN
30-40%  63.517448  0.206390  0.028195  0.805664  0.063081            NaN
40-50%  83.640965  0.270336  0.032390  0.744625  0.078762            NaN
total   16.707589  0.148648  0.086964  0.859751  0.094933       0.845626

To achive metrics that we provide in paper for our models:
# To achieve same level of metric accuracy as in paper, you need
# to sample previously unseen 30k images and generate masks for them
bash fetch_data/places_standard_evaluation_prepare_data.sh

....

Hello! Some kind of error, sorry. So we retrained lama-fourier model and here is a log:
train.log

Thanks to your great work and reply. Really appreciate it!

@cohimame Thanks for your answer. A very trivial question, the FID in your log is about 16.707589, but in paper, the FID is very small:

So  What the difference? thank you .

@cohimame Thanks for your answer. A very trivial question, the FID in your log is about 16.707589, but in paper, the FID is very small:
So What the difference? thank you .

@cohimame , the same question,  and why the fid results from other methods are low too while I note that fid results from other papers are not so low. Do you retrain those models or what is the raw way for computing fid and lpips?

@cohimame Thanks for your answer. A very trivial question, the FID in your log is about 16.707589, but in paper, the FID is very small:
So What the difference? thank you .

@cohimame , the same question, and why the fid results from other methods are low too while I note that fid results from other papers are not so low. Do you retrain those models or what is the raw way for computing fid and lpips?

hi! did you solve this? why the fid results are so high?looking forward to your reply! you can connect me by qq:3559640395

@sydney0zq One more important thing, that is now on readme:
During training process, we compute metrics on val and extra_val of 2000 images:
[2021-11-10 23:40:09,398][saicinpainting.training.trainers.base][INFO] - Validation metrics after epoch #0, total 24999 iterations:
              fid     lpips                ssim           ssim_fid100_f1
             mean      mean       std      mean       std           mean
0-10%    9.233729  0.030847  0.015940  0.972129  0.019427            NaN
10-20%  24.030723  0.082105  0.016849  0.923911  0.029110            NaN
20-30%  36.392329  0.139558  0.021874  0.870975  0.046391            NaN
30-40%  52.908639  0.192846  0.024251  0.820481  0.062490            NaN
40-50%  80.976875  0.248025  0.026053  0.765624  0.078790            NaN
total   14.276092  0.134199  0.074044  0.875066  0.083600       0.865561

...

[2021-11-10 23:42:07,588][saicinpainting.training.trainers.base][INFO] - Extra val random_thick_512 metrics after epoch #0, total 24999 iterations:
              fid     lpips                ssim           ssim_fid100_f1
             mean      mean       std      mean       std           mean
0-10%    8.164209  0.028028  0.016255  0.974709  0.019556            NaN
10-20%  25.238185  0.087229  0.020829  0.918119  0.034653            NaN
20-30%  42.584494  0.146621  0.023015  0.860249  0.045562            NaN
30-40%  63.517448  0.206390  0.028195  0.805664  0.063081            NaN
40-50%  83.640965  0.270336  0.032390  0.744625  0.078762            NaN
total   16.707589  0.148648  0.086964  0.859751  0.094933       0.845626

Then, for a trained model:
# To achieve same level of metric values as in paper, you need
# to sample previously unseen 30k images and generate masks for them
bash fetch_data/places_standard_evaluation_prepare_data.sh

....

I appreciate your efforts and have a few inquiries. Could you assist me with the following questions?

On what metrics is the standard deviation based?
What causes the presence of NaN values?
Regarding the first column being the percentage range, could you explain what these percentages represent?


Force closed

why did this happened?

mutiny-logs.txt
also, the closing tx seems to be confirmed but i haven't received any funds

This is because you had a pending payment (probably to a zeus user) that did not complete in time and you went offline past the timelock.
If the closing transaction is confirmed, try resyncing chain in the admin tools in the settings.

Actually, as the indication in the popup: "funds may take a few days to be swept back in the wallet"

@TonyGiorgio can this be a hodl invoice thing? can you show me in the logs what was the transaction and how did the expiries went wrong? for education
why would on-chain funds take time if they are confirmed?

I'll double check the logs. As far as the on chain funds go, there's a 2nd transaction that has to occur but it has to occur after the timelock on the first. Which can vary to being 24 - 36 hours or so typically.

@TonyGiorgio i should have opened the app every day to mitigate this?

af48 2023-11-16 21:10:54.628 TRACE [lightning::chain::channelmonitor:3567] Processing 0 matched transactions for block at height 817072.
af48 2023-11-16 21:10:54.628 INFO  [lightning::chain::channelmonitor:3865] Force-closing channel due to outbound HTLC timeout, HTLC expiry is 816437

I couldn't find the exact invoice this occured from. But you last opened the wallet on Nov 11th when those payments went out. We made an update two days ago that stopped sending payments to Zeus hold invoices by default. So it should happen a lot less frequently. It is wise to open the wallet every few days at least, but when there's a pending payment, it is very important to open the wallet every day until it completes or fails.

@TonyGiorgio got you... thanks

No problem, sorry about that. If the funds do not return when you check the wallet tomorrow or the next day, let us know and we can reopen this issue.


Update go.mod

important patches

Overview

Checklist

[ ] New and updated code has appropriate documentation
[ ] New and updated code has new and/or updated testing
[ ] Required CI checks are passing
[ ] Visual proof for any user facing features like CLI or documentation updates
[ ] Linked issues closed with keywords

It would be good to review go.sum

hey @freshe4qa thanks for attempting to update our dependencies. As @evan-forbes said, celestia-app delays the upgrade of certain dependencies until cosmos-sdk performs them. The usual flow is:

cosmos/cosmos-sdk releases a new version
celestiaorg/cosmos-sdk pulls in upstream changes
celestia-app bumps its dependency of celestiaorg/cosmos-sdk and simultaneously takes updates for things like grpc

So let's close this PR. If there's a dependency you think needs to be upgraded ASAP (i.e. a security vulnerability) then please reach out to us at<EMAIL_ADDRESS>


Implement Edge.Length for arc by three points

The reason for this case is to enable the length calculation of an arc by three points. However, the correct way to go about this is probably to leave the Edge definition and use it only for serialization/deserialization purposes and create our own definition of curves.

Solution
Goal is to find centerpoint C. Then the length can be calculated as before.

Find plane through the 3 points. We are interested in the normal of the plane.
Find midpoints M1, M2.
Find normals N1, N2 perpendicular to plane and to Lines $\vec{V_{12}}$ and $\vec{V_{23}}$
Find centerpoint at the intersection of the the green lines. (TODO)

One more greed test 🧪✅


keep the tooltip always - react v16

I just added an option awaysActive to keep tooltip,
I moved the event listeners  to componentDidMount and componentWillUnmount.

+1

+1

I would like to have that feature
+1


EU rom 21.8.11 trouble in Korea

Hi, thanks for your effort in advance.
I'm a big fan of EU from, and I faced trouble with miui 12.6 (EU rom 21.8.11)
Phone model: Mi 10T Pro
Mobile carrier: SKT

Phone number recognition (auto recognition) failed.

All Korean credit card apps using phone number auto-recognition.
But auto recognition failed since I update miui 12.6.

Camera failed.

Camera suddenly turned off when I am using the in-app camera function.
10.8M camera didn't operate.
Camera focus (image had blur)

Many thanks for considering my request.

not a translation issues..
1 - Enable permissions for read contacts
2 - Camera driver issue

not a translation issues..
1 - Enable permissions for read contacts

It's not related to contacts. The apps failed to identify my number.

2 - Camera driver issue

I just found some comments from the EU rom site thanks.

Hello, I’m Korean translator of xiaomi.eu project.
As we introduced our project on README.md, it is translation project not technology related.
ONLY TRANSLATION-RELATED ISSUE can be solved here.

Make sure you have allowed the permission.

Home Screen(홈 화면) > Long Press ‘the app’ > App info(앱 정보) > Permissions(권한) > Get device info(기기 정보 불러오기) > Always allow(항상 허용)

Visit xiaomi.eu and find solution or report issue descriptive.

Best regards,

Hello, I’m Korean translator of xiaomi.eu project.
As we introduced our project on README.md, it is translation project not technology related.
ONLY TRANSLATION-RELATED ISSUE can be solved here.

Make sure you have allowed the permission.

Home Screen(홈 화면) > Long Press ‘the app’ > App info(앱 정보) > Permissions(권한) > Get device info(기기 정보 불러오기) > Always allow(항상 허용)

Visit xiaomi.eu and find solution or report issue descriptive.

Best regards,

Thank you. I fixed item 1 but still searching for the solution for the camera...


Update Edit Code command rate limit handling

After hitting the rate limit, users should be displayed an error notification that prompts them to follow PLG onboarding flows.
This affects all edit related commands (Document, Edit)
https://github.com/sourcegraph/cody/assets/51868853/d2bab807-aba9-4071-99ba-056fe7faec9c

"Applying Edits Failed" → "Quota Exceeded. Upgrade to Cody Pro" (link to Cody Pro upgrade URL)

I ended up implementing a slightly nicer experience in #2201, that shows the rate limit error message and reset time in a confirmation, and gives them the option to "See Plans" if they're not quite ready to click "Upgrade"


Prisma generates DMMF with invalid type names

Bug description

When I use the default, implicit index name:
model Category {
  name   String
  slug   String
  number Int

  @@unique([slug, number])
}

Prisma generates normal input type name, like CategorySlugNumberCompoundUniqueInput.
However, when I provide a custom one, which may contain some invalid JS characters (like @@unique([slug, number], name: "slug.number")), it generates input type and field name without sanitizing it:

How to reproduce

Run prisma generate when model unique index has own name with special characters.
Expected behavior

Prisma should sanitize the name string or maybe even parse it by converting common cases like snake_case or snake.case to SnakeCase.
Prisma information

model Category {
  name   String
  slug   String
  number Int

  @@unique([slug, number], name: "slug.number")
}

Environment & setup

OS:  Windows 10 WSL2 @ Ubuntu 20.04
Database:  PostgreSQL
Node.js version:  15.8
Prisma version:

prisma               : 2.19.0
@prisma/client       : 2.19.0
Current platform     : debian-openssl-1.1.x
Query Engine         : query-engine c1455d0b443d66b0d9db9bcb1bb9ee0d5bbc511d (at<EMAIL_ADDRESS>Migration Engine     : migration-engine-cli c1455d0b443d66b0d9db9bcb1bb9ee0d5bbc511d (at<EMAIL_ADDRESS>Introspection Engine : introspection-core c1455d0b443d66b0d9db9bcb1bb9ee0d5bbc511d (at<EMAIL_ADDRESS>Format Binary        : prisma-fmt c1455d0b443d66b0d9db9bcb1bb9ee0d5bbc511d (at<EMAIL_ADDRESS>Studio               : 0.358.0
Preview Features     : groupBy, createMany, orderByRelation

Thanks for the nice report!
I think it's a duplicate of https://github.com/prisma/prisma/issues/3193
I will close and recommend to subscribe there, happy to reopen if needed 😃


BlockID: consider including DAHeader

Currently, BlockID consists of two fields: actual hash and PartSetHeader, and both of them are going to be changed in some way. Hash will be changed to header hash, while PartSetHeader will be entirely removed. However, I propose not to just remove PartSetHeader but swap it with DAHeader as well.
First of all, DAHeader is an actual content identifier of Block, as it's the one and only info required to fetch the block, and having Hash of Header as ID simply doesn't make sense from this perspective. However, DAHeader is a problematic structure to be treated as ID because it contains variable value length and it can't be simple printed as a string and used as a map key, thus we need a short form for ID and keeping header/block hash in BlockID would be helpful for such case. In the long-term, this can be solved by introducing a root IPLD node pointing to Rows and Columns from DAHeader and making BlockID a CID of the root node.
Secondary, this would simplify implementation, as that pushes through DAHeader in all the places where BlockID is currently available, avoiding unnecessary changes in funcs and method declarations. The code using BlockId can then be simply updated to rely on either Hash or DAHeader for block identification depending on the requirements as both of those fields are unique for Block.

BlockID will be removed entirely in the near future, I recently add headerHash to the commit in preparation for this. I would say this is better than filling blockID with new data.

@marbar3778, @liamsi, can you pls explain the motivation behind full BlockID removal? #184 mentions simplifications that I might misunderstand as something like type BlockID headerHash, but not the entire removal. Also, I thought that BlockID would be kept in the codebase anyway to simply identify the block, but now I guess that the motivation is to lesser use Block concept in favor of Header, e.g. BlockPool -> HeaderPool, BlockStore -> HeaderStore, BlockID -> HeaderHash. Is it close to the truth?

So first of all independent of lazyledger, the BlockID including PartSetHeader is something that should be reconsidered: https://github.com/tendermint/spec/issues/78

#184 mentions simplifications that I might misunderstand as something like type BlockID headerHash, but not the entire removal.

Sorry if #184 is confusing. I tried to write down how essentially replace BlockID with the header hash and the DAHeader. The DAHeader replaces PartSetHeader and the hash inside gets moved into the header instead (and becomes a simple hash instead of merkelizing the header fields as currently ).

Also, I thought that BlockID would be kept in the codebase anyway to simply identify the block,

A header hash also fully identifies the block. Additionally, the data root fully identifies the Block.Data.

but now I guess that the motivation is to lesser use Block concept in favor of Header, e.g. BlockPool -> HeaderPool, BlockStore -> HeaderStore, BlockID -> HeaderHash. Is it close to the truth?

Yeah, the Header is more important in LazyLedger. That is because Header + DAHeader is everything a node needs to get very high assurance about the chain they are observing. Even most fullnodes will likely just do that instead of following the whole Blocks (as fullnodes do in other blockchains). You can think of these nodes as light-clients that additionally do Data Availability checks.
Note that eventually, the header inside this repository will look like:
https://github.com/lazyledger/lazyledger-specs/blob/master/specs/data_structures.md#header
I've tried to chunk this up into smaller parts of work. Maybe that's what was confusing in that issue (#184). I'll try to improve it with your feedback.
BTW @adlerjohn did a good writeup on the different node types in lazyledger. It explains who need to download what with which security assumptions: https://github.com/lazyledger/lazyledger-specs/blob/master/specs/node_types.md

@Wondertan does this comment make it a bit clearer on howto proceed: https://github.com/lazyledger/lazyledger-core/pull/205#issuecomment-804292134 ?

@liamsi, Yes!

Also, the issue is resolved so closing


checking failed

stderr:
/usr/lib/ruby/gems/2.4.0/gems/octokit-4.7.0/lib/octokit/response/raise_error.rb:16:in `on_complete': GET https://api.github.com/repos/finbourne/website/pulls?base=dev&direction=asc&per_page=100&sort=updated&state=open: 404 - Not Found // See: https://developer.github.com/v3 (Octokit::NotFound)
	from /usr/lib/ruby/gems/2.4.0/gems/faraday-0.12.1/lib/faraday/response.rb:9:in `block in call'
	from /usr/lib/ruby/gems/2.4.0/gems/faraday-0.12.1/lib/faraday/response.rb:61:in `on_complete'
	from /usr/lib/ruby/gems/2.4.0/gems/faraday-0.12.1/lib/faraday/response.rb:8:in `call'
	from /usr/lib/ruby/gems/2.4.0/gems/octokit-4.7.0/lib/octokit/middleware/follow_redirects.rb:73:in `perform_with_redirection'
	from /usr/lib/ruby/gems/2.4.0/gems/octokit-4.7.0/lib/octokit/middleware/follow_redirects.rb:61:in `call'
	from /usr/lib/ruby/gems/2.4.0/gems/faraday-0.12.1/lib/faraday/rack_builder.rb:139:in `build_response'
	from /usr/lib/ruby/gems/2.4.0/gems/faraday-0.12.1/lib/faraday/connection.rb:386:in `run_request'
	from /usr/lib/ruby/gems/2.4.0/gems/faraday-0.12.1/lib/faraday/connection.rb:149:in `get'
	from /usr/lib/ruby/gems/2.4.0/gems/sawyer-0.8.1/lib/sawyer/agent.rb:94:in `call'
	from /usr/lib/ruby/gems/2.4.0/gems/octokit-4.7.0/lib/octokit/connection.rb:156:in `request'
	from /usr/lib/ruby/gems/2.4.0/gems/octokit-4.7.0/lib/octokit/connection.rb:84:in `paginate'
	from /usr/lib/ruby/gems/2.4.0/gems/octokit-4.7.0/lib/octokit/client/pull_requests.rb:20:in `pull_requests'
	from /usr/lib/ruby/gems/2.4.0/gems/octokit-4.7.0/lib/octokit.rb:46:in `method_missing'
	from /opt/resource/lib/filters/all.rb:11:in `pull_requests'
	from /opt/resource/lib/repository.rb:17:in `block in pull_requests'
	from /opt/resource/lib/repository.rb:16:in `each'
	from /opt/resource/lib/repository.rb:16:in `reduce'
	from /opt/resource/lib/repository.rb:16:in `pull_requests'
	from /opt/resource/lib/commands/check.rb:10:in `output'
	from /opt/resource/lib/commands/check.rb:23:in `<main>'```

Repo doesn't exist: https://github.com/finbourne/website

Any updates?

@jtarchie it is actually a private repo and I've added the private_key in the configuration as well

Does the private key have read access to private repos?

@jtarchie yes, it was used on the git resource as well, and it works fine; it is an organisation private repo, not sure if this is causing trouble together with the access token?

You don't use an access token on the git resource, you use an SSH key, right? They are not the same thing here.

Can you try:
curl -u username:ACCESS_TOKEN https://api.github.com/repos/finbourne/website/pulls?base=dev&direction=asc&per_page=100&sort=updated&state=open

If it returns the same error, there is something wrong with the permission of the access_token. Please see the README for more info.

I'm closing this due to inactivity.

@jtarchie sorry, just saw this. I've tried the above, and it returns the following empty array
[

]

@jtarchie is username required as well in the setup?

@jtarchie Hi, I've further checked this, and actually is able to get data back from the API with the access_token


[GKE] Logging and monitoring cannot be set independently

What kind of request is this (question/bug/enhancement/feature request):
Bug
Steps to reproduce (least amount of steps as possible):
Navigate to GKE cluster creation.
Set monitoring to monitoring.googleapis.com/kubernetes
Create cluster.
After cluster is provisioned, edit cluster.
Result:
Both logging and monitoring are set.

Other details that may be helpful:
Monitoring and logging options from GKE console:

The UI is sending the correct request. monitoringService is set and loggingService is not.
clusterAddons: {horizontalPodAutoscaling: true, httpLoadBalancing: true, networkPolicyConfig: false,…}
clusterIpv4Cidr: ""
clusterName: "aaron-test-mon2"
description: ""
enableKubernetesAlpha: false
googleCredentialSecret: "cattle-global-data:cc-fzt6s"
imported: false
ipAllocationPolicy: {clusterIpv4CidrBlock: null, clusterSecondaryRangeName: null, createSubnetwork: false,…}
kubernetesVersion: "1.17.17-gke.3000"
locations: []
loggingService: ""
maintenanceWindow: ""
masterAuthorizedNetworks: {enabled: false, type: "/v3/schemas/gkeMasterAuthorizedNetworksConfig"}
monitoringService: "monitoring.googleapis.com/kubernetes"
network: "default"
networkPolicyEnabled: false
nodePools: [{,…}]
privateClusterConfig: {enablePrivateEndpoint: false, enablePrivateNodes: false, masterIpv4CidrBlock: null,…}
projectID: "rancher-qa"
region: ""
subnetwork: "default"
type: "/v3/schemas/gkeClusterConfigSpec"
zone: "us-central1-c"

Environment information

Rancher version (rancher/rancher/rancher/server image tag or shown bottom left in the UI): v2.5-41f173a-head
Installation option (single install/HA): single install

UI issue - UI should set the explicit string "none" for loggingService and monitoringService to disable it. Sending "" or null will cause GKE to use the default logging/monitoring service. I'm seeing that this problem also applies if I set both logging and monitoring to "None" in the UI, they still come back with both the logging and monitoring services enabled.
Fun note: the logging service and monitoring service can be set independently on create, but they cannot be updated independently. There is a (as far as I can tell) undocumented validator in the GKE API that forces them to either both be set or both be "none" when updating the cluster. If you try to disable or enable one or the other on update, it returns a HTTP 400 "Request would implicitly change monitoring service; please specify monitoring service explicitly." Not sure if we want to handle this in the UI or just leave this to GKE to reject if it happens.

Ive changed the default value to be on since that is their default. Ive also added some extra logic to show a warning when editing and they choose a different value. It wont stop them from saving or change the value auto magically because I didn't like that UX but I think the warning is clear enough. Should be in soon.


chore(deps): update ci dependencies

This PR contains the following updates:

Package
Type
Update
Change

common-dev-assets

digest
1c3409f -> 09c3d8a

github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper
require
patch
v1.30.2 -> v1.30.8

terraform-ibm-modules/common-pipeline-assets
action
patch
v1.21.7 -> v1.21.9

Release Notes

terraform-ibm-modules/ibmcloud-terratest-wrapper (github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper)
v1.30.8
Compare Source
Bug Fixes

deps: update gomod (#795) (3f738c7)

v1.30.7
Compare Source
Bug Fixes

deps: update gomod (#792) (f50dd6c)

v1.30.6
Compare Source
Bug Fixes

update default region to us-south (#790) (3870985)

v1.30.5
Compare Source
Bug Fixes

deps: update gomod (#788) (3f7c30b)

v1.30.4
Compare Source
Bug Fixes

create schematics tar file in correct temp dir (#783) (f0cd2ce)

v1.30.3
Compare Source
Bug Fixes

deps: update module github.com/go-git/go-git/v5 to v5.12.0 (#787) (9c597d6)

terraform-ibm-modules/common-pipeline-assets (terraform-ibm-modules/common-pipeline-assets)
v1.21.9
Compare Source
Bug Fixes

Add time to pipeline fail issue title (#676) (29a08b8)

v1.21.8
Compare Source
Bug Fixes

pipeline fail git issue now has repo and date in title (#675) (fe98644)

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

/run pipeline

/run pipeline

/run pipeline

/run pipeline

/run pipeline

/run pipeline

/run pipeline

:tada: This PR is included in version 5.21.1 :tada:
The release is available on:

GitHub release
v5.21.1

Your semantic-release bot :package::rocket:


Add displayType to view delta value from previous successfull build

What feature do you want to see added?
Currently, for display type, we have 3 options:
displayType: 'absolute', 'relative' and 'dual'
It would be good to add a 4th option called DELTA (or difference???) which will consist to display the raw number + change compared to previous build.
I tried to implement this but I didn't find the way to get previous successfull build data
Upstream changes
No response

I can help you with that. But at the moment i don't have mich time to spend on the plugin development.


We can't detect press on the image

When I click on the image in the parallaxview nothing is detected, why ?
We can not use https://github.com/oblador/react-native-lightbox with parallax and its really bad.. :(

It's a good point, touch isn't detected on background and foreground view, it's annoying :/
I look a little bit into the code and I can't really find why the touch doesn't work

I was thinking the same, but in lightbox we have this :
  <View
        ref={component => this._root = component}
        style={this.props.style}
        onLayout={() => {}}
      >
        <Animated.View style={{opacity: this.state.layoutOpacity}}>
          <TouchableHighlight
            underlayColor={this.props.underlayColor}
            onPress={this.open}
          >
            {this.props.children}
          </TouchableHighlight>
        </Animated.View>
        {this.props.navigator ? false : <LightboxOverlay {...this.getOverlayProps()} />}
      </View>

So apparently something wrapped in Animated.View can be touchable (?!)
I really don't get why it's not working in this case, too bad :(

Strange... Normally a component can be touchable in an Animated.View but in the old version of react-native this bug happened on Android, so I was wondering if in the last release something broke up but apparently not. Maybe it's a problem with the Scroll component but I don't think so :/

+1

Ok so I look deep into the code, and I don't really understand why touchable components doesn't work in the background, but I think that's can be due to all the view behind the background component. In my app I just set my button in the foreground and that's working! :)
In my first message, I said that it doesn't work, but the problem was I don't use TouchableWithoutFeedback in the right way, this component seem to doesn't take style props, so all the style need to be applied to the child view.
Instead you can also use TouchableOpacity, with this one you can apply a style.
Hope that's gonna everyone!

If you make the following changes in the source in index.js it should work:
_maybeRenderStickyHeader({ parallaxHeaderHeight, stickyHeaderHeight, backgroundColor, renderFixedHeader, renderStickyHeader }) {
const { viewWidth, scrollY } = this.state;
if (renderStickyHeader || renderFixedHeader) {
const p = pivotPoint(parallaxHeaderHeight, stickyHeaderHeight);
return (
<View style={[styles.stickyHeader, { width: viewWidth, ...(stickyHeaderHeight ? { height: scrollY._value>0?stickyHeaderHeight:0 } : null ) }]}>
{
renderStickyHeader
? (
<Animated.View
style={{
backgroundColor: backgroundColor,
height: scrollY._value>0?stickyHeaderHeight:0,
opacity: interpolate(scrollY, {
inputRange: [0, p],
outputRange: [0, 1],
extrapolate: 'clamp'
})
}}>
<Animated.View
style={{
transform: [{
translateY: interpolate(scrollY, {
inputRange: [0, p],
outputRange: [stickyHeaderHeight, 0],
extrapolate: 'clamp'
})
}]
}}>
{ renderStickyHeader() }
</Animated.View>
</Animated.View>
)
: null
}
{ renderFixedHeader && renderFixedHeader() }

);
} else {
return null;
}
}
}
And in _onScroll(e)
_onScroll(e) {
const {
parallaxHeaderHeight,
stickyHeaderHeight,
onChangeHeaderVisibility,
onScroll: prevOnScroll = () => {}
} = this.props;
const p = pivotPoint(parallaxHeaderHeight, stickyHeaderHeight);

this._maybeUpdateScrollPosition(e);

if (e.nativeEvent.contentOffset.y >= p) {
onChangeHeaderVisibility(false);
} else {
onChangeHeaderVisibility(true);
}
this.forceUpdate();
prevOnScroll(e);
}

Hey @bhavyata9 Thank you !
But can you use "Insert code", cause I think there are some mistake in your code, for exemple "return (
0?stickyHeaderHeight:0 } : null ) }]}>".
Thanks in advance :)

index.txt

@bhavyata9
It's not working, still no lightbox :(
but thanks :)

@pcrouillere Did you try to put your button in the foreground as I suggest in my last message ?

@magrinj I'm going to try today ! But with the button I have to make my "own" lightbox I think.

@pcrouillere Oh yes sorry I forgot that LightBox wrap the image child and detect the click :/
Yes maybe you have to do your own lightbox for this.

@pcrouillere You can also modify lightbox code, to enable it to be opened programmatically

This component can render a foreground view and a background view but the parrallax is only on the background view. Whereas the foreground view detects the click.
So as @magrinj said, you need to make a transparent button on the foreground if you want to make it work.
For instance a view with opacity 0 containing a ligthbox component.
This should do the trick.
Regards,
Sébastien

using zIndex and the background view can detects the click,
but it needs react-native version higher than 0.30

Haven't tested yet, but this feels like a case for pointerEvents.

I'm trying to insert a carousel in the parallax background but it also doesn't get the touch event.
The only one I could get to appear correctly is react-native-looped-carousel but I have to put it on autoplay or else it just stays on the first image.
I tried viewpager or image-slider but with no success.

@nbastoWM any progress on figuring this out?

@nbastoWM Yeah, something to say ? :)

+1

+1

+1

+1

Unfortunately I had to abandon Parallax in order to have a scroll of images with swipe.
None of what I tried could detect the touch swipe in the parallax.

Can't reproduce. Touch events in images or otherwise all work in background, foreground and renderStickyHeader.


Updated OWNERS to include link to docs

As the title says

/assign @roycaihw

/cc @yliaog as well for approval

/lgtm
/approve


sample databases

Please link SQL sample databases like https://www.microsoft.com/en-us/download/details.aspx?id=46801

Thanks for this idea @rootsmusic . Based on documentation priorities, we're not planning to address the issue at this time, but will consider it when we roll out the new samples.

Hi, @rootsmusic -- I like the idea! I'll try to work it in. Thanks!

Hi, @rootsmusic -- I'm closing this issue, as you have opened a new one on the same subject, https://github.com/MicrosoftDocs/powerbi-docs/issues/1399.
I still think it's a good idea. I still can't promise a timeline.


Add tonic validate metric with local model.

no_gt retrieval metrics needs large amount of LLM processing.
So, use local LLM model to compute it.

ragas context precision need so much LLM calls. So, try to use tonic validate instead.

Do this on 'aragog' branch.
No plan to integrate this to a main branch.


CORE-44791 Prevent modification of passed in xdm and data objects.

Description
When xdm is passed as an option to the event command AND either type or mergeId are passed as options, DataCollector ends up modifying the xdm object passed by the customer. This is bad for a couple reasons:

The xdm object the customer passes is possibly used by other customer code. For example, it may be the customer's data layer and they may be sending the data layer to other endpoints as well. In this case, they probably don't want Alloy-event-specific information being added to the data layer.
It can cause incorrect event types and event merge IDs to be sent. For example, if I do this:

const dataLayer = { foo: "bar" };
alloy("event", { xdm: dataLayer, mergeId: "abc" });
alloy("event", { xdm: dataLayer, mergeId: "def" });

Then def will be sent for the event merge ID for both requests. This happens because the first command sets dataLayer.eventMergeId to abc, but before the object is sent to the server, the second command sets dataLayer.eventMergeId to "def".

Related Issue
https://jira.corp.adobe.com/browse/CORE-44791

Motivation and Context
Current behavior is unexpected.

Screenshots (if appropriate):
Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Improvement (non-breaking change which does not add functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] I have signed the Adobe Open Source CLA or I'm an Adobe employee.
[x] I have made any necessary test changes and all tests pass.
[x] I have run the Sandbox successfully.

Hey @Aaronius, it seems like C2579 is failing for the first time, I wonder if your changes have something to do with that?

@jfkhoury That's the same failure that I was getting inconsistent results with in https://github.com/adobe/alloy/pull/408. 😢

I'm assuming, but haven't verified, that https://github.com/adobe/alloy/pull/416 will fix the e2e test that's intermittently failing. If not, we'll address it in a separate PR.


Autoformat provided by vmware guestinfo cloud-init.config.data has no effect

RancherOS Version: (ros os version)
1.3.0
Where are you running RancherOS? (docker-machine, AWS, GCE, baremetal, etc.)
Using the iso on an ESXI server.
Currently it's impossible to provide the "autoformat" settings through a cloud-init.config.data as described here.
Booting the ISO and providing the following cloud-init through the guestinfo has no effect and neither sdagets formatted nor mounted.
#cloud-config
rancher:
  state:
    fstype: auto
    dev: LABEL=RANCHER_STATE
    autoformat:
      - /dev/sda

The problem is that "mount and bootstrap" is called before the different cloud-init providers get evaluated and have the chance to retrieve the cloud-init configs.
PR #2353 should fix this problem.

The rancheros-vsphere.iso autoformats and mounts the state partition by default. I think we can close this @niusmallnan ?

The rancheros-vmware.iso autoformats and mounts the state partition by default. Close this issue. Any question please reopen this issue.


My first branch

in this pull request i have create file , and pull request , an then cummit

in this


avoid need to lift boolean arithmetic expressions that are part of distribution parameter expressions

Currently if we have
mu.c ~ dconstraint(mu < 1)
the user needs to manually lift mu<1:
ind <- mu<1
mu.c ~ dconstraint(ind)
I believe this arises more generally when using a boolean expression as a distribution argument/parameter.

For the record, I'm not entirely clear on what the problem is, or what the (more desirable) handling would be?  Can you please clarify, Chris?

I think it would be nice to allow:
mu.c ~ dconstraint(mu < 1)
or as a more important use case something like this, for splines, say
y[i] ~ dnorm(b0 + b1 * x[i] + b2* (x[i] - knot) * (x[i] > knot), 1)

This was redundant with issue 59 and is now fixed.


auxiliary function h(l,a)

Hi
It is a interesting work.
I am wonder where is implementation of auxiliary function h(l,a)
thanks

Hi Wei,
Thanks for your interest. I'm sorry I just noticed your issue. The h(l,a) is defined in exceeding.py and used as a parameter of the OptimalDesign class.
Xianliang


Rancher agents behind NAT?

Hello,
I have following setup:
public server A.A.A.A with rancher server and rancher agent, then two home computers on <IP_ADDRESS> and <IP_ADDRESS> (home LAN), both behind a NAT (with my local home network having public address B.B.B.B) and both with rancher agents.
I have succesfully registered all 3 hosts to the rancher server, but both my home computers are visible with their public address B.B.B.B. I guess this is the reason why there are no communications between containers on my computers, as A.A.A.A cannot ping B.B.B.B (its my router). I guess if I had only one computer, I could have port forwarding of port 500 and 4500 on my router and that could work. How can I run more than one computers (rancher agents) on my LAN behind a NAT? Is it possible? I am using rancher agent v0.8.2, rancher server v0.41.0, cattle v0.100.0
I do notice outgoing UDP packets from my laptop in LAN to A.A.A.A port 500, but no return packets.
Is it a problem with my router configuration?

Hosts communicate with each other using the IP that is shown on each host.  That is detected when they register, which would both be your public WAN IP in this case, so they can't talk to each other.  You can override the registered IP with the CATTLE_AGENT_IP variable, and if you set them all to 192.168.1.x the hosts will be able to communicate with each other.  But you will have different problems that may or may not affect you, like the external-dns providers will create DNS records for 192.168 addresses instead of the public IP.  And if you have other hosts outside the NAT they will not be able to communicate with the ones in it.

Is this still not possible in 2017? I think it is a pretty common usage scenario to have e.g. build slaves behind a NAT and it does not appear conceptually hard to place all Rancher Hosts in a VPN so they share addressable private IP addresses with each other - independent of the container network...

@lgleim If the hosts are already part of VPN and have reachable private IP addresses, you can use those IP addresses to register the hosts in the rancher/server. The IP addresses need not be "public"(some of our customers use private data centers, VPCs in AWS, etc), but the different hosts need to be reachable via unique IP addresses.

@leodotcloud Thanks for the feedback! I am aware that it is possible to set up such a configuration, however any host that is not part of the VPN cannot connect to any of the host's services within the VPN. I simply cannot believe that this has still not been resolved as part of Rancher since I do not see any kind of downside that would explain not having this type of configuration by default.

I have all my nodes connected through a VPN and still make it work, there is something wrong in the swarm joing part as I've specified the VPN's internal IP but the join command still points to the public IP.. any ideas?

Hi I have a rancher-server on a local server and what I'm trying to do is add my AWS host with his public IP but they can reach my local server only by VPN connection. (When I execute the command generated by the UI of Rancher to add a host the detected cattle agent IP is his IP of the VPN even when use the public IP of the host for cattle agent IP).
Every host has a OpenVPN client that is running on background providing a tun0 interface, I have a VPN server on AWS that allows connection between clients and redirect all the traffic through the VPN. Also my local server is connected to that VPN.
The AWS hosts get added but when the second host is added the health check stays on initializing and there is no connection between hosts. Any idea of what is happening? What I'm doing is wrong?

@ElPsyCongro Did you try using CATTLE_AGENT_IP to override?

@leodotcloud Yes I use the Custom method in where you need to specify the CATTLE_AGENT_IP I think, I opened an issue for more details. If you can check it I would appreciate it.
https://github.com/rancher/rancher/issues/10148


Spurious duplicate identifier error while destructuring

Code
let a: string;
let b: string;

// Shouldn't be an error, is destructuring not object literal
({ foo: a, foo: b } = { foo: "no" });

Expected behavior:
No error - I'm just extracting the same name into two different variables.
Actual behavior:
"Duplicate identifier" on the second "foo" in the destructuring pattern, also some object literal strict mode error in the same place if the file is in strict mode.
Playground Link

Seems fixed in 3.8.3

Yes, this was fixed in #35948, making #35939 a dupe of this one.


Update supernotes extension

Description

Screencast

Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed outside of the metadata folder

@tobeagram did you see my comment 🙂

@tobeagram did you see my comment 🙂

Apologies @pernielsentikaer, I didn't receive a notification on this. Update the images to be consistent now using the latest version of Raycast 🎉


Parser flags example variable as an error but query runs without error

In the section "Use the view keyword in a let statement", the example runs successfully but Intellisense parses it as an error.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 741d0e14-4a3f-af28-1d6e-e6a6dd3dd414
Version Independent ID: 731bbd4d-10c6-5cc4-741d-7cba31cb0586
Content: Let statement - Azure Data Explorer
Content Source: data-explorer/kusto/query/letstatement.md
Service: data-explorer
GitHub Login: @orspod
Microsoft Alias: orspodek

Thank you for reaching out. At this time we are reviewing the ask and will provide an update as appropriate

@jayallen Products team has identified this as a bug and provided a fix for the same.  Please let me know if you still see any issues.
Thanks
Saurabh

@jayallen We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.


"Open in Terminal" not loading terminal

VSCode Version: 0.10.11
OS Version: Fedora 23 (64 Bit)

Steps to Reproduce:

Save work
Right click in the toolbar
Select "Open in Terminal"

Reproduced. Sometimes it gives the error spawn ENOTDIP. It's happening because x-terminal-emulator is not in the PATH on Fedora.

x-terminal-emulator is part of the Debian alternatives system which is why this doesn't work.

There is a PR https://github.com/Microsoft/vscode/pull/3495 that allows Linux users to specify a different terminal other than the hard coded x-terminal-emulator not sure whether it will be accepted or not though

@pflannery thanks for pointing that out

Great thanks Tyriar :)

#3495 fixes this issue, thanks again @pflannery

On my freshly installed Fedora 23 install I get the same error as above. That's with VSCode 1.0.1 (April release). Reopening...

Just did a fresh install of fedora 23 and it works for me.
Did you have a workspace open?
This is the vscode version I tested with

I'm on the latest build from today that we use for testing
The dev tools console shows: shell.ts:415spawn x-terminal-emulator ENOENT: Error: spawn x-terminal-emulator ENOENT.
[aeschli@localhost workspaces]$ which x-terminal-emulator
/usr/bin/which: no x-terminal-emulator in (/bin:/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/home/aeschli/.local/bin:/home/aeschli/bin)

Is there anything I need to install or configure first?

The code for that is here https://github.com/Microsoft/vscode/blob/849abd65ebf3e8c0f807e05639e723d16f8e6e3a/src/vs/workbench/parts/execution/electron-browser/terminal.ts#L9, it should yield gnome-terminal if it uses gnome (not sure if Fedora has other flavors).
I created this to improve the defaults later though I expect it to work https://github.com/Microsoft/vscode/issues/5780

Closing in favor of #5780


Change case of alert json to initial lower letter.

This is more in line with common practice,
and with the webhook in alertmanager this will
be more directly exposed to users.
This is a minor breaking change, in that if you have a mix of old/new alertamanger/prometheus the alertmanager UI and some notifications will be a bit less useful.

:+1:

Camel case seems to be the most accepted way to do it: http://google-styleguide.googlecode.com/svn/trunk/jsoncstyleguide.xml#Property_Name_Format

I would not draw this conclusion based on a Google style guide.
I'm quite sure it's another 50:50 case. We just have to be consistent (HTTP API v1).

I have to amend that - looking around I found just as much camelCase (and lots of other weird stuff).
If no one else objects, I'll adjust the HTTP API doc to camelCase as well.

LGTM

Since this is a breaking change, could we delay this until we do a major alertmanager overhaul anyways?

This is a very minor breaking change, it only means some alert information won't be visible in the alertmanager UI if your versions are out of sync. Given the alertmanager is experimental, I think that's okay.

Ah ok. Then I think it's ok enough... :+1:


Revisit CWL output of global variables (feedback 1-21)

Was this addressed in a specific PR, and if so which one?

Given #27 do we need global variables at all (as in being injected inside functions, a-la https://github.com/flaxandteal/dewret/discussions/20 )?

The original issue in which the value of the global variable was not listed in the CWL workflow input parameters has no been fixed in #27. A remaining question is whether the CWL step having two parameters listed despite the corresponding python task only having one, is intended.


'ENOENT: no such file or directory, mkdir' while installing extension

Got this error while installing extension: 'ENOENT: no such file or directory, mkdir'

VSCode Version: 1.42.1
OS Version: Windows 10 Enterprise (10.0.17134)

Steps to Reproduce:

Install extension

Does this issue occur when all extensions are disabled?: Not sure
This issue got resolved by reinstalling VSCode and removing .vscode folder where extensions are installed.

I guess this is because VS Code would not have permissions to create or remove folders in the extensions folder. When you deleted that folder and reinstalled VS Code permissions would have got reset.
If you can repro it
Please provide logs from following locations
- Help -> Toggle Developer Tools -> Console
- View -> Command Pallette... -> Toggle Shared Process -> Console
- View -> Open View… -> Log (Shared)
- View -> Open View… -> Log (Window)

Hi!
While I am not the OP, I do have a similar issue and it throws the same error message in the logs. I think you are absolutely right in that it has something to do with user permissions since I seem to be able to download extensions when launching vscode as a superuser(though they seem to have issues working after I exit superuser mode).
I have attached my own log files for the locations you mentioned, but the shared-process had no log output when attempting to install an extensions, so I excluded that.
The developer logs also show my red hat server extensions crashing repeatedly but that may stem from the same cause.
developerConsoleLogs.log
sharedView.log
windowView.log

I think you are absolutely right in that it has something to do with user permissions since I seem to be able to download extensions when launching vscode as a superuser(though they seem to have issues working after I exit superuser mode).

Yes it is expected as extensions folder is created by the root user and hence you do not have permissions as normal user.


Added a condition to lift Sails only if it wasn't lifted before.

To allow the tester to lift their own Sails instance if they want to override the configuration. In my case, I'm testing with Solr and need to specify a test core to insert some testing data and wipe it out after.
I'm lifting Sails in bootstrap.js
beforeAll(function(done) {
  var testConnections = false;

  try {
    testConnections = require('./test_connections');
  }
  catch (e) {
    if(e.code == 'MODULE_NOT FOUND') {
      console.log('Test connections configuration not found.');
    }
  }

  var sailsTestConfig = {
    //-- turn down the log level so we can view the test results
    log: {
      level: "silent"
    }
  };

  sailsTestConfig.connections = testConnections;

  require("sails").lift(sailsTestConfig, function(err, sails) {
    done && done(err, sails);
  });
});

Does this make sense? Perhaps there is an easier way.

You don't need to do this as every sails configuration is overridable through the config directory. If you are using version 0.10.x, you can just provide a config/env/test.js that contains all your test environment configurations. If you are still on sails 0.9.x, you can still override the settings by using an if-statement or a ternary operator to switch configuration depending on the environment your app is running on.

Thanks!
The thing is, I don't want to add the configuration when running the app, only when running the tests. Would that still apply? We are using 0.11.0

OK, I'm reading about environment settings now. I see your point.
Thanks again!


bug(virtual-scroll): scrollToIndex does not work for multiple viewports scrolling over the same element

Is this a regression?

[ ] Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was
No response
Description
If you have multiple viewports beneath eachother the function 'scrollToIndex' does not work if you want to scroll to an element in one of the bottom lists. It scrolls to a wrong position.
Reproduction
StackBlitz link: https://stackblitz.com/edit/components-issue-dch1m4?file=src%2Fapp%2Fexample-component.html,src%2Fapp%2Fexample-component.ts,src%2Fapp%2Fexample-component.css
Steps to reproduce:

Click the button 'Scroll to viewport 3 and index 7'
It scrolls to the wrong position.

Expected Behavior
It should scroll to the correct position.
Actual Behavior
It should scroll to the wrong position.
Environment

Angular: 16.2.1
CDK/Material: 16.2.1
Browser(s): Chrome
Operating System (e.g. Windows, macOS, Ubuntu): Stackblitz

I think you have to calculate right index for viewport.
For example : lastViewport.scrollToIndex(7 + 27);
I updated stackblitz.  Please check and let me know your opinion.

Still does not work for me. If you have other elements in the same scrolling element you are still scrolling to the wrong location.

It seems to be broken indeed but the fix is simple:
this.viewport.scrollable.scrollTo({
  top: this.viewport.measureViewportOffset('top') + index * itemHeight
})

It seems to be broken indeed but the fix is simple:
this.viewport.scrollable.scrollTo({
  top: this.viewport.measureViewportOffset('top') + index * itemHeight
})

Thanks for the suggestion, but it does not work if there is a headline above every list in the viewport.

It seems to be broken indeed but the fix is simple:
this.viewport.scrollable.scrollTo({
  top: this.viewport.measureViewportOffset('top') + index * itemHeight
})

Thanks for the suggestion, but it does not work if there is a headline above every list in the viewport.

 Works fine for me with headers

It seems to be broken indeed but the fix is simple:
this.viewport.scrollable.scrollTo({
  top: this.viewport.measureViewportOffset('top') + index * itemHeight
})

Thanks for the suggestion, but it does not work if there is a headline above every list in the viewport.

 Works fine for me with headers

Sorry, I had an error in my code. It seems to work. Thank you. :)


Add bidirectional function around v signature calculations

Describe the feature
As per https://github.com/paradigmxyz/reth/pull/7882#discussion_r1579753322, in the repo, we need to make calculations around v in Signature in both directions:
https://github.com/paradigmxyz/reth/blob/f6e1b0640cea24ed17efe2d4c09ceb591d6fa7cf/crates/primitives/src/transaction/signature.rs#L80-L95
and in the other direction for the conversion included in https://github.com/paradigmxyz/reth/pull/7882
As a result, this would make sense to unify that into a standalone method to wrap this bidirectional conversion.
Additional context
No response

As a result, this would make sense to unify that into a standalone method to wrap this bidirectional conversion.

We probably just need to implement the method that does the inverse of v, there is code in decode_eip155_chain_id that should already work and is efficient, so we would want to extract that into a method more or less


Fix Completion due to mismatch in executable name

This commit changes the name of the executable generated from Makefile to match the name of the cobra project to make sure shell completion work as expected
fixes #10

looks good to me.


MAINT: Improve server env

I really just want to add nibabel and nilearn to our server_environment because they are needed for some viz functions, but then I noticed some other stuff, so this PR will:

Add nibabel and nilearn
Remove vtk_dev channel
Remove defaults channel
Remove the numpy<1.19.0 pin

Hopefully it all works but if it doesn't, hopefully I can at least get (1) in there. I'll need to double-check that the env otherwise looks the same in terms of what gets installed by looking at mne sys_info.

Old:
Platform:      Linux-5.4.0-1031-azure-x86_64-with-glibc2.10
Python:        3.8.5 (default, Sep  4 2020, 07:30:14)  [GCC 7.3.0]
Executable:    /home/vsts/miniconda/bin/python3.8
CPU:           x86_64: 2 cores
Memory:        Unavailable (requires "psutil" package)
mne:           0.22.dev0
numpy:         1.18.5 {blas=openblas, lapack=openblas}
scipy:         1.5.4
matplotlib:    3.3.3 {backend=agg}

sklearn:       Not found
numba:         Not found
nibabel:       Not found
cupy:          Not found
pandas:        Not found
dipy:          Not found
mayavi:        Not found
pyvista:       0.27.4 {OpenGL 3.3 (Core Profile) Mesa 18.3.1 via llvmpipe (LLVM 7.0, 256 bits)}
vtk:           9.0.0
PyQt5:         Not found

New:
Platform:      Linux-5.4.0-1031-azure-x86_64-with-glibc2.10
Python:        3.8.5 (default, Sep  4 2020, 07:30:14)  [GCC 7.3.0]
Executable:    /home/vsts/miniconda/bin/python3.8
CPU:           x86_64: 2 cores
Memory:        Unavailable (requires "psutil" package)
mne:           0.22.dev0
numpy:         1.19.4 {blas=NO_ATLAS_INFO, lapack=lapack}
scipy:         1.5.3
matplotlib:    3.3.3 {backend=agg}

sklearn:       0.23.2
numba:         Not found
nibabel:       3.2.1
nilearn:       0.7.0
dipy:          Not found
cupy:          Not found
pandas:        1.1.4
mayavi:        Not found
pyvista:       0.27.4 {OpenGL 3.3 (Core Profile) Mesa 18.3.1 via llvmpipe (LLVM 7.0, 256 bits)}
vtk:           9.0.0
PyQt5:         Not found

@GuillaumeFavelier I got a segfault when I tried to remove vtk_dev -- any idea why we have to use that version rather than the one provided by conda-forge?

any idea why we have to use that version rather than the one provided by conda-forge?

To fetch the version of vtk built with osmesa. At least, it was the case when I added this conf.

Pushed a commit for the yield_fixture business, too.
@GuillaumeFavelier you happy? If so I'll merge when green


Ensure method assumes existence of 'master' branch

The Ensure method will fail if the remote git repo does not have a 'master' branch. With that term going out of fashion more repositories are using default branches with names like 'main'. This is causing errors when ensuring the local contents of this type of repository.
https://github.com/rancher/wrangler/blob/master/pkg/git/git.go#L130
func (g *Git) Ensure(commit string) error {
	if err := g.clone("master"); err != nil {
		return err
	}

Thank you for accepting this PR. Can you please cut a release so this can be brought into Rancher proper?


Simplify labels for autocomplete, make terms clickable

To close #3 this PR

with 16ceebdc70c97fb7f50cb406c3cc7192a44417cd

Always adds a label with the entry key for it to show up in the autocompletion list

either in the glossary (if it is visible and there is a corresponding entry)
or invisible during init-glossary as discussed in #3

Use a single label for all usages of the term in the text. This simplifies the back-referencing logic significantly and also avoids cluttering the auto-complete list

with 76fb6b9ea7d8a1f751ab7b6c0140fe24fa796e12

Unifies the term usage tracking logic, which was done via counter and state in parallel. It now uses only the counter. Refractors the code with the two methods "mark_term_used" and "is_term_used".

with 2b6debb7d1de1c7e4d591f2479c8c7d9523c64ae

Make the terms clickable links leading to the corresponding entry in the glossary (only if glossary is actually shown). I added a new option term-links to allow disabling these forward links. Also, if there are multiple glossaries and a term is listed more than once, links are disabled too since then there is no unique target.

Screenshot from typst.app

Just a heads up, I'm going to look at merging this today. I have several other local branches to resolve with this. :)

Easy merge! Thanks @eltos - I so appreciate your help. Your understanding of Typst is impressive.

Thanks for your swift merge, was a pleasure :)


Gson or JSON Simple?

I'm looking to clean up the Glowstone++ code. What library should I use for JSON, gson or json simple?

I have looked at gson a little before but not json simple. I think gson would be useful but again I have no experience with json simple so I couldn't have an educated opinion of which one is better :/

gson ;)

Anyone know how to convert this line to gson?

http://google-gson.googlecode.com/svn/tags/1.2.3/docs/javadocs/com/google/gson/JsonObject.html#addProperty(java.lang.String, java.lang.Number)
or .add("extra", new JsonPrimitive(...));

Well the value is a list, not a number.

ohhh
JsonArray array = new JsonArray();
for(JsonObject o : items){
array.add(o);
}
object.put("extra", array);

Will the for loop affect performance?

I think no

Ok, I was just wondering if there was a alternative within gson for adding an array, but I guess there isn't. Thanks though.


Non stac items

Related Issue(s): #843
Proposed Changes:

Attempt to explain / work through an alternate to empty geometries.

PR Checklist:

[x] This PR is made against the dev branch (all proposed changes except releases should be against dev, not master).
[x] This PR has no breaking changes.
[ ] I have added my changes to the CHANGELOG or a CHANGELOG entry is not required.
[ ] This PR affects the STAC API spec, and I have opened issue/PR #XXX to track the change.

The PR is obsolete due to #854, right?


Tailwind-DDS Project: Part 4 - Grid layout

As part 4 of the Tailwind-DDS project, provide CSS classes for a Grid layout.
Part 1: https://github.com/Infineon/infineon-design-system-stencil/issues/969
Part 2: https://github.com/Infineon/infineon-design-system-stencil/issues/970
Part 3: https://github.com/Infineon/infineon-design-system-stencil/issues/971

Grid can be defined by customizing 'grid-template-column' in 'theme.gridTemplateColumns' in the 'tailwind.config.js' file.


Correctly scrolling to highlight on load?

On loading a pdf document I wish to scroll directly to a highlight, but I'm not sure how to make it work.
I currently do a useEffect  outside of the PdfLoader, which works when activeHighlight prop changes but not on initial load:
useEffect(() => {
	if (!activeHighlight) {
		return;
	}
	const highlight = highlights.find(
		(highlight) => highlight.id === activeHighlight.id,
	);

	if (!highlight) {
		return;
	}

	if (!highlighterUtilsRef.current) {
		return;
	}

	const viewer = highlighterUtilsRef.current.getViewer();
	if (!viewer) {
		return;
	}
	const pageView = viewer.getPageView(
		highlight.position.boundingRect.pageNumber,
	);
	if (pageView === undefined) {
		return;
	}

	highlighterUtilsRef.current.scrollToHighlight(highlight);
}, [activeHighlight, highlights]);

This issue is a follow-up on #7 where @alexmagwe said

the solution is to make sure the useEffect is called within the pdfhighlighter context

I might have misunderstood, but based on this I tried:
<PdfHighlighter ...>
  <MyHighlighterContainer activeHighlight={activeHighlight} />
</PdfHighlighter>

And in MyHighlighterContainer:
const { highlight } = useHighlightContainerContext();
const { scrollToHighlight } = usePdfHighlighterContext();
useEffect(
	() => {
		if (
			props.activeHighlight === null ||
			props.activeHighlight.id !== highlight.id
		) {
			return;
		}

		scrollToHighlight(props.activeHighlight);
	},
	[scrollToHighlight, highlight.id, props.activeHighlight],
);

Which almost works, but only when the highlight has already been rendered e.g. because it's on the first page, but it does not work when the highlight is a few tens of pages down, and it's not only broken on load, changing the activeHighlight prop doesn't work unless the highlight has actually been rendered already.

I tried always putting a highlight on page 1 and do the scrollToHighlight there - even if it's actually another highlight we're scrolling to, it's a bit clunky but works better.
import { useEffect } from "react";
import {
	type Highlight,
	useHighlightContainerContext,
	usePdfHighlighterContext,
} from "react-pdf-highlighter-extended";

export const workaroundScrollHighlight: Highlight = {
	type: "text",
	id: "workaround-scroll",
	position: {
		boundingRect: {
			x1: 0,
			x2: 0,
			y1: 0,
			y2: 0,
			width: 1,
			height: 1,
			pageNumber: 1,
		},
		rects: [],
	},
};

export function ScrollToHighlightContainer<
	T extends Highlight = Highlight,
>(props: {
	activeHighlight: Highlight | undefined;
	children: React.ReactNode;
}) {
	const { highlight } = useHighlightContainerContext<T>();
	const { scrollToHighlight } = usePdfHighlighterContext();

	useEffect(() => {
		if (!props.activeHighlight) {
			return;
		}
		if (highlight.id !== workaroundScrollHighlight.id) {
			return;
		}
		scrollToHighlight(props.activeHighlight);
	}, [scrollToHighlight, highlight.id, props.activeHighlight]);

	if (highlight.id === workaroundScrollHighlight.id) {
		return null;
	}
	return props.children;
}

And it's used like:
const extendedHighlights = [...highlights, workaroundScrollHighlight];

// ...
<PdfHighlighter
	highlights={extendedHighlights}
	// ...
>
	<ScrollToHighlightContainer activeHighlight={activeHighlight}>
		<MyHighlightContainer />
	</ScrollToHighlightContainer>
</PdfHighlighter>