Map serialization and iteration order

I'm using the Long2LongHashMap in an Aeron Cluster instance. I think it's not possible to write the map to a snapshot and read it back while ensuring the iteration order is unchanged, and I think this is an issue for Aeron clusters.
The simplest test I can come up to demonstrate the issue is as follows:
    @Test
    void iterationOrder() {
        final Long2LongHashMap m1 = new Long2LongHashMap(0);
        m1.put(7, 1);
        m1.put(14, 2);
        // Build m2 simulating a serialization and deserialization of m1
        final Long2LongHashMap m2 = new Long2LongHashMap(0);
        m1.forEachLong(m2::put);
        assertEquals(m1.keySet().iterator().nextValue(), m2.keySet().iterator().nextValue());
    }

Here I constructed a map in such a way that the two keys collide on the last element of the Long2LongHashMap.entries array. This makes the second key I add, 14, end up in the first position of the array. When this map is iterated with forEachLong, 14 will be returned first, then 7.
To serialize the map during a snapshot, I iterate it with the forEachLong method, and save the entries. To deserialize the map, I start from an empty map, and put the entries one by one. This behavior is simulated in the code above.
The test fails because I am adding to the reconstructed map first the 14 key (which this time is inserted at the end of the array), then the 7 key (which is inserted at the beginning). The iteration order of the deserialized map is therefore 7 first, 14 second - different from the original map.
Since serializing the Long2LongHashMap does not preserve iteration order, if a single node of an Aeron cluster dies and restarts from a snapshot, it can become out of sync with the nodes that are still up. I was unable however to think of any method to serialize the map without risking to change the iteration order.

Agrona's Maps/Sets do not provide any iteration order guarantees. When taking a snapshot you need to sort your collection before writing snapshot messages or use a collection that preserve order.
See also 1.2. Replication and Recovery.

Well... thanks for clarifying this.


Sourcing problem

Hello
I followed all the install steps but when adding the path to autocomplete to my .bashrc file I have this error message after sourcing
-bash: complete: -D: invalid option
complete: usage: complete [-abcdefgjksuv] [-pr] [-o option] [-A action] [-G globpat] [-W wordlist] [-P prefix] [-S suffix] [-X filterpat] [-F function] [-C command] [name ...]

Any idea to fix this ?
Thanks

You are running an old version of bash. Ensure that your bash is recent enough. Follow the instructions in the readme, under "Bash version compatibility" (https://argcomplete.readthedocs.org/en/latest/#global-completion).


Add MailChimp

I'm adding MailChimp to the list of companies that use php in production.
This is my first PR for this project 🎉🎉🎉

Well done @alessandroprudencio, happy hacktoberfest 🎉


Release 1.8.0 is not available in index

Release v1.8.0 was successfully published to github, but it was not updated at https://charts.blue-atlas.de.
The latest available version seems to be v1.7.1 there - https://charts.blue-atlas.de/index.yaml
Seems like release job has failed here: https://github.com/bat-bs/helm-charts/actions/runs/11853099115/job/33032544077

fixed the pipeline, one param was missing #48. Releases now should exist as expected


Flipped value/target movement

Hi, thanks for the lib! Exactly what I was looking for wrt API, though my use cases diverges a bit, which is why I am wondering if I should fork or whether you'd look at a PR. Here's the gist:
With the currrent value/target dichotomy, where one can only set the target, each step moves the value closer to the target, according to the spring's physics. But I am also looking for the opposite case, where a movement should happen opposite to the spring direction, dampened by its force.
I am also thinking that for this model the naming is a bit off, it would be more like anchor, value & target, where anchor would be what target is now and target would be optional, only needed when a movement opposite to anchor is desired.
I'll work on a fork now, but happy to PR, if desired.

Hey Gregoor, this is a really neat idea! Would you be able to elaborate a bit on the functionality you're imagining? Reading your description here, I can think of two directions to take:

Emulating a tween
When creating a spring, perhaps in addition to a target, the user can specify an initial (or anchor or start). The value will immediately move towards the target from the initial/anchor/start.

Emulating a Physical spring

Thanks for the swift response, and good point, a concrete example might make my use case clearer:
I want to loop a spring value from its anchor a to a value t, and back. So in pseudo code it'd be sth like
spring.anchor = A
onLoop(delta => {
  spring.simulate(delta)

  if (spring.isAtAnchor()) {
    spring.target = t
  } else if (spring.isAtTarget()) {
    spring.target = a
  }
})

and when the spring is simulating movement towards t, away from the anchor (the behavior I don't know how to accomplish with this lib yet), I'd expect velocity to decrease, the further it moves away from the anchor (the opposite of the current behavior, i.e. moving towards the anchor).
Maybe this is already accomplishable and I'm missing it? Maybe I could set the arrival behavior to bounce and that'd do the trick (I'd need to abs() the value then for my example, but that should be fine)? I guess I'll try that route next time I'm on it.

I think the easiest way to accomplish what you're talking about here is to maintain two targets and two configurations outside of the spring, and swap them out based on the state of the spring:
const bouncy: SpringConfig = {
  mass: 3,
  tension: 500,
  friction: 25,
};
const smooth: SpringConfig = {
  mass: 0.75,
  tension: 300,
  friction: 45,
};

const anchor = 0;
const target = 200;

const spring = createSpring(target, smooth);

createTicker().add((_, delta) => {
  spring.simulate(delta);

  if (spring.state === 'resting') {
    if (spring.target === target) {
      spring.target = anchor;
      spring.config = smooth;
    } else {
      spring.target = target;
      spring.config = bouncy;
    }
  }
});

Here's a working example: https://stackblitz.com/edit/typescript-gwm1ep?file=index.ts
Does this capture what you're looking to accomplish?

Thanks for the example! Where it still seems off, for my use case, is that it goes fast at first, and then slows down as it gets closer to the target (as spring relaxes), in both directions.
I'm starting to think I might not have enough of a springy motion in mind, sorry for loading it here then. I suppose what I'm looking to accomplish is more like a jumping motion where there is

a large force in the beginning, decreasing until the upwards peak is reached
at which point it reverse and a steady increase in downward force is applied

Maybe that just does not map well to springs, and I should just go full-physics?
Anyway, thanks a lot for thinking this through with me, I really appreciate you taking some time for me rando on the internet. And ofc feel free to close this issue, I think I'm moving out-of-scope.

I think something that would help is a setVelocity() method on the springs, along with maybe a constantAcceleration option for the gravity bit.
Both of those should be relatively easy to implement. Even if you do end up implementing the physics here yourself, I think they would be valuable additions to the library so I'll get working on those. Would love your feedback if it would suit your needs in any event.


secp256k1 tweak

see https://github.com/paulmillr/noble-secp256k1/issues?q=is%3Aissue+tweak+is%3Aclosed
and https://github.com/paulmillr/noble-secp256k1/blob/main/test/index.ts#L466

Figured it out in #9


Please support transaction mysql, postgrestsql,...

Please support transaction mysql, postgrestsql,...
I dont't see sailjs support transaction in mysql.I think, transaction really necessary for develop a product.

@thuanitdn you can use sails-hook-orm-offshore  with offshore-sql

http://stackoverflow.com/questions/39751729/about-transaction-mysql-sailsjs
This is my question on stackoverflow. In this case, i use mysql library and do on native mysql , It's work fine. But something lost data with alter in config/model. and safe it work fine.


Is there a way to set glightbox-manual: true globally?

Hi,
thank you very much for this plugin.
Is there a way to set glightbox-manual: true globally, without the need to include it on every page in the meta?
I would like it always off, and activate it by inserting { .on-glb } where needed.
Thank you

@michalfapso helped implement this feature on #29 which was released on v0.4.0. You can get more details on our documentation.

thank you very much @blueswen and @michalfapso


Add explanation on why we can't actually disable the crosshair

The current "no crosshair" guide is technically, sort of lying since, ui/crosshair_sniper_amped actually becomes visible if your weapon is amped. This just adds an explanation on why we can't disable it entirely.

Eh nevermind, this looks kinda weird


Add balance and transfer

As per https://gitcoin.co/issue/cennznet/grants/10/100026473, added display of balances for CENNZNET accounts as well as simple transfer functionality.
User guide: https://hackmd.io/LKhbIRkjTRiKWRCq5YbDkg?view
Shortcomings:

Balances are only loaded from the network when an account view is loaded. Ideally there should be a periodic refresh of balance data.
No tests for new functionality.
When transferring, there should be a check if the account has enough balance. Currently the transfer can just silently fail in the background in some cases.

To be honest, I was planning to work on these, but just ran out of time. I will gladly fix those issues in the future when I get the chance.

Hey @leetdev, thanks for submitting this work!  I just checked out your PR branch, and ran into a build error when I ran yarn and then yarn build.  Is there anything particular I need to do before I can run the code?

28         const registeredAssets = (await api.rpc.genericAsset.registeredAssets()).toJSON();
                                                   ~~~~~~~~~~~~

Oh I found out we currently have to use api.rpc like this..
 const registeredAssets = (await (api.rpc as any).genericAsset.registeredAssets()).toJSON();

Hi @Amy-Centrality! You're right, I forgot to address that error, which is an issue with the API library.

Yes please make the change in your branch :)

Hey thanks for fixing it up! I ran into some more errors when I try to load it in Chrome.  Have you got a fix for these too?
@polkadot/types-known has multiple versions, ensure that there is only one installed. Either remove and explicitly install matching versions or dedupe using your package manager. The following conflicting packages were found: 4.17.1 <unknown> 4.17.1 <unknown> @polkadot/wasm-crypto has multiple versions, ensure that there is only one installed. Either remove and explicitly install matching versions or dedupe using your package manager. The following conflicting packages were found: 4.0.2 <unknown> 4.0.2 <unknown> @polkadot/keyring has multiple versions, ensure that there is only one installed. Either remove and explicitly install matching versions or dedupe using your package manager. The following conflicting packages were found: 6.11.1 <unknown> 6.11.1 <unknown>

@Amy-Centrality, I've managed to fix some of those errors but unfortunately not all. The main problem is that the cennznet api package has different version requirement of the polkadot api than this extension does. I did upgrade it to the newest alpha version which upgrades some of the dependencies, but there's still a few conflicts that remain. I think this issue should really be resolved on the API level, not here.

I've adjusted the layout by moving the asset dropdown right next to the amount input. This fixes the overflow issue.

Hey @leetdev, I asked our developers to review this PR, and they came back with some feedback. I know that we've already closed this bounty, but I hope you could help with these since you are the most familiar with this part of the code. (We had to close the bounty due to time limits from GitCoin)
We should ideally fix the following before merging:

Balances are only loaded from the network when an account view is loaded. But there should be a periodic refresh of balance data.
No tests for new functionality.
When transferring, there should be a check and error message, if the account has enough balance. Currently, the transfer can just silently fail in the background in some cases.

Issue number 1 is very important, as it currently won't show the balance update. You can subscribe to change in balance for cennz and cpay following this example,
https://github.com/cennznet/api.js/blob/8f0c00f97a8036299a8035d8d558ac6833dce733/docs/examples/promise/03_listen_to_balance_change/index.js

Hi @Amy-Centrality,
For some reason I was sure I finished working on this, but just found it in my open PRs list, I must have completely blanked! My apologies, I have no idea how it could have happened...
I have some free time right now, I will see if I can finally clear this up.


Package request: openrocket

Project description
Model-rocketry aerodynamics and trajectory simulation software.
Metadata

homepage URL: https://openrocket.info/
source URL: https://github.com/openrocket/openrocket
license: gpl3
platforms: linux, darwin

Add a :+1: reaction to issues you find important.

Mentioned in #278322

Opened a PR, sorry about the long delay. I kind of got distracted refactoring other java packages for reproducibility instead of creating the PR.


System unavailable: https://ci.adoptopenjdk.net/computer/build-alibaba-win2012r2-x64-1/

https://ci.adoptopenjdk.net/computer/build-alibaba-win2012r2-x64-1/
is down

Duplicate of #1818

Duplicate of #1818


Add EnforcedStyle to Layout/EmptyLinesAroundAccessModifier

This PR adds EnforcedStyle to Layout/EmptyLinesAroundAccessModifier cop.
This makes it possible to select the following Rails coding convention.

Indent and no blank line after private/protected.

https://edgeguides.rubyonrails.org/contributing_to_ruby_on_rails.html#follow-the-coding-conventions
"Indenting" is already implemented by Layout/IndentationConsistency cop.
This PR implements "no blank line after private/protected" by Layout/IndentationConsistency cop.
The EnforcedStyle names are normal and rails which are the same as Layout/IndentationConsistency cop.
The default EnforceStyle is "normal", which keeps the current style so that no breaking changes occur.
I was told about this style by Rails committer @kamipo. Thanks!

Before submitting the PR make sure the following are checked:

[x] Wrote good commit messages.
[ ] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[x] Added tests.
[x] Added an entry to the Changelog if the new code introduces user-observable changes. See changelog entry format.
[x] The PR relates to only one subject with a clear title
and description in grammatically correct, complete sentences.
[x] Run bundle exec rake default. It executes all tests and RuboCop for itself, and generates the documentation.

I'm fine with the change, but we can do better with the names. In general we should avoid using names that don't carry any meaning. I think normal can be named around and rails can be only_after or after.

Ah, Sure! This sounds like a very nice names. I renamed to around and only_after for Layout/EmptyLinesAroundAccessModifier cop.

Does only_after means empty-lines only_after access-modifier?

Oops, I think that the name should have been only_before. It means a blank line "before" compared to the "around" blank lines. I updated it.

Yeah, my bad!

I'll merge this as is, so I can cut 0.69 and unblock your work on RuboCop Rails 2.0. We can improve it later. Thanks!


[Bug] Uninstall button shown in google play store after user installs app from firebase dynamic link

[REQUIRED] Please fill in the following fields:

Unity editor version: 2021.1.28f1
Firebase Unity SDK version: 9.6.0
Source you installed the SDK: Unity Package Manager
Problematic Firebase Component: Dynamic Links
Other Firebase Components in use: Analytics & Messaging
Additional SDKs you are using: Login with Google
Platform you are using the Unity editor on: Windows
Platform you are targeting: Android and iOS
Scripting Runtime: IL2CPP
Pre-built SDK from the website or open-source from this repo: Pre-built SDK

[REQUIRED] Please describe the issue here:
We have been using Firebase Dynamic Links in our project which since 2019 and it used to work as expected. But since updating to 9.6.0, our users have reported this issue to us saying upon installing the app from a dynamic or deep link, the Google Play Store only shows uninstall button on the app page. There is no way to open the app after installing the app, which results in breaking the whole flow for the user.
I have checked the configurations in the firebase console and also the Android Manifest in the plugins folder and everything looks ok, but still, this issue persists.
(Please list the full steps to reproduce the issue. Include device logs, Unity logs, and stack traces if available.)
Steps to reproduce:

Click on this link from a mobile device: https://link.vuexr.com/sl/vxrgBbwsXCsYM8nEA
It will open the app in Google Play Store
Install the app
After installing, you will only see uninstall button and no option to open the app to go to the content in the app

Have you been able to reproduce this issue with just the Firebase Unity quickstarts (this GitHub project)? Not checked
What's the issue repro rate? (eg 100%, 1/5 etc) 100%

Hi @thesanketkale,
I was able to replicate the issue with the steps you provided, but it seems that the cause of your issue may lie in the backend. If updating the SDK to the latest version doesn't make any difference, then It would be best to reach out to our Firebase Support since they have visibility with regards to backend issues. You may include your project details there so that they'll be able to assist you better. That said, I'll close this issue for now.


Initial model to load for multi-class training

I'm trying to train a deepforest model with multiple tree classes.
Do I need to start from scratch or can I use the latest release as a starting point, even though it's one-class only?
If so, do I need to modify the number of classes in some way or do I just need to provide annotation files with the required classes?
I couldn't find this in your documentation.
Thanks

Hi @pbugnet  - welcome! You can leverage transfer learning for detection while shifting to a multi-class model. We're currently using the following code to do this:
model = main.deepforest(num_classes=len(train.label.unique()), label_dict=label_dict)
deepforest_release_model = main.deepforest()
deepforest_release_model.use_release()
model.model.backbone.load_state_dict(deepforest_release_model.model.backbone.state_dict())
model.model.head.regression_head.load_state_dict(deepforest_release_model.model.head.regression_head.state_dict())

This  creates a new model with the appropriate number of classes, but then uses the backbone and regression head from the pretrained model to transfer learning about tree detection and tree related features.
Note: this code is ported from work we're doing on birds, not trees, and the translation hasn't been tested directly

Great! Thanks for the nice work on this project.

Should this go in docs? Or still too new and untested?

Not yet tested on my side.

Should this go in docs? Or still too new and untested?

This is what we've had running for Everglades for the last couple of months, so I think the answer is yes, once this particular version of the code has been run to make sure there aren't any typos in my translation.

Hi Ben. Could you please tell me more about the locations of the sites that were used for the DeepForest pre-trained model? Are they spread out all over the US or from a specific state. I wish to use DeepForest on canadian sites and would like to make sure of the variability of trees used for training
Thank you and congrats on this project.
Pierre
Pierre Bugnet M. Sc.
Spécialiste télédétection
Remote Sensing Specialist
@.***https://effigis.com
T       1<PHONE_NUMBER>, 225
T       1<PHONE_NUMBER>
4101, rue Molson, bur. 400, Montréal QC H1Y 3L1, Canada
This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.

Hey Pierre
You can see details here:
Methods Ecol Evol - 2020 - Weinstein - DeepForest  A Python package for RGB deep learning tree crown delineation.pdf
Without seeing a sample image, it is hard to know, but in general, its image resolution and quality which are the barriers, rarely is it forest type that is the challenge. Make a separate issue with example predictions if you need help.

Hey Pierre
You can see details here:
Methods Ecol Evol - 2020 - Weinstein - DeepForest  A Python package for RGB deep learning tree crown delineation.pdf
Without seeing a sample image, it is hard to know, but in general, its image resolution and quality which are the barriers, rarely is it forest type that is the challenge. Make a separate issue with example predictions if you need help.


Attribute "is required" issue creating products

What I'm trying to achieve
I'm trying to create a product that uses a Product Type that has multiple variant attributes attached. The attributes are NOT required, but when trying to create a product that uses only one of the variants it wont let me create a product until I select a value from both variants.
E.g. If i have a product type of boot lace with a color variant and length variant, some products I only want to use color variant values, and other products just need a length variant.
Steps to reproduce the problem

Create more than one variant attribute on a product type
Attributes "is required" NOT checked
Try to create a product using only one variant

What I expected to happen
To be able to move to the "Prices and SKU" section and complete the product setup
System information
Using Docker

Currently, we have this assumption that variant attributes are mandatory as we use them to determine a selected variant on the product details page in the storefront. We need to discuss it with the team how could we solve this issue.

Ah I see. I wasn't sure if this was intended behavior or a bug. I'm able to work around it by either:

Adding a product type with a similar name and attaching separate variants to each to meet my needs. This way works 'ok' as I would prefer to have one product type that is more flexible that takes care of all the same type of products without having similar names.

Using the same product type with the multiple variants (normal way). The issue I've had with this approach is some products of the same product type just don't require all the variants and would prefer to avoid having the customer need to select 2 options instead of 1 before adding the product to the cart. Maybe I need to refactor my product types to make it work better.

More flexibility for the product types would be great for creating products, but it hasn't been that big of an issue to work around. Although I am only working with 300-500 products.
Anyways, thank you for the feedback. The changes made to 2.10 have been fantastic!

Thanks for the feedback! I'm sure we'll be reiterating on the implementation of the attributes system and will take it into account.


How to get class probabilities for each detection

These detections already pick the highest probability class for each detection.
Is there an easy way to get the predictions for each class for each detection?

like this
from mmdet.apis import init_detector, inference_detector
import mmcv

config_file = 'configs/faster_rcnn/faster_rcnn_r50_fpn_1x_coco.py'
checkpoint_file = 'checkpoints/faster_rcnn_r50_fpn_1x_20181010-3d1b3351.pth'
model = init_detector(config_file, checkpoint_file, device='cuda:0')
img = 'test.jpg'  # or img = mmcv.imread(img), which will only load it once
result = inference_detector(model, img)

the predictions for each class are in "result"

like this
from mmdet.apis import init_detector, inference_detector
import mmcv

config_file = 'configs/faster_rcnn/faster_rcnn_r50_fpn_1x_coco.py'
checkpoint_file = 'checkpoints/faster_rcnn_r50_fpn_1x_20181010-3d1b3351.pth'
model = init_detector(config_file, checkpoint_file, device='cuda:0')
img = 'test.jpg'  # or img = mmcv.imread(img), which will only load it once
result = inference_detector(model, img)

the predictions for each class are in "result"

But this is the implement for ipny.In fact，when you run test.py or robustness_eval.py，this don't output each class

like this
from mmdet.apis import init_detector, inference_detector
import mmcv

config_file = 'configs/faster_rcnn/faster_rcnn_r50_fpn_1x_coco.py'
checkpoint_file = 'checkpoints/faster_rcnn_r50_fpn_1x_20181010-3d1b3351.pth'
model = init_detector(config_file, checkpoint_file, device='cuda:0')
img = 'test.jpg'  # or img = mmcv.imread(img), which will only load it once
result = inference_detector(model, img)

the predictions for each class are in "result"

That "result" is not my mean.   I want  Multiple calsses- probabilities corresponding to one box. But the result give me one-classes-probability corresponding to one box.  I have try it.

You may hack the test code here.

thank you for your  help! I got it in the bbox_nms/multiclass_nms()  so hard!  but  now  I am so  happy!

thank you for your help! I got it in the bbox_nms/multiclass_nms() so hard! but now I am so happy!

how to do with bbox_nms /multiclass_nms on result and output the most probable class?

@Seiano
Hi, there. I check the inference code in detail and modify it accordingly.  I wrote a function that can return the class probabilities for each detection. Check it >>here<<. Hope it helps!

inference_detector only output boxes and probabilities, why not output class of each box?

inference_detector only output boxes and probabilities, why not output class of each box?

The results returned by inference_detector is a list and its length is num_classes. So the index of each numpy array of boxes and probabilities in this list is class id.

The results returned by inference_detector is a list and its length is num_classes. So the index of each numpy array of boxes and probabilities in this list is class id.

thank you !!! I didn't find that on offical document thus the question arose.

@RangiLyu That's complicating inference very much :\ Isn't there an easier method to store bboxes with predicted class in a simple 5-elements long list?

If anyone else has an easy resource whereby I can do the above mentioned task easily, it would be greatly appreciated!

The results returned by inference_detector is a list and its length is num_classes. So the index of each numpy array of boxes and probabilities in this list is class id.

It seems this is not the case anymore for mmdetection 3.0.0. I cannot find a way of doing this in the latest version

@KostadinovShalon Yes. In 3.0.0, I only get the best score associated with each bbox. I want to get the probabilities for all of the classes, not just the best class for each bbox. Can anyone explain how to do that in 3.0.0?

I found a way to do this in MMDetection 3.1.0. I did it for RetinaNet, but the steps should be similar for other detectors.
https://y-t-g.github.io/tutorials/mmdetection-patching-probabilities/


Exported LV2 bundle redefines plugin

Currently exporting an LV2 UI also generates dummy code for its DSP side.
Not sure why that is at all, but it makes this unusable as a "ready-to-go" solution.
We can simply have the lv2 bundle provide only the UI, there is no need for an LV2 bundle to define both the plugin and the UI.
So like, manifest.ttl would be like:
<http://arcticanaudio.com/plugins/thepilgrim#ExternalUI>
    a guiext:X11UI;
    guiext:binary <The_Pilgrim_ui.so> ;
    rdfs:seeAlso <The_Pilgrim_ui.ttl> .

And then the The_Pilgrim_ui.ttl can include the rest of the UI definitions, like extension data, optional/required features, supported options, etc.

Currently exporting an LV2 UI also generates dummy code for its DSP side.
Not sure why that is at all, but it makes this unusable as a "ready-to-go" solution.

That depends on what you want to do. For creating a new LV2 plug, this gives you the complete LV2 interface for the UI and the dsp engine side. Means you don't need to write any of the LV2 interaction, but just need to implement your dsp code.
So the generated dsp isn't pseudo, but gives a ready to go plugin with inplace procession waiting for the plain math to do..

We can simply have the lv2 bundle provide only the UI,

True, for create a UI for a existing plug, the current generated bundle is suboptimal.
Your suggestion is very welcome and I'll try to implement it as a option.

Yeah LV2 allows this because we can just extend information about objects in the "world" (in the lv2/ttl sense)
Sadly we cant modify/add stuff to lv2 plugin ports, because they dont have a global URI

This is done since some time, close now.


table return all elements with getSelectedItems  .. even when i select only one

Describe the bug
the bug happen to me when i start use table inside master view .. when i get selected items inside master data-on-before-page it return all items and when i go back to the table page i found all items get selected
Screenshots

then

OS: Ubuntu
Browser Firefox
Metro Version 4.4.3

and i notice that master has problem when i slide next and prev some times (2:5 times) it don't respond any more .. that's happen even in the examples on the documents website

Please check it in 4.5.0

and i notice that master has problem when i slide next and prev some times (2:5 times) it don't respond any more .. that's happen even in the examples on the documents website

I have no such problems. Create your problem code on codepen.io

the same problem with 4.5
and another one when i press select all and error in the screenshot below

[https://drive.google.com/file/d/1gA7-ZaG1y7-4CsOt1T1CX7QVTsh8HTL_/view?usp=sharing](video with problem on site)

Master bug confirmed, please create seprate issue

and i notice that master has problem when i slide next and prev some times (2:5 times) it don't respond any more .. that's happen even in the examples on the documents website

https://github.com/olton/Metro-UI-CSS/issues/1787

Create an example with your code (for getting selected data) on codepen.io


Merge model.primitives into model

to be merged into https://github.com/vigoo/zio-aws/pull/559

Too much trouble because of name collision
For example in `zio-aws-health:

eventType is primitive
EventType is a structure


Update notificationText and notificationTile  text

hello, great package.
Can I update the notification text, because I'm using counting timer on the notificationText
thanks.

hello, great package.
Can I update the notification text, because I'm using counting timer on the notificationText
thanks.

Try updating to  flutter_foreground_task: ^1.0.8.
And using the update function, you can update the notification title and content.
Whenever the notification is updated, a sound or vibration may occur.
Therefore, it is recommended to set channelImportance and priority to LOW or less.
  final flutterForegroundTask = FlutterForegroundTask.instance.init(
    notificationOptions: NotificationOptions(
      channelId: 'notification_channel_id',
      channelName: 'Foreground Notification',
      channelDescription: 'This notification appears when a foreground task is running.',
      channelImportance: NotificationChannelImportance.LOW,
      priority: NotificationPriority.LOW
    ),
    foregroundTaskOptions: ForegroundTaskOptions(
      interval: 5000
    )
  );

  int count = 0;
  void startForegroundTask() {
    flutterForegroundTask.start(
      notificationTitle: 'Foreground task is running',
      notificationText: 'Tap to return to the app',
      taskCallback: (DateTime timestamp) {
        print('timestamp: $timestamp');

        count++;
        flutterForegroundTask.update(
          notificationTitle: 'count: $count',
          notificationText: 'count: $count'
        );
      }
    );
  }

The update function does not have to be implemented inside taskCallback. However, please use it after calling the start function.

This solution provided does not work anymore for anyone trying to do what the original user wanted to solve. I'm using the latest version of this and this solution does not activateFlutterForegroundTask.update. Is there anyway to fix this?

@am2074
Many things have changed since version 2.0.0. check readme.


sequential composition for idds

Looks good to me!
One important optimization that's still missing is "dynamic programming", i.e. memoization of the results. It should be very easy to add, though.


Subdomain name not resolved

Hello author, my plugin has provided the documentation site correctly, but can not always access this domain name: https://plugin-oh-my-live2d.vuejs.press.

Should be updated, if you sure the issues is fix, please close it.


[SPARK-38970][CI] Skip build-and-test workflow on forks when scheduled

What changes were proposed in this pull request?
The configure-jobs and precondition jobs in the build-and-test workflow should be skipped on fork repositories as all subsequent / dependent jobs are already skipped.
Why are the changes needed?
The build and test workflow is scheduled to run six times a day. The jobs then only run for type == 'scheduled' inside apache/spark repository, not for forks. However, the configure-jobs and precondition jobs always run, even though all subsequent jobs are skipped on forks.
Does this PR introduce any user-facing change?
No
How was this patch tested?
No

BTW, this is only skip precondtion (Check changes) but configure-jobs is still running in fork repo:

Can one of the admins verify this patch?

You are right, moving the logic into configure-jobs, on which all other jobs depend on, allows to disable the entire workflow for scheduled events on forks and simplify logic in dependent jobs.

@Yikun The expression github.event.type does not exist for scheduled events. The only content of event is the schedule field.
In fact, the payload for that event is not even documented: https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads
But there is github.event_name: https://docs.github.com/en/actions/learn-github-actions/contexts#github-context

@Yikun @HyukjinKwon I have simplified logic as suggested

Could also have a local test on your repo? And comments the link in here?

Good idea! I have changed the schedule for all six crons and tested them here: https://github.com/EnricoMi/spark/actions/workflows/build_and_test.yml?query=event%3Aschedule

Merged to master.


[msal-node] Release alpha.2

Coverage remained the same at 81.614% when pulling c913de9c85e50080847293b3d2d263c5baf8d16c on msal-node-alpha.2-release into 81a5bb15dd55584f917cd4dbc599955adc826783 on dev.


Fix extra comma behind group

Codecov Report

Merging #188 (c3b31a1) into master (939d0b1) will decrease coverage by 0.04%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##             master     #188      +/-   ##
============================================
- Coverage     55.36%   55.31%   -0.05%
  Complexity      581      581
============================================
  Files           117      117
  Lines          2489     2491       +2
  Branches        315      316       +1
============================================
  Hits           1378     1378
- Misses         1050     1052       +2
  Partials         61       61

Impacted Files
Coverage Δ

src/main/java/seedu/awe/model/person/Person.java
73.21% <0.00%> (-2.72%)
:arrow_down:

Continue to review full report at Codecov.

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


feat(data): Implement GET /event/device/name/{name} V2 API

Fix #2842
PR Checklist
Please check if your PR fulfills the following requirements:

[x] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/edgex-go/blob/master/.github/Contributing.md.
What is the current behavior?

Issue Number: #2842
What is the new behavior?
Implement CoreData GET /event/deice/name/{name} API to query events by offset, limit and device name.
Does this PR introduce a breaking change?

[ ] Yes
[x] No

New Imports

[ ] Yes
[x] No

Specific Instructions
Are there any specific instructions or things that should be known prior to reviewing?
Other information

Codecov Report

Merging #2847 into master will decrease coverage by 0.94%.
The diff coverage is 39.68%.

@@            Coverage Diff             @@
##           master    #2847      +/-   ##
==========================================
- Coverage   40.34%   39.40%   -0.95%
==========================================
  Files         172      166       -6
  Lines       13923    13436     -487
==========================================
- Hits         5617     5294     -323
+ Misses       7943     7820     -123
+ Partials      363      322      -41

Impacted Files
Coverage Δ

internal/core/data/v2/application/event.go
58.44% <0.00%> (-15.19%)
:arrow_down:

internal/pkg/v2/infrastructure/redis/client.go
0.00% <0.00%> (ø)

internal/pkg/v2/infrastructure/redis/event.go
0.00% <0.00%> (ø)

internal/pkg/v2/infrastructure/redis/reading.go
0.00% <ø> (ø)

internal/core/data/v2/controller/http/event.go
75.51% <80.00%> (-7.54%)
:arrow_down:

.../core/metadata/v2/controller/http/deviceservice.go
95.06% <100.00%> (ø)

... and 6 more

Continue to review full report at Codecov.

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

Modified.

please rebase and resolve the conflicts

Resolved conflicts and rebased.

recheck


Liquid error could not find asset snippits/collection-grid-item.liquid

Problem
When using SlateV1 after & after deploying to Shopify, an error is produced stating that it can not find snippits/collection-grid-item.liquid
Replication steps
slate deploy > navigate to shop URL > errors
More Information
Obviously it is looking in snippits for a file that doesn't exist. Why would this file be missing from Slate?

Great news. I updated my shop to use Minimal Theme and published. (Previous to this I was using another free Theme from Shopify). Then, I went back to Slate and used the command slate zip, uploaded this folder via Shopify and published. It also works now. In addition, when I run slate deploy it also all renders. Thank you for your help and suggestion. It must have been something to do with the theme I was using before I deployed Slate.


Problem with declaration file generated from generic extended function

I have code like so:
export class A<T> {
	//
}
export type Constructor<T> = new (...args: any[]) => T;

export function foo<T extends Constructor<{}>>(Base: T): T & Constructor<{}> {
	return class extends Base {};
}

export class B<T> extends foo<Constructor<A<T>>>(A) {}

(This is an over simplified version of real code just to show the problem)
The generated .d.ts file does not compile
export declare class A<T> {}

export declare type Constructor<T> = new (...args: any[]) => T;

export declare function foo<T extends Constructor<{}>>(Base: T): T & Constructor<{}>;

declare const B_base: Constructor<A<T>> & Constructor<{}>;

export declare class B<T> extends B_base {}

As you can see the extending function is compiled to a const B_Base and since consts can not be generic this line throws an error when using the definition file.

This is now an error, as per #17922


Added name to config

This adds a name to the YAML config, so that it can be referenced in "after" hooks, in other YAML config files.

Thanks!


Touchpanel, document tile style "buttonSelector"

example /cmnd payload
{
  "tiles":[
    {
      "screen": 1,
      "tile": 2,
      "selectorList": ["off", "low", "medium", "full"],
      "selectorSelect": 1
    }
  ]
}

Thanks for sharing the example /cmnd payload. Can you please also share an example conf/ payload (for base configuration)? Or can it be applied to any type of tile?

You have to configure a tile with style set to buttonSelector first . Then the above /cmnd payload populates the selector
This  effects tiles of style buttonSelector only.

This is done


Create git tag for version 1.2.1

This helps users understand which commit is "release stable"

1.3.0 tagged.


[Procedure Request] Codeunit 5763 "Whse.-Post Shipment" -GetCounterSourceDocTotal,GetCounterSourceDocOK

Hi, would it be possible to get a procedure GetCounterSourceDocTotal and GetCounterSourceDocOK in codeunit 5763 (Whse.-Post Shipment), like this:
procedure GetCounterSourceDocTotal(): Integer;
begin
    exit(CounterSourceDocTotal);
end;

procedure GetCounterSourceDocOK(): Integer;
begin
    exit(CounterSourceDocOK);
end;

Thanks

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


fix: correct regex for binary types

Summary
The regex to match binary MIME types had a typo (applicaton/octet-stream, note the missing i). This PR fixes that by correcting the regex so that application is only spelled once.
This PR also follows the behavior documented in this forum answer where all application/* content types are base64 encoded except for some known text types:

The fix
Going forward, we will base64 encode the body if the content-type starts with application/. This will ensure that binary media types like application/octet-stream and application/pdf arrive at their final destinations intact.
Exceptions
Requests with the following content-types will not be base64 encoded, even though they start with application/:

application/json or application/*+json
application/xml or application/*+xml
application/javascript
application/csp-report
application/graphql
application/x-www-form-urlencoded
application/x-ndjson

A picture of a cute animal (not mandatory, but encouraged)
🐫

Closing in favour of #3631.


wsusserver::config: Add proxy support feature

Pull Request (PR) description

This Pull Request (PR) fixes the following issues

Task list

[ ] Resource/Class documentation added/updated in README.md?
[ ] Examples appropriately added/updated?
[ x] Unit tests added/updated?
[ ] Integration tests added/updated (where possible)?

Hey @hoanlac9 ,
Thanks for the pull request but unfortunately i plan on deprecating this module today.  Please read #67  to understand why


[Question] Lora微调训练的时候报错

Required prerequisites

[X] I have read the documentation https://github.com/baichuan-inc/baichuan-7B/blob/HEAD/README.md.
[X] I have searched the Issue Tracker and Discussions that this hasn't already been reported. (+1 or comment there if it has.)
[ ] Consider asking first in a Discussion.

Questions
Traceback (most recent call last):
File "/mnt/workspace/LLaMA-Efficient-Tuning/src/train_sft.py", line 97, in
main()
File "/mnt/workspace/LLaMA-Efficient-Tuning/src/train_sft.py", line 69, in main
train_result = trainer.train()
File "/home/pai/envs/llama_etuning/lib/python3.10/site-packages/transformers/trainer.py", line 1645, in train
return inner_training_loop(
File "/home/pai/envs/llama_etuning/lib/python3.10/site-packages/transformers/trainer.py", line 1987, in inner_training_loop
self.accelerator.clip_grad_norm(
File "/home/pai/envs/llama_etuning/lib/python3.10/site-packages/accelerate/accelerator.py", line 1893, in clip_grad_norm_
self.unscale_gradients()
File "/home/pai/envs/llama_etuning/lib/python3.10/site-packages/accelerate/accelerator.py", line 1856, in unscale_gradients
self.scaler.unscale_(opt)
File "/home/pai/envs/llama_etuning/lib/python3.10/site-packages/torch/cuda/amp/grad_scaler.py", line 275, in unscale_
raise RuntimeError("unscale_() has already been called on this optimizer since the last update().")
RuntimeError: unscale_() has already been called on this optimizer since the last update().
Checklist

[X] I have provided all relevant and necessary information above.
[X] I have chosen a suitable title for this issue.

用 train_pt.py 也类似错误：

Traceback (most recent call last):
File "/mnt/workspace/LLaMA-Efficient-Tuning/src/train_pt.py", line 81, in
main()
File "/mnt/workspace/LLaMA-Efficient-Tuning/src/train_pt.py", line 53, in main
train_result = trainer.train()
File "/root/anaconda3/envs/baichuan-lora/lib/python3.10/site-packages/transformers/trainer.py", line 1645, in train
return inner_training_loop(
File "/root/anaconda3/envs/baichuan-lora/lib/python3.10/site-packages/transformers/trainer.py", line 1987, in inner_training_loop
self.accelerator.clip_grad_norm(
File "/root/anaconda3/envs/baichuan-lora/lib/python3.10/site-packages/accelerate/accelerator.py", line 1893, in clip_grad_norm_
self.unscale_gradients()
File "/root/anaconda3/envs/baichuan-lora/lib/python3.10/site-packages/accelerate/accelerator.py", line 1856, in unscale_gradients
self.scaler.unscale_(opt)
File "/root/anaconda3/envs/baichuan-lora/lib/python3.10/site-packages/torch/cuda/amp/grad_scaler.py", line 275, in unscale_
raise RuntimeError("unscale_() has already been called on this optimizer since the last update().")
RuntimeError: unscale_() has already been called on this optimizer since the last update().
3%|███▎                                                                                | 1/30 [00:07<03:27,  7.17s/it]

参考这篇： https://github.com/huggingface/transformers/issues/24245 ，看样子是transformers某个版本的bug，换成评论里写的

!pip install git+https://github.com/huggingface/transformers@de9255de27abfcae4a1f816b904915f0b1e23cd9
就OK了。

换成指定的transformers==4.29.1就好了


Documentation inconsistency - Rust subcommand

Changed happend in the commit 101829b23075f20aeb8e1883dcc3a4bfb547891c caused this command to not be executable anymore
https://github.com/powdr-labs/powdr/blob/cbc5dd118e0098fc21b65569fc834715c7ccc9a5/riscv/tests/riscv_data/vec_median/src/lib.rs#L11

You can run the vec_median test as follows:
First, compile it using powdr-rs
cargo run -r --bin powdr-rs compile riscv/tests/riscv_data/vec_median -o tmp
Then, you can give the input to the asm file using powdr-rs execute as follows:
cargo run -r --bin powdr-rs execute tmp/vec_median.asm -i 5,11,15,75,6,5,1,4,7,3,2,9,2


Add Elixir library

Not tried personally. But, https://github.com/stephan83/ex-jmes claims to pass official spec

Closing, this is now listed on the jmespath site.


error in pymeasure with keithley2400

in pymeasure website,
I found "making measurement with keithley 2400 "
in that example,
Import necessary packages
from pymeasure.instruments.keithley import Keithley2400
import numpy as np
import pandas as pd
from time import sleep
Set the input parameters
data_points = 50
averages = 50
max_current = 0.01
min_current = -max_current
Connect and configure the instrument
sourcemeter = Keithley2400("GPIB::4")
sourcemeter.reset()
sourcemeter.use_front_terminals()
sourcemeter.measure_voltage()
sourcemeter.config_current_source()
sleep(0.1) # wait here to give the instrument time to react
sourcemeter.set_buffer(averages)
Allocate arrays to store the measurement results
currents = np.linspace(min_current, max_current, num=data_points)
voltages = np.zeros_like(currents)
voltage_stds = np.zeros_like(currents)
Loop through each current point, measure and record the voltage
for i in range(data_points):
sourcemeter.current = currents[i]
sourcemeter.reset_buffer()
sleep(0.1)
sourcemeter.start_buffer()
sourcemeter.wait_for_buffer()
# Record the average and standard deviation
voltages[i] = sourcemeter.means
voltage_stds[i] = sourcemeter.standard_devs

Save the data columns in a CSV file
data = pd.DataFrame({
'Current (A)': currents,
'Voltage (V)': voltages,
'Voltage Std (V)': voltage_stds,
})
data.to_csv('example.csv')
sourcemeter.shutdown()
above codes are included
I tried to execute this code, but it was not worked.
is there any problem in this code?

Hi! Sorry to hear you are having problems.
First, you can use triple backticks to format your code as source code, much better readable that way.
Second, please go into more detail what did not work, e.g. show error messages you have seen, or other observations that tell you that it did not work. Otherwise, it will be hard to assist you.

Closing as submitter did not respond.

Hello,
having some errors with the pymeasure tutorial for Keithley 2400 below, it seems so command have change or not used anymore. such as
sourcemeter.config_current_source() and sourcemeter.set_buffer(averages) i believe the first one can be replaced by .apply_current and the second one by .config_buffer() but then i get some error 800 error i dont get it. if anybody has an updated tutorial to run that code.
thanks
Import necessary packages
from pymeasure.instruments.keithley import Keithley2400
import numpy as np
import pandas as pd
from time import sleep
Set the input parameters
data_points = 50
averages = 50
max_current = 0.01
min_current = -max_current
Connect and configure the instrument
sourcemeter = Keithley2400("GPIB::4")
sourcemeter.reset()
sourcemeter.use_front_terminals()
sourcemeter.measure_voltage()
sourcemeter.config_current_source()
sleep(0.1) # wait here to give the instrument time to react
sourcemeter.set_buffer(averages)
Allocate arrays to store the measurement results
currents = np.linspace(min_current, max_current, num=data_points)
voltages = np.zeros_like(currents)
voltage_stds = np.zeros_like(currents)
Loop through each current point, measure and record the voltage
for i in range(data_points):
sourcemeter.current = currents[i]
sourcemeter.reset_buffer()
sleep(0.1)
sourcemeter.start_buffer()
sourcemeter.wait_for_buffer()
# Record the average and standard deviation
voltages[i] = sourcemeter.means
voltage_stds[i] = sourcemeter.standard_devs

Save the data columns in a CSV file
data = pd.DataFrame({
'Current (A)': currents,
'Voltage (V)': voltages,
'Voltage Std (V)': voltage_stds,
})
data.to_csv('example.csv')
sourcemeter.shutdown()


Error reporting bugged

I'm using apollo on the frontend and absinthe on the backend. I experienced an issue where I was submitting a mutation to the backend but it would not go through. I'd get a totally different unrelated error like:

Turns out the actual error in the backend was that the input was incorrect (a required argument was not provided). This error was not reported because I was getting Uncaught TypeError: Cannot read property '_observer' of undefined instead. That undefined error is the one being reported because subscription is undefined in the below code:
   // zen-observable v0.6.0 lines 158-162.
   var subscription = this._subscription;

    // If the stream is closed, throw the error to the caller
    if (subscriptionClosed(subscription))
      throw value;

This happens before the actual error value is thrown.
We do not use zen-observable directly in our project and is only a dependency of socket-apollo-link.

This issue will be fixed on the next release that will be released on March, meanwhile I will attach below a stacktrace taken from the error on a release with sourcemaps:
undefined is not an object (evaluating 'subscription._observer')

subscriptionClosed
   zen-observable.js:66:22
error
   zen-observable.js:161:27
<unknown>
   notify.js:6:49
notify
   notify.js:11:29
abortRequest
   pushRequest.js:39:17
onError
   pushRequest.js:43:15
<unknown>
   createPushHandler.js:15:4
matchReceive
   phoenix.js:321:17
<unknown>
   phoenix.js:354:27
trigger
   phoenix.js:614:13
<unknown>
   phoenix.js:436:21
trigger
   phoenix.js:614:13
<unknown>
   phoenix.js:1037:19
onConnMessage
   phoenix.js:1023:18
dispatchEvent
   event-target.js:172:43
<unknown>
   WebSocket.js:237:27
emit
   EventEmitter.js:182:12
__callFunction
   MessageQueue.js:353:47
<unknown>
   MessageQueue.js:118:26
__guardSafe
   MessageQueue.js:316:6
callFunctionReturnFlushedQueue
   MessageQueue.js:117:17

I have a similar problem
has this issue some advance o some temporal solution?

Any word on that March release?

Hi everyone,
The new version should be released soon, unfortunately the past 2 months I haven't had enough time to move forward with it as we are in the last phase of the product for the company I work for and support my time on absinthe.
I will be able to proceed with the release once we ship the product, and this should be in the next month or so.
My apologies to everyone.

Does this error prevent apollo's subscriptions from working?

What can I do to fix this?

Any updates on this? I'm running into this issue, that seems to be triggered when called resetStore on my Apollo client.

@mgtitimoli Is there any update on this? I'm seeing this error frequently as well

I opened a PR to solve this and #15 . Please see below:
https://github.com/absinthe-graphql/absinthe-socket/pull/26

I can confirm that the patch in PR #26 does fix the issue over here! Thank you @mpoeter and @rjacobskind for this! I hope some fix for these problem will be released soon as a working subscription mechanism seems vital for this project.


HTTP Delete

[x] Delete HTTP method
[x] Refactor make requests
[x] Not printing in the docs the body if it is empty

closes https://github.com/camilamaia/scanapi/issues/7


[Bugfix] Allow vllm to still work if triton is not installed.

We are currently needing to add triton as a dependency to all of the non-CUDA backends. This is because importing triton is still performed in various places throughout the library regardless of the backend.
This PR adds a function maybe_import_triton which will check to see if Triton is available in the environment. If it is not, it will replace Triton with a mocked up version that allows all the vLLM code to be imported.
An alternative approach might be to try to make the import conditional on the device. I have a feeling that would introduce a fair amount of additional complexity (e.g., we would need to only import triton after the engine has been constructed) but haven't worked through it in full.

I feel this approach is a bit hacky. In general, we should avoid import triton kernels when triton is not available. If we really have to mock triton, is it possible to keep the API compatible so that we don't need version != 0.0.0 guard?

If we really have to mock triton, is it possible to keep the API compatible so that we don't need version != 0.0.0 guard?

@comaniac that guard is actually there to keep the code in when using the mock (or triton >= 2.1.0). the mock is already compatible. we could just remove the guard entirely imo because the triton version should be controlled via the requirement.txt
I will try a few things to see what it would take to do it without the mock entirely.

@comaniac I did another pass through this. Changes are:

There is no longer any need to mock Triton.
Instead, I just took care to import the modules that contain Triton code only if Triton is available.
I decided to factor the Fp8MoEMethod into its own file to make the conditional import a bit cleaner. It can be kept inside fp8.py but then would need to be inside an if HAS_TRITON block which creates ugly indentation imo.
Aside from that all changes are minimal

/ready


🎨  improve rust doc experience for http status code error

rustdoc now can show the error code and http code doc


[FEATURE] [v7] Support passing schema via async function

See #154

Implemented in v7.0.0-next.51


Remove usages of lexical_core for parsing integers

Describe the bug

https://github.com/apache/arrow-rs/pull/5398 identified that the lexical_core crate parses integer overflow incorrectly.
We need to remove its usage in arrow-rs (when its used for integer parsing) for correctness (see that PR above for what to replace it with)
To Reproduce

One usage is in arrow-json, see example test:
    #[test]
    fn test_basic() {
        let buf = r#"
        {"a": 255}
        {"a": 999}
        "#;

        let schema = Arc::new(Schema::new(vec![Field::new("a", DataType::UInt8, true)]));

        let batches = do_read(buf, 1024, false, false, schema);
        assert_eq!(batches.len(), 1);

        let col1 = batches[0].column(0).as_primitive::<UInt8Type>();
        dbg!(col1);
    }

Output:
[arrow-json/src/reader/mod.rs:786:9] col1 = PrimitiveArray<UInt8>
[
  255,
  231,
]

Where 999 was parsed as 231_u8
Parsing code:
https://github.com/apache/arrow-rs/blob/e7ce4bbd6632eff304514b1f60f5fa4172676cd1/arrow-json/src/reader/primitive_array.rs#L43-L56
Expected behavior

Should parse as null or return error (it returns error when parsing 256, so probably lean towards this, at least in context of the example above)
Additional context

Not certain on float parsing, limited testing done seems to indicate it'll just parse overflow as Infinity
Might be worth considering switch entirely considering its maintenance status (and to prevent accidental usage for parsing integers in the future)

Resolved by #6402


How to calculate something and insert into filename_pattern?

If any man of culture here could lend me a hand I'd highly appreciate it!
Is there any easy way to do this?
Calculate This:

This = (Engagement per post)*100/(Average user engagement)
and then use This number in the filename_pattern='{This)'?

Also, how can I write location/geotags (not id,slug,lat,long, etc, only name) into the text file generated by post_metadata_txt_pattern='{location/geotags}'
Working with this script as a base:
from itertools import islice
from math import ceil

from instaloader import Instaloader, Profile

PROFILE = 'usernamehere'
X_percentage = 100

L = Instaloader(filename_pattern='@{profile}_{date_utc:%Y-%m}_{shortcode}', download_video_thumbnails=False, download_geotags=False, download_comments=False, save_metadata=False, post_metadata_txt_pattern='{date_utc:%Y-%m-%d,%H:%M:%S}, Post date and time\r\n{caption}, Caption\r\n{likes} Likes\r\n{video_view_count} Video views\r\n{comments},  Comments')

profile = Profile.from_username(L.context, PROFILE)
posts_sorted_by_likes = sorted(profile.get_posts(), key = lambda p: p.likes + p.comments)

for post in islice(posts_sorted_by_likes, ceil(profile.mediacount * X_percentage / 100)):
    L.download_post(post, PROFILE)

@RualLozun Got any solution on this ?


Fix for issue 44 from bitbucket (slash handling)

I've applied the changes I made while this project was on bitbucket to fix issue 44 (slash handling).

Abandoned PR, closing.


fix typo in Ruby strftime test function name

In PR #4, a test function was added to test the Ruby strftime formatter for millisecond precision. Unfortunately, I just noticed there is a typo in the name of the function (Stftime instead of Strftime).
This change addresses the issue caused by my fat fingers.

thanks :smile:


Delete uuids trashed more than 1 year ago

Before merging, please update version at package.json

Please just give some thought on why the trashed entity revisions aren't deleted and how to delete them.
Before the migration:
+----------------+----------------------+
| discriminator  | count(discriminator) |
+----------------+----------------------+
| blogPost       |                    6 |
| comment        |                  727 |
| entity         |                 2459 |
| entityRevision |                 1474 |
| pageRevision   |                    2 |
| taxonomyTerm   |                  920 |
+----------------+----------------------+

After
> select discriminator, count(discriminator) from uuid where trashed = 1 group by discriminator;
+----------------+----------------------+
| discriminator  | count(discriminator) |
+----------------+----------------------+
| comment        |                   70 |
| entity         |                  274 |
| entityRevision |                 1474 |
| taxonomyTerm   |                   30 |
+----------------+----------------------+

how to delete them [trashed entity revisions].

Indeed, in that case, we could just use the date column at entity_revision table


Move TableLister functionality into TableProperties.streamFromS3

Background
The TableLister class is now the only class in the tables module. It would be nice to either move it to another module or get rid of it.
Description
It looks like the TableProperties.streamFromS3 method does the same thing as TableLister, except it creates a stream of TableProperties objects instead of a list of table names. We could add a new method in TableProperties like getTableNamesFromS3 to map and collect that stream to a list of table names.

TableLister was removed in PR https://github.com/gchq/sleeper/pull/1440


Track state variable and attribute usage

Track if rx.Vars and their attributes are used (directly or via var operations) and only include used variables in the state dict. This should result in reduced initial state payloads and network traffic for var changes, which are not really needed in the frontend.
My plan is to write a second PR based on this one, which includes "used" properties (normal python properties with @property decorator) in the serialization. This allows users to use those properties in the frontend without always computing all properties for a given class. (related to my comment here)
Co-Author: @macmoritz

Will have to continue holding off on this one for the time being, because it breaks with the reflex.dev website.
Flexdown currently redefines State classes multiple times per doc file, so they lose their _is_used markers.

Needs #3214 for flexdown

Will have to continue holding off on this one for the time being, because it breaks with the reflex.dev website.
Flexdown currently redefines State classes multiple times per doc file, so they lose their _is_used markers.

@masenf I just rebased onto main and tested this locally with flexdown branch benedikt-bartscher/per-block-module, and it seems to work fine. However, reflex-web ci is still failing

@masenf did you release a new flexdown version yet?
Shall we stall this one until the new var system is merged? Did you have usage tracking in mind while designing it?

@benedikt-bartscher I just cut a new version of flexdown 0.1.5a10 off the latest main

Thank you, @picklelo. I just raised https://github.com/reflex-dev/reflex-web/pull/855

Finally, reflex-web ci is passing, thanks again @picklelo and @masenf.
Now we just need to figure out how we handle this with the new var system in #3743 cc @adhami3310

@masenf @adhami3310 do you have any hints/ideas on how to implement this for ImmutableVar's?

ideas on how to implement this for ImmutableVar

Since immutable vars can't have such fields, it could be possible to have a state-level mapping between vars and if they are used or not, although it will be fairly tricky to implement.
I'm not sure however how this will be that strong of an optimization considering that in an ideal application (almost) all vars will be used somewhere in the code, rendering all of the operations we do to figure out if a variable is being used unnecessary. Another issue is that it would slow down compile times (even further). Is there unseen advantages I'm missing?

Thanks for your feedback. You are right, it might introduce some additional compile time. But I think it should be possible without too much overhead, and (at least us) runtime performance is more important.

an ideal application (almost) all vars will be used somewhere in the code
While this should always be the goal, there are many cases where it is not true.
Some examples:

Reflex internal vars like router or dynamic router vars can not be disabled and may not be needed at all.
Libraries may share reusable State classes or Mixins, and the user might not want to use all vars.

Another advantage of usage tracking is automatic serialization of python/sqla/... properties if they are used in the frontend.

@adhami3310 I completely forgot about one of the biggest benefits. Sorry, it has been a long time since I started this PR. Reflex currently always serialize complete root-level vars. Meaning, if you have f.e. a rx.Base class with 10 fields, reflex always serializes all of them if you don't provide a custom serializer.

Closing this, continue here: https://github.com/reflex-dev/reflex/pull/3845


Export only types

common-spectrum uses the types from this project, so currently, it needs to import everything from this project. What do you think to have something similar to @types/zakodium-react-plot?

If you only need the types, you can use import type ... in TS

But in the install, I will need to install it as a dependency and all the co-dependencies, isn't it?

Why does common-spectrum need the types from this project?
We cannot really do a @types because this is already a TypeScript project with types. We could publish some types separately but that would make it more difficult to maintain react-plot.

It's needed for generate the PlotObject

Is there a problem with the dependencies? There shouldn't be too many of them, and they won't be included in front-end bundles I think.

Thank you


Merge feature/pit branch to main

Description
Merge PIT changes to main
Check List

[x] New functionality includes testing.
[x] New functionality has been documented.
[x] New functionality has javadoc added.
[ ] New functionality has a user manual doc added.
[ ] API changes companion pull request created.
[x] Commits are signed per the DCO using --signoff.
[x] Public documentation issue/PR created.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

LGTM..address the documentation comment and I will approve.


[Accessibility Request] codeunit 9702 "Cues And KPIs Impl." - GetCustomizedCueStyleOption

In procedure GetCustomizedCueStyleOption in codeunit 9702 "Cues And KPIs Impl." we have the event OnBeforeGetCustomizedCueStyleOption.
This works well to override the cue style.
But I only want to override the cue style if the use hasn't personalized the setup.
Cue Setup is internal, so I cannot check that myself.
Can you add a event in the end if the procedure that only runs when a personalized setup is missing.
Or add a procedure to CuesAndKPIs to be able to check if a personalized setup exists?

What would such a procedure look like? Something along the lines of this?
procedure PersonalizedCueSetupExists(TableID: Integer; FieldID: Integer): Boolean

What would such a procedure look like? Something along the lines of this? procedure PersonalizedCueSetupExists(TableID: Integer; FieldID: Integer): Boolean

It will solve the problem, yes :)
I assume that the procedure will check based on the current user?

That was the idea, yes. It could also check if any personalizations exist. That call is up to you.

I agree with your suggestion :)

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 43366.


Fix AzurePipeline Failure: disable conda-forge channel for conda install

Description
To fix the conda-forge issue on AzurePipeline, simply use the package from conda instead of conda-forge.
Motivation
Windows-CI is failing on AzurePipeline. conda-forge channel is broken on AzurePipeline.

Can one of the admins verify this patch?

It seems that this bug in Azure Pipeline has been fixed itself... Closing it now because it is not necessary anymore.


[e2e]: go release main config-ldflags-noassets slsa3

Repo: https://github.com/slsa-framework/example-package/tree/v17.0.124
Run: https://github.com/slsa-framework/example-package/actions/runs/3247286121
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.go.release.main.config-ldflags-noassets.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.go.release.main.config-ldflags-noassets.slsa3.yml
Trigger: release
Branch: v17.0.124
Date: Fri Oct 14 03:45:40 UTC 2022

Repo: https://github.com/slsa-framework/example-package/tree/v17.0.125
Run: https://github.com/slsa-framework/example-package/actions/runs/3252014793
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.go.release.main.config-ldflags-noassets.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.go.release.main.config-ldflags-noassets.slsa3.yml
Trigger: release
Branch: v17.0.125
Date: Fri Oct 14 18:27:40 UTC 2022

Repo: https://github.com/slsa-framework/example-package/tree/v17.0.126
Run: https://github.com/slsa-framework/example-package/actions/runs/3252385233
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.go.release.main.config-ldflags-noassets.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.go.release.main.config-ldflags-noassets.slsa3.yml
Trigger: release
Branch: v17.0.126
Date: Fri Oct 14 19:25:38 UTC 2022
Tests are passing now. Closing this issue.


Add 'restart: always' to the docker-compose snippet in the README.md

Add 'restart: always' to the docker-compose snippet. Addressing the issue in #6

LGTM, thanks !


USM: reduce number of instructions for socket__http2_headers_parser

What does this PR do?
Using a restrict (ref) keyword to allow clang optimization on the pointer argument.
Specifically this hint allows the compiler to perform some code eliminations when emitting load operations.
similar to https://github.com/DataDog/datadog-agent/pull/24788
Motivation
reduce instruction count of the heavy ebpf programs
Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes
Using the ebpf.print-verification-stats command on main and on this branch:
inv -e ebpf.print-verification-stats --filter-file usm.o --grep http2_filter --out stats_http2_restrict.json --jsonfmt
Before:
    "usm/socket__http2_headers_parser": {
        "instruction_processed": 756020,
        "limit": 1000000,
        "max_states_per_insn": 29,
        "peak_states": 11662,
        "stack_usage": 496,
        "total_states": 31261
    }

After
    "usm/socket__http2_headers_parser": {
        "instruction_processed": 733138,
        "limit": 1000000,
        "max_states_per_insn": 32,
        "peak_states": 11475,
        "stack_usage": 496,
        "total_states": 31175
    }

/merge


Refactor OSError

Implement raw_os_error_to_exc_type to reduce duplication of errno to
exception type.

@ChJR could you review this PR?

I think this PR makes OSError better before.

If this PR can be merged into 'main' branch, it could be helpful for making errno as attribute, required to pass windows test of #2993.

thank you!


Fix R dart prediction and add test.

Closes https://github.com/dmlc/xgboost/issues/5203 .

I tested this PR with my code at the issue and I'm afraid it might not suffice. First, with training = T added, I am seeing different predictions with ntreelmit set or not, as expected, but neither matches the predictions from 7b65698. Second, with training not provided, the predictions should match the predictions from 7b65698 with ntreelimit set, shouldn't they? But they don't. They're unaltered from master.

@Kodiologist Try to use xgb.train instead of xgboost for running on commit before the fix.  I believe it's because the evaluation added by xgboost causes an extra internal prediction process, which performs drop tree.

@Kodiologist Indeed, using xgb.train instead of xgboost(...) on the commit before fix:
library(xgboost)

set.seed(15)

d <- cbind(
  x1 = rnorm(100),
  x2 = rnorm(100),
  x3 = rnorm(100))

y <- d[,"x1"] + d[,"x2"]^2 +
  ifelse(d[,"x3"] > .5, d[,"x3"]^2, 2^d[,"x3"]) +
  rnorm(100)
nrounds <- 30

dtrain <- xgb.DMatrix(data=d, info = list(label=y))
params <- list(
  verbose = 0,
  booster = "dart",
  objective = "reg:squarederror",
  eval_metric = "rmse",
  rate_drop = .5,
  nthread = 1,
  one_drop = TRUE
)

fit <- xgb.train(
  params,
  data = dtrain,
  nrounds = nrounds)

xgb.save(fit, 'model_after.json')

pr <- function(...) {
  predict(fit, newdata = d, ...)
}

cat("w/o ntreelimit\n")
print(pr())
cat("with ntreelimit\n")
print(pr(ntreelimit = nrounds))
print("With training.")
print(pr(training=T))

generates:
with ntreelimit
  [1]  0.9003429  2.5287831  0.8874675  4.4098668  1.9609053  1.0055976
  [7]  0.3943650  1.7076734  6.3382840  0.2433042  4.1564407  1.3798609
 [13]  0.8874675 -0.5890894  2.9998991  2.0813766  3.1467826  1.2559140
 [19]  1.2184663  1.6247368  2.8361428  3.0794213  0.3370866  0.8874675
 [25]  3.5600305  0.6429486  1.6469479  1.1856699  0.3368608  4.3451409
 [31]  6.5794563  0.3370866  4.6248546  1.6578684  5.0521989  1.0926565
 [37]  0.8874675  1.5971428  3.1831484  1.1504483  1.5336471  1.0496976
 [43]  6.5794563  6.4258838  0.3370866  3.1878321  2.2314143  3.0794213
 [49]  5.5349374  1.6474503  3.0835233  1.7872251  1.2559140  3.3080211
 [55]  5.5349374  1.6369976  5.4840751  6.5794563  1.2103307  0.3370866
 [61]  0.8154036  0.3649135  2.2150474 -0.6399471 -0.3155120 -0.6399471
 [67]  0.3370866  6.5794563  1.4331715  2.6804214 -0.5307322 -0.6230295
 [73]  1.0664585  2.3703270  0.3943650  1.6101770  5.0521989  1.1136512
 [79]  1.1178694  4.6676064  0.8874675  3.2310014  1.7612056  1.6548371
 [85]  1.2863905  2.3352165  1.7612056  1.3605072  0.3943650  1.0489140
 [91]  0.6624517  2.3703270  2.9735966  5.5349374  1.5185604  3.3080211
 [97]  0.8874675  2.6156211  0.3625812 -0.5307322

Which is consistent with current PR.

Also w/o ntreelimit before fix is consistent with with training after fix.


Bug 1996784: Add optional chaining for empty resources request

https://bugzilla.redhat.com/show_bug.cgi?id=1996196

I've cloned the above BZ (which we're using for 1.5.1) to target release 1.6.0. Since this is merging into master, and we don't have a 1.6.0 release branch yet, labeling this so that when it merges, the BZ gets correctly updated for the 1.6.0 release.
Here is the cherry pick for 1.5.1: https://github.com/konveyor/mig-ui/pull/1279


AnimatedSprite | Select Frames dialog, auto-select field contents

Godot version
3.5.stable.official
System information
Windows 10
Issue description
When using the AnimatedSprite | Select Frames dialog, the current field (Horizontal, Vertical, Size, Separation, Offset) contents are not "auto-selected" when the field receives focus (either by pressing Tab or mouse-click into the field).
So, if you tab across the fields (for example) and enter values the typed information is concatenated to the dialog's current contents rather than replacing it. So, to effectively change a value, you must either Ctrl-A to select everything in the field prior to typing or manually delete the current contents. This makes changing all of the fields much harder than necessary.

Steps to reproduce

Add an AnimatedSprite node the scene
Set the Frames field to new SpriteFrames
Selec the new SpriteFrames item to open the Animation Editor
Create a new animation
Press the Add Frames from a Sprite Sheet button in the editor's toolbar
Select a sprite sheet file to open the Select Frames dialog
The fields at the top of the dialog have the described issue

Minimal reproduction project
Unnecessary here I think, but happy to provide something if needed.

I think this behavior should be implemented in base SpinBox directly, instead of being done in editor code.

@Calinou - agreed, that makes sense. I assumed the issue was being handled more locally since there are other examples of spinbox usage where auto-selection works as expected. Though, I can't think of a case where the auto-select behavior would be undesirable, so implementing it at the level of the control seems reasonable.


Bump registry version

$Subject
Fix the https://github.com/wso2/product-is/issues/19658
Registry's Guava version was bumped by https://github.com/wso2/carbon-registry/commit/38965523a108134ed6614ed0aa068eed791b7ee4
guava jar packing from the registry is fixed by this PR

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/7930082240

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/7930082240
Status: success


Introduce HookedBlocConfigProvider

Remove global reference to injector, build and listen callback
Instead using HookedBlocConfigProvider bind this config to widget tree

Codecov Report

Merging #48 (b53cf15) into develop (c2765ae) will decrease coverage by 7.22%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop      #48      +/-   ##
===========================================
- Coverage   100.00%   92.77%   -7.23%
===========================================
  Files           11       12       +1
  Lines           66       83      +17
===========================================
+ Hits            66       77      +11
- Misses           0        6       +6

Impacted Files
Coverage Δ

lib/src/cubit_defaults.dart
100.00% <ø> (ø)

lib/src/injection/hook_injection_controller.dart
14.28% <ø> (-85.72%)
:arrow_down:

lib/src/bloc_action_listener.dart
100.00% <100.00%> (ø)

lib/src/bloc_builder.dart
100.00% <100.00%> (ø)

lib/src/bloc_factory.dart
100.00% <100.00%> (ø)

lib/src/bloc_hook.dart
100.00% <100.00%> (ø)

lib/src/bloc_listener.dart
100.00% <100.00%> (ø)

lib/src/hooked_bloc.dart
100.00% <100.00%> (ø)

lib/src/injection/bloc_hook_injector_config.dart
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


Based on guidelines, avoid using int within public header files, such as Concurrency within share_options

Follow up from https://github.com/Azure/azure-sdk-for-cpp/pull/2276
We have the guideline to avoid it.
https://azure.github.io/azure-sdk/cpp_implementation.html#integer-sizes

Going from int to int32_t isn't typically considered breaking, but we still want to make this happen before GA.
For example:
https://github.com/Azure/azure-sdk-for-cpp/blob/e4a18b5eb3b556fae7bde96c43444f27f2fcbdb8/sdk/storage/azure-storage-files-shares/inc/azure/storage/files/shares/share_options.hpp#L638-L642
And:
https://github.com/Azure/azure-sdk-for-cpp/blob/e4a18b5eb3b556fae7bde96c43444f27f2fcbdb8/sdk/storage/azure-storage-blobs/src/private/package_version.hpp#L26-L32
We want to reduce use of int in source//cpp files as well, but that isn't critical for GA. Fixing the header files is more of a priority.
cc @Jinming-Hu

This is a kind of controversial guideline. I think using int for concurrency and version is just fine.
I might be able to accpet using int32_t for version to keep alignment.

The guidelines haven't changed on this topic for quite a long time, the issue is primarily about making sure the source code is following it.
Do you want to discuss making an exception for these 1-2 specific fields? If so, care to provide a justification or reason, why it should be that way for these cases?

All right, fine. It's not a big deal. totally not worth it. I'll just remove ints.


[Feature] Support batch insert job

Abstract
In Doris, handling large-scale data imports with the traditional INSERT INTO SELECT * FROM statement can be inefficient due to long execution times or high retry costs when dealing with massive data volumes. Additionally, too many segments can impact query performance and compaction processes. To address these issues, Doris introduces the Batch Insert Job feature. This feature allows users to define a batch insert job, which slices the task into smaller parts based on specified configurations, thus improving the performance and usability of bulk data processing.
Use Cases
Batch insert jobs are particularly suitable for the following scenarios:

When large-scale data operations exceed the limits of a single transaction.
When bulk data processing does not overlap in time or data with online application operations, thus not requiring strong isolation.
When bulk data operations are idempotent or easy to retry, thus not requiring strong atomicity.

In these scenarios, using batch insert jobs can overcome the limitations of large transactions, enhance execution efficiency, and reduce resource consumption.
Syntax
BATCH ON COLUMN table_name.column_name STARTS starts_value ENDS ends_value LIMIT limit_value AS insert_into_select_statement

Parameter Description

COLUMN table_name.column_name: The split column from the data source, which must be a column name in the table and of an integer type (other types will be supported later).
STARTS starts_value: The starting value of the split column.
ENDS ends_value: The ending value of the split column.
LIMIT limit_value: The split batch size.
insert_into_select_statement: The statement in the format of insert into select * from table.

Example
BATCH ON COLUMN table_name.column_name STARTS 1 ENDS 100 LIMIT 2 AS insert into target_table_name select * from table_name

In this example, table_name.column_name is the split column, 1 is the starting value, 100 is the ending value, 2 is the split batch size, and insert into select * from table_name is the insert statement. This will be automatically divided into two tasks:
  insert into target_table_name select * from table_name where column_name >= 1 and column_name < 50
  insert into target_table_name select * from table_name where column_name >= 50 and column_name <= 100

We can check the status of the tasks with the command: select * from tasks("type"="batch_insert").
Design and Implementation
Job Event Subscription and Task Group

Task Scheduling: Unschedulled tasks are saved in the task table and await execution by the scheduler. After the completion of prerequisite tasks, a message notification triggers the scheduler to execute subsequent tasks.
Task Group: Each job generates a task group to associate all tasks belonging to the same job. Tasks within a task group can be executed serially or in parallel.

Each time a job is executed, a task group is created to maintain relationships and facilitate the serial or parallel execution of tasks within the group according to the specified degree of parallelism.
Add batch_insert_job type
Dynamic SQL Rewriting
When generating tasks, the system dynamically rewrites the execution plan based on the split rules, creating corresponding query conditions for each task.
Refactored Insert Job for Code Reuse
How to use
Create job
BATCH ON COLUMN address.user_id starts 3 ends 20 limit 5 using insert into address select * from address;
Query OK, 0 rows affected (0.03 sec)
create batch insert job success, job id: 13569

Query job
mysql> select * from jobs("type"="batch_insert") where id=13569 \G
*************************** 1. row ***************************
               Id: 13569
             Name: batch_job13569
          Definer: root
      ExecuteType: INSTANT
RecurringStrategy: INSTANT
           Status: FINISHED
       ExecuteSql: insert into address select * from address
                                                                                CreateTime: 2024-06-20 15:55:11
 SucceedTaskCount: 5
  FailedTaskCount: 0
CanceledTaskCount: 0
          Comment:
      SplitColumn: orders.address.user_id
            Limit: 5
           Starts: 3
             Ends: 20
1 row in set (0.01 sec)

Query task

mysql> select * from tasks("type"="batch_insert") where jobId=13569 \G
*************************** 1. row ***************************
       TaskId:<PHONE_NUMBER>9087
        JobId: 13569
      JobName: batch_job13569
        Label: 13569_33986222989087
       Status: SUCCESS
          Sql: insert into address select * from address
                                                                                ErrorMsg:
   CreateTime: 2024-06-20 15:55:11
   FinishTime: 2024-06-20 15:55:11
  TrackingUrl:
LoadStatistic:
         User: root
   SplitRange: [3..5]
*************************** 2. row ***************************
       TaskId:<PHONE_NUMBER>7811
        JobId: 13569
      JobName: batch_job13569
        Label: 13569_33985665257811
       Status: SUCCESS
          Sql: insert into address select * from address
                                                                                ErrorMsg:
   CreateTime: 2024-06-20 15:55:11
   FinishTime: 2024-06-20 15:55:11
  TrackingUrl:
LoadStatistic:
         User: root
   SplitRange: [6..8]
*************************** 3. row ***************************
       TaskId:<PHONE_NUMBER>9550
        JobId: 13569
      JobName: batch_job13569
        Label: 13569_33985292679550
       Status: SUCCESS
          Sql: insert into address select * from address
                                                                                ErrorMsg:
   CreateTime: 2024-06-20 15:55:11
   FinishTime: 2024-06-20 15:55:11
  TrackingUrl:
LoadStatistic:
         User: root
   SplitRange: [9..11]
*************************** 4. row ***************************
       TaskId:<PHONE_NUMBER>7236
        JobId: 13569
      JobName: batch_job13569
        Label: 13569_33984716587236
       Status: SUCCESS
          Sql: insert into address select * from address
                                                                                ErrorMsg:
   CreateTime: 2024-06-20 15:55:11
   FinishTime: 2024-06-20 15:55:11
  TrackingUrl:
LoadStatistic:
         User: root
   SplitRange: [12..14]
*************************** 5. row ***************************
       TaskId:<PHONE_NUMBER>8729
        JobId: 13569
      JobName: batch_job13569
        Label: 13569_33985509118729
       Status: SUCCESS
          Sql: insert into address select * from address
                                                                                ErrorMsg:
   CreateTime: 2024-06-20 15:55:11
   FinishTime: 2024-06-20 15:55:11
  TrackingUrl:
LoadStatistic:
         User: root
   SplitRange: [15..20]

todo

Support for more data types in split columns
Verify if the split column exists in the source table
Support for manual task retries
Support for task recovery after restart/failover

I'm very excited for this, I was looking for basically the exact same thing to load ranges of dates recently, but instead I had to write a flaky python script for it.


Features generated with differing instance name throw exception

Feature should be able to support a new instantiation with a different name than it's type. Right now it uses the asset name to determine it's type, which is incorrect.
TypeLoadException: Could not load type 'Menu'.
System.Type.GetType (System.String typeName, Boolean throwOnError, Boolean ignoreCase) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Type.cs:487)
Fuse.Core.Fuse+FeatureReference+<Load>c__Iterator1.MoveNext () (at Assets/Plugins/Fuse/Core/Fuse.cs:435)
UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress) (at /Users/builduser/buildslave/unity/build/Runtime/Export/Coroutines.cs:17)

Fixed with 84db1a0


SELinux Confined User (staff_u) cannot start electronic-wechat

Description
For security,I had configured SELinux Confined User (staff_u) following the guide from http://danwalsh.livejournal.com/66587.html ,after all have done,I reboot and login in,check it has successful;
$ id -Z
staff_u:staff_r:staff_t:s0:c0.c1023

but when I start electronic-wechat,I got this error;
$ ./electronic-wechat
p11-kit: couldn't open and map file: /etc/pki/ca-trust/source/README: Permission denied
p11-kit: couldn't open and map file: /usr/share/pki/ca-trust-source/ca-bundle.neutral-trust.crt: Permission denied
p11-kit: couldn't open and map file: /usr/share/pki/ca-trust-source/ca-bundle.trust.crt: Permission denied
p11-kit: couldn't open and map file: /usr/share/pki/ca-trust-source/README: Permission denied
p11-kit: couldn't open and map file: /usr/share/pki/ca-trust-source/ca-bundle.supplement.p11-kit: Permission denied
Reconnect.
Reconnect.
Reconnect.
Reconnect.
Reconnect.
Reconnect.
Reconnect.
Reconnect.

I tried to change the permission of file and directory ,but nothing has changed.
I can start it with sudo role,but some other problem cased,for example,I cannot use sogou-pinyin, and I'm worried I don't know if some security happened in background ...
can anyone explain what had happened?how to resolve it ?
Specifications

Version of Electron (run $ electron --version): v1.4.15
OS: Fedora 25

@LanstonWu Should be related to Electron or your configuration itself. Open an issue in Electron's repo if you'd like to.


Uncaught Error: ENOENT: no such file or directory, lstat '~/AppData\Local\atom\app-1.32.0\css'

[Enter steps to reproduce:]

...
...

Atom: 1.32.0 x64
Electron: 2.0.9
OS: Microsoft Windows 10 Pro
Thrown From: Atom Core
Stack Trace
Uncaught Error: ENOENT: no such file or directory, lstat 'C:\Users\Yusuf Duman\AppData\Local\atom\app-1.32.0\css'
At fs.js:1661

Error: ENOENT: no such file or directory, lstat 'C:\Users\Yusuf Duman\AppData\Local\atom\app-1.32.0\css'
    at Proxy.realpathSync (fs.js:1661:15)
    at Proxy.fs.realpathSync (ELECTRON_ASAR.js:336:29)
    at TreeView.t.exports.TreeView.moveEntry (~/AppData/Local/atom/app-1.32.0/resources/app/static/<embedded>:14:916506)
    at TreeView.t.exports.TreeView.onDrop (~/AppData/Local/atom/app-1.32.0/resources/app/static/<embedded>:14:922390)
    at HTMLDivElement.<anonymous> (~/AppData/Local/atom/app-1.32.0/resources/app/static/<embedded>:14:896171)

Commands
  2x -6:01.9.0 core:backspace (input.hidden-input)
     -5:51.3.0 atom-live-server:startServer (input.hidden-input)
     -5:28.8.0 core:save (input.hidden-input)
     -5:11.6.0 core:backspace (input.hidden-input)
     -5:09.8.0 core:move-down (input.hidden-input)
     -5:09.6.0 editor:newline (input.hidden-input)
  5x -5:08.6.0 core:backspace (input.hidden-input)
     -5:04.3.0 autocomplete-plus:confirm (input.hidden-input)
     -5:03.4.0 core:save (input.hidden-input)
     -1:28.9.0 tree-view:add-file (span.name.icon.icon-file-directory)
     -1:27.2.0 core:confirm (input.hidden-input)
     -1:23.5.0 tree-view:remove (li.file.entry.list-item.selected)
     -1:11.9.0 tree-view:add-folder (span.name.icon.icon-file-directory)
     -1:10.4.0 core:confirm (input.hidden-input)
     -0:57.5.0 tree-view:add-folder (span.name.icon.icon-file-directory)
     -0:56.4.0 core:confirm (input.hidden-input)

Non-Core Packages
atom-live-server 2.3.0

Thanks for contributing!
We noticed that this looks like a duplicate of https://github.com/atom/tree-view/issues/1282 so you can subscribe there for updates if you'd like.

Because we treat our issues list as the Atom team's backlog, we close duplicates to focus our work and not have to touch the same chunk of code for the same reason multiple times. This is also why we may mark something as duplicate that isn't an exact duplicate but is closely related.
For information on how to use GitHub's search feature to find out if something is a duplicate before filing, see the How Can I Contribute? section of the Atom CONTRIBUTING guide.


When using multiple pickers on one page all of them will react to swiping

Like the title says, whenever I include multiple pickers on one page they will all react to swiping anywhere on screen.

Hi, @ReadySetDice! I'm currently busy on another projects, but I'd love to accept PRs if you would like to make it

Hey @VanishMax in the end I decided to actually implement it like a normal person, so now I open a bottom drawer with a single wheel and only for mobile clients.

@ReadySetDice Ok, that's cool! Do you mean that this issue is now irrelevant for you?
Also, is the linked PR still active?

Hey @VanishMax, sorry for this super late response but it indeed is now irrelevant for me.


[UNDER TEST] domd: get rid of meta-xt-vhost

meta-xt-vhost contains only kernel patches and its content is merged into kernel on xen-troops branch that is used by the virtio setup. So can remove the meta-xt-vhost repo.

Should be merged only with https://github.com/xen-troops/linux/pull/165

Tested on h3ulcb-4x2g with the following commands
On DomD
lisot --server --family=AF_VSOCK --address=2 --port=5400 --trace_level=5

On DomU
lisot --client --family=AF_VSOCK --address=2 --port=5400 --mode=random --timeout=500 --length=0 --trace_level=5

Logs of successful communications were observed.
After restarting the DomU the new instance of the client restored successful communication with the server in DomD.

Ack is added.
Tested.
Ready to be merged together with https://github.com/xen-troops/linux/pull/165


/tmp/nvmsocket is potentially insecure

/tmp/nvmsocket is not safe on multi-user systems and should be stored someplace else.
My suggestion would be to use one of these in this order:

$XDG_RUNTIME_DIR if set.  There is a lame python package for this, but just seeing if the environment variable is set should be sufficient at this time.
$TMPDIR for macOS for systems and systems with pam_mktemp it is tmp directory that is unique per user and is therefore safe.
${TMP:-/tmp/}/nvr-${USER}/socket or ${HOME}/.nvr/socket - The first would need to create the directory then check it exists, has the right permissions, and is owned by $USER before creating the socket.

Everything you said is true. I decided against implementing it anyway for these reasons:

Changing the default after so many years will leads to more issues about "stuff not working".
Not only the documentation in this repo, but also tutorials around the web already use /tmp/nvimsocket.
nvr does two different things, depending on whether it is used within :terminal or in a regular shell. Only in the latter case a new nvim process is started with the default socket location unless specified otherwise. As soon as Nvim has added back the client/server mechanism, that side of nvr will be removed.

I added a short security note instead.
Probably not what you wanted to hear, but thanks for bringing it up anyway.


feat: Create dropna.md documentation.

Added some documentation for dropna based on references. Example compiled locally:

Appreciate the PR! Thank you for contributing.
Our Contributor instructions are a bit out of date (which we need to fix). Because we are using Literate.jl to compile documentation, this actually needs to get converted to a .jl file and placed in the folder with all the other .jl files, with the .yml file updated to include this .jl file in the table of contents.
If you want to give it a shot, feel free to move it there and convert it into an actual .jl file that runs in Julia. If you're not sure what to do, I'm happy to have a colleague help out.
One other thing is that for the docs, the example should have more explanation and a tutorial style than what is there in the References. I'm happy to add some of that at the end, but the docs shouldn't just be a restating of the References.

@kdpsingh thanks for the feedback. This is a great project and I'd be interested in contributing to documentation. Let me see if I can get a bit more familiar with Literate and the code base over next few days (I'll push a few more commits here to give it a shot) and then I may have some more questions or need some help I'll update here if I make progress.

Hi @kdpsingh  I added a basic tutorial and organize into a tutorial (summary, table of contents, examples, basic usage, advanced examples and additional help) for drop_na.
I wasn't sure how the tables are generated or if the formatting is correct (I created a generate markdown script in Julia but may look different locally).

Hi @DayneSorvisto I will look through what you had prepared and will return to this in the future.


[WIP] Fix raffler

Based upon the fix-listing branch

@dennisdegreef can you make the PR against the fix-listing branch? after that we can worry about the js testing branch.


The automatic migration is applied successfully, but the original pod is not deleted

Rancher versions:
rancher/server or rancher/rancher:v2.1.0
rancher/agent or rancher/rancher-agent:v2.1.0
Docker version: (docker version,docker info preferred)
17.03.2-ce
Operating system and kernel: (cat /etc/os-release, uname -r preferred)
CentOS Linux
Type/provider of hosts: (VirtualBox/Bare-metal/AWS/GCE/DO)
VirtualBox
Setup details: (single node rancher vs. HA rancher, internal DB vs. external DB)
single node rancher
Steps to Reproduce:
1.create a cluster with three-nodes
2.deploy workload nginx
3.shutdown the host which nginx located on

4.Observe if the pod is automatically migrated
Results:
The automatic migration is applied successfully, but the original pod is not deleted

This is default k8s behavior, see https://github.com/kubernetes/kubernetes/issues/44458 for design decisions on this.


implement delete devices

Codecov Report

Merging #299 (aed4b79) into main (d8082b9) will increase coverage by 0.02%.
The diff coverage is 72.09%.

@@            Coverage Diff             @@
##             main     #299      +/-   ##
==========================================
+ Coverage   62.85%   62.88%   +0.02%
==========================================
  Files          65       65
  Lines        3995     4017      +22
==========================================
+ Hits         2511     2526      +15
- Misses       1133     1138       +5
- Partials      351      353       +2

Impacted Files
Coverage Δ

client/getDevice.go
71.11% <0.00%> (ø)

client/getDevices.go
67.97% <0.00%> (ø)

client/client.go
62.83% <50.00%> (-0.81%)
:arrow_down:

client/ownDevice.go
42.85% <66.66%> (ø)

client/deviceCache.go
81.51% <73.68%> (-2.45%)
:arrow_down:

client/deleteDevices.go
85.71% <85.71%> (ø)

client/disownDevice.go
69.23% <100.00%> (ø)

client/core/client.go
83.56% <0.00%> (-4.11%)
:arrow_down:

client/core/maintenance.go
70.37% <0.00%> (+11.11%)
:arrow_up:

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