Check out Radicle Patch

This issue is about adding the "Check out" action to the Radicle Patch, as per the screenshot below:

The rad patch checkout $patch_id command can then be used to actually checkout the (latest revision of the) patch.
Acceptance tests:

don't allow checking out if on a working copy with uncommitted/ unstashed changes
if patch is already checked out and we are on that patch branch already then no need to checkout again (a message might be nice)
Checking out should clearly inform the user about what happened (branch changed, upstream branch tracked)

@gsaslis if you can think of any edge cases that we should handle, meaning ones needing special handling or which may cause an error, please put them in the issue description so that our solution could account for them or at the very least be tested against them.
Thank you!

Added a couple of points ;)

Results:
https://github.com/cytechmobile/radicle-vscode-extension/assets/7542054/846c8e20-92a2-4af7-abce-672f4fc5a0c4
🚀 Enhancements

patches: show a button to check out a Radicle Patch's associated git branch

show an indicator on the Patch's title and tooltip if its associated branch is the currently checked-out git branch
keep indicator's state in sync even if the git branch change doesn't happen from within our UI (e.g. rad patch checkout or git checkout in the terminal)
notify user of uncommitted changes when trying to check out a Patch
don't show check-out-button for the currently checked-out Patch on the list

🔥 Performance

app: heavily speed up most procedures by memoizing the resolution of the reference to the rad CLI
patches: heavily speed up (re-)loading of Patches list

measured ~50x faster against a real-world Project with >50 Patches, with the benefit increasing proportionally with the count of Patches on a project

🩹 Fixes

patches: fall back to showing their DID if the revision author's alias isn't defined
patches: use new better-fitting icon for merged Patches
patches: improved the contrast of the colors used by Patch status icons for light themes

📖 Documentation

contributing: document how to package locally from source and import into VS Code
fix some screenshots that were getting stretched to incorrect ratios


Fonstyle and Box-border and background color

I can help to modify the th Fonsstyle , background color and box-border making this editor more visual appealing assign this to me

I would like to work on this.
Would you assign it to me under GSSoC24 extd and hacktoberfest24?
Thank you.

I would like to work on this. Would you assign it to me under GSSoC24 extd and hacktoberfest24? Thank you.

This issue has been assigned.
You can create a new issue

i want to work on this issue


BackendMatplotlibQt has been deleted

HI.
Here is my first tests withs Qt 5.12 / Flint / silx 1.0.0
I have notices this problem sometimes. Reproducible in a very specific context (in CI and on my local computer).
I dont think I will be able to simplify the test to reproduce it.
I think i can't to much on my side.
Here it's sounds like a common asynchronous issue.
Could it be possible to protect __deferredReplot on your side? Or do you have another idea.
_________________________________________________________________________ TestScatterPlot.test_display_nothing __________________________________________________________________________

self = <tests.qt.flint.widgets.test_scatter_plot.TestScatterPlot testMethod=test_display_nothing>

    def tearDown(self):
        self.qapp.processEvents()

        if len(self.__class__._exceptions) > 0:
            messages = "\n".join(self.__class__._exceptions)
>           raise AssertionError("Exception occured in Qt thread:\n" + messages)
E           AssertionError: Exception occured in Qt thread:
E           Traceback (most recent call last):
E             File "/nobackup/lvalls1/valls/Software/miniconda3/envs/blissenv2/lib/python3.7/site-packages/silx/gui/plot/backends/BackendMatplotlib.py", line 1368, in __deferredReplot
E               self.replot()
E             File "/nobackup/lvalls1/valls/Software/miniconda3/envs/blissenv2/lib/python3.7/site-packages/silx/gui/plot/backends/BackendMatplotlib.py", line 1533, in replot
E               self.draw()
E             File "/nobackup/lvalls1/valls/Software/miniconda3/envs/blissenv2/lib/python3.7/site-packages/silx/gui/plot/backends/BackendMatplotlib.py", line 1486, in draw
E               FigureCanvasQTAgg.draw(self)
E             File "/nobackup/lvalls1/valls/Software/miniconda3/envs/blissenv2/lib/python3.7/site-packages/matplotlib/backends/backend_agg.py", line 439, in draw
E               super().draw()
E             File "/nobackup/lvalls1/valls/Software/miniconda3/envs/blissenv2/lib/python3.7/site-packages/matplotlib/backends/backend_qt.py", line 424, in draw
E               self.update()
E           RuntimeError: wrapped C/C++ object of type BackendMatplotlibQt has been deleted

/nobackup/lvalls1/valls/Software/miniconda3/envs/blissenv2/lib/python3.7/site-packages/silx/gui/utils/testutils.py:185: AssertionError

+import weakref

 from silx.gui.utils.testutils import TestCaseQt
 from silx.gui import qt
@@ -97,7 +98,9 @@ class TestScatterPlot(TestCaseQt):
         silxPlot = widget._silxPlot()
         scatters = [o for o in silxPlot.getItems() if isinstance(o, silx_items.Scatter)]
         assert len(scatters) == 1
-        widget.close()
+
+        w = weakref.ref(widget)
+        self.qWaitForDestroy(w)

I have patched it in my test such way.
I think it could be problem only highlighted by the test.
What do you think? In this case feel free to close the issue.

Yes, we can check in __deferrerReplot if the underlying widget still exists in Qt.


Tries to fix tf v2 dependencies

Makes sure to prevent tf v2. install

ok, it works, merging user my ultra super  powers


Add alias PropertyName for VariableNaming rule

Fixes https://github.com/detekt/detekt/issues/7401
This only add PropertyName for VariableNaming rule. Other alias like PrivatePropertyName, ConstPropertyName as these rules of Idea doesn't match one to one with detekt rules

Warnings

:warning:
It looks like this PR contains functional changes without a corresponding test.

  Generated by :no_entry_sign: dangerJS against 752504924ac7ed74ba27f95e284d148be69a56a0


App not re-installed properly on iOS 8/9 Simulators

If you already have old application with name TestApp installed and then you want to test different app, which is also named TestApp the framework will not re-install the app on iOS8/9 Simulators and tests will run against old app.
Notes: Not reproducible for iOS 10 Simulators, Android emulators and devices.

Fixed with https://github.com/NativeScript/functional-tests-core/pull/6


Implement PageAllocation as a handle into a PagedAttentionCache, allowing publishing and releasing an allocation

This passed integration tests locally, but currently CI is wonky.
Deinitialization looks wonky for now. Will test extensively once I merge #600 to get deinit right.

A couple small comments on form, but functionally, this looks great. There are a decent bit of changes in critical areas, so some unit tests might be nice to include before merging


Introduces pause detection

Adds a pause detector thread that sleeps for a defined resolution and records elapsed overage of that sleep time as pause time.
The detector can emit logs with configurable pause time thresholds for INFO/WARN/ERROR
The detector tracks pause time in a Summary and a PeakGauge so that operators can track total pause time, pause distribution, and the maximum pause time per collection interval.

@adrw I moved the logger to a companion object, but the other fields aren't static (log levels derives from config)


[DO NOT MERGE] Update GeometryEngine and ExpandedEnsembleSampler to use SamplerState

I've update the GeometryEngine and the ExpandedEnsembleSampler, but I still need to update some of the GeometryEngine tests. Opening PR now, though.

@pgrinaway : Is this PR still active, or can it be closed?

Marking this as "DO NOT MERGE" so we can pull any needed changes into a new PR.


Add update to Anyone or PIMW

@JohanFreelancer9 Copy editing is needed for this PR. Thanks.

@kaarins PR has been copyedited and is ready for final review, could you please check and merge? Thanks!


Developer Guide: [Bug] Command Summary not updated with Pin, Unpin, Archive, Unarchive Methods

Resolved by #157


Crash when slicing JaggedArray containing a ndarray

Hi,
apparently doing this causes a crash:
ja = awk.JaggedArray.fromiter([[1,1,1],[1,1],[1]])
ja.content = np.random.rand(6, 3)
ja[:,:,0]

AttributeError: 'numpy.ndarray' object has no attribute 'stops'

Would it be possible/meaningful to fix?

It took me a while to realize how you meant this is wrong behavior. You created a JaggedArray with enough depth for two arguments in the selection and passed three arguments, but in between replaced the content with something that has two components. Maybe that should be selectable with three arguments.
To start, let's construct it with less overriding and changing in place so that it's clearer what it's supposed to represent:
ja = awkward.JaggedArray.fromoffsets([0, 3, 5, 6], numpy.random.rand(6, 3))

Then, because it has this depth:
>>> ja
<JaggedArray [[[0.6623816528677222 0.9773054807777773 0.31278929222777496] [0.10441030089484238 0.6138204719319742 0.9389532620630782] [0.8379034030354876 0.1456764458835561 0.2975467699062033]] [[0.5332367305433559 0.8964955372538289 0.4774825611619783] [0.8840862358201883 0.8917755782032071 0.06472614924422693]] [[0.559096636774218 0.5132339153571435 0.46684580254819374]]] at 0x7fe349393be0>

perhaps ja[:, :, 0] ought to work. I'll look into it.
In the meantime, if your array is purely jagged, without mixing jagged dimensions and fixed-width dimensions, it should work already:
>>> ja = awkward.JaggedArray.fromoffsets([0, 3, 5, 6],
...     awkward.JaggedArray.fromcounts(numpy.full(6, 3), numpy.random.rand(6*3)))
>>> ja
<JaggedArray [[[0.40114219223660197 0.7296331548192906 0.5662592253067599] [0.969866745782514 0.42836993008350976 0.04903628969572249] [0.3001053806545957 0.38945506950776054 0.8511773368698144]] [[0.6720071005559757 0.42897526687670506 0.16879400517170984] [0.04744597522432803 0.8004842659000471 0.7877522979370766]] [[0.1959005468117455 0.22863045709219132 0.34651686570482976]]] at 0x7fe33b8f0940>
>>> ja[:, :, 0]
<JaggedArray [[0.40114219223660197 0.969866745782514 0.3001053806545957] [0.6720071005559757 0.04744597522432803] [0.1959005468117455]] at 0x7fe349393be0>

Yes, there's an inefficiency in that a fixed-size dimension shouldn't require a big array full of the number 3 (numpy.full(BIG, 3)), which is why your example should have worked and I'll look into it.

See PR #126.

Awesome! Thanks!


DM-34607: Initial draft

@TallJimbo thanks for the great comments. I applied them all as given so that you would get the credit -- I did see a couple of places where there was a bit of grammar needing fixing but I will do a final read through anyhow. @natelust note that this means there have been some changes to the pipeline section that you are looking at.


[Finishes #104474618] Add ability to update permissions on each user

on the project, workbook and datasource level

Seems fine.

:boom:


feat(repository): Add point-in-time support for Azure

Based off https://github.com/kopia/kopia/pull/1259
$HOME/bin/kopia blob list | wc -l
     303

$HOME/bin/kopia repository connect azure \
... \
--point-in-time=2023-10-13T15:04:05Z

$HOME/bin/kopia blob list | wc -l
     259

Closed in favour of https://github.com/KastenMike/kopia/pull/3


How to translate wish history already exported on another language?

I exported my wish history in Russian and now I need to translate it into English. I can't just delete the files from UserData, change the language of the game, and export the wish history again because there are wishes that I did more than 6 months ago. Please help

There is a way to open the userData directory under the folder of this software. Open the gacha-list-***.json inside, and then use a text editor to batch replace the names of the characters and weapons inside.


How to make changes on the "pg_hba.conf" file for configuring DMS from AWS to Azure Postgre SQL?

I want to configure DMS between AWS Postgre SQL and Azure Postgre SQL, but as mentioned in the document, how do i make changes onto the config file to add the private ip?
Also can we follow the above steps for configuring DMS between AWS Postgre SQL and Azure Postgre SQL Server?

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

ID: 2d35471d-30e6-028d-0404-584a905c7ddb
Version Independent ID: b3f11e14-756b-803d-e6b0-cc091170447e
Content: Tutorial: Use the Azure Database Migration Service to perform an online migration of PostgreSQL to Azure Database for MySQL
Content Source: articles/dms/tutorial-postgresql-azure-postgresql-online.md
Service: dms
GitHub Login: @HJToland3
Microsoft Alias: jtoland

@vidyanambiar11 Can you please share the link to the document which you are referring so that we can assign it to the correct team.

@ketanchawda-MSFT
I have referred the below link
https://docs.microsoft.com/en-us/azure/dms/tutorial-postgresql-azure-postgresql-online

@vidyanambiar11 - I am researching an answer for you now. I will be back with more information as soon as possible!

@HJToland3  Thanks that would be great.

@HJToland3 - Is there any update about the same?

@vidyanambiar11, no response to my query yet, though I asked again just now. I will update this thread as soon as I have detail to share!

@vidyanambiar11, you can use the AWS master user account for the PostgreSQL DB instance as the user account for the PostgreSQL source endpoint for Attunity Replicate. The master user account has the required roles that allow it to set up change data capture (CDC). If you use an account other than the master user account, the account must have the rds_superuser role and the rds_replication role. The rds_replication role grants permissions to manage logical slots and to stream data using logical slots.
To enable logical replication for an RDS PostgreSQL DB instance, do the following:

Create  a new parameter group with the following configuration:
o	Set the rds.logical_replication parameter in your DB parameter group to 1
o	max_wal_senders – the amout of tasks that can run in parallel
o	max_replication_slots – every connection (task) creates a new slot, this parameter configures the amount of connections that we can be established against the DB

Link the RDS instance to the parameter group

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


Get namespace for Metabase

[ ] Respond to Olena's email
[ ] Request name space using self-serve tool

Requesting namespace to:

Reuse enterprise Metabase licenses across applications - RTP and Intake
Separately manage resource usage - takes 2 databases (it's own Petroni set, and its own query string)
Follow best practice established by other teams

Looks like this was done a while ago, I have access to metabase namespace in OpenShift


Refactor state management

To implement state management, I did a fair bit of refactoring and simplification of the code. Main changes include:

Introduces index.jsx as the entry point for the form, to separate mounting the app to the DOM from the UI components. I added a new component ProfileForm for rendering the overall form
Simplified the form components

Introduced two new components ImageSelect and ResouceSelect so we can separate functionality required for image selection only from the more generic resource selection.
Both components are still driven by the config, however the two special image-select cases, select docker image and build new image, are now configured in the front-end to increase clarity in the code. Before the change one was configured and the config, the other in the front-end, which added unnecessary complexity. (I’m open to hear your thoughts on this, I’m aware that I might have limited context here.)
Abstracted converting the config to form choices into useSelectOptions so it can be used across the various form components.

I completely revamped the state management for the app to create a single source of truth that is accessible from all components below the context.

Moved selected profile in SpawnerFormProvider so it’s accessible through out.
I removed the reducer because we only need to track a small number of variables in state, and using a reducer creates unnecessary overhead.

Open questions:

The original solution had a canSubmit flag, presumably as a simple way of form validation. I’d suggest we implement form validation and error messaging as well.

Ty @oliverroick.
I'm OOO rest of the week, but I've invited @batpad to this repo so he should be able to review + merge as appropriate.

The original solution had a canSubmit flag, presumably as a simple way of form validation. I’d suggest we implement form validation and error messaging as well.

Correct, and the jankiness of figuring out 'when should the start button be enabled?' is what made me look for refactoring the state management.

Addressed the feedback from @batpad and added a couple more changes:

Added form validation and error display.
Refactored form-field composition, to reduce boilerplate when adding labels, fields and errors.

@oliverroick - this is looking great and I think we should merge this.
Some minor things:

The validation for the unlisted_choice field is a little bit more complex than just the required flag specified here: https://github.com/yuvipanda/jupyterhub-fancy-profiles/pull/25/files#diff-82d7fc369f3946f980908d92bf977c3ee53c160642218bff4ff7696b9b682f9aR56 - in the profile list configuration a user can specify a validation_regex for the unlisted_choice and we should use that to validate. You can see how we are doing that in the current kubespawner code here: https://github.com/jupyterhub/kubespawner/blob/main/kubespawner/templates/form.html#L41

@yuvipanda had a good point that the ResourcesSelect name should probably be changed to something more generic as ideally we'd want to use that same component for other drop-downs / use selection choices other than just "Resources". However, I'd rather not get into cleaning up naming in this PR, so let's just make a point to discuss "naming things" soon and we can make a separate PR to name things more appropriately.

The UI for the "Build Your Own Image" looks broken, but am guessing this is not really a regression + that feature needs a bunch of work anyway, so I wouldn't worry about it too much.

The validation / error messaging and all the state management clean-ups are looking really great to me! Let's discuss and if it helps to move things forward, let's merge this, else we can wait for @yuvipanda to be back next week and see if he has any comments.

@oliverroick noticed the prettier check failed on the last commit :( - sorry, could you fix that and let's merge this. Thanks!


Typo fix and added colons before code

Minor suggestions.

@ZviBaratz did you check if we are consistent with this in the tutorials? I would say it's better to be consistent and "wrong" with the missing :, than inconsistent ... so if we vote for the : we should change our "standard" in all tutorials
thoughts @drammock ?
thx @ZviBaratz

@agramfort right, my bad – it seems most tutorials alternate between periods and nothing. I saw the colon in the first part (line 30), which personally looks better to me, and assumed the rest to be missing. I think in terms of this PR, it's probably best to just fix the typo and conform by removing the colon in the first part.
If, however, you decide to add colons in phrases introducing code blocks, I'd be happy to help with that.

Thanks @ZviBaratz !


Package Built Error

I am trying to build unitree_ros package but no success. Here are the steps I followed for the installations:
sudo apt install libboost-all-dev
sudo apt install liblcm-dev
sudo apt install cmake
sudo apt-get install ros-melodic-controller-interface  ros-melodic-gazebo-ros-control ros-melodic-joint-state-controller ros-melodic-effort-controllers ros-melodic-joint-trajectory-controller
Now I believe all the dependencies would have been installed to latest stable release.
Now I exactly followed the same procedure as in the Readme:

To build unitree_legged_sdk

git clone https://github.com/unitreerobotics/unitree_legged_sdk
cd unitree_legged_sdk
mkdir build
cd build
cmake ..
make

To build aliengo sdk:

git clone https://github.com/unitreerobotics/aliengo_sdk
cd aliengo_sdk
mkdir build
cd build
cmake ..
make

Creating Catkin_ws and adding unitree_ros

mkdir -p catkin_ws/src
cd catkin_ws/src
git clone https://github.com/unitreerobotics/unitree_ros
cd ..
catkin build

Now all of the below environment variable and source commands exist in  .bashrc
source /opt/ros/melodic/setup.bash
source /usr/share/gazebo-9/setup.sh
source ~/catkin_ws/devel/setup.bash
export ROS_PACKAGE_PATH=~/catkin_ws:${ROS_PACKAGE_PATH}
export GAZEBO_PLUGIN_PATH=~/catkin_ws/devel/lib:${GAZEBO_PLUGIN_PATH}
export LD_LIBRARY_PATH=~/catkin_ws/devel/lib:${LD_LIBRARY_PATH}
export UNITREE_LEGGED_SDK_PATH=~/unitree_legged_sdk
export ALIENGO_SDK_PATH=~/aliengo_sdk
export UNITREE_PLATFORM="amd64"

After the build, unitree_legged_real package is not build giving the error:

make[2]: *** No rule to make target 'CMakeFiles/lcm_server_3_1.dir/build'.  Stop.
make[1]: *** [CMakeFiles/lcm_server_3_1.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: *** No rule to make target 'CMakeFiles/lcm_server_3_2.dir/build'.  Stop.
make[1]: *** [CMakeFiles/lcm_server_3_2.dir/all] Error 2
/home/mbs/catkin_ws/src/unitree_ros/unitree_legged_real/src/exe/walk_mode.cpp:13:10: fatal error: unitree_legged_sdk/unitree_legged_sdk.h: No such file or directory
 #include "unitree_legged_sdk/unitree_legged_sdk.h"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/walk_lcm.dir/src/exe/walk_mode.cpp.o] Error 1
make[1]: *** [CMakeFiles/walk_lcm.dir/all] Error 2
/home/mbs/catkin_ws/src/unitree_ros/unitree_legged_real/src/exe/velocity_mode.cpp:13:10: fatal error: unitree_legged_sdk/unitree_legged_sdk.h: No such file or directory
 #include "unitree_legged_sdk/unitree_legged_sdk.h"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/velocity_lcm.dir/src/exe/velocity_mode.cpp.o] Error 1
make[1]: *** [CMakeFiles/velocity_lcm.dir/all] Error 2
/home/mbs/catkin_ws/src/unitree_ros/unitree_legged_real/src/exe/torque_mode.cpp:12:10: fatal error: unitree_legged_sdk/unitree_legged_sdk.h: No such file or directory
 #include "unitree_legged_sdk/unitree_legged_sdk.h"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/torque_lcm.dir/src/exe/torque_mode.cpp.o] Error 1
make[1]: *** [CMakeFiles/torque_lcm.dir/all] Error 2
/home/mbs/catkin_ws/src/unitree_ros/unitree_legged_real/src/exe/position_mode.cpp:13:10: fatal error: unitree_legged_sdk/unitree_legged_sdk.h: No such file or directory
 #include "unitree_legged_sdk/unitree_legged_sdk.h"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/position_lcm.dir/src/exe/position_mode.cpp.o] Error 1
make[1]: *** [CMakeFiles/position_lcm.dir/all] Error 2
make: *** [all] Error 2
cd /home/mbs/catkin_ws/build/unitree_legged_real; catkin build --get-env unitree_legged_real | catkin env -si  /usr/bin/make --jobserver-fds=6,7 -j; cd -

All the environment variables are correctly set but still it is not able to find unitree_legged_sdk.
rosPC:~$ printenv | grep "UNITREE"
UNITREE_PLATFORM=amd64
UNITREE_LEGGED_SDK_PATH=/home/mbs/unitree_legged_sdk

Is there anything which I am missing or something else needs to be done?
Any leads/help will highly be appreciated.

Hello, how do you solve your problem, I come up with the same problem?

Hello, how do you solve your problem, I come up with the same problem?

Hi
I was able to solve the problem by unintsalling everything and than again installing respective versions.

Hi
I was able to solve the problem by unintsalling everything and than again installing respective versions.

Hello, sorry to interrupt, but may I ask the version of gazebo you used? Is it gazebo8 or other version? I have already built the package but when I followed the demo and rosrun unitree_controller unitree_servo. Nothing just happened. I am using ros melodic + gazebo9(It seems that ubuntu18.04 does not support gazebo8 but melodic requires 18.04?)

Hello, sorry to interrupt, but may I ask the version of gazebo you used? Is it gazebo8 or other version? I have already built the package but when I followed the demo and rosrun unitree_controller unitree_servo. Nothing just happened. I am using ros melodic + gazebo9(It seems that ubuntu18.04 does not support gazebo8 but melodic requires 18.04?)

Well yes you are right that's the problem for Gazebo version. You can just path of Gazebo9 when setting up the environment variables. I tested with this and everything intended shown up.

Well yes you are right that's the problem for Gazebo version. You can just path of Gazebo9 when setting up the environment variables. I tested with this and everything intended shown up.

Thank you, I could open up the world, however, when I rosrun unitree_controller unitree_servo, the robot could not stand up as expected, and it said that "Controller Spawner couldn't find the expected controller_manager ROS interface." I doubted that it was because the version of the gazebo is not right?

I don't think so that for me it worked well. Can you please suggest a screenshot or log for your commands you run.

Thank you for replying！The problem I come up with was when I run "roslaunch unitree_gazebo normal.launch rname:=a1 wname:=stairs", the robot and the stair could show up as shown in the following figure:

however, it said:
"[WARN] [1612175390.412604, 0.000000]: Controller Spawner couldn't find the expected controller_manager ROS interface.
[a1_gazebo/controller_spawner-5] process has finished cleanly
"
Then I run "rosservice list | grep controller_manager", it had the output which seemed ok:

Then I checked the namespace of the launch file and the xacro file, the namespace of the controller_manager and the spawner was quite the same:

But it still said"Controller Spawner couldn't find the expected controller_manager ROS interface.
"
And I am confused about how to fix it. Thank you!

By the way，may I have a look at your bashrc of the relative settings， thank you

I have solved the problem, the uri of the stairs.world was wrong, sorry to interrupt, and thank you!


Get confused of why Llama example can run on win10

Hi,
I get a machine with Intel Core Ultra5 cpu and Win10 OS
Event though I know that installation of NPU driver is only supported by win11 or ubuntu22.0.4 now, I still make a try to the provided Llama example using intel_npu_accleration_library.
Suprisingly, the example works fine although the token generating speed is slow.
I am wondering if NPU in this case is actually activated or is it simply run on CPU?
( There is no NPU monitor in win10 which allows me to check if NPU is actually activated. For another example, an error message would occur while running a cuda program on the PC without NVIDA's GPU, telling me that NVIDIA's GPU is not worked or supported in the PC.)
Any suggestion or reply is appreciated!

is it simply run on CPU?
Yes you are right,  still workable but very slow though.

is it simply run on CPU?
Yes you are right,  still workable but very slow though.

So this library is flexible to run on different machines.
Btw. Is there any state variable I can check that current model is on CPU or NPU?

If you do not have a NPU or the NPU driver, the library fallback to CPU (using OV CPU device) This is not very fast but it is very handy for Github actions CI/CD. Yes there are a bunch of functions like npu_available() doc and  get_driver_version() doc
Let me know if you have in mind different API to understand where each layer of a model get implemented. I'm working on an extension of the compile method to allows more freedom to the users so any feedback in that sense is really appreciated

If you do not have a NPU or the NPU driver, the library fallback to CPU (using OV CPU device) This is not very fast but it is very handy for Github actions CI/CD. Yes there are a bunch of functions like npu_available() doc and get_driver_version() doc
Let me know if you have in mind different API to understand where each layer of a model get implemented. I'm working on an extension of the compile method to allows more freedom to the users so any feedback in that sense is really appreciated

The functions are exactly what I want and it works fine!
The document is great
I'll try to upgrade my OS and driver to harness the NPU computation power
Really appreciate for your help!


[BEAM-2005, BEAM-2030, BEAM-2031, BEAM-2032, BEAM-2033, BEAM-2070] Base implementation of HadoopFileSystem.

TODO:

Add multiplexing FileSystem that is able to route requests based upon the base URI when configured for multiple file systems.
Take a look at copy/rename again to see if we can do better than moving all the bytes through the local machine.

Be sure to do all of the following to help us incorporate your contribution
quickly and easily:

[x] Make sure the PR title is formatted like:
[BEAM-<Jira issue #>] Description of pull request
[ ] Make sure tests pass via mvn clean verify. (Even better, enable
Travis-CI on your fork and ensure the whole test matrix passes).
[x] Replace <Jira issue #> in the title with the actual Jira issue
number, if there is one.
[x] If this contribution is large, please file an Apache
Individual Contributor License Agreement.

R: @davorbonaci @dhalperi

retest this please

retest this please

Coverage increased (+0.003%) to 69.698% when pulling fc9a9d2e73ed3ae12ec5050c6399da46a3a26ff0 on lukecwik:hdfs into 8cc4d59c2f617746228ae71f7c9b3606ab41d4aa on apache:master.

Awesome, I'm testing/reviewing, thanks !

Coverage increased (+0.001%) to 69.695% when pulling 75bc736a31b4ae9c4f0f5c19b59c4bd4469fb4cd on lukecwik:hdfs into 8cc4d59c2f617746228ae71f7c9b3606ab41d4aa on apache:master.

@jbonofre
You can only test with sources for now until FileBasedSink is updated to use FileSystems (#2779)

The TODOs I listed I mean to implement in follow up PRs and would like to get this reviewed and merged just in case people thought more was coming.

High-level LGTM from me. It works on my machine using DFS, which is a direct improvement over existing state. Fine-tuning and perf work to be done, but in later PRs.
Of course if knowledgeable folks like JB and Holden are taking a look, should wait a small amount for feedback. Honestly tho, most non-glaring-error changes can be addressed after.

@holdenk @jbonofre Any additional comments (if no comments, please say no comments and I'll merge early otherwise will wait for 24 hours and then merge if no comments)

LGTM - my comment was just an  informational request not intended to get in the way.

@jbonofre @holdenk Wanted to give you two an opportunity and thanks for following up, merging now


Support NoSQL databases in generator

It would be awesome if, in the generator, you could specify an optional arg that let you generate for a NoSQL database (like Mongoid). So instead of creating a database migration, it would just add the appropriate fields to the model file.

I override some methods in my model and this work with mongoid. BTW: i use standard attr_encrypted(not fork).
def encrypted_otp_secret=(value)     self.write_attribute(:encrypted_otp_secret, value.force_encoding("ISO-8859-1").encode("UTF-8"))   end
def encrypted_otp_secret     if self.read_attribute(:encrypted_otp_secret).nil?       super     else       self.read_attribute(:encrypted_otp_secret).encode("ISO-8859-1").force_encoding('ASCII-8BIT')     end   end

Is there a solution for this? It does not work with mongoid (5.1.6).... I tried everything from here, still receiving nil...

@JIucToyxuu can you explain it bit more. probably with gist ?

@QuinnWilton any update on this issue ?

I have an error coming from devise_two_factor/models/two_factor_authenticatable.rb:10: undefined method encrypts
Do you know how to get this right?

I've run into the same problem but cannot offer you a solution other than suggesting you stick to v4.1.1.
The upgrade to v5.0.0 made devise-two-factor rely on active record's encrypts method.  This was intentional as it's explicitly mentioned in the repo's README ("Devise-Two-Factor uses ActiveRecord encrypted attributes")
tl;dr v5.0.0 adds activerecord as an undeclared dependency, making it incompatible with any app that uses a NoSQL solution like mongoid over activerecord.


Fixed typos in SmartLLMChain ideation and critique prompts

Noticed and fixed a few typos in the SmartLLMChain default ideation and critique prompts

thanks @Mattt394!


Add support for custom type

Is the support for UDT added to Achilles? As I wasn't able to find it anywhere in the documentation. Right now we are forced to use @Json to store custom types.

When UDT support is coming in Achilles ?

It will be supported in Achilles 4, I'm working on version 4 right now

Hi @doanduyhai , any update on UDT?

Hi @doanduyhai, do you have any plan to support this feature ?

Will be supported in Achilles 4.
Achilles 4 status is Work In Progress, do not expect any release before September/October since it's a major rewrite of the framework.
In the meantime, you can use TypedQuery  or  NativeQuery if working with UDT

Hi @doanduyhai, do you have any update on this feature ?

Achilles 4 will support UDT out of the box. The development is 95% done, I
just need to document the code, update the general documents, add some
integration tests. Due to the Cassandra Summit this week the development
has been slowed down but expect a first release beginning of October
Le 23 sept. 2015 09:46, "amorillotraxens"<EMAIL_ADDRESS>a
écrit :

Hi @doanduyhai https://github.com/doanduyhai, do you have any update on
this feature ?
—
Reply to this email directly or view it on GitHub
https://github.com/doanduyhai/Achilles/issues/47#issuecomment-142521279.

Hi @doanduyhai, do you have any release date for Achilles 4 ?

I'm writing the documentation right now. The dev is finished. Sorry for the
delay. The release should be done in a few days
On Tue, Oct 27, 2015 at 3:47 PM, amorillotraxens<EMAIL_ADDRESS>wrote:

Hi @doanduyhai https://github.com/doanduyhai, do you have any release
date for Achilles 4 ?
—
Reply to this email directly or view it on GitHub
https://github.com/doanduyhai/Achilles/issues/47#issuecomment-151525784.

Fixed in Achilles 4.0.0


No Custom Library Locations

Marked as still in development, just thought it would be beneficial to have here.
Feel free to close if you don't want the clutter.

Good feedback.
Because many have a need for this, I will likely implement this feature at the same time as external storage support lands.

@z0oinks I've pushed this change to the newui branch, so it should appear in the next snapshot I release. Sorry for the delay.


error on snap store install on ubuntu 20.04

Hi,  I just tried installing Flutter Folio from the snap store on Ubuntu 20.04 and got this message after trying to launch from the command line:
** (flutter_folio:670521): WARNING **: 09:43:36.454: Failed to register: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Connection ":1.869" is not allowed to own the service "com.gskinner.flutter_folio" due to AppArmor policy

Same issue on Ubuntu 21.04:
sudo snap install flutter-folio
flutter-folio

** (flutter_folio:74650): WARNING **: 10:32:58.648: Failed to register: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Connection ":1.1021" is not allowed to own the service "com.gskinner.flutter_folio" due to AppArmor policy

same error on 22.04

same error also 22.04

Same here. Just downloaded the example app and got this error. Doesn't really makes me want to start with Flutter :sweat_smile:

Do this according to post on lxc forum  [1] , ubuntu need make this smoother
sudo ln -s /var/lib/snapd/apparmor/profiles/snap.flutter-folio.flutter-folio /etc/apparmor.d/
sudo apt install apparmor-utils
sudo aa-complain snap.flutter-folio.flutter-folio
flutter-folio

[1] https://discuss.linuxcontainers.org/t/gdbus-error-org-freedesktop-dbus-error-accessdenied-failed-to-query-apparmor-policy-permission-denied-tasksel-apt-get-failed-100/10154/6

That worked.

Do this according to post on lxc forum [1] , ubuntu need make this smoother
sudo ln -s /var/lib/snapd/apparmor/profiles/snap.flutter-folio.flutter-folio /etc/apparmor.d/
sudo apt install apparmor-utils
sudo aa-complain snap.flutter-folio.flutter-folio
flutter-folio

[1] https://discuss.linuxcontainers.org/t/gdbus-error-org-freedesktop-dbus-error-accessdenied-failed-to-query-apparmor-policy-permission-denied-tasksel-apt-get-failed-100/10154/6

All I get after following this then trying to run flutter-folio is this..

Same BadAlloc error here, 10 month later.


Fixed duplicate invoice & payment mailer issue

What changed:
Added a flag in invoice and payment mailer to prevent duplicate mails

@prasanthchaduvula I have fixed the merge conflicts

@prasanthchaduvula This will be tested on staging.


Remove launchjob files during uninstall, even if they are not loaded

This fixes the original implementation in #8523 to correctly remove user launchjob files, and to do so even when the jobs have not been loaded.
Fixes #14728

Looks fine to me. We should cut a release after this is in (there were other small fixes in the meantime as well)

Are you cutting the new release, or do you want me to do it?

Took care of it myself.


iOS does not receiving transaction when open from terminated state

Does someone encounter this problem on iOS? Reproduce step:

Connect wallet app to dApp
Kill wallet app
Request transaction from dApp
Open wallet app
-> some time eth_sendTransaction work, some time does not! And only happen on iOS.

I will share my steps in order to establish a better connection on iOS next week. Stay tuned

@RootSoft  where are the steps?

@tungtd95 @AmjadKhan2k18 We'd be happy to look into this for you
kindly file a support ticket below
https://forms.gle/FhSmn4AznQtZcruX8


Dehitlerfy logo

The logo bears a bit strong resemblance to a certain dictator for my taste.
Therefore I am offering this change.
Feel free to disregard.

Comparison of the original (left) and the updated logo (on the right).
The original logo features a broken light bulb, however the top right part is supposed to appear broken, but with it's white outline seems to create the shape of an undercut with longer front hair combed to the side. The stylized wires of the light bulb are drawn as a wavy line in the middle with pointy tips left and right that appear to form a mustache.
The updated logo on the right change the broken part to a more glass-like semi-transparent color, and add two additional support wires,  both countering the impression.

I honestly could not see it when I did it but now that you mentioned it I can't unsee and it needs to be burned.
This has definitely been the weirdest pull request I have ever gotten but in a good way.
Truly appreciate the work you went through, if you are ever in Berlin I'll buy you coffee ☕

Happy to help! I'm looking forward pinging you ... "Remember the one time, when I dehitlerfied your logo?"


Flexible memory layout for GPU

This implements the plan in #195 -- preliminary tests show 4.5x GPU speedup on A100 relative to previous memory layout -- finally matching Mac M1 performance.
Also includes full data parallel support so the GPU (and CPU) can use the same weights to process N input patterns at a time in parallel, which should enable significant GPU speedup even on smaller models.  This part still needs significantly more testing and updated examples to use it, and the global memory impl to make it work with PVLV / BOA stuff.

Here's the list of parameter renames -- have been applied to all examples models:
+ Layer.Act. -> Layer.Acts.
+ Layer.Acts.GABAB. -> Layer.Acts.GabaB.
+ Layer.Acts.Spike. -> Layer.Acts.Spikes.
+ Layer.Acts.Attn. -> Layer.Acts.AttnMod.
+ Layer.Learn.CaLrn. -> Layer.Learn.CaLearn.
also, this will be version 1.8.0 due to incompatibilities.


00-azure-swap.cfg is incorrect

In the doc, the 00-azure-swap.cfg contains such config:
  - ["ephemeral0.2", "none", "swap", "sw", "0", "0"]
It should be:
  - ["ephemeral0.2", "none", "swap", "sw,nofail,x-systemd.requires=cloud-init.service", "0", "0"]
Please help to correct this part. Thanks!

The doc https://docs.microsoft.com/en-us/azure/virtual-machines/linux/cloudinit-configure-swapfile is correct.

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

ID: 48bab424-986d-9922-ec2d-942508081367
Version Independent ID: 6e9b3ebd-0571-357e-0fde-ef434a728a24
Content: Create and upload a Red Hat Enterprise Linux VHD for use in Azure - Azure Virtual Machines
Content Source: articles/virtual-machines/linux/redhat-create-upload-vhd.md
Service: virtual-machines
Sub-service: redhat
GitHub Login: @danielsollondon
Microsoft Alias: danis

@yuxisun1217 Thank you for the feedback.We will work on it and will keep you updated on the thread

@yuxisun1217 The document is updated and changes will go live soon.


where did the value of 128 d dimensional array comes from ?

face_recognition version: latest
Python version:3.6
Operating System: Ubuntu 20

i just  wanna ask where did the value of 128 d dimensional array comes from ? is it the vector value from HOG feature descriptor or something else ? thank you in advance

I think I can help with this since I worked with dlib before.  The 128D vector is the outputted feature vector from a ResNet DNN.
Follow this link to see an example of dlib's facial recognition.  You'll see that anet_type is the DNN template that is later initialized as net and takes in the processed faces as a parameter.  This then outputs the 128D vector called face_descriptors.
The specific model that's being used is the dlib_face_recognition_resnet_model_v1.
I hope this was helpful.  Let me know if you have other questions or if I missed something.


Characters in README cause install problem on Windows

Doing pip install . on Windows 10 (python 3.9), I receive
UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 435: character maps to <undefined>
The stack trace gave few clues to where the error was, but after googling, I found out that the README file was the culprit and i simply had to remove the lines containing thick braces [] under "Updates!!". Then I could install.
So I'd like to propose a nicer (Windows-friendly?) kind of character set for the README.

Did this pr #274  fix this issue already?

Yes, thanks!


Odd error message from delegateEvents

If you attempt to do something like this:
function btnClick(){
console.log(':(');
//BTW I DO exist
}
var v = Backbone.View.extend({
el : "#page",
events : {"click .btn" : btnClick}
});
You will get this error:
line :958 of backbone-0.5.3.js
Uncaught Error: Event "function btnClick(){
console.log(':(');
//BTW I DO exist
}" does not exist
This commit addresses this.

@jashkenas But Backbone documentations states that:
The callback may be either the name of a method on the view, or a direct function body.
Where is the truth? )
And I would disagree that it is useless functionality...

It's been changed for the 0.9.0 release -- you can now put direct function references in. It won't be the preferred style, but you can do it if you like.

Thanks for info,
Making events a function in parent class makes it hard to mixin with subclass events. After making some sampling I would agree that function in events is too rough approach.


New package: ReportAllocations v0.1.0

Registering package: ReportAllocations
Repository: https://github.com/CliMA/ReportAllocations.jl
Created by: @charleskawczynski
Version: v0.1.0
Commit: 8345e7e5a5062af61f374d9bc287be46a7038544
Reviewed by: @charleskawczynski
Reference: https://github.com/CliMA/ReportAllocations.jl/commit/8345e7e5a5062af61f374d9bc287be46a7038544#commitcomment-63909423
Description: A package for reporting memory allocations

We're going to change the package name, so okay to close.


Remove the need of reflection of p2p message (de)serialization

Reflection makes code stripping impossible and that's an impediment for fully supporting AOT.
This PR is a first step in the removal of reflection and here we start from removing it from the peer-to-peer message serialization/deserialization.
Note: sorry for the eol change in NBitcoin/Protocol/Payloads/AddrPayload.cs, the truth is that NBitcoin has a problem of inconsistency where half of the files are CRLF while the other half are LF so, it is always painful for any contributor.

Ping @NicolasDorier

I reordered the messages based on my experience but I have no numbers to tell me which messages are more frequent.


Enable (experimental) single file components

This change adds an experimental module,
ViewComponent::InlineTemplate that allows you to define your templates using a basic DSL directly within your component. This eliminates the need for sidecar templates.
This is what it looks like:
class MyComponent < ApplicationComponent
  include ViewComponent::InlineTemplate

  template! <<~ERB

Hello, <%= @name %>!

  ERB

  def initialize(name:)
    @name = name
  end
end

This results in component being "self-contained", in that a single file can represent the entire component. This makes it easier to understand a component and requires less jumping around between files. This also has benefits like enabling the following, which feels closely related to our multi-template efforts:
(this is not implemented, just an example of what this functionality can enable)
class MyComponent < ApplicationComponent
  include ViewComponent::InlineTemplate

  template! <<~ERB

Hello, <%= @name %>!

      <% post.each do.%>
        <%= render_row(post) %>
      <% end %>

  ERB

  fragment! :row, -> (post) {
    <<~ERB

      <%= post.title %>
      <%= post.body %>

    ERB
  }

  def initialize(name:)
    @name = name
  end

  def posts
    Post.all
  end
end

eliminates the need for sidecar templates

What do you mean by a sidecar template? Just "the .html.erb file with the same name as the component .rb file in the same directory"?

What do you mean by a sidecar template? Just "the .html.erb file with the same name as the component .rb file in the same directory"?

Yep, exactly.

@fsateler would this satisfy your requirements for multiple templates?

If fragment is implemented, yes. I will probably end up doing fragment :foo, File.read(_dir_ + '/foo.html.erb') anyway though.

@fsateler would this satisfy your requirements for multiple templates?

If fragment is implemented, with arguments, yes. I will probably end up doing fragment :foo, File.read(_dir_ + '/foo.html.erb') anyway though.
Although it seems to me this is punting on the difficult part, which is the arguments. The (not implemented) example would have a lambda taking an argument that returns an ERB string, how would that get turned into def render_foo(post)? Invoke the lambda passing nil as argument? what if the user tries to use the arguments directly in the template (as in string interpolation: "#{post.name}"). ?

@fsateler What if we used the arguments approach from your PR, including them in the heredoc?

I don't think the initial PR should support fragment!, but I think we have a few ways that we could potentially support arguments. Ideally I'd like to keep it really simple and use Ruby primitives, but if we can't achieve that we can always make some compromises to keep it simple but functional. e.g.
  fragment! :row, accepts: [:post], <<~ERB

      <%= post.title %>
      <%= post.body %>

    ERB

We could take the accepts array and use that to build the build_row parameters definition e.g. def render_row(post:). I was hoping we could use Proc#parameters in the original example, but it (sadly) omits default argument values.

@fsateler @BlakeWilliams why not use the Strict Locals syntax here? It's a solved problem 😄

It has just occurred to me, will this give proper line numbers in stack traces?

It has just occurred to me, will this give proper line numbers in stack traces?

As-is no, it's something I need to write a test for, but it's definitely doable.

I just marked this as ready for review. It's pretty minimal, but I think it covers the basics needed to start experimenting with inline templates.
We chatted a bit about fragments, but I want to keep that separate from this PR since that solve a separate problem and might require a lot more back-and-forth discussion. I'll tackle that in a follow-up PR assuming this PR gets a 👍.
Happy to hear thoughts and feedback on this approach and discuss any specific points folks make.

if you plan on adding some docs already, or wait until it's no longer experimental

I was thinking about passing on documentation for the first round, then fill it in once it's been tried out for real in a few spots.

what's the rationale behind using bang methods for template! and template_engine!? preventing collision with existing user methods? just shouting at the component? 😆

Honestly, no real solid reason. I thought it would be nice to signal "this is happening only once!" but happy to change it if folks feel strongly.

if we should warn/raise when calling template! or template_engine! multiple times in a component

Good call. I think that will be easy to implement for template!, I can add that.

Thanks for this! I think this will be really nice for tiny little components.

Oooh, I really like this! Thanks for keeping DX improvements like this coming!


Extension currently down because of Insight server no longer available.

All funds are safe and tied to your private key stored locally on your machine.

December 2022 Update.  We have migrated the code to use Electrum SPV servers instead of Insight Server.
Final testing underway.

Version 2.10.0 released on Google Web Store. https://chrome.google.com/webstore/detail/auroracoin-browser-wallet/ibbbddhliiimfdpadncmdnbhgagplagk?hl=en&authuser=0
All functionality restored.  Added transaction_id link when sending coins. Some UI changes


Enable the arty a7 100T board

With the availability of the artix 100T device, we can enable tests on the arty a7 board as well.
This translates into:

adding the arty_a7-100T board specification
adding constraint files to the existing tests

@wtatarski -- What is the status here? Do we have a pending pull request? Which designs will the a100t be enabled on?

@mithro
Yes. The PR is #254
Actually @acomodi  works on it now.


The return value of [Bug Report] Select Events remove-tag is not tag, and returns a Vue component bug

Element UI version
2.0.9
OS/Browsers version
win 10 / chrome v61
Vue version
2.5.13
Reproduction Link
https://jsfiddle.net/61x6dd8t/
Steps to reproduce
multiple模式下选中多个tag之后，点击删除，触发 remove-tag事件返回的不是tag值，而是一个vue组件
What is Expected?
返回一个tag对应的value
What is actually happening?
返回一个vue组件

Fixed in https://github.com/ElemeFE/element/pull/9090


Copy-DbaAgentAlert - skipps alerts when no severity specified

Bug Report
We have a lot of Alerts with definition by error number not severity. If you try to copy any of these alerts to another server will get error:
Alert [Error xxxxx] has already been defined to use the severity 0. Skipping.
General Troubleshooting steps

[x] Verified running latest release of dbatools?
[x] Verified errors are not related to permissions?
[x] Can duplicate in new/fresh PowerShell.exe session?

Version Information

Operating System (Name|Version): Windows 10
PowerShell Version: 5.1
SQL Server (Edition|Version): Source 2008 R2, Target 2016 SP1 CU3

Steps to Reproduce
[development +0 ~0 -0]> Copy-DbaAgentAlert -Source srv-sqlxxxx -Destination srv-sql-xxxx

Problem to solve
Have ability to copy alerts with defined alert number not severity

Just so we can improve the test around the command, could provide a scripted alert that you found had the issue?
Also to make sure I'm clear on what you mean.
Sent from my Verizon SM-G900V using FastHub

Those two bellow are very good examples
EXEC msdb.dbo.sp_add_alert @name=N'Error 5572',
		@message_id=5572,
		@severity=0,
		@enabled=1,
		@delay_between_responses=0,
		@include_event_description_in=1,
		@category_name=N'Agent Alerts Sev 23',
		@job_id=N'00000000-0000-0000-0000-000000000000'
GO

EXEC msdb.dbo.sp_add_alert @name=N'Error 3452',
		@message_id=3452,
		@severity=0,
		@enabled=1,
		@delay_between_responses=0,
		@include_event_description_in=1,
		@category_name=N'Agent Alerts Sev 10',
		@job_id=N'00000000-0000-0000-0000-000000000000'
GO

Thank you @wsmelton!

I believe this has been fixed at some point. Please let me know if you continue to have issues. I successfully copied.


TiVo Bolt doesn't see WimTiVoServer

the Bolt doesn't appear to send out beacons. It may use Bonjour somehow

Getting mDNS working properly fixed this issue. see https://github.com/wcbonner/WimTiVoServer/commit/436f854b82438af9e9bbd2cff71d9b9fdda9e0b0 and the other issue for the solution. https://github.com/wcbonner/WimTiVoServer/issues/2


adding new script to delete stale OVN SNATs. Bug OCPBUGS-1520

This is a simple script for a temporary workaround to check and delete possible stale NAT entries in the OVN NBDB.
Regarding bug OCPBUGS-1520

/cc

/assign @npinaeva @martinkennelly

@acostamanowarrior  If possible, could you please squash the commits in a single one? Would make the review easier. :)

@acostamanowarrior could you please also add some comments about what each function does, e.g. what is gets as input, and what is the expected output, maybe some details about not obvious strings parsing

@npinaeva made a new commit with some updates on the files with respective comments

/remove-lifecycle stale

/remove-lifecycle rotten

/remove-lifecycle stale

/retest

Can we move this forward? It would be sad if this gets stuck forever.
@acostamanowarrior on your side it seems it is pending to squash all the commits in one as @dougsland asked.
This would be also pending on @npinaeva to provide feedback about the comments added by @acostamanowarrior at his latest commit.

Can we move this forward? It would be sad if this gets stuck forever.
@acostamanowarrior on your side it seems it is pending to squash all the commits in one as @dougsland asked.
This would be also pending on @npinaeva to provide feedback about the comments added by @acostamanowarrior at his latest commit.

@palonsoro  I tried at that time doing it but after multiple tries and searches I couldn't find a way to do that commit squash.

@acostamanowarrior try something like this (https://garrytrinder.github.io/2020/03/squashing-commits-using-interactive-rebase) plus a git push --force .

Note that SDN team is busy with 4.14 feature work till end of this month. We will come back to reviewing this afterwards.


Reusable stale issue workflow

Description

Migrates stale.yml workflow into reusable _stale.yml base workflow (pinned to @main)
Ports core functionality from existing workflow, while adding inputs to maximize flexibility
Allows project maintainers to override default inputs (custom labels, stale intervals) and define custom workflow triggers (cron schedule, manual dispatch)
Maintainers can either pin the workflow to the main branch to always receive the latest workflow updates, or freeze to a specific commit hash for extra stability
See https://github.com/openclarity/kubeclarity/pull/469 for companion PR which demonstrates how workflow inheritance can be adopted by other openclarity projects

Type of Change
[ ] Bug Fix
[ ] New Feature
[ ] Breaking Change
[x] Refactor
[ ] Documentation
[ ] Other (please describe)

Looks great! Don't we want to still have a stale workflow for .github?

Looks great! Don't we want to still have a stale workflow for .github?

We should probably have that, yeah! Just pushed one up (stale-check.yml) if you want to have a look.


Adonis Redis Implementation

Error (500) select * from "users" - SQLITE_ERROR: no such table: users

When trying to set key values to Redis.
First error was because it needed sqlite3 dependencies. Why does redis need sqlite3?
After installing sqlite3 with npm, it throws a query error (???).
Followed the simple example available in the documentation

Code?

@thetutlage just following the docs on a completely new project.
Basic Controller
'use strict'

const Redis = use('Redis')
const User = use('App/Model/User')

class UserController {
  * index (request, response) {
    //const cachedUsers = yield Redis.get('users')
    // if (cachedUsers) {
    //   response.json(JSON.parse(cachedUsers))
    //   return
    // }

    const users = yield User.all()
    yield Redis.set('users', 'hello world')
    response.json(users)
  }
}

module.exports = UserController

There is a query made by User model, which is supposed to hit the active SQL table

Ahh yes. I need to focus.
yield Redis.set('users', 'hello world2')
    response.send('done');


Repr implementation should eval

All builtin types have a __repr__ implementation that can be fed to eval to obtain the original Python value. This is on purpose. frozendict and OrderedFrozendict simply being an immutable version of builtin types should also support this behavior. One simply need to slightly modify the __repr__ implementation.
def __repr__(self):
        return '%s(%r)' % (self.__class__.__name__, self._dict)

This parallels frozenset's __repr__.

eval is evil...

@Marco-Sulla agree, but sometimes it can be handy, not sure about this case though.


Create a new priority scoring consumable resource

Adds a new consumable resource that can collect data from other systems and then score the data to decide whether a job should launch.
Jira ticket:

[x] Includes a change file
[X] Updates developer documentation

Okay. I think the deletion is complete now.

Fixed all the concerns.


Fix empty-choice-indentation bug

Reported by a user on discord, having an empty choice before an indentation change would incorreclty calculate the amount of end branches needed.
Example timeline of failure:
if {RedWandCount} > 0 or {BlueWandCount} > 0 or {GreenWandCount} > 0:
	The pedestal is empty.
	- Place red wand [if {RedWandCount} > 0][else="hide"]
	- Place blue wand [if {BlueWandCount} > 0][else="hide"]
	- Place green wand [if {GreenWandCount} > 0][else="hide"]
else:
	The pedestal is empty and you can't do anything about it.
The end
[end_timeline]

Would fail previously, but now works.

Thanks!


asynchronously create PRs

The PR creation process requires gathering a significant amount of metadata which is IO heavy. Rather than wait for that to finish, we can pop that in a thread and continue on with the next updates.
Testing locally against dependabot-core this lead to a 30% reduction in the job runtime, but it's very dependent on if there's a lot of PRs to create.
The major downside of this is that the logs become more difficult to read because the metadata gathering overlaps with the output for the next dependency, so I've put this behind an experiment and we can enable it on customers that are hitting the timeout.

@jeffwidman that might work, or maybe it's not as big of a deal as I think. If we could make the logs clear to read while doing this is would be great to roll out to all updates.

Yeah, I've leveraged the thread prefix idea before in both Python and Go very effectively for debugging async bugs in other projects, and every time it was so helpful, especially since I could just grep through the logfile to jump past all the noise when following one specific thread...


Pylance Missing Imports Django Rest Framework.

 Environment data

Language Server version: 2022.4.0
OS and version: linux arm64
Python version (Python 3.9.9):
python.analysis.indexing: null
python.analysis.typeCheckingMode: off

 Expected behaviour
Accept the Django Rest Framework
 Actual behaviour
Import "rest_framework.response" could not be resolved Pylance
Import "rest_framework.views" could not be resolved Pylance
 Logs

Python Language Server Log
No Errors Rest Framework is working perfectly as it should work, It's just Pylance the is not recognizing

 Code Snippet / Additional information

from rest_framework.response import Response
from rest_framework.views import APIView

It is solved

@Deadlooks
What exactly do you mean by project file, is it the app folder or the overall Django project directory?
I still get this error even though my env is already in my project directory.

@alifirhas
Explanation:
Django <<- it the folder where i stored the venv folder and the project folder which is creaded using django-admin startproject
So i moved the venv folder in the project folder look in images example

myproject is created using django-admin startproject myproject


Add FAQ document explaining what Claudie is and what Claudie isn't

To clear the doubts. To explain, where Claudie makes sense and indicate where it doesn't.
an example:
Q: Does Claudie makes sense as a pure K8s orchestration on a single cloud-provider IaaS?
A: It will work well, however Claudie, being opinionated and focused on multi-cloud scenarios will come with its own set of downsides. The main one being the necessity to get a public IPv4 address for each node. However, if you're are building the cluster and you'd like to keep the options open to use some of the multi-cloud features in future (i.e. workload migration to another cloud provider, or extending the cluster with nodepools from another cloud provider in a multi-cloud fashion), then Claudie is the cluster provisioner for you.

@bernardhalas  agreed to help with creating the questions
The purpose of this task is to gather the questions and their answers into a markdown doc, put it next to https://github.com/berops/claudie/blob/master/docs/use-cases, and have this referenced from within ideally here https://github.com/berops/claudie/blame/master/README.md#L28

The proposed list of questions:

Does Claudie make sense as a pure K8s orchestration on a single cloud-provider IaaS?
Is there any networking performance impact due to the fact that the traffic is encrypted between the nodes?
Does each node really need a public IP address?
Is a GUI planned?
Is a ClusterAPI provider planned?
Is a Terraform provider planned?
What is the roadmap for adding support for new cloud IaaS providers?


Add documentation on influencing the HTML head from Blazor

A new preview8 feature enables influencing the HTML head element from Blazor.
When rendered, the Title, Link, and Meta components add or update data in the HTML head.
Usage example:
@using Microsoft.AspNetCore.Components.Web.Extensions

<Title Value="New document title" />
<Link rel="stylesheet" href="styles.css" />
<Meta name="description" content="Influencing the head from a Blazor component" />

Here are a few notes about the feature:

Server-side prerendering is supported.
Only the Value parameter is valid in Title. For Meta and Link, all provided parameters will be reflected in the DOM.
When there are multiple Title components being rendered, the title of the page will reflect that of the Title that was most recently rendered.
Even if there are multiple Meta components being rendered with identical attributes, there will be exactly one meta tag per Meta component (in other words, two Meta components can't refer to the same meta tag). This also applies to Link components.
Changes to parameters of existing Meta components will be reflected by its meta tag (also applies to Link).
Disposing a Meta component removes its meta tag from the DOM (also applies to Link).

Let me know if you would like additional information.

Thanks @MackinnonBuck ... I'll get on this one soon ... probably in a day or two if nothing else pops up on the radar. I'm going to try to 🎷 JAM! 🎸 on the 5.0 Blazor content issues as they arise to make our lives a lot easier later.

@mkArtakMSFT This one looks 🔥 HOT! 🔥, so perhaps we should place it at the bottom of the Components overview topic as opposed to placing it into the Fundamentals > Additional scnearios topic. I think it will get better visibility in the overview.


Generated waves on people ID as Global Condition?

Hi, Does anyone has tried the latest code that integrated the global condition?
If anyone has generated some good waves, could you please share it to me?
I'm interested in what the wave with people ID as global condition sounds like, I'm still training the model, but could not got some any good wave. maybe too less mini-batch now.

Here are two examples generated by network after 100k iterations. The code was from @jyegerlehner 's branch that has been merged with latest PR. Also I lowered the learning rate and silence threshold twice during training.
https://soundcloud.com/dmytro-tkanov/gc-wavenet-speaker311-100k-iterations
https://soundcloud.com/dmytro-tkanov/gc-wavenet-225-100k

@akademi4eg , thanks very much.


juntylpromicrochip npm-publish-github-packages.yml

Looks like this was created by accident, closing. If needed, feel free to reopen with more details, thank you!


sphinx.ext.autosummary extension overrides the typing.TYPE_CHECKING flag (to False)

Describe the bug
The sphinx autosummary extension turns off the typing.TYPE_CHECKING flag used by the sphinx-autodoc-typehints extension to do conditional imports of annotation types (among other things), you may want to document this in your README (I just lost a day to searching it out)
To Reproduce
Add "sphinx.ext.autosummary" to the extensions list (before "sphinx-autodoc-typehints") in your docs/conf.py and add a print statement for the typing.TYPE_CHECKING flag (compare before and after to see that it is switched off)

If it makes life any easier, I made a minimal reproducible repo to show this here but I'm sure it's trivial to observe this yourself.

Since this repo is now 'fixed', add "sphinx.ext.autosummary" to the extensions to observe it break (all the library does is print the typing.TYPE_CHECKING variable)

Moving it after "sphinx-autodoc-typehints" reverts the behaviour (the print out goes back to TYPE_CHECKING = True).
Perhaps worth adding a note on this to the README (like you already had for Napoleon), I couldn't figure out what was causing this!
Also to be constructive, do you think it’d be wise to add a test for this? Along the lines of “if the set_check_typing_flag param was set to True and the TYPE_CHECKING flag does not end up being True, raise an error”?
detected_check_typing_flag = SomehowDetectValueOf("typing.TYPE_CHECKING")
if app.config.set_check_typing_flag and not detected_check_typing_flag:
    raise ValueError`

From looking at the code, I’m not sure if there is any such ‘view’ into the process where you’d be able to run such a function SomehowDetectValueOf, any suggestion/thoughts?

The typing.TYPE_CHECKING is just a module-level constant
I suspect it'd perhaps be possible to check after the app runs if typing.TYPE_CHECKING has a different value

This can be fixed by changing the priority from its default of 500 to any lower integer. I suggested 400 in the associated bug report, awaiting comment for/against I'll just leave this note here and come back to it in a week or so.

A PR for this would be welcome.


chore(*) bump version to 1.2.3

@gszr oops! fixed!

Not a blocker: just noticed this repo doesn't have a changelog file.


Out of date page, not useful in current version:

[Enter feedback here]
I'm trying to use entity framework database first workflow in VS2022 with Entity Framework 6, with a blazor server project template, and none of the information in this page seems to apply anymore - I can't find any section in the "add new item" UI labeled Data, and in addition, the page wasn't even updated enough to change a version number from entity framework 5.x to 6.x. Can we get a new version of this that is actually useful in following the database first workflow in new tools?

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

ID: 63be9b09-2dde-819c-72a9-874182a92113
Version Independent ID: 0ef66141-904a-34b2-b2a1-b090c5d62339
Content: Database First - EF6
Content Source: entity-framework/ef6/modeling/designer/workflows/database-first.md
Product: entity-framework
Technology: entity-framework-6
GitHub Login: @ajcvickers
Microsoft Alias: avickers

The designer is not supported in new project types... workaround is to add a Classic csproj to your solution https://erikej.github.io/ef/dotnetcore/2020/06/15/ef6-use-edmx-dotnetcore.html

This issue has been closed because EF6 is no longer being actively developed. We are instead focusing on stability of the codebase, which means we will only make changes to address security issues. See the repo README for more information.


functions missing during compilation

Hello!
First of all thank you for sharing the code :)
I'm trying to compile the project out of the box, but I'm facing some problems:
/usr/local/Cellar/arm-none-eabi-gcc/9-2019-q4-major/gcc/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: CMakeFiles/rmiieth.dir/Users/leandro/Projects/pico-extras/lib/lwip/src/core/netif.c.obj: in function `netif_do_set_ipaddr':
/Users/leandro/Projects/pico-extras/lib/lwip/src/core/netif.c:491: undefined reference to `acd_netif_ip_addr_changed'
/usr/local/Cellar/arm-none-eabi-gcc/9-2019-q4-major/gcc/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: CMakeFiles/rmiieth.dir/Users/leandro/Projects/pico-extras/lib/lwip/src/core/timeouts.c.obj:(.rodata.lwip_cyclic_timers+0x2c): undefined reference to `acd_tmr'
/usr/local/Cellar/arm-none-eabi-gcc/9-2019-q4-major/gcc/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: CMakeFiles/rmiieth.dir/Users/leandro/Projects/pico-extras/lib/lwip/src/core/ipv4/dhcp.c.obj: in function `dhcp_check':
/Users/leandro/Projects/pico-extras/lib/lwip/src/core/ipv4/dhcp.c:358: undefined reference to `acd_start'
/usr/local/Cellar/arm-none-eabi-gcc/9-2019-q4-major/gcc/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: CMakeFiles/rmiieth.dir/Users/leandro/Projects/pico-extras/lib/lwip/src/core/ipv4/dhcp.c.obj: in function `dhcp_start':
/Users/leandro/Projects/pico-extras/lib/lwip/src/core/ipv4/dhcp.c:806: undefined reference to `acd_add'
/usr/local/Cellar/arm-none-eabi-gcc/9-2019-q4-major/gcc/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: CMakeFiles/rmiieth.dir/Users/leandro/Projects/pico-extras/lib/lwip/src/core/ipv4/etharp.c.obj: in function `etharp_input':
/Users/leandro/Projects/pico-extras/lib/lwip/src/core/ipv4/etharp.c:678: undefined reference to `acd_arp_reply'
collect2: error: ld returned 1 exit status
make[2]: *** [rmiieth.elf] Error 1
make[1]: *** [CMakeFiles/rmiieth.dir/all] Error 2
make: *** [all] Error 2

It seems like the file lwipopts.h in root of the project is being ignored and lwip is compiled without some functions...

Hi! Sorry for the delayed response. It looks like the file:
pico-extras/src/rp2_common/lwip/CMakeLists.txt
is missing an entry for:
${LWIP_PATH}/src/core/ipv4/acd.c
If you add the above line after:
${LWIP_PATH}/src/apps/http/fs.c
It seems to fix things. I'm not sure if this is the right way to fix it, I'll ask on the pico discord when I have a moment. However, the above ought to resolve things for you.
Cheers,
Ben

It seems to work now :) Thanks
The only problem now, i can't use the USB serial monitor anymore. The device doest not appear anymore after i uploaded your firmware:
/dev/cu.usbmodem0000000000001
I also tried to add the following lines in CMakeLists.txt but didn't work either:
pico_enable_stdio_usb(rmiieth 1)
pico_enable_stdio_uart(rmiieth 0)

The alternate fix to the original problem is to disable ACD. I've pushed a change to lwipopts.h that fixes this so the project should at least build out-of-the-box with a stock sdk.
I'm not sure about the USB serial - I presume if you want the Pico to act as a CDC serial device there's some code you would need to add at startup in main() - but since I use a USB<->Serial converter I've never dealt with that.


Fix a race condition in async mpi affecting limiting executor

The mpi_ring_async_executor_test occasionally failed because
the limiting executor was calling find_if on a vector that
was modified by the mpi polling thread.
Instead of allowing external checks (limiting executor) to
access the vector, we use an atomic counter that only the mpi
polling thread increments/decrements and stores the number
of futures/requests in flight. The limiting executor can safely
read this value from any thread.

retest lsu

Should be good to merge now I think.

@biddisco thanks for updating this. I just pushed a commit to add some missing headers reported by inspect. This should be good to go now.


add tests for auto field helpers

Add tests for auto_field helper, and make uuid a slug, not a full URN (which is invalid according to pydantic)

Merging in advance of hackathon


Installation on Debian croaks

Dear Jeff,
first things first: Thanks a stack for conceiving this excellent role for Ansible.
We just gave it a stab to apply it to one of our machines running Ubuntu 20.04 LTS by means of a snippet like:
- name: Install Jenkins
  import_role:
    name: geerlingguy.jenkins
  vars:
    jenkins_prefer_lts: true

However, this fails:
Failed to update apt cache: E:The repository 'https://pkg.jenkins.io/debian-stable binary/ Release' does not have a Release file.

Maybe it is related to #334 in any way and could be resolved by applying #335 already?
With kind regards,
Andreas.

Hi again,
obviously, this is not a problem of the Ansible role. [1] seems to track this issue, where a workaround is advertised to directly download the .deb package from [2]?
This is puzzling me a bit.
With kind regards,
Andreas.
[1] https://issues.jenkins.io/browse/INFRA-2582
[2] http://mirrors.jenkins-ci.org/debian-stable/

Hm, I am not sure what happened here. Apparently, the problem was only intermittant. Right now, the process started working flawlessly again.


Dependency: update toml to 0.7

Hi, I found out that the dependency toml is not up to date, which may cause some applications (like nushell) to compile it multiple times. It would be nice if toml was updated and released without breaking semver compatibility in version numbers. Then our echo system will benefit from it too :) What do you think?

@WindSoilder Fyi: You will most likely not get a response here. @mxre has abandoned this repository and it no longer works with up to date Rust compilers. For more info, please refer to #40.
There are forks available. For example:
Mine: https://crates.io/crates/winresource
The one by tauri: https://crates.io/crates/tauri-winres
I will see to it that the toml version is incremented on my fork.

It is merged in winresource = "0.1.15"

Hi @BenjaminRi , thanks for your information.
I'll try to use winresource..


how to Write or Display interval types

We could use std::fmt::Display but what if we have VCF input and want to write, e.g. BCF output.
Currently, we're using standard outputting, but should likely switch to writers. This will require tracking that, for example, we can have a BCF writer from a VCF query, or a compressed (BGZF) writer from a VCF, but not a BAM writer from a VCF query.
The user should be able to specify, e.g. --output-format BAM | CRAM | SAM or --output-format BCF | VCF along with a --compression-level = 0..9
For BED, perhaps it's --output-format BED12 | BED3 | ???  where perhaps ??? is a template that can be filled.
I need to think about how how to implement this and to look at changes to noodles in 0.61.0 that unify BAM/CRAM/SAM reading.

now, we get a Report struct here in the example.
Instead of handling all of the branching there (in the example code), we probably want to have something like:
writer = Writer::init(&args)
...
for intersection ... {
    let report = intersection.report(...)
    writer.write(report)
}

so what goes to init() instead of args? Could be:
use sniff::FileFormat;
impl Writer {
    pub fn init(in:FileFormat, out:FileFormat) -> Result<Writer, FormatCompatibilityError> { ... }
}

this can be a good start, but will need a way to pass all of the options, for example the option to count overlaps should be known by the writer. But this can be in an additional struct.

For old-time state, Writer could be WriteMgr :grin:

The above seems good enough to proceed to specify input format X to output format Y.
But we also need to handle adding extra columns. For example, if the user asked for counts (-c in bedtools). In VCF/BCF, this would go into the INFO field with, for example counts=4,5,6 which also requires updating the header of the VCF.
For BAM, it can go to tags and for bed, it is appended as a column.
Who is responsible for keeping that information?
Is it:
let wtr = Writer::init(in_fmt, out_fmt, compression, args.count, args.count_bases, ...)

or
wtr.write(report, count, count_bases)

but then any possible additional count or column must be an argument to these. We can likely special-case those and also accept a function:
impl Writer {
    pub fn init(
        in_fmt: FileFormat,
        out_fmt: Option<FileFormat>,
        compression: Compression,
        column_fn: fn(Option<&report>) -> String
)

with the convention that when the argument is None, the function returns the name (for VCF), e.g. count so that it can be added to the header. But we also need to know the type for the VCF header...
So then we can instead accept the trait:
pub trait ColumnReporter {
   /// report the name, e.g. `count` for the INFO field of the VCF
   fn name(&self) -> String
   /// report the type, for the INFO field of the VCF
   fn type(&self) -> Type // Type is some enum from noodles or here that limits to relevant types
   fn description(&self) -> String
   fn number(&self) -> Number // Number is some enum ...

  fn value(&report) -> Value // Value probably something from noodles that encapsulates Float/Int/Vec<Float>/String/...
}

This makes it more work to implement, but I think it's worth it and actually not too onerous.
With this, Writer.write can be:
impl Writer {
    ...
    pub fn write(r: &Report, Vec<dyn ColumnReporter>) {...}
}

This is started in 9e6f440
It's necessary to have a way to link each ColumnReporter which is responsible for the type and name metadata with the files in the Report. Report is Vec<ReportFragment> and that is:
pub struct ReportFragment {
    pub a: Option<Position>,
    pub b: Vec<Position>,
    pub id: usize,
}

so we might want
    pub fn write(&self, report: &Report, crs: Vec<Vec<Box<dyn ColumnReporter>>>) {

where the outer vec is has length of the number of b files and each of those has a length equal to the number of columns from that file.
This can get verbose, when we want a simple thing like the 3 bed columns, then we need:
struct BedReporter {
   name_: String,
   idx: usize,
   type: Type,
   desc: String,
  }

impl ColumnReporter for BedReporter {
    fn name(&self) { self.name }
    fn ftype(&self) { self.type }
    ...
   fn value(&self,  r: &ReportFragment) -> Result<Value, ColumnError> {
      r.b.map(|p| {
        match p {
            Position::Bed(br) => match self.idx {
                  0 => p.chrom(),
                   1 => p.start(),
                   2 => p.stop()
            },
            _ => Error
        }
      })
  }
}

This is very flexible, but would get quite complicated just to extract a single column

I am exploring using lua snippets again as this seems flexible and user-friendly enough. The cost is performance, but I think that's not the main concern.


Commander on Windows needs some love

We've seen a few errors most-likely related to people trying to run commander on windows machines. We should get this ironed out.

' microsoft windows 10 pro ver 10.0.14393' running Python 2.7.3 has produced at least one error.

@PharkMillups can you confirm that the latest release of commander does the right thing now? We're now actually testing on windows, though not on windows 10 specifically.
See the appveyor badge in the project readme or check it out here: https://ci.appveyor.com/project/madninja/helium-commander

The great @ericmoritz just verified that <IP_ADDRESS> and master are working as expected on Windows 10. I'm going to consider this closed.


Travis with codecov

.travis.yml added for travis CI
fatf/tests/test_script.py added containing some dummy tests for pytest to run
inside .travis.yml code coverage of test_script.py sent to codecov

 As a developer I want the code to be continuously tested

 As a developer I want to review all the opened pull requests on GitHub to merge them and get the setup finished

Made some of the changes that alex suggested. also added linting to CI build


I got error TypeError: block.getData(...) is undefined

Here is the code:
import {EditorState, ContentState, convertToRaw} from 'draft-js'

import draftToHtml from 'draftjs-to-html';
import htmlToDraft from 'html-to-draftjs';

const contentBlock = htmlToDraft('

');
const contentState = ContentState.createFromBlockArray(contentBlock.contentBlocks);
const outputEditorState = EditorState.createWithContent(contentState);

const rawContent = convertToRaw(outputEditorState.getCurrentContent());
const html = draftToHtml(rawContent);
console.log(html, 'html');

Is it possible to avoid the error? I used such html code because previously i saved converted empty state to database and after that i wanted to edit the html but i got the error.

@kalombos let me check. Also one thing I would strongly recommend to use JSON format for saving in DB. And convert JSON to html for just display.

Just released 0.1.0-beta3 with the fix.

Working for me, thank you. Also i have an error when i try to load custom html which was not created by the editor. Maybe it would be better just ignore unknown tags instead of raising exceptions like it works for draft-convert library. I can provide the html if you need it.

I still have similar error

The html code I used is 100% from react-draft-wysiwyg
my code is
const contentState = ContentState.createFromBlockArray(htmlToDraft(e.target.value)).contentBlocks);
return convertToRaw(contentState);

e.target.value is html string.

Hey @ZeroCho, can you plz share the html string also. I will check at my end.

Hi @jpuri , I just cloned this project and only replaced the html constant string with : ""
Same error than @ZeroCho ;)
PS : A big thanks for this and the awesome wysiwyg

Sorry guys I will check this soon.

I just made this release 0.1.0-beta6 can you guys plz check if you still face the issue. I am keen to fix all issues and stabilize this repo for 1.0 release now.

I just tried with the html of my previous comment, same thing :/
convertFromDraftStateToRaw.js:43 Uncaught TypeError: block.getData(...).toObject is not a function

Can't see the beta6 but the issue still there with the HTML of my previous comment :/
convertFromDraftStateToRaw.js:43 Uncaught TypeError: block.getData(...).toObject is not a function

Its there plz check.

Works perfectly for me, you rocks !


Fix the predicted number of visible options

Navigation in the dropdown works with scrolling.
Fixes #426

Codecov Report

Merging #427 into 2.0 will not change coverage.
The diff coverage is 50%.

@@           Coverage Diff           @@
##              2.0     #427   +/-   ##
=======================================
  Coverage   94.51%   94.51%
=======================================
  Files           4        4
  Lines         164      164
  Branches        9        9
=======================================
  Hits          155      155
  Misses          6        6
  Partials        3        3

Impacted Files
Coverage Δ

src/pointerMixin.js
100% <ø> (ø)
:arrow_up:

src/multiselectMixin.js
96.61% <50%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

Thanks! :)


New Work Credits are not registering

Work credits are not registering. I added a Work Credit for a BH and Created it  but the table does not show the BH. I was expecting to see his name in the table with the Approval Needed link to click...

well this is interesting,  I see the 2 you created & the one I created,  but they are not displaying in the App...

we just forgot how Work credits works...


[Enhancement] Catalan flag 🏴

Is your feature request related to a problem? Please describe.
While not encouraged, it's become common to have flags represent languages. Catalan being one of the most widespreadly spoken minority language in Europe (9M L1+L2, similar to Czech), meaning it's supported in a lot of applications. Though, it doesn't have an emoji flag to represent it, which presents some annoying workarounds each time it needs to be added.
Describe the solution you'd like
I'm requesting the Catalan flag to be added, similar to how Wales, and Scotland were. There was an old thread about this before Wales was added with someones attempt, but I don't know how to reopen it.
https://github.com/twitter/twemoji/issues/282
Describe alternatives you've considered
Creating and using a modified svg of the Catalan flag, however doing that often just for Catalan is annoying. OpenMoji does support it, but Twemoji is more widely used and recognizable.

Per the Twemoji readme: "We do not support custom emoji."
This emoji should instead be proposed here.
For a full list of all emoji (including flags) found in the current version of Unicode, see the Unicode website.

@catgirl-doll I may just be misunderstanding but the flag of England (🏴) is U+1F3F4 U+E0067 U+E0062 U+E0065 U+E006E U+E0067 U+E007F
Isn't the Catalan emoji (🏴) just the same sort of thing with the following? U+1F3F4 U+E0065 U+E0073 U+E0063 U+E0074 U+E007F

The flags for England, Scotland, & Wales are the only subnational flags that are currently recommended for general interchange (RGI) by Unicode. However, flags for other subdivisions are considered valid by Unicode. These use tag sequences (just like the flags for England, Scotland, & Wales do). See Unicode Technical Standard #51: Annex C for more information. This annex uses the flags for California, Ontario, Canton Zürich, & Normandy as examples, but the same would apply to the flag for Catalonia, as tag sequences are valid for any subdivision, provided it has an ISO 3166-2 code.
@Alzavio is correct that U+1F3F4 U+E0065 U+E0073 U+E0063 U+E0074 U+E007F is the codepoint sequence for the flag for Catalonia (🏴), as that tag sequence corresponds to Catalonia's 3166-2 code.
tl;dr: This wouldn't be a custom emoji. This is a valid use of the supported tag sequence mechanism for subnational flag emojis; though, this emoji isn't currently supported by most emoji libraries.


h5py Python 3.11 wheels are available

https://github.com/h5py/h5py/issues/2146

@stefan-jansen please approve workflow run


Need to investigate difference between builds with and without ETI

In ETI.txt, there is an example of how different the includes are with and without ETI. We need to make sure that if there is no cyclic dependency in an ETI build, it is impossible to have a cyclic dependency in a build without ETI. Otherwise, we will need to test the build without ETI with jenkins.

I am going to close this. I tried to create cycles and I couldn't. So unless we do some strange we should be good.


Clarify calibration.md

Refer to quality metrics set not figures of merit to save confusion.
Add note after calibration sequences to describe the calibration set
Note about the delay in creating calibration set and quality metrics set
Example response from cocos of the metrics

lgtm!


add isBlocked method

Offer a method that checks whether a particular position on the tilemap is blocked by either a blocking character or a blocking tile.

fixed with 2.12.0


Error while running seq2HLA

I am running seq2HLA for the first time, the program runs fine up to this stage and throws the error.
The digital haplotype is written into runName-ClassI-class.digitalhaplotype2
2nd iteration done.
-----------2 digit typing results-------------
#Locus	Allele 1	Confidence	Allele 2	Confidence
A	A68	0	A01	0.01747313
B	B51	0.0009102886	B57	0.0002627386
C	C15	3.922862e-12	C06	0.01667079
Calculation of locus-specific expression ...
runName-ClassI-class.bowtielog
Traceback (most recent call last):
File "/NextGenSeqData/project-data/chirag/unixTools/seq2HLA/seq2HLA.py", line 769, in

main(runName,readFile1,readFile2,fastaClassI,fastaClassInonclass,fastaClassII,bowtiebuildClassI,bowtiebuildClassII,bowtiebuildClassInonclass,trim3,threads,class1_list,class1nonclass_list,class2_list,length_dict1,length_dict1nonclass,length_dict2)

File "/NextGenSeqData/project-data/chirag/unixTools/seq2HLA/seq2HLA.py", line 123, in main

mainHLA(runName+"-ClassI-class",readFile1,readFile2,bowtiebuildClassI,fastaClassI,mapopt,trim3,gzipped,class1_list,1,"classical",length_dict1)

File "/NextGenSeqData/project-data/chirag/unixTools/seq2HLA/seq2HLA.py", line 195, in mainHLA
expression(locus_list,length_dict,map,runName,readFile1)
File "/NextGenSeqData/project-data/chirag/unixTools/seq2HLA/seq2HLA.py", line 623, in expression
totalreads=float(linecache.getline(logfile,1).split(':')[1])
ValueError: could not convert string to float: Skipping pair D00620

I think I had a similar error when I ran it, it could be because you are running seq2hla on python 2.7 + while the script is written in 2.6.8. You can make the changes to seq2hla.py suggested here to get it running -  https://bitbucket.org/sebastian_boegel/seq2hla/pull-requests/2/run-on-posix-like-environments/diff

totalreads=float(linecache.getline(logfile,1).split(':')[1])
the total reads not exists in logfile line1 ,  but exists in line2.
use python 2.7+ ,  the logfile is

Setting the index via positional argument will be deprecated in a future release. Please use -x option instead.
# reads processed: 580
# reads with at least one alignment: 580 (100.00%)
# reads that failed to align: 0 (0.00%)
Reported 35847 paired-end alignments
Now running seq2HLA version 2.3!
Input is a gipped file .....


Update readme with instructions to run locally

What would you like to change?
Readme
How do you think that would improve the project?
Allow new devs to run the service locally for development
If this entry is related to a bug, please provide the steps to reproduce it
These are the steps needed to run locally at the time of writing

Open file generate-ccd-defination.sh.  Amend the line that says:

docker run --pull always --user $UID --rm --name json2xlsx \

to
docker run --pull always --rm --name json2xlsx \

(remove --user $UID)

Then build

gradle build

Then login to the subscription. Get the subscription id from another dev

az acr login --name hmctspublic --subscription [SUBSCRIPTION ID]

Then run
./gradlew bootWithCcd

Also metics link to readme returns 404. So consider fixing or removing

generate-ccd-defination.sh is found in bin/
"gradle build" should = ./gradlew build

https://github.com/hmcts/adoption-cos-api/pull/915

Changes deployed.


Using IPFS as buffer

Currently, onramp runs a temp server as the buffer to store the client's data before sending it to SP. It is not realistic and brings an infra burden to the operator.
We should consider use IPFS as buffer to store CAR before making deals.

Can you share more of your thoughts on how this would look? Would there be a server running somewhere by each user or the host for ipfs? Could the ipfs server be hosted in the web browser?


feat(visualqa): question answer on uploaded image

Fixes #

Updated schema to support model id and model parameters as input type. This can be a breaking change.
Added sagemaker endpoint for (HuggingFaceM4/idefics-80b-instruct)
Added image_qa file to separate visual qa from text qa
Code restructure with StreamingCallbackHandler , and chain.py to be used as common class between visual and doc qa.
Updated data ingestion to support image embeddings using amazon.titan-embed-image-v1
Added image transformation logic for image files in data ingestion using amazon rekognition and anthropic-claude-v2
Updated data ingestion read me

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the project license.

Also, please replace all the harcoded '/tmp' paths with DATA_DIR = tempfile.gettempdir()
See bandit findings


Ability to automatically open a web project on debug

Background and Motivation
It would help with debugging productivity if you could automatically launch web projects with Aspire when you start debugging in Visual Studio 2022 as you can if you're not using Aspire with startup/multiple-startup projects.
Proposed API
namespace Aspire.Hosting;

public static class ContainerResourceBuilderExtensions
{
     public static IResourceBuilder<T> OpenEndPointsOnDebug<T>(this IResourceBuilder<T> builder,  string openEndPointsOnDebug []) where T: ContainerResource
}

Usage Examples
builder.AddProject<Projects.web_Web>("web")
         .OpenEndPointsOnDebug(["https"])

Which would trigger the Aspire dashboard to open that endpoint in a new tab once it's started (only if debugger is attached).
Alternative Designs
builder.AddProject<Projects.web_Web>("web", openEndPointsOnDebug: ["https"])

Risks
User might try to set a project to open to which the debugger doesn't automatically attach like a Blazor wasm project (would be good if VS2022 could though).

So this is specifically about opening multiple web projects? It is already possible to change the launch URL for the apphost. If you set launchUrl to the app you want to open it will open the dashboard but then redirect to the URL you have specified in launchUrl.


CARDS-1006: When in a view mode of an invalid/incomplete form, show all the offending fields marked with proper message in red fonts

Problem of a cosmetic nature found. Steps to reproduce:

create a new Radio form
set Radiation therapy =Yes
save & view --> all good

edit
orange box is displayed around the next required field Radiation field --> correct
add value to the Radiation field

save & view -> the orange box is again around Radiation field - wrong

edit --> oranhe box didn't move to the next required field Radiation source - wrong

The orange box seems to be stuck on the Radiation field even after the form status is complete. Refresh does not remove the orange box. The only way to get rid of it is by moving away from the form and opening it again.

Tested the lattes changes -all good
Waiting for the final changes that we discussed on the stand-up today: clickable Incomplete chip will take user to the first blank required field + possibility to take user to the next one after filling the current required field with proper value
Now I am thinking we should do the same with Invalid forms. Separate task?

The last commit removes the highlighting of the first missing field when clicking edit, since with the current implementation of field highlighting that can mess up form versioning.

QUESTION: the boxes appear much higher in view mode.
Can we get rid of that extra space?
The header shrinks when Incomplete chip is not there. Can we do the same when This question is mandatory isn't there?

Rebased on top of the latest dev and addressed some of @sdumitriu 's refactoring comments. No behavior should have changed. @sashaandjic please retest.


Enforce uninlined_format_args for the workspace

closes #9064.

I can fix the /home/runner/work/wasmtime/wasmtime/target/debug/build/cranelift-codegen-d924ecd4c940ea8b/out/inst_builder.rs failures locally, but they're not in source control.

Those are generated during the build, so we should figure out a different approach for fixing the errors. Perhaps we can emit an allow annotation when generating them?

Similar #[allow] annotations look like this and there might be some other locations as well.


fix for os.environ when in windows environment.

@al45tair Did a test according to your suggestion
for issue
https://github.com/al45tair/asyncdns/issues/2
It worked after I did the changes in this pull request.

@al45tair any love for this pr? Small change. Big impact.


[AppEngine Flex]: Delete the ealier versions branch once it's no longer needed

https://github.com/GoogleCloudPlatform/dotnet-docs-samples/tree/flex-dotnet3-and-earlier

On 2024-07-10, .NET 3 for App Engine Flex will be out of support (schedule, definitions). This branch can be deleted.


Expose exported script variables in tileset editor.

Godot version:
3.1 bf957a4
Issue description:
It's not possible to edit exported script variables in the new tileset editor.
Steps to reproduce:
Create a tileset, open the tileset and add a script to it with an exported variable on it.
tool
extends TileSet

export var test = 0

I can confirm this!! I was actually going to use this script to add metadata to each tile from within the new TilesetEditor (for example adding terrain effects). I hope this is a bug and not "just the way it was meant to be" and gets fixed soon!
Even better would be the possibility to associate (custom) resources or even scripts per tile (autotile/simple...) within the tileset. this way properties like friction could be created as a resource (floor_ice, friction=0.5) and added to the tile with the respective graphics!

This issue might not be necessary anymore. I don't know when it happened but now when you open a tileset resource it opens in the inspector as expected, including the exported variables from a script. The inspector only changes to the "TilesetEditorContext" when a tile is selected in the editor. So it's now possible to edit the exported variables, and I like it this way better, only having the editor context appear when a tile is selected.

Thanks, closing then.


Remove cache override that was only meant for development

https://odysee-workspace.slack.com/archives/C02G20Z2AEL/p1652981490137999?thread_ts=1652979145.828999&cid=C02G20Z2AEL

--- close ---
Decided to just fix the caching for the image, and not remove the 1 hour cache.
Removing it means 0, which is no cache.  Not sure if that is what we want.


Fix black linting

This is an automatic pass of black over the code. It seems that they fixed some bugs in the latest 19.10b0 release. Mostly, it's things related to function parameters and trailing commas.
This should solve the failing CI pipeline.

Damn, now we lost coverage 🙃

Great! Thanks! :rocket: :cake:


FF toggle pill checked state animation jank

(some flickering and crazy repaints are happening near the end of the animation on check)

The generated keyframes might be a little bit too heavy-handed for FF. Maybe we can simplify a little bit...

Fixed by https://github.com/meetup/sassquatch2/commit/4eecff6b7184fe495f1111dfa4c0e0e35faaa1d7