Allow wildcards on the command line together with a dataset path

The information that I need is not on the default plot but on the dataset itself. A little enhancement that would be handy for me:
$ silx view /tmp/test_hdf5_gray8s_*.h5::/entry_0000/instrument/Simulator/data
ERROR:silx.app.view.main:Filename '/tmp/test_hdf5_gray8s_*.h5' must be a file path

I try several variants with quotes but without luck.

The * is indeed not supported in this case, but it is supposed to work if you provide the full filename.

it is supposed to work if you provide the full filename

Correct, it works. What I suggest here is a little extension to allow opening a given dataset for a set of (pattern matching) files. Just for convenience. It's probably doable with a little bit of bash scripting too...

It would also be nice to be able to combine data file pattern and data path pattern like
silx view file_pattern*.hdf::entry*/data

Furthermore in the case where we have a valid nexus dataset we could request a specific slice.
For example if we have a set of entries containing a 3D /data dataset that can be interpreted as an image (interpretation == image in h5py dataset attribute) then we could ask to display the last frame of the stack.
We could provide this as another parameter like
silx view file_pattern*.hdf5::entry*/data::slice=-1

Or maybe update the current way to have something like:
silx view file_pattern*.hdf5::/entry*/data&slice=-1

Or maybe go to the silx DataUrl way like:
silx view file_pattern*.hdf5?path=/entry*/data&slice=-1

@payno I would recommend you to contact @cpascual He was working sometime ago on URIs related to that.

Hi. I don't know about the internal implementations of the URIs (or URI-like) in silx, so I can only talk in abstract terms based on my experience with taurus, and more specifically, with the h5file plugin for taurus.
In taurus we try to be strict in using URIs that conform to the RFC3986 (although we allow some exceptions in some specific cases). This may be interesting for standarisation, but it imposes restrictions that may not be worth to you... so just decide what better suits your case.

It would also be nice to be able to combine data file pattern and data path pattern like

In the context of RFC3986 the  I'd say file_pattern*.hdf::entry*/data would be ok

we could request a specific slice.

Hi. I don't know about the internal implementations of the URIs (or URI-like) in silx, so I can only talk in abstract terms based on my experience with taurus, and more specifically, with the h5file plugin for taurus.
In taurus we try to be strict in using URIs that conform to the RFC3986 (although we allow some exceptions in some specific cases). This may be interesting for standarisation, but it imposes restrictions that may not be worth to you... so just decide what better suits your case.

It would also be nice to be able to combine data file pattern and data path pattern like

In the context of RFC3986 the  I'd say file_pattern*.hdf::entry*/data would be ok

we could request a specific slice.

For slices, we in taurus implemented them using the "fragment" part of the URI. This makes sense in the case of taurus because the path of the taurus URI always refers to whole hdf5 datasets and hence the slicing is done at client level (which is what the URI fragments are for ). Also, we decided to break the strict RFC here to allow using a python-slice-like syntax for the slicing.
However in the case of silx view, it may make sense to have the slice as part of the path (as in silx view file_pattern*.hdf5::entry*/data::slice=-1)
In any case, I recommend to read the TEP15 document in which we discuss relative merits of various ways of encoding the slices in the taurus URIS, since some may be of interest for silx.
silx view file_pattern*.hdf5::entry*/data
silx view file_pattern*.hdf5::entry*/data#[]
You can see th

thanks a lot for all this information. This is great to be able to benefit from your experience on the topic.


Is going to support whisper.cpp and stable-diffusion.cpp ?

Hi,
Are you going to support whisper.cpp and stable-diffusion.cpp  for Multimodal models?

Merging with #1168 - eventually :)


AWS amplify not rendering image using the dynamic online url while local build render image correctly

Before opening, please confirm:

[x] I have checked to see if my question is addressed in the FAQ.
[X] I have searched for duplicate or closed issues.
[X] I have read the guide for submitting questions.
[X] I have removed any sensitive information from my code snippets and submission.

App Id
d189enz34xyk65
AWS Region
us-east-1
Amplify Hosting feature
Web previews
Question
Locally I got:

The deployed version I got:

I'm not sure why the service URL is added before the image URL. And the wired thing is the dynamic url path does not load correctly while the static path works well.

I guess it might have to do with the path redirection so below is my setting:

Hi @wuwangzhang1216 👋🏽 at first glance, it looks like there is some configuration in your code that appends the hosted URL to the beginning of the image source URL because that behavior is also happening locally according to the screenshots you provided.
Can you confirm that the dynamic url is being properly generated locally as well?

Hi @hloriana , thank you for replying. Not quite sure why the hosted url being appended to the beginning of the image url but the dynamic url does generate properly in local and the image can be viewed in the local service.


Problem with live_demo.ipynb

Hi,
When I try to run the demo, the first line has error.
http://localhost:8888/lab/tree/trt_pose/tasks/human_pose
May I know which part I maybe missing? I am using nano.
Based on the error, I followed this link, https://github.com/opencv/opencv/issues/14884
I typed this line in command prompt, export LD_PRELOAD=/usr/lib/aarch64-linux-gnu/libgomp.so.1
but still have the same problem.
Thanks,
import json
import trt_pose.coco

with open('human_pose.json', 'r') as f:
    human_pose = json.load(f)

topology = trt_pose.coco.coco_category_to_topology(human_pose)
---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)
<ipython-input-3-0c2219f9314e> in <module>
      1 import json
----> 2 import trt_pose.coco
      3
      4 with open('human_pose.json', 'r') as f:
      5     human_pose = json.load(f)

/usr/local/lib/python3.6/dist-packages/trt_pose-0.0.1-py3.6-linux-aarch64.egg/trt_pose/__init__.py in <module>
----> 1 import torch

~/.local/lib/python3.6/site-packages/torch/__init__.py in <module>
    186     # See Note [Global dependencies]
    187     if USE_GLOBAL_DEPS:
--> 188         _load_global_deps()
    189     from torch._C import *
    190

~/.local/lib/python3.6/site-packages/torch/__init__.py in _load_global_deps()
    139     lib_path = os.path.join(os.path.dirname(here), 'lib', lib_name)
    140
--> 141     ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL)
    142
    143

/usr/lib/python3.6/ctypes/__init__.py in __init__(self, name, mode, handle, use_errno, use_last_error)
    346
    347         if handle is None:
--> 348             self._handle = _dlopen(self._name, mode)
    349         else:
    350             self._handle = handle

OSError: /usr/lib/aarch64-linux-gnu/libgomp.so.1: cannot allocate memory in static TLS block

same problem with U....

me too…

me too…

I solved this problem few months ago
so, I can't remember how to solve clearly.
I think you should add some path to ~/.profile
I find out later I don't need to use live demo because I just need onnx file!


Race condition on quitting - global slam uses probability tables alloc'd in local slam

I think there is a race condition which can happen when quitting Cartographer. Below is a stack trace produced by Valgrind.
It looks like FastCorrelativeScanMatcher2D in global slam is using probability lookup tables from ActiveSubmaps2D. Submap2D contains a plain pointer to ValueConversionTables. During destruction, we can destroy LocalTrajectoryBuilder2D while the worker pool in global slam is still looking for constraints.
Proposal: move ValueConversionTables from ActiveSubmaps to MapBuilder (which outlives both local and global slam) and pass a pointer down to ActiveSubmaps?
I0520 17:25:27.247808   651 map_builder_bridge.cc:213] Finishing trajectory with ID '0'...
I0520 17:25:27.285739   654 pose_graph_2d.cc:642] Remaining work items in queue: 0
Optimizing: 0.0%...==474== Thread 15:
==474== Invalid read of size 8
==474==    at 0x459B68: GetCorrespondenceCost (grid_2d.h:62)
==474==    by 0x459B68: GetValue (occupied_space_cost_function_2d.cc:80)
==474==    by 0x459B68: Evaluate (cubic_interpolation.h:293)
==474==    by 0x459B68: Evaluate<ceres::Jet<double, 3> > (cubic_interpolation.h:344)
==474==    by 0x459B68: operator()<ceres::Jet<double, 3> > (occupied_space_cost_function_2d.cc:56)
==474==    by 0x459B68: Call (variadic_evaluate.h:176)
==474==    by 0x459B68: ceres::internal::AutoDiff<cartographer::mapping::scan_matching::(anonymous namespace)::OccupiedSpaceCostFunction2D, double, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0>::Differentiate(cartographer::mapping::scan_matching::(anonymous namespace)::OccupiedSpaceCostFunction2D const&, double const* const*, int, double*, double**) (autodiff.h:289)
==474==    by 0x7241784: ceres::internal::ResidualBlock::Evaluate(bool, double*, double*, double**, double*) const (in /usr/lib/libceres.so.1.13.0)
==474==    by 0x71D7430: ??? (in /usr/lib/libceres.so.1.13.0)
==474==    by 0xF982ECE: GOMP_parallel (in /usr/lib/x86_64-linux-gnu/libgomp.so.1.0.0)
==474==    by 0x71D957A: ceres::internal::ProgramEvaluator<ceres::internal::ScratchEvaluatePreparer, ceres::internal::DenseJacobianWriter, ceres::internal::NullJacobianFinalizer>::Evaluate(ceres::internal::Evaluator::EvaluateOptions const&, double const*, double*, double*, double*, ceres::internal::SparseMatrix*) (in /usr/lib/libceres.so.1.13.0)
==474==    by 0x7260D7D: ceres::internal::TrustRegionMinimizer::EvaluateGradientAndJacobian() (in /usr/lib/libceres.so.1.13.0)
==474==    by 0x726180C: ceres::internal::TrustRegionMinimizer::IterationZero() (in /usr/lib/libceres.so.1.13.0)
==474==    by 0x7265F63: ceres::internal::TrustRegionMinimizer::Minimize(ceres::internal::Minimizer::Options const&, double*, ceres::Solver::Summary*) (in /usr/lib/libceres.so.1.13.0)
==474==    by 0x7257799: ceres::Solver::Solve(ceres::Solver::Options const&, ceres::Problem*, ceres::Solver::Summary*) (in /usr/lib/libceres.so.1.13.0)
==474==    by 0x7258548: ceres::Solve(ceres::Solver::Options const&, ceres::Problem*, ceres::Solver::Summary*) (in /usr/lib/libceres.so.1.13.0)
==474==    by 0x455B01: cartographer::mapping::scan_matching::CeresScanMatcher2D::Match(Eigen::Matrix<double, 2, 1, 0, 2, 1> const&, cartographer::transform::Rigid2<double> const&, std::vector<cartographer::sensor::RangefinderPoint, std::allocator<cartographer::sensor::RangefinderPoint> > const&, cartographer::mapping::Grid2D const&, cartographer::transform::Rigid2<double>*, ceres::Solver::Summary*) const (ceres_scan_matcher_2d.cc:103)
==474==    by 0x4888D2: cartographer::mapping::constraints::ConstraintBuilder2D::ComputeConstraint(cartographer::mapping::SubmapId const&, cartographer::mapping::Submap2D const*, cartographer::mapping::NodeId const&, bool, cartographer::mapping::TrajectoryNode::Data const*, cartographer::transform::Rigid2<double> const&, cartographer::mapping::constraints::ConstraintBuilder2D::SubmapScanMatcher const&, std::unique_ptr<cartographer::mapping::PoseGraphInterface::Constraint, std::default_delete<cartographer::mapping::PoseGraphInterface::Constraint> >*) (constraint_builder_2d.cc:242)
==474==  Address 0x1b7c3d80 is 0 bytes inside a block of size 24 free'd
==474==    at 0x4C3123B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==474==    by 0x43809C: operator() (unique_ptr.h:78)
==474==    by 0x43809C: ~unique_ptr (unique_ptr.h:268)
==474==    by 0x43809C: ~pair (stl_pair.h:208)
==474==    by 0x43809C: destroy<std::pair<const std::tuple<float, float, float>, std::unique_ptr<const std::vector<float> > > > (new_allocator.h:140)
==474==    by 0x43809C: destroy<std::pair<const std::tuple<float, float, float>, std::unique_ptr<const std::vector<float> > > > (alloc_traits.h:487)
==474==    by 0x43809C: _M_destroy_node (stl_tree.h:650)
==474==    by 0x43809C: _M_drop_node (stl_tree.h:658)
==474==    by 0x43809C: _M_erase (stl_tree.h:1858)
==474==    by 0x43809C: ~_Rb_tree (stl_tree.h:949)
==474==    by 0x43809C: ~map (stl_map.h:294)
==474==    by 0x43809C: ~ValueConversionTables (value_conversion_tables.h:32)
==474==    by 0x43809C: ~ActiveSubmaps2D (submap_2d.h:79)
==474==    by 0x43809C: cartographer::mapping::LocalTrajectoryBuilder2D::~LocalTrajectoryBuilder2D() (local_trajectory_builder_2d.cc:49)
==474==    by 0x495F7A: operator() (unique_ptr.h:78)
==474==    by 0x495F7A: ~unique_ptr (unique_ptr.h:268)
==474==    by 0x495F7A: ~GlobalTrajectoryBuilder (global_trajectory_builder.cc:47)
==474==    by 0x495F7A: cartographer::mapping::(anonymous namespace)::GlobalTrajectoryBuilder<cartographer::mapping::LocalTrajectoryBuilder2D, cartographer::mapping::PoseGraph2D>::~GlobalTrajectoryBuilder() (global_trajectory_builder.cc:47)
==474==    by 0x3AA934: operator() (unique_ptr.h:78)
==474==    by 0x3AA934: ~unique_ptr (unique_ptr.h:268)
==474==    by 0x3AA934: ~CollatedTrajectoryBuilder (collated_trajectory_builder.h:48)
==474==    by 0x3AA934: cartographer::mapping::CollatedTrajectoryBuilder::~CollatedTrajectoryBuilder() (collated_trajectory_builder.h:48)
==474==    by 0x2EFA0D: operator() (unique_ptr.h:78)
==474==    by 0x2EFA0D: ~unique_ptr (unique_ptr.h:268)
==474==    by 0x2EFA0D: _Destroy<std::unique_ptr<cartographer::mapping::TrajectoryBuilderInterface> > (stl_construct.h:98)
==474==    by 0x2EFA0D: __destroy<std::unique_ptr<cartographer::mapping::TrajectoryBuilderInterface>*> (stl_construct.h:108)
==474==    by 0x2EFA0D: _Destroy<std::unique_ptr<cartographer::mapping::TrajectoryBuilderInterface>*> (stl_construct.h:137)
==474==    by 0x2EFA0D: _Destroy<std::unique_ptr<cartographer::mapping::TrajectoryBuilderInterface>*, std::unique_ptr<cartographer::mapping::TrajectoryBuilderInterface> > (stl_construct.h:206)
==474==    by 0x2EFA0D: ~vector (stl_vector.h:434)
==474==    by 0x2EFA0D: ~MapBuilder (map_builder.h:40)
==474==    by 0x2EFA0D: cartographer::mapping::MapBuilder::~MapBuilder() (map_builder.h:40)
==474==    by 0x33ACCE: operator() (unique_ptr.h:78)
==474==    by 0x33ACCE: ~unique_ptr (unique_ptr.h:268)
==474==    by 0x33ACCE: cartographer_ros::MapBuilderBridge::~MapBuilderBridge() (map_builder_bridge.h:59)
==474==    by 0x319BD0: cartographer_ros::Node::~Node() (node.cc:171)
==474==    by 0x2D5654: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
==474==    by 0x2F3791: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
==474==    by 0x2F3791: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
==474==    by 0x6A05DB2: QThreadPrivate::start(void*) (in ../Qt/5.12.2/gcc_64/lib/libQt5Core.so.5.12.2)
==474==    by 0x836F6DA: start_thread (pthread_create.c:463)
==474==    by 0xB0F088E: clone (clone.S:95)
==474==  Block was alloc'd at
==474==    at 0x4C3017F: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==474==    by 0x3B61E9: make_unique<std::vector<float> > (memory.h:173)
==474==    by 0x3B61E9: PrecomputeValueToBoundedFloat (value_conversion_tables.cc:42)
==474==    by 0x3B61E9: cartographer::mapping::ValueConversionTables::GetConversionTable(float, float, float) (value_conversion_tables.cc:61)
==474==    by 0x393867: cartographer::mapping::Grid2D::Grid2D(cartographer::mapping::MapLimits const&, float, float, cartographer::mapping::ValueConversionTables*) (grid_2d.cc:69)
==474==    by 0x394930: cartographer::mapping::ProbabilityGrid::ProbabilityGrid(cartographer::mapping::MapLimits const&, cartographer::mapping::ValueConversionTables*) (probability_grid.cc:31)
==474==    by 0x397731: make_unique<cartographer::mapping::ProbabilityGrid, cartographer::mapping::MapLimits, cartographer::mapping::ValueConversionTables*> (memory.h:173)
==474==    by 0x397731: cartographer::mapping::ActiveSubmaps2D::CreateGrid(Eigen::Matrix<float, 2, 1, 0, 2, 1> const&) (submap_2d.cc:198)
==474==    by 0x3979E3: cartographer::mapping::ActiveSubmaps2D::AddSubmap(Eigen::Matrix<float, 2, 1, 0, 2, 1> const&) (submap_2d.cc:234)
==474==    by 0x397EB9: cartographer::mapping::ActiveSubmaps2D::InsertRangeData(cartographer::sensor::RangeData const&) (submap_2d.cc:165)
==474==    by 0x434DA9: cartographer::mapping::LocalTrajectoryBuilder2D::InsertIntoSubmap(std::chrono::time_point<cartographer::common::UniversalTimeScaleClock, std::chrono::duration<long, std::ratio<1l, 10000000l> > >, cartographer::sensor::RangeData const&, std::vector<cartographer::sensor::RangefinderPoint, std::allocator<cartographer::sensor::RangefinderPoint> > const&, cartographer::transform::Rigid3<double> const&, Eigen::Quaternion<double, 0> const&) (local_trajectory_builder_2d.cc:289)
==474==    by 0x4386A0: cartographer::mapping::LocalTrajectoryBuilder2D::AddAccumulatedRangeData(std::chrono::time_point<cartographer::common::UniversalTimeScaleClock, std::chrono::duration<long, std::ratio<1l, 10000000l> > >, cartographer::sensor::RangeData const&, cartographer::transform::Rigid3<double> const&, absl::optional<std::chrono::duration<long, std::ratio<1l, 10000000l> > > const&) (local_trajectory_builder_2d.cc:251)
==474==    by 0x439934: cartographer::mapping::LocalTrajectoryBuilder2D::AddRangeData(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cartographer::sensor::TimedPointCloudData const&) (local_trajectory_builder_2d.cc:206)
==474==    by 0x4979A6: cartographer::mapping::(anonymous namespace)::GlobalTrajectoryBuilder<cartographer::mapping::LocalTrajectoryBuilder2D, cartographer::mapping::PoseGraph2D>::AddSensorData(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cartographer::sensor::TimedPointCloudData const&) (global_trajectory_builder.cc:58)
==474==    by 0x3A8FAC: cartographer::sensor::Dispatchable<cartographer::sensor::TimedPointCloudData>::AddToTrajectoryBuilder(cartographer::mapping::TrajectoryBuilderInterface*) (dispatchable.h:35)
==474==
==474== (action on error) vgdb me ...

Related: #1446

I got bit by this problem as well. I think the race condition mentioned by @ojura is exposing the underlying problem which is that Submap2D and Grid2D are holding a raw pointers to, technically, a shared resource(ValueConversionTables). Moving the ValueConversionTables to MapBuilder will definitely suppress this life-time issue but the underlying problem will continue to exist and will prop-up again whenever users(like me) try to use Submap2D for scan matching in contexts outside of the current cartographer stack. This combined with with the fact that Submap2D's are communicated to the rest of the process using shared_ptr<> makes it worse furthermore.
That said, I have a different proposal than what @ojura mentioned but it shares the motivation:
Modify ActiveSubmaps, Submap2D, and Grid2D to use std::shared_ptr<ValueConversionTables>.
This will ensure that the conversion tables will live at least as long as the last Submap2D or Grid2D that refers to them.
This  problem is currently blocking me. If the authors with bigger context than myself think it's a sane idea, I can start working on a PR to address this.
Also, related to this but tangential:
Both Submap2D and Grid2D hold a pointer to the ValueConversionTables. Technically, Submap2D has no real purpose for holding  this pointer as the member Grid2D already has it. If others here agree that I am not being naive about it, I can go ahead an create a second PR to Remove redundant references to the ValueConversionTables from Submap2D.

A shared pointer sounds like a reasonable idea as well. I also thought of it, but initially suggested the lighter change first because perhaps the intention behind using a plain pointer was for performance reasons.


normalization should not change KeyDataPair to NameValuePair

Fixes #532
See https://github.com/HtmlUnit/htmlunit/commit/39c58d2b114bebb157be57d63416f629630eee07#r93713845

Jenkins will have a look at this....

sorry we are still at java8 :-)
/var/lib/jenkins/workspace/htmlunit_PR-533/src/test/java/com/gargoylesoftware/htmlunit/WebRequestTest.java:[437,42] cannot find symbol
symbol:   method of(com.gargoylesoftware.htmlunit.util.NameValuePair,com.gargoylesoftware.htmlunit.util.KeyDataPair)
location: interface java.util.List

Yeah I've seen that but somehow eclipse didn't warn me when i used Java 11 features.
I corrected the problematic part. At least I hope so

tests are looking good !

@rbri  please have a look at the additional commit. Perhaps that is what you had in mind ...

i have nothing in mind ;-)
thanks a lot - will inform when the new snapshot is availble
and all the best for 2023


Reduce PEP-8 errors

See https://github.com/Senzing/g2-python/issues/123

Pull requests:

https://github.com/Senzing/dumpstack/pull/8


Partial Dutch translation

My apologies for accedentially resetting this branch! Just for the record, and maybe it will help other committers/maintainers, here is what happened:

I checked out the pull request locally, following the described method at:
https://wiki.lyrasis.org/display/DSPACE/Development+with+Git#DevelopmentwithGit-TestingPullRequests in a local branch called "PR557-Partial-Dutch-Translation"
On this branch, I rebased to bring the branch up to date with the last changes in master.
I added Marina's repository as a remote: https://github.com/muiltje/dspace-angular.git
Here is where it went wrong, while I was on my local branch, I pushed with the command:
git push -f marina master

This had the adverse result that it pushed my master branch to Marina's master branch, and not the Pull request branch that I had created. The correct command would have been:
git push -f marina PR557-Partial-Dutch-Translation:master
Again, my apologies. Fixed now in: https://github.com/DSpace/dspace-angular/pull/593


Queue webjobs extension has project reference on Queues SDK

This should be updated to be a package reference before GA.

/cc @kasobol-msft

Same goes for blobs but we're not 100% decided yet since both SDK and extension ship using same pipeline.
We're yet to observe how frequently extension ships alone without SDK upgrade to make that call.

This now uses a package reference.


Bug with optimizer_v2.OptimizerV2.set_weights method

Cross posted from https://github.com/tensorflow/tensorflow/issues/50859
Original Author : @suneeta-mall
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
None
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
Linux (Ubuntu/Debina)
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
NA
TensorFlow installed from (source or binary):
Binary
TensorFlow version (use command below):
Python version: 2.4.1 & 2.4.x
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version:
11.0
GPU model and memory:

You can collect some of this information using our environment capture
script
You can also obtain the TensorFlow version with:

TF 1.0: python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
TF 2.0: python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"
2.4.1

Describe the current behavior
I am seeing an issue in setting Adam optimizer weights in Optimizer v2 implementation. Looking at the code here https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/keras/optimizer_v2/adam.py#L154-L160, it seems to be able to set the weights the current optimizer must have been initialized and set the right size in terms of array length. If this assertion is correct setting weights on_train_begin or prior to the first gradient calculation is a bit too soon to set optimizers weights.
In earlier versions, this was not a problem, and optimizer set_weights use to work at on_train_begin.
I suspect this is a bug in how slots and weights are internally structured.
Code to reproduce the issue is here:
https://gist.github.com/suneeta-mall/b6086a6b252075f48936a5f80f040b77
To run try:
python debug_optimizer_issue.py

& then try again:
python debug_optimizer_issue.py --start_epoch 2

The first run finishes and the second one, where its suppose to start from epoch 2,  fails with error as:
ValueError: You called `set_weights(weights)` on optimizer Adam with a  weight list of length 9, but the optimizer was expecting 0 weights. Provided weights: [120, array([[ 0.0000000e+00,  0.0000000e+00,  0.0...

I looked around in Adam V2 code to see if there are any other APIs that can help with creating slots etc but I didn't see any that does not require knowledge of internal implementation details (I think).
As a crazy thought, I use array extension on actual weights to bypass the bug in set_weights like this:
model.optimizer.weights.extend(_ref_model.optimizer.get_weights())

This lets past the training regime, but the next model save errors into:
AttributeError: 'numpy.int64' object has no attribute 'name'

Worth noting, the same problem exists with SGD, which is met with the following related error:
ValueError: You called `set_weights(weights)` on optimizer SGD with a  weight list of length 1, but the optimizer was expecting 0 weights. Provided weights: [120]...

Please note: This code is written for TF2, and will not work as in TF1. Also, in earlier versions of TF 2.1 support for loading h5 weights in distributed scope was not there. In that case, a callback was necessary to set the weights, for more see here https://github.com/tensorflow/tensorflow/issues/30850.
Also worth noting that, I appreciate that the instead of setting weights, I can just load the model like following:
        if args.start_epoch:
            model = load_model(f"model_{args.start_epoch}.h5")
            # deduced_epoch = int(_ref_model.optimizer.iterations.numpy() // (len(train_images) / args.batch_size))
            # if deduced_epoch != args.start_epoch:
            #     raise ValueError()
            # model.set_weights(_ref_model.get_weights())
            # model.optimizer.set_weights(_ref_model.optimizer.get_weights())

and that works fine. But for the use case I have I need to set the weights and optimizer weights explicitly.
Describe the expected behavior
I expect the set_weights to work naturally.
Contributing

Do you want to contribute a PR? (yes/no):
Briefly describe your candidate solution(if contributing):

Standalone code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate
the problem. If possible, please share a link to Colab/Jupyter/any notebook.
Other info / logs Include any logs or source code that would be helpful to
diagnose the problem. If including tracebacks, please include the full
traceback. Large logs and files should be attached.

@chenmoneygithub Are we planing to fix this issue?
It is still needed for some cases we like to want to reuse original optimizer's weights in a new optimizer and continue training.
For example: model with optimizer is loaded from a checkpoint, and we want to continue training with a different optimizer ( like horovod.DistributedOptimizer).
        model = load_model(f"model.h5")
        new_opitmizer = get_new_opimtizer(config)
        new_opitmizer.set_weights(model.optimzier.get_weights())
        model.compile(optimizer=new_opitmizer)

I may not understand your use case: could you explain why you want to use two types of optimizers before and after saving?

@chenmoneygithub Can I please ask why the original issue is closed?

@chenmoneygithub
It is mainly for model fine tuning or incremental training use cases. We like to load a compiled and trained model from checkpoing.h5 file. Copy the optimizer weights to a new horovod distributed optimizer and continue the training job.
        model = load_model(f"model.h5")
        old_weights = model.optimzier.get_weights()
        new_opitmizer = horovod.DistributedOptimizer(...)
        model.compile(optimizer=new_opitmizer)

       # this will fail because the new optimizer do not have weights initialized.
        model.set_weights(old_weights)

We found a work around like below, but just like to know if it can be fixed officially.
        model = load_model(f"model.h5")
        old_weights = model.optimzier.get_weights()
        new_opitmizer = horovod.DistributedOptimizer(...)
        model.compile(optimizer=new_opitmizer)

        # use fake gradient to let optimizer init the wieghts.
        grad_vars = model.trainable_weights
        zero_grads = [tf.zeros_like(w) for w in grad_vars]
        model.optimizer.apply_gradients(zip(zero_grads, grad_vars))

        # This will work because the new optimizer is initialized.
        model.set_weights(old_weights)


Create Default (Windows).sublime-keymap

We may discuss changing the default key binding. I have no experience picking those.

Seems like a reasonable choice to me.

Sure than proceed with the merge. BTW - I am sorry to post such volley of PR instead a single coherent one bundling all file adds and modifications. The reason being that I am still struggling with GitHub.


Rename fork to pypdfium2-ctypesgen

rename package to pypdfium2-ctypesgen
update metadata to point to fork
add checks for recent Python versions
add tox.ini to run tests with supported Python versions

See: #17

It's not clear to me why you need this, as this is only ever a setup-time dependency, the more so as only of a single project. As such, pypdfium2-ctypesgen is not meant to be packaged. If you are afraid of conflicts with the original ctypesgen, I'd say build pypdfium2 in a virtual env.


Fix linter issue and ban usage of open() in bots.

This addresses #5395.

Automated message from Dropbox CLA bot
@derAnfaenger, it looks like you've already signed the Dropbox CLA. Thanks!

Codecov Report

Merging #5488 into master will decrease coverage by 0.03%.
The diff coverage is 94.89%.

@@            Coverage Diff            @@
##           master   #5488      +/-   ##
=========================================
- Coverage   86.63%   86.6%   -0.04%
=========================================
  Files         430     431       +1
  Lines       53190   53376     +186
  Branches     2069    2086      +17
=========================================
+ Hits        46080   46224     +144
- Misses       7110    7152      +42

Impacted Files
Coverage Δ

static/js/message_list_view.js
27.69% <ø> (ø)
:arrow_up:

zerver/views/users.py
100% <ø> (ø)
:arrow_up:

static/js/narrow.js
27.43% <0%> (-0.31%)
:arrow_down:

frontend_tests/node_tests/message_list.js
100% <100%> (ø)
:arrow_up:

zerver/views/messages.py
100% <100%> (ø)
:arrow_up:

frontend_tests/node_tests/filter.js
100% <100%> (ø)
:arrow_up:

static/js/settings_bots.js
22.33% <100%> (+12.62%)
:arrow_up:

frontend_tests/node_tests/settings_bots.js
100% <100%> (ø)
:arrow_up:

static/js/message_list.js
69.08% <100%> (+0.16%)
:arrow_up:

frontend_tests/node_tests/user_events.js
100% <100%> (ø)
:arrow_up:

... and 6 more

Continue to review full report at Codecov.

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

@showell updated again :)

Merged!  Thanks for your patience on this one, @derAnfaenger!


Link for the docs

Hi,
Where can I get the documentation of this AMQP consumer and producer?
Kindly share the link/docs of the same.
Thanks,
Abhishek

There is this http://jatinanejablog.blogspot.in/2016/06/configure-jmeter-to-load-test-rabbit-mq.html


taint-and-toleration: Delete out-of-disk, add pid-pressure

Delete a reference to the node.kubernetes.io/out-of-disk taint, which Kubernetes 1.14 deleted (https://github.com/kubernetes/kubernetes/pull/67037/commits/8f87e71e0cc3a2b714291ecd7210dfd8f4de33d6).
Document that the DaemonSet controller adds a toleration for the node.kubernetes.io/pid-pressure taint since Kubernetes 1.14 (https://github.com/kubernetes/kubernetes/pull/67036/commits/ad6e3617d3e92f47fa0874ca258ffe31d1d2ff4c).

content/en/docs/concepts/scheduling-eviction/taint-and-toleration.md: Delete references to node.kubernetes.io/out-of-disk and document that the DaemonSet adds a toleration for node.kubernetes.io/pid-pressure.

/kind cleanup

https://deploy-preview-27640--kubernetes-io-master-staging.netlify.app/docs/concepts/scheduling-eviction/taint-and-toleration/#taint-nodes-by-condition

/sig scheduling

/lgtm


[Bug Report] If render mode is not passed before env.render, the code derps out instead of being elegantly handled

See openai/gym#3108
When trying to render the Taxi environment without having passed a render_mode, there's a rather weird error message that "This should never happen". It, indeed, should never happen, and we should catch this issue earlier with a descriptive error message.
I'm not sure how general the issue is, and how generally we should tackle it - but some general safeguard of "You can't call env.render() without setting render_mode on make" might be appropriate
I'll take a look at it in more detail in a bit

I believe this is the second or third time someone has got this issue.
I spoke to @younik about this who agreed to make a PR that raised a similar error to the one described after he had finished the PZ rendering mode. We should do this for Gym and Gymnasium I believe


There are 2 actions of the shortcut 'Ctrl+D'

OS: Windows 10 x64
PyQt version:

Ctrl + D is copying a selected bounded box, but now there is a new function to delete current image.
And now the Ctrl + D is not working for copying.

I have fix the issue, but the 'deleteImg' should be disabled.
Replace "CTRL+D" into "None" at line 245
deleteImg = action(getStr('deleteImg'), self.deleteImg, None, 'close', getStr('deleteImgDetail'))
The duplicate rect-box will work.

Good finding. There are duplicated ctrl+D hotkey. I will fix this by changing delete image hotkey to 'Ctrl+Shift+D

949e46c


Datepicker filter with available promise response

Bug, feature request, or proposal:
Feature request
What is the expected behavior?
matDatepickerFilter: (date: D | null) => Promise<boolean> | boolean
What is the current behavior?
matDatepickerFilter: (date: D | null) => boolean
What are the steps to reproduce?
Preview of days in month
What is the use-case or motivation for changing an existing behavior?
I would like to filter days based on backend information. Which days are available which dont. All information cannot be cached on fronted for all years :)
Is there anything else we should know?
No :)

Is there a compelling reason not to just update the filter property once the data resolves?

@jelbourn Could you suggest how? below pseudo-code
filterFunction(date: D | null) {
    let lockDaysArray = this.httpConfigurationClientWithCacheOption(date.getMonth(), date.getYear());
    return !lockDaysArray.find((x) => x === date);
}

class MyComponent {
  dateFilter = () => false;

  constructor() {
    getSomeData().then(dateList) {
      this.dateFilter = d => { dateList.includes(d) };
    }
  }
}

<input matInput [matDatepickerFilter]="dateFilter">

And could you say how many data should I take from service getSomeData()?
1k? 2k? 10k? 100k records?
It doesn't sound good...
In your proposal, I should download all records from db for all years and months. It means I should download from 1900 to 2100 in my situation all days off: holidays, national day off and weekends. And it cannot be cached because month by month it can be changed.
It sounds like a really bad idea.
Could you suggest a more realistic solution in this situation?

This is just illustrating the idea; you fetch some data and then update the filter. You have total control over what data you fetch, what parameters you use to fetch it, and how often it's called.

@jelbourn
I know how to update change dataFilter...
I totally disagree with you about possibility of a asynchronize usages of datepicker. In my opinion, it sounds like 'it works for me' but you just never try to connect a changing month and download data in one solution.
For a clearer understanding, I will prepare a test case for that.
Overall problem:
In changing month event is synchronize.
It means when I start downloading data for days off, a datepicker filter is just starting iterating over days.  After data had downloaded, that all of the days were filtered.


paraments setting

Hi：
I want to know how the paraments of kalman filter setting? thank you for your reply!

@lucheng07082221
As soon as you understand the Kalman filter definition and your own data scenario, you would get the answer. In my case, it's two dimension tracking problem, and that's why the initial state looks like this.
Others parameter just a tuning process, let's try and error :)


minor changes

[ ] closes #xxxx (Replace xxxx with the Github issue number)
[ ] Tests added and passed if fixing a bug or adding a new feature
[ ] All code checks passed.
[ ] Added type annotations to new arguments/methods/functions.
[ ] Added an entry in the latest doc/source/whatsnew/vX.X.X.rst file if fixing a bug or adding a new feature.

Sorry. I am just learning forking. I didn't notice that the default option was pushing to the original repository instead of my test repo.


Add ability to open a chosen record in a fluidity entity picker

I needed to be able to open a record which was chosen using a fluidity entity picker.
I Whilst looking into it we found a rough way to do it. Since then
This issue is a feature request and will follow with my pull request to use the 'open' link and render the link next to the 'remove' link.

Closing issue as can continue discussion on the PR #44


Deal with multiple clients.

When there are multiple clients connected to different sessions, the implicitly targeted pane for swapping can be the pane active in a different client.  When that happens, swapping fails, the original pane gets destroyed and the targeting pane gets left behind.  Explicitly target the intended pane.

Thanks for the fix! :+1:

Thanks for the fix! :+1:


HTML on total to render subscript and superscript

Summary
Good day, I want to ask if you can support html tags inside total label so that it can support subscript and superscripts.
Intended Use Case
I want to display a chemistry total like CO2 where in the 2 should be a subscript.

Hi, I would like to see this feature too. Any progress with it? I would like to use it for axis tittle (for m3/h).


PEP440 Warning

Hey Trevor,
made an easy_install in Ubuntu 15.04, Warns me about this PEP440 thingy.
yann@yann-OK:~/dev$ sudo easy_install pysis
/usr/lib/python2.7/dist-packages/pkg_resources/init.py:2512: PEP440Warning: 'python-apt (<IP_ADDRESS>build1)' is being parsed as a legacy, non PEP 440, version. You may find odd behavior and sort order. In particular it will be sorted as less than 0.0. It is recommend to migrate to PEP 440 compatible versions.
PEP440Warning,
Searching for pysis
Reading https://pypi.python.org/simple/pysis/
Best match: pysis 0.5.0
Downloading https://pypi.python.org/packages/source/p/pysis/pysis-0.5.0.tar.gz#md5=0c55ccf9d694f9d01e41bc4dc5d2234e
Processing pysis-0.5.0.tar.gz
Writing /tmp/easy_install-HaWJJ3/pysis-0.5.0/setup.cfg
Running pysis-0.5.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-HaWJJ3/pysis-0.5.0/egg-dist-tmp-l304Jb
warning: no previously-included files matching 'pycache' found under directory ''
warning: no previously-included files matching '.py[co]' found under directory '*'
creating /usr/local/lib/python2.7/dist-packages/pysis-0.5.0-py2.7.egg
Extracting pysis-0.5.0-py2.7.egg to /usr/local/lib/python2.7/dist-packages
Adding pysis 0.5.0 to easy-install.pth file
Installed /usr/local/lib/python2.7/dist-packages/pysis-0.5.0-py2.7.egg
Processing dependencies for pysis
Finished processing dependencies for pysis

Oh just realized it maybe python-apt really and not pysis.

I think you're right in that python-apt is triggering the warning. According to this bug report you should be safe in ignoring it. Let me know if you suspect otherwise and I'll reopen the issue.


Add "Challenge: Modeling Accretion Disks"

I won't close this, but you're going to have to justify this one.

I dunno I just chose it because I would describe it as "awesome"

All of Peter Collingridge's programs are cool, but I'm comparing it with the other programs on the list and I don't think it holds up.
By the way, the "awesome" part just comes from the type of list format I'm trying to stick with.


Add .idea folder to gitignore

Thanks! If you come across any problems or questions while exploring the project, please raise them here!

I am playing around with the idea, to extend the README with a howto to a local test/dev environment based on Docker.
It sounds a bit crazy to setup minikube in Docker, but it is possible.
The benefits would be:

pre baked minikube test/dev environment with cassandra, which you can start with a one liner
no need to setup GCP or other cloud project for trying out the project
local environment for development

What do you think? Does that make sense to you @jroper @viktorklang?

@janory Experiment away! :)

@jroper I have two understanding questions:
Can you please point me to the direction where/how does the handleEvent method talks to the Akka Sidercar (cassandra proxy)?
I guess it must be somewhere around the serializer.
The Akka sidecar is running on the same POD in a different container, if I am not mistaken, it exposes its generic grpc services via some HTTP endpoints, but I don't understand how can the node-support talk to it without any hostname or url.
And the other question is:
Why do we need the user-function.desc file, if we have the shoppingcart.protoanddomain.proto` files and we can compile them with protoc?

@janory Each "language support library" (like node-support) will create a gRPC server that speaks the entity protocol, and node-support does that here
When the sidecar starts, it will connect to the gRPC server of the user function using the entity protocol, and it will respond with which service(s) it wants to expose, where the user-function.desc is the binary representation of those protocols. (remember, protobuf is not self-describing) The sidecar will generate HTTP and gRPC routes to proxy the user function.
Does that help?

Does that help?

@viktorklang Thanks! Totally, because I was in the belief, that the "language support library" is the facing service to the outside and that forwards the messages to the sidecar. But the reality is, that it's the other way around.
I still need some time to reverse engineer the node-support logic, to be able to implement it in Scala, but I am on it. 👍

@janory are you working on the Scala library support?

@janory Unless you haven't already, it's worth having a look at this: https://github.com/cloudstateio/cloudstate/blob/master/docs/design.md

@janory are you working on the Scala library support?

@andyczerwonka I would like to, but I haven't started it yet, because I have very limited time and I can only work on this on weekends and after work. At this phase I am about to understand the whole logic and setup a very basic working version.

@janory Unless you haven't already, it's worth having a look at this: https://github.com/cloudstateio/cloudstate/blob/master/docs/design.md

@viktorklang I did not know about this, it will help a lot! Thanks!

Weekends and after work is when most of us can do this, so please don't be discouraged. :-) I was also going to have a go, but I'm not sure it makes sense for both of us at this stage.
And yes, the design doc is a great starting point, along with the current JS library and shopping cart example.

So today I finally got the time and started to work on it.
Although I am sometimes still a little bit lost in the JS callbacks, at least I was able to understand the important parts of the logic.
I am facing with two problems now:

I don't know where/how should I start with the implementation of the Any serializer/deserializer for the snapshot
In my project the google.protobuf.Any is in the protobuff_external folder in the target, so it's not visible.
I haven't started to work on the context at all, but I think that won't be a big issue, once I will able to store the snapshot somehow

This is my work so far.

It's very far from idiomatic code
At the beginning I just hardcoded everything without separating the custom parts, because I wanted to see how will this going to work out (so shopping-cart related stuff is yet to be separated)
I have only played around with the command handler part

I think there will be no need to pass the path to the proto files from the user function library (like we do it in JS), because we can just pass the necessary serializers/deserializers as a Map.
Here is what I mean:
  val serializerMap = Map(
    "com.example.shoppingcart.GetShoppingCart" -> ShoppingCart.Serializers.GetShoppingCartSerializer,
    // etc...
  )

The key would be the command.payload.typeUrl and the value is the corresponding serializer.

Big step! Today I've made the first successful client.getCart(userId) call from the ShoppingCartClient against the scala-support library.
I've found out, that I don't need to write my own Any serializer, because ScalaPB provides it already.
So there is no need for custom Any serializer/deserializer like in the JS impelentation, I can just use the pbAny.unapply and pbAny.apply methods to serialize and deserialize the snapshot.
Am I right about this @viktorklang, or is there any reason not to use these one?

Yep that's right, the JavaScript protobuf support is very primitive (and full of bugs) to say the least. In Java/Scala it's much better.

Hey guys!
I've seen, that you are using scala for the java-support lib as well, so I guess you don't my help with scala-support lib, because that implementation will cover both Scala and Java.
So I will stop with my version and at let you implement it, unless you tell me it makes sense to keep working on it.

Hi János,
yeah, I had to switch to implementing it in Scala due to some code
generation issues. The intent is to try to pull the protocol-handling parts
of the java-support into its own lib so that the Java User API, Scala User
API etc can be implemented on top of it.
However, I still think there's value in experimenting with the user-facing
parts of the Scala API. Within a few days you should be able to see
how/where you could be able to hook into it.
I'm going to be tackling the protocol implementation and James the Java
API, and we're going to sanity-check eachother's code as things progress.
On Thu, Aug 15, 2019 at 1:59 PM János Szathmáry<EMAIL_ADDRESS>wrote:

Hey guys!
I've seen, that you are using scala for the java-support lib as well, so I
guess you don't my help with scala-support lib, because that implementation
will cover both Scala and Java.
So I will stop with my version and at let you implement it, unless you
tell me it makes sense to keep working on it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/cloudstateio/cloudstate/pull/53?email_source=notifications&email_token=AAACU54AHBW5LFRPKJPUQMLQEVON5A5CNFSM4IGDEX62YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4L4IQQ#issuecomment-521651266,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAACU5ZLXA3ATX5PLLFRMXDQEVON5ANCNFSM4IGDEX6Q
.

--
Cheers,
√

@viktorklang
I see, thanks for your answer.
In this case, let me share with you my work so far, you can find it here and here.
Some comments to the code:

There are still lots of missing/incomplete parts
The registration/factory logic is not as nice as for the JS implementation and it only supports one Entity at the moment
There are parts which are hard to reason about
I was experimenting with the types, because I wanted to avoid casting in handleEvent & handleCommand, but I cloud not find a good way yet.
If I could make that work somehow, the user should only implement a handleCommand Map[String, Function], where the key is the commandName and the value is a function which has to be implemented by the user. For example (request: GetShoppingCart) => localeState
The generated ShoppingCartHandler object's handle function is good inspiration, take a look at it

With all that said, maybe you will be still find some useful ideas or at least get some inspiration from it.
I would still happy to contribute, so if you reached that state where I could help, let me know!


Bug schedule run onOneServer

Describe the bug
I'm running into a problem when scheduling jobs in my application using the Schedule feature: onOneServer(), the job just get scheduled for one tenant and the others get skipped.
Steps to reproduce

Create an schedule command using the feature onOneServer()

Expected behavior
The command should run for each one of the tenants, however it only runs in one tenant.
The output is something like the following:
Tenant: tenant1
Running scheduled command: App\Domain\Process\Jobs\MyJob
Tenant: tenant2
Skipping command (has already run on another server): App\Domain\Process\Jobs\MyJob

I´ve been looking into it an the problem is that onOneServer has a key which is used to prevent that the same command is executed multiple times in other servers.
So I wonder if the command should be scoped in some way with the tenants.
Your setup

Laravel version: 8.48.1
stancl/tenancy version: v3.4.4
redis cluster cache: 5.0.6

Jobs aren't meant to be scheduled for multiple tenants. All tenancy logic should happen inside the jobs. See the docs


add all cheats files from a repo

Every time i execute navi repo add myrepo I have to select one by one with fzf every single file, when I just want to select every single one, how do I manage to accomplish that?

The master branch already supports importing all files. Please wait for the next release, which will probably happen this week :)


History Modal

So far the Restclient can only replay the latest bookmarked request.
However it already tracks ALL requests you make in a history table.
I've gone ahead and built a GUI by reusing most of the Bookmark modal (which is in fact mislabeled as a sidebar)
While doing that I also cleaned up some CSS stuff. The Bookmarks window had about half of it's elements styled in the restclient.css and the other half in restclient.bookmark.css. I've moved everything bookmark specific to restclient.bookmark.css
I've set up travis with my repo to build new releases automatically since my Windows computer doesn't have a commanline zip utility matching the parameters in the build.sh
https://github.com/mastacheata/RESTClient-APS/releases/download/v1.8-history/restclient-aps.xpi
fixes #46

Discussion in #46


Send complete attachment message to Matrix

Before:

After:

This could still be significantly improved, opened https://github.com/Automattic/Orbit/issues/472 to track that.


Marked Does Not Appear in Editor Menu

I'm using the latest versions of Marked and Nova, but no matter what I do, I can't seem to get Marked to show up under Editor > Preview In. I only have one version of Marked installed on my system.

@skeskali As far as I know, there is no way for an extension to manipulate the Editor > Preview In menu. It isn't clear to me exactly what heuristic Nova is using to populate that menu with applications.

But I thought the extension was supposed to add Preview in Marked to the Editor > Preview menu?

That would be ideal, but is not currently possible via a Nova extension, so it sits at View in Marked 2 on the Editor menu.

Then perhaps the Readme should be changed?


Godot 4.2 beta 2 C#, Visual Studio 2022 Cannot debug into node _Ready() method. Breakpoints never hit.  CLOSE PLEASE.

Godot version
4.2 Beta 2
System information
Windows 11 Godot 4.2 Beta 2 Visual Studio Community 2022 64-bit 17.7.4, Forward+
Issue description
When attempting to debug into a C# node scripts _Ready() method, the breakpoint is never hit when debugging from VS.  I believe none of the code in the _Ready() method is getting executed during VS debugging.  However, I can run the game from Godot and everything in the _Ready() method is getting called as I can see the results from the instance.
Steps to reproduce
Visual Studio, Place a breakpoint anywhere in the _Ready() and it never hits it when debugging from VS.
Minimal reproduction project
trivial

You can close your own reports :)


Not reactive when Bind boards array as vuejs data property

I am trying to bind the boards array as a data property in vuejs, on initial page load, it take all the array item and render boards correctly, however when i do modification to vue array it doesnot affect in UI, looks like kanban board are not reactive,
Do you have any function to refresh or rebuilt the boards from scratch, so when I do any changes to vue data property, I can rebuilt the boards. I tried to run the init function, however it just duplicated all the baords with changes as well, if you have a function to remove all board elements and boards with single function call, then it will be easy to delete and re call the init function to make it like reactive

Unfortunately, I fear jKanban is not fully compatible with Vuejs. I use jKanban in a Vue application but my events are handled manually.

Unfortunately, I fear jKanban is not fully compatible with Vuejs. I use jKanban in a Vue application but my events are handled manually.

can you please give me some tips on how you are handling it manually,
I am planning to go in this way, when I do changes to vue data property, I will loop through the boards array and remove them from UI and run the jKanban init function to build it again?, what you think, is this approach correct?

I don't think call initevery time is a good practice. You can use watch to update your jKanban. In that case, you should add and remove items according your Vue model. Look this fiddle to have an idea. https://jsfiddle.net/marcosrocha85/Lk9t483r/

yes, I tried with init and it was not successful, it raises unexpected errors and disable the kanban board fully, so I am going with manually option as your suggestion..


Enable cloudProfile reference as complement to cloudProfileName

How to categorize this PR?

/area usability
/kind enhancement
What this PR does / why we need it:

Make Shoot cloudProfileName optional and complement with cloudProfile reference
Extend shoot validation to check for cloudProfileName and cloudProfile
Extend shoot strategy to default fill cloudProfileName from cloudProfile and vice versa ("sync")
Provide method in reconciler to get applicable cloud profile

Which issue(s) this PR fixes:
Relates to #9504
Special notes for your reviewer:
Release note:

Evaluate Shoot cloudProfile and cloudProfileName fields together to determine the applicable cloudprofile in order to prepare for namespaced cloud profiles.

Use `shoot.Spec.CloudProfile` as the primary directive to specify the cloud profile to use. The value will by synced to the field `shoot.Spec.CloudProfileName` (until it is deprecated and eventually removed in the future). If no cloud profile kind is provided, it will default to `CloudProfile`.

/test all

/assign

/test all

/test all

/retest

/test pull-gardener-unit

/retest

/retest

Shoot validation has been split up after yesterday's discussion with @timuthy and is performed in the following fashion:

Admission validation: Validate changes: The only valid change is: Update from CloudProfile to NamespacedCloudProfile: Validate descendance / parent
Shoot strategy: Sync cloudProfile reference and cloudProfileName
2.1. cloudProfile is set to cloudProfileName if cloudProfile is nil or feature toggle is disabled and cloudProfile references a NamespacedCloudProfile (reasoning: Be consistent to current handling of feature toggle protected features being used → effect is ignored)
2.2. cloudProfileName is set to cloudProfile reference if kind is CloudProfile
2.3. cloudProfileName is set nil if cloudProfile references a NamespacedCloudProfile and the feature toggle is enabled.
Core Shoot validation: Validate field contents
3.1. Ensure either field is set
3.2. Succeed if change from CloudProfile to NamespacedCloudProfile → Hierarchy descendant has already been validated in step 1
3.3. Prevent change from NamespacedCloudProfile to CloudProfile
3.4. Else: Ensure that the name stays the same (no other changes to the cloudProfile reference are allowed).

Thanks @timuthy once again for your thorough review. I addressed your findings. Please find the newest commit added to this PR.


Migration to Flutter 2 and Null safety

thank you for the package!
Is this package going to migrate to Flutter 2 and Null safety?

Still waiting for the merge https://github.com/dart-lang/intl_translation/pull/146

Duplicate of https://github.com/dart-lang/intl_translation/issues/134
See https://pub.dev/packages/intl_generator. This is a fork of intl_translation to have an up to date version.

@mosuem @devoncarew is this migration complete? If so, can we publish the migrated version? The one on pub.dev is 2 years old...

It's just awaiting one final commit, so should happen this week.


IfBraceChecker doesn't allow if statements with no else clause

I have some if statements with braces, but with no else clause. They get flagged up by IfBraceChecker.

Fixed in latest master.


Fix authorization in smoke test and demo

Signed-off-by: Georgi Lozev<EMAIL_ADDRESS>

Coverage decreased (-4.9%) to 88.088% when pulling fe8577a6dafdf256694a1b0116d6500c65d6c5af on SAP:fix-smoke-test into 62ce720910a03f1bda9769191cc0127e9cb81d70 on cloudfoundry-incubator:master.

Coverage decreased (-4.9%) to 88.088% when pulling fe8577a6dafdf256694a1b0116d6500c65d6c5af on SAP:fix-smoke-test into 62ce720910a03f1bda9769191cc0127e9cb81d70 on cloudfoundry-incubator:master.


Fix description of StorageDriver.WriteStream

May be my English is bad and I did not understand ( actually I read twice :smile:  ), but a test case
https://github.com/docker/distribution/blob/master/registry/storage/driver/testsuites/testsuites.go#L439
does not meet the requirement that offset must be less than size.

Current coverage is 50.31%

Merging #1469 into master will decrease coverage by -6.98% as of a048a4c

@@            master   #1469   diff @@
======================================
  Files          124     124
  Stmts        12045   12045
  Branches       835     732   -103
  Methods          0       0
======================================
- Hit           6901    6061   -840
+ Partial        835     732   -103
- Missed        4309    5252   +943

Review entire Coverage Diff as of a048a4c

Uncovered Suggestions

+0.27% via ...ge/driver/gcs/gcs.go#182...213
+0.24% via ...river/s3-goamz/s3.go#166...193
+0.24% via ...river/s3-goamz/s3.go#113...140
See 7 more...

Powered by Codecov. Updated on successful CI builds.

LGTM. Hopefully this behavior will change soon anyway...


feat: modify genesis storage to fund EVM addresses

Use get_storage_var_address to compute the storage key and use it for the genesis file in Madara

Duplicate, closing in favor of #382


Choosing boundary particles

Hi
consider a water droplet with thousands of particles. Is it possible to choose the particles which are on the surface of the droplet (for example in order to apply a force or velocity,... only to the surface of the droplet)? If yes how can I have access to the surface particles in the code?
Regards

There is not direct way to get the surface particles. However, using a color field is a very simple method to do this in SPH.

I checked the Gissler2017 paper. It is almost what I want. But I have a question. Is it possible to impose this drag force regionally?
It seems that this drag force is applied to the whole domain. If we want to apply it for example to the y<1 domain. Is it possible?


luci-app-nlbwmon:Add Simplified Chinese translation

Signed-off-by: Chuanhong Guo<EMAIL_ADDRESS>

Hi, Chuanhong, @kuoruan already opened a pull request on this (https://github.com/openwrt/luci/pull/1264), can you join the review efforts there?

OK I'll do that.


Printer target temp

This would add the targeted temperature for both the bed and nozzle.

Currently, the target temp displays 0°C if the printer isn't printing.
Should it maybe be hidden if nothing is being printed?

Not sure how but this got resolved with #49, some branch oddness I guess. I was going to approve anyway though :)
If you wanted to make the target temp hidden when not printing, I think that's a good idea :)

Seems like the changes didn't go through. I had that problem too when I tried to merge this branch into the master but as the difference looked as it should in GitHub I thought it should merge fine.
I looked around and found an answer on StackOverflow which claims to solve this issue, but I haven't tried it yet, as I wasn't sure if this might mess something up.


Chapter 3: Linear regression ... stations names?

I have a question.  I read chapter 4 on linear regression using the CitiBikes story.  I'm at a loss to understand how using the string place names of the start and end locations could ever be used as features for linear regression?  I don't think there is an underlying set of equations that could be used to predict duration given two textual names.

@kolban-google https://cloud.google.com/bigquery-ml/docs/reference/standard-sql/bigqueryml-auto-preprocessing should provide an explanation.
For linear regression, all non-numeric values will be one-hot encoded.


PulsarSource does not report original Schema information

extract original Schema from the message read from the topic
expose the schema into the PulsarRecord implementation
add unit test

Motivation
Pulsar sinks cannot access the original Schema of the Message they are consuming,
this is because currently PulsarSource does not publish the Schema information to downstream processing.
Modifications
Try to retrieve Schema information from the Message and push it down to the Record.
Verifying this change

[X] Make sure that the change passes the CI checks.
[X] This change added tests and can be verified as follows:
added unit test
tested manually with Pulsar Standalone

Does this pull request potentially affect one of the following parts: yes
with this change Pulsar function users and especially Pulsar I/O Sinks will be able to inspect the original schema in case the processing starts from a Pulsar topic (PulsarSource)

@315157973 @nlu90 @jerrypeng
could you please take a look ?
This can be considered a small breaking behavior change, but I would like to see it cherry picked to 2.7.x branch if possible
cc @sijie @rdhabalia

If it is possible to see this also on 2.6.3 it would be greater

@codelipenghui let's cherry-pick this change to 2.6.3 release.

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

There is a test failure related to schemas and Pulsar functions.
I am investigating it now

The problem in the test is that PulsarSink is using the record schema to write to the destination topic, but this is wrong because it must use the schema of the destination topic.

/pulsarbot run-failure-checks

many jobs failed with
/__w/_temp/4f45ee2d-1924-45c7-b32d-fd82169e5f0c.sh: 1: /__w/_temp/4f45ee2d-1924-45c7-b32d-fd82169e5f0c.sh: ./build/run_unit_group.sh: not found

@lhotari @codelipenghui @sijie CI errors seems not related to my patch,
is there something I can do ?

I have rebased onto current master
the commit that changed the CI behavior is
https://github.com/apache/pulsar/commit/a8a79939960fde2ebd4156a811d282adcf898749

btw I thought that the PR validation is run against the PR branch merged with the target branch, so rebasing onto latest master should not have much effect

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks


bitrot in the documentation?

I only recently learned of quorum and deployed it with quorum-examples on virtualbox & vagrant.  I hit some gotchas trying to reconcile the documentation to reality.  These include:

raft-start.sh is supposed to send an initial transaction, according to README,  but the last line of it echoes a command to invoke something else to send that transaction.  That's easily missed.  In addition, the command it says to run is runscript while the file is runscript.sh.
The log doesn't seem to have the address, despite 'README` saying

The address can be found in the node 1's log file 7nodes/qdata/logs/1.log, or alternatively by reading the contractAddress param after calling eth.getTransactionReceipt(txHash)

If in fact the address is there, please be clearer how to find it.  The only address I found was of the wallet, but I don't think that's what you meant.

Finally, I didn't actually get the demo to progress as expected.  When I opened the console on 1, 4, and 7, and I updated the address to reflect the new transaction I created manually with runscript.sh, I showed a balance of 42 on node 1 (correct), 0 on  node 4 (correct, but you can't tell the difference between this and having a bad address), and 0 on node 7 (incorrect).

I noticed the same things.
I also noticed an error in all log files is inserted when trying to run the set command (except node 1 log as I run the command on this node) :

2018 Feb-14 20:24:53688008 [WARN] Failed to decode '/receiveraw' (GET) request: Error in $: not enough input

Same here, where can I find the transaction address/how can I trigger the transaction? ``./runscript.sh script1.js``` seems to get a 500 response in my case.

Well, after deleting the project and starting from scratch, it suddenly worked. So feel free to try that as well. Here's what I did:
git clone git@github.com:jpmorganchase/quorum-examples.git
cd quorum-examples
vagrant up
vagrant ssh

cd quorum-examples/7nodes
./raft-init.sh
./raft-start.sh
./runscript.sh script1.js

@fdouglis we updated the typo in the startup scripts. We'll also be updating the documentation to match the most recent script changes for running the sample contract.


Adds constants for <meta theme-color|apple-mobile-web-app-title> tags

Introduce constants for the <meta> tags for theme-color and apple-mobile-web-app-title:

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta/name/theme-color

https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/ConfiguringWebApplications/ConfiguringWebApplications.html
This makes the app look nicer when you install it on desktop or mobile:

Types of Changes

[x] Other changes (non-breaking changes that does not fit any of the above)

How to Test-Drive This PR
git checkout -t origin/move-theme-colour-to-constants
npm start --prefix packages/pwa

Now in Chrome, navigate to http://localhost:3000.
In the top right of your address bar, click the prompt to install the app
Open the app, observe the color bar is branded.

can we also change the name in the manifest so it doesn't show example.com?


How do I register a button-clicking event?

The XamlCode sample shows how to play around with Testblock but without showing how to align these "widget"s correctly. As a system programmer, I wish I can pragmatically create, edit, UI widgets and register some button-clicking events fast just for debugging. I'm wondering where I could find these document/examples.

This is not a question about C++/WinRT. For "how to" XAML programming questions, I suggest you enlist the community at StackOverflow. They are a great resource. Additionally, many times, you can add a control and examine the code behind file to see how it is created and initialized programmatically.


Insert is returning the wrong Id

I am trying to do an upsert and then use the returned id as a reference in another table. When I try to insert a row in this second table, I'm getting a FOREIGN KEY constraint failed. I did some debugging and found out that the insert is returning the wrong id.
Here's the table definition on which I do the upsert:
@DataClassName("TranslationEntry")
class TranslationEntries extends Table {
  IntColumn get id => integer().autoIncrement()();
  IntColumn get serverId => integer().nullable().customConstraint('UNIQUE')();
  TextColumn get placeholder => text()();
  TextColumn get en => text().nullable()();
  TextColumn get fr => text().nullable()();
  TextColumn get it => text().nullable()();
  TextColumn get pt => text().nullable()();
  TextColumn get de => text().nullable()();
  TextColumn get ptBr => text().nullable()();
}

and here is the insertion code:
  Future<int> insertTranslationEntry(Insertable<TranslationEntry> entry) async {
    return await into(translationEntries).insert(entry, onConflict: DoUpdate((_) => entry, target: [translationEntries.serverId]));
  }

I found a workaround for this problem, but it doesn't look good...
Future<int> insertTranslationEntry(Insertable<TranslationEntry> entry) async {
await into(translationEntries).insert(entry, onConflict: DoUpdate((_) => entry, target: [translationEntries.serverId]));
    return (await (select(translationEntries)
              ..where((tbl) => tbl.serverId.equalsExp(entry.toColumns(false)['server_id']))
              ..limit(1))
            .getSingle())
        .id;

Is there any other way to accomplish what I need?

In the next moor version we'll also expose insertReturning which returns a full row or the updated row, depending on what happened. You can use that to read the correct id.


Parse of "i-1" is space-sensitive

The parse of i - 1 varies depending on whether or not there's a space before the 1. If there's no space, it's interpreted as "negative one" and causes confusing parse failures:
var i = 1
// These would parse as i (-1) and give the error: Error on '-1': Expect ')' after arguments.
//IO.print(i-1)
//IO.print(i -1)

// These are fine
IO.print(i - 1)
IO.print(i- 1)

I can accept that there might be one preferred way to write it, but this doesn't seem correct.

Ah, this was a mistake on my part. I think we just need to remove support for negative number literals. Instead of tokenizing -1 as a number, it should be two tokens, - and 1. It's a pretty simply change to nextToken() if you'd like to fix this. The main effort would just be writing a test or two (which you pretty much did here in the bug). :)

I originally thought it would basically just be removing these lines, but that didn't work because -16.sqrt started being parsed as -(16.sqrt), which is not what we want.
So either I'm looking in the wrong place, or we need to change the parser also.

being parsed as -(16.sqrt), which is not what we want.

Actually, strangely enough, I think that probably is what we want. In both JavaScript and Dart, the . does have higher precedence so you get the above parse. It's consistent with how this is parsed:
-foo.bar

Here, you'd expect the - to apply to the result of foo.bar, so JS and Dart just do the same thing when foo is a number literal instead. Ruby is a bit smarter about this, but Ruby's grammar is also notoriously hairy, so I don't know if we want to try to ape them.
(Whatever we decide, this is also a good thing to add a test for!)

Okay, I'll put in a pull request for doing it that way. It will change some existing test cases.

Looks great!


On specific version release page, documentation button link is incorrect

On the specific version release page, the documentation button always links to the latest stable version of the documentation.  It should link to the specific version, not the latest stable

pending PR #596

PR merged. Thx!


The property 'StatusDescription' cannot be found on this object. error in AzureADAssessment\2.2.2\internal\Get-MsGraphResults.ps1:308

Whenever I run  Invoke-AADAssessmentDataCollection I get the following error:
Catch-MsGraphError: C:\Users\USER\Documents\PowerShell\Modules\AzureADAssessment\2.2.2\internal\Get-MsGraphResults.ps1:308
Line |
308 |                  catch { Catch-MsGraphError $_ }
|                          ~~~~~~~~~~~~~~~~~~~~~
| The property 'StatusDescription' cannot be found on this object. Verify that the property exists.

me three!  Anyone going to take a look at this issue?

Hi, we have promoted the preview branch.
The error handling has been updated to detect the exception type.
Can you do the assessment with the new version?

Same for me:

actually, scratch my earlier post... I forgot to update the module lolol!.  Looks like I've ran into permissions issues unrelated to this.  Thanks for the update.

Yep same for me. Thank you


cmd/compile: Wrong line number in type error message

What version of Go are you using (go version)?
go version go1.15.3 windows/amd64
Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (go env)?
set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\Markus\AppData\Local\go-build
set GOENV=C:\Users\Markus\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\Markus\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\Markus\go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=c:\go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=c:\go\pkg\tool\windows_amd64
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\Markus\AppData\Local\Temp\go-build314487018=/tmp/go-build -gno-record-gcc-switches
What did you do?
I compiled a .go file that contains a type conflict, between the given function argument and the wanted function argument.
And I wanted to get a useful error message.
What did you expect to see?
A correct line number in the error message about the type conflict.
What did you see instead?
The wrong line number, depending on the case, which is confusing.
Test cases
Line number is off by one line:
https://play.golang.org/p/pbISInXKqch
Line number is off by two lines:
https://play.golang.org/p/wXI3m-iO9f7
Line number is the function call, but the message is misleading in this case:
https://play.golang.org/p/RBrlfV41adh
There has been this forum post I made:
https://forum.golangbridge.org/t/go-error-messages-not-helpful/21173

/cc @randall77 @griesemer

The typechecker for generic Go (dev.typeparams branch) does this correctly. For the first and second program (using the compiler of dev.typeparams branch):
$ go tool compile -G x.go
x.go:21:3: cannot use actual_line (variable of type int32) as int value in argument

I don't understand what's wrong with the 3rd program - the error message seems correct. What am I missing?

Possibly related to #23660.

I don't understand what's wrong with the 3rd program - the error message seems correct. What am I missing?

In this case the message is okay, because it points to the function call. But I believe it should be more specific. The line number should point to the argument, because the message starts by giving the name of the argument.

I tried to investigate, but I have looked at the Golang source for the first time today.
subr.go has a comment above hasUniquePos() which explains something similar.  setlineno uses hasUniquePos to check whether the node has a line number that points to the place where something is used, instead of where it's declared.
typechecker.go and subr.go relie on setlineno to set the global lineno, instead of doing it more directly. But setline no finds, the node has no unique position. And that might be right? Because n.Op is ONAME. If it was OCALLPART (?) or some OARG, I would find the unique position would be the line where the argument stands. But ONAME doesn't look like that and hasUniquePos tells setlineno that the node cannot have a unique pos, it does case ONAME: return false.
The line number of the node would have been the line of the declaration of what is used as argument. But that line number does not get used, instead lineno will keep some older line number.
And unfortunately, in the list or nodes there were no good XPos values either, so it looks like the parser should be modified to store the correct line number in the first place.
I didn't go on looking at it. It looks like someone who knows what he does has to invest some time. Would be really nice to have correct line numers. Also, desc() could take the index of the argument and return "argument 1 in" instead of "argument in", this would also be nice.

The parser does store the correct information (it's essentially the same parser as in dev.typeparams, which does it correctly).
It's a known problem that we lose position information in the nodes. Not urgent.

Can I ask some uninformed questions? Is generic Go the version 2.0 with generics? Is dev.typeparams public? And has the code that fills originalPositions like here https://go-review.googlesource.com/c/go/+/147379/ made it into some code that I could obtain? Thanks a lot.

@mebaba Please don't ask questions on unrelated issues.  For questions in general, please use a forum, not the issue tracker.  See https://golang.org/wiki/Questions.  Thanks.


[feature request] watch

is it possible to add a --watch / -w option allowing automatic recompiling each time the source file is modified?
usage example:
> peg my-language.peg --watch
compile my-language.peg → my-language.js
waiting for change...

Yes, with the caveat that I'll only use the node built-ins for file watching (not one of the more performant wrapper packages), you'll only be able to watch one file at a time, it won't support testing with -t/-T.  I think it will print a message on success or failure, but not exit until you hit control-C.

That would be perfect!

I decided to go ahead and support -T/-t, since it would have been harder to disable them.


Add radius to prox parameters in here.js

in here.js
prox: encodeURIComponent(location.lat) + ',' + encodeURIComponent(location.lng)
give incomplete reversed address with only the city name
adding raduis parameter will give the correct full address.
prox: encodeURIComponent(location.lat) + ',' + encodeURIComponent(location.lng) + ',150'

@mba7 I think you might have submitted this PR to the wrong repository, it looks like the changes you made applies to leaflet-control-geocoder.


Svelte: does clicking on flow should update nodes?

Describe the Bug
Hey,
Not sure if this is a bug, but when I click on the SvelteFlow component, it updates the node store. Check out the video for a quick demo:
Video
Is this expected behavior or possibly a bug?
Thanks!
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
Link to repro:
https://stackblitz.com/edit/ivtn2m?file=src%2Fexample%2FApp.svelte
Expected behavior
The clicking on svelte flow shouldn't update the nodes
Screenshots or Videos
Video
Platform

OS: [Ubuntu]
Browser: [Chrome]
Version: [119]

Additional context
No response

fixed in 0.0.28

Hmm, in my use case isn't work. When I updated to 0.0.28 in main project, the issue isn't solved + in stackblitz the same, look:
Video

arg :/ you are right. Will be fixed with the next release.

finally fixed in 0.0.29 https://svelteflow.dev/whats-new/2023-12-13


Farming bug

I have gone from 90 something farming to 107 so far without seeing a level up message. I think the level up messages are broke for farming.

dupe #4669


Fix the double flag bug & Add the ability to search by "country name"

Hello
This PR fixes 1 bug and add 1 enhancement :
1. The bug :

The bug occurs when i rebuild the project (npm run build) after updating project dependencies (npm install). Even when i installed the exact dependencies versions as shown in packages.json, the bug always exists. I'm not sure why this is happening now, i mean, how could you build the project without seeing this bug, or may be it wasn't there before, may be because of dependencies updates ...
2. The enhancement :
When i make a country-picker with two options : live-search && flag
<select class="selectpicker countrypicker" data-live-search="true" data-flag="true"></select>

In this case i can't search by country name (Tunisia in this case).

@dali-rajab Sorry, I have overlooked this pull request. I will have a look and merge it as soon as possible!


add-templates

@Daniel-Xu Do you have some info about this PR?
I'm maintaining this gem, but I'm not a dockyard employee, so a PR that adds a large bunch of files without a description/reasoning is not very useful to me.

@felixbuenemann  Sorry for the inconvenience, this PR is generated based on some templates. The purpose of this PR is tried to add contribution templates, Pull request templates, Issue templates to almost all the repos we(Dockyard) have. Feel free to close it if it's not appropriate.

Thanks for the info. Just leave the PR open, I'll have a look at it the next time I work on this project. I'm currently busy woking on other projects, so it'll likely be some time until I get to it.

Will close this PR but keep the branch for now.


Unable to resolve iterator's $current in an expression

Current behavior (how does the issue manifest):
When I try to run the binary generated by following flogo.json:
{
  "name": "SampleApp",
  "type": "flogo:app",
  "version": "0.0.1",
  "appModel": "1.0.0",
  "description": "",
  "imports": [
    "github.com/project-flogo/flow",
    "github.com/project-flogo/contrib/trigger/rest",
    "github.com/project-flogo/contrib/activity/log",
    "github.com/project-flogo/contrib/function/string"
  ],
  "triggers": [
    {
      "id": "receive_http_message",
      "type": "rest",
      "name": "Receive HTTP Message",
      "description": "Simple REST Trigger",
      "settings": {
        "port": 9009
      },
      "handlers": [
        {
          "action": {
            "type": "flow",
            "data": {
              "flowURI": "res://flow:test"
            },
            "input": {},
            "output": {}
          },
          "settings": {
            "method": "GET",
            "path": "/testing"
          }
        }
      ]
    }
  ],
  "resources": [
    {
      "id": "flow:test",
      "data": {
        "name": "test",
        "description": "A sample flow",
        "tasks": [
          {
            "id": "log_2",
            "type": "iterator",
            "name": "Log",
            "description": "Logs a message",
            "settings": {
              "iterate": 20
            },
            "activity": {
              "type": "log",
              "input": {
                "addDetails": true,
                "message": "=string.concat(\"testing!! count: \", $current.iteration.key)"
              }
            }
          }
        ]
      }
    }
  ]
}

I get the following error:
path_to_workspace\flogo-experiment>flogo create -f iterator-test.json
Creating Flogo App: SampleApp
installing core
Installed trigger:   github.com/project-flogo/contrib/trigger/rest
Installed activity:  github.com/project-flogo/contrib/activity/log
Installed function:  github.com/project-flogo/contrib/function/string
Installed action:    github.com/project-flogo/flow

path_to_workspace\flogo-experiment>cd SampleApp

path_to_workspace\flogo-experiment\SampleApp>flogo build

path_to_workspace\flogo-experiment\SampleApp>cd bin

path_to_workspace\flogo-experiment\SampleApp\bin>SampleApp.exe
1550646373777602000     ERROR   [flogo] -       Failed to create engine: error unmarshalling flow: unable to compile expression 'string.concat("testing!! count: ", $current.iteration.key)': unable to find a 'current' resolver
github.com/project-flogo/core/support/log.(*zapLoggerImpl).Errorf
        %GOPATH%/pkg/mod/github.com/project-flogo/core@v0.9.0-alpha.4.0.20190213174534-066cf88d3782/support/log/zap.go:65
main.main
        %GOPATH%/flogo-experiment/SampleApp/src/main.go:43
runtime.main
        C:/Go/src/runtime/proc.go:201

Expected behavior:
I should be able to access the current iteration context
Minimal steps to reproduce the problem (not required if feature enhancement):

Create a flogo project from the above application JSON
Build the application's binary using flogo build
Try to execute the binary in the bin folder

Please tell us about your environment (Operating system, docker version, browser & web ui version, etc):
OS: Windows 7
Flogo version (CLI & contrib/lib. If unknown, leave empty or state unknown): 0.9.0-alpha4

@fm-tibco did we decided to have $iterate or $iteration to use as value to access current iteration's key and / or value?

I've submitted a PR to fix/resolve this.  The new format will be $iteration[key] and $iteration[value]


plot_hit_pattern mini analysis doesn't work with log norm

Describe the bug
Mini analysis plot_hit_pattern cannot run when specified log_scale=True.  This is because PMTs with area 0 gives invalid vmin when using log scale.
This also happens when using plot_pmts to plot hit patterns from peaks.
To Reproduce
Just try this on any tpc run:
st.plot_hit_pattern(run_id, seconds_range=(0, 0.1), log_scale=True)

Expected behavior
Hit patterns should be displayed with log norm color map.
Versions
straxen   1.8.2 /opt/XENONnT/anaconda/envs/XENONnT_development/lib/python3.8/site-packages/straxen None

This can easily be sloved with addding a vmin argument,
straxen.plot_pmts(np.arange(494), log_scale=True,)  # craches
straxen.plot_pmts(np.arange(494), log_scale=True, vmin=1)  # works fine


fast_matmul in docs example not working properly - returning wrong results

fastmat_mul function from the docs returning wrong results

Hello,
I am using the latest version of numba, 0.53.1 as of now, and am working through the documentation Numba for CUDA GPUs. I copied the fast_matmul example documented here. But the result of a simple matrix multiplication is wrong. I also tried matmul function which is described on the same page and seems fine - for this simple example at least. The code I used is as follows, where fast_matmul and matmul are copied 1:1:
import numpy as np
from numba import cuda, float32

# Controls threads per block and shared memory usage.
# The computation will be done on blocks of TPBxTPB elements.
TPB = 16

@cuda.jit
def fast_matmul(A, B, C):
    # Define an array in the shared memory
    # The size and type of the arrays must be known at compile time
    sA = cuda.shared.array(shape=(TPB, TPB), dtype=float32)
    sB = cuda.shared.array(shape=(TPB, TPB), dtype=float32)

    x, y = cuda.grid(2)

    tx = cuda.threadIdx.x
    ty = cuda.threadIdx.y
    bpg = cuda.gridDim.x    # blocks per grid

    if x >= C.shape[0] and y >= C.shape[1]:
        # Quit if (x, y) is outside of valid C boundary
        return

    # Each thread computes one element in the result matrix.
    # The dot product is chunked into dot products of TPB-long vectors.
    tmp = 0.
    for i in range(bpg):
        # Preload data into shared memory
        sA[tx, ty] = A[x, ty + i * TPB]
        sB[tx, ty] = B[tx + i * TPB, y]

        # Wait until all threads finish preloading
        cuda.syncthreads()

        # Computes partial product on the shared memory
        for j in range(TPB):
            tmp += sA[tx, j] * sB[j, ty]

        # Wait until all threads finish computing
        cuda.syncthreads()

    C[x, y] = tmp

@cuda.jit
def matmul(A, B, C):
    """Perform square matrix multiplication of C = A * B
    """
    i, j = cuda.grid(2)
    if i < C.shape[0] and j < C.shape[1]:
        tmp = 0.
        for k in range(A.shape[1]):
            tmp += A[i, k] * B[k, j]
        C[i, j] = tmp

if __name__ == '__main__':
    N, M = 2, 2
    A = np.arange(N * M).reshape(N, M)
    B = np.arange(N * M).reshape(N, M)
    C = np.empty_like(B)
    blocks_per_grid = (C.size + (TPB - 1)) // TPB
    fast_matmul[blocks_per_grid, TPB](A, B, C)
    print(C)
    print(np.dot(A, B))
    C = np.empty_like(A)
    blocks_per_grid = (C.size + (TPB - 1)) // TPB
    matmul[blocks_per_grid, TPB](A, B, C)
    print(C)

Expected result is
[[ 2  3]
 [ 6 11]]

but I am getting
[[    0 32762]
 [    0   502]]

Beware, these numbers can vary because matrix C is initialised using np.empty_like().
Thank you and kind regards,
Ali

Thanks for the report - it does look like there's something wrong with the example. Although I don't reproduce the incorrect results with an RTX 8000, compute-sanitizer is not happy:
$ compute-sanitizer python repro.py
========= COMPUTE-SANITIZER
/home/gmarkall/numbadev/numba/numba/cuda/compiler.py:872: NumbaPerformanceWarning: Grid size (1) < 2 * SM count (144) will likely result in GPU under utilization due to low occupancy.
  warn(NumbaPerformanceWarning(msg))
/home/gmarkall/numbadev/numba/numba/cuda/cudadrv/devicearray.py:790: NumbaPerformanceWarning: Host array used in CUDA kernel will incur copy overhead to/from device.
  warn(NumbaPerformanceWarning(msg))
========= Invalid __global__ read of size 8 bytes
=========     at 0x460 in cudapy::__main__::fast_matmul$241(Array<long long, (int)2, C, mutable, aligned>, Array<long long, (int)2, C, mutable, aligned>, Array<long long, (int)2, C, mutable, aligned>)
=========     by thread (2,0,0) in block (0,0,0)
...

Resolved in #7330.


If user specifies UIDMapSlice without GIDMapSlice, set them equal

We need to map slices set for both UID and GID maps to be equivalent if
not specified by user.  Currently if you do not specify both the containers
are not running.
Signed-off-by: Daniel J Walsh<EMAIL_ADDRESS>

@nalind @giuseppe @mheon @baude PTAL

We need to map slices set for both UID and GID maps to be equivalent if not specified by user.

I'd rather have one or the other being unset be a fatal error in libpod with early checks in the command line and other wrappers.  It's a fairly sensitive issue to be providing implicit fallbacks.  I'd be fine putting this fallback behind and explicit opt-in (e.g. --gidmap-from-uidmap).

I'm OK with this behavior as long as it is well-documented in the manpages

Looks like it'll work :+1:.  I'll note that the behavior when we mix one-but-not-both of these options with either-or-both of the options that specify subuid/subgid map entry sets will need to be very clearly documented.

@nalind Should we even allow mixing those flags? I don't think we should allow specifying maps manually if you're already specifying a subuid/subgid map

@rh-atomic-bot r=nalind
@wking We can work this later and fix the documenation perhaps move the code out of the parse package into the command, but that means we have to do it everywhere.
For now I just want to get it into tomorrows build.

@rh-atomic-bot r+

There's no technical reason why they can't be mixed.  The value we use to search /etc/subuid and /etc/subgid can match multiple entries, which all get used, and adding entries from the command line to the list we get from there (if we look there) seems pretty simple.  We should already get an error at some level if there are overlapping ranges.

@nalind I'm mostly just worried about the complexity and potential confusion it can cause - there are a lot of potentially confusing interactions here.


Wrong sample port number in README.md

In the OracleWebLogic/README.md file is written that the samplewls:12.1.3 docker image starts a WL console at the port 8001. However, in other places of the same document the console is associated with the port 7001. Sometimes the two different port numbers are used in the same sentence, e.g.:
'''
Now you can access the AdminServer Web Console at http://<IP_ADDRESS>:7001/console. You can also access it locally if you bind port 8001 to your host, with -p 8001:8001.
'''

Thanks @ufoscout. It has been fixed.


error  'console' is not defined

Hi Ben,  your boilerplate works fine! thanks for sharing.
I'm receiving this error during the dev build (seems to me doesn't compromise the funcrioning):
.../src/js/logger.js
1:27  error  Unexpected console statement  no-console
1:27  error  'console' is not defined

Glad to hear that you like it!
Yes, this error is being generated by ESLint and is expected behavior. If you want to suppress this error in the linter, you can use // eslint-disable-line no-undef on the same line as the console log statement. Otherwise, you can just change the code the not use a console.log statement. Best if you read up about linting though, since it's a powerful tool that can really help you write better code.
Have a great day!! 😁


Update Go version to  1.19

Is your feature request related to a problem? Please describe.
Other go codes for dapr have upgraded to 1.20, go-sdk's go version is 1.18.
Describe the solution you'd like
According the release notes of go1.19, no change for codes.
https://tip.golang.org/doc/go1.19

/assign


Multi.insert does not validate structs

Environment

Elixir version (elixir -v): 1.7.4
Database and version (PostgreSQL 9.4, MongoDB 3.2, etc.): cockroach 19.1.0
Ecto version (mix deps): 2.2.11
Operating system: NixOS

Current behavior
Assume I've defined a schema in a module MyStruct and a corresponding changeset function.
Then Ecto.Multi.insert(MyStruct{foo: "invalid}) does not perform any validations. It simply calls Ecto.Changeset.change(MyStruct{foo: "invalid}), which doesn't perform validations, and loads that into the database
Expected behavior
It validates in the same way as Ecto.Repo.insert.

Yes. Structs are always inserted as is.  Otherwise Ecto doesn't know how to convert a strucct to a changeset, we wouldn't know where the changeset is defined, as there is no coupling to "main changeset function".


Enh multiple runs

This is the first pass at seeing how hard this will be (plus the commits from #1245 ).
Have all but 8 tests passing locally, suspect the remaining few are just a few details away.
Have not started to implement anyway for the plan to ask for a second open run and need to list the messages that are and are not routed to the RunBundler.

Codecov Report

Merging #1248 into master will increase coverage by 0.02%.
The diff coverage is 92.08%.

@@            Coverage Diff             @@
##           master    #1248      +/-   ##
==========================================
+ Coverage   89.17%   89.19%   +0.02%
==========================================
  Files          55       56       +1
  Lines        9086     9194     +108
==========================================
+ Hits         8102     8201      +99
- Misses        984      993       +9

Impacted Files
Coverage Δ

bluesky/tests/test_run_engine.py
97.59% <100%> (ø)
:arrow_up:

bluesky/preprocessors.py
94.16% <50%> (-0.58%)
:arrow_down:

bluesky/run_engine.py
95.73% <90.24%> (+0.01%)
:arrow_up:

bluesky/bundlers.py
93.56% <93.56%> (ø)

bluesky/log.py
75% <0%> (+6.57%)
:arrow_up:

Continue to review full report at Codecov.

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

To first order, this seems to work!
In [44]: from bluesky import preprocessors as bpp
    ...: from bluesky import plans as bp
    ...: from bluesky import plan_stubs as bps
    ...: from bluesky.preprocessors import define_run_wrapper as drw
    ...: from ophyd.sim import motor, det
    ...:
    ...:
    ...: def interlaced_plan():
    ...:     run_ids = list('abc')
    ...:     for rid in run_ids:
    ...:         yield from drw(bps.open_run(md={rid: rid}), run_id=rid)
    ...:
    ...:     for j in range(5):
    ...:         for i, rid in enumerate(run_ids):
    ...:             yield from bps.mov(motor, j + 0.1 * i)
    ...:             yield from drw(bps.trigger_and_read([motor, det]), run_id=rid)
    ...:         yield from bps.sleep(1)
    ...:
    ...:     for rid in run_ids:
    ...:         yield from drw(bps.close_run(), run_id=rid)

In [45]: RE(interlaced_plan())
Out[45]:
('4a960b8a-a2c8-40a5-a696-1c6a32c1ad50',
 '955ad826-7013-404a-99d6-3e4ce9a3cb46',
 'f90065b3-9db7-4322-aa58-9a0a7380d2da')

In [46]: db[-1].table()
Out[46]:
                                 time  motor  motor_setpoint       det
seq_num
1       2019-09-04 09:10:26.830444098    0.2             0.2  0.980199
2       2019-09-04 09:10:27.844032526    1.2             1.2  0.486752
3       2019-09-04 09:10:28.853575468    2.2             2.2  0.088922
4       2019-09-04 09:10:29.866254568    3.2             3.2  0.005976
5       2019-09-04 09:10:30.876429558    4.2             4.2  0.000148

In [47]: db[-2].table()
Out[47]:
                                 time  motor  motor_setpoint       det
seq_num
1       2019-09-04 09:10:26.825020075    0.1             0.1  0.995012
2       2019-09-04 09:10:27.840028763    1.1             1.1  0.546074
3       2019-09-04 09:10:28.852145195    2.1             2.1  0.110251
4       2019-09-04 09:10:29.862403154    3.1             3.1  0.008189
5       2019-09-04 09:10:30.874826193    4.1             4.1  0.000224

In [48]: db[-3].table()
Out[48]:
                                 time  motor  motor_setpoint       det
seq_num
1       2019-09-04 09:10:26.819765568    0.0             0.0  1.000000
2       2019-09-04 09:10:27.835811615    1.0             1.0  0.606531
3       2019-09-04 09:10:28.849414349    2.0             2.0  0.135335
4       2019-09-04 09:10:29.858419657    3.0             3.0  0.011109
5       2019-09-04 09:10:30.872261286    4.0             4.0  0.000335

Still need an API to thread the run_id through at at least the stubs and maybe all of the built in plans?  At a minimum the built in plans should generate a uuid (or object?) for themselves.
The consequences of what this will to to BEC need to be considered.

Affected messages

open_run
close_run
create
read
monitor
unmonitor
save
drop
kickoff
complete
collect
configure

Unaffected messages:

install_suspender
rewindable
resume
pause
remove_suspender
unsubscribe
checkpoint
set
subscribe
null
stage
trigger
input
sleep
clear_checkpoint
wait
wait_for
unstage
stop