Implementation guideline

Hello,
Thanks for posting such a great work. I am somehow confused to get the some results as them in the paper 'Avoidance of Concave Obstacles Through Rotation of Nonlinear Dynamics'. Should I run the code rotational_avoider.py in folder nonlinear_avoidance?
Thanks in advance.

Hello
There are multiple scripts for multiple graphs (and unfortunately some outdated scripts which should be cleaned up).
Check out for the spiral-figures:
https://github.com/hubernikus/nonlinear_obstacle_avoidance/blob/main/scripts/rotational/example_rotation_paper.py
The tests contain also good examples, e.g.,
https://github.com/hubernikus/nonlinear_obstacle_avoidance/blob/main/tests/test_rotation_avoidance.py
Check out the bottom of the file to (de-)activate tests.
If you have more information on what exactly you want to replicate/do, I can help further.

Hello,
Thanks for your reply :) I want to use your posted method for training a robot arm to avoid obstacles in a dynamical environment, and I want to replace the trajectory planning method and obstacle avoidance method with the ROAM.

Hello.
What kind of information do you have of the human? Do you have the exact limbs?
The algorithm works best in combination with other planning algorithms. As the many limbs a human can lead to high curvature of the resulting vector field.
For collision avoidance with a robot with multiple obstacle, and experimentally a human with a Franka we used this implementation:
https://github.com/hubernikus/franka_obstacle_avoidance

Hello,
Thanks for your reply! I want to build an environment with the franka robot arm, and and the collision avoidance example about the human obstacle and franka is very helpful :)
I manged to run the example: human_avoider.py from https://github.com/hubernikus/franka_obstacle_avoidance, but it stuck into a loop of :
RobotZMQ: No state recieved.
Awaiting first robot-state.
Is it related to the result of test_communication in https://github.com/hubernikus/simulator-backend.git, which is as following:
Traceback (most recent call last):
File "/home/ros2/pybullet_zmq/pybullet_zmq/test_communication.py", line 46, in
main()
File "/home/ros2/pybullet_zmq/pybullet_zmq/test_communication.py", line 32, in main
command = network.receive_command(command_subscriber)
File "/usr/local/lib/python3.10/dist-packages/network_interfaces/zmq/network.py", line 273, in receive_command
return decode_command(fields)
File "/usr/local/lib/python3.10/dist-packages/network_interfaces/zmq/network.py", line 116, in decode_command
command = CommandMessage(clproto.decode(message[0]).get_value(), clproto.decode(message[1]))
AttributeError: 'state_representation.CartesianState' object has no attribute 'get_value'. Did you mean: 'get_age'?
Thanks in advance.

Hello
The error results from no robot data being received. Hence, it requires the specific setup of being used together with a franka-emika, which streams its states from a zmq-interface. So a very specific setup, where some code has to be taken from https://github.com/epfl-lasa
However, digging to dep in these codebases might be time-consuming, as a lot of it is at a very 'resarchy/experimental' state, but can be useful for inspiration. Especially the human avoidance part has been rather experimental, and requires further refinement.
However, in my experience, the optimal approach has been dividing the human upper body as an assembly of ellipses and cubes, which have a nonzero overlap region. It depends on your human detection algorithm how this can be achieved.
Since the ROAM requires, that all limbs have nonzero overlap.
Beware though, the proposes algorithm is defined for point-masses. For simple scenarios where the robot end-effector can easily be described as a sphere, this can relatively easily be expanded. But if you want to do full-body robot vs full-body human avoidance, it requires some combination of how to evaluate the avoidance for the whole robot, and how to combine the resulting distance. How to optimally do this, remains an open topic to explore.

Hi,
Thanks for your reply and useful informations. I am currently working on making the whole robot arm avoid obstacles, as the algorithm working on the point model, my plan is to transfer the problem to an optimization problem.
However, I had trouble to understand the psedo code algorithm in 'Avoidance of Concave Obstacles Through Rotation of Nonlinear Dynamics'. If I am not wrong, the algorithm 2, Avoidance of Tree-of-Obstacles, aims to avoid a single general shaped obstacle, which is constructed in alogrithm 4, and construct a convergence direction in alg 3, and if we want to avoide multiple general shaped obstacles, we should use alg 1 with the outputs of alg 2 and alg 3.
Problem:

I am not quite clear how the obstacle is composed, the input and output vectors for alg 4 are weights w_n and initial rotation direction v_n of n parts/ nodes of one decomposed obstacle, how could we append the rotated velocity fc to the tree in alg 2 line 15
how to evaluate rotation tree with input weighting of initial velocity and hiding weights in alg 2 line 20, as the input of alg 4 are weights and rotation directions.
In alg 3 line 5, I did not follow that how to create rotation tree with three rotation vectors as no formula has stated.
In alg 3 line 6, tree reduction with algorithm 1 using vector weight pairs, I did not find the corresponding part.
In alg 3 line 17, tree reduction has applied according to alg 4, but the input of tr is only weight, how to apply tree reduction.
how to use alg 1 to avoide multiple general shaped obstacles.

I appreciate any clarification thanks a lot.

Algorithm 1 introduces concept of the vector-rotation which is throughout the algorithms.
But the convergence direction from Alg.3 should be used in Alg.2.
All 'root'-obstacles are connected to the origin of the tree, it then further branches out to the children obstacles from these.

Each element in the tree is a velocity. Starting with the initial, and then the tangent-velocities with respect to an obstacle, at each node. The vector rotation is used to generate these tangent velocities.
You should use the normalized vector of weights [initial_velocity, obstacle_weights], and the corresponding velocities [initial velocity, tangent_velocities]. Get a weighted average from that.
It is by creating a tree (without branching): v^(r,i) -> v^(r,a) -> v^(r,c).
Add the pairs now to the root and tip, such that v^(r,i)-> f(x) and v^(r,c)
The tree should then be collapsed according to algorithm 4. And all weights are 0, except for the specified ones.
In each step of the for-loop you get a weight and a vector which need to be added to the tree as a pair. The last step just signifies, that you should use the normalized weight, rather than the initial one.
Multiple general shaped obstacle are appended from the root up. Where they share the common parent node in the tree.


Update django support

Drop Django < 3.2 support.
Add Django 4.0 to test matrix.

LGTM, thank you!


Aarch build

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@conda-forge-admin, please rerender

This is ready for review @conda-forge/libignition-sensors

I wonder if there is some problem in the tests due to the fact that on Azure the build is cross-compiled and then the tests are emulated. Let's try to switch to Travis (fully aarch64 build) to see if this problem is solved.

I wonder if there is some problem in the tests due to the fact that on Azure the build is cross-compiled and then the tests are emulated. Let's try to switch to Travis (fully aarch64 build) to see if this problem is solved.

Sorry, this is only true for tests that run in the tests sections. This are "tests" but are actually steps of the build section that should be skipped in cross-compilation, not sure what is happening.

Actually, I remember wrongly, apparently the scripts are passing CMAKE_CROSSCOMPILING_EMULATOR to run also CMake tests. However, this apparently it is not working for ign-sensors, let's try to switch to Travis as I originally proposed.

@conda-forge-admin, please rerender

I wonder if there is some problem in the tests due to the fact that on Azure the build is cross-compiled and then the tests are emulated. Let's try to switch to Travis (fully aarch64 build) to see if this problem is solved.

Sorry, this is only true for tests that run in the tests sections. This are "tests" but are actually steps of the build section that should be skipped in cross-compilation, not sure what is happening.

The problem in the idyntree PR is different, it is that required Python libraries are not found by CMake.

@conda-forge-admin, please rerender

Switching to Travis worked fine.

Awesome! Thanks for the effort! Soon we can have desktop-full on linux-aarch64 :)


NameError: name 'register_tag' is not defined  using Django 2.0

I found this error when  i use django 2.0

File "/Users/newbie/virtualenvs/adminlte/lib/python3.6/site-packages/django/utils/autoreload.py", line 225, in wrapper
fn(*args, **kwargs)
File "/Users/newbie/virtualenvs/adminlte/lib/python3.6/site-packages/django/core/management/commands/runserver.py", line 120, in inner_run
self.check(display_num_errors=True)
File "/Users/newbie/virtualenvs/adminlte/lib/python3.6/site-packages/django/core/management/base.py", line 364, in check
include_deployment_checks=include_deployment_checks,
File "/Users/newbie/virtualenvs/adminlte/lib/python3.6/site-packages/django/core/management/base.py", line 351, in _run_checks
return checks.run_checks(**kwargs)
File "/Users/newbie/virtualenvs/adminlte/lib/python3.6/site-packages/django/core/checks/registry.py", line 73, in run_checks
new_errors = check(app_configs=app_configs)
File "/Users/newbie/virtualenvs/adminlte/lib/python3.6/site-packages/django/core/checks/urls.py", line 40, in check_url_namespaces_unique
all_namespaces = _load_all_namespaces(resolver)
File "/Users/newbie/virtualenvs/adminlte/lib/python3.6/site-packages/django/core/checks/urls.py", line 57, in _load_all_namespaces
url_patterns = getattr(resolver, 'url_patterns', [])
File "/Users/newbie/virtualenvs/adminlte/lib/python3.6/site-packages/django/utils/functional.py", line 36, in get
res = instance.dict[self.name] = self.func(instance)
File "/Users/newbie/virtualenvs/adminlte/lib/python3.6/site-packages/django/urls/resolvers.py", line 536, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/Users/newbie/virtualenvs/adminlte/lib/python3.6/site-packages/django/utils/functional.py", line 36, in get
res = instance.dict[self.name] = self.func(instance)
File "/Users/newbie/virtualenvs/adminlte/lib/python3.6/site-packages/django/urls/resolvers.py", line 529, in urlconf_module
return import_module(self.urlconf_name)
File "/Users/newbie/virtualenvs/adminlte/lib/python3.6/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 994, in _gcd_import
File "", line 971, in _find_and_load
File "", line 955, in _find_and_load_unlocked
File "", line 665, in _load_unlocked
File "", line 678, in exec_module
File "", line 219, in _call_with_frames_removed
File "/Users/newbie/Documents/seit/django-cruds-adminlte/demo/demo/urls.py", line 22, in
from testapp.views import AutorCRUD, InvoiceCRUD, IndexView, CustomerCRUD, LineCRUD, AddressCRUD
File "/Users/newbie/Documents/seit/django-cruds-adminlte/demo/testapp/views.py", line 6, in
from cruds_adminlte.inline_crud import InlineAjaxCRUD
File "/Users/newbie/Documents/seit/django-cruds-adminlte/cruds_adminlte/inline_crud.py", line 16, in
from cruds_adminlte.templatetags.crud_tags import crud_inline_url
File "/Users/newbie/Documents/seit/django-cruds-adminlte/cruds_adminlte/templatetags/crud_tags.py", line 31, in
@register_tag
NameError: name 'register_tag' is not defined

What version you are using?, see that only the last version of django-cruds-adminlte has support for django 2.0.

I'm use Django 2.0.2
Pada tanggal 22 Feb 2018 10.58 PM, "Luis Zárate"<EMAIL_ADDRESS>menulis:

What version you are using?, see that only the last version of
django-cruds-adminlte has support for django 2.0.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/oscarmlage/django-cruds-adminlte/issues/58#issuecomment-367727174,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKqDUMu2IbiAoXDuzhxRTemB2fjXeGyDks5tXY6zgaJpZM4SOsNW
.

I do this step

Create virtual env
Working
Clone from github report
Pip install -r requirement.txt
Python setup.py install
cd demo
python manage.py runserver

Am I miss something ?
Please help me
Pada tanggal 22 Feb 2018 11.00 PM, "Jen Presly Samosir" <
<EMAIL_ADDRESS>menulis:

I'm use Django 2.0.2
Pada tanggal 22 Feb 2018 10.58 PM, "Luis Zárate"<EMAIL_ADDRESS>menulis:

What version you are using?, see that only the last version of
django-cruds-adminlte has support for django 2.0.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/oscarmlage/django-cruds-adminlte/issues/58#issuecomment-367727174,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKqDUMu2IbiAoXDuzhxRTemB2fjXeGyDks5tXY6zgaJpZM4SOsNW
.

nop, those are the steps.  Only one thing are you using python 2.7 ?  Just because django 2.0 don't support python 2 anymore.

After i check I'm using python 3.6..
Are you have solution for my probelm, sir ?
Pada tanggal 22 Feb 2018 11.07 PM, "Luis Zárate"<EMAIL_ADDRESS>menulis:

nop, those are the steps. Only one thing are you using python 2.7 ? Just
because django 2.0 don't support python 2 anymore.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/oscarmlage/django-cruds-adminlte/issues/58#issuecomment-367730288,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKqDUBT-GB4jGYbX1r4ALgxFfOQ0-l9qks5tXZDXgaJpZM4SOsNW
.

Hi, Yes I can solve your problem but need to understand whats wrong first.
You are right, I found the bug, it was include recently, but solution it's easy.
Please see PR #59 with the solution.

Fixed and merged on d50bbe0. Thanks @Jen-Persly for write down the issue and @luisza for the solution.


Meta was not found

Installed the plugin but now I get Meta was not Found on discord startup and the plugin will not activate.

Are you sure you have download .plugin.js file?

Yes I downloaded the file.

It appears that BetterDiscord may be blocking this plugin again. Try changing name in your META to something other than what it is, for example KeepDeletedMessages, and also change the class name and the getName method.

i also ran into this issue, you need to navigate to the file, .plugin.js, then right click on the RAW button at the topright and save link as. It's likely you are downloading the wrong file?

Got the same issue. Have downloaded and used this plugin for 2 months with no problem; recently it suddenly doesn't work. After reinstalling betterdiscord, I got META was not found instead. Help?


Not recognized as command

After successful install, I can't get the package to launch. I'm assuming it has something to do with the path variable but not sure. I'm more on the data science side vs programming side, so apologies if this is an issue not related to the package.
Put project directory on my desktop
C:\Users\computer_name\Desktop\pbixrefresher-python-master>pbixrefresher sample.pbix
'pbixrefresher' is not recognized as an internal or external command,
operable program or batch file.

Hi @youngkrs, thanks for feedback. I have changed  entry_points in pip setup and it should work. Please try latest version from pip.
Thanks

Thanks, the changes you made worked. Thanks so much for your help!!


create_batches in TextLoader in utils.py doesn't seem to transform the data into batches correctly

The following lines transform the xdata to tensors with the correct dimensions, but the output data are not in the correct order anymore.
self.x_batches = np.split(xdata.reshape(self.batch_size, -1), self.num_batches, 1)
self.y_batches = np.split(ydata.reshape(self.batch_size, -1), self.num_batches, 1)
I think the correct transformation should be the following:
self.x_batches = xdata.reshape(-1, self.batch_size, self.seq_length)
self.y_batches = ydata.reshape(-1, self.batch_size, self.seq_length)
Here is an example:
xdata = np.array(range(100))
xdata => array([ 0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 10, 11, 12, 13, 14, 15, 16,
17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33,
34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50,
51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67,
68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99])
batch_size = 5
seq_length = 5
num_batches = 4
m = np.split(xdata.reshape(batch_size, -1), num_batches, 1)
m =>  [array([[ 0,  1,  2,  3,  4],
[20, 21, 22, 23, 24],
[40, 41, 42, 43, 44],
[60, 61, 62, 63, 64],
[80, 81, 82, 83, 84]]), array([[ 5,  6,  7,  8,  9],
[25, 26, 27, 28, 29],
[45, 46, 47, 48, 49],
[65, 66, 67, 68, 69],
[85, 86, 87, 88, 89]]), array([[10, 11, 12, 13, 14],
[30, 31, 32, 33, 34],
[50, 51, 52, 53, 54],
[70, 71, 72, 73, 74],
[90, 91, 92, 93, 94]]), array([[15, 16, 17, 18, 19],
[35, 36, 37, 38, 39],
[55, 56, 57, 58, 59],
[75, 76, 77, 78, 79],
[95, 96, 97, 98, 99]])]
and
n = xdata.reshape(-1, batch_size, seq_length)
n => array([[[ 0,  1,  2,  3,  4],
[ 5,  6,  7,  8,  9],
[10, 11, 12, 13, 14],
[15, 16, 17, 18, 19],
[20, 21, 22, 23, 24]],
   [[25, 26, 27, 28, 29],
    [30, 31, 32, 33, 34],
    [35, 36, 37, 38, 39],
    [40, 41, 42, 43, 44],
    [45, 46, 47, 48, 49]],

   [[50, 51, 52, 53, 54],
    [55, 56, 57, 58, 59],
    [60, 61, 62, 63, 64],
    [65, 66, 67, 68, 69],
    [70, 71, 72, 73, 74]],

   [[75, 76, 77, 78, 79],
    [80, 81, 82, 83, 84],
    [85, 86, 87, 88, 89],
    [90, 91, 92, 93, 94],
    [95, 96, 97, 98, 99]]])

The code has an assumption that the sequences at the same position of each batch are actually subsequent . So all the first sequence of batch 1, 2, 3, ... in your case is [0,1,2,3,4], [5,6,7,8,9], [10,11,12,13,14] which are sequential and they can share the same hidden state in training over different batches.


CON not adding to hit points

A player has reported her CON bonus is not being added to her HP average when leveling up.

Is there a way we can be able to edit the Max HP box? I didnt see a way to

Constitution seems to be properly adding to HP on my end:

Is this only for that player's character or can you reproduce the issue on all the characters?
Max HP isn't currently directly editable, it has to be set during level up.

I just created two characters and leveled them: one a dwarf and the other a homebrew we added for the player. It is correct for the dwarf but not the homebrew lineage. Is there some option I may have missed? Or do I need to update the code?

I just created two characters and leveled them: one a dwarf and the other a homebrew we added for the player. It is correct for the dwarf but not the homebrew lineage. Is there some option I may have missed? Or do I need to update the code?

Hmm, lineage shouldn't have any effect on hit points. Is the only different between the two actors the lineage? Any errors in the developer console?
It might help if you could send over a JSON of the affected actors.

Here is her json. When I leveled my test characters just now, the hp values are correct for level 2. She leveled to 7 and she took the average each level. I tried to look at the code but couldnt tell where she says it didnt add her CON modifier.
fvtt-Actor-magreth-17bzfIm3CyOMNCh9.json


Build failure due to googleapi dependency

Package github.com/ncw/rclone/googlecloudstorage has a dependency on google.golang.org/api/googleapi.
google.golang.org/api/googleapi removes the SetOpaque method in this changeset .
This causes the following build error:
go version go1.7 linux/amd64
go install -v ./...
github.com/ncw/rclone/googlecloudstorage
# github.com/ncw/rclone/googlecloudstorage
googlecloudstorage/googlecloudstorage.go:666: undefined: googleapi.SetOpaque
Makefile:7: recipe for target 'rclone' failed
make: *** [rclone] Error 2

Here is the bug report for the change,
https://github.com/google/google-api-go-client/issues/161
RawPath can be used instead of "SetOpaque".

Sorry, did not see that you already had filed an issue for this. Closing this duplicate.


Feature request: sort

Hi @kltm
Can the reports be sorted by

Assigned by
Reference?

Thanks, Pascale

@pgaudet What exactly are you looking for here? The first sort on assigned by, the second on reference? Meaning that things are sorted by reference, and then within reference sorted by assigned by?

From call: primary sort assigned_by; secondary sort reference. No consideration to term.

@pgaudet Pulling PMIDs first and doing alphabetical sort on refs.

Note that this may have made things a little more brittle. Let me know if any bugs crop up (possibly on exceptional annotation).


Reload strings doesn't include packages

When I reload strings in the "Translate Site Interface" it doesn't seem to load the strings that are in my installed packages, only the ones I added in the application files.

#1841 will solve this problem.


BRIDGE TO ZKSYNC  IS MISSING ON zkBridge PROTOCOL

🌟 Feature Request
BRIDGE TO ZKSYNC  IS MISSING ON zkBridge PROTOCOL
📝 Description
ZkBridge  a project that belongs to polyhedra.network has so many users interested is briding to ZKSYNC it will be lovely if Team can look into this .

team pls look into this


Tutorial update - Use HCI access to NimBLE controller - HAL_UART_FLOW_CTL_NONE

https://mynewt.apache.org/latest/tutorials/ble/blehci_project.html
Setting BLE_HCI_UART_FLOW_CTRL's value (nimble/transport/uart/syscfg.yml) to HAL_UART_FLOW_CTL_NONE is needed in the paragraph "If there is no CTS/RTS lines present in the test environment, flow control should be turned off. This can be done with -N option for btattach. Note: -N option came with BlueZ ver 5.44."

Thanks for pointing this out! Would be very helpful if you could use the "Edit on GitHub" button in the top-right corner of the doc page to add this and generate a pull request. Thanks!

No problem, it's done.


operator [N] [CI] hyperfoil-bundle (0.21.0)

Hello, I've updated operator previously published for Openshift-only to support vanilla K8s deployments (handles route.openshift.io not present), therefore submitting for general use.
New Submissions

[x] Are you familiar with our contribution guidelines?
[x] Have you packaged and deployed your Operator for Operator Framework?

[x] Is your submission signed?
[x] Is operator icon set?

Your submission should not

[x] Modify more than one operator
[x] Modify an Operator you don't own
[x] Rename an operator - please remove and add with a different name instead
[x] Modify any files outside the above mentioned folders
[x] Contain more than one commit. Please squash your commits.

Operator Description must contain (in order)

[x] Description about the managed Application and where to find more information
[x] Features and capabilities of your Operator and how to use it
[x] Any manual steps about potential pre-requisites for using your Operator

Operator Metadata should contain

[x] Human readable name and 1-liner description about your Operator
[x] Valid category name1
[x] One of the pre-defined capability levels2
[x] Links to the maintainer, source code and documentation
[x] Example templates for all Custom Resource Definitions intended to be used
[x] A quadratic logo

Remember that you can preview your CSV here.
--
1 If you feel your Operator does not fit any of the pre-defined categories, file an issue against this repo and explain your need
2 For more information see here

/merge possible

/merge possible

/merge possible


fix(test) : fix script to run the tests on production and prod-preview

Note: If there are pending changes to the PR, prefix the PR title with "WIP" and add the label "DO NOT MERGE"
Mandatory

[x] What does this PR do?
This PR fixes the script to run tests periodically on Production and prod-preview

[ ] What issue/task does this PR references?

[ ] Are the tests Included?

Optional

[ ] Is the documentation Included?

[ ] Are the Release Notes included?

[ ] @mention(s) to expected reviewer(s) included

@Raunak1203 Your image is available in the registry. Run docker pull registry.devshift.net/fabric8-ui/fabric8-planner:SNAPSHOT-PR-2726 && docker run -it -p 5000:8080 registry.devshift.net/fabric8-ui/fabric8-planner:SNAPSHOT-PR-2726 and visit http://localhost:5000 to access it.

[test]

@Raunak1203 Your image is available in the registry. Run docker pull registry.devshift.net/fabric8-ui/fabric8-planner:SNAPSHOT-PR-2726 && docker run -it -p 5000:8080 registry.devshift.net/fabric8-ui/fabric8-planner:SNAPSHOT-PR-2726 and visit http://localhost:5000 to access it.


Unable to extract article data from YouTube url

Unable to extract article data from YouTube url

@pavancp0321 hello, this lib only focuses on text-based content such as blog entries, news entries...
To extract YouTube link, you can use my another tool called oembed-parser.

Thank you for the update.


which hmetis is provided?

hi，
i have "Segmentation fault (core dumped)" while using hmetis in clustering.
I've shift hmetis to hmetis-1.5-linux verison, and pass flow to generate hgr.part.*  file.
I am wondering which version hmetis you provied?
thank you so much.

Hi,  we also use hmetis-1.5-linux version.  You can download it from here: http://glaros.dtc.umn.edu/gkhome/metis/hmetis/download

thanks zhiang , HMETIS 1.5 work well in our inhouse design.


refactor(examples): Liberate notifications and rules scripts

It is actually not required to wrap these scripts in Gradle projects to get auto-completion to work. On the contrary, putting a script below a source root or the resources directory in particular might lead to an internal error in IntelliJ IDEA, see 1. So do as proposed in the comments of the linked issue and move the scripts out of any source roots.

Can you help me understanding if there is any value left in keeping this gradle projects around these .kts files in ort-config repo, or would it make sense to do the same there as well?

Can you help me understanding if there is any value left in keeping this gradle projects around these .kts files in ort-config repo, or would it make sense to do the same there as well?

My plan is to do it there as well, but I'd first like to continue with some cleanups of the examples here. For example, it occurred to me in the context of moving the CLI commands to separate plugin projects that the ExamplesFunTest should actually be part of the examples directory.


RustLib does not initializes in tests

Describe the bug
I try to make golden tests in my project and it seems like I can not initialize rust when testing.
Steps to reproduce

git clone https://github.com/fzyzcjy/flutter_rust_bridge/ (we need only frb_example/flutter_via_integrate folder)
cd frb_example/flutter_via_integrate
flutter test (see logs 1)
edit test/widget_test.dart like this:

// This is a basic Flutter widget test.
//
// To perform an interaction with a widget in your test, use the WidgetTester
// utility in the flutter_test package. For example, you can send tap and scroll
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.

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

import 'package:flutter_via_integrate/main.dart';
import 'package:flutter_via_integrate/src/rust/frb_generated.dart';

void main() async {
  await RustLib.init();

  testWidgets('Counter increments smoke test', (WidgetTester tester) async {
    // Build our app and trigger a frame.
    await tester.pumpWidget(const MyApp());

    // Verify that our counter starts at 0.
    expect(find.text('0'), findsOneWidget);
    expect(find.text('1'), findsNothing);

    // Tap the '+' icon and trigger a frame.
    await tester.tap(find.byIcon(Icons.add));
    await tester.pump();

    // Verify that our counter has incremented.
    expect(find.text('0'), findsNothing);
    expect(find.text('1'), findsOneWidget);
  });
}

flutter test (see logs 2)

Logs
# ------------------- 1 -------------------
══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
The following StateError was thrown building MyApp(dirty):
Bad state: flutter_rust_bridge has not been initialized. Did you forget to call `await
RustLib.init();`? (If you have configured a different lib name, change `RustLib` to your name.)

The relevant error-causing widget was:
  MyApp
  MyApp:file:///home/maks/shit/work/flutter/flutter_rust_bridge-master/frb_example/flutter_via_integrate/test/widget_test.dart:20:35

When the exception was thrown, this was the stack:
#0      BaseEntrypoint._state (package:flutter_rust_bridge/src/main_components/entrypoint.dart:30:8)
#1      BaseEntrypoint.api (package:flutter_rust_bridge/src/main_components/entrypoint.dart:26:16)
#2      greet (package:flutter_via_integrate/src/rust/api/simple.dart:10:22)
#3      MyApp.build (package:flutter_via_integrate/main.dart:149:61)
#4      StatelessElement.build (package:flutter/src/widgets/framework.dart:5541:49)
#5      ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5471:15)
#6      Element.rebuild (package:flutter/src/widgets/framework.dart:5187:7)
#7      ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:5453:5)
#8      ComponentElement.mount (package:flutter/src/widgets/framework.dart:5447:5)
#9      Element.inflateWidget (package:flutter/src/widgets/framework.dart:4326:16)
#10     Element.updateChild (package:flutter/src/widgets/framework.dart:3831:20)
#11     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5496:16)
#12     Element.rebuild (package:flutter/src/widgets/framework.dart:5187:7)
#13     ProxyElement.update (package:flutter/src/widgets/framework.dart:5800:5)
#14     Element.updateChild (package:flutter/src/widgets/framework.dart:3815:15)
#15     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5496:16)
#16     StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5634:11)
#17     Element.rebuild (package:flutter/src/widgets/framework.dart:5187:7)
#18     StatefulElement.update (package:flutter/src/widgets/framework.dart:5657:5)
#19     Element.updateChild (package:flutter/src/widgets/framework.dart:3815:15)
#20     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5496:16)
#21     Element.rebuild (package:flutter/src/widgets/framework.dart:5187:7)
#22     ProxyElement.update (package:flutter/src/widgets/framework.dart:5800:5)
#23     Element.updateChild (package:flutter/src/widgets/framework.dart:3815:15)
#24     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5496:16)
#25     Element.rebuild (package:flutter/src/widgets/framework.dart:5187:7)
#26     ProxyElement.update (package:flutter/src/widgets/framework.dart:5800:5)
#27     Element.updateChild (package:flutter/src/widgets/framework.dart:3815:15)
#28     _RawViewElement._updateChild (package:flutter/src/widgets/view.dart:289:16)
#29     _RawViewElement.update (package:flutter/src/widgets/view.dart:376:5)
#30     Element.updateChild (package:flutter/src/widgets/framework.dart:3815:15)
#31     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5496:16)
#32     Element.rebuild (package:flutter/src/widgets/framework.dart:5187:7)
#33     StatelessElement.update (package:flutter/src/widgets/framework.dart:5547:5)
#34     Element.updateChild (package:flutter/src/widgets/framework.dart:3815:15)
#35     RootElement._rebuild (package:flutter/src/widgets/binding.dart:1334:16)
#36     RootElement.update (package:flutter/src/widgets/binding.dart:1312:5)
#37     RootElement.performRebuild (package:flutter/src/widgets/binding.dart:1326:7)
#38     Element.rebuild (package:flutter/src/widgets/framework.dart:5187:7)
#39     BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2895:19)
#40     AutomatedTestWidgetsFlutterBinding.drawFrame (package:flutter_test/src/binding.dart:1409:19)
#41     RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:457:5)
#42     SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1325:15)
#43     SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1255:9)
#44     AutomatedTestWidgetsFlutterBinding.pump.<anonymous closure> (package:flutter_test/src/binding.dart:1264:9)
#47     TestAsyncUtils.guard (package:flutter_test/src/test_async_utils.dart:71:41)
#48     AutomatedTestWidgetsFlutterBinding.pump (package:flutter_test/src/binding.dart:1251:27)
#49     WidgetTester.pumpWidget.<anonymous closure> (package:flutter_test/src/widget_tester.dart:578:22)
#52     TestAsyncUtils.guard (package:flutter_test/src/test_async_utils.dart:71:41)
#53     WidgetTester.pumpWidget (package:flutter_test/src/widget_tester.dart:575:27)
#54     main.<anonymous closure> (file:///home/maks/shit/work/flutter/flutter_rust_bridge-master/frb_example/flutter_via_integrate/test/widget_test.dart:20:18)
#55     testWidgets.<anonymous closure>.<anonymous closure> (package:flutter_test/src/widget_tester.dart:168:29)
<asynchronous suspension>
#56     TestWidgetsFlutterBinding._runTestBody (package:flutter_test/src/binding.dart:1013:5)
<asynchronous suspension>
<asynchronous suspension>
(elided 5 frames from dart:async and package:stack_trace)

════════════════════════════════════════════════════════════════════════════════════════════════════
══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
The following TestFailure was thrown running a test:
Expected: exactly one matching candidate
  Actual: _TextWidgetFinder:<Found 0 widgets with text "0": []>
   Which: means none were found but one was expected

When the exception was thrown, this was the stack:
#4      main.<anonymous closure> (file:///home/maks/shit/work/flutter/flutter_rust_bridge-master/frb_example/flutter_via_integrate/test/widget_test.dart:23:5)
<asynchronous suspension>
#5      testWidgets.<anonymous closure>.<anonymous closure> (package:flutter_test/src/widget_tester.dart:168:15)
<asynchronous suspension>
#6      TestWidgetsFlutterBinding._runTestBody (package:flutter_test/src/binding.dart:1013:5)
<asynchronous suspension>
<asynchronous suspension>
(elided one frame from package:stack_trace)

This was caught by the test expectation on the following line:
  file:///home/maks/shit/work/flutter/flutter_rust_bridge-master/frb_example/flutter_via_integrate/test/widget_test.dart line 23
The test description was:
  Counter increments smoke test
════════════════════════════════════════════════════════════════════════════════════════════════════
══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
The following message was thrown:
Multiple exceptions (2) were detected during the running of the current test, and at least one was
unexpected.
════════════════════════════════════════════════════════════════════════════════════════════════════
00:01 +0 -1: Counter increments smoke test [E]
  Test failed. See exception logs above.
  The test description was: Counter increments smoke test

To run this test again: /opt/flutter/bin/cache/dart-sdk/bin/dart test /home/maks/shit/work/flutter/flutter_rust_bridge-master/frb_example/flutter_via_integrate/test/widget_test.dart -p vm --plain-name 'Counter increments smoke test'
00:01 +0 -1: Some tests failed.

# ------------------- 2 -------------------
00:01 +0 -1: loading /home/maks/shit/work/flutter/flutter_rust_bridge-master/frb_example/flutter_via_integrate/test/widget_test.dart [E]
  Failed to load "/home/maks/shit/work/flutter/flutter_rust_bridge-master/frb_example/flutter_via_integrate/test/widget_test.dart": Invalid argument(s): Failed to load dynamic library 'librust_lib_flutter_via_integrate.so': librust_lib_flutter_via_integrate.so: cannot open shared object file: No such file or directory
  dart:ffi                                                                new DynamicLibrary.open
  package:flutter_rust_bridge/src/platform_types/_io.dart 39:47           new ExternalLibrary.open
  package:flutter_rust_bridge/src/loader/_io.dart 80:46                   loadExternalLibraryRaw.<fn>
  package:flutter_rust_bridge/src/loader/_io.dart 49:22                   loadExternalLibraryRaw.tryAssumingNonPackaged
  package:flutter_rust_bridge/src/loader/_io.dart 79:12                   loadExternalLibraryRaw
  package:flutter_rust_bridge/src/loader/_io.dart 14:10                   loadExternalLibrary
  package:flutter_rust_bridge/src/main_components/entrypoint.dart 107:13  BaseEntrypoint._loadDefaultExternalLibrary
  package:flutter_rust_bridge/src/main_components/entrypoint.dart 53:31   BaseEntrypoint.initImpl
  package:flutter_via_integrate/src/rust/frb_generated.dart 25:20         RustLib.init
  test/widget_test.dart 15:17                                             main

To run this test again: /opt/flutter/bin/cache/dart-sdk/bin/dart test /home/maks/shit/work/flutter/flutter_rust_bridge-master/frb_example/flutter_via_integrate/test/widget_test.dart -p vm --plain-name 'loading /home/maks/shit/work/flutter/flutter_rust_bridge-master/frb_example/flutter_via_integrate/test/widget_test.dart'
00:01 +0 -1: Some tests failed.

Expected behavior
No response
Generated binding code
No response
OS
Arch linux
Version of flutter_rust_bridge_codegen
2.0.0-dev.24
Flutter info
[✓] Flutter (Channel stable, 3.16.9, on Arch Linux 6.7.4-arch1-1, locale en_US.UTF-8)
    • Flutter version 3.16.9 on channel stable at /opt/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 41456452f2 (2 weeks ago), 2024-01-25 10:06:23 -0800
    • Engine revision f40e976bed
    • Dart version 3.2.6
    • DevTools version 2.28.5

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /home/maks/.android-sdk
    • Platform android-34, build-tools 30.0.3
    • ANDROID_HOME = /home/maks/.android-sdk
    • ANDROID_SDK_ROOT = /opt/android-sdk
    • Java binary at: /usr/lib/jvm/java-17-openjdk/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.10+7)
    • All Android licenses accepted.

[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] Linux toolchain - develop for Linux desktop
    • clang version 16.0.6
    • cmake version 3.28.3
    • ninja version 1.11.1
    • pkg-config version 2.1.0

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed
      instructions).

[✓] Connected device (1 available)
    • Linux (desktop) • linux • linux-x64 • Arch Linux 6.7.4-arch1-1

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

Version of clang++
16.0.6
Additional context
No response

flutter test does not share the same mechanism as flutter run or flutter integration tests, thus the default template which uses cargokit does not trigger compilation of the Rust side.
[TODO explain more]

I think I have a very small knowledge in this field, but I'll try to fix this using your suggested solutions. Thanks!

IIRC (months ago, so my memory is inaccurate) that config is available if you use master Flutter. Usually you should not do that, but since you are just running tests, it is ok to use master flutter.

Ended up using integration_test. For my use case there is no difference between this two, integration_test suited my purpose even better. Maybe we need to add this to documentation: "Use integration tests instead of usual tests"? Is there any point to use standard test over integration_test?

Looks great!

Is there any point to use standard test over integration_test?

It may execute faster, so if you have a ton of tests it is great.
Btw, yet another way of solving it is to compile manually. For example, just create a small script like cargo build && flutter test.


WIP: Added the possibility to add envFrom

If you are willing to merge this, I will write some test cases for it. @simingweng

@dgiebert Really appreciate your contribution! Environment variable is something that Spoditor really likes to support. Generally speaking, I would prefer to cover the three different ways of how environment variable can be specified in Pod spec, not only envFrom, because I do see the use case where developer just wants to specify a literal env value to a specific set of pods, rather than having to create configmap or secret.

I tried building the docker image from this branch, and replaced it in the bundle.yaml,
but I am not finding my env vars inside of my container.
spoditor.io/mount-env:  |
            {
              "containers": [
                { "name": "container1"}
              ],
              "envFrom": [
                {
                  "secretRef": {
                    "name": "container1-secret"
                  }
                }
              ]
            }

I am seeing that the pod cannot start if my keyed secrets don't exist, so that's good. But once the secret created, I'm not seeing my env vars being set inside the container.
Any idea what I could be doing wrong?


Fix centering of full-symmetry cartesian latticeMaps

Asciimaps assume everything starts at (0,0), so grid blueprints need to
offset indices when reading in full geometry inputs. Also, when writing
asciimaps, gridContents need to be offset in the other direction for
things to work out correctly.
This also fixes a bug related to asciimaps writing cartesian maps at
all.

Fixes #332

The code changes look good. Can you post a screenshot of the before and after for the full core Cartesian case with the gridEditor just to show the differences?

Before:

After:

Also, switching to 1/4 symmetry in the blueprints works as expected:


Injuries 2.0

I reworked the injuries module to give more realistic injuries to the population. Two issues we were facing with the previous injuries module was a lack of variety in the injuries people were getting and too high incidence for those injuries. I solved this by adding more variety to the injuries people can get (see the table below) and by reducing the incidence rates.
The incidence of opioid addiction is still WAY to high but I will address that in a separate pull request since that mainly involves reworking the opioid addiction module.
I simulated 10,000 patients over the course of the day and checked the prevalence at the end of the simulation. At present, we have the following injuries and rates:

Injury
Prevalence
Notes

Sprains
0.7%
This may seem low but a lot of sprains aren't treated in an ED setting. They just heal on their own.

Concussions
5.2%

Whiplash
3.0%

Spinal
0.045%
Fracture of the spine. Some lead to permanent neurological damage or even death.

Gunshots
0.015%

Lacerations
7.6%
Many different body areas (hands, legs, arms, face) represented.

Fractures
16.3%
This percentage may seem high but many people (especially children) will break a bone of some kind in their lifetime.

Knees
0.9%
Torn ligaments, torn meniscus, etc.

Shoulders
0.38%
Torn rotator cuff

Burns
1.25%
First, Second, and Third degree burns at varying rates.

I don't claim to be an expert and I'm open to feedback if any of these seem too low or high. I also don't model the cause of these injuries, only that they occurred. Causes could include falls, sports, car accidents, wartime, etc. but no distinction is made at this time.
Currently I vary incidence only by age ranges - not by gender or socioeconomic status. That complexity could be added but I wanted to test the simplest case first and see how things came out.
The other diseases we track currently have the following prevalence:

Disease
Prevalence

Heart Disease
7.3%

Opioid Addiction
19.4%

Lung Cancer
1.61%

This image may be too big to view directly on GitHub (in that case just generate it yourself using graphviz) but here's the new injuries flow chart:

Note the distinct separation between incidences (the cluster at the top) and the progression of the injury (once it occurs). I think this overall design helps us more easily tune incidences without affecting the rest of the injury's progression.

To be honest I'm not totally wild about the way I handled incidence for these injuries. I think I'm going to split each into its own module (at the cost of duplicating some states) to make things a little clearer and easier to fine-tune.

Presumably those are generated prevalences in the tables --- please also add expected prevalence rates.

On average, how many childhood (under 18) injuries does this model generate? Over the lifetime?

1 - I think scaling the total incidence numbers by the population grouping %s means the resulting numbers are too low. You get that "scaling" factor for free when you split the population by age anyway. I know I'm not explaining this very well.
2 - A couple places refer to a "fatal_injury" attribute which isn't used anywhere else

@dehall, I agree with you.

I fixed the initial incidence numbers (the same for each age group) and the results look a lot more realistic.
I envisioned the fatal_injury attribute to be used by a self-harm module. A lot of suicides are the result of gunshot wounds.

At Dylan's suggestion I omitted most of the modules except opioids and injuries to speed up the generation of 10k patients. I will add those back into the next run though to get a count for lung cancer and heart disease.
At a glance these prevalences seem pretty good. Fractures are too high for adults and too low for children, so I'm fixing that in the next run. I also think there are too few concussions. Besides opioid addiction, is there anything else you guys notice that's off?
Diseases

Disease
Pop (out of 11k)
Est. Prevalence
Act. Prevalence
Act. Incidence
Source

Diabetes
1201
10.8%
9.3%
0.439%
ADA

Opioids
2384
21.5%
0.668%
-
NIH

Heart Disease
-
-
11.5%
0.262%
CDC

Lung Cancer
-
-
0.157%
0.0705%
ALA

Injuries

Injury
Pop (out of 11k)
Avg. Per Person
Est. Prevalence
Act. Incidence
Source

Concussions
391
0 - 2
3.52%
0.510%
NIH

Sprains
3436
1 - 4
30.97%
5.44%
BMUS

Whiplash
354
0 - 2
3.19%
0.478%
SRI

Spinal Trauma
12
0 - 1
0.0796%
0.0153%
NSCISC

Gunshot Wounds
31
0 - 1
0.279%
0.0318%
NIH

Lacerations
1895
0 - 3
17.08%
2.61%
BMUS

Fractures
3778
1 - 5
34.05%
5.83%
BMUS

Knee Injuries
166
0 - 1
1.496%
0.229%
NIH

Shoulder Injuries
119
0 - 1
1.073%
0.147%
OJ

Burns
296
0 - 2
2.67%
0.398%
BF

Totals:
Total Patients: 11094
Deceased: 2948
Living: 8146
Note:
Some of these injuries happen regularly but resolve quickly. Therefore incidence is high but prevalence is low or non-existent. For example, gunshot wounds or sprains; they happen quickly and heal quickly (unless the patient dies, of course).

Is Est. Prevalence the generated prevalence? It looks like it. I can't compare generated prevalence with actual incidence. That is apples and oranges.

A more complete analysis:
Synthea: Injuries and Diseases
Diseases

Disease
Population Living
Generated Prevalence*
Actual Prevalence
Actual Incidence
Source

Diabetes
812
9.69%
9.3%
0.439%
ADA

Opioids
2277
27.2%
0.668%
-
NIH

Heart Disease
894
10.7%
11.5%
0.262%
CDC

Lung Cancer
3
0.0358%
0.157%
0.0705%
ALA

Injuries
Adjustments:
So far I made the following adjustments to the incidence rates to try and make the injuries a little more realistic:

I doubled the fracture incidence for children from 0.0583 to 0.1166
Doubled the child concussion rate from 0.0051 to 0.011
Increased the adult concussion rate by 1.5 from 0.0051 to 0.00765
Reduced the rate of fractures in adults by half, from 0.0583 to 0.02915

Results:

Injury
Population Living
Generated Prevalence*
Estimated Prevalence**
Actual Incidence
Source

Concussions
488
5.83%
4.99%
0.510%
NIH

Sprains
3395
40.5%
42.8%
5.44%
BMUS

Whiplash
383
4.57%
4.68%
0.478%
SRI

Spinal Trauma
8
0.0955%
0.153%
0.0153%
NSCISC

Gunshot Wounds
19
0.227%
0.418%
0.0318%
NIH

Lacerations
1807
21.6%
23.2%
2.61%
BMUS

Fractures
3180
38.0%
45.2%
5.83%
BMUS

Knee Injuries
174
2.08%
2.27%
0.229%
NIH

Shoulder Injuries
123
1.47%
1.46%
0.147%
OJ

Burns
285
3.40%
3.91%
0.398%
BF

Totals:
Total Patients: 11590
Deceased: 3213
Living: 8377
*Generated Prevalence:
This is the percentage of living patients with this injury or disease.
**Estimating Prevalence:
I generated these patients with 10 years of history. Given the actual incidence, we can get an expected value for this 10-year period:
expected_value = P(injury)
expected_value = 1 - P(no_injury)
expected_value = 1 - (1 - (incidence) ^ num_years)

So, for example, if we had an injury with 5% incidence and we look at 10,000 patients over 10 years, we would expect to see:
expected_value = 1 - (1 - (0.95) ^ 10)

expected_value =
    0.401

So we'd expect to see about 40% of the population with a history of that injury after 10 years, or about 4,000 people.
A Typical Patient's Record
Here's a picture of 10 randomly selected patients out of the 100 I generated with logging turned on. In each column is the number of that type of injury the patient sustained during their lifetime. Note that some of these patients have not yet reached adulthood or old age.
Full Life:

Injury
p0
p1
p2
p3
p4
p5
p6
p7
p8
p9
Avg. Per Patient

Concussion
0
0
0
0
1
0
0
1
0
0
0.2

Sprain
4
5
5
0
4
5
1
2
0
2
2.8

Whiplash
1
0
0
0
0
0
0
0
1
0
0.2

Spinal
0
0
0
0
0
0
0
0
0
0
0

Gunshot
0
0
0
0
0
0
0
0
0
0
0

Laceration
3
1
0
0
3
0
0
2
2
0
1.1

Fracture
1
4
3
1
4
3
4
2
2
4
2.8

Knee
0
1
0
0
0
0
0
0
0
1
0.2

Shoulder
0
0
0
0
0
0
0
0
0
0
0

Burn
0
0
1
0
0
0
0
0
0
0
0.1

As Children:

Injury
p0
p1
p2
p3
p4
p5
p6
p7
p8
p9
Avg. Per Child

Concussion
0
0
0
0
0
0
0
1
0
0
0.1

Sprain
2
3
1
0
2
1
0
0
0
1
1

Whiplash
0
0
0
0
0
0
0
0
1
0
0.1

Spinal
0
0
0
0
0
0
0
0
0
0
0

Gunshot
0
0
0
0
0
0
0
0
0
0
0

Laceration
1
1
0
0
2
0
0
1
2
0
0.7

Fracture
0
2
2
1
2
2
2
0
2
1
1.4

Knee
0
0
0
0
0
0
0
0
0
0
0

Shoulder
0
0
0
0
0
0
0
0
0
0
0

Burn
0
0
0
0
0
0
0
0
0
0
0

In my opinion, I think fractures seem a little high for most patients and concussions a little low. What do you think?

Thanks for all the information. This helps. I need to mentally chew on this for a while.
I think fractures are too high. I'd expect 0-2 for most people. I don't know anyone who has had 4 or 5 broken bones. Same for sprains and lacerations.

Round 2:
Synthea: Injuries and Diseases
Iteration 2: 2016-11-17
Diseases

Disease
Population Living
Generated Prevalence*
Actual Prevalence
Actual Incidence
Source

Diabetes
1025
10.26%
9.3%
0.439%
ADA

Opioids
1980
19.81%
0.668%
-
NIH

Heart Disease
1046
10.47%
11.5%
0.262%
CDC

Lung Cancer
3
0.0300%
0.157%
0.0705%
ALA

Injuries
Adjustments:
So far I made the following adjustments to the incidence rates to try and make the injuries a little more realistic:

I doubled the concussion incidence for children from 0.0051 to 0.1010
Halved the child fracture rate from 0.0583 to 0.025
Increased the adult concussion rate by 1.5 from 0.0051 to 0.00765
Decreased the adult fracture rate by a factor of 4, from 0.0583 to 0.007
Retained the original, highest fracture rate for the elderly at 0.0583

In general I tried to reduce the number of fractures and sprains, especially in adults age 19 - 65.
Results:

Injury
Population Living
Generated Prevalence*
Estimated Prevalence**
Actual Incidence
Source

Concussions
721
7.22%
4.99%
0.510%
NIH

Sprains
1386
13.87%
42.8%
5.44%
BMUS

Whiplash
458
4.58%
4.68%
0.478%
SRI

Spinal Trauma
13
0.130%
0.153%
0.0153%
NSCISC

Gunshot Wounds
23
0.230%
0.418%
0.0318%
NIH

Lacerations
1293
12.94%
23.2%
2.61%
BMUS

Fractures
1504
15.1%
45.2%
5.83%
BMUS

Knee Injuries
216
2.16%
2.27%
0.229%
NIH

Shoulder Injuries
125
1.25%
1.46%
0.147%
OJ

Burns
389
3.89%
3.91%
0.398%
BF

Totals:
Total Patients: 13901
Deceased: 3908
Living: 9993
*Generated Prevalence:
This is the percentage of living patients with this injury or disease (out of 9,993).
**Estimating Prevalence:
I generated these patients with 10 years of history. Given the actual incidence, we can get an expected value for this 10-year period:
expected_value = P(injury)
expected_value = 1 - P(no_injury)
expected_value = 1 - ((1 - incidence) ^ num_years)

So, for example, if we had an injury with 5% incidence and we look at 10,000 patients over 10 years, we would expect to see:
expected_value = 1 - (1 - 0.05) ^ 10)

expected_value =
    0.401

So we'd expect to see about 40% of the population with a history of that injury after 10 years, or about 4,000 people.
A Typical Patient's Record
Here's a picture of 10 randomly selected patients out of the 100 I generated with logging turned on. In each column is the number of that type of injury the patient sustained during their lifetime. Note that some of these patients have not yet reached adulthood or old age.
Full Life:

Injury
p0
p1
p2
p3
p4
p5
p6
p7
p8
p9
Avg. Per Patient

Concussion
3
0
0
2
0
3
1
0
0
1
1.0

Sprain
4
1
1
1
0
0
1
1
1
9
1.0

Whiplash
0
0
0
1
1
0
0
0
0
0
0.2

Spinal
0
0
0
0
0
0
0
0
0
0
0

Gunshot
0
1
1
0
0
0
0
0
0
0
0

Laceration
0
1
2
2
0
1
2
1
1
1
1.1

Fracture
0
1
2
3
1
0
2
1
1
1
1.2

Knee
0
1
0
0
0
0
0
0
0
0
0.1

Shoulder
0
0
1
0
1
0
0
0
0
0
0.2

Burn
0
0
1
1
0
0
0
0
0
0
0.2

As Children:

Injury
p0
p1
p2
p3
p4
p5
p6
p7
p8
p9
Avg. Per Child

Concussion
1
0
0
1
0
2
0
0
0
0
0.4

Sprain
2
1
0
1
0
0
0
0
1
0
0.5

Whiplash
0
0
0
0
0
0
0
0
0
0
0

Spinal
0
0
0
0
0
0
0
0
0
0
0

Gunshot
0
1
0
0
0
0
0
0
0
0
0.1

Laceration
0
0
2
1
0
1
0
0
1
0
0.5

Fracture
0
1
1
0
0
0
1
1
1
1
0.6

Knee
0
0
0
0
0
0
0
0
0
0
0

Shoulder
0
0
0
0
0
1
0
0
0
0
0.1

Burn
0
0
0
0
0
0
0
0
0
0
0

As Elders:

Injury
p0
p1
p2
p3
p4
p5
p6
p7
p8
p9
Avg. Per Elder

Concussion
1
0
0
0
0
0
0
0
0
0
0.1

Sprain
1
0
0
0
0
0
0
0
1
0
0.2

Whiplash
0
0
0
0
0
0
0
0
0
0
0

Spinal
0
0
0
0
0
0
0
0
0
0
0

Gunshot
0
0
0
0
0
0
0
0
0
0
0

Laceration
0
0
0
1
0
0
0
0
0
0
0.1

Fracture
0
0
0
2
1
0
1
0
0
0
0.4

Knee
0
0
0
0
0
0
0
0
0
0
0

Shoulder
0
0
0
0
0
0
0
0
0
0
0

Burn
0
0
0
0
0
0
0
0
0
0
0

Overall I think this latest round of incidences was successful. Patients now seem fairly realistic.


Running ng server without  elevated rights gives warning message of ember cli

OS?
Windows 10

Versions.
angular-cli: 1.0.0-beta.10
node: 5.7.0
os: win32 x64

Repro steps.
Fresh installation via npm

The log given by the failure.
if i run  ng server without elevated rights(as admin), the warning displayed contains message from ember-cli and its document reference.

Mention any other details that might be useful.

Thanks! We'll be in touch soon.

Fixed in #1455


[Key Vault] Add links to key rotation methods' documentation in README sample

Point to update_key_rotation_policy and rotate_key on this docs site after they're available (post-October release)

Hi @100kimch, just checking in! Do you still want to tackle this issue? We'll include this change in our next GA release, so we'd like to get this merged by the end of November.


Feature: codeBuild test integration

This days I'm trying to integrate unit and integration test into codeBuilt within a codePipeline using sam local commands, but I'm having some troubles. Would be great to have a reference example of integration of sam with codebuild for test.
Thanks

@P00L Can you be more descriptive of the troubles you are running into? You should be able to install SAM CLI into the CodeBuild image and use the commands you need too. Not 100% sure if CodeBuild support Docker, which would be needed if you wanted to invoke the function in your CI/CD. But at that point, my recommendation is to deploy the function to a test environment and run the automated tests on the service. This would get you complete confidence that what you are deploying works on the same system your service runs on instead of a local implementation that could have deviations.

I'm currently migrating my CodeBuild buildspecs to use SAM. The roadblocks I ran into was having to leave the --template-file out of the sam package command as well as figuring out how to install and configure sam. Note that I'm not running integration tests (no use of sam local). I'm only running unit tests and I do that by letting sam build my gradle project. Here's my setup, in case it helps:
CodeBuild:
Image: aws/codebuild/java:openjdk-8-1.6.0
Environment type: Linux
buildspec:
version: 0.2

phases:
  install:
    commands:
      - lsb_release -a # output OS name and version
      - pip install --user --upgrade awscli # https://github.com/pierreis/sam-codebuild-starter/blob/master/buildspec.yml
      - pip install --user --upgrade aws-sam-cli
      - USER_BASE_PATH=$(python -m site --user-base) # https://github.com/awslabs/aws-sam-cli/issues/349
      - export PATH=$PATH:$USER_BASE_PATH/bin
  build:
    commands:
      - sam build --template myTemplate.yml
      - |
        sam package \
        --s3-bucket myBucket \
        --output-template-file myPackagedTemplate.yml
artifacts:
  type: zip
  files:
    - myPackagedTemplate.yml
cache:
  paths:
    - '/root/.gradle/wrapper/**/*'

it seems like using pip is deprecated in favor of using the new sam cli "installers". I have not tried it yet, but for a CodeBuild using linux it sounds like it would require installing Homebrew, which I'm not sure how performant that would be (maybe using a custom image with Homebrew pre-installed would help?).
https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install-linux.html

found an example of using sam local with CodeBuild: https://github.com/aws-samples/aws-codebuild-polyglot-application/blob/master/buildspec.yml


 created for MaybeSignal::Static

I'm using #[prop(into)] prop: MaybeSignal<...> heavily in all of my components, to allow call sites to choose whether to pass in a signal or a reactive value. I'm using this even for props for which a call site will most likely choose static values, e.g. styling, color, button text, ...
My assumption is that, because i use MaybeSignal and not Signal, there is no performance downside to using it instead of taking a prop by value, so I can just as well make everything MaybeSignal and give the call site flexibility, even if it's not needed.
However, I just noticed that there is actually a difference in the generated HTML. MaybeSignal, if added to a view!{}, seems to create html comments with <DynChild> tags around its content, even if it's MaybeSignal::Static.
I'm not fully sure what <DynChild> does and if it has any impact on hydration or performance. But even if it doesn't, it would probably be cleaner to not generate those for MaybeSignal::Static and only generate them for MaybeSignal::Dynamic.

You don't provide any example code, unfortunately. (And could you please use the issue template, or open a Discussion, in the future?)
Your assumption is incorrect, depending on how you are reading from MaybeSignal, which is why an example or reproduction would be useful in answering the question. Reading MaybeSignal inside a function will treat it like any other signal being read inside a function, generating DynChild. Matching on the MaybeSignal and rendering it either reactively or not will not.
For what it's worth you're also looking at the output in debug mode, which is intentionally verbose (marking boundaries around different components with comment markers.)


Texlive.Texlive version 2023

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?
[x] This PR only modifies one (1) manifest
[ ] Have you validated your manifest locally with winget validate --manifest <path>?
[ ] Have you tested your manifest locally with winget install --manifest <path>?
[x] Does your manifest conform to the 1.4 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

Manual Validation failed with:

2023-05-18 09:11:33.716 [CLI ] Package hash verification failed. SHA256 in manifest [2fb515b654d438282ae5cb593127860d5f9f4d8b14d0060e3027b6ff3d40b531] does not match download [83998132af3a0a44d0983a0ba9a4b681415a4d11afc46982dd58aca021d7e285]

@wingetbot waivers Add Validation-Domain

This application seems to hang during installation:

Is there a way to specify the mirror with an installer switch? We might specify a North America server, or maybe have parallel global regions or a similar solution.

Running interactively, this appears to be a custom installer nested within a Nullsoft installer:

Is there a way to specify the mirror with an installer switch?

Normally, the installer would automatically choose a mirror near the location of the user, but in your case that mirror probably happens to be unresponsive, causing the installer to wait forever.
You could specify a mirror through the -repository flag, e.g. ìnstall-tl-windows.exe -repository https://ctan.math.utah.edu/ctan/tex-archive/systems/texlive/tlnet. A full list of mirrors can be obtained from https://ctan.org/mirrors, but if don't forget to append the path /systems/texlive/tlnet to the mirror's URL, otherwise the installer will hang again.

Running interactively, this appears to be a custom installer nested within a Nullsoft installer:

Yup, you could even bypass the nested installer with the --no-gui installer flag, but this seems to skip the installation of most if not all critical components of TeX Live.

Running interactively, this appears to be a custom installer nested within a Nullsoft installer

Yup, you could even bypass the nested installer with the --no-gui installer flag, but this seems to skip the actual installation of TeX Live.

A goal is interacting with the nested installer, including passing a mirror switch to it. Often, the outer installer captures all installer switches, insulating the nested installer.

Hello @abstractionmage,
I am sorry to report that the Sha256 Hash does not match the installer. This may be caused by using a vanity URL rather than a URL directly to the binary.
Please check the HASH and submit again. Sorry for the inconvenience.
Template: msftbot/validationError/installers/hashMismatch

This package's hash seems to change very frequently.


⚠ Bofrost.at has degraded performance

In e3b04d6, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1991 ms

Resolved: Bofrost.at performance has improved in e5b425c after 6 minutes.


[Incubator][VC]Add Pod DWS mock tests

This change adds Pod dws mock tests. Pods creation needs some other objects in the client, hence the mock infra code is changed to accommodate the request.
Fix some bugs in previous mock tests code.

/lgtm
/approve


how to get the density map(come out with black-and-white map)and how to count the total numbers

density_map = net(im_data, gt_data) # in test.py, this is the density map
the sum of the density map is the count

density_map = net(im_data, gt_data) # in test.py, this is the density map
the sum of the density map is the count

how to compute the sum of the density map?

Hello, I would like to ask how you can input a picture without data and output a predicted density map based on this project?Thanks for answer.

Hello, I would like to ask how you can input a picture without data and output a predicted density map based on this project?Thanks for answer.

hello,  I also want to know how to reach what you said. Have you already achieve it?

 Is there a misunderstanding? I am referring to the input image without the heat map（density map）. In addition, I read other papers. It seems that someone did it, but the project address was not mentioned. Thank you for your reply.
------------------ 原始邮件 ------------------
发件人<EMAIL_ADDRESS>发送时间: 2020年5月4日(星期一) 下午4:47
收件人<EMAIL_ADDRESS>抄送: "郑兴文"<546080688<EMAIL_ADDRESS>主题: Re: [svishwa/crowdcount-mcnn] how to get the density map(come out with black-and-white map)and how to count the total numbers (#32)
Hello, I would like to ask how you can input a picture without data and output a predicted density map based on this project?Thanks for answer.
hello,  I also want to know how to reach what you said. Have you already achieve it?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

Sorry,I forgot how to do it,you can see the output and I think maybe you can use opencv to get the density map
At 2020-05-04 16:47:06, "JaoquinLin"<EMAIL_ADDRESS>wrote:
Hello, I would like to ask how you can input a picture without data and output a predicted density map based on this project?Thanks for answer.
hello, I also want to know how to reach what you said. Have you already achieve it?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

Thanks！
------------------ 原始邮件 ------------------
发件人<EMAIL_ADDRESS>发送时间: 2020年5月4日(星期一) 下午5:02
收件人<EMAIL_ADDRESS>抄送: "郑兴文"<546080688<EMAIL_ADDRESS>主题: Re: [svishwa/crowdcount-mcnn] how to get the density map(come out with black-and-white map)and how to count the total numbers (#32)
Sorry,I forgot how to do it,you can see the output and I think maybe you can use opencv to get the density map
At 2020-05-04 16:47:06, "JaoquinLin"<EMAIL_ADDRESS>wrote:
Hello, I would like to ask how you can input a picture without data and output a predicted density map based on this project?Thanks for answer.
hello, I also want to know how to reach what you said. Have you already achieve it?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.


Implements #557 - Add IPv4 /32 and IPv6 /128 prefix support

Fixes: #557 - Add IPv4 /32 and IPv6 /128 prefix support

Allow /32 and /128 prefixes

this is the first time I created a PR so hopefully done it the right way ;-)

Thank you for the pull request! Just to clarify, is this a port of https://github.com/netbox-community/netbox/pull/6545?

@glennmatthews that is correct

Thank you again! It looks like the fix for https://github.com/netbox-community/netbox/issues/6350 (https://github.com/netbox-community/netbox/pull/6371/commits/7f2f98885b68b9b9d7208587df3f277c22806b2b) also touches this same code - would you be willing to include that fix in this PR as well for completeness' sake?

Added and tested the fix from  netbox-community/netbox#6350

checked and tested your suggestions. They are working as expected. Thanks!


I have installed PromiseKit, but Xcode still complaining that "use of undeclared type Promise"

"use of undeclared type Promise"  when uting Promise  as the return type.
what is going on?

How did you install PromiseKit?
Did you import PromiseKit?

I have fixed it by dragging the Pod.xcodeproject to the Pods directory. But I am still having a problem as shown below:

will you happen to know how to fix it?

You are having a link error and have not provided the link error message. I cannot help until you provide the link error message. To do this you need to open up the build log and click through, then copy the message here.

here is the message:
Showing Recent Issues
Ld /Users/user/Library/Developer/Xcode/DerivedData/MyApp-hdbqgokcmjrkhjbktlbrgqjuvcfk/Build/Products/Debug-iphonesimulator/MyApp.app/PlugIns/MyAppTests.xctest/MyAppTests normal x86_64
cd /Users/user/Desktop/MyApp
export IPHONEOS_DEPLOYMENT_TARGET=10.3
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk -L/Users/user/Library/Developer/Xcode/DerivedData/MyApp-hdbqgokcmjrkhjbktlbrgqjuvcfk/Build/Products/Debug-iphonesimulator -F/Users/user/Library/Developer/Xcode/DerivedData/MyApp-hdbqgokcmjrkhjbktlbrgqjuvcfk/Build/Products/Debug-iphonesimulator -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks -filelist /Users/user/Library/Developer/Xcode/DerivedData/MyApp-hdbqgokcmjrkhjbktlbrgqjuvcfk/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyAppTests.build/Objects-normal/x86_64/MyAppTests.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -mios-simulator-version-min=10.3 -dead_strip -bundle_loader /Users/user/Library/Developer/Xcode/DerivedData/MyApp-hdbqgokcmjrkhjbktlbrgqjuvcfk/Build/Products/Debug-iphonesimulator/MyApp.app/MyApp -Xlinker -object_path_lto -Xlinker /Users/user/Library/Developer/Xcode/DerivedData/MyApp-hdbqgokcmjrkhjbktlbrgqjuvcfk/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyAppTests.build/Objects-normal/x86_64/MyAppTests_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/user/Library/Developer/Xcode/DerivedData/MyApp-hdbqgokcmjrkhjbktlbrgqjuvcfk/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyAppTests.build/Objects-normal/x86_64/MyAppTests.swiftmodule -framework XCTest -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/user/Library/Developer/Xcode/DerivedData/MyApp-hdbqgokcmjrkhjbktlbrgqjuvcfk/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyAppTests.build/MyAppTests.xctest.xcent /Users/user/Library/Developer/Xcode/DerivedData/MyApp-hdbqgokcmjrkhjbktlbrgqjuvcfk/Build/Products/Debug-iphonesimulator/PromiseKit/PromiseKit.framework/PromiseKit -Xlinker -dependency_info -Xlinker /Users/user/Library/Developer/Xcode/DerivedData/MyApp-hdbqgokcmjrkhjbktlbrgqjuvcfk/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyAppTests.build/Objects-normal/x86_64/MyAppTests_dependency_info.dat -o /Users/user/Library/Developer/Xcode/DerivedData/MyApp-hdbqgokcmjrkhjbktlbrgqjuvcfk/Build/Products/Debug-iphonesimulator/MyApp.app/PlugIns/MyAppTests.xctest/MyAppTests
ld: framework not found PromiseKit for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Your project cannot find PromiseKit to link it, this means your CocoaPods installation is incorrect. I suggest following the instructions at cocoapods.org for how to integrate with an existing xcodeproj.

The usual steps are:

Create the Podfile
pod install
open the xcworkspace NOT the xcodeproj

I have done the what you said, but same error is still showing.
Please note that the error is occuring in the UnitTest file, not in the app level (The App run normall, just the Unit test not running) Please refer to the test example below.

Perhaps you need to tell your Podfile to depend on PromiseKit in the test target also.
https://github.com/CocoaPods/CocoaPods/issues/4944

I have this same issue, but my project builds (and runs) fine. Yet Xcode 9 (beta 5) syntax/error highlighting continues to show that Promise isn't defined. Is there any useful debug info I can provide?

Please open a new ticket.

Closing due to lack of response.


Replace ids with SHA256 of the resouce ids

Fixes: https://github.com/cloudflare/terraform-provider-cloudflare/issues/764
I was not sure if you would prefer to use sha1 or some other function, but I think this should get the job done.
I chose to leave generateShaId as a separate function but repeat sort and .join because I thought there could be non list ids we could want to produce a sha for, but then noticed we do not. I think leaving it reusable its not bad, but let me know if this is not your preferred choice.

I chose to leave generateShaId as a separate function but repeat sort and .join because I thought there could be non list ids we could want to produce a sha for, but then noticed we do not. I think leaving it reusable its not bad, but let me know if this is not your preferred choice.

Decided this made no sense and merged the sort and sha.

Thanks but we already have stringChecksum for this purpose. Are you able to update this PR to use that function instead?

For sure, I did not notice there was one already, ill update this to use
that function.
On Thu, Nov 12, 2020, 8:13 PM Jacob Bednarz<EMAIL_ADDRESS>wrote:

Thanks but we already have stringChecksum for this purpose. Are you able
to update this PR to use that function instead?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/cloudflare/terraform-provider-cloudflare/pull/869#issuecomment-726282447,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACLS7CIS6HFXVWHV6P27MSLSPQXWJANCNFSM4TTSJS3A
.

@jacobbednarz I reused the checksum function but kept the wrapper function to make the list -> checksum, in order to avoid repeating the join, etc. Would you prefer to remove that as well or maybe generalize it.

I think the dedicated stringListChecksum function is 👌 to avoid repeating it in each call site 👍 I've just got a couple of questions about appending to the slices which I can only seem to find a single place where we actually build up the slice.

@jacobbednarz Good catch, I completely missed it when copy/pasting this from one data source to another. I believe I covered them all now.

Awesome, thanks @pecigonzalo! You rock 🤘

Can you release a patch version with this please?

Probably not right away - we generally release on a monthly basis unless there are pressing fixes included in it. There are a couple of PRs in flight we'll be looking to include in the next release.


Submit functional test to user's cluster

Is your feature request related to a problem? Please describe.
Currently, in order to submit our functional test to a cluster outside of our docker environment may not be possible as it is reading data files from hardcoded local file paths. This is an issue as:

We would need to make the hardcoded file path be available for all nodes.
File paths are local file system paths, thus we cannot put those on distributed file systems like hdfs or s3.
While the fat jar contains the data files, Spark cannot read into jars. (If it can, we would also need to make the jar available for all nodes)

Suggestions for changes.

Unhardcode the file paths containing the data files used by the tests.
Move data files out of the resources folder to a data folder.
Allow user to provide a custom file path to the data. Most likely through an env vars specifying the base path to the data. This would allow us to specify a path to hdfs, gcs, s3, or other file systems.
We should either mount the data folder in our docker containers or copy it onto our hdfs. (Note that the startup scripts is doing some data copying to hdfs)

To be implemented if there is a need in the future.


Fix count error dims with DSumMask fix

Missed also slice the count error back down if DSumFix is applied, closes #330

Codecov Report
Patch coverage has no change and project coverage change: -0.02 :warning:

Comparison is base (dda2cfe) 77.01% compared to head (96de70e) 77.00%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #331      +/-   ##
==========================================
- Coverage   77.01%   77.00%   -0.02%
==========================================
  Files          63       63
  Lines        6557     6558       +1
==========================================
  Hits         5050     5050
- Misses       1507     1508       +1

Impacted Files
Coverage Δ

stixcore/products/level0/scienceL0.py
85.98% <0.00%> (-0.21%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Scroll compatibility with ViewPager is lost when upgrading draggable-flatlist from 1.1.9 to 2.3.1

Describe the bug
Scroll compatibility with @react-native-community/viewpager is lost when upgrading react-native-draggable-flatlist from 1.1.9 to 2.3.1.
The issue:
I cannot swipe the ViewPager right/left when touching the DraggableFlatList element.
Swiping outside DraggableFlatList works fine though.
And with the exact same config/style, it works perfectly with the version 1.1.9.
To Reproduce
<ViewPager>
  <View>
        <Lorem />
  </View>
  <View>
        <DraggableFlatList ... />
  </View>
  <View>
        <Ipsum />
  </View>
</ViewPager>

Platform & Dependencies
Please list any  applicable dependencies in addition to those below (react-navigation etc).

Platform: Android (not tested on iOS)
React Native or Expo version: Native
Reanimated version: 1.7.0
React Native Gesture Handler version: 1.6.0

did you try adding an activationDIstance prop?
https://github.com/computerjazz/react-native-draggable-flatlist#props
This is the distance a finger must travel before the gesture handler activates. It was added so that the list doesn't capture tab swipe gestures, and I would guess it may solve this issue.
It may require some experimentation to find the right number, I'd start at around 30 and go from there.

Cool. Setting activationDistance  to 30 is a good works well. Thank you.


Convert jest testing over to TypeScript

This PR will allow jest to run directly against the TypeScript files so we don't have to npm run build before testing and now `npm run test:watch" actually works!

This is what I'm doing in all my TS projects, work and personal, and I prefer it to what you're proposing in this PR, for the following reasons:

Most importantly: compile errors are neatly in one terminal tab/pane, while test results are in another. I find mixing both things to be confusing. Letting tsc -w do the source watching & compiling, and jest watch & test the output of tsc -w keeps responsibilities separated, with the UI intended by tsc -w, and user-visible.

To me this isn't an issue, but I could see why someone would want them separate.

The test runner doesn't need to know about TS.

Less deps, less conf.

True, but these being dev-dependencies they don't concern me as much.

Have you tried the workflow I recommend above? Does it not work? If it works, do you still have reasons to prefer what this PR suggests?

I do in the sense that

It's less that needs to be actively done (one command vs. two, which I frequently forget to do).
It feels more like the process that I do in other projects and language.  I think this dovetails with my next point which is:
To me this flow makes the JavaScript too prominent in the process. Honestly I don't care about the JavaScript. From my perspective, it's not much different than a compiled binary. It exists only to be a format that can be distributed to end users. The only thing I care about is writing the TypeScript, making sure it does what I want it to do (in unit tests and actual testing), and shipping it. The JavaScript is just a middle man that I avoid as much as possible. I'm sure that there's a chance I'm being overly simplistic or dismissive, so feel free to correct me here.

In the long run reason #3 above is 90% of why i did this, so if there's a difference of opinion here we can discuss that. 😄

It's less that needs to be actively done (one command vs. two...

C'mon. We're working hours on feature/fixes, "one command vs. two" is peanuts 🙂.

... which I frequently forget to do).

My suggestion to prepend test:watch with something like echo 'Remember to run npm run build:watch for the test watcher to run!' &&  addresses this.

It feels more like the process that I do in other projects and language. Code some changes, run my tests, repeat until they're green

I don't understand this point. You can do this manual workflow (just npm test), and you can also run a watcher, by running the two :watch tasks.

To me this flow makes the JavaScript too prominent in the process.

I don't see having build watcher separate from test watcher as making JS prominent. If anything, it's better separation of concerns, and more importantly, it's about using tools as close as possible to their default conf and without plugins. Tooling is annoying; precisely-finnickily-configured tooling is hell to maintain & keep up with & keep working over time. So, I want us to stay close to the ideal default config, and the added value you're exposing here doesn't feel strong enough to justify sacrificing tooling simplicity.

Honestly I don't care about the JavaScript. From my perspective, it's not much different than a compiled binary. It exists only to be a format that can be distributed to end users. The only thing I care about is writing the TypeScript, making sure it does what I want it to do (in unit tests and actual testing), and shipping it. The JavaScript is just a middle man that I avoid as much as possible. I'm sure that there's a chance I'm being overly simplistic or dismissive, so feel free to correct me here.

Be veeeeeery careful with this. Not only you should care about the JS, because it's what our users run (and not TS), but you should care about the JS-after-being-build-then-npm-packed-then-npm-installed. See https://github.com/nativefier/nativefier/commit/cde5c1e13bdc2739604cab04bac64eae0d719ed1 for an example of this.
With all this said,

I'm closing this

As usual: nothing personal, I sincerely appreciate your work, I'm taking this decision because I care, because I don't feel like I'm harming at all your productivity with it, and because it's what feels right for long-term maintainability.

Pushing a commit with the aforementioned echo '...' &&  to remind users of test:watch to run build:watch too.

Ideally we'd have do something more automatic (e.g. automating running both in separate tabs or at least exiting if the build watcher isn't running), and I actually have something like this at work, but it's not cross-platform because it uses pwdx (and obviously I don't want to add a dep to reach the same goal). An echo is good enough.

The app tsconfig changes are I think undesired, until we actually need to guarantee a more recent Electron e.g. when we bump an app dependency requiring a recent Electron

I'm closing this

As usual: nothing personal, I sincerely appreciate your work, I'm taking this decision because I care, because I don't feel like I'm harming at all your comfort/productivity with it, and because it's what feels right for long-term maintainability.

👍
I still disagree, but know that you are not doing this selfishly, but only because you feel it's best for the project. And I've been wrong before, so it's always a risk here as well. 😆

@ronjouch I promise I'm not trying to rehash this, but am trying to work through our recommended flow, however I'm seeing an issue.
For the past while, I had found it easier to use npm run build && npm run test but was trying to get back into the habit you suggested above, which would be more efficient. I started two terminals, one for a build:watch and one for a test:watch, and it doesn't quite behave the way I think it would. For example, if I have those running and do something simple like changing line 137 of current master version of src/options/optionsMain.ts from:
    const requestedMajorVersion = parseInt(requestedVersion.split('.')[0], 10);

to:
    const requestedMajorVersion = parseInt(requestedVersion.split('.')[0], 11);

triggers tsc to rebuild, but no tests appear to run.
If I make a minor change in a test, such as changing line 16 in src/options/optionsMain.ts from:
    targetUrl: 'https://example.com/',

to:
    targetUrl: 'https://example2.com/',

then tsc doesn't run and no jest tests run.
Am I doing something wrong?

@TheCleric

I promise I'm not trying to rehash this, but ...

Absolutely rehash this if it's broken for you 👍.

am trying to work through our recommended flow, however I'm seeing an issue.

I read your thing, tried locally, noticed something wrong, pushed it to master, and was about to write here "fixed it, pls retry!", but re-reading your above comment, I now understand that for you, test:watch doesn't run enough.
Funnily, the issue I noticed locally (and fixed in 9c5dba7f07e03d678f835c1d2ef703a3b4ebcaf2) is that test:watch used to run too much for me, producing the annoying behavior that you had to save twice for your changed code to go through Jest, because your first save would immediately fire Jest, but on not-recompiled-yet JS (see comments in commit). So, I'd be surprised my commit fixes your problem (where neither tsc nor jest run), but it was a problem needing fixing, so can you nevertheless pull and retry, just to be sure.
With this fix, here is my experience on my Linux box. Can try on a window box if you want me to (and I know you have a Windows box/vm too, can you try there too?). Is the screencast of any help? By the way, it'll be a good illustration of how this workflow is pleasant; if we succeed at fixing this, I'll embed it in our dev guide to show future contributors what to expect.
https://user-images.githubusercontent.com/522085/120407694-abdf3f00-c31b-11eb-9ab5-a531a929adb9.mp4
Then, if the screencast doesn't help, something that for sure needs addressing on your side is that "If I make a minor change in a test [...] then tsc doesn't run" . This means that before we even talk about Jest, there's the problem that tsc's watcher doesn't work for you, and that's not good (even if, somehow, jest-ts's watcher does work on your system; maybe jest-ts use a different lib / node-api? I dunno). Can you dig why test:watch doesn't work for you (googling, trying tsc's verbose/debug mode)? Is tsc -w broken for you just in Nativefier, or can you repro the issue in a minimal TS project? Maybe some OS configuration?

Can try on a window box if you want me to (and I know you have a Windows box/vm too, can you try there too?)

@TheCleric I just tested on a Windows 10 machine, build:watch and test:watch work fine too.

@TheCleric also! Does build:watch work if you run it alone? If yes, could it be that test:watch simply exhausts all your OS file watch handles? Then, does adding "/node_modules/", to watchPathIgnorePatterns solve your issue?

Okay so after watching the screencast, I think I see what may have been going wrong, and what we may be able to do to fix it. I see you go immediately and type in a to run all tests. I was expecting it to find the tests to run. After doing something similar to what you do here, things are running on save (though like you it seems to have some "run twice" issues). As well it seems that build:watch only looks for changes, but old builds may be cached between changing branches. For example a test I wrote in one branch was failing on master as it hadn't been deleted yet.

Figure out a way for test:watch to actually watch for changes. I tried changing --watch to --watchAll but that produces a lot of output around code coverage that I wasn't looking for.

What do you think?

@TheCleric all good feedback; addressed in 6b09d14. How does it feel now?

@TheCleric all good feedback; addressed in 6b09d14. How does it feel now?
Also, I brought the upgrade to Jest 27 (with the necessary jasmine.spyOn → jest.spyOn fix) that was in this PR and I had missed as I closed it. Thanks 🙏

Much better. Especially since I just saw npm run watch that integrates the two, I think we've come to a nice middle ground. Thanks!


Delete setup.py

No need to form a [wrong] Python-package

See discussion https://github.com/neuromation/cookiecutter-neuro-project/pull/97/files#r329565745 and https://github.com/neuromation/cookiecutter-neuro-project/pull/97/files#r329563695
@mariyadavydova I'll wait for your approval as well


🐞 [WIP] Fix token ID increments

Description
I assumed NFT IDs would increment as described in #51. Meaning:
User A mints 3 NFTs = Token IDs 1,2,3 are minted
User A burns 1 NFT = Token ID 1 is burned
User A mints 1 NFT = Token ID 4 is minted

This behaviour unless addToBurnedPool is returning true. My change makes the token IDs increment like that.
I'm not 100% sure what the desired way to increment token IDs is but I think not automatically recycling helps for different use cases.
Notes
The testMixed is currently failing. Will fix that if my assumption is right.

The last accquired token ID will be the first token ID to be burned.
This is very intentional for gas efficiency and good enough "rerolling".
Long story short, a queue for owned IDs will cause a lot of implementation problems, and users will most likely not care enough to make it worth it.
Might consider including if I have a strong guarantee that this will > 2x the market cap of future DN404s.


versions < 1.0.0 improperly handle username

solution is to update auto_pilot to fetch user information by id only, since stackoverflow gem lacks support exact match name based queries

fixed with release of v1.0.0 - users must now supply an id instead of username for given stackoverflow profile. if you run into issues please upgrade


Paragraph about BC211 missing from Chinese translation of relevant topic

Opened the content repo. Navigated to Chapter 1 - How to use directories and the internet. Opened the two Chinese translations. Observed that the first paragraph containing information about BC211 is missing from both Chinese translations. Expected is that the Chinese translations will match the English text.
This could well have been a mistake made when copying this data out of the old PDF sources we had back in the day.
Discovered this as part of the QA for #1716
Acceptance Criteria

[ ]  The two Chinese translations for this topic is complete.

Pull the correct Chinese texts from the original BC newcomers' guide in Chinese traditional and simplified

Fun fact, the newcomers guide actually doesn't include the blurb about bc211 in that location, it's just been added in the app in all the languages except for Chinese. So, here's the translation, which can be added to the beginning of the topic.
EN for your reference (already in topics)
BC211
BC211 helps people find all kinds of
community, government, and social
services. People in Metro Vancouver,
Squamish-Lillooet, Fraser Valley, and the
Sunshine Coast can dial 2-1-1 for free,
confidential service in several languages.
Visit the website for information and
resources. There is also an online chat
service that you can use to ask questions.
www.bc211.ca
CN (simplified)
BC211
BC211讓你尋找各式各樣的社區，政府和  社會服務。大溫地區，Squamish-Lillooet，菲莎河谷和陽光海岸可免費直撥2-1-1查問。具備多種語言提供保密服務。你亦可瀏覽其網站獲取信息和資源。網站還設有在線聊天服務，讓你直接提問。
www.bc211.ca
CN (traditional)
BC211
BC211讓你尋找各式各樣的社區，政府和  社會服務。大溫地區，Squamish-Lillooet，菲莎河谷和陽光海岸可免費直撥2-1-1查問。具備多種語言提供保密服務。你亦可瀏覽其網站獲取信息和資源。網站還設有在線聊天服務，讓你直接提問。

@alysha-PG to confirm that the translations are correct

I hereby confirm translations are correct - use above plz.

I can confirm that after matching up areas of text in both simplified and traditional Chinese, the update has been made and the app now has the correct information for the BC 211 information in these languages.


Fixed bug with Socket IO session

New enhancements to the Express session, added "sessionId" as the new
default session key. Previously, the express session was using the
default "connect.sid" key. This caused the Socket configuration to be
unable to find the session id, thus causing issues with the Socket. One
such issue, was that the same Socket would be used for all users
connected to the server.
This also adds a bit more error handling of the Socket server
configuration.

LGTM

Re-worked the error handling. Using the return next() pattern for handling the errors. This makes the code cleaner, and easier to read.

Attempted to fix the spacing issues.. I removed automatic indentation on new lines. @rhutchison How does it look to you now?

LGTM
Tested, and verified that it works.

LGTM - thanks

Thanks @mleanos and @rhutchison @codydaig for reviewing!


feat: noob tutorial for people not familiar with solidity or new to ethereum

Describe the feature request
As someone that has focused on mainly l2's, I have not had the opportunity to work in solidity. I am sure there will be others like me that don't know where to start. Would be great to get even a bullet point to some documentation to get a noob like me ramped up on solidity. There are so many resources out there, would love to know some of the more popular ones.
@d1onys1us
Describe alternatives you've considered
Description of the alternatives you've considered here.
Additional context
Additional context here.

good idea, i think we don't need to provide this, but instead we can point developers to the relevant documentation (probably on ethereum.org).
And we can instruct how to augment any Ethereum tutorial. For example, because we are a Type 1, you should be able to follow any other Solidity developer tutorial with the caveat of modifying the RPC configuration.

let's create some step by step including picture and description.
I suggest to create "How to run a Taiko node " together.

There is actually a step-by-step guide on how to run a taiko node and test a bridge in russian
https://seainvestor.medium.com/taiko-установка-ноды-f52196abf80d


DbContext disposed if Service function called twice

I have a generic repository pattern implemented where I set my dbcontext from ambientDbContextLocator. In my service I have using block for dbcontextScopeFactory where repository is used for query.
using (var dbContextScope = _dbContextScopeFactory.Create())
{
_peopleRepository.Table.Where(x => x.Id == id);
}
calling this service function once is fine, but second call says DbContext has been disposed. Tried usign CreateReadOnly as well but no luck. Am I doing something wrong here?

I'm assuming your _dbContextScopeFactory is injected via an IoC.  If your container supports it (AutoFac does) you can inject a Func dbContextScopeFactoryFunc and change your using statement to the following:
using (var scope = _dbContextScopeFactory().Create())
{
...repo stuff
scope.SaveChanges();
}
You can repeat as many using statements in the same code, each will commit separately to the db.  Not sure how this behaves for nested ambient repository calls though.

I had same issue right here, when try to call service in second time, the DbContext will throw an exception "The operation cannot be completed because the DbContext has been disposed."

so, register your DbContext with Transient Lifetime.
See my expanded answer in this thread: https://github.com/mehdime/DbContextScope/issues/51


adding embedding support for CLIP based models for VideoRAGQnA  example for v0.9

Description
Add support for CLIP based embeddings for multimodal VideoRAG usecase.
Issues
List the issue or RFC link this PR is working on. If there is no such link, please mark it as n/a.
The RFC is under review : https://github.com/opea-project/docs/pull/49
Type of change
List the type of change like below. Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds new functionality)
[ ] Breaking change (fix or feature that would break existing design and interface)
[ ] Others (enhancement, documentation, validation, etc.)

Dependencies
List the newly introduced 3rd party dependency if exists.
Tests
Describe the tests that you ran to verify your changes.

@chensuyue can you please tag this PR with 'V0.9' Milestone

@XuhuiRen @lvliang-intel Could you help to review the code? Thanks

@srinarayan-srikanthan,
Please also check why the example test failed.

@lvliang-intel , the example test fail seem to be unrelated to the PR changes. This test seems to fail in another PR too.

please fix the name confliction with https://github.com/opea-project/GenAIComps/pull/575 before merging

For the failed test "Example-test", here is the comment from @chensuyue
The test failed at megaservice step due to mismatch of the expected keyword and output from curl

To fix this, please do local test on your side with this script  to see what happens. Please note you need to modify line 19 to checkout to your branch under testing. (for example,  git clone -b sri-clip-embedding https://github.com/siddhivelankar23/GenAIComps.git)

@BaoHuiling @srinarayan-srikanthan please consider to have a better name to distinguish your previous PR for the folder https://github.com/opea-project/GenAIComps/tree/main/comps/embeddings/multimodal_embeddings/multimodal_langchain and the folder "comps/embeddings/langchain_multimodal/" in this PR. These two names are too similar. The name should have a clarify representation. Otherwise, it will lead to unexpected confusion.

@lvliang-intel , can we please merge this PR since all issues are resolved?


Unit tests in random order to make sure that unit tests are independent of each other

We had a couple of times the issue that unit tests depend on the order of execution. This is obviously wrong, as unit tests by definition should be testing 'units'.
This PR adds a CI step for the nightly test of main and runs the unit tests 5x in random order.

Interestingly, it actually fails before correcting the tests in test_general.py, see https://github.com/gammasim/simtools/actions/runs/9107587029/job/25036730200
I removed this test, as this one tests for an executable without giving the full path. This is not what the function to be tested is supposed to handle.

One more failure fixed: test_model_parameter was modifying a parameter of a TelescopeModel given by a fixture. This was used by other tests, which failed depending on the test sequence. Fixed now (and this is exactly why this PR is important).

There is one last test failing: tests/unit_tests/model/test_array_model.py::test_get_single_telescope_info_from_array_config
This has been fixed in PR #910 and I will wait for this PR to be merged.
(leave current PR in draft in the mean while)

@VictorBarbosaMartins - thanks for the review!