add methods for adding a node or edge to the graph and returning a reference

It would be useful if graphs exposed methods that add a node/edge and return both the index for that node/edge as well as a immutable or mutable reference to the node/edge weight.  I keep running into the unfortunate pattern of
let idx = g.add_node(node_weight);
let node = g.node_weight(idx).unwrap();

which adds a smelly "I know that this unwrap can't fail" unwrap.

A note is that g.node_weight(idx).unwrap() is equivalent to &g[idx].

I don't think this would be useful. Returning a reference to the node/edge's weight would ruin usability, because the following would no longer compile:

let mut g = Graph::new();
let wa = g.add_node("a", 42);
let wb = g.add_node("b", 1337); // won't compile because `wa` borrows `g`

Node IDs for Graph are direct accessors and bypass Rust's BCK and using them incorrectly is expected to panic. You can think of it like using Vec indices instead of references to elements.

fn add_to_vec<T>(v: &mut Vec<T>, element: T) -> usize {
    v.push(element);
    v.len()
}

fn main() {
    let mut v = vec!["a", "b", "c"];

    let d = add_to_vec(&mut v, "d");
    v[d] = "D";

    let ref_d = &v[d];
    let e = add_to_vec(&mut v, "e"); // doesn't compile
}

I wasn't suggesting that add_node return a reference, rather to expose a different variant that does.  Not really necessary, just convenient, but it would imply more API surface for not a lot of gain.


Swimming data

I tried to extract the data from http://www.usaswimming.org/_Rainbow/Documents/9070b142-0d2a-432b-8045-5b5d39f4170f/2008_US_Olympic_Trials[1].pdf
but it didn't work. I used both the whitespace and lattice method. Are there any other possible methods?

Hi @leung085,
Unfortunately, there isn't much we can do with your PDF. There are PDFs, such as yours, that do not contain information on the mapping of glyphs (symbols on screen) to actual characters. See Stack Overflow answer for more information.
You could try running an OCR program and process the result with Tabula.

Thanks!
On Wed, Mar 1, 2017 at 12:30 PM, Manuel Aristarán<EMAIL_ADDRESS>wrote:

Closed #637 https://github.com/tabulapdf/tabula/issues/637.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tabulapdf/tabula/issues/637#event-982354751, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AKkOU4e_DIBm5P0XzLULh52q9e5-bMcjks5rhblCgaJpZM4MQAab
.


[TCK Challenge]: The TCK is making the BETWEEN mandatory, however, it is not native supported by MongoDB

Specification
https://github.com/jakartaee/data/blob/78d53408461c0f5962d4fee7a2d780d226f71c0d/spec/src/main/asciidoc/query-language.asciidoc
Assertion
https://github.com/jakartaee/data/blob/78d53408461c0f5962d4fee7a2d780d226f71c0d/tck/src/main/java/ee/jakarta/tck/data/standalone/entity/EntityTests.java
TCK Version
1.0.0-RC1
Implementation being tested
Eclipse JNoSQL
Challenge Scenario
Something else
Full Description
Natively, MongoDB does not support the "between" keyword, making the
`UnsupportedOperation  BETWEEN is not natively supported from mongoDB"
However, the TCK returns as an error:
[ERROR]   MyEntityTests>EntityTests.testQueryWithNot:1395 » UnsupportedOperation The condition BETWEEN is not natively supported from mongoDB
[ERROR]   MyEntityTests>EntityTests.testDataRepository:432 » UnsupportedOperation BETWEEN is not natively supported from mongoDB
[ERROR]   MyEntityTests>EntityTests.testDefaultMethod:455 » UnsupportedOperation The condition BETWEEN is not natively supported from mongoDB
[ERROR]   MyEntityTests>EntityTests.testDescendingSort:464 » UnsupportedOperation The condition BETWEEN is not natively supported from mongoDB
[ERROR]   MyEntityTests>EntityTests.testBasicRepository:135 » UnsupportedOperation The condition BETWEEN is not natively supported from mongoDB
[ERROR]   MyEntityTests>EntityTests.testCommonInterfaceQueries:398 » UnsupportedOperation The condition BETWEEN is not natively supported from mongoDB

Additional Context
No response
Is there an existing challenge for this?

[X] I have searched the existing issues

We need some more background information to determine if this challenge makes sense.
Does JNoSQL support GreaterThanEqual, And, and LessThanEqual keywords for Mongo?  If it can support countByIdGreaterThanEqualAndIdLessThanEqual could it interpretcountByIdBetween the same?


[Epic] Integrate with the CLI for running tests

Description

Integrate CLI for running tests and suggest autofixes for failing tests using npm script (added docs too)
References

fixes #266
Review Checklist

[x] I have clicked on "allow edits by maintainers".
[x] I have added documentation for new/changed functionality in this PR or in a PR to openfga.dev [Provide a link to any relevant PRs in the references section above]
[x] The correct base branch is being used, if not main
[x] I have added tests to validate that the change in functionality is working as expected

👋🏻  Thanks for the PR @Siddhant-K-code! Apologies for this but I think our issue might not have been clear enough on what we're looking to achieve. I'll work to update the GH issue to reflect this better.
The FGA CLI supports running tests defined in the store file, and that's what we'd like to expose to FGA developers in some manner. I think a first pass would be to have this ran via a command in the command palette and then later some deeper integration with the VS Code testing panel and inline items (I think there's a barrier to this in that the CLI doesn't support running specific tests or a "simple" parseable output)


Speed Adaption Rework and Cost Function Tuning

This PR adds a lowpass filter to the speed adaption function and restructures it to get rid of discontinuities in the demanded velocity signal. The setpoint coming out of this function undergoes smoothing afterwards, so we thought the very rudimentary velocity calculation would do, but adding this simple filter improved flight behavior significantly.
The plots below show the velocity coming out of the speed adaption function on the right and the signal after smoothing on the left. The derivative shows the commanded acceleration to visualize the difference.
Also I changed the pitching cost slightly, because the drone kept arriving too high at the goal and had to turn and search its way down. Both plots show the same mission with 6 goals in SITL. On the timescale it can be seen that master takes 3:20min to complete whereas the PR takes 2min.
Flight tests pending...
current master:

PR:

Flight on the mule: https://suite.auterion.com/flights/3bc06e83-3c9f-4258-9f73-f671d62e46cb
Pitch rate setpoint signal seems to have slightly smaller amplitude. But the mule always flew nice enough. As we had the main problem on the alta I would like to see it fly there as well
this PR

older log as comparison:

@baumanta This is nitpicking, but an important one: Given the data the mule actually didn't "fly nice", but the issue wasn't as visible. It is a big difference if you can just not see it on a platform or if it is indeed not there.
What this also says is that the current mule configuration is not suitable for testing, because it is hiding the issue.

Logs from the other drone confirm that pitch rate goes down a lot:
this PR:

master:


107 auto promote 6

Contributes to: #issue_number
Description of changes:

<change 1 ... >
<change 2 ... >

Output of argocd app list command or screenshot of the ArgoCD Application synchronization window showing successful application of changes in this branch.

:tada: This PR is included in version 0.9.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


enabling the G2 GL Fake KMS sends Rpi4 to terminal on reboot, no GUI

Hello, I am using this guide to run a Rpi4 with Pi3D for a digital picture frame:
https://www.thedigitalpictureframe.com/how-to-set-up-your-raspberry-pi-for-your-digital-picture-frame/
I am using a fresh install of buster on a Rpi4.  I have reformatted/reinstalled 3x and I always get hung up on the same spot.
Following the above guide everything is spot on until I enable the G2 GL Fake KMS. After that, the Rpi will no longer boot to the GUI (just goes to terminal). And after I install picframe reboot and run, instead of the happy "no pictures selected" image I am supposed to get on the Rpi, I get this in my ssh terminal:
X.Org X Server 1.20.4
X Protocol Version 11, Revision 0
Build Operating System: Linux 5.4.0-109-generic armv8l Raspbian
Current Operating System: Linux mug 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l
Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 video=HDMI-A-1:1920x1080M@60 smsc95xx.macaddr=DC:A6:32:95:A2:E3 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=ttyS0,115200 console=tty1 root=PARTUUID=1182eb90-02 rootfstype=ext4 fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
Build Date: 04 August 2022  12:56:42PM
xorg-server 2:1.20.4-1+rpt4+deb10u5 (https://www.debian.org/support)
Current version of pixman: 0.36.0
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Tue Oct 25 11:03:34 2022
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(II) modeset(0): Initializing kms color map for depth 24, 8 bpc.
/usr/bin/python3: can't open file '/home/pi/picframe_data/run_start.py': [Errno 2] No such file or directory
xinit: connection to X server lost
waiting for X server to shut down (II) Server terminated successfully (0). Closing log file.
I know there is probably something simple that I'm missing, so any help would be appreciated.  I am not a software engineer, I am an airline pilot trying to figure this out.  I am sorry if I did not post this correctly.  Thank you for your help.
What are your OS, Python and picframe versions(please complete the following information):?

Hardware: Rpi4
OS: Buster
Python:
picframe (run picframe -v if possible):

pi@pictureframe:~ $ picframe -v
INFO:start.py:starting ['/usr/local/bin/picframe', '-v']
picframe version:  2023.07.26.post1
Checking required packages......
PIL :  9.5.0
pi3d :  2.51
yaml :  6.0.1
paho.mqtt :  1.6.1
iptcinfo3 :  2.1.4
numpy :  1.16.2
ninepatch : installed, but no version info
pi_heif :  0.12.0
defusedxml :  0.7.1
pi@pictureframe:~ $

pi@pictureframe:~ $ sudo xinit /usr/bin/python3 /home/pi/picframe_data/run_start.py /home/pi/picframe_data/config/configuration.yaml

X.Org X Server 1.20.4
X Protocol Version 11, Revision 0
Build Operating System: Linux 5.4.0-109-generic aarch64 Debian
Current Operating System: Linux pictureframe 5.10.103-v8+ #1529 SMP PREEMPT Tue Mar 8 12:26:46 GMT 2022 aarch64
Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 bcm2708_fb.fbwidth=1920 bcm2708_fb.fbheight=1080 bcm2708_fb.fbswap=1 smsc95xx.macaddr=D8:3A:DD:90:75:BA vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=ttyS0,115200 console=tty1 root=PARTUUID=f818b664-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles cfg80211.ieee80211_regdom=US
Build Date: 04 April 2023  07:50:56AM
xorg-server 2:1.20.4-1+rpt4+deb10u9 (https://www.debian.org/support)
Current version of pixman: 0.36.0
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Jan 10 18:26:05 2024
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
/usr/bin/python3: can't open file '/home/pi/picframe_data/run_start.py': [Errno 2] No such file or directory
xinit: connection to X server lost

waiting for X server to shut down (II) Server terminated successfully (0). Closing log file.

@talljon sorry, this must be frustrating for you. Recently I've been working on getting things working with the latest Bookworm OS but it sounds like there might be some issues that have kept into Buster I will try following Wolfgang's instructions for that when I get home tonight.
The error sounds like picframe_data/run_start.py wasn't installed. Could you check that directory? When you ran the line to install picframe did everything work as expected?
Paddy

Paddy,
Thank you for the reply.  Like I said, I am not a software person so hopefully I will answer this correctly.  I think you are correct that it is not installed.  When I look for picframe_data/run_start.py with the find command, here is what I see:
pi@pictureframe:~ $ find . picframe_data/run_start.py
.
./Documents
./.Xauthority
./.bashrc
./DeletedPictures
./.bash_history
./.config
./.config/pulse
./.config/pulse/1242a69d5bd84fa4a0d04184ca65dc92-default-sink
./.config/pulse/1242a69d5bd84fa4a0d04184ca65dc92-stream-volumes.tdb
./.config/pulse/1242a69d5bd84fa4a0d04184ca65dc92-default-source
./.config/pulse/1242a69d5bd84fa4a0d04184ca65dc92-device-volumes.tdb
./.config/pulse/1242a69d5bd84fa4a0d04184ca65dc92-card-database.tdb
./.config/pulse/cookie
./.config/user-dirs.locale
./.config/user-dirs.dirs
./.config/lxpanel
./.config/lxpanel/LXDE-pi
./.config/lxpanel/LXDE-pi/panels
./Music
./Videos
./Downloads
./.xsession-errors.old
./.local
./.local/share
./.local/share/applications
./.local/share/desktop-directories
./.profile
./.xsession-errors
./Templates
./.gnupg
./.gnupg/private-keys-v1.d
./Public
./Pictures
./.cache
./.cache/openbox
./.cache/openbox/openbox.log
./.cache/openbox/sessions
./.cache/lxsession
./.cache/lxsession/LXDE-pi
./.cache/lxsession/LXDE-pi/run.log
./.cache/menus
./.cache/menus/6cc2bb09817b99bdf0f62d9abf3c60be
./.cache/menus/3d5ec69d3d984f5df1f165835f6d03ea
./.bash_logout
./Bookshelf
./Bookshelf/000_RPi_BeginnersGuide_DIGITAL.pdf
./Desktop
find: ‘picframe_data/run_start.py’: No such file or directory
pi@pictureframe:~ $
Again, my apologies if this is not where I'm suppose to be looking.
Jon

As you say there doesn't look to be a directory ~/picframe_data/ One thing that is worth checking is the point in your installation history where you ran picframe -i . Note that there is a full stop on the end of that line, a short cut for the explicit /home/pi/ which is the active directory after rebooting. You can see a list of everything you've typed at the terminal by running cat /home/pi/.bash_history but, obviously, that won't show you what the response was.
The other thing that would be worth checking is whether pi3d is correctly installed. You can do that by
python3
>>> import pi3d

type CtrlZ to close the interactive python prompt. Hopefully there won't be any error messages.

Thank you for all your help.
Indeed there is no directory ~/picframe_data/
Here is my screen:
ratlab@Rats-MacBook-Pro ~ % ~/picframe_data/
zsh: no such file or directory: /Users/ratlab/picframe_data/
It also doesn't look like it was installed correctly if that is what I'm deciphering from the python3 command:

import pi3d
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'pi3d'
ratlab@Rats-MacBook-Pro ~ % ~/picframe_data/
File "", line 1
ratlab@Rats-MacBook-Pro ~ % ~/picframe_data/
^
SyntaxError: invalid syntax
zsh: no such file or directory: /Users/ratlab/picframe_data/
File "", line 1
zsh: no such file or directory: /Users/ratlab/picframe_data/
^
SyntaxError: invalid syntax

zsh: suspended  python3
ratlab@Rats-MacBook-Pro ~ %
At least I know where I stand now with why it is not functioning.  I'm not too sure where to go next, but willing to try anything.

Hi, that ratlab@Rats-MacBook-Pro ~ % is a little confusing. Are you sshing into your raspberry pi? You showed pi@pictureframe: $ before.
Open a terminal in RPi and check back over /home/pi/.bash_history to see what the picframe command was, and the ones for install it. Let me know what you see.

Sorry, that was my ineptness at being a software person.  I will check this now and be right back with you.

Problem solved.  Here is where I went wrong, because I am good at following directions, but not a software programmer.
Please see the attached screenshot of the directions from the guide I was using:

My understanding was to copy and paste the entire block into terminal, which worked.  The the Rpi rebooted as the second to last line instructs it to.  I did not realize that I needed to reenter the last line picframe -i . after the reboot and then finish the installation.
So it comes down to me not understanding the directions clearly.  I will email Wolfgang and have him correct this by separating the last command in his tutorial.
My apologies about taking up your free time and I thank you for all that I have learned throughout this process.
Jon

Ah, that makes sense - the linux command line and bash syntax is rather cryptic to say the lease. If you run into any other problems don't hesitate to post a question. Github issue forums are a really excellent way for people to find solutions to problems that they have, so you are really contributing to the documentation.


Ratchet deprecation (support for php 8.2)

There's a dependency of this that floods my logfiles with deprecation warnings every second since updating to php 8.2

There is no support here, look this example https://github.com/beyondcode/laravel-websockets/pull/1049


ARTEMIS-3662 remove deprecated config from default broker.xml

The auto-create-jms-queues, auto-delete-jms-queues,
auto-create-jms-topics, and auto-delete-jms-topics address settings
were deprecated in ARTEMIS-881 way back in 2016. There's no need to keep
them in the default broker.xml at this point.

Seems like a good idea.
There still seems to be a lot of tests remaining with such old 'default config' with these being set though, feels like those also be getting cleaned up so the tests are actually using representative configs, and also just to minimise the presence/use of these deprecated bits to the areas exercising them until eventual removal.
(Perhaps more tangentially, there are also still a lot of references to autoCreateJms* and autoDeleteJms* arguments in non-deprecated api methods that seem to make no mention of the arg [or method] status)

From thinking on this a bit more though I wonder whether the actual xsd and code default handling should also be getting updated for the 'jms' entries at this point, so that if they werent explicitly configured in the xml config they either default to whatever value the related 'regular' setting is using, or just to false (at least for the auto-delete, since thats the provided default config in xml now...though its still defaults true in the xsd and the code).
Since the -jms settings have been or are here removed from (or never existed in) the default provided xml config, they then arent influenced by the use of these variables set by the cli command flags anymore, but did used to be for the auto-create ones at least. That means that the 'regular' and 'jms' settings effective values will likely differ, e.g the auto-delete bit has xml false config for the regular setting since 2.18.0, yet the -jms ones will still be true from the xsd or code default....then for the auto-create, it has default true set in the xml config but can be configured false with the CLI flags, yet doing so wont affect the -jms one anymore after this change but would before, meaning they would remain true in the xsd and code defaults despite a cli request to disable auto creation.

There still seems to be a lot of tests remaining with such old 'default config' with these being set though...

I found mostly smoke tests and examples which were still referencing these config elements. I cleaned those up as well.
As for the behavior now that they aren't being set, that shouldn't be a problem. The broker doesn't even use those address setting values anymore. They've simply been ignored since the introduction of their replacements.
The change here is really just about presentation. No semantics should be impacted at all.

Ok cool. That wasnt really obvious to me from the significant remaining references and mechanics + still-remaining tests checking configuring those values, xsd still defaulting them to true, or the doc not noting that they dont do anything.


Debug tool to run lambda locally

Is there any debug tool to run locally the lambda function?

Hey there!
PTAL at the following article:
https://developer.amazon.com/blogs/post/Tx24Z2QZP5RRTG1/new-alexa-technical-tutorial-debugging-aws-lambda-code-locally
Please be advised that we're no-longer providing support for this project and so instead, please check out the replacement Alexa Skills Kit SDK for Node.js:
https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs
Also, we have a number of sample skills based on this newer SDK, under here:
https://github.com/alexa


Make it easier for people to change the forecast dates

And dates more generally across the tutorial.

Added a target date section to the tutorial.


[Translation] Basic Tasks 25-27

Done by

https://github.com/Dapp-Learning-DAO/Dapp-Learning/pull/758
https://github.com/Dapp-Learning-DAO/Dapp-Learning/pull/765


[WIP/PoC] NH-73771 Upgrade upstream Otel 1.23.0/0.44b0

WIP/PoC do not merge

No longer needed because we're on 1.27.0/0.48b0


Fail to produce 2D map with /write_state

rosbag_validate result: https://github.com/SeanGuoXuan/cartographer_ros/blob/master/validation_result
Git repository:  https://github.com/SeanGuoXuan/cartographer_ros
bag file: https://drive.google.com/open?id=1xDRRJ1txde-9ZLwNU759GMT1ab_ljJMx

Hi,
I am using Kinect2 and razor imu to produce 2D map. This is the command for online mode:

roslaunch cartographer_ros demo_kinect_2d.launch bag_filename:=subset.bag

Below is the screen shot:

Then, I run those two services to produce pbstream file:

rosservice call /finish_trajectory 0
rosservice call /write_state subset.bag.pbstream

The file is created. However, when I execute command:

roslaunch cartographer_ros assets_writer_kinect.launch bag_filenames:=subset.bag pose_graph_filename:=subset.bag.pbstream

I got the following error:

I0806 23:46:19.241068  7152 configuration_file_resolver.cc:41] Found '/home/sean/sean/cartographer_ws/install_isolated/share/cartographer_ros/configuration_files/assets_writer_kinect.lua' for 'assets_writer_kinect.lua'.
I0806 23:46:19.241536  7152 configuration_file_resolver.cc:41] Found '/home/sean/sean/cartographer_ws/install_isolated/share/cartographer_ros/configuration_files/transform.lua' for 'transform.lua'.
I0806 23:46:19.241559  7152 configuration_file_resolver.cc:41] Found '/home/sean/sean/cartographer_ws/install_isolated/share/cartographer_ros/configuration_files/transform.lua' for 'transform.lua'.
I0806 23:46:19.242890  7152 assets_writer.cc:188] Processing /home/sean/sean/data_repository/cartographer/subset.bag...
I0806 23:46:19.323696  7152 assets_writer.cc:254] Processed 0 of 78.6413 bag time seconds...
W0806 23:46:19.722715  7152 xray_points_processor.cc:147] Not writing output: bounding box is empty.
W0806 23:46:19.723078  7152 xray_points_processor.cc:147] Not writing output: bounding box is empty.
W0806 23:46:19.723129  7152 xray_points_processor.cc:147] Not writing output: bounding box is empty.
W0806 23:46:19.723171  7152 xray_points_processor.cc:147] Not writing output: bounding box is empty.
W0806 23:46:19.723218  7152 xray_points_processor.cc:147] Not writing output: bounding box is empty.
W0806 23:46:19.723268  7152 xray_points_processor.cc:147] Not writing output: bounding box is empty.
W0806 23:46:19.723366  7152 xray_points_processor.cc:147] Not writing output: bounding box is empty.
W0806 23:46:19.723407  7152 xray_points_processor.cc:147] Not writing output: bounding box is empty.
W0806 23:46:19.723450  7152 xray_points_processor.cc:147] Not writing output: bounding box is empty.
I0806 23:46:19.723475  7152 counting_points_processor.cc:43] Processed 0 and finishing.

Can someone explain what cause this error?
Thanks in advance.

@SirVer Why would the asset generation fail like this?

I think I got a similar issue. What file size do you have, @SeanGuoXuan ? Mine is 98bytes

@mojovski I also get a file with size of 98bytes. Have you found out anything? I am trying to write out a pbstream file containing the state created from a 3.5 minute short bag record. Parameters set so that only one submap should be built.

Yes, Pass true for saving unfinished submaps

Yes, pass true for saving unfinished submaps


autofocus isn't supported

The select box when in auto-focus doesn't have any different style than when its not in auto-focus.
This might create confusion in the users.
Reproduction online
Not only that, but it also doesn't seem to work at all in Firefox. By neither using the autofocus attribute or calling the focus function.
Using the arrow keys won't change the selection.

You should notice that the original (now hidden) <select> is being focused instead of Select2.

As of version 4.0.0 I did the following modifications:
In _registerEvents function, for autofocus:
          this.on('focus', function () {
              self.$container.addClass('select2-container--focus');

              // ADDED: auto opening on focus
              if (!self.$container.hasClass('select2-container--disabled') && !self.isOpen()) {
                  self.open();
              }
          });

In this.on('keypress'), to use tab correctly
        else if (key === KEYS.TAB) {
                      // ADDED: use tab to select and then jump to next field
                      self.trigger('results:select');

                  }

One workaround is:
$("[autofocus] + .select2 .select2-selection").focus();

The solution provided by @arturoribes works great in select2 4.0.3.
@kevin-brown Is possible to include him solution in the next version of select2?

@kevin-brown Any news about this issue? The solution provided by @arturoribes (https://github.com/select2/select2/issues/3696#issuecomment-152150121) seems to be a simple and functional fix.

@kevin-brown @alexweissman Any news about this issue?

Is there an open pull request?  I don't know much about autofocus.

@kevin-brown @alexweissman Any news about this issue?

@arturoribes @alvarotrigo PR merged, in next release this change will be available for all users :tada:


How can I customize the lease template?

This project seems very helpful for me to manage my tenets in my house. However, I have my own customized lease template. How can I create lease based on my own template?

Currently the lease template is in french... I haven't find the time so for to make it more generic.
Actually, all the templates are here: https://github.com/camelaissani/loca/tree/master/backend/pages/print/view
You might adapt the contract by modifiying this page https://github.com/camelaissani/loca/blob/master/backend/pages/print/view/contract.ejs
and eventually change the document header and footer:

https://github.com/camelaissani/loca/blob/master/backend/pages/print/view/partials/header.ejs
https://github.com/camelaissani/loca/blob/master/backend/pages/print/view/partials/footer.ejs

It's not convenient but I think about make that more customizable by relying on markdown templates.

Thank you for pointing me to the right direction. I think this is a good start for adapting the project for my usecase.
Yeah, I think markdown templates would be more generic and easier to customize.

I'm working on a solution.

This is currently addressed in https://github.com/microrealestate/microrealestate/issues/14


5.0b1 py2neo and 4.1.1 .. a quick fix ? do I back to a older py2neo version ?  doc manager connect issues- Customer on my back

leveridge@leveridge-PowerEdge-R710:~$ py2neo version
5.0b1
leveridge@leveridge-PowerEdge-R710:~$ mongo-connector -m localhost:27017 -t http://localhost:7474/db/data -d neo4j_doc_manager
Traceback (most recent call last):
File "/home/leveridge/.local/lib/python3.6/site-packages/mongo_connector/connector.py", line 1098, in import_dm_by_path
module = import(package, fromlist=(package,))
File "/home/leveridge/.local/lib/python3.6/site-packages/mongo_connector/doc_managers/neo4j_doc_manager.py", line 16, in
from py2neo import Graph, authenticate
File "/home/leveridge/.local/lib/python3.6/site-packages/py2neo/init.py", line 19, in
from py2neo.data import *
File "/home/leveridge/.local/lib/python3.6/site-packages/py2neo/data/init.py", line 25, in
from py2neo.collections import is_collection, SetView, PropertyDict
ImportError: cannot import name 'PropertyDict'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/leveridge/.local/bin/mongo-connector", line 11, in
sys.exit(main())
File "/home/leveridge/.local/lib/python3.6/site-packages/mongo_connector/util.py", line 107, in wrapped
func(*args, **kwargs)
File "/home/leveridge/.local/lib/python3.6/site-packages/mongo_connector/connector.py", line 1409, in main
conf.parse_args()
File "/home/leveridge/.local/lib/python3.6/site-packages/mongo_connector/config.py", line 125, in parse_args
option, dict((k, values.get(k)) for k in option.cli_names)
File "/home/leveridge/.local/lib/python3.6/site-packages/mongo_connector/connector.py", line 1122, in apply_doc_managers
DocManager = import_dm_by_name(dm["docManager"])
File "/home/leveridge/.local/lib/python3.6/site-packages/mongo_connector/connector.py", line 1089, in import_dm_by_name
return import_dm_by_path(full_name)
File "/home/leveridge/.local/lib/python3.6/site-packages/mongo_connector/connector.py", line 1109, in import_dm_by_path
"vailable doc managers. ImportError:\n%s" % (package, exc)
mongo_connector.errors.InvalidConfiguration: Could not import mongo_connector.doc_managers.neo4j_doc_manager. It could be that this doc manager has been moved out of this project and is maintained elsewhere. Make sure that you have the doc manager installed alongside mongo-connector. Check the README for a list of available doc managers. ImportError:
cannot import name 'PropertyDict'

Is this repository maintained?
Did you find a solution to this issue? It's been quite a while since this has been raised.


Refs #33374 -- Adjusted full match condition handling.

Adjusting WhereNode.as_sql ensures that inlined references to full match conditions are properly handled even when not directly selected.
~It could also have been solved by introducing a new FullResultSet exception but the usage of a constant string seemed less invasive as there might usage of WhereNode in the wild that don't expect a new exception to be raised.~
After tinkering with it a bit it seems that basing the work on a FullResultSet exception makes a way nicer interface which also makes it clear in which location full matches are not appropriately handled. That's how I discovered the lack of coverage for full matches in Aggregate.filter.
Raising exceptions also make it possible to optimize CASE WHEN in a nicer way when dealing with cases full matches.
I kept the string constant based approach as the second commit to demonstrate the alternative approach (it passes the whole suite including Oracle) but I greatly prefer the exception based one so commits likely need to be squashed.

buildbot, test on oracle.

buildbot, test on oracle.

buildbot, test on oracle.

buildbot, test on oracle.

buildbot, test on oracle.

buildbot, test on oracle.

buildbot, test on oracle.

buildbot, test on oracle.

buildbot, test on oracle.

buildbot, test on oracle.

@charettes Thanks :+1: We should also adjust SQLDeleteCompiler on MySQL, because fast-deletion with filters that match everything crashes, e.g.:
diff --git a/tests/delete/tests.py b/tests/delete/tests.py
index d03492bb6f..836e1e4b12 100644
--- a/tests/delete/tests.py
+++ b/tests/delete/tests.py
@@ -709,7 +714,7 @@ class FastDeleteTests(TestCase):
         a = Avatar.objects.create(desc="a")
         User.objects.create(avatar=a)
         u2 = User.objects.create()
-        self.assertNumQueries(1, User.objects.filter(avatar__desc="a").delete)
+        self.assertNumQueries(1, User.objects.filter(models.Q(avatar__desc="a") | ~models.Q(avatar__pk__in=[])).delete)
         self.assertEqual(User.objects.count(), 1)
         self.assertTrue(User.objects.filter(pk=u2.pk).exists())

crashes:
Traceback (most recent call last):
  File "/repo/django/tests/delete/tests.py", line 717, in test_fast_delete_joined_qs
    self.assertNumQueries(1, User.objects.filter(models.Q(avatar__desc="a") | ~models.Q(avatar__pk__in=[])).delete)
  File "/repo/django/django/test/testcases.py", line 1358, in assertNumQueries
    func(*args, **kwargs)
  File "/repo/django/django/db/models/query.py", line 1164, in delete
    deleted, _rows_count = collector.delete()
  File "/repo/django/django/db/models/deletion.py", line 472, in delete
    count = qs._raw_delete(using=self.using)
  File "/repo/django/django/db/models/query.py", line 1186, in _raw_delete
    cursor = query.get_compiler(using).execute_sql(CURSOR)
  File "/repo/django/django/db/models/sql/compiler.py", line 1522, in execute_sql
    sql, params = self.as_sql()
  File "/repo/django/django/db/backends/mysql/compiler.py", line 46, in as_sql
    where_sql, where_params = self.compile(where)
  File "/repo/django/django/db/models/sql/compiler.py", line 528, in compile
    sql, params = node.as_sql(self, self.connection)
  File "/repo/django/django/db/models/sql/where.py", line 170, in as_sql
    raise FullResultSet
django.core.exceptions.FullResultSet

I pushed the first commit to the #16267.

@felixxm nice catch, and thanks for pushing the first commit! I'll push adjustments.

@felixxm squashed commits and made adjustments to the MySQL delete compiler + test.

buildbot, test on oracle.

@charettes Thanks :+1: I moved test_fast_delete_full_match to a separate commit and documented FullResultSet.


process.on('uncaughtException') no longer catches all exception in express

Hi, after using aws-serverless-express, i noticed that node process.on('uncaughtException') of our previous express application doesn't catch all exception from async callbacks anymore. Is there another way to catch all exception that cause the server to crash?
This happens when we use the "request" model and an uncaught exception happens in the callback of an request.

Hi @than-speedline, could you provide a minimum reproducible example?

unhandledException is not a native event. Try using uncaughtException https://nodejs.org/api/process.html#process_event_uncaughtexception

Sorry, i meant uncaughtException. I'll try to create a simple test case, please give me a sec.

Hi, i manage to get an example working. Here is the link to the gist.
https://gist.github.com/than-speedline/f26b0247fbb35dcf465195b06cc97bdb
The exception would be caught locally by runnin app.js, but with the lambda.js and running in a lambda function, the process would instead exit.

Just an update, I realized that Lambda doesn't support uncaughtException properly. So i guess this is not the problem with this library. This issue should probably be closed.
P.S. Someone has already asked uncaughtException in the form, here is the link

Thanks for the update!

 That's unfortunate, given that Googlers aren't able to see your solution. 😅


Proposed audience strategy for website refresh

Audience Personas
When writing content for cdevents.dev, it is important to understand who this site is intended to serve and to ensure that the needs of each group are being addressed with appropriate information.
We anticipate that the primary audiences for this site are:

CI/CD Tool Maintainers (Vendors / FOSS project members)
Decision-makers, evaluating CI/CD tooling
End-Customer Engineers, implementing CI/CD instances
Browsing audience, looking to understand more about best practice

Let's understand the needs of each group in more detail.
CI/CD Tool Maintainers
As a CI/CD Tool Maintainer, I work for a commercial CI/CD Tool Vendor, or am a contributor to a FOSS project that maintains a CI/CD tool.
I am highly technical and understand the benefits of standardization and interoperability.
My primary interest is in understanding the specification so that I can implement functionality in my product correctly.
I may be a producer of events who is maintaining a CI/CD platform tool, or I may be a consumer of events who maintains an associated CI/CD product such as a metrics collection system or visualizer.
Decision-makers
I work at an End-Customer organization and am currently evaluating CI/CD tooling options in order to support our transition to Continuous Delivery.
I may come from a technical or a commercial background and am at an early stage of familiarity with the challenges associated with Continuous Delivery.
I need help to understand how best to differentiate between all the tooling options available to me.
End-Customer Engineers
I work at an End-Customer organization and am responsible for implementing our internal CI/CD instances.
I am technical and understand some of the challenges in the Continuous Delivery space but want to learn more about how CDEvents make my life easier.
Browsing audience
I am interested in CI/CD and Continuous Delivery and am looking to understand more about best practice in this space.
I have been reading the CDF Best Practices Guide and was referred here from there. I may be more or less technical in background and would like to understand where the value in CDEvents lies for me.
Audience Strategy
By looking at our personas, we can see that we have two basic narrative tracks that we must cater for:

There is a highly technical audience that needs very detailed and accurate specifications
The remainder of the audience remains to be convinced and will need a story that they can follow to their satisfaction

CI/CD Tool Maintainers and a large proportion of the End-Customer Engineers will want to approach the site as reference documentation. For this audience, we need clear links that take them immediately to the detail, structured in such a way that they can find what they need, but also have visibility of the full scope of the information available, to help them to size the effort facing them.
The intent is for this audience to have a pleasant experience, implementing CDEvents.
Decision-makers and the browsing audience are likely not bought into the content upon first arrival, so we have perhaps ten to twenty seconds to persuade them to invest more time in order to learn what is of value to them in the content. This requires a succinct and friendly landing page that pitches a clear message above the fold. This should then expand into a non-technical narrative providing the basic concepts before leading into the detail, with the expectation that few from this audience will consume all of the information themselves.
The intent is for this audience to take away key learnings that they will use to support future decisions, and to direct others to visit to access the details.
It is additionally expected that some CI/CD Tool Maintainers and End-Customer Engineers will benefit from the conceptual narrative that will enable them to easily become evangelists for the CDEvents approach. CI/CD Tool Maintainers may need help in communicating to their own customers the value-add of CDEvents support in their systems. End-Customer Engineers are often in a situation where they have to pitch a technology to their Decision-makers to get buy-in for a given approach, so simple explanations of commercial value can be very helpful to this audience.
This strategy must extend beyond the learning journey into the community space. Once we have explained the specification to the CI/CD Tool Maintainers, this must be reinforced with a call to action to implement the spec within their product and connection to appropriate additional support and community resources to help make this as easy as possible.
For all of our audience, we would additionally like to create a call to action to become contributors themselves and to add to the shared value.

Audience Personas
When writing content for cdevents.dev, it is important to understand who this site is intended to serve and to ensure that the needs of each group are being addressed with appropriate information.
We anticipate that the primary audiences for this site are:

CI/CD Tool Maintainers (Vendors / FOSS project members)
Decision-makers, evaluating CI/CD tooling
End-Customer Engineers, implementing CI/CD instances
Browsing audience, looking to understand more about best practice

Let's understand the needs of each group in more detail.
CI/CD Tool Maintainers
As a CI/CD Tool Maintainer, I work for a commercial CI/CD Tool Vendor, or am a contributor to a FOSS project that maintains a CI/CD tool.
I am highly technical and understand the benefits of standardization and interoperability.
My primary interest is in understanding the specification so that I can implement functionality in my product correctly.
I may be a producer of events who is maintaining a CI/CD platform tool, or I may be a consumer of events who maintains an associated CI/CD product such as a metrics collection system or visualizer.
Decision-makers
I work at an End-Customer organization and am currently evaluating CI/CD tooling options in order to support our transition to Continuous Delivery.

I think we should limit ourselves here to the use case of transitioning to CD.
Many organisations are at different stages in their CD journey and they may be looking at how to advance further, how to improve on specific DevOps metrics, and how to fix existing bottlenecks and inefficiencies.
Is "End-Customer" different from "End-User"?
End-user is an organisation that adopts CI/CD tools but does not resell them.
What does end-customer refer to in this context?

I may come from a technical or a commercial background and am at an early stage of familiarity with the challenges associated with Continuous Delivery.
I need help to understand how best to differentiate between all the tooling options available to me.
End-Customer Engineers
I work at an End-Customer organization and am responsible for implementing our internal CI/CD instances.
I am technical and understand some of the challenges in the Continuous Delivery space but want to learn more about how CDEvents make my life easier.

It might be worth calling out platform engineers. Event-based architecture and flexible and resilient, but also have a higher degree of complexity, so I expect them to be more common in organisations that have a platform team managing that complexity for all the dev teams.
When a platform team exists, CI/CD engineers may still have to emit CDEvents to fit within the platform, and our documentation should be a good reference for them.

Browsing audience
I am interested in CI/CD and Continuous Delivery and am looking to understand more about best practice in this space.
I have been reading the CDF Best Practices Guide and was referred here from there. I may be more or less technical in background and would like to understand where the value in CDEvents lies for me.
Audience Strategy
By looking at our personas, we can see that we have two basic narrative tracks that we must cater for:

There is a highly technical audience that needs very detailed and accurate specifications
The remainder of the audience remains to be convinced and will need a story that they can follow to their satisfaction

CI/CD Tool Maintainers and a large proportion of the End-Customer Engineers will want to approach the site as reference documentation. For this audience, we need clear links that take them immediately to the detail, structured in such a way that they can find what they need, but also have visibility of the full scope of the information available, to help them to size the effort facing them.
The intent is for this audience to have a pleasant experience, implementing CDEvents.
Decision-makers and the browsing audience are likely not bought into the content upon first arrival, so we have perhaps ten to twenty seconds to persuade them to invest more time in order to learn what is of value to them in the content. This requires a succinct and friendly landing page that pitches a clear message above the fold. This should then expand into a non-technical narrative providing the basic concepts before leading into the detail, with the expectation that few from this audience will consume all of the information themselves.
The intent is for this audience to take away key learnings that they will use to support future decisions, and to direct others to visit to access the details.
It is additionally expected that some CI/CD Tool Maintainers and End-Customer Engineers will benefit from the conceptual narrative that will enable them to easily become evangelists for the CDEvents approach. CI/CD Tool Maintainers may need help in communicating to their own customers the value-add of CDEvents support in their systems. End-Customer Engineers are often in a situation where they have to pitch a technology to their Decision-makers to get buy-in for a given approach, so simple explanations of commercial value can be very helpful to this audience.
This strategy must extend beyond the learning journey into the community space. Once we have explained the specification to the CI/CD Tool Maintainers, this must be reinforced with a call to action to implement the spec within their product and connection to appropriate additional support and community resources to help make this as easy as possible.
For all of our audience, we would additionally like to create a call to action to become contributors themselves and to add to the shared value.

From a best practices perspective, we discourage the use of ‘CD’ abbreviations as too ambiguous. The focus should really be on Continuous Delivery as an overarching methodology because the majority of business value is realised only via that path, so the intermediate task of continuous deployment often causes confusion and ‘failure to take-off’.


fastlane.ci update flow

https://github.com/fastlane/ci/blob/master/docs/use_cases/update_fastlane_ci_via_ruby_gem.md

Yes, I guess this is something we need to solve before a beta release

Working on this now 👍

This is implemented now, a few pieces are missing, in particular asking the user if they want to enable auto-update. Also we have to store the user's selection, so we'd need https://github.com/fastlane/ci/issues/870 as well


Remove build packages, update license

Fixes #1

Checklist

[x] Used a fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)

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


[fix] Fix dashboard details

Changes
Added __exact to the target_link of group_by dashboard
elements, this allows to show the filters in the
target page pre-selected with the chosen value, eg:
When clicking on the applied config status,
not only the page shows all the devices which have
their config applied but also shows the
Configuration Status filter with the "applied"
value already pre-selected (which was not happening
before this change).
Checklist

[x] I have manually tested the proposed changes.
[x] I have written new test cases to avoid regressions. (if necessary)
[x] I have updated the documentation. (e.g. README.rst)

Coverage remained the same at 98.639% when pulling bc688eafa5a17f881c179add80664beddb029c76 on fix-dashboard-details into d17453cdf36e57bdda453ad4eed4100289276a3d on master.


No such file or directory

I already have the file at location but after clicking on publish it says Failed to post to Medium
Returned error message below
"[Errno 2] No such file or directory:

Can you give more specifics on this?
Operating system?
jupyter_to_medium version?
Make sure you've upgraded to version 0.1.1

All latest version till date.

You might be getting the error because of an image file that in the markdown that does not exist. Upgrade to 0.2.2 and you'll get the entire message. This is what caused an error in issue #13.


Add additional column's renderers in TreeTable HOC

Pass Expander, PivotValue and Pivot renderers to column builder in TreeTable HOC.

Could this merge get tagged?


Page sizing issues

Narrow page sizing causes overlaps, cropping, rearranging and disappearance of buttons and fields

still seeing some issues occasionally

include


add better resource manipulation API

deprecates chef_rewind functionality completely and adds a few
more features

So now for code that accumulates state in a resource in the root run_context and does its work via a delayed notification we can:
action :run do
  with_run_context :root do
    edit_resource(:my_thing, "accumulated state") do
      action :nothing
      my_array_property << accumulate_some_stuff
    end
  end
  log "kick it off" do
    notifies :run, "my_thing[accumulated state], :delayed
  end
end

the log resource to kick off the delayed notification is midlly fugly and it feels like there should be some way to create-a-nothing-resource-and-fire-a-delayed-notification in one statement without invoking another resource -- but i think this gets the job done.  the accumulated notifications should all get de-duped.  any nested resources/subcontexts that call this action should bubble their state up into the accumulated resource in the root run_context and whatever the :my_thing resource does should only happen exactly once at the end of the chef-client run.

the chef_rewind editing case is also taken care of here, as well as the case of deleting resources.
i added #find_resource! and #find_resource so that there's a consistent API to use since #resources raises without having a ! on the end of it, so it doesn't really fit this pattern.  also find_resource with a block could be useful to insert a resource with default properties, but not to touch it if it already exists (as opposed to edit_resource which will update the resource if it finds it).

and should be able to convert a definition-based accumulator to a resource like this:
action :run do
  with_run_context :parent do
    edit_resource(:my_thing, "accumulated state") do
      my_array_property << accumulate_some_stuff
    end
  end
end

def after_created
  Array(action).each do |action|
    run_action(action)
  end
end

that forces the resource we're writing to run at compile-time and to edit its parent run_context -- which is all that definition-based accumulators do.  but in the process all the stupidity around the params hash in definitions is avoided, and you get strong validation of your properties on the resource which the params hash completely lacks.

:+1: LGTM

This was already merged but there are some things we should follow up on.


Custom classloader should override findClass, not loadClass

In this article:
https://www.baeldung.com/java-classloaders
You advocate creating a custom classloader by overriding loadClass().
The Javadoc for ClassLoader strongly recommends overriding findClass(), not loadClass(). The findClass() method was defined for the purpose of being overridden in custom classloaders. The loadClass() method is harder to get right than findClass(), if overridden.
Additionally, loadClass() may change in future releases, which may break a custom classloader if it is overridden, depending on how the overridden method is defined.

Thanks for the feedback @lukehutch - it's not on my internal TODO list to look into and revisit the article.


tensorrt

hello
i have follow your steps to convert baseline stark_st2 to onnx successfully,
now i want to convert the onnx to tensorrt model,can you give me some advice?
if possible, please list your relevant environment (tensorrt/cuda/etc .)
thank you sincerely!

Hi, after converting the original PyTorch model to the ONNX model, you don't need to further convert it to TensorRT model.
Actually, onnxruntime has tensorrt execution provider (ONNXRUNTIME/execution-providers/TensorRT). But to use this function, you have to compile ONNXRUNTIME from source and this process is not too easy. If you have an interest in using ONNXRUNTIME TensorRT execution provider, we can discuss further.

Hi @MasterBin-IIAU
Thanks for amazing work. I was interested in converting original start_st2 model to onnx and then preferably to tensorrt. I couldn't find the instructions for those.
Any pointers on this will be really helpful.
Thanks in advance.

@trathpai Hi, thanks for the appreciation of our work. ONNXRuntime has a TensorRT execution provider. This link (https://onnxruntime.ai/docs/execution-providers/TensorRT-ExecutionProvider.html) may give you some help. But from my experience, TensorRT execution provider would bring too much improvement of speed compared with CUDA execution provider.


test: set a max of the number of functions which are allowed to run

Description
References

Codecov Report

Merging #563 (0b36ce7) into main (21978a1) will decrease coverage by 31.88%.
Report is 236 commits behind head on main.
The diff coverage is 33.78%.

@@             Coverage Diff             @@
##             main     #563       +/-   ##
===========================================
- Coverage   83.07%   51.20%   -31.88%
===========================================
  Files         456      321      -135
  Lines       10418     6404     -4014
===========================================
- Hits         8655     3279     -5376
- Misses       1438     3027     +1589
+ Partials      325       98      -227

Files
Coverage Δ

...ivedMessages/ArchivedMessageGetDocumentListener.cs
0.00% <ø> (ø)

source/Api/Common/HttpHeadersExtensions.cs
0.00% <ø> (ø)

...iddleware/Authentication/ActorForAuthentication.cs
0.00% <ø> (ø)

...ntication/Bearer/BearerAuthenticationMiddleware.cs
0.00% <ø> (ø)

...MarketActors/MarketActorAuthenticatorMiddleware.cs
0.00% <ø> (ø)

...ation/Middleware/Correlation/CorrelationContext.cs
66.66% <ø> (ø)

.../Middleware/Correlation/CorrelationIdMiddleware.cs
0.00% <ø> (ø)

...iguration/Middleware/Correlation/UserProperties.cs
0.00% <ø> (ø)

...figuration/Middleware/FunctionContextExtensions.cs
0.00% <ø> (ø)

...rce/Api/Configuration/ServiceBusMessageMetadata.cs
0.00% <ø> (ø)

... and 76 more

... and 415 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Red color in csharp

Very nice color combination.
But for the csharp files, i found they use a lot of the red color, which looks like an error on the source.
Is it possible to replace the use of red?.

Thanks for pointing this out

#3


Make DEFAULT_DEADLOCK_DETECTION_TIMEOUT configurable

Is your feature request related to a problem? Please describe.
We have a custom data converter that can get a little slow due to certain cluster conditions and we sometimes trip over this 1s timeout.
Describe the solution you'd like
Make DEFAULT_DEADLOCK_DETECTION_TIMEOUT configurable, see https://github.com/temporalio/sdk-java/blob/master/temporal-sdk/src/main/java/io/temporal/internal/sync/DeterministicRunner.java#L37
Describe alternatives you've considered
Forking 😅

Yes, I agree we should do it. Let's add a new worker option.


[Discussion] Output format parameter

Hi,
Is there an option for specifying the output format (e.g. mp3 instead of wav) using the command line tool?
Regards,

Hi. Yes, the output format can be specified with the option -c. E.G. -c mp3. Hope that helps.
Sent from my iPhone

On 08 Dec 2019, at 5:43 AM, demiantres<EMAIL_ADDRESS>wrote:
Hi,
Is there an option for specifying the output format (e.g. mp3 instead of wav) using the command line tool?
Regards,
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Thanks!


riscv: tl321x: update west.yaml.

update west.yaml to save ram for tl321x.

The following west manifest projects have been modified in this Pull Request:

Name
Old Revision
New Revision
Diff

hal_telink
https://github.com/telink-semi/hal_telink/commit/1d22efe9ab5b371248aae09cd41ff4db25406f43 (develop_customer,develop)
https://github.com/telink-semi/hal_telink/pull/118
telink-semi/hal_telink#118/files

Note: This message is automatically posted and updated by the Manifest GitHub Action.


fix: create new Counter rather than mutate CounterVec

I made a bit of a mistake yesterday when changing the cleanup. While it should have correctly cleared the metrics that we export, I forgot that CounterVec keeps its own map of Counter (which wouldn't have expired). Sorry about that!
This change fixes that so that we create the Counters separately. Now the CounterVec is only used for generating the Desc(). This also adds a test to verify behaviour, although it's a bit awful as it relies on time passing for expiration, so let's see if it's flaky or not.
Previously we used the CounterVec to create the Counter, which has the side-effect of leaving that Counter in the map inside of CounterVec, which in addition to leaking memory will also mean that we will inadvertently re-use a counter that is not 0 after it was meant to expire.

The SonarCloud warnings seem to be about the test - it thinks the "hard-coded" IP address in there is of concern.


Automatically run the 'game'

Is there a way to have the status automatically run or run when I have a certain app open so I don't need to keep PyCharm open?

You can use the terminal if you don't want to use PyCharm.
For displaying specific activity you need to run the script.
If discord supports your app (for example Spotify it will automatically take it and put it in your activity status)

How do I run it with the terminal if I'm using Python 3.9? python 3.9 example.py doesn't work

Just go to the folder in which example.py is present through the terminal. Then use the command python3 example.py


Investigate why Keyvault live tests are consistently failing

The build summary for Keyvault live tests can be found here: https://dev.azure.com/azure-sdk/internal/_build?definitionId=504&_a=summary. There has only been 1 passing live test run in the past month.

This issue can now be closed. KV live test builds were fixed.


Prime and double prime don't work when used together as a superscript

This LaTex simply doesn't render: ^\prime ^{\prime\prime}.
I understand that the context of usage of those symbols is not exactly valid, but correct me if I'm wrong: typesetting library shouldn't care about the context. It should just render.

The expression ^\prime ^{\prime\prime} doesn't compile in LaTeX either, because it is not a valid expression in the LaTeX.  It is a double exponent (the two ^ in a row are not allowed), so LaTeX throws an error for this.  So does MathJax.
Perhaps you mean ^\prime {}^{\prime\prime}?

@dpvc thanks for that! I indeed missed this fact, closing the issue then.


won't stop when there is error

Applies To

[X] Notebooks (.ipynb files)
[ ] Interactive Window and/or Cell Scripts (.py files with #%% markers)

What happened?
When I have the following errors:  typo or use an undefined variable, functions not defined, cells not run prior.
The whole notebook will keep running, can't interrupt the single cell, have to restart the kernel.
VS Code Version
1.64.2
Jupyter Extension Version
v2022.1.1301854968
Jupyter logs
No response
Coding Language and Runtime Version
Python3.8.10
Language Extension Version (if applicable)
No response
Anaconda Version (if applicable)
No response
Running Jupyter locally or remotely?
No response

Thanks for the bug.
Can you give an example notebook that will keep running cells? For me this notebook will stop after the first cell:

How are you running all of the cells? With run all? Or with selecting them and clicking the run button on each?

import numpy as np
data=np.fromfile("fileNotExist.data",dtype=np.float32)

Can you include your jupyter output log? I'm wondering if the kernel just crashed instead. (that cell comes back immediately for me).

Info 11:40:20: Execute Cells request 24
Info 11:40:20: Execute Cell 24 ~/data/cleared1800x3600/sz2_study/test.ipynb
Warn 11:40:21: StdErr from Kernel Process [IPKernelApp] ERROR | Exception in message handler:
Traceback (most recent call last):
File "/home/jp/.local/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 3251, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "/tmp/ipykernel_112112/4155688225.py", line 2, in
data=np.fromfile("fileNotExist.data",dtype=np.float32)
FileNotFoundError: [Errno 2] No such file or directory: 'fileNotExist.data'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/jp/.local/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 1934, in showtraceback
stb = value.render_traceback()
AttributeError: 'FileNotFoundError' object has no attribute 'render_traceback'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/jp/.local/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 3191, in run_ast_nodes
if await self.run_code(code, result, async_=asy):
File "/home/jp/.local/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 3268, in run_code
self.showtraceback(running_compiled_code=True)
File "/home/jp/.local/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 1936, in showtraceback
stb = self.InteractiveTB.structured_traceback(etype,
File "/home/jp/.local/lib/python3.8/site-packages/IPython/core/ultratb.py", line 1105, in structured_traceback
return FormattedTB.structured_traceback(
File "/home/jp/.local/lib/python3.8/site-packages/IPython/core/ultratb.py", line 999, in structured_traceback
return VerboseTB.structured_traceback(
File "/home/jp/.local/lib/python3.8/site-packages/IPython/core/ultratb.py", line 852, in structured_traceback
formatted_exception = self.format_exception_as_a_whole(etype, evalue, etb, number_of_lines_of_context,
File "/home/jp/.local/lib/python3.8/site-packages/IPython/core/ultratb.py", line 786, in format_exception_as_a_whole
records = self.get_records(etb, number_of_lines_of_context, tb_offset)
File "/home/jp/.local/lib/python3.8/site-packages/IPython/core/ultratb.py", line 830, in get_records
style = stack_data.style_with_executing_node(style, "bg:ansiyellow")
File "/home/jp/.local/lib/python3.8/site-packages/stack_data/core.py", line 412, in style_with_executing_node
class NewStyle(style):
File "/usr/lib/python3/dist-packages/pygments/style.py", line 91, in new
ndef[4] = colorformat(styledef[3:])
File "/usr/lib/python3/dist-packages/pygments/style.py", line 58, in colorformat
assert False, "wrong color format %r" % text
AssertionError: wrong color format 'ansiyellow'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/jp/.local/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 1934, in showtraceback
stb = value.render_traceback()
AttributeError: 'AssertionError' object has no attribute 'render_traceback'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/jp/.local/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 2814, in _run_cell
return runner(coro)
File "/home/jp/.local/lib/python3.8/site-packages/IPython/core/async_helpers.py", line 129, in _pseudo_sync_runner
coro.send(None)
File "/home/jp/.local/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 3012, in run_cell_async
has_raised = await self.run_ast_nodes(code_ast.body, cell_name,
File "/home/jp/.local/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 3210, in run_ast_nodes
self.showtraceback()
File "/home/jp/.local/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 1936, in showtraceback
stb = self.InteractiveTB.structured_traceback(etype,
File "/home/jp/.local/lib/python3.8/site-packages/IPython/core/ultratb.py", line 1105, in structured_traceback
return FormattedTB.structured_traceback(
File "/home/jp/.local/lib/python3.8/site-packages/IPython/core/ultratb.py", line 999, in structured_traceback
return VerboseTB.structured_traceback(
File "/home/jp/.local/lib/python3.8/site-packages/IPython/core/ultratb.py", line 852, in structured_traceback
formatted_exception = self.format_exception_as_a_whole(etype, evalue, etb, number_of_lines_of_context,
File "/home/jp/.local/lib/python3.8/site-packages/IPython/core/ultratb.py", line 786, in format_exception_as_a_whole
records = self.get_records(etb, number_of_lines_of_context, tb_offset)
File "/home/jp/.local/lib/python3.8/site-packages/IPython/core/ultratb.py", line 830, in get_records
style = stack_data.style_with_executing_node(style, "bg:ansiyellow")
File "/home/jp/.local/lib/python3.8/site-packages/stack_data/core.py", line 412, in style_with_executing_node
class NewStyle(style):
File "/usr/lib/python3/dist-packages/pygments/style.py", line 91, in new
ndef[4] = colorformat(styledef[3:])
File "/usr/lib/python3/dist-packages/pygments/style.py", line 58, in colorformat
assert False, "wrong color format %r" % text
AssertionError: wrong color format 'ansiyellow'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/jp/.local/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 1934, in showtraceback
stb = value.render_traceback()
AttributeError: 'AssertionError' object has no attribute 'render_traceback'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/jp/.local/lib/python3.8/site-packages/ipykernel/kernelbase.py", line 357, in dispatch_shell
await result
File "/home/jp/.local/lib/python3.8/site-packages/ipykernel/kernelbase.py", line 652, in execute_request
reply_content = await reply_content
File "/home/jp/.local/lib/python3.8/site-packages/ipykernel/ipkernel.py", line 359, in do_execute
res = shell.run_cell(code, store_history=store_history, silent=silent)
File "/home/jp/.local/lib/python3.8/site-packages/ipykernel/zmqshell.py", line 532, in run_cell
return super().run_cell(*args, **kwargs)
File "/home/jp/.local/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 2768, in run_cell
result = self._run_cell(
File "/home/jp/.local/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 2819, in _run_cell
self.showtraceback(running_compiled_code=True)
File "/home/jp/.local/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 1936, in showtraceback
stb = self.InteractiveTB.structured_traceback(etype,
File "/home/jp/.local/lib/python3.8/site-packages/IPython/core/ultratb.py", line 1105, in structured_traceback
return FormattedTB.structured_traceback(
File "/home/jp/.local/lib/python3.8/site-packages/IPython/core/ultratb.py", line 999, in structured_traceback
return VerboseTB.structured_traceback(
File "/home/jp/.local/lib/python3.8/site-packages/IPython/core/ultratb.py", line 852, in structured_traceback
formatted_exception = self.format_exception_as_a_whole(etype, evalue, etb, number_of_lines_of_context,
File "/home/jp/.local/lib/python3.8/site-packages/IPython/core/ultratb.py", line 786, in format_exception_as_a_whole
records = self.get_records(etb, number_of_lines_of_context, tb_offset)
File "/home/jp/.local/lib/python3.8/site-packages/IPython/core/ultratb.py", line 830, in get_records
style = stack_data.style_with_executing_node(style, "bg:ansiyellow")
File "/home/jp/.local/lib/python3.8/site-packages/stack_data/core.py", line 412, in style_with_executing_node
class NewStyle(style):
File "/usr/lib/python3/dist-packages/pygments/style.py", line 91, in new
ndef[4] = colorformat(styledef[3:])
File "/usr/lib/python3/dist-packages/pygments/style.py", line 58, in colorformat
assert False, "wrong color format %r" % text
AssertionError: wrong color format 'ansiyellow'

Jupyter suggested the following issue after I restart the kernel
https://github.com/ipython/ipython/issues/2049
Info 11:42:04: Restart requested file:///home/jp/data/cleared1800x3600/sz2_study/test.ipynb
Info 11:42:04: Restart kernel execution
Info 11:42:04: Cancel pending cells
Info 11:42:04: Starting raw kernel Python 3.8.10 64-bit
Info 11:42:04: installMissingDependencies /bin/python3
Info 11:42:04: IPykernel found previously in this environment /bin/python3
Info 11:42:04: Restarting c83d0faa-d2d3-4390-9597-8d87333d9932
Info 11:42:04: Cancel all remaining cells true || Idle
Info 11:42:04: Cancel pending cells
Info 11:42:04: Cell 24 executed with state Idle
Info 11:42:04: Kernel launching with ports 9000,9001,9002,9003,9004. Start port is 9000
Info 11:42:04: No custom variables for Kernel as interpreter is not conda, but is Global
Info 11:42:04: Process Execution: > /bin/python3 -c "import ipykernel; print(ipykernel.version); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.file)"

/bin/python3 -c "import ipykernel; print(ipykernel.version); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.file)"
Info 11:42:05: Process Execution: > /bin/python3 -m ipykernel_launcher --ip=<IP_ADDRESS> --stdin=9003 --control=9001 --hb=9000 --Session.signature_scheme="hmac-sha256" --Session.key=b"17912dd5-b363-441b-be78-879b30f1e2a4" --shell=9002 --transport="tcp" --iopub=9004 --f=/tmp/tmp-107874q1skdt6gXvEK.json
/bin/python3 -m ipykernel_launcher --ip=<IP_ADDRESS> --stdin=9003 --control=9001 --hb=9000 --Session.signature_scheme="hmac-sha256" --Session.key=b"17912dd5-b363-441b-be78-879b30f1e2a4" --shell=9002 --transport="tcp" --iopub=9004 --f=/tmp/tmp-107874q1skdt6gXvEK.json
Info 11:42:05: Process Execution: cwd: ~/data/cleared1800x3600/sz2_study
cwd: ~/data/cleared1800x3600/sz2_study
Info 11:42:05: ipykernel version 6.8.0 for /bin/python3
Info 11:42:05: ipykernel location ~/.local/lib/python3.8/site-packages/ipykernel/init.py for /bin/python3
Warn 11:42:05: StdErr from Kernel Process /home/jp/.local/lib/python3.8/site-packages/traitlets/traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.
warn(

Warn 11:42:05: StdErr from Kernel Process /home/jp/.local/lib/python3.8/site-packages/traitlets/traitlets.py:2157: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '17912dd5-b363-441b-be78-879b30f1e2a4' instead of 'b"17912dd5-b363-441b-be78-879b30f1e2a4"'.
warn(
Info 11:42:05: Kernel Output: NOTE: When using the ipython kernel entry point, Ctrl-C will not work.
To exit, you will have to explicitly quit this process, by either sending
"quit" from a client, or using Ctrl-\ in UNIX-like environments.
To read more about this, see https://github.com/ipython/ipython/issues/2049
To connect another client to this kernel, use:
--existing /tmp/tmp-107874q1skdt6gXvEK.json
Info 11:42:06: Got new session 8de9dd1e-5095-47ab-ba99-971e996dd784
Info 11:42:06: Started new restart session
Info 11:42:06: Dispose Kernel process
Error 11:42:06: Error in waiting for cell to complete [Error: Canceled future for execute_request message before replies were done
at t.KernelShellFutureHandler.dispose (/home/jp/.vscode/extensions/ms-toolsai.jupyter-2022.1.1301854968/out/client/extension.js:51:432353)
at /home/jp/.vscode/extensions/ms-toolsai.jupyter-2022.1.1301854968/out/client/extension.js:66:307599
at Map.forEach ()
at y._clearKernelState (/home/jp/.vscode/extensions/ms-toolsai.jupyter-2022.1.1301854968/out/client/extension.js:66:307585)
at y.dispose (/home/jp/.vscode/extensions/ms-toolsai.jupyter-2022.1.1301854968/out/client/extension.js:66:301017)
at /home/jp/.vscode/extensions/ms-toolsai.jupyter-2022.1.1301854968/out/client/extension.js:51:194444
at t.swallowExceptions (/home/jp/.vscode/extensions/ms-toolsai.jupyter-2022.1.1301854968/out/client/extension.js:16:2495)
at dispose (/home/jp/.vscode/extensions/ms-toolsai.jupyter-2022.1.1301854968/out/client/extension.js:51:194423)
at t.RawSession.dispose (/home/jp/.vscode/extensions/ms-toolsai.jupyter-2022.1.1301854968/out/client/extension.js:113:303296)]
Info 11:42:06: Executing silently Code (idle) = import sys\nprint(sys.executable)
Info 11:42:06: Executing silently Code (completed) = import sys\nprint(sys.executable)
Info 11:42:06: UpdateWorkingDirectoryAndPath in Kernel
Info 11:42:06: Executing silently Code (idle) = import site\nsite.addsitedir(site.getusersitepackages())\nimport os\nimport sys\n%cd "/home/jp/data/clea
Info 11:42:06: Executing silently Code (completed) = import site\nsite.addsitedir(site.getusersitepackages())\nimport os\nimport sys\n%cd "/home/jp/data/clea
Info 11:42:06: Waiting for idle on (kernel): 8de9dd1e-5095-47ab-ba99-971e996dd784 -> idle
Info 11:42:06: Finished waiting for idle on (kernel): 8de9dd1e-5095-47ab-ba99-971e996dd784 -> idle

Yeah the kernel crashed. Same issue as this one:
https://github.com/ipython/ipython/issues/12704
Your python environment is kinda mismatched. You have Python 3.8 with a much newer IPython. They're likely not compatible.
You could try:

Switching to Python 3.10
Upgrading IPython to the latest bits (python -m pip install --upgrade IPython and python -m pip install --upgrade ipykernel))


delete unnecessary alibaba tests

testing duration is very long. i think we can remove many tests of the alibaba test suite because we only use a subpart of the hole project and we test it in our project anyways

I reviewed the tests implemented by alibaba. It seams that only a few tests can be deleted without having problems later on. Anyhow, this tests are located in the blob-store and the object-composition and for me, the do not seem very time consuming. I would rather not remove any test from the repository-object, because I think that most of them are useful and helped us very often locating issues produced by anno4j.


CUSTOM AuthorizationPolicy filter Order

Describe the feature request
This issue is related to https://github.com/istio/istio/issues/45511 and https://github.com/istio/istio/issues/47255
Creating a new issue because the latter has been closed and the first one is not seeing any progress.
Current status:
- Metadata Exchange
- CUSTOM Authz <-- move this after Authz
- WASM Authn
- Authn
- WASM Authz
- Authz
- WASM Stats
- Stats
- WASM unspecified

From a conceptual stand point, we're using AuthorizationPolicy so this this is authz and should at least run in the authz phase, not at the very first of the filter chain.
From an architectural stand point, we're not really interested on having invalid traffic (unauthenticated or unauthorized) hit our ext_authz server, which is currently possible because CUSTOM authz policies are placed at the very first of the filter chain, so nothing stops that traffic from generating requests to our ext_authz server. We also want to be able to use information populated by jwt filters in CUSTOM authz, which should totally make sense since authz is supposed to need information form authn and we don't really want to implement authn again in our ext_authz server.
Desired:
- Metadata Exchange
- WASM Authn
- Authn
- WASM Authz
- Authz
- CUSTOM Authz <-- moved
- WASM Stats
- Stats
- WASM unspecified

I realize that changing this ordering can break some setupd, I think I read some comments of pleople saying that current ordering allows to use ext_authz as an authenticator, though it probably should not be the intended use case.
Maybe we want to add a field to AuhtorizationPolicy to be able to customize the ordering according to the use case?
Describe alternatives you've considered
Using EnvoyFilter to configure filters ourselves
Affected product area (please put an X in all that apply)
[ ] Ambient
[ ] Docs
[ ] Dual Stack
[ ] Installation
[x] Networking
[ ] Performance and Scalability
[ ] Extensions and Telemetry
[x] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
Affected features (please put an X in all that apply)
[ ] Multi Cluster
[ ] Virtual Machine
[ ] Multi Control Plane
Additional context

@howardjohn @kyessenov what do you think about this? I could open a PR to add a filed to AuthorizationPolicy to be able to customize the order if that's desirable, or maybe we could use an annotation.

I think this would break a lot of cases, so at best this could be an option IIUC the use cases correctly

I came across this issue from our Istio slack, I thought it was a bug initially as for me, it was kind of oblivious when putting authn before authz, but turned out there were some specific usecases where some people used this ext_authz filter to do a token exchange for example. In my case, I were wanted to piggyback on the RequestAuthentication to offload some of the traffic from this external authorization by applying RequestAuthentication with JWT on top of it. So it might be impossible with the current implementation.


feat(foldtext): add option to get virt texts of arbitrary rows

The option converts the first argument of virt text handler into a list of virt texts on Lua metatable.
It's useful when the first lines of folds give little information.
For example, we can see the second lines that show plugin names managed by plugin manager at a glance:

packer.nvim

use {  'kevinhwang91/nvim-ufo',  2
}

for
use {
    'kevinhwang91/nvim-ufo',
    requires = 'kevinhwang91/promise-async'
}

dein.vim in toml

[[plugins]]  repo = 'kevinhwang91/nvim-ufo'  2

for
[[plugins]]
repo = 'kevinhwang91/nvim-ufo'
depends = 'kevinhwang91/promise-async'

A sample handler in which folded lines will be concatenated until each virtText becomes longer than minWidth:
--- A list of [`text`, `highlight`] tuples.
---@alias VirtText string[][]

---@param virtText VirtText
---@return number
local virtTextWidth = function(virtText)
  local width = 0
  for _, c in ipairs(virtText) do
    local chunkText = c[1]
    width = width + vim.fn.strdisplaywidth(chunkText)
  end
  return width
end

---@param virtText VirtText
---@return VirtText
local trimIndent = function(virtText)
  local newVirtText = vim.deepcopy(virtText)
  local firstChunkText = newVirtText[1][1]
  newVirtText[1][1] = firstChunkText:gsub("^%s+", "")
  return newVirtText
end

---@param virtText VirtText
---@return VirtText
local compressSpaces = function(virtText)
  local newVirtText = vim.deepcopy(virtText)
  for _, c in ipairs(newVirtText) do
    local chunkText = c[1]
    c[1] = chunkText:gsub("%s+", " ")
  end
  return newVirtText
end

--- Combine two virtual texts.
---@param a VirtText
---@param b VirtText
---@return VirtText
local combineVirtTexts = function(a, b)
  local newVirtText = vim.deepcopy(a)
  for _, chunk in ipairs(b) do
    table.insert(newVirtText, chunk)
  end
  return newVirtText
end

--- Concatenate multiple virtual texts.
---@param a VirtText
---@vararg VirtText
---@return VirtText
local concatVirtTexts = function(a, ...)
  local newVirtText = vim.deepcopy(a)
  for _, b in ipairs({ ... }) do
    newVirtText = combineVirtTexts(newVirtText, b)
  end
  return newVirtText
end

local handler = function(virtTexts, lnum, endLnum, width, truncate)
  local virtText = virtTexts[lnum]
  local minWidth = 25
  local offset = 0
  local separator = { { "  ", "Delimiter" } }
  local maxOffset = endLnum - lnum
  while virtTextWidth(virtText) < minWidth and offset <= maxOffset do
    offset = offset + 1
    virtText = concatVirtTexts(
      virtText,
      separator,
      compressSpaces(trimIndent(virtTexts[lnum + offset]))
  end
  local newVirtText = {}
  local suffix = ('  %d '):format(endLnum - lnum)
  -- The rest would be the same as the example in README.md.
end

require('ufo').setup({
    enable_on_demand_virt_texts = true -- The new option. (default: false)
    -- enable_fold_end_virt_text = true, -- It could be deprecated.
    fold_virt_text_handler = handler
})

In addition, I also suggest such functions to deal with virtTexts as above be provided for users by, for instance, require('ufo.user-utils').

Not bad, but should pass the metatable into 6th parm for the handler instead of making 1st parm confusing for users.
For instance, if 3rd plugin author needs to integrate ufo with his buffer, he will call setFoldVirtTextHandler(bufnr, handler), but the 1st type of parm depends on ufo's config, it's so confusing.
BTW, I don't know why the name is enable_on_demand_virt_texts, could you explain patiently?

BTW, I don't know why the name is enable_on_demand_virt_texts, could you explain patiently?

enable_virt_text_list the first alternative I think of sounds as if extra calculations have run for every lines in fold to make virt_text lists before handler while "on-demand" explicitly demands no unnecessary calculations. The doubt of extra resource consumption with the former name makes me feel uncomfortable beyond reason. Did this answer your question?
Anyway, you can rename it better.

After considering return a list can't use ipairs and paris to iter (__ipairs and __pairs doesn't exist in Lua 5.1), I think exporting a function will be better. Free feel to share your opinion here before merging.

I agree with you. A function is more concise than a list in this case.
I'd like to cut off "func" from the function name. It's redundant. Still, it's hard to rename it better.

get_folded_line is to return a string.
get_folded_text is to return a string.
get_folded_node reminds me of tree-sitter node, which is distinct from what we deal with.
get_folded_chunks is used in help file, but it's plural.
get_folded_context is ambiguous.
get_folded_content implies all the lines in a fold, not a line.

Provisionally, I rename it get_fold_virt_text, which comes from the option name. Either this or get_folded_chunks seems better in them.
What do you think of it?

Sorry for the violation.

May I add the screenshot in README.md?

Don't change the struct of doc/exmaple, do-end will increase unnecessary indentations. enable_get_fold_virt_text_func should be changed to enable_get_fold_virt_text.

Well, may I add the screenshot in README.md?

Sorry, please don't. I want to keep the README.md as clean as possible for users.

No problem?

Is that all?

Thanks, please squash and merge the main.

Thanks a lot, I have squashed and merged it.

enable_get_fold_virt_text_func should be changed to enable_get_fold_virt_text.

The option was renamed to enable_get_fold_virt_text (from enable_get_fold_virt_text_func) and doc/example.lua would be need updated accordingly.


AudioFrame deep copy

I think the last time we discussed this, we covered two options:
a) Copy Constructor: original = AudioFrame(); copy = AudioFrame(original)
b) Method: original = AudioFrame(); copy = original.clone()
Option a) is more Pythonic, while option b) might have been already used in the micro:bit API.
I had an action to look at the existing micro:bit API to see if a) and b) has been used before and which one might be more "microbitish".

We currently have two instances of a copy() method with SoundEffect.copy() and Image.copy()
We don't have any instance of a copy constructor

Apart from that, we already have keyword arguments in AudioFrame(duration, rate) that we can used as positional arguments in the initialiser, and adding a copy constructor might make the readthedocs signature a bit harder to document (we've had multiple questions about characters like * and / in the function signatures). This one is a minor thing, as we can also explain stuff more in the description, but still worth pointing out.
All in all, I think we should go with the AudioFrame.clone() option, but calling it AudioFrame.copy().

From @dpgeorge in https://github.com/microbit-foundation/micropython-microbit-v2/pull/163#issuecomment-2068519700:

I was also wondering if we should also make it a static function to be able to do new = AudioFrame.copyfrom(old). Otherwise we now we have to figure out a way to match the length of the old instance somehow when creating the new, as we cannot even do something like new = AudioFrame(size=len(old)); new.copyfrom(old).

How about allowing passing an AudioFrame to the AudioFrame constructor? This is how list, dict etc work in Python. (Did we already discuss point?)

Yes, using a copy constructor is more Pythonic, but taking in consideration we have two instances already of a copy() method I'm more inclined to use that. What do you think?

Discussed on our call and agreed to implement the copy() method.

Based on the changes from https://github.com/microbit-foundation/micropython-microbit-v2/issues/205#issuecomment-2221716206, we should add the copy() method to AudioRecording.


can't install

i tried installing the package, but getting the error:
ERROR: lazy loading failed for package 'ggpomological'
Error: Failed to install 'ggpomological' from GitHub:
(converted from warning) installation of package ‘C:XXXXX/Local/Temp/Rtmp8IitAF/file53005ea93e4e/ggpomological_0.1.2.tar.gz’ had non-zero exit status
I installed all the dependencies, didn't help.

I'm sorry, this isn't really enough information for me to help you diagnose the problem. I just tried installing the package locally in a few R versions and it worked as expected. I'm going to close this for now but please feel free to add any additional information you can provide.


Script - Too many open files.

The script can hit the following error: Too many open files in python.
I have hit this issue once. The user has to be downloading a lot of manga chapters for them to hit this issue. The workaround would if the user hits this error is to start the script over. The script should skip all the previously downloaded chapters and probably will not hit this issue again. Due to my belief this is a rare issue, I am not going to debug and fix this issue. Opening bug to document existence. Comment on the issue if you hit. If it is a more common issue than I believe, I will re-examine decision.

How many files do you have open that it's throwing this error?

I do not know. I have only hit this issue once (After a hard drive crashed and I was redownloading a lot of different series.) It just did not seem worth reproducing and investigating.


avoid double-free in callers to OCSP_parse_url

It appears to be common for callers of OCSP_parse_url to later call OPENSSL_free on the path, port, and host parameters even in the event of failure. This can result in a double-free error, because on failure, OCSP_parse_url returns the old pointers to the caller after freeing them. For example:
$ openssl version
OpenSSL 1.0.2e 3 Dec 2015
$ openssl ocsp -url https://[
Error parsing URL
140735167492176:error:27072079:OCSP routines:OCSP_parse_url:error parsing url:ocsp_lib.c:269:
openssl(1689,0x7fff75aa7000) malloc: *** error for object 0x7fde01514870: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6
$ openssl crl -inform http -in http://[
openssl(52971,0x7fff75aa7000) malloc: *** error for object 0x7fd1ebc1d580: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6

This patch sets the path, port, and host parameters to NULL after they are freed in OCSP_parse_url, before they are returned to the caller, so the caller won't try to free them again.
Credit to @guidovranken to showing me this problem.

+1

+1
Feel free to merge, @richsalz

commit dca7158 thanks!

Happened to me too on OpenSSL 1.0.2g  1 Mar 2016

@levitte okay to backport to 1.0.2?  re-plus-one?

commit 74d6762543335641e4155fd84deaba67cd0105e4 pushed to 1.0.2, reviewed by Steve.

This looks like it may be an issue on the 1.0.1 branch as well.  Are there any plans to include it there?


⚠ Bofrost.es has degraded performance

In 51d130d, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1561 ms

Resolved: Bofrost.es performance has improved in d131fc8 after 13 minutes.


Code review

You can see the changes I made in the review here:
https://app.reviewnb.com/Shotgunosine/intersubj_rsa/commit/11bf9ed165d4271512867c3542929d633d2f446f/


Still maintained?

It looks like this module has a good number of stars. There are also some great PRs open and valid issues.
Is it still being maintained, do you need some help knocking this stuff out?

Any help would be highly appreciated, I'm planning to keep supporting this
package ?
On Wed, Jun 24, 2015 at 7:57 AM, Levi Thomason<EMAIL_ADDRESS>wrote:

It looks like this module has a good number of stars. There are also some
great PRs open and valid issues.
Is it still being maintained, do you need some help knocking this stuff
out?
—
Reply to this email directly or view it on GitHub
https://github.com/asafdav/ng-clip/issues/71.

Cool, I can clean up some of the issues/PRs  if you add me.

You can take a look at my contribs on ngToast if you want to see how I work. Also, TechnologyAdvice/tap-flux is a good repo to peruse.

Done, I just sent you an email


Need API reference for TiKV.

Please answer these questions before submitting your issue. Thanks!

What version of Rust are you using (rustc --version)?
What operating system and processor architecture are you using?
What did you do?
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
What did you expect to see?

TiKV API reference.

What did you see instead?

None.

Currently we just have a go client to access TiKV which is embedded is TiDB. I built a quick demo by using transaction API. reference: https://gist.github.com/ngaut/90039802ba81ebde4c6135ea1ecb7b55
You may need to change the address of Placement Driver to point to your Placement Driver.
You can also find the implementation of go client driver in case you want to build driver in other languages. Please see https://github.com/pingcap/tidb/tree/master/store/tikv

+1
The TKIV database looks very promising.
Would be nice to have:
a) Some information about the current status + a small roadmap
b) Either a RESTful interface, or a C driver (could be used by many other languages) or at least some information how to access the k/v-database.

Hi, doublex:
Thanks for your advices, The better way would be supporting RESTful API. We will support it later.

Are there any plans to create a C/C++ client and/or a RESTful API?

There is roadmap

ideally, if TiKV support Redis protocol, we can leverage existing Redis clients in various languages.

@rohitjoshi You may be interested in https://github.com/yongman/tidis

Need RESTful API

You can track work on a Rust client here: https://github.com/tikv/client-rust
Currently I am not aware of a RESTful API being planned.

@Hoverbear OK,thanks

Hi! https://github.com/tikv/client-rust is a good reference now, you can generate the docs with cargo doc --open. We're also working on documenting our code a lot more.
We do have an issue to create a full reference for our protobufs, you can track that here if it's relevant. #4262
I'm going to close this issue as it's quite old and very broad.


Implement contracts that can be settled using our internal oracle service

User Story

As an <audience/user>:  dev
I want to <action/task>: be able to have contracts that are settled using an internal oracle
so that <outcome/goal/benefit>: we can gradually move to more decentralized solutions

Type

[x] Enhancement
[ ] Maintenance
[ ] Refactor

Description
Create implementation of base MarketContract.sol
Definition of Done

[ ] new MarketContract.sol implementation
[ ] testing!

completed. Not sure why it didn't close correctly.


Introduction to spinalcordtoolbox setup

Spinalcordtoolbox will be added to the python's system path by running
python setup.py install

or for setting up the development environment by running
python setup.py develop

This does not change the installation process of spinalcordtoolbox

I successfully ran python setup.py develop. It used my default Python though (and it updated other modules, including scipy, which might be annoying for people). I guess the future plan is NOT to interact with the user's native Python but to use SCT's own Python?

The wording of my message might be misleading. I assumed that the user activated the conda python that was installed with SCT. What is planned in the future is the complete integration of SCT in a python environment.


update boilerplate to use 2020

Proposed Changes

Update boilerplate to use the year 2020

Release Note

NONE

/assign @mattmoor


Popover component

Figma design here: https://www.figma.com/file/GIIQ4sDbaToCfFQyKMvzr8/Openverse-Design-Library?node-id=411%3A2176
We'll use Popper.js to simplify the popover positioning logic. A Vue example for implementation is here: https://vuecomponent.com/integrations/popperjs.html
Probably also a good idea to reference the WAI-ARIA spec and other implementations like Reakit:
https://github.com/reakit/reakit/tree/master/packages/reakit/src/Popover
https://github.com/reakit/reakit/tree/master/packages/reakit/src/Dialog#non-modal-dialogs

Just wanted to note that the dropdown for the search suggestions should not use the same popover component.
Instead it is a combobox and should use something like downshift (except there isn't a version for Vue so I guess we'll have to re-write that outselves as well)


How to convert to editorstate from HTML to prefill the textbox?

If I have the HTML stored from the toHTML helper, how can I prefill the textbox by converting it to editorState object?
Kudos for such a great MUI project out of draft-wysiwyg! 🎉

Was able to achieve it with the following -
const htmlContent = ""
hello
"";
const blocksFromHTML = convertFromHTML(htmlContent);
const state = ContentState.createFromBlockArray(
  blocksFromHTML.contentBlocks,
  blocksFromHTML.entityMap,
);

setEditorState(MUIEditorState.createWithContent(config, state));


Fix cuda.In freeing devary before the kernel launch

as titled.

Thanks for the patch. Whilst this is being fixed, seems like the same patch series added a dependency on six?
https://github.com/numba/numba/blob/a4b70ccc3936b51e4932408e076ee5da84056494/numba/cuda/args.py#L1-L9

Oh, that's an issue.  We've vendored six functionality into Numba (since we only needed a small amount of it).  Is add_metaclass large, or can we add the implementation to numba.six?

It's already in I think, pretty sure I've used it elsewhere from numba.six.
https://github.com/numba/numba/blob/a4b70ccc3936b51e4932408e076ee5da84056494/numba/six.py#L782-L795

Ah, OK.  @sklam: Can you add a quick commit to this PR to switch where add_metaclass is imported from?

Done

Thanks for the fix @sklam, looks good, this can be merged as convenient on CI pass.