Database lock wait timeout after errors within transaction

I have a lot of transactions in my code, and if an error occurs in executing in one of these transactions that doesn't trigger commit or rollback, then the database is locked and any subsequent attempts to access the database results in this:
production.ERROR: PDOException: SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction in /home/forge/default/vendor/laravel/framework/src/Illuminate/Database/Connection.php:390
In the Controller:
DB::beginTransaction();
try {
    //Code that uses exec() to process some images. <-- If code breaks here, for example, due to say, 504 error, then the lock wait timeout exceeded error appears on subsequent requests.
    //Code that accesses the database
}
catch(\Exception $e){
    //Do stuff
    DB::rollback();
    throw $e;
}
DB::commit();

Even php artisan migrate:refresh or php artisan migrate:reset stops working as well.
If I manually kill the process that is causing the lock at the beginning of every request, this is solved, but should this not be handled by framework?

Helo @awwang10
Did you ever manage to solve this issue or stand on the reasons why it's happening?

ping @awwang10

I've encountered this many many times before. I figured out what caused it for me:

Cross Database Foreign Keys
Multiple databases transactions open

The combination of the two just don't work well (note: using MySQL at least). I can go into some detail as to what I believe is happening here but it may be just coincidentally related.
Not sure what could be causing the issue for you though. More detail is always helpful.

@thecrypticace I'm closing this issue due to lack of activity, but please feel free to open a new issue with steps to reproduce so that we can work on it :)

I have this issue few days ago and all mysql server was crashed
my workers is 18 work that using 2 database in one server
So after googling
in dev.mysql.com
said:You should increase max_wait_lock_time for big processing in server when you use innodb
but for user client is better to use small
default is 50 sec
i want to test in cents 7
with ram 32 and 18 cpu core
for 10,000 job that
for now i increased to 50000
when i test it i send feedback for all of you
Hope after that laravel leaders set this issue with documentation in queue section in laravel.com
to warning new members
Good luck

For me the problem occurs only when running the test, when i open the app in the browser i have no errors at all.
But my app is running laravel 5.3, i don't about newer versions.
I have two connections and cross database foreign keys.

@thecrypticace  we are doing exactly what you mentioned: we use cross database foreign keys and multiple database transactions. That's causing the issue for us.
Any idea how to work around it? Example:
Database::transaction(function() use ($request) {
       $customer = Customer::create($request->all());

       $customer->qualifications()->sync(array_column($request->qualifications, "id"));

       $customer->branches()->sync(array_column($request->branches, "id"));
 });

branches() is a many-to-many relationship to customers and means something like sites, plants or stations.
The reason why we need cross origin foreign keys etc. is that we have some base data that we need across multiple applications and it seems only logical to put it in one central database that the other databases talk to.

If you absolutely require having the cross-db foreign keys then the only suggestion I can provide is that you do all work across multiple databases from a single connection & transaction.

Thank you @thecrypticace . We are using multiple laravel connections (but the databases are on the same server).
I have realized today that we only have this issue when we have the create-method inside the transaction. It works absolutely fine in the update method.
DB::transaction(function () use ($request, $id) {
    $customer = Customer::find($id);

    $customer->update($request->all());

    $customer->qualifications()->sync(array_column($request->qualifications, "id"));
    $customer->branches()->sync(array_column($request->branches, "id"));
});

Does that help anyone track down the issue a bit more? Or does anyone have ideas how we can achieve the same thing with a different form or creating the element inside the transaction?

Ran across this while using the DatabaseTransactions trait in our tests. Solved it by disabling foreign key constraints while creating models with cross-database foreign keys:
use Illuminate\Database\Eloquent\Model;
use Schema;

Entity::creating(function (Model $model): void {
    Schema::setConnection($model->getConnection())->disableForeignKeyConstraints();
});

Entity::created(function (Model $model): void {
    Schema::setConnection($model->getConnection())->enableForeignKeyConstraints();
});

I just leave the information here, as it corresponds to the subject of the question and I did not find the answer to my case in Google.
Description
The site includes a CORS. When adding a domain name to the clients table, you need to get a list of all names from the database and save them to config/cors.php file, and then execute the configuration caching command.
Problem
laravel General error: 1205 Lock wait timeout exceeded; try restarting transaction
Cause of the problem
When a transaction is initialized, I change the configuration settings:
protected function setConfig(array $hosts): array
{
    config(['cors.allowed_origins' => $hosts]);

    return config('cors', []);
}

A configuration change is invoked through Observer.
The application thinks that we interrupted the connection to the database and honestly tries to open the second with the transaction, as a result of which we get an error.
Solution
I created a Job and transferred the call to the file update method to it.
Now the method will be called only after the transaction is applied in the database and the worker starts working on it.
Profit! 🙂

I am using a trait which extends the default RefreshDatabase trait. This trait wipes all databases listed in $databasesToTransact variable before starting migrations again. I have overridden the beginDatabaseTransaction method from the RefreshDatabase trait
So at the end over the overridden beginDatabaseTransactions method i added the following code (I only use MySqlConnections):
$connections = $database->getConnections();

array_walk($connections, function (MySqlConnection $connection) {
    $connection->statement("SET FOREIGN_KEY_CHECKS=0;");
});

This, together with explicitly setting the $connection on my models prevents me from running into the lock await issue when using tests.

To cross-reference, this issue is discussed in some depth in #23413 .
@thecrypticace offers sound advice for working-around the lock-wait timeout:

If you absolutely require having the cross-db foreign keys then the only suggestion I can provide is that you do all work across multiple databases from a single connection & transaction.

However, this still does not solve the underlying problem, which is that MySQL does not support deferred constraint-checking for InnoDB. So, even if you adhere to the above advice, you still won't be able to insert a row in Table A and refer to it -- via foreign key -- from table Table B, within a transaction, even when using a single connection.
The true solution to this serious limitation in MySQL is to switch to a database that supports deferred constraint-checking for InnoDB, such as PostgreSQL. I describe how to solve this problem once using PostgreSQL in the above-cited thread (with accompanying test):
https://github.com/laravel/framework/issues/23413#issuecomment-708093359


Snap package

This is work to build Nebula as a snap package with reference to #172
This snap is already published on https://snapcraft.io/nebula and if there is interest I'm happy to transfer ownership of that to the Nebula project

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Oh, and the files are available in https://github.com/jwallden/nebula-snap/
I put the README in snap/local for this pull request.

Hooray! Also solves #101

One more thing: Perhaps it would be nice to add the following to the Readme:
Install without any confinement
Run the following command to install Nebula without any confinement.
sudo snap install nebula --devmode

Good idea. I'll add it.

Dang, I keep bugging you here but is there any reason why you are using SNAP_COMMON instead of SNAP_USER_COMMON? The latter would allow you to run without sudo I think! :tada:

It's fine! Glad to have the conversation.
The SNAP_USER_COMMON is not restored on a snap refresh. This means, at least as I understand it, that e g the keys and config used in Nebula would get deleted when the package is updated.
See here: https://snapcraft.io/docs/environment-variables
However, when I look at it now it seems that SNAP_COMMON is also not backed up and restored. So actually I'm not sure why I chose SNAP_USER_COMMON. It is a while since I did this but from what I recall, back when I tested things SNAP_COMMON seemed lik a better option.
Now, In the big scheme of things I'm not really sure that it would matter with regards to running it with sudo. I think that since we're using network-control sudo would be required anyway.

@jwallden :)) what the documentation says about both SNAP_COMMON and SNAP_USER_COMMON is that the data is shared accross all versions of your snap. This means if you upgrade or downgrade, you actually retain your data, while with SNAP_DATA, it is lost. There you go!
And true, all though all the side-utilities (signing, keygen...) would work without sudo, which is somewhat nice.

Unclear if it's considered actively or not. I haven't got any reaction from Nebula mainainers whatsoever :)


mention_dataset: Add query to mention cross realm bots as pill.

Previously, cross realm bots were not displayed as mention Pills.
This is because, the data set for validating mentions considers only the realm id which is None in case of cross realm bots.
Hence, adding an or Q object to it, to also check if the email is a part of the cross realm bots email, in case the realm id returns None.
Fixes:  #26913 Display mentions of cross realm bots as mention pills

Screenshots and screen captures:

Self-review checklist

[x] Self-reviewed the changes for clarity and maintainability
(variable names, code reuse, readability, etc.).

Communicate decisions, questions, and potential concerns.

[x] Explains differences from previous plans (e.g., issue description).
[x] Highlights technical choices and bugs encountered.
[x] Calls out remaining decisions and concerns.
[x] Automated tests verify logic where appropriate.

Individual commits are ready for review (see commit discipline).

[x] Each commit is a coherent idea.
[x] Commit message(s) explain reasoning and motivation for changes.

Completed manual review and testing of the following:

[x] Visual appearance of the changes.
[x] Responsiveness and internationalization.
[x] Strings and tooltips.
[x] End-to-end functionality of buttons, interactions and flows.
[x] Corner cases, error conditions, and easily imagined bugs.

Works for me in manual testing!

Merged, thanks @roanster007!


Priston Tale crashes on launch

Priston Tale (European version) crashes on launch
Software information
Priston Tale, default settings
API Trace made on windows
@set DXVK_LOG_LEVEL=debug
@set VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation
@Game.exe

System information

GPU: R7 260x
Driver: <IP_ADDRESS>
OS: Windows 10
DXVK version: 1.10.1

Apitrace file(s)
https://mega.nz/file/jVBUjQAC#Lj-irhnkx8o_VVxN6cbyQZXR6j3RjsqOloIjnD8r_Vk
Log files
Game_d3d9.log

The trace isn't super useful since it only contains one frame.
The game has some anti-cheat bullshit which may be preventing it from running with modified DLLs.

@dumpsters I can get to main menu by disabling the animated/video main menu background.
Try to go into the game and set the main menu to image and then launch with dxvk again and see if it fixes it. Or in the game.ini change ImageBasedLogin=False to True.
And yes before i got it launching with dxvk like this it crashes the same way with apitrace as dxvk.


Error message with missing executability bit is not clear

It is not clear, which files need to be changed (local? remote? .roddy/compressed...?).
Message should clearly state what to do.

Some more example:
if the basepath does not match between xml and file system, the message just says, is not accessible.


Tests won't run due to esm or ts related issue

Prerequisites

[X] I have written a descriptive issue title
[X] I have searched existing issues to ensure the bug has not already been reported

Fastify version
5
Plugin version
No response
Node.js version
22
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
latest
Description
Tests are not running.
Tried to run the tests but I guess there is something off with test runner and typescript. If I use the default runner then it cannot compile the .ts extension. if I use tsx then i get something like:
@fastify/autoload cannot import plugin at '/Users/berkerdemirer/git/sightsnap-server/src/plugins/external/clerk.ts'. To fix this error compile TypeScript to JavaScript or use 'ts-node' to run your app.
any idea how to solve this?
Link to code that reproduces the bug
No response
Expected Behavior
Tests should run

It looks like you added an external plugin, did you edit anything else?
Can you give the diff between main on this repo and you current branch plz?
A reproduction repository could help too.

I actually tested out within the demo repo as well. I think the issue is related with the test runner. I am using webstorm atm and just try to invoke single test run through the IDE. Can't get it to work with either ts-node or tsx. But, i guess that's not really related with the repo.

Regarding the autoloader error, does it work if you implement this: https://github.com/fastify/fastify-autoload?tab=readme-ov-file#override-typescript-detection-using-an-environment-variable
The autoloader should support tsx btw: https://github.com/fastify/fastify-autoload/blob/master/scripts/unit-typescript-tsx.js

What is the state of this issue?

Closed due to non-activity.


refactor and remove curstr.custom

Codecov Report

Merging #10 into master will decrease coverage by 3.88%.
The diff coverage is 49.47%.

@@            Coverage Diff             @@
##           master      #10      +/-   ##
==========================================
- Coverage    55.2%   51.31%   -3.89%
==========================================
  Files          32       28       -4
  Lines         567      571       +4
  Branches       38       38
==========================================
- Hits          313      293      -20
- Misses        253      276      +23
- Partials        1        2       +1

Impacted Files
Coverage Δ

rplugin/python3/curstr/__init__.py
70% <ø> (+3.33%)
:arrow_up:

rplugin/python3/curstr/action/group/helps.py
62.5% <100%> (ø)
:arrow_up:

rplugin/python3/curstr/action/group/tags.py
62.5% <100%> (ø)
:arrow_up:

rplugin/python3/curstr/action/group/directory.py
71.42% <100%> (ø)
:arrow_up:

rplugin/python3/curstr/action/group/help.py
55.55% <100%> (ø)
:arrow_up:

rplugin/python3/curstr/action/group/tag.py
50% <100%> (ø)
:arrow_up:

rplugin/python3/curstr/action/group/nothing.py
100% <100%> (+20%)
:arrow_up:

rplugin/python3/curstr/curstr.py
53.33% <16.66%> (-34.91%)
:arrow_down:

rplugin/python3/curstr/echoable.py
40% <28.57%> (-26.67%)
:arrow_down:

rplugin/python3/curstr/action/cursor.py
35.29% <35.29%> (ø)

... and 14 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 a305498...b95d25f. Read the comment docs.


⚠ Bofrost.at has degraded performance

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

HTTP code: 200
Response time: 1264 ms

Resolved: Bofrost.at performance has improved in c56a02e.


Update advapi32.StartServiceCtrlDispatcher

Parse and create threads for given function pointers.
Change argv so that the struct members' values are shown in the log.
Fixes #30

looks good! thanks for adding this.


Allow HotKeys component to autofocus

I'd like to be able to have HotKeys autofocus, so I can easily set up global hotkeys.
Proposal: when given an autoFocus prop, HotKeys would render FocusTrap with ref={n => n && setTimeout(() => n.focus())}.

+1. See also #25, and in particular this comment

Hey man cheers for the request!
I definitely want to make it easier for global hotkeys as it seems it's quite a popular request and not obvious how to do it. I'm wondering whether autofocus is the right name though since this usually implies it will receive focus initially but can lose it. Ie. if you "auto focus" an input you focus on mount but it's not always focused.
Theoretically this should be possible on Hotkeys using these two props
Just to check could you, on your global top level Hotkeys component, try the following usage:
<Hotkeys focused={true} attach={window} ... />

This is a work around if it works and I will look to make it easier (and document!!) for global hotkeys. My proposal would be for a prop global={true} which implies it catches all events anywhere on the page and doesn't worry about "focus".

Yup it works perfectly, thanks!

BTW, what if I have some local hotkeys within the global hotkeys scope? will it fire event for both hotkey maps?

Theoretically if the local scope is focused and the exact same hotkey sequence is triggered the local one will take precedence.
Ive been toying with the idea of allowing you to say "I actually don't want to handle this so pass it on" inside the handler via some "continuePropagation" api but for now you can at least just call props upwards yourself.

That's not my case, actually I'm glad one action cancels out another.
Is focused attach={window} an experimental api, or something I can keep using?

Yup I implemented that believing it's the most sensible default! :) it's
half of what makes this library useful out the box I reckon.
That api will definitely be supported for the foreseeable future as an
escape hatch with a more modern api on top at some point.
On 27 Aug 2016 17:08, "Filip"<EMAIL_ADDRESS>wrote:

That's not my case, actually I'm glad one action cancels out another.
Is focused attach={window} an experimental api, or something I can keep
using?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/chrisui/react-hotkeys/issues/41#issuecomment-242925711,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA_oAKvS7Qfg3HqNIXuAMBSZt5qXh9D2ks5qkGD6gaJpZM4JgeLg
.


Emails to<EMAIL_ADDRESS>from GMail are rejected

Describe the bug
Sending a e-mail to<EMAIL_ADDRESS>from GMail is rejected with the following message:

The group vsmarketplace-idc only accepts messages from people in its organization or on its allowed senders list, and your email address isn't on the list.

To Reproduce
Steps to reproduce the behavior:

Go to https://marketplace.visualstudio.com/
Click on Report Abuse
Send a email

Expected behavior
Mails from GMail are accepted.

@tamuratak, Thanks for your feedback, could you share the screenshot? I was able to send email via Gmail

@tamuratak, it should work now. Please retry and let us know if you have any other problems.

I don't get error messages. It seems to work.
Thank you.


Event forwarding is not sending positions

Is there something I need to activate in order to have positions sent? I can see that EventForwarder.java:68 needs position to be not null and tried to track the function calls to find where it's being called but couldn't find anything.
I'm receiving the webhook with event and device information, but the position key is not being set even though the device and the event specify positionId

What event are you receiving? I would recommend to put a breakpoint EventForwarder and see what happens.

deviceOnline is one of the events that I'm receiving. My device is here in my desktop so no motion is produced. Is it possible to have the position from a deviceOnline event?
the log says
2017-08-14 17:23:43  INFO: [074C1663] id: 1927, time: 2017-08-14 17:23:41, lat: 20.60705, lon: -103.39961, speed: 0.0, course: 134.6

so I know there is a position somewhere

No, connection status events never have positions.

Also, I'm observing a strange phenomenon where only the first events after starting the server are reported immediatly (via the eventforwarder), and then some events are reported only when I kill the traccar server.


test-branch/execute-job/quoted-authorization/5e4eb03b-a048-417e-985c-6ddf69769f9f

PR for testing 103900e349eb33f8ddf5dc128d08e0f3f9e39318

/canonical/self-hosted-runners/run-workflows 103900e349eb33f8ddf5dc128d08e0f3f9e39318


Add files via upload

Replacing old program_banner.mp4 file with a new one (Lab School Summer Music)


Coral Usb Accelerator not working with TensorFlow Lite C++ API

I bought a Coral Usb Accelerator for deploying purposes. When I try to use it, with the TensorFlow Lite API in C++, it throws the following error:
ERROR: Internal: Unsupported data type in custom op handler: 10812496
ERROR: Node number 0 (edgetpu-custom-op) filed to prepare.

Failed to allocate tensors.
Segmentation fault (core dumped)

I'm using a model compiled for the edgetpu device (mobilenet_ssd_v1_coco_quant_postprocess_edgetpu.tflite). I tried to use the same model with the tflite_runtime for python 3.5 and everything goes right, with the Object Detection being carried out in the Coral USB Accelerator.

Hey, make sure you build your libtflite from this commit

By libtflite do you reffer to the libtensorflow-lite.a?

@Fcsalvagnini yes, sorry for the confusion.
With the current libedgetpu.so runtime (13) we build everything with that commit of tensorflow.

@Namburger All right, I'll compile it again from that specif commit and after that, I return to you. Just a sec...

@Namburger Now at the end of the compiling process, when the benchmark is carried out, I got the following error:
g++ -O3 -DNDEBUG -fPIC  --std=c++11 -fPIC -DGEMMLOWP_ALLOW_SLOW_SCALAR_FALLBACK -pthread -I. -I/home/ct1/Downloads/tflite/third-party/tensorflow/tensorflow/lite/tools/make/../../../../../ -I/home/ct1/Downloads/tflite/third-party/tensorflow/tensorflow/lite/tools/make/../../../../../../ -I/home/ct1/Downloads/tflite/third-party/tensorflow/tensorflow/lite/tools/make/downloads/ -I/home/ct1/Downloads/tflite/third-party/tensorflow/tensorflow/lite/tools/make/downloads/eigen -I/home/ct1/Downloads/tflite/third-party/tensorflow/tensorflow/lite/tools/make/downloads/absl -I/home/ct1/Downloads/tflite/third-party/tensorflow/tensorflow/lite/tools/make/downloads/gemmlowp -I/home/ct1/Downloads/tflite/third-party/tensorflow/tensorflow/lite/tools/make/downloads/neon_2_sse -I/home/ct1/Downloads/tflite/third-party/tensorflow/tensorflow/lite/tools/make/downloads/farmhash/src -I/home/ct1/Downloads/tflite/third-party/tensorflow/tensorflow/lite/tools/make/downloads/flatbuffers/include -I/home/ct1/Downloads/tflite/third-party/tensorflow/tensorflow/lite/tools/make/downloads/fp16/include -I -I/usr/local/include \
-o /home/ct1/Downloads/tflite/third-party/tensorflow/tensorflow/lite/tools/make/gen/linux_x86_64/bin/benchmark_model_performance_options /home/ct1/Downloads/tflite/third-party/tensorflow/tensorflow/lite/tools/make/gen/linux_x86_64/obj/tensorflow/lite/tools/benchmark/benchmark_tflite_performance_options_main.o \
 /home/ct1/Downloads/tflite/third-party/tensorflow/tensorflow/lite/tools/make/gen/linux_x86_64/lib/benchmark-lib.a  -lstdc++ -lpthread -lm -lz -ldl
/home/ct1/Downloads/tflite/third-party/tensorflow/tensorflow/lite/tools/make/gen/linux_x86_64/lib/libtensorflow-lite.a(densify.o): In function `tflite::ops::builtin::densify::Eval(TfLiteContext*, TfLiteNode*)':
densify.cc:(.text+0x3a2): undefined reference to `tflite::optimize::sparsity::FormatConverter<signed char>::FormatConverter(std::vector<int, std::allocator<int> > const&, TfLiteSparsity const&)'
densify.cc:(.text+0x3ad): undefined reference to `tflite::optimize::sparsity::FormatConverter<signed char>::SparseToDense(signed char const*)'
densify.cc:(.text+0x682): undefined reference to `tflite::optimize::sparsity::FormatConverter<float>::FormatConverter(std::vector<int, std::allocator<int> > const&, TfLiteSparsity const&)'
densify.cc:(.text+0x68d): undefined reference to `tflite::optimize::sparsity::FormatConverter<float>::SparseToDense(float const*)'
collect2: error: ld returned 1 exit status
tensorflow/lite/tools/make/Makefile:286: recipe for target '/home/ct1/Downloads/tflite/third-party/tensorflow/tensorflow/lite/tools/make/gen/linux_x86_64/bin/minimal' failed
make: *** [/home/ct1/Downloads/tflite/third-party/tensorflow/tensorflow/lite/tools/make/gen/linux_x86_64/bin/minimal] Error 1
make: *** Waiting for unfinished jobs....
/home/ct1/Downloads/tflite/third-party/tensorflow/tensorflow/lite/tools/make/gen/linux_x86_64/lib/benchmark-lib.a(densify.o): In function `tflite::ops::builtin::densify::Eval(TfLiteContext*, TfLiteNode*)':
densify.cc:(.text+0x3a2): undefined reference to `tflite::optimize::sparsity::FormatConverter<signed char>::FormatConverter(std::vector<int, std::allocator<int> > const&, TfLiteSparsity const&)'
densify.cc:(.text+0x3ad): undefined reference to `tflite::optimize::sparsity::FormatConverter<signed char>::SparseToDense(signed char const*)'
densify.cc:(.text+0x682): undefined reference to `tflite::optimize::sparsity::FormatConverter<float>::FormatConverter(std::vector<int, std::allocator<int> > const&, TfLiteSparsity const&)'
densify.cc:(.text+0x68d): undefined reference to `tflite::optimize::sparsity::FormatConverter<float>::SparseToDense(float const*)'
collect2: error: ld returned 1 exit status
tensorflow/lite/tools/make/Makefile:300: recipe for target '/home/ct1/Downloads/tflite/third-party/tensorflow/tensorflow/lite/tools/make/gen/linux_x86_64/bin/benchmark_model' failed
make: *** [/home/ct1/Downloads/tflite/third-party/tensorflow/tensorflow/lite/tools/make/gen/linux_x86_64/bin/benchmark_model] Error 1
/home/ct1/Downloads/tflite/third-party/tensorflow/tensorflow/lite/tools/make/gen/linux_x86_64/lib/benchmark-lib.a(densify.o): In function `tflite::ops::builtin::densify::Eval(TfLiteContext*, TfLiteNode*)':
densify.cc:(.text+0x3a2): undefined reference to `tflite::optimize::sparsity::FormatConverter<signed char>::FormatConverter(std::vector<int, std::allocator<int> > const&, TfLiteSparsity const&)'
densify.cc:(.text+0x3ad): undefined reference to `tflite::optimize::sparsity::FormatConverter<signed char>::SparseToDense(signed char const*)'
densify.cc:(.text+0x682): undefined reference to `tflite::optimize::sparsity::FormatConverter<float>::FormatConverter(std::vector<int, std::allocator<int> > const&, TfLiteSparsity const&)'
densify.cc:(.text+0x68d): undefined reference to `tflite::optimize::sparsity::FormatConverter<float>::SparseToDense(float const*)'
collect2: error: ld returned 1 exit status

Nevertheless, a libtensorflow-lite.a was generated, but when I try to use It I got a similar error:
/home/ct1/Downloads/tflite/lib/libtensorflow-lite.a(densify.o): In function `tflite::ops::builtin::densify::Eval(TfLiteContext*, TfLiteNode*)':
densify.cc:(.text+0x3a2): undefined reference to `tflite::optimize::sparsity::FormatConverter<signed char>::FormatConverter(std::vector<int, std::allocator<int> > const&, TfLiteSparsity const&)'
densify.cc:(.text+0x3ad): undefined reference to `tflite::optimize::sparsity::FormatConverter<signed char>::SparseToDense(signed char const*)'
densify.cc:(.text+0x682): undefined reference to `tflite::optimize::sparsity::FormatConverter<float>::FormatConverter(std::vector<int, std::allocator<int> > const&, TfLiteSparsity const&)'
densify.cc:(.text+0x68d): undefined reference to `tflite::optimize::sparsity::FormatConverter<float>::SparseToDense(float const*)'
collect2: error: ld returned 1 exit status

Hello, ahh, so another issue is that the specific commit: https://github.com/tensorflow/tensorflow/commit/d855adfc5a0195788bf5f92c3c7352e638aa1109 also has a build bug which is fixed in this commit: https://github.com/tensorflow/tensorflow/commit/72cd947f231950d7ecd1406b5a67388fef7133ea
So in order to get it working, you need to first remove old build and checkout this commit: https://github.com/tensorflow/tensorflow/commit/d855adfc5a0195788bf5f92c3c7352e, add this line and then rebuild.
Overall, the quickest way to do this is to just use our provided make file in this repo, which you can just run:
make examples

or
make DOCKER_IMAGE=debian:buster DOCKER_CPUS="k8 armv7a aarch64" DOCKER_TARGETS=examples docker-build

Ok. Thank you so much @Namburger . I made the changes and my application runs perfectly.

@Fcsalvagnini Awesome, definitely sorry for the confusing issue, I'll ping our documentation team to get this better documented.

@Fcsalvagnini FYI: Here is a single cmake example build file with all dependencies: https://github.com/google-coral/edgetpu/issues/54#issuecomment-616149916

@Fcsalvagnini FYI: Here is a single cmake example build file with all dependencies: #54 (comment)

Thank you. That's good to know!


GPU out of memory at trainer.text() stage but has no issue while trainer.fit() stage

Hi there,
Could you please kindly give me some hints about how to solve the issue below?
When I was running nsr_pl, even though my train image set and test image set have both 73 images, the testing stage will have out of GPU memory issue. With ddp strategy in training stage, I can see the GPU memory evenly spread to 4 GPUs. But in the testing stage, all the memories will flow to one GPU only and stop with GPU out-of-memory error. The trainer is the same, why is this happening? Any potential things I can do to fix this issue? Thanks in advance

Hi! Sorry that I haven't fully tested the code on multiple GPUs. It could originate from the aggregation of all outputs after testing:
https://github.com/bennyguo/instant-nsr-pl/blob/2daaa53c9bf5dabefc41236c92ed1c2fa7cbcf73/systems/nerf.py#L189
A temporary fix could be using only 1 GPU for testing. You could easily resume from trained checkpoints as explained in README. I would mark this as enhancement and experiment myself when I have time.


[composer] cycle detected in app graph when creating a stack

On the main branch when I:

Open an incognito tab.
Add a new space.
Add a stack in it.
Create another space.
In the console I get:

chunk-TEUXL7NL.js?v=1a400c5e:44 Uncaught Error: Cycle detected
    at i (chunk-FKNXQLNG.js?v=1a400c5e:3:9)
    at d.set (chunk-FKNXQLNG.js?v=1a400c5e:161:7)
    at Object.set (deepsignal_react.js?v=1a400c5e:209:38)
    at graph.ts:151:26
    at s (chunk-FKNXQLNG.js?v=1a400c5e:55:12)
    at Graph._addNode (graph.ts:149:12)
    at graph.ts:141:37
    at Array.map (<anonymous>)
    at Graph.addNodes (graph.ts:141:18)
    at StackPlugin.tsx:108:34

Add the newly created space doesn't have a "+" for adding elements in it.

A likely related issue:

Open an incognito tab.
Create three spaces.
Add a stack in each of the spaces.
There'll be a "Cycle detected" error after adding a stack to the third space.
On reloading the page there'll be a console error once again + the third stack won't be displayed and in the third space there will be no option for adding a stack.

Unable to reproduce on main, may be resolved. Closing for now.


The training strategy in the Ablation Study

Thank you for your work. I am impressed by the significant improvement demonstrated in the Ablation Study. As mentioned in the paper, you used the same model and dataset, but the training strategy appears to be different. You utilized the training strategy of LLaVA 1.5 for training the MLP connector. To clarify, does this mean that you only trained the MLP during the pretraining stage, and then trained both the MLP and LLM during the SFT (Supervised Fine-Tuning) stage?

Thanks for your interest. Yes, since the training strategy is closely intertwined with architectural design, we fully adhere to the training approach detailed in the LLaVA paper.


Removed Duplicate data.

Prop for SectionList 'ItemSeperatorComponent' was repeated twice.

Motivation
(Write your motivation here.)
Test Plan
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Bonus points for screenshots and videos!)
Release Notes

@facebook-github-bot shipit


Rpi eeprom

- What I did
Added rpi-eeprom recipe to provide bootloader update
- How I did it

Added rpi-eeprom recipe
Disabled VC4 for graphics to fall back using userland

Can one of the admins verify this patch?

Sorry, this shouldn't be here


add backendpool addresses do not work

[Enter feedback here]
The example provided for :
c:> az network application-gateway address-pool update -g MyResourceGroup --gateway-name MyAppGateway -n MyAddressPool --add backendAddresses "{ "ip_address": "{<IP_ADDRESS>}" }"
AND
C:> az network application-gateway address-pool update -g MyResourceGroup --gateway-name MyAppGateway -n MyAddressPool --add backendAddresses "{ "ip_address": "{<IP_ADDRESS>}" }"
DO NOT WORK !!!!! You get the following error :
az network application-gateway address-pool update: 'utputformat' is not a valid value for '--output'.

TRY THIS:
az network application-gateway address-pool update --resource-group MyResourceGroup --gateway-name MyAppGateway --name MyAddressPool --servers <IP_ADDRESS> <IP_ADDRESS> <IP_ADDRESS>
--output json
Update backend address pool.

https://docs.microsoft.com/en-US/cli/azure/network/application-gateway/address-pool#az_network_application_gateway_address_pool_update
Read more about the command in reference docs

Please provide a working example.
----- AND if you try to pass "--servers" a string which is a list of the address ----
and trying to pass --servers $(list) ... where list is something like this
echo $list
<IP_ADDRESS> <IP_ADDRESS>
fails as well.
C:> az network application-gateway address-pool update -g MyResourceGroup --gateway-name MyAppGateway -n MyAddressPool --servers $ipl
The address must contain only digits, letters, hyphens and dots for separation. Moreover, it cannot have hyphens at the start, end or next to a dot.

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

ID: 0eb7977f-f67a-b7f1-9c55-5fe3ceef1148
Version Independent ID: 855b66dc-6a1b-a182-8670-2a8b8ca8b10a
Content: az network application-gateway address-pool
Content Source: latest/docs-ref-autogen/network/application-gateway/address-pool.yml
Service: virtual-network
GitHub Login: @rloutlaw
Microsoft Alias: routlaw

actually I realized I shouldbe passing an array ... still this is pretty bad that I can't jsut add an ip address but rather have to always collect all the known address and then set them again into the pool using --servers.

network

'az network application-gateway address-pool update -g yyc --gateway-name ag-yyc -n appGatewayBackendPool --add backendAddresses ipAddress=<IP_ADDRESS>' could work and we will update '--help' message. Thank you for your feedback.


Automated Package Upgrade

:tada: This PR is included in version 5.3.25 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


missing vendor autoload file

Have you read our Code of Conduct? By filing an Issue, you are expected to comply with it, including treating everyone with respect.
Description
the vendor folder for the autoloading is missing
Steps to Reproduce

Expected behaviour
expected to load the required classes and files.
Actual behaviour
Warning: require(C:\Users\Tohzyn\localhost\htdocs\schoolf-one -fusis\school-one\flw-payments/vendor/autoload.php): Failed to open stream: No such file or directory in
Fatal error: Uncaught Error: Failed opening required
Reproduces how often
Everytime
Configuration

API Version:  v3
Environment: test mode
Browser: [all
Language:  PHP 8.2

Additional Information
if vendor file is not present, notify developer to run composer install.
require DIR.'/vendor/autoload.php';

How exactly to get the missing vendor folder and it included files. Please be expicit.


Question: what is the best approach for handle a weekly leader board?

just came to my mind something like create a leader board per week?
  highscore_lb = Leaderboard.new("highscores_weekly_#{Time.now.strftime("%V-%Y")}")

cc:// @czarneckid

another thing is what about the historically data? is there's a way to expire them from memory and save it on disk? I couldn't imagine a full year weekly ranking loaded in memory

The naming approach seems fine.
If you want to preserve the leaderboard data, but not have it take up memory, you'd have to save the dataset to disk by issuing one of the commands to persist to disk such as BGSAVE. At that point, you'd want to preserve the Redis database (probably .rdb) by copying it from the Redis DB save location and then you could clean up or remove the historical data from the CLI. The drawback is that you lose the ability to pull up that historical data.
It's also relatively straightforward to assess how much memory would be taken up with a leaderboard(s). See https://github.com/agoragames/leaderboard/#performance-metrics for some approaches. You might want to look at bulk insert.

@czarneckid thanks, about the historical data how about after call BGSAVE save it in a relational database like Postgres using the JSON or HSTORE?. And if necessary to make some operations can load it back in Redis again, though that would be an unusual case

On further thought, this could get complex, but might be achievable with some combination of DUMP and RESTORE and storing that data in another data store. There is also the MIGRATE command that could be used if you started another redis instance with the old data and migrated data.


error[E0599]: no variant or associated item named EventsCleared found for type winit::event::Event<_> in the current scope

Basic steps are:
cargo new rl
cd rl
echo 'rltk = "*"' >> Cargo.toml
cargo build
We compile fine until we hit rltk at which point, I have the error.
This happens in both mac and windows (haven't had a chance to try in Linux yet).
Also, I tried compiling and building a simple winit app by itself and had no issues there.
What am I missing?

Moving this issue to rltk_rs, which is the Rust version (this is an old C++ project I haven't used in a long time).


Modify getImage, getArtifact APIs to fetch user role

Purpose

Modify getImage, getArtifact APIs to fetch user role

Goals

Allow users to edit images and artifacts based on their role in the cellery hub

Test environment

Ballerina 0.991, MySQL 5.7.25

Codecov Report

Merging #116 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #116   +/-   ##
=======================================
  Coverage   14.21%   14.21%
=======================================
  Files          61       61
  Lines        2216     2216
  Branches      386      386
=======================================
  Hits          315      315
  Misses       1728     1728
  Partials      173      173

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 0ca2401...d6c9d6c. Read the comment docs.


[Feature][Doc] Add Docker Doc #5513

Add documents for Zeta engine running on Docker
@jbonofre @Humbedooh

Please modify the document format according to ci


Assert issue when starting from negative value

Hello,
First of, thank you for your package!
My issue is that whenever I increment to negative value to 0 (-1 -> 0/ -0.1 -> 0.0) I get this exception:
The following assertion was thrown while handling a gesture:
Assertion failed: org-dartlang-sdk:///flutter_web_sdk/lib/ui/src/ui/text.dart:458:16
start != null && start >= -1
is not true

This is how I initialise the object:
SpinBox(
spacing: 0,
min: min,
max: max,
step: step,
value: value,
decimals: decimals,
onChanged: onChanged,
)

Example of how I use it:
_spinbox(
label: "Max stock",
min: -1,
value: _maxStock,
onChanged: (val) => context.read<ReportsGeneratorCubit>().updateStock(max: val),
),

The issue seem to happen if the field isn't focused.
Any ideea how I can solve it?

I'm not able to reproduce the issue with a negative value. Could you help me to reproduce the issue? I would need a minimal reproducible example. Something standalone that I can actually run.

Hi, sorry for the late reply I forgot to answer.
I've built my own Spinner widget for the purpose I needed at the time so I deleted the code the app.

Hello, i have noticed the same issue. The Source Code where it happens is here, within SpinBoxMixin of the base_spin_box.dart file in the Function :
void _updateController(double oldValue, double newValue) {
  final text = _formatText(newValue);
  final selection = _controller.selection;
  final oldOffset = value.isNegative ? 1 : 0;
  final newOffset = _parseValue(text).isNegative ? 1 : 0;

  _controller.value = _controller.value.copyWith(
    text: text,
    selection: selection.copyWith(
      baseOffset: selection.baseOffset - oldOffset + newOffset, <--  have to be >=-1
      extentOffset: selection.extentOffset - oldOffset + newOffset, <-- have to be >=-1
    ),
  );
}

"The initial selection is TextSelection.collapsed(offset: -1)."  =>  selection.baseOffset = -1.
So, if the value < 0 is negative, then oldOffset = 1, and if the newValue = 0 so the newOffset = 0. summing it up, ends with baseOffset = -2 and analog extentOffset = -2.
The fix would be, to check it.
const TextRange({
    required this.start,
    required this.end,
  }) : assert(start >= -1),
       assert(end >= -1);


[stable/rocketchat] Add a warning about upgrading to 1.x

What this PR does / why we need it:
Warn about upgrading to 1.x
Checklist

[x] DCO signed
[x] Chart Version bumped
[x] Title of the PR starts with chart name (e.g. [stable/chart])

/lgtm

Thanks for adding this!  Hopefully people check notes before updating helm chart!  🤞


Updated hand joint image in HandTracking.md

Overview
An image on our hand tracking documentation was missing the metacarpal joints, the image has been updated to accurately reflect the joints that are tracked.

Here is the new image:

/azp run mrtk_docs

/azp run mrtk_docs


Sort options should use cursor:pointer

testing notes
(these are the SORT BY options on the main archive search page).

when you hover over the sorting options you should the see the "mickey mouse hand" (cursor:pointer;). see @mnaydan comment on #65 .
you shouldn't get the pointer if you are hovering over a disabled option (keyword) or over the "SORT BY" text.

Yes, you get the pointer now when hovering over active sort options, but not when hovering over disabled options or the "Sort By" text. The girth for getting the pointer seems a lot wider than the other clickable things though? See picture.

The other thing I noticed, which probably belongs to a different story, is that when the browser window is skinnier, the sort options collapse into a dropdown menu but that dropdown menu isn't functional; I can't find a way to scroll through the options.

@mnaydan thanks for catching the broken dropdown thing; I made that #123 .
do you think the clickable area for the sort options in the desktop version is too big? iirc it should be basically a box like this:

I realize that's a little less predictable because they aren't technically buttons, but it seems OK to me from an accessibility perspective since some people struggle to click things when the clickable area is small.

@thatbudakguy I agree with the you that for accessibility the clickable area should be bigger than the text! It felt a little too big though, especially since other clickable things on the page don't function that way; you basically had a pointer the whole time and it felt like they melded into one another. Is it possible to shrink it a bit?

OK; I've reduced the clickable area for these.

That feels way more natural, and still easy to click!


Submenus not showing up if I'm in API, HELP or Manage Environments

Version - master 3/3
Steps to Reproduce:

Go to API, HELP or Manage Environments pages
Move your mouse over Applications, Infrastructure or Admin menu items

Results: Submenu is blank

Expected: Submenu items should show up

Version - master 3/4
Verified fixed


Remove references to UI classes from Model

Move external tool installing code into "Skyline\Controls\Tools"
Split peak boundary message code into separate "PeakBoundaryMessages" class.

Let's close this PR. I have a clean PR that solves 2 of the cases. I think the last may be more complicated, but I would prefer to first merge the PR where I really feel we know the right solutions and do the final change in a separate PR.


test: add test for different volume sources

the volumes of container have four different sources(volumes-from,
binds, images and Config.Volume). If two volumes have the same destination,
only one volume is reserved. The order is
volumes-from > binds > images > Config.Volume
Signed-off-by: Eric Li<EMAIL_ADDRESS>
Ⅰ. Describe what this PR did
the volumes of container have four different sources(volumes-from, binds, images and Config.Volume). If two volumes have the same destination, only one volume is reserved. The order is
volumes-from > binds > images > Config.Volume
Ⅱ. Does this pull request fix one issue?

NONE
Ⅲ. Describe how you did it
NONE
Ⅳ. Describe how to verify it
NONE
Ⅴ. Special notes for reviews

Codecov Report

Merging #1553 into master will decrease coverage by 1.85%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1553      +/-   ##
==========================================
- Coverage   41.21%   39.36%   -1.86%
==========================================
  Files         266      266
  Lines       17313    18025     +712
==========================================
- Hits         7136     7095      -41
- Misses       9290    10047     +757
+ Partials      887      883       -4

Impacted Files
Coverage Δ

apis/opts/log_options.go
0% <0%> (-100%)
:arrow_down:

daemon/logger/loggerutils/tag.go
0% <0%> (-81.82%)
:arrow_down:

daemon/logger/syslog/validate.go
0% <0%> (-50.55%)
:arrow_down:

daemon/logger/syslog/syslog.go
0% <0%> (-25%)
:arrow_down:

daemon/containerio/options.go
30.76% <0%> (-20.03%)
:arrow_down:

daemon/containerio/jsonfile.go
55.91% <0%> (-17.33%)
:arrow_down:

daemon/mgr/container.go
35.32% <0%> (-13.86%)
:arrow_down:

daemon/mgr/container_types.go
63.72% <0%> (-12.4%)
:arrow_down:

daemon/mgr/container_logs.go
72.54% <0%> (-11.67%)
:arrow_down:

daemon/mgr/container_state.go
75.64% <0%> (-7.46%)
:arrow_down:

... and 8 more

@Letty5411 I have updated the code, PTAL

LGTM


Creating user by api

Make sure these boxes are checked before submitting your issue - thank you!

[ ] I have checked the superset logs for python stacktraces and included it here as text if any
[ ] I have reproduced the issue with at least the latest released version of superset
[ ] I have checked the issue tracker for the same issue and I haven't found one similar

Superset version
Superset 0.19.0
I want to create the new users by api.
The api endpoint for creating user is /users/api/create
But passing the curl command asks for csrf token.I have passed the csrf token value along with data and also with headers. But "The CSRF token has expired." error occurs.I can also find that the csrf_token value keeps on changing.
I have also made WTF_CSRF_ENABLED = False
But the same error continues.
What is the format to create user by api??
Is there a way to create users without using csrf_token??

There's also WTF_CSRF_EXEMPT_LIST you might want to try, though I haven't used it personally. WTF_CSRF_ENABLED should really work, if not that's a bug that needs to be addressed. Are you sure that your config is set properly and gets picked up? When you start your web server the very first line should be something that looks like
Loaded your LOCAL configuration at [./pythonpath/superset_config.pyc]

At Airbnb we use the ORM as an API since we're writing things in Python.

Thanks.
"Loaded your LOCAL configuration at [./pythonpath/superset_config.pyc]" -- Yes...I can find this line on starting superset service.
"At Airbnb we use the ORM as an API since we're writing things in Python." -- Does this mean ,it is impossible to create user by api??


Review Table Method's Doc Comments

This task is to review the doc comments on the Table.
enso_docs_design.txt
Verify the main description method and confirm the parameters.
Check the examples work.
Restructured into the new format.
Build the document in the enso-org/design.
Leave Table.set to revisit.

[ ] Table.filter
[ ] Table.join

Remove imports
Examples should be rethought, be self-contained


Issue 215

Fixes #215
A failure message is now logged;
08:06:35.762 Running qDup version 0.8.2 @ 68705d4
08:06:35.763 output path = /tmp/20240619_080634
08:06:35.763 shell exit code checks enabled
08:06:35.904 json server listening at fedora:31337
08:06:37.070 error starting local container LOCAL//registry.fedoraproject.org/f35/python3 : Error: OCI runtime error: crun: cannot setresuid to `1001`: Invalid argument
08:06:37.071  failed to connect to LOCAL//registry.fedoraproject.org/f35/python3
08:06:37.071 setup failed to connect LOCAL//registry.fedoraproject.org/f35/python3
08:06:37.077 failed to connect all ssh sessions for setup
Finished in 01.147 at /tmp/20240619_080634

Hmm, idk why this PR has 2 commits

Closing this PR, I do not know why, and can not remove one of the commits.  Have opened a new, clean PR: https://github.com/Hyperfoil/qDup/pull/217


Change the default to 10 performance counters

@davideschiavone, I am assigning this Task to you only because it is clearly a Design task.


Cmd+R blows me up

I sometimes alt+tab into Hyper and accidentally refresh, which kills all my tabs, running process, and is generally super painful. Could we have an option that asks whether you're sure you want to reload?

@matheuss This should be included as part as the warn upon quit.

I think the "hold to quit" is a nice pattern. I've seen websites have a small progressbar at the bottom of the notification to show "how long". Neat and informative.

Same thing for me. Since 1.0.0 I can't use reverse-i-search because Ctrl+R reload plugins
It is very painfull

@tblaisot Me too, is it by design or should we create an issue?

@eryshev I think it is by design from commit #1058

This problem wouldnt be nearly as bad if reloading re-opened the same tabs

+1 on missing reverse-i-search

https://github.com/zeit/hyper/issues/1178

Reverse-i-search would be 💯

+1, still waiting for this

+1, make this happen already.

+1

Still holding out for a “hold to quit” pattern.

+1

Please god someone fix this.

1

+1

We're planning to remove refresh from the app. It currently even breaks the app. 😓

I hope this is still going to happen.
This just bit me. OSX has a nice feature where I can scroll my browser without it being the active window, but after a minute I forget this and when I go to reload the page I reload my terminal instead and lose my panes and that's no good.
Is there a good way to recover from this quickly or do I just continue reopening everything manually? I'd be happy if my CMD+R inputs were sent to a blackhole rather than Hyper.

I just changed my configuration to this and it disables all keymaps (including reload).
  keymaps: {     '': 'cmd+shift+r',   },
I'm assuming it's not valid format and stops the object from being mapped. The trade off is worth it for me as I didn't use any keymaps anyway.
Before:

After:

This has hurt me so many times that I've:

Submitted a PR to change the bindings, even if the reloads are going to be removed 'soon'.
Created a plugin that blocks Cmd+R while any windows are active... (add hyper-kill-cmd-r to your plugin stack)

For now, I've changed my reload keymaps in the preferences file to something I'm not going to press by accident, e.g:
  keymaps: {     'window:reload': 'cmd+9',     'window:reloadFull': 'cmd+shift+9',   },

Anytime I do press cmd+r or cmd+shift+rwhen active on hyper it just goes into a black hole.

@jonathanandrewsuk For some strange reason, I couldn't get that to work last night. In the light of this morning, it does and is the best stop-gap until the default bindings are changed.

@jonathanandrewsuk thanks for the tip! leaving them blank also worked for me
keymaps: { 'window:reload': '', 'window:reloadFull': '', },

@jonathanandrewsuk Thanks!


[GHSA-8r89-x93x-mjq2] Craft CMS Stored Cross-site Scripting in User Addresses Title

Updates

Affected products

Comments
The vulnerability did not affect versions prior to 4.0.0

Hi @brandonkelly, thank you for letting us know about only the 4.x branch being vulnerable. I compared two versions of Cp.php and found that version <IP_ADDRESS> did not contain 'label' => sprintf('%s %s', $label ?? Craft::t('app', 'New Address'), Craft::t('app', 'Settings')),, part of the code changed in the fix commit, but version 4.0.0-RC1 did.
In addition to adding >= 4.0.0-RC1 as a lower bound, I will add https://github.com/craftcms/cms/blob/4.0.0-RC1/src/helpers/Cp.php and https://github.com/craftcms/cms/blob/<IP_ADDRESS>/src/helpers/Cp.php as reference links.

Thanks @shelbyc!!


[BUG] Caching is not working correctly.

You use SvgCacheKey that has keyData which is SvgNetworkLoader.

Implement operator== and hashCode for ColorMapper (actually there is only TestColorMapper yet).
Fix calculating hashCode and comparing the SvgNetworkLoader.headers which is Map<String, String>.

  @override
  int get hashCode => Object.hash(url, headers /* HERE */, theme, colorMapper);

  @override
  bool operator ==(Object other) {
    return other is SvgNetworkLoader &&
        other.url == url &&
        other.headers == headers &&  // You NEVER get here true until these are identical maps.
        other.theme == theme &&
        other.colorMapper == colorMapper;
  }

It's hardly ever to be happend when user writes the same Map of headers on different pages, usually these are different maps with the same entries.
You have two options:

Use const MapEquality().equals(headers, other.headers) in the operator== and Object.hashAll([ ...headers.keys, headers.values, ... ]) in the hashCode getter.
Remove headers from hashCode and operator== since headers don't define the the source of svg data like url does.

Wrong repo here. Sorry.


teleport issue when connecting to agent pod

Discussed in https://github.com/metalbear-co/mirrord/discussions/1555

Originally posted by twonds June 13, 2023
I have ran into is that when I use teleport  to access a cluster I can not make the connection between the mirrord pod and the local process. Should I file a bug report?
Thanks!
Below is the output from replicating the issue
https://gist.github.com/twonds/4e367ba96cd5f4850991cd24ee5f48bc

Note the same commands when connecting to the EKS cluster with aws cli works without issue.

It fails on upgrading websocket, any chance you have any policy associated with Teleport?

Thanks for reporting this! It fails on upgrading websocket, any chance you have any policy associated with Teleport?

I have to double check. I thought we didn't. I will see and update this issue.

It looks like it is not a permission issue with teleport. This could possibly be the issue? https://github.com/gravitational/teleport/commit/1c1b6b076bed324fc1eaa8f2749818aa82fa2a38
An upgrade of teleport is probably what I need to do

mirrord uses port-forward + websocket (when used without the operator that's part of mirrord for Teams) so that's almost certainly the case. Please let us know so we can close this :)

Hey @twonds - would love to know if we need to do something or just teleport update solved it.

closing, a teleport update should solve it


Ideas/Feedback

Discuss any ideas or suggestions/feedbacks you have here.

In my opinion would be useful:

Have a second chance to correct the answers;
Create templates with Latex;

@alesdev Thanks for sharing these :)
For first one do you mean to say there should be a way to detect cross marks separately?
and for second one, we can have a template Latex/Word document for the user. After modification, they can input a screenshot of the template and OMRChecker should be able to detect template from the image(which is a task in one of the future TODOs)

Closing as discussion moved to discord.


Selenium shared memory defaults

https://github.com/SeleniumHQ/docker-selenium#running-the-images states that

When executing docker run for an image with Chrome or Firefox please either mount -v /dev/shm:/dev/shm or use the flag --shm-size=2g to use the host's shared memory.

These defaults are not applied for the BrowserWebDriverContainer as far as I can tell, which can cause hanging browsers on complex sites.

That seems sensible, @leonard84.
Would anyone care to submit a PR for this?

Hi, I would to contribute to the project, can I work on this issue? Should I add the flag or mount the volume? Maybe on Windows, the volume could cause issue no?

Great that this is being taken care of! Thanks! Until next release, how can I manually set a bigger /dev/shm when running the BrowserWebDriverContainer?


[feature]: add more filter options to ListPaymentsRequest and ListInvoiceRequest

Is your feature request related to a problem? Please describe.
Too much data transfer and client side filtering: AKA Zeus is unusable with 30K payments.
Describe the solution you'd like
ListPaymentsRequest has some nice filtering capability

include_incomplete
index_offset
max_payments
reversed
creation_date_start
creation_date_end

It would be nice to also be able to filter the invoice amount paid (max and/or min), as well as a memo search query. We may have many small payments over a small time period that we don't want to look at.
ListInvoiceRequest has

pending_only
index_offset
num_max_invoices
reversed
creation_date_start
creation_date_end

For invoices, it would also be nice to also be able to filter the invoice amount (max or min), as well as a memo search query. Additionally, it would be nice to be able to show paid invoices only instead of showing unpaid invoices only.
Describe alternatives you've considered
They're all slow.

Would also be nice to be able to filter out keysend/AMP payments.


update master protection workflow to latest version

Fix the failing PR to master workflow.
This PR is opened again to test if the issue is fixed.

Just to jot it down somewhere.
There was nothing to be fixed. It was working as intended. The issue is that if you open a PR to master and then change the base to something else the workflow was still triggered and will stay as failing in the PR.
Hence, ignore it if you change the base to something else or reopen the PR. Nothing we can solve.


To Do List

Implemented a function for add/delete a task.

Implemented a function for editing task descriptions.

By default new tasks have the property completed set to false and the property index set to the value of the new array length.

Deleting a task updates all remaining items' indexes, so they represent the current list order and are unique.

All changes to the To Do List saves in local storage.

Hi @MAleemH,
STATUS APPROVED
Your Project is complete, there's nothing else to say other than it's time to merge it now.
Highlights

Descriptive PR.
Nice Design.
GitHub Flow.
Linters FLow.

Optional Suggestions
Every comment with the [OPTIONAL] prefix won't stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better. Some of them were simply missed by the previous reviewer and addressing them will really improve your application.
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.


Feature Request: add support for line-pattern (%l)

Line patterns are very useful in Vim:
				*/\%l* */\%>l* */\%<l* *E951* *E1204* *E1273*
\%23l	Matches in a specific line.

For example, I can highlight the Leader just at 312th line by:
Hi+ \%312lLeader

or highlight the entire 312th line by:
Hi+ \%312l

However, vim-highlighter doesn't support patterns like this very well now (e.g., Hi- cmd)
I think this feature is very useful!

That's good idea! 👍
I will think about how to do that, thanks!

Now it supports that 😄
Currently, only the function to erase the exact same pattern set by the "Hi+" command is supported. And I think that the function can be gradually expanded in the future.

Now it also supports HiErase key function. I hope you like it! 😄

Hi Jason, now HiSetSL  key mapping also supports highlighting in a specific line, and it looks convenient! 😄
→  Highlights in a specific line


Building individual pallet tests fail

Something changed in the code base that broke testing when running cargo test in the frequency/pallets/msa directory that does not occur when you build the tests from the frequency root directory frequency.  This occurs with a fresh clone of the repository and is not the result of rebasing issues.  The impact of this is that you can’t test the pallet individually anymore.  The ramifications are that developers will need to sift through irrelevant logs from other pallets when testing and wait for longer build times.  This needs to be fixed.
% cd pallets/msa
% cargo test -- --nocapture
warning: crate-level attribute should be in the root module
 --> common/primitives/src/node.rs:1:35
 |
1 | #![cfg_attr(not(feature = "std"), no_std)]
 |                  ^^^^^^
 |
 = note: `#[warn(unused_attributes)]` on by default

warning: `common-primitives` (lib) generated 1 warning
  Compiling pallet-msa v0.1.0 (/private/tmp/src/frequency/pallets/msa)
error[E0599]: no function or associated item named `set_schema_count` found for struct `pallet_schemas::Pallet` in the current scope
  --> pallets/msa/src/tests.rs:516:12
  |
516 |     Schemas::set_schema_count(10);
  |          ^^^^^^^^^^^^^^^^
  |          |
  |          function or associated item not found in `pallet_schemas::Pallet<mock::Test>`
  |          help: there is an associated function with a similar name: `get_schema_count`

error[E0599]: no function or associated item named `set_schema_count` found for struct `pallet_schemas::Pallet` in the current scope
  --> pallets/msa/src/tests.rs:1566:12
   |
1566 |     Schemas::set_schema_count(2);
   |          ^^^^^^^^^^^^^^^^
   |          |
   |          function or associated item not found in `pallet_schemas::Pallet<mock::Test>`
   |          help: there is an associated function with a similar name: `get_schema_count`

error[E0599]: no function or associated item named `set_schema_count` found for struct `pallet_schemas::Pallet` in the current scope
  --> pallets/msa/src/tests.rs:1582:12
   |
1582 |     Schemas::set_schema_count(12);
   |          ^^^^^^^^^^^^^^^^
   |          |
   |          function or associated item not found in `pallet_schemas::Pallet<mock::Test>`
   |          help: there is an associated function with a similar name: `get_schema_count`

error[E0599]: no function or associated item named `set_schema_count` found for struct `pallet_schemas::Pallet` in the current scope
  --> pallets/msa/src/tests.rs:1597:12
   |
1597 |     Schemas::set_schema_count(16);
   |          ^^^^^^^^^^^^^^^^
   |          |
   |          function or associated item not found in `pallet_schemas::Pallet<mock::Test>`
   |          help: there is an associated function with a similar name: `get_schema_count`

error[E0599]: no function or associated item named `set_schema_count` found for struct `pallet_schemas::Pallet` in the current scope
  --> pallets/msa/src/tests.rs:1612:12
   |
1612 |     Schemas::set_schema_count(2);
   |          ^^^^^^^^^^^^^^^^
   |          |
   |          function or associated item not found in `pallet_schemas::Pallet<mock::Test>`
   |          help: there is an associated function with a similar name: `get_schema_count`

error[E0599]: no function or associated item named `set_schema_count` found for struct `pallet_schemas::Pallet` in the current scope
  --> pallets/msa/src/tests.rs:1653:12
   |
1653 |     Schemas::set_schema_count(2);
   |          ^^^^^^^^^^^^^^^^
   |          |
   |          function or associated item not found in `pallet_schemas::Pallet<mock::Test>`
   |          help: there is an associated function with a similar name: `get_schema_count`

error[E0599]: no function or associated item named `set_schema_count` found for struct `pallet_schemas::Pallet` in the current scope
  --> pallets/msa/src/tests.rs:1986:12
   |
1986 |     Schemas::set_schema_count(1);
   |          ^^^^^^^^^^^^^^^^
   |          |
   |          function or associated item not found in `pallet_schemas::Pallet<mock::Test>`
   |          help: there is an associated function with a similar name: `get_schema_count`

For more information about this error, try `rustc --explain E0599`.
error: could not compile `pallet-msa` due to 7 previous errors

test solution:
cargo test -- --features=runtime-benchmarks --nocapture

That doesn't seem to work:
% cargo test -- --features=runtime-benchmarks --nocapture
warning: crate-level attribute should be in the root module
 --> common/primitives/src/node.rs:1:35
  |
1 | #![cfg_attr(not(feature = "std"), no_std)]
  |                                   ^^^^^^
  |
  = note: `#[warn(unused_attributes)]` on by default

warning: `common-primitives` (lib) generated 1 warning
   Compiling pallet-msa v0.1.0 (/private/tmp/src/frequency/pallets/msa)
error[E0599]: no function or associated item named `set_schema_count` found for struct `pallet_schemas::Pallet` in the current scope
   --> pallets/msa/src/tests.rs:516:12
    |
516 |         Schemas::set_schema_count(10);
    |                  ^^^^^^^^^^^^^^^^
    |                  |
    |                  function or associated item not found in `pallet_schemas::Pallet<mock::Test>`
    |                  help: there is an associated function with a similar name: `get_schema_count`

error[E0599]: no function or associated item named `set_schema_count` found for struct `pallet_schemas::Pallet` in the current scope
    --> pallets/msa/src/tests.rs:1566:12
     |
1566 |         Schemas::set_schema_count(2);
     |                  ^^^^^^^^^^^^^^^^
     |                  |
     |                  function or associated item not found in `pallet_schemas::Pallet<mock::Test>`
     |                  help: there is an associated function with a similar name: `get_schema_count`

error[E0599]: no function or associated item named `set_schema_count` found for struct `pallet_schemas::Pallet` in the current scope
    --> pallets/msa/src/tests.rs:1582:12
     |
1582 |         Schemas::set_schema_count(12);
     |                  ^^^^^^^^^^^^^^^^
     |                  |
     |                  function or associated item not found in `pallet_schemas::Pallet<mock::Test>`
     |                  help: there is an associated function with a similar name: `get_schema_count`

error[E0599]: no function or associated item named `set_schema_count` found for struct `pallet_schemas::Pallet` in the current scope
    --> pallets/msa/src/tests.rs:1597:12
     |
1597 |         Schemas::set_schema_count(16);
     |                  ^^^^^^^^^^^^^^^^
     |                  |
     |                  function or associated item not found in `pallet_schemas::Pallet<mock::Test>`
     |                  help: there is an associated function with a similar name: `get_schema_count`

error[E0599]: no function or associated item named `set_schema_count` found for struct `pallet_schemas::Pallet` in the current scope
    --> pallets/msa/src/tests.rs:1612:12
     |
1612 |         Schemas::set_schema_count(2);
     |                  ^^^^^^^^^^^^^^^^
     |                  |
     |                  function or associated item not found in `pallet_schemas::Pallet<mock::Test>`
     |                  help: there is an associated function with a similar name: `get_schema_count`

error[E0599]: no function or associated item named `set_schema_count` found for struct `pallet_schemas::Pallet` in the current scope
    --> pallets/msa/src/tests.rs:1653:12
     |
1653 |         Schemas::set_schema_count(2);
     |                  ^^^^^^^^^^^^^^^^
     |                  |
     |                  function or associated item not found in `pallet_schemas::Pallet<mock::Test>`
     |                  help: there is an associated function with a similar name: `get_schema_count`

error[E0599]: no function or associated item named `set_schema_count` found for struct `pallet_schemas::Pallet` in the current scope
    --> pallets/msa/src/tests.rs:1986:12
     |
1986 |         Schemas::set_schema_count(1);
     |                  ^^^^^^^^^^^^^^^^
     |                  |
     |                  function or associated item not found in `pallet_schemas::Pallet<mock::Test>`
     |                  help: there is an associated function with a similar name: `get_schema_count`

For more information about this error, try `rustc --explain E0599`.
error: could not compile `pallet-msa` due to 7 previous errors


Keep lines on the left and right edges from being cut

#5321 only fixed lines on the top and bottom edges, but not on the left and right edges. This PR addresses it.
Master: https://jsfiddle.net/nagix/xqe6z0ba/

This PR: https://jsfiddle.net/nagix/1yn028r7/

Closes https://github.com/chartjs/Chart.js/pull/5190


Kmeans ++ memory

On my mac I'm seeing memory get out of control. In #42 I partially fixed it with a new pdist implementation.

closed by #45


Update go from 1.17 to 1.18

What this PR does / why we need it:
This updates go from 1.17 to 1.18.
Go 1.18 closes https://github.com/golang/go/issues/31103 and the templating package will now short-circuit the evaluation of and and or arguments. All {{ if .foo }}{{ if .foo.bar }}...{{ end }}{ end }}s can finally be replaced with {{ if and .foo .foo.bar }}...{{ end }}s.

Blargh. See https://github.com/CircleCI-Public/cimg-go/pull/160 and https://github.com/CircleCI-Public/cimg-go/issues/161.

Go 1.18.2 has since been released. Try again?

circleci/golang:1.18 not found: manifest unknown: manifest unknown

Looking at DockerHub, it appears circleci has not published a Go 1.18 image for circleci/golang. The language guide now suggests using cimg/go, which does have a 1.18 tag. Can you please try that image and see if things improve?
Please also make sure to sign off on the DCO. More details can be found in the failing GitHub check.
Thanks!

I think circleci/golang is deprecated and we should use cimg/go instead.

No, the go.mod file should not be updated. See previous discussion in https://github.com/helm/helm/pull/10806#discussion_r872609762

No, the go.mod file should not be updated. See previous discussion in #10806 (comment)

Yeah but in that case I'm not sure these changes will have the effect mentioned in the description, from the docs:

For packages within the module, the compiler rejects use of language features introduced after the version specified by the go directive.

And if we're updating the CI from where the official binaries are tested and built, why not make sure all contributors use the same version as the CI?

The only reason I care about this change is to get the new short-circuiting template behavior. This happens if the binary is built with go 1.18+ and the go.mod version doesn't matter. If you want to use generics, or some other new language feature, then you do need to update the go.mod version. AFAIK, the go.mod version being higher than the local version of go is just advisory and it won't fail a build unless new language features are in use.
It was my preference to include the go.mod version change for the sake of consistency, but I don't really care that much about it.

Tests are now failing because of:

https://github.com/golangci/golangci-lint/issues/2374
https://github.com/golangci/golangci-lint/issues/2649

We might be waiting for a while...

Sounds good to me.

I go the golangci-lint working with the new version of go, but now there are lint failures on existing code unrelated to this change.

@abursavich any update?  see: https://github.com/helm/helm/pull/11110

Closing in favor of #11110


Loading saved weights ruins model accuracy

OS Platform and Distribution:  Linux Debian 9
TensorFlow backend (yes / no): yes
TensorFlow version:  1.13.1
Keras version:  2.2.4
Python version:  3.6.6

I'm using an .h5 file containing the weights of a model trained by someone else. I can successfully load the model through model.load_weights(). However once I do some predictions I get awful accuracy as the model basically predicts only the same class every time. Originally this model had 90% accuracy, and it was trained on the same machine I'm using.
After loading the saved weights it literally just predicts "1" for every image in the training/val/test sets.
I can't find the reason why the same model with same weights is performing differently on two different sessions on the same machine. Shouldn't it load normally and just perform the same predictions on the same images?
The code is very simple. I'm using the same image pre-processing function used before. Is there some mistake in how I'm loading the weights?
input_tensor = Input((96, 96, 3))
base_model = VGG19(include_top=False, pooling='avg', input_tensor=input_tensor, weights = None)
x = base_model(input_tensor)
out = Dense(1, activation="softmax")(x)
model = Model(input_tensor, out)

model.load_weights("../model_trained.h5")

I have seen people reporting this same behavior before with more complex models, stateful LSTMs and custom layers, but my model is simple and it's still giving me this same issue.
Anyone found a solution for this yet?

Can you please provide a sample toy example to reproduce the behavior reported here? Thanks!

I've been trying to recreate the issue with a publicly available dataset. Still haven't managed.
As soon as I can reproduce it I'll post here!

Okay. Closing this issue for now. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!


Fix: Export missing core components from root components

Closes #326
Description
Add missing exports on core/components/index.ts for the NetworkSwitch and TokenBalance components

hope this will be merged soon :)

@allcontributors please @seromenho for code

@allcontributors please add @seromenho for code

@Dhaiwat10 Thank you


Woohoo another pull request

TIL that egg giveaways count towards ribbon flair on SVeX.

I'll merge even though you haven't bumped the version, just because no one has actually used your most recent version yet :-P


Update AttestationRegistry.sol: Gas Optimizations

As defined in the title, these changes let the EVM store fewer slots of data and save gas.
Take a look at this and then there be gonna a brief explanation about it:

Usually, the EVM stores the state variables in slots and there are total 2**256 slots per contract as far I am concerned. In each slot, only 32 bytes of data is allowed and these slots costs gas. Thus, more the slots, more the amount you be paying for it.
In order to use less slots as possible, we should practice optimized ordering of state variables. Let me show you how:
Suppose I got a contract and there's 3 state variables in it, uint256, address or interface type address (like it's in the file) and a bool
// this contract used up 3 slots
contract demo1{
    address public owner; // takes up 20 bytes of data - slot 0
    uint256 public myNum; // takes up 32 bytes of data - slot 1
    bool public isPassed; // takes up 1 byte of data - slot 3
}

As you see in the above contract, first slot takes up 20 bytes of data and is left with 12 bytes, which wasn't sufficient for myNum and it got another slot i.e slot1. Lastly, boolean value was left with no choice other than occupying one more slot with 31 bytes of space left.
What if we order our variables like this:
contract demo2{
    address public owner; // takes up 20 bytes - slot 0
    bool public isPassed; // takes up 1 byte - slot 0
    uint256 public myNum; // takes up 32 bytes - slot 1
}

Like this we used 1 slot less.
This is what I did in the code, IRouter is a type of address in the form of interface and hence covers up 20 bytes, and uint16 covers up 2 bytes (uint256 -> 256 / 8 => 32, similarly   uint16 -> 16/8 => 2) 😄
For more detail, refer this -> https://coinsbench.com/solidity-layout-and-access-of-storage-variables-simply-explained-1ce964d7c738

Codecov Report

Merging #101 (ff66ef6) into dev (4ba892e) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##              dev     #101   +/-   ##
=======================================
  Coverage   97.91%   97.91%
=======================================
  Files           7        7
  Lines          96       96
  Branches       23       23
=======================================
  Hits           94       94
  Misses          2        2

Files Changed
Coverage Δ

src/AttestationRegistry.sol
94.11% <ø> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


New RG requirement

Portal creation experience is requiring that I create a new resource group for the PPG. This isn't indicated in the document, is it expected?

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

ID: f044b250-08b2-1104-f7aa-e8a1188b3516
Version Independent ID: ae51a1f7-0bcc-64a3-4b36-240080a84335
Content: Create a proximity placement group using the portal - Azure Windows Virtual Machines
Content Source: articles/virtual-machines/windows/proximity-placement-groups-portal.md
Service: virtual-machines
GitHub Login: @cynthn
Microsoft Alias: cynthn

screenshot

Also, separate issue but please add documentation regarding how to add an existing VM to a PPG.

@dcbrown16
Thanks for the feedback! I have assigned the issue to content author to check and update the document as appropriate.

@cynthn
Can you please check and add your comments on this doc update request as applicable.

Actually the "not able to create in an RG with existing resources" appears to be a Portal bug just for us, so I'm working on resolving that.
Instead, please consider adding info on how to put an existing VM into a PPG.

@dcbrown16 thanks for the feedback! I did this work ages ago and forgot to close this issue. Should be good to go now :)
#please-close


Option to provide headers and cookies

Would it be possible to add an option to provide any generic HTTP headers (currently only User-agent is available) and cookies via CLI?
Cookies could be included as files or in other reasonable way. Even YAML could work for this similar to existing authentication options.

I needed this mostly for cookies, but I found solution by using Javascript to hide cookie banners:
https://shot-scraper.datasette.io/en/stable/screenshots.html#executing-custom-javascript
https://shot-scraper.datasette.io/en/stable/screenshots.html#tips-for-executing-javascript


buildImage: fix add / to end of source cp to resolve any softlinks

Motivation for this change
docker buildImage fails if multiple packages attempt to copy a symlink added a / to end of source of cp
e.g
with import  <nixpkgs> {};
with dockerTools;
with pkgs;

let
  rustDtImage = buildImage {
    name = "ppickfor/nix-rustdt";
    contents = [
      rustc
      rustfmt
      rustracer
      cargo
      rainicorn
      eclipses.eclipse-rustdt
      xorg.fontadobe100dpi.out
      fontconfig.out
      fontconfig.bin
      findutils
      coreutils
      bash
      less
      moreutils
      gnugrep
    ];
     /*
     runAsRoot = ''
        #!${stdenv.shell}
        mkdir /tmp
        chmod a=rwx,o+t /tmp
      '';
      */
  };
in {
  rustDtDocker = rustDtImage;
}

Things done

[ ] Tested using sandboxing
(nix.useSandbox on NixOS,
or option build-use-sandbox in nix.conf
on non-NixOS)
Built on platform(s)

[ ] NixOS
[ ] OS X
[ x] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Fits CONTRIBUTING.md.

@lethalman care to review this one?

I think I've been using symlinkJoin to work around this problem. It seems like adding / would stop some things from being copied though.

looks like symlinkJoin is a better way of doing this
adding / does cause errors if you use symlinkJoin
https://gist.github.com/ppickfor/9d170b7cf7581082fa3ed2eea11ed032
gives
Adding contents
cp: will not create hard link 'layer/sbin' to directory 'layer/bin'
[   18.079306] reboot: Power down
builder for ‘/nix/store/qwgfk85nlp77hlwygbfdrj62f1c9al08-docker-layer.drv’ failed with exit code 1
cannot build derivation ‘/nix/store/lihx06n14bd2yaxkkcalsyvl25pzvgkk-nix-rustdt.tar.gz.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/lihx06n14bd2yaxkkcalsyvl25pzvgkk-nix-rustdt.tar.gz.drv’ failed

Should the manual be updated to add symlinkJoin?
https://nixos.org/nixpkgs/manual/#ssec-pkgs-dockerTools-buildImage

@lethalman thoughts?

This should be fixed by this pull request: https://github.com/NixOS/nixpkgs/pull/19024


AutoMMPredictor has error loading checkpoint

Hi AutoGluon team, I was recently using AutoMMPredictor for my project. The training got interrupted somehow and I tried to load the model back using predictor = AutoMMPredictor.load(path=model_path, resume=True, verbosity=4) , where model_path  is the path to the directory of the model. I got the following error:
raise RuntimeError(error_msg)
RuntimeError: Early stopping conditioned on metric `val_accuracy` which is not available. Pass in or modify your `EarlyStopping` callback to use any of the following: ``

Could anyone look into the issue? Thanks!
For the complete traceback:
Traceback (most recent call last):
  File "/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.7/site-packages/torch/multiprocessing/spawn.py", line 69, in_wrap
    fn(i, *args)
  File "/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.7/site-packages/pytorch_lightning/strategies/launchers/spawn.py", line 101, in _wrapping_function
    results = function(*args, **kwargs)
  File "/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 811, in _fit_impl
    results = self._run(model, ckpt_path=self.ckpt_path)
  File "/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 1236, in _run
    results = self._run_stage()
  File "/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 1323, in _run_stage
    return self._run_train()
  File "/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 1353, in _run_train
    self.fit_loop.run()
  File "/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.7/site-packages/pytorch_lightning/loops/base.py", line 204, in run
    self.advance(*args, **kwargs)
  File "/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.7/site-packages/pytorch_lightning/loops/fit_loop.py", line 269, in advance
    self._outputs = self.epoch_loop.run(self._data_fetcher)
  File "/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.7/site-packages/pytorch_lightning/loops/base.py", line 205, in run
    self.on_advance_end()
  File "/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.7/site-packages/pytorch_lightning/loops/epoch/training_epoch_loop.py", line 255, in on_advance_end
    self._run_validation()
  File "/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.7/site-packages/pytorch_lightning/loops/epoch/training_epoch_loop.py", line 309, in _run_validation
    self.val_loop.run()
  File "/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.7/site-packages/pytorch_lightning/loops/base.py", line 211, in run
    output = self.on_run_end()
  File "/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.7/site-packages/pytorch_lightning/loops/dataloader/evaluation_loop.py", line 206, in on_run_end
    self._on_evaluation_end()
  File "/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.7/site-packages/pytorch_lightning/loops/dataloader/evaluation_loop.py", line 282, in _on_evaluation_end
    self.trainer._call_callback_hooks("on_validation_end", *args, **kwargs)
  File "/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 1636, in _call_callback_hooks
    fn(self, self.lightning_module, *args, **kwargs)
  File "/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.7/site-packages/pytorch_lightning/callbacks/early_stopping.py", line 184, in on_validation_end
    self._run_early_stopping_check(trainer)
  File "/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.7/site-packages/pytorch_lightning/callbacks/early_stopping.py", line 191, in _run_early_stopping_check
    logs
  File "/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.7/site-packages/pytorch_lightning/callbacks/early_stopping.py", line 145, in _validate_condition_metric
    raise RuntimeError(error_msg)
RuntimeError: Early stopping conditioned on metric `val_accuracy` which is not available. Pass in or modify your `EarlyStopping` callback to use any of the following: ``

@Linuxdex is taking a look.

Excuse me, I can't reproduce your error for the time being. Can I have more details about your training?

Thanks @sxjscience!
Sure @Linuxdex, here is what I have done: I firstly initiate a predictor using the following code:
predictor = AutoMMPredictor(label='atin', path=model_path, verbosity=4)
Then, I fit the predictor by calling predictor.fit(train_data=df_train). After that, I let it trained for more than one epoch (I remember it was at 5 epoch) and the training got interrupted for some unknown reason. I then tried to resume the training by calling predictor = AutoMMPredictor.load(path=model_path, resume=True, verbosity=4) and the error popped upt. Also I used script for training so no variables will be stored after the interrupt happened.
Hope this helps!

Thanks, @KuanWeiBeCool for the detailed information.
I tried to train and load in a similar way to what you have done, but I still can't reproduce the problem.
Would you like to try the latest autogluon and pytorch-lightning？
Hope this will help you!

Thanks for your effort @Linuxdex! It might be a random case last time then. I will let you know if I see the same issue again using the latest AG

Marking as resolved, please create a new issue if error persists in latest release.


fix: ignore pages where connector id is null

A lot of our earlier tables have nullable foreign keys with cascade delete as it is the default

We have 29 nulls in there, all of them are pretty old, I'll clean them up

Roger that


Outlier model

The main reason for enabling combination of lenses' time delays to infer H0 is to enable a principled outlier model to be made: lenses that have measured time delays that predict H0 to be very different from the ensemble should be inferred to be suffering from some unknown systematic error, and discounted. This can be done probabilistically (see Hogg et al 2010). Urgency is low - this is something that could be addressed in a pull request from a Good Team, even.

This could also be a good hack project at Astro Hack Week 2016 - I'll pitch it and report back.

I realized while writing the hack pitch that the way we have the problem set up, in terms of a set of time delay posterior sample ensembles, may make it difficult to analytically marginalize out the outlier probabilities - so to solve this problem we may have to recast it in terms of multivariate Gaussian approximations to the time delay PDFs.


Test leds

Coverage increased (+0.1%) to 92.143% when pulling e234ef464734d1d6547d94892cacd262d5262b0f on test_leds into 2256b5108b395341f9dc95fccb9df8ccd2d72f36 on dev.


chore: v2

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (2df84b9) 33.88% compared to head (3490512) 33.88%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #91   +/-   ##
=======================================
  Coverage   33.88%   33.88%
=======================================
  Files           5        5
  Lines         180      180
  Branches       22       22
=======================================
  Hits           61       61
  Misses        119      119

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


relations with itself

it's possible to create relations with itself. this used to crash apis a while ago. don't know if it is still an issue, don't want to try

https://github.com/arthur-schnitzler/pmb-service/issues/76


clerification about sql  server 2005 Database

Orchard-1.9.1 works on SQL server 2005 Database ?

Hello
This is the bug database for the documentation.
Please ask such questions here : https://github.com/OrchardCMS/Orchard/issues


Sensor Reads only 0xFF

Hi,
any ideas why I can't get measurements from the sensor? I always read back 0xFF.
But the acknowledgement seems to work,
also the sensors is detected at 0x1F when using a simple i2c slave scanner arduino sketch.
I'm using the examples/cartesian_fast example - on an esp8266.
I added some print statements to the BusInterface.cpp - the result looks like this:
---------BEGIN SETUP------
Addr1F
I2C Read:FF
I2C Read:FF
I2C Read:FF
I2C Read:FF
I2C Read:FF
I2C Read:FF
I2C Read:FF
I2C Read:FF
I2C Read:FF
I2C Read:FF
I2C Send:0
I2C Send:18
I2C Send:0
I2C Send:20
I2C Send:0
I2C Send:9B
I2C Send:0
I2C Send:60
Addr1F
I2C Read:FF
I2C Read:FF
I2C Read:FF
I2C Read:FF
I2C Read:FF
I2C Read:FF
I2C Read:FF
I2C Send:0
I2C Send:18
I2C Send:0
I2C Send:20
I2C Send:0
I2C Send:9B
I2C Send:0
I2C Send:60
I2C Send:0
I2C Send:1B
I2C Send:0
I2C Send:E0
---------BEGIN READ LOOP------
Addr1F
I2C Read:FF
I2C Read:FF
I2C Read:FF
I2C Read:FF
I2C Read:FF
I2C Read:FF
I2C Read:FF
-0.10 ; -0.10 ; -0.10

Any ideas?

Would use I2C scanner to check sensor availability and address.

Hi,
I debugged the issue and found out the root cause.
The address of the sensor is correct and the sensor works properly, the library also works perfectly.
The issue is caused by using the I2C Pins as digitalPins for the reset logic,
as the ESP8266 does not reconfigure the pins for I2C correctly afterwards.
Looking at the source code here on github,
the current version does not use the I2C Pins as digitalPins anymore

but the v1.0.1 Release zip still does use them
https://github.com/Infineon/3D-Magnetic-Sensor-2GO/releases/download/V1.0.1/IFX-3D-Magnetic-Sensor-2GO.zip
--> Cloning the repo or using the source.zip should do the trick :)


Jadx forgets to decompile some methods

Hi,
please use the following APK: https://drive.google.com/open?id=1dxd03Yh8jVlG1gMB0p-pKAPzbOlh79j2
Construtor in class jp.naver.line.android.util.bs with arguments Landroid/content/BroadcastReceiver;Ljava/lang/String;Z is not shown in sources, but in smali code (decompiled with apktool) it exists:
.method public constructor <init>(Landroid/content/BroadcastReceiver;Ljava/lang/String;Z)V
# direct methods
.method public synthetic constructor <init>(Landroid/content/BroadcastReceiver;Ljava/lang/String;)V
    .locals 1

    .prologue
    .line 84
    const/4 v0, 0x1

    invoke-direct {p0, p1, p2, v0}, Ljp/naver/line/android/util/bs;-><init>(Landroid/content/BroadcastReceiver;Ljava/lang/String;Z)V

    return-void
.end method

In class jp.naver.line.android.util.br you can find its calls:
bsVarArr[3] = new jp.naver.line.android.util.bs((android.content.BroadcastReceiver) new com.ad.tracking.cpe.agent.MyNetChange(), "android.net.conn.CONNECTIVITY_CHANGE");

Doesn't jadx show it if it's synthetic?

@sergey-wowwow thanks!
This method was incorrectly matched as synthetic constructor in inner class. Java compiler generates a lot of synthetic methods and jadx try to hide some of them, for examples check this notes.


NumPy 2.0 compatibility

It seems that scikit-bio is compatible with the upcoming NumPy 2.0. Following this guideline, I ran:
ruff check skbio --select NPY201

And nothing happened, meaning the check passed. However, I haven't been able to actually install NumPy 2.0 for test (probably because it is still under active development). Therefore we should keep an eye on it.
Thanks @wasade for pointing out this.

You can install numpy 2.0.0rc1 from PyPI now, with pip install numpy --pre. It'd be great to get a confirmation that everything works well with numpy 2.x

@rgommers Thanks for pointing us to this!
Just tested. Got error:
File "h5py/_errors.pyx", line 1, in init h5py._errors
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

This is probably an issue in h5py, a dependency of scikit-bio. I saw this discussion in the h5py codebase. We probably need to wait until after they release a NumPy 2.0 compatible version. @wasade

@rgommers Update: I was able to install numpy 2.0.0rc1 and compatible versions of scipy, pandas and h5py. Then got the following error when importing scikit-bio:
  File "skbio/stats/__subsample.pyx", line 1, in init skbio.stats.__subsample
ImportError: numpy.core.multiarray failed to import (auto-generated because you didn't call 'numpy.import_array()' after cimporting numpy; use '<void>numpy._import_array' to disable if you are certain you don't need it).

We have planned to replace the __subsample function with a new one so this error might become irrelevant in the next release. But if you have some insights to share we will appreciate.

Not too much more than what the error message says:
because you didn't call 'numpy.import_array()' after cimporting numpy

in the Cython file where this error comes from, I assume there's a cimport numpy as cnp statement. and no cnp.import_array().

h5py release is out now - slowly getting there:)

Thanks for the update! Now we are waiting for Pandas 2.2.2. Then we add numpy 2.0 support for the upstream package biom-format. Then we can unblock numpy 2.0 in scikit-bio.

Now we are waiting for Pandas 2.2.2.

That's up on PyPI too now, since ~25 minutes ago.

Hi @qiyunzhu, I just wanted to check in on this, and ask if you plan to include support in 0.6.1 or 0.7.0 (and, if you know, roughly when)?

Hello @rgommers , We recently resolved the NumPy 2.0 support issue in the upstream package biom-format (see here). We are about to resolve this in scikit-bio in the next few days. It will be 0.6.1. Let's say it will be released in a month or so.

Thanks! I'm not 100% sure that the final numpy 2.0 release will take more than a month from now, so a release before the end of May would be safer. But if you've got all the problems resolved then that's already good to know.

JFYI NumPy is planning to release 2.0 on June 16th
xref: https://github.com/numpy/numpy/issues/24300#issuecomment-2125643448

Hi,
I am a new user and tried to install scikit-bio today for the first time.
After a successful installation in a new environment, I got the following error on import of scikit-bio
ImportError: numpy.core.multiarray failed to import
It seems that some modules are compiled using NumPy 1.x and thus cannot be run in NumPy 2.0.0 (which was released yesterday and installed together with the other dependencies of scikit-bio).
Downgrading to the newest 1.x version fixed the problem.

@sspola Thanks for the report. We are preparing a NumPy 2.0-compatible release. It will be out very soon. At present, you can do pip install git+https://github.com/scikit-bio/scikit-bio.git to install the nightly build which should work with NumPy 2.0. Let me know if it works or not.

@sspola We have released scikit-bio 0.6.1, which is compatible with NumPy 2.0. 😊

@qiyunzhu that's great, thank you!


Improve error message for incompatible enums

Forked off #940. NTI catches the bug, but the error message is hard to understand for someone not very familiar with the type system. It reads
input0:16: WARNING - Cannot access property RED of non-object type bottom.
case Color.RED:
^
input0:18: WARNING - Cannot access property ORANGE of non-object type bottom.
case Color.ORANGE:
^
Code snippet:
/** @enum {string} */
var Color = {
  RED: 'red',
  ORANGE: 'orange'
};

/** @enum {string} */
var Shape = {
  SQUARE: 'square',
  TRIANGLE: 'triangle'
};

/** @param {Shape} shape */
function f(shape) {
  switch (shape) {
    case Color.RED:
      alert('r');
    case Color.ORANGE:
      alert('o');
  }
}

@dimvar Looks like NTI stopped catching / reporting this?
https://closure-compiler-debugger.appspot.com/#input0%3D%252F**%2520%2540enum%2520%257Bstring%257D%2520*%252F%250Avar%2520Color%2520%253D%2520%257B%250A%2520%2520RED%253A%2520'red'%252C%250A%2520%2520ORANGE%253A%2520'orange'%250A%257D%253B%250A%250A%252F**%2520%2540enum%2520%257Bstring%257D%2520*%252F%250Avar%2520Shape%2520%253D%2520%257B%250A%2520%2520SQUARE%253A%2520'square'%252C%250A%2520%2520TRIANGLE%253A%2520'triangle'%250A%257D%253B%250A%250A%252F**%2520%2540param%2520%257BShape%257D%2520shape%2520*%252F%250Afunction%2520f(shape)%2520%257B%250A%2520%2520switch%2520(shape)%2520%257B%250A%2520%2520%2520%2520case%2520Color.RED%253A%250A%2520%2520%2520%2520%2520%2520alert('r')%253B%250A%2520%2520%2520%2520case%2520Color.ORANGE%253A%250A%2520%2520%2520%2520%2520%2520alert('o')%253B%250A%2520%2520%257D%250A%257D%26input1%26conformanceConfig%26externs%26refasterjs-template%26includeDefaultExterns%3D1%26CHECK_TYPES_NEW_INFERENCE%3D1%26PRESERVE_TYPE_ANNOTATIONS%3D1%26PRETTY_PRINT%3D1


Jenkins Collector - Link Correction

@satishc1 - Corrected hyperlinks to Jenkins collector and plugin.

@tabladrum LGTM