[Errno 28] No space left on device

Hi my clightning node shut down. I tried to do a backup/rescue but i get an error saying [Errno 28] No space left on device. I am pretty shure i have alot of space on my hdd 1TB but micro sd 32G look full.
How do i resolve this?

Running sudo journalctl -u lightningd give me this:

The problem is your sd card - not the hdd. To locate what takes that space on the sd card please run the following command & post the results here: sudo du -a /var | sort -n -r | head -n 10
Basically to resolve: You can just turn the node off with command off and flash a new sd card and recover.

Ok thanks. I will turn node off, flash a new card and try again. Btw here is results:

Solved on Telegram.
Related: https://github.com/rootzoll/raspiblitz/issues/2869
Solution:
To compact the CL backup run:
config.scripts/cl-plugin.backup.sh compact

to reinitialize the backup plugin in case of and error run:
config.scripts/cl-plugin.backup.sh on

will also need to delete the dated backup files from /home/bitcoin
sudo rm /home/bitcoin/lightningd.sqlite3.backup.*

@noobedo if these solved your issue, close please.

I have now run recovery with fresh sd card and looks like it still have problems
sudo journalctl -u lightningd

Did you encrypt your hsm_secret (c-lightning wallet)?
Try decrypting it from the REPAIR-CL menu.

Yes i encypted it. Trying for a second time to recover from a newly flashed sd card atm. I will try to decrypt from the REPAIR-CL menu once its ready.

Ok, after second failed attempt at unlocking cl wallet during recovery i decrypted the wallet from the REPAIR-CL meny. Decryption of cl wallet seemed to work. Now waiting for Lightning progress. Screen blink every couple of minutes with some invalid numeric syntax error message.

Did a new fresh install with only blockchain data, and imported cl rescue file from FILERESTORE and now waiting again. Will report back tomorrow.

Looks like plugin-backup.py is working its way through history one state change at the time? I guess i will just have to wait..

Ok, looks like database and the rescuefile may have been corrupted by the cold restet when microsd became full. I will try with an older rescuefile. I got three resent rescuefiles from after the node shut down so they may all be corrupted but i will try to anyway.

Old Rescue file had wallet encrypted and would not open even after entering encryption password, and node fall back to open latest unencrypted corrupted database.

Latest try

The latest try looks ok.
Check
cl listpeers
and
cl listfunds

The wallet does not unlock because of the error pictured above.
If you can paste those lines as text will be eaiser to share with the c-lightning team.

I now unlocked with the decrypt option in menu
Enter hsm_secret password:
Getting the password from /dev/shm/.cl.pw
Enter hsm_secret password:
Successfully decrypted hsm_secret, be careful now :-).
Decrypted successfully
Shredding the passwordFile
shred: /dev/shm/.cl.pw: pass 1/4 (random)...
shred: /dev/shm/.cl.pw: pass 2/4 (random)...
shred: /dev/shm/.cl.pw: pass 3/4 (random)...
shred: /dev/shm/.cl.pw: pass 4/4 (000000)...
shred: /dev/shm/.cl.pw: removing
shred: /dev/shm/.cl.pw: renamed to /dev/shm/000000
shred: /dev/shm/000000: renamed to /dev/shm/00000
shred: /dev/shm/00000: renamed to /dev/shm/0000
shred: /dev/shm/0000: renamed to /dev/shm/000
shred: /dev/shm/000: renamed to /dev/shm/00
shred: /dev/shm/00: renamed to /dev/shm/0
shred: /dev/shm/.cl.pw: removed
Decrypted the hsm_secret for C-lightning mainnet
Removed /etc/systemd/system/multi-user.target.wants/lightningd.service.
Create /etc/systemd/system/lightningd.service
Then i see this in log:
sudo journalctl -u lightningd
-- Logs begin at Tue 2022-02-01 22:20:23 GMT, end at Tue 2022-02-01 23:12:14 GMT. --
Feb 01 22:21:04 Supernode systemd[1]: Starting c-lightning daemon on mainnet...
Feb 01 22:21:04 Supernode systemd[1]: Started c-lightning daemon on mainnet.
Feb 01 22:21:04 Supernode sh[553]: cat: /dev/shm/.cl.pw: No such file or directory
Feb 01 22:21:04 Supernode sh[553]: cat: /dev/shm/.cl.pw: No such file or directory
Feb 01 22:21:09 Supernode sh[553]: /usr/local/bin/lightningd: --encrypted-hsm: Could not read pass from stdin.
Feb 01 22:21:09 Supernode systemd[1]: lightningd.service: Main process exited, code=exited, status=1/FAILURE
Feb 01 22:21:09 Supernode systemd[1]: lightningd.service: Failed with result 'exit-code'.
Feb 01 22:21:39 Supernode systemd[1]: lightningd.service: Service RestartSec=30s expired, scheduling restart.
Feb 01 22:21:39 Supernode systemd[1]: lightningd.service: Scheduled restart job, restart counter is at 1.
Feb 01 22:21:39 Supernode systemd[1]: Stopped c-lightning daemon on mainnet.
Feb 01 22:21:39 Supernode systemd[1]: Starting c-lightning daemon on mainnet...
Feb 01 22:21:40 Supernode systemd[1]: Started c-lightning daemon on mainnet.
Feb 01 22:21:40 Supernode sh[2972]: cat: /dev/shm/.cl.pw: No such file or directory
Feb 01 22:21:40 Supernode sh[2972]: cat: /dev/shm/.cl.pw: No such file or directory
Feb 01 22:21:41 Supernode sh[2972]: /usr/local/bin/lightningd: --encrypted-hsm: Could not read pass from stdin.
Feb 01 22:21:41 Supernode systemd[1]: lightningd.service: Main process exited, code=exited, status=1/FAILURE
Feb 01 22:21:41 Supernode systemd[1]: lightningd.service: Failed with result 'exit-code'.
Feb 01 22:22:26 Supernode systemd[1]: lightningd.service: Service RestartSec=30s expired, scheduling restart.
Feb 01 22:22:26 Supernode systemd[1]: lightningd.service: Scheduled restart job, restart counter is at 2.
Feb 01 22:22:26 Supernode systemd[1]: Stopped c-lightning daemon on mainnet.
Feb 01 22:22:26 Supernode systemd[1]: Starting c-lightning daemon on mainnet...
Feb 01 22:22:26 Supernode systemd[1]: Started c-lightning daemon on mainnet.
Feb 01 22:22:26 Supernode sh[5169]: cat: /dev/shm/.cl.pw: No such file or directory
Feb 01 22:22:26 Supernode sh[5169]: cat: /dev/shm/.cl.pw: No such file or directory
Feb 01 22:22:28 Supernode sh[5169]: /usr/local/bin/lightningd: --encrypted-hsm: Could not read pass from stdin.
Feb 01 22:22:28 Supernode systemd[1]: lightningd.service: Main process exited, code=exited, status=1/FAILURE

And calling cllog:
cllog
2022-02-01T23:17:39.250Z INFO    plugin-backup.py: root        : Comparing backup version 2406478 versus first write version 2406479
2022-02-01T23:17:39.250Z INFO    plugin-backup.py: Comparing backup version 2406478 versus first write version 2406479
2022-02-01T23:17:39.250Z INFO    plugin-backup.py: root        : Versions match up
2022-02-01T23:17:39.250Z INFO    plugin-backup.py: Versions match up
2022-02-01T23:17:40.910Z INFO    connectd: Static Tor service onion address: "2de3vrdvrmffsxg4pqbmiolkbdvtwfhsvmncxhjgyfgghpe3232gc6ad.onion:9736,<IP_ADDRESS>:9736" bound from extern port 9736
2022-02-01T23:17:58.357Z INFO    plugin-bcli: bitcoin-cli initialized and connected to bitcoind.
2022-02-01T23:18:29.268Z INFO    plugin-backup.py: root        : Comparing backup version 2406480 versus first write version 2406481
2022-02-01T23:18:29.268Z INFO    plugin-backup.py: Comparing backup version 2406480 versus first write version 2406481
2022-02-01T23:18:29.268Z INFO    plugin-backup.py: root        : Versions match up
2022-02-01T23:18:29.269Z INFO    plugin-backup.py: Versions match up
2022-02-01T23:18:31.001Z INFO    connectd: Static Tor service onion address: "2de3vrdvrmffsxg4pqbmiolkbdvtwfhsvmncxhjgyfgghpe3232gc6ad.onion:9736,<IP_ADDRESS>:9736" bound from extern port 9736
2022-02-01T23:18:48.444Z INFO    plugin-bcli: bitcoin-cli initialized and connected to bitcoind.
2022-02-01T23:19:19.510Z INFO    plugin-backup.py: root        : Comparing backup version 2406482 versus first write version 2406483
2022-02-01T23:19:19.510Z INFO    plugin-backup.py: Comparing backup version 2406482 versus first write version 2406483
2022-02-01T23:19:19.510Z INFO    plugin-backup.py: root        : Versions match up
2022-02-01T23:19:19.510Z INFO    plugin-backup.py: Versions match up
2022-02-01T23:19:21.184Z INFO    connectd: Static Tor service onion address: "2de3vrdvrmffsxg4pqbmiolkbdvtwfhsvmncxhjgyfgghpe3232gc6ad.onion:9736,<IP_ADDRESS>:9736" bound from extern port 9736
2022-02-01T23:19:38.771Z INFO    plugin-bcli: bitcoin-cli initialized and connected to bitcoind.

Removed /etc/systemd/system/multi-user.target.wants/lightningd.service.
Create /etc/systemd/system/lightningd.service
[Unit]
Description=c-lightning daemon on mainnet
[Service]
ExecStartPre=-/home/admin/config.scripts/cl.check.sh prestart mainnet
ExecStart=/bin/sh -c '(cat /dev/shm/.cl.pw;echo;cat /dev/shm/.cl.pw) | /usr/local/bin/lightningd --conf=/home/bitcoin/.lightning/config --encrypted-hsm'
User=bitcoin
Group=bitcoin
Type=simple
Restart=always
TimeoutSec=120
RestartSec=30
StandardOutput=null
StandardError=journal
Hardening measures
PrivateTmp=true
ProtectSystem=full
NoNewPrivileges=true
PrivateDevices=true
[Install]
WantedBy=multi-user.target
Created symlink /etc/systemd/system/multi-user.target.wants/lightningd.service → /etc/systemd/system/lightningd.service.
Enabled the lightningd.service
Started the lightningd.service
Waiting to unlock wallet ...
Waiting to unlock wallet ...
Waiting to unlock wallet ...
Waiting to unlock wallet ...
Waiting to unlock wallet ...
Waiting to unlock wallet ...
Waiting to unlock wallet ...
Waiting to unlock wallet ...
Waiting to unlock wallet ...
Waiting to unlock wallet ...
Waiting to unlock wallet ...
Failed to unlock the lightningd wallet - giving up after 1 minute
Check: sudo journalctl -u lightningd
Removed /etc/systemd/system/multi-user.target.wants/lightningd.service.
Create /etc/systemd/system/lightningd.service
[Unit]
Description=c-lightning daemon on mainnet
[Service]
ExecStartPre=-/home/admin/config.scripts/cl.check.sh prestart mainnet
ExecStart=/bin/sh -c '(cat /dev/shm/.cl.pw;echo;cat /dev/shm/.cl.pw) | /usr/local/bin/lightningd --conf=/home/bitcoin/.lightning/config --encrypted-hsm'
User=bitcoin
Group=bitcoin
Type=simple
Restart=always
TimeoutSec=120
RestartSec=30
StandardOutput=null
StandardError=journal
Hardening measures
PrivateTmp=true
ProtectSystem=full
NoNewPrivileges=true
PrivateDevices=true
[Install]
WantedBy=multi-user.target
Created symlink /etc/systemd/system/multi-user.target.wants/lightningd.service → /etc/systemd/system/lightningd.service.
Enabled the lightningd.service
Started the lightningd.service
Checking dependencies
WARNING: You are using pip version 21.2.4; however, version 22.0 is available.
You should consider upgrading via the '/usr/bin/python3 -m pip install --upgrade pip' command.
Stop the lightningd.service
Backup the existing old backup on the SDcard
/home/bitcoin/.lightning/bitcoin/backup.lock
Initialize the backup plugin
Found an existing database at /home/bitcoin/.lightning/bitcoin/lightningd.sqlite3, initializing the backup with a snapshot
Successfully written initial snapshot to file:///home/bitcoin/lightningd.sqlite3.backup
Initialized backup backend file:///home/bitcoin/lightningd.sqlite3.backup, you can now start c-lightning
Started the lightningd.service
DONE - lightningd is now starting
Check that CL is starting up correctly and your old channels & funds are restored.
Take into account that some channels might have been force closed in the meanwhile.

The problem is not with the encryption.
The error message is misleading because it cannot unlock because it cannot start.
Now after decryption need to run
config.scripts/cl.install.service.sh
to fix the systemd service. This happens automatically in the next release.

admin@Supernode:~ $ config.scripts/cl.install.service.sh
-bash: config.scripts/cl.install.service.sh: No such file or directory
admin@Supernode:~ $

Ok so the problem with restoring the backup is because the wallet was encrypted, and there is some missing script to unlock on restore?

admin@Supernode:~ $ config.scripts/cl.install.service.sh
-bash: config.scripts/cl.install.service.sh: No such file or directory
admin@Supernode:~ $

it is
config.scripts/cl.install-service.sh
corrected the typo

Ok so the problem with restoring the backup is because the wallet was encrypted, and there is some missing script to unlock on restore?

it seems that the main issue is the
database disk image is malformed
error, which I haven't seen before and would like to share with the C-lightning devs.

Ok I tried the corrected typo, seem to work but node is still not starting.
sudo journalctl -u lightningd
-- Logs begin at Tue 2022-02-01 23:31:56 GMT, end at Tue 2022-02-01 23:41:33 GMT. --
Feb 01 23:32:36 Supernode systemd[1]: Starting c-lightning daemon on mainnet...
Feb 01 23:32:37 Supernode systemd[1]: Started c-lightning daemon on mainnet.
Feb 01 23:32:44 Supernode sh[622]: lightning_connectd: Connecting stream socket to Tor service: Connection refused
Feb 01 23:32:44 Supernode sh[622]: lightningd: connectd failed (exit status 1), exiting.
Feb 01 23:32:44 Supernode systemd[1]: lightningd.service: Main process exited, code=exited, status=1/FAILURE
Feb 01 23:32:44 Supernode systemd[1]: lightningd.service: Failed with result 'exit-code'.
Feb 01 23:33:14 Supernode systemd[1]: lightningd.service: Service RestartSec=30s expired, scheduling restart.
Feb 01 23:33:14 Supernode systemd[1]: lightningd.service: Scheduled restart job, restart counter is at 1.
Feb 01 23:33:14 Supernode systemd[1]: Stopped c-lightning daemon on mainnet.
Feb 01 23:33:14 Supernode systemd[1]: Starting c-lightning daemon on mainnet...
Feb 01 23:33:14 Supernode systemd[1]: Started c-lightning daemon on mainnet.
Feb 01 23:34:29 Supernode sh[2960]: Error executing statement: wallet/wallet.c:3575: DELETE FROM blocks WHERE height > ?: database
Feb 01 23:34:29 Supernode systemd[1]: lightningd.service: Main process exited, code=exited, status=1/FAILURE
Feb 01 23:34:29 Supernode systemd[1]: lightningd.service: Failed with result 'exit-code'.
Feb 01 23:34:59 Supernode systemd[1]: lightningd.service: Service RestartSec=30s expired, scheduling restart.
Feb 01 23:34:59 Supernode systemd[1]: lightningd.service: Scheduled restart job, restart counter is at 2.
Feb 01 23:34:59 Supernode systemd[1]: Stopped c-lightning daemon on mainnet.
Feb 01 23:34:59 Supernode systemd[1]: Starting c-lightning daemon on mainnet...
Feb 01 23:35:00 Supernode systemd[1]: Started c-lightning daemon on mainnet.
Feb 01 23:35:27 Supernode sh[7083]: Error executing statement: wallet/wallet.c:3575: DELETE FROM blocks WHERE height > ?: database
Feb 01 23:35:27 Supernode systemd[1]: lightningd.service: Main process exited, code=exited, status=1/FAILURE
Feb 01 23:35:27 Supernode systemd[1]: lightningd.service: Failed with result 'exit-code'.
Feb 01 23:35:57 Supernode systemd[1]: lightningd.service: Service RestartSec=30s expired, scheduling restart.
Feb 01 23:35:57 Supernode systemd[1]: lightningd.service: Scheduled restart job, restart counter is at 3.
Feb 01 23:35:57 Supernode systemd[1]: Stopped c-lightning daemon on mainnet.
Feb 01 23:35:57 Supernode systemd[1]: Starting c-lightning daemon on mainnet...
lines 1-27

So we are getting somewhere with this debugging. I will have to go now. Checking inn again tomorrow. Thanks alot for your help!

Answer from cdecker https://t.me/lightningd/10053
To confirm if the database is readable do a direct sqlite query like in https://github.com/rootzoll/raspiblitz/blob/dev/FAQ.cl.md#sqlite3-queries
sudo -u bitcoin sqlite3 /home/bitcoin/.lightning/bitcoin/lightningd.sqlite3 'select short_channel_id, timestamp, cause, message from channel_state_changes inner join channels on channel_id = id where new_state = 7 order by timestamp'

717791x763x1|1641738324237197070|2|User or plugin invoked close command
717856x323x1|1641904031827940160|2|User or plugin invoked close command
717925x301x1|1641904048263026456|2|User or plugin invoked close command
717828x1276x1|1641904071115513449|2|User or plugin invoked close command
718128x931x0|1641909614351405983|3|Peer closes channel
718208x2064x1|1641936542623232527|2|User or plugin invoked close command
717865x1769x0|1642019302037365531|2|User or plugin invoked close command
717856x323x0|1642756452866498673|2|User or plugin invoked close command
719323x1684x0|1642777367433712461|2|User or plugin invoked close command
717802x2282x0|1643371765948065823|3|Peer closes channel
718356x1521x0|1643398651811122368|2|User or plugin invoked close command```

Looks like there is not much more to do regarding originating issue, i will take my issue with recovery to the c-lighting project and see if they can help me. Closing this issue Found this guide and entering steep learning curve. https://github.com/mandelbit/bitcoin-tutorials/blob/master/CLightningRecoverFunds.md


Adding CREATE API DOCs

Purpose
Added CREATE API DOCs

Revert the changes done on master as it already added for 3.0.0 branch


[helm 3]Misleading documents about local chart repository

In helm3, helm serve command is already removed, but the documents for helm3 is still talking about using helm serve to start a local server for a chart repository, which is misleading.
Open this page https://helm.sh/docs/topics/chart_repository/  and search for helm serve, contents about using helm serve is stiil there.
In my thought, those misleading parts should be deleted. Maybe a paragraph about using chartmuseum could be added.

Thanks, @randmonkey! This was resolved in https://github.com/helm/helm-www/pull/453.


Is there a option to add WYSIWYG?

I was looking for in place editing and I found this one. First: great job! Love it! simple to install and to use!
My question was is there a option to add WYSIWYG option to the gem?
I saw that it is possible for jeditable: http://www.appelsiini.net/2008/9/wysiwyg-for-jeditable
Thanks!

A good suggestion. I will have a look. Contributions are always welcome ;)

Hi,
I had was looking at it and I have it working. It wasn't a lot of trouble too implement the option.
Im now looking if I can extend the gem with and image upload en selection with it.


CLIMATE-890 - Changing time format when calendar in the netcdf file is 360_day

utils.decode_time_values has been updated

Merged build triggered. Test Failed.

LGTM, just fix the landscape warnings. The travis failure is due to ongoing instability of the opendap test servers.

Merged build triggered. Test Failed.


Add local notification permission

Hi @MohamedRejeb!
Thanks for the awesome library.
For my application I require local notification support, was a breeze to implement.

Done!


Mccalluc/coverage

Fix #154
... and ignore all the things that aren't covered right now.
Remove redundant names on jobs

ignore all the things that aren't covered right now.

Why ignore things? Don't we want an accurate coverage metric even if it might currently be low?

ignore all the things that aren't covered right now.

Why ignore things? Don't we want an accurate coverage metric even if it might currently be low?

@keller-mark : Good question: This is subjective. There are ways of using test coverage that haven't worked for me:

Measure test coverage, but don't tie CI pass/fail to it: In my experience, unless something is an explicit failure, we don't worry about it; we get used to warning messages, and the coverage metric just becomes more noise.
Measure test coverage, and fail if coverage goes down: This is better: The idea is that coverage can be ratcheted up over time. I've seen two problems with this: Ratcheting up the coverage check becomes a chore, and unrelated refactors / reformattings can lower coverage. (ie: Splitting lines to improve readability can lower coverage.)

One alternative is what I've done in this PR: Add enough ignores (either at the line or file level) so that "coverage" is 100% ... Advantages:

If untested code is added to a file which otherwise has good coverage, the author needs to add an ignore on the new lines... and may be prompted to test the new code.
If an entire file has low coverage, it's entirely ignored, and a small bug fix doesn't need to get hung up because the testing infrastructure for that file is missing.
Line and file ignores function as a TODO list, if a developer has spare cycles and wants to improve the codebase.
We do lose a measurement of the actual coverage, but I'm ok with that: We know that some code is more complicated or more important that other code -- Not everything needs the same level of scrutiny. In addition, just looking at the coverage doesn't tell you much about the quality of the tests -- Maybe the output checks aren't strong. There's a danger that the coverage because a metric we try to improve artificially.

Thanks for the explanations. Just made https://github.com/vitessce/vitessce-python/pull/177. Would you also be able to resolve the init.py conflicts (I think they are related to the import fixes that you previouly made for python 3.6)?

3.10 is failing because of missing coverage:
vitessce/__init__.py           24      8    67%   26-27, 36-37, 45-46, 53-54

These are lines like:
except ModuleNotFoundError as e:
    warn(f'Extra installs are necessary to use widgets: {e}')

With everything installed in 3.10, we don't go down those paths: Fix: I'll add more ignores.


Upgrade dotenv-expand to fix issues #4002 #5833

Hi,
This fixes issues #4002 and #5833
Essentially if a .env has an override which is an empty string, it is ignored. This was fixed by https://github.com/motdotla/dotenv-expand/issues/18

@iansu Can we merge this?

@kireerik Could you help double-checking this for any breaking changes that could affect us?

@heyimalex Sure. It looks good to me.


MethodLength should not consider Heredocs

Any attempt of refactoring would end up in splitting the heredoc decreasing readability.

As of https://github.com/rubocop-hq/rubocop/pull/8159 you can configure heredocs to be counted as one line (CountAsOne).


Registry tool: upload discovery results in quota exhaustion when run against hosted registry

When running registry upload discovery against a hosted version of registry, after a number of successful uploads, the tool starts to be rate limited and encounters errors for RATE_LIMIT_EXCEEDED. The default limit appears to be 1200 requests per minute: quota_limit:RequestsPerProjectPerUserPerMinute quota_limit_value:1200. I was rate limited after uploading 52 specs.
A couple options I see to make the experience smoother:

Add a max flag to upload discovery for the max number of APIs to upload and default to something relatively small like 25.
Reduce the default number of jobs in the command. This would require some testing to see if reducing is actually slow enough to prevent rate limiting. Obviously this would depend a bit on the environment.
Don't make a change to the registry tool and instead increase the default RequestsPerProjectPerUserPerMinute quota limit.

Since the quota is set per instance and not per client, raising the limit might be a good idea.
That said, we still should handle things better on the client side... It seems like we don't have any fallback in place on the client when we're rate limited. I wonder if we should do that instead of simply failing?


Issue with Bluetooth Connection Loss

Problem Description
Hi! Issue with Bluetooth Connection Loss on ESP32 with A2DP Sink
I'm using an ESP32 with the following simple sketch to stream audio via Bluetooth:
However, when I connect two different mobile phones (Samsung A70\Some Honor (not old one)) via Bluetooth and start playing audio, both devices lose the Bluetooth connection immediately after the playback starts or just by vol. control pressing to min and max posisson). The Bluetooth connection seems stable until the audio begins.
I'm using the BluetoothA2DPSink library, and all connection parameters (bit rate, sample rate, etc.) seem to be set correctly. I've checked for potential power supply issues, but the problem persists. Could this be related to buffer settings, resource conflicts, or interference? What could be causing this behavior, and how can I resolve it?
Device Description
Chip Model: ESP32-D0WD-V3
Chip Cores: 2
Flash Size: 4MB
PSRAM Size: 0MB
Memory Information:
Free Heap: 352664 bytes
Minimum Free Heap: 347284 bytes
Max Alloc Heap: 118772 bytes
System Information:
CPU Frequency: 240 MHz
SDK Version: v5.1.4-828-g33fbade6b8-dirty
Sketch Size: 282032 bytes
Free Sketch Space: 1310720 bytes
Flash Frequency: 80000000 Hz
Cycle Count: 263873208
chip revision: v3.1
Sketch
/*
  Streaming Music from Bluetooth

  Copyright (C) 2020 Phil Schatzmann
  This program is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.
  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.
  You should have received a copy of the GNU General Public License
  along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

// ==> Example A2DP Receiver which uses I2S to an external DAC
// This creates a new Bluetooth device with the name “MyMusic” and the output will be sent to the following default I2S pins which need to be connected to an external DAC:
//
// bck = 14
// ws = 15
// data_out = 22

#include "AudioTools.h"
#include "BluetoothA2DPSink.h"

I2SStream out;
BluetoothA2DPSink a2dp_sink(out);

void setup() {
  a2dp_sink.start("MyMusic");
}

void loop() {
  delay(1000); // do nothing
}

Other Steps to Reproduce
No response
Provide your Version of the EP32 Arduino Core (or the IDF Version)
Chip Model: ESP32-D0WD-V3
I have checked existing issues, discussions and online documentation

[X] I confirm I have checked existing issues, discussions and online documentation

Never heard of anything like this!
Please provide the ESP32 core version that you can find in the Board Manager.
The first thing to do, would be to actvate the A2DP logging and the AudioTools logging!

For the AudioToolls add

Serial.begin(115200);
AudioLogger::instance().begin(Serial, AudioLogger::Debug);

For A2DP, activate the logging in the Tools menu of Arduino

My Board selected ESP32 Dev Module.
It seems that BT is not disconnecting now. I have not listened audio yet and am only looking at the SDATA pin with an oscilloscope.
Here's what's strange - I see spam in the port monitor:
E (1671429) i2s_common: i2s_channel_write(1109): input parameter 'handle' is NULL [E] I2SESP32V1.h : 111 - size_t audio_tools::I2SDriverESP32V1::writeBytes(const void*, size_t) E (1671444 i2) s_common: i2s_channel_write(1109): input parameter 'handle' is NULL [E] I2SESP32V1.h : 111 - size_t audio_tools::I2SDriverESP32V1::writeBytes(const void*, size_t) E (1671460) i2s_common: i2s_channel_write(1109): input parameter 'handle' is NULL
[E] I2SESP32V1.h : 111 - size_t audio_tools::I2SDriverESP32V1::writeBytes(const void*, size_t)
E (1671475) i2s_common: i2s_channel_write(1109): input parameter 'handle' is NULL
And another strange thing - if I pause the BT stream or turn off the BT on my mobile, I continue to see the SDATA stream with the oscilloscope.
My sketch:
#include "AudioTools.h"
#include "BluetoothA2DPSink.h"
I2SStream out;
BluetoothA2DPSink a2dp_sink(out);
void setup() {
Serial.begin(115200);
AudioLogger::instance().begin(Serial, AudioLogger::Error);
a2dp_sink.start("MyMusic");
}
void loop() {
delay(1000);
}
And i can't see any A2DP logging settings in the Tools menu of Arduino IDE. Could you clarify what you mean? Thanks!

I committed a correction the the AudioTools...
For some strange reason I2S was opened in read mode....

No disconnects! Correct SDATA behavior on stop\pause. TNX!!! Later a wiil connect DAC and listen output. I will remember you after converting the project to coins.


Cannot import name 'Event' from 'homeassistant.helpers.event'

System Health details
System Information

version
core-2023.8.0

installation_type
Home Assistant OS

dev
false

hassio
true

docker
true

user
root

virtualenv
false

python_version
3.11.4

os_name
Linux

os_version
6.1.21-v8

arch
aarch64

timezone
Europe/Kiev

config_dir
/config

Home Assistant Community Store

GitHub API
ok

GitHub Content
ok

GitHub Web
ok

GitHub API Calls Remaining
4996

Installed Version
1.32.1

Stage
running

Available Repositories
1269

Downloaded Repositories
26

Home Assistant Cloud

logged_in
false

can_reach_cert_server
ok

can_reach_cloud_auth
ok

can_reach_cloud
ok

Home Assistant Supervisor

host_os
Home Assistant OS 10.4

update_channel
stable

supervisor_version
supervisor-2023.07.1

agent_version
1.5.1

docker_version
23.0.6

disk_total
28.5 GB

disk_used
12.2 GB

healthy
true

supported
true

board
rpi3-64

supervisor_api
ok

version_api
ok

installed_addons
Terminal & SSH (9.7.1), Studio Code Server (5.10.0), File editor (5.6.0), ESPHome (2023.7.1), TileBoard (1.3.8), Matter Server (4.9.0), Zigbee2MQTT (1.32.2-1), Mosquitto broker (6.2.1), AdGuard Home (4.8.13), Node-RED (14.4.3)

Dashboards

dashboards
2

resources
17

views
2

mode
storage

Recorder

oldest_recorder_run
August 3, 2023 at 6:29 PM

current_recorder_run
August 3, 2023 at 9:29 PM

estimated_db_size
36.96 MiB

database_engine
sqlite

database_version
3.41.2

Spotify

api_endpoint_reachable
ok

Checklist

[X] I have read the FAQ to see if there is a known solution to my problem.
[X] I have enabled debug logging for my installation.
[X] I have filled out the issue template to the best of my ability.
[X] This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
[X] This issue is not a duplicate issue of currently previous issues..

Describe the issue
After update HA to 2023.8 the integration stopped working, due to the following error:
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import File "<frozen importlib._bootstrap>", line 1176, in _find_and_load File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 690, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 940, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/config/custom_components/powercalc/__init__.py", line 78, in <module> from .sensors.group import ( File "/config/custom_components/powercalc/sensors/group.py", line 35, in <module> from homeassistant.helpers.event import ( ImportError: cannot import name 'Event' from 'homeassistant.helpers.event' (/usr/src/homeassistant/homeassistant/helpers/event.py)
I checked out the source for HA - really they have deleted Event from some core files.
The problem is that its impossible to delete this integration from HA and this error blocks any changes in yaml files.
Please, consider this error. And if I can help - just let me know.
Thanks in advance!
Reproduction steps

Update to latest HA with installed powercalc
Restart HA
Go to Developer Tools and click Check Configuration button
You'll see the next message:
Component error: powercalc - cannot import name 'Event' from 'homeassistant.helpers.event' (/usr/src/homeassistant/homeassistant/helpers/event.py)

Debug logs
2023-08-04 09:52:55.076 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request
resp = await request_handler(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 85, in security_filter_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 80, in ban_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 148, in handle
result = await handler(request, **request.match_info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 87, in delete
result = await hass.config_entries.async_remove(entry_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1082, in async_remove
await entry.async_remove(self.hass)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 579, in async_remove
component = integration.get_component()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 813, in get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/config/custom_components/powercalc/__init__.py", line 78, in <module>
from .sensors.group import (
File "/config/custom_components/powercalc/sensors/group.py", line 35, in <module>
from homeassistant.helpers.event import (
ImportError: cannot import name 'Event' from 'homeassistant.helpers.event' (/usr/src/homeassistant/homeassistant/helpers/event.py)

Diagnostics dump or YAML config
No response

Duplicate with #1781
This was already fixed a week ago when this came up while HA 2023.8 was beta tested.
You have to make sure you have at least Powercalc 1.8.3 version as that contains the fix. You probably have an older version of powercalc running.
When it blocks HA start now. just remove powercalc, delete config/custom_components/powercalc. After HA is succesfully started reinstall latest powercalc version.
Hope this helps.

Fix was here btw. https://github.com/bramstroker/homeassistant-powercalc/pull/1767

Git it @bramstroker
Thanks. Clossing the issue

Thats a relatively harsh fix 😢


file ingestor: panic with pcap ip fragmentation

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x98a782]
goroutine 28 [running]:
github.com/dmachard/go-dnscollector/collectors.(*FileIngestor).ProcessPcap(0xc0003400f0, {0xc0001a4a20, 0x2b})
/home/denis/Lab/github.com/go-dns-collector/collectors/file_ingestor.go:222 +0x6c2
created by github.com/dmachard/go-dnscollector/collectors.(*FileIngestor).Run
/home/denis/Lab/github.com/go-dns-collector/collectors/file_ingestor.go:371 +0xa1d
exit status 2

Implemented in release v0.30.0.


Use new Filesystem Watcher API

#980

It does not work for me. Atom 1.21.1

What platform are you trying on? If you're on linux, check out the issue currently affecting atom 1.21 on linux atom/atom#15642 . If not, do you get any exceptions/errors in your dev console that might point towards the issue?

Working sorry. I change native operation system APIs in Settings View.

No problem. Regardless, my warning on issue #980 stands. I don't think this should be merged/released until the atom issue on linux is fixed.

Because of this pr/issue a new major version number must be entered. While not good at Linux, I'am not releasing 2.x version. If the Hackoktoberfest is important for you, I can merge!

Hey, don't sweat merging if you shouldn't. Not sure I'm going to be able to meet my hacktoberfest goals anyways. Also I'm not sure merging the PR is actually necessary for Hacktoberfest, just creating one.


[Core] extend JSON parser with JSOn Schema processing

see http://json-schema.org/ for more details

done


fix: wrong popup in markdown preview (close #210)

Please check if the PR fulfills these requirements

[x] It's the right issue type on the title
[x] When resolving a specific issue, it's referenced in the PR's title (e.g. fix #xxx[,#xxx], where "xxx" is the issue number)
[x] The commit message follows our guidelines
[x] Tests for the changes have been added (for bug fixes/features)
[ ] Docs have been added/updated (for bug fixes/features)
[x] It does not introduce a breaking change or has a description of the breaking change

Description
#210
Enabling/Disabling button feature is added to resolve the issue.

Thank you for your contribution to TOAST UI product. 🎉 😘 ✨

리뷰 완료하였습니다. 수고하셨습니다.


Use lr scheduler instead of decay argument to be compatible with tf>=2.3

In the current colab notebooks when running the cell
h = Eik.train(x_train=num_pts, epochs=1500, verbose=0,
              callbacks=[TqdmCallback(verbose=0, miniters=10, mininterval=5)], # progress bar
              batch_size=int(num_pts/4),
              )

the following error shows up:
ValueError: decay is deprecated in the new Keras optimizer, please check the docstring for valid arguments, or use the legacy optimizer, e.g., tf.keras.optimizers.legacy.Adam.

This pull request adds a simple change that gets rid of this error but should keep the functionality the same. For the future it might be better to change the decay argument to an lr_scheduler argument for more flexibility, which would break some of the tutorials.
see: https://stackoverflow.com/questions/74734685/how-to-fix-this-value-error-valueerror-decay-is-deprecated-in-the-new-keras-o

It seems the change does lead to the results being considerably worse than in the original notebooks. So the proposed commit should not be taken as is but more as a comment that this part of the code is broken for tf >=2.3.

Hello Dominik,
Thank you for the PR and for raising this problem with incompatibility with tf >= 2.3.
I will review what you suggested in detail and will try to find the appropriate solution to not break the quality of NES solutions.
Serafim


CDAP-14474 Update GCP Speech transform

Update includes:

Rename the plugin from SpeechTranslator to SpeechToText as it is not a translator
Add description to configs
Fix the check done during the deploy time on the inputSchema to include the audio field and it to be bytes. This was not happening before.
The schema given by user is output schema and was being used as both input and output earlier
Updated to pick credential file from environment
Add Reference doc

Issue: https://issues.cask.co/browse/CDAP-14474

It will be good to emit FLL from this transform. I will add that in a separate PR after this one.

@albertshau Please have another look.


Assert style tests in Quickdraw

Convert all the Quickdraw tests to use assert style.

Looks like the TruffleRuby issue is unrelated. It’s a problem with Sus.


T

T

Why:
Closes [issue link]

What's being changed:

Check off the following:

[x] I have reviewed my changes in staging (look for "Automatically generated comment" and click Modified to view your latest changes).
[x] For content changes, I have completed the self-review checklist.

Writer impact (This section is for GitHub staff members only):

[x] This pull request impacts the contribution experience

[x] I have added the 'writer impact' label
[x] I have added a description and/or a video demo of the changes below (e.g. a "before and after video")

ในวันที่ ส. 26 ก.พ. 2022 20:25 น. TemSten @.***>
เขียนว่า:

T
Why:
Closes [issue link]
What's being changed: Check off the following:

I have reviewed my changes in staging (look for "Automatically
generated comment" and click Modified to view your latest changes).
For content changes, I have completed the self-review checklist
https://github.com/github/docs/blob/main/contributing/self-review.md#self-review
.

Writer impact (This section is for GitHub staff members only):

This pull request impacts the contribution experience

I have added the 'writer impact' label
I have added a description and/or a video demo of the changes
below (e.g. a "before and after video")

You can view, comment on, or merge this pull request online at:
https://github.com/github/docs/pull/15878
Commit Summary

3f812a3
https://github.com/github/docs/pull/15878/commits/3f812a375bdb0ecf3ee5dd6dd92af42a46aaaa00
T

File Changes
(1 file https://github.com/github/docs/pull/15878/files)

R content/get-started/learning-about-github/githubs-products.mdf
https://github.com/github/docs/pull/15878/files#diff-07d0dab3704fb20ac0ab3ac02da45ebf5ab64f8f02f6708a1525139931e2a4c5
(0)

Patch Links:

https://github.com/github/docs/pull/15878.patch
https://github.com/github/docs/pull/15878.diff

—
Reply to this email directly, view it on GitHub
https://github.com/github/docs/pull/15878, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AX3W6U4JPZBXH43BNBGHVJTU5DIFJANCNFSM5PM6CDDA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


Update ICU build to avoid symbol clashes with Apple SDK

Note: merging into skiko-m116 branch, because we use it as a release branch for now.
Corresponding skiko chage: https://github.com/JetBrains/skiko/pull/881

@igordmn This is more or less final state of this change. I'll test it for windows and linux as well. But the approach and nuances can be reviwed already.


Format document doesn't remove last semicolon

Input:
value = 1;
value = 2;
value = 3;

Format document. Result is:
value = 1
value = 2
value = 3;

Would have expected the last semicolon to be removed as well.

We need to add test for this

https://github.com/Microsoft/python-language-server/issues/10


Use separate executors for each cluster controller

The multi cluster controller should take in a func that creates executors that are cluster specific. This way, each cluster controller has it's own executor that logs to a specific place, etc.

Closed by #909


conflicts

The following statement "The installation of additional NICs to support the PSTN IP address configuration on stand-alone Mediation Servers is not supported." conflicts with statement "On standalone Mediation Servers the installation of additional network interface cards (NICs) to allow the configuration of a specific PSTN IP address is supported. " from below article:
https://docs.microsoft.com/en-us/skypeforbusiness/plan-your-deployment/requirements-for-your-environment/server-requirements

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

ID: 0a8b25c0-a81d-44e1-e0fb-b5f2ac6e1f66
Version Independent ID: 202330a0-4da0-c1c2-8241-c85ebc6d7b52
Content: Configure IP address types in Skype for Business
Content Source: Skype/SfbServer/plan-your-deployment/network-requirements/ip-address-types.md
Product: skype-for-business-itpro
GitHub Login: @jambirk
Microsoft Alias: jambirk

Looking into this revealed that the server requirements article was incorrect, I've passed this to the other article's owner.

@howardzhangmsft Thank you for this feedback
I want to make sure these article issue get the proper attention. I am sending this to the Teams/Skype team so they can investigate it and get these updated.
I was able to get this into the backlog for the SharePoint team. The team will get this prioritized into a sprint plan. Thank you for reporting and making the docs better. Much appreciated.
I made a note to request the team to update this when the work is complete.

@MicrosoftHeidi Any updates on this issue? Thanks!

@howardzhangmsft Thank you for your feedback. We have made changes to the service requirements documents via PR https://github.com/MicrosoftDocs/OfficeDocs-SkypeForBusiness/pull/2334

@howardzhangmsft - Dual NIC on Standalone Mediation Servers is supported since OCS 2007:
https://docs.microsoft.com/en-us/previous-versions/office/communications-server/ff518437(v=ocs.14)
Thank you for submitting feedback. We understand that this issue has been resolved.
Please feel free to re-open this issue if there is a specific area of the docs that we can improve or make better. Thank you.

@officedocsbot close


jdk13 linux arm32 100% CPU in "Service Thread"

Platform: Raspberry Pi 2 / 3
Architecture: arm32
All java processes consume 100% of a core in "Service Thread". To reproduce, launch any long-running java process (such as jshell), and in another terminal, run "top -H" to view CPU usage by thread.
This does not occur on jdk 11 or jdk 12. I suspect this likely occurs upstream as well, but hard to be sure.

I can reproduce the situation with https://ci.adoptopenjdk.net/view/ev3dev/job/eljbuild/job/stretch-13/5/ on Odroid-XU4 in Debian Stretch for armel.

The problematic thread is implemented here: https://github.com/openjdk/jdk13/blob/jdk-13-ga/src/hotspot/share/runtime/serviceThread.cpp
Latest change according to GitHub is this: https://github.com/openjdk/jdk13/commit/ae6dee44edc9dc43083705ef72b58caa0f1ee398. The change name looks suspicious, however I have no idea if it is actually related to the bug.

Flew this up the flagpole with hotspot-dev, which resulted in this issue being opened upstream:
https://bugs.openjdk.java.net/browse/JDK-8231612
No ETA on a fix as it appears to be a gcc bug, but compiling with "-fno-tree-pre" seems to be the workaround. Can we get this added to the arm32 builds?

According to that openjdk bug a fix will be done in the compiler and is targetted for gcc 10 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92462

The openjdk bug has now a changeset attached: https://hg.openjdk.java.net/jdk/jdk/rev/c97cf6fefbc1
It seems they work around the GCC problem that way.


MINOR: Fix strange if statements

I have discovered two strange if statements, so I have committed a fix.
I would like to suggest you check the 'handleDeleteTopicsUsingNames' method in the 'MockAdminClient' class. At the moment, on line 584, an item is deleted from the collection iterated over 'Iterator'. In the same line, a UUID object is deleted from the 'topicIds' collection when it handles the 'String' objects.
In the 'LogicalKeyValueSegment' class, the 'prefixKeyFormatter' object is executed through both synchronized and unsynchronized methods. The code seems suspicious.
In the 'Sensor' class, the 'metrics' collection is executed through both synchronized and unsynchronized methods. I would recommend paying attention to this code too.
The PVS Studio static analyzer has detected these suspicious code fragments. They were described in the following article: https://pvs-studio.com/en/blog/posts/java/1171/.
The fixes of potential NPEs from the article have already been committed: https://github.com/apache/kafka/pull/17541.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

Hello @vlade1k, Thanks for this PR, but it seen as same as https://github.com/apache/kafka/pull/17540 .

close as duplicate to #17540

@vlade1k thanks for your contribution. Please feel free to ping me on your next PR


Release new gem version

@parthnagori can you release 0.1.4, version change was merged in with #8

Done! Sorry about the delay.


Issue starting containers on emulated amd64 - Ubuntu 22.04

Describe the bug
After installing and testing docker
I am getting an error that looks to be indicating that containerd/runc startup is failing:
docker: Error response from daemon: failed to create task for container: failed to start shim: start failed: io.containerd.runc.v2: invalid argument: exit status 1: unknown.

I've tested across to different  series M* machines.
To Reproduce

Create a Ubuntu 22.04 Intel VM on an M2 Pro (mac mini)

orbctl create -a amd64 ubuntu:jammy ubuntu-docker-test

Connect to vm (ssh ubuntu-docker-test@orb)
Installed Docker

sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update
apt-cache policy docker-ce
sudo apt install docker-ce
sudo systemctl status docker
sudo usermod -aG docker ${USER}
At this point I log out of the instance and back in

Test Docker

docker run hello-world

Expected behavior
Expect to see docker container output:
Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
    (amd64)
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
 $ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:
 https://hub.docker.com/

For more examples and ideas, visit:
 https://docs.docker.com/get-started/

Diagnostic report (REQUIRED)
OrbStack info:
Version: 1.3.0
Commit: c7cc1bd78adc76441a91befa2a50c0119c9d4703 (v1.3.0)
System info:
macOS: 14.2.1 (23C71)
CPU: arm64, 10 cores
CPU model: Apple M2 Pro
Model: Mac14,12
Memory: 16 GiB
Full report: https://orbstack.dev/_admin/diag/orbstack-diagreport_2024-01-18T17-40-47.470475Z.zip

Screenshots and additional context (optional)
I have also tested against other distros and am getting the same issue.
However, I am focusing on Ubuntu 22.04 as it was a requirement for one of the builds for another thing I'm working on.

Merging into #1522


where is correct_pad  function?

Hi, thanks for the great resources.
I've been looking into the mobileViT examples which is https://keras.io/examples/vision/mobilevit/,
and facing the error that
AttributeError: module 'keras.applications.imagenet_utils' has no attribute 'correct_pad'

I googled for this, but couldn't find any information about this.
Can you explain where this function or version comes from? Or can you tell me with which values can I replace this?
Thanks,

Hi @mhyeonsoo ,
I have executed the tutorial and its working fine now. Could you please verify the gist and confirm whether we can mark this as closed now.
Thanks!

It seems that keras.applications is deprecated in the year of 2022.  And it is achived.
For both keras and tensorflow.keras, there is no correct_pad in the imagenet_utils script.

@mhyeonsoo , @mikechen66 ,
The correct import is from keras.src.applications import imagenet_utils from TF2.13v onwards. Raised a PR #1546 for this already.
Please check the above import and let us know if it resolved.


Allow users to see own permissions

Description of changes

If external apps wants to limit access to users without registered permissions, one would now have to do this based on group memberships. This change allows for accessing a users permissions and can thus be used for committee-specific applications without limiting to certain groups, but rather the actual permissions that group has.
Note: The endpoint is unable to generate a schema as there is no serializer attached to this view (since permissions are serialized by default). This would perhaps need to manually written as specified in the docs. I have added the response type in the text as a temporary fix to this.

I'm not certain how to handle superusers. I originally thought I could just return all permissions, but that doesn't seem to be entirely correct either.
>len(user.get_all_permissions())
516
>len(Permission.objects.all().distinct())
519


metadata key config in each object store needs to be updated if default config is updated

What happened?
@hdelongueville was getting an error saying that  icos_data_level was needed to standardise some non-ICOS data. icos_data_level was removed from the required metakeys for surface data in the default config, but those changes aren't propagated to the metakey config in existing object stores.
What did you expect to happen?
No response
Minimal Complete Verifiable Example
No response
Relevant log output
No response
Anything else we need to know?
No response
Environment

Is it possible to just fix this for the current store? Or do we want something which we can run to update this for an existing store?


Sensu does not resume activities after reconnecting to RabbitMQ transport

Expected Behavior
When encountering a transport connection error, sensu-client will attempt to reconnect. Once reconnected, sensu-client will resume publishing keepalive messages, consuming check execution requests, and publishing check results.
Current Behavior
When using Sensu 1.6.0 with the RabbitMQ transport, the client will reconnect but does not resume activities, e.g. publishing keepalives, consuming check requests, publishing check results.
Steps to Reproduce (for bugs)

Install 1.6.0-1 from unstable channel and (re)start the client
Use pkill -TRAP sensu-client or similar to toggle debug-level logging on
Observe normal client operation
Run rabbitmqctl stop_app on the RabbitMQ broker where the client is connected
Observe "tcp connection closed" and associated transport reconnect messages
Run rabbitmqctl start_app to restore the RabbitMQ broker
Observe client log indicates "transport connection open" and "transport connection ready" but client does not log any further activities, e.g. consuming and publishing to the transport.

Context
This seems to be a regression related to changes in #62 and/or #64. Restarting sensu-client restores normal operation. Regression likely applies to other Sensu daemons.
Your Environment

Sensu version used: 1.6.0-1
Active Sensu extensions (e.g. WizardVan 0.1.0): n/a
Operating System and version (e.g. Ubuntu 14.04): Ubuntu 16.04, Ubuntu 14.04
Transport and runtime versions (e.g. RabbitMQ 3.6.2 on Erlang 18.2): RabbitMQ 3.6.5, Erlang 19.0

Fixed by #66 and will be shipped in 1.6.1.


can not get VoiceSignature of ja-JP

`async function createProfile(profile) {
let form = new formData();
form.append('file', fs.createReadStream(profile));
let headers = form.getHeaders();
headers['Ocp-Apim-Subscription-Key'] = subscriptionKey;
headers['language'] = 'ja-jp';
let url = "https://signature.eastasia.cts.speech.microsoft.com/api/v1/Signature/GenerateVoiceSignatureFromFormData?enableTranscription=true&language=ja-JP";

try {
let response = await axios.post(url, form, { headers: headers,timeout:300000});

// get signature from response, serialize to json string
return JSON.stringify(response.data.Signature);
} catch(e) {
    console.log(e)
}

}`
when I use language=ja-JP, 500(500 Internal Server Error) was returned from the result of restful api
when I use language=en-us, I can get the VoiceSignature of voice
Does the api not support jananese?

@jian-sun Thank you for reporting this issue. There is a fix on the way, but to unblock you, setting "enableTranscription=False" should create a Japanese voice signature correctly.

@jian-sun This API is now patched, and japanese signatures with enableTranscription=true should work. Thanks again, closing this issue.


Intl 0.19 required by latest Flutter version.

Hello Corbado team,
When adding the passkeys 2.0.8 in pubspec.yaml, I see this error :

Because passkeys >=1.2.0 depends on corbado_frontend_api_client ^1.1.0 which depends on intl ^0.18.0, passkeys >=1.2.0 requires intl ^0.18.0.
And because every version of flutter_localizations from sdk depends on intl 0.19.0, passkeys >=1.2.0 is incompatible with flutter_localizations from sdk.
So, because third_generation depends on both flutter_localizations from sdk and passkeys ^2.0.8, version solving failed.

My flutter doctor looks like this:

❯ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.22.1, on macOS 14.5 23F79 darwin-arm64, locale en-BE)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.3)
[✓] VS Code (version 1.90.0)
[✓] Connected device (5 available)
[✓] Network resources

Would it be possible to update intl in corbado_frontent_api_client ?
Thank you !

Hey @cekrozl1, we published a new version for corbado_api_client (1.1.1). The issue should now be fixed (you just need to run flutter pub get again).

@ice-orion yes, we just published a new version of the passkeys package (v2.0.9) that includes this change. Sorry for the delay.
Would be great if you can confirm that this fixes the issue for you :)

v2.0.9 fixed the intl issue for me!

Cool, thanks for reporting this and for helping us to test the fix 👍
Will close the ticket for now :)


implement jnp.expand_dims and jnp.stack for PRNGKeyArrays

Also:

fix jnp.concatenate and jnp.append for PRNGKeyArrays
add ndim property to PRNGKeyArrays
minor fix to lax.expand_dims with duplicate dimensions

Adding expand_dims is a step towards implementing other jnp operations as well (at least vstack). See the PR description for #8381 for more. We can follow up with any of those.
This might make the custom PRNG upgrade (#9263) easier too: the more jnp operations, the better.
cc @zhangqiaorjc

we're going for option one (this has the advantage of preserving the information about singleton reshapes, at the cost of more overloads?)

Indeed. I'd like to try it out, at least.


fix: commit events not being found

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


MTL Lambda

Here we go again 😆
This takes the idea in https://github.com/typelevel/feral/pull/51#discussion_r754562315 about MTL-based middlewares for a spin.
The magic in this abstraction is provided by:
trait LambdaEnv[F[_], Event] {
  def event: F[Event]
  def context: F[Context[F]]
}

As long as you have a LambdaEnv, you can access the event and context from anywhere in the lambda. I think this is fantastic. It improves composability yet one more time: for example, now the http4s and CloudFormation lambdas no longer have to explicitly pass around Context[F] objects so that their routes/handlers have access to them. In general, you can build up your middleware stack however you want without worrying if the inputs of your middlewares line up: every middleware independently has full access to the LambdaEnv.

This looks interesting! I'll try to publish it locally and pull it into the two Lambdas I've been playing with (one regular one, and one custom CFN resource) and report back. (Hopefully tomorrow.)

Thanks! No rush, and grateful for your patience with all the churn while we figure this out 😁 having you try these designs out with your lambdas has been invaluable, much appreciated!
If it helps, I just published this branch as:
"com.armanbilge" %%% "feral-lambda" % "0.1-2f94f32" // and always friends!

Finally got around to trying this, so I'm going to add some comments on the code in no particular order.

FYI, the POC code using this branch is available here for a plain-ol' AWS Lambda and here for a custom CloudFormation resource.

Working with LambdaEnv[F, Input] => F[Option[Output]] can be a little awkward when you want to define an anonymous function but make the LambdaEnv[F, Input] available implicitly to the body of the function.

Do you have an example of this? I was thinking something like this, but maybe it doesn't work so well.
{ implicit env =>
  // use it implicitly
}

I started working around it by defining it as a Kleisli, which makes me wonder if it should actually be a Kleisli in the library after all.

Yes, that's the heart of the matter :) I assume you mean like we considered in https://github.com/typelevel/feral/pull/51#discussion_r752831830?
The Kleisli and MTL approach are not mutually exclusive. If you have a Kleisli with (Event, Context[F]) then you can derive a LambdaEnv[F, Event]. So that might be one option.
So overall, how do you like this approach to #51?

Do you have an example of this? I was thinking something like this, but maybe it doesn't work so well.
{ implicit env =>
 // use it implicitly
}

That works fine if the return type is LambdaEnv[F, Input] => F[Option[Output]] directly, but I found that it required an explicit type on env when used e.g. in a for-comprehension returning Resource[F, LambdaEnv[F, Input] => F[Option[Output]]] like this one:
  private def resources[F[_] : Async : Console]: Resource[F, LambdaEnv[F, CloudFormationCustomResourceRequest[DatabaseMetadata]] => F[Option[Unit]]] =
    Resource.eval(Slf4jLogger.create[F]).flatMap { implicit logger =>
      for {
        client <- httpClient[F]
        entryPoint <- Resource.eval(Random.scalaUtilRandom[F]).flatMap { implicit r => XRay.entryPoint[F]() }
        secretsManager <- SecretsManagerAlg.resource[F, Kleisli[F, Span[F], *]]
      } yield Kleisli { implicit env: LambdaEnv[F, CloudFormationCustomResourceRequest[DatabaseMetadata]] =>
        TracedLambda[F, CloudFormationCustomResourceRequest[DatabaseMetadata], Unit](entryPoint) { span =>
          val tracedClient = NatchezMiddleware.client(client.translate(Kleisli.liftK[F, Span[F]])(Kleisli.applyK(span)))
          CloudFormationCustomResource(tracedClient, PostgresqlDatabaseInitHandlerImpl(secretsManager)).run(span)
        }
      }.run
    }

Thanks for that example!
So after playing with your RabbitMQ lambda a bit in https://github.com/Dwolla/rabbitmq-topology-backup/pull/77 I think we can avoid issues like above by binding to IO just a bit earlier. So for example that snippet you posted above I think should just be the handler, and everything there should be in IO.
I think it is very reasonable/realistic/practical to acquire resources and patch together the lambda handler directly in IO. The important thing is that the handler logic and resources themselves are all written in F, just needs a big of  glue at the end  :)
What do you think?

I'm not sure what I was doing differently before, but I don't seem to have that problem doing
} yield { implicit env =>

with handlerF defined as
def handlerF[F[_] : Async]: Resource[F, LambdaEnv[F, RabbitMQConfig] => F[Option[INothing]]]

now, so that's good news.
(I still don't think I would want to move the resource acquisition stuff into IO, but that's just a personal preference—I don't think it's actually a dealbreaker.)

Unless anyone sees any blockers, I think we should run with this design, cut an alpha release, and let people start playing with it. As early in the project as we are, I think we have flexibility to change things quite a bit if we discover this approach doesn't work for some reason.

@armanbilge bring it on :)


WIP: Use choices from model admin field queryset

Ref: https://github.com/yourlabs/django-autocomplete-light/issues/300

@jpic
Have you closed this accidentally?

Oh, that's the one you asked me about ... my bad !
Replying on #360


Block useability

Make the blocks input boxes.

The save buttons save text from the textarea into the local storage.


Trailing blanks in envvars of boolean options cause otherwise valid values to be rejected

Actual Behavior
When defining a boolean option that also can be set via envvar, trailing blanks in the envvar value cause otherwise valid values to be rejected with this error message:
Error: Invalid value for '--something': true  is not a valid boolean

Because the value is shown in the error message unquoted, the trailing blank cannot easily be seen, but it is there.
Why is this an issue?
Invoking the command on Linux/macOS as follows does not trigger the issue:
$ SOMETHING=true command

However, invoking it like this on Windows does trigger the issue:
> set SOMETHING=true & command

Apparently, Windows sets the envvar with a trailing blank in this case.
The issue can be circumvented like this:
> set SOMETHING=true& command

Here is the code that causes this behavior:
click/types.py at line 406:
class BoolParamType(ParamType):
    name = "boolean"

    def convert(self, value, param, ctx):
        if isinstance(value, bool):
            return bool(value)
        value = value.lower()
        if value in ("true", "t", "1", "yes", "y"):
            return True
        elif value in ("false", "f", "0", "no", "n"):
            return False
        self.fail("{!r} is not a valid boolean".format(value), param, ctx)

    def __repr__(self):
        return "BOOL"

Expected Behavior
I would like to see click strip any leading or trailing blanks from the boolean envvar before it is evaluated.
Environment

Python version: any
Click version: 7.1.2

Addressed by PR #1606.

I'm not sure how I feel about this. It changes the behavior of env vars only for booleans, while other values (strings, numbers, etc.) will still have a trailing newline on Windows. I've never seen the set & command form on Windows before, is that common?
I think a more consistent solution here would be to quote the value. In general I'm trying to use f"{var!r}" in f-strings for argument names and values so they look distinct in error messages.

On the other hand, maybe all types that would never have leading or trailing space should strip the value before processing. Could still use better quoting in the error message too.

+1 for just making the unintended whitespace more obvious in the error message. Hopefully Windows users can quote the value when setting a variable to explicitly exclude any unintended whitespace. Likely that env var parsing libraries like environs don’t automatically strip whitespace when parsing bools (or ints, etc.) either.


cyrus_sasl: Fix CVE-2013-4122

Motivation for this change
#30959
Things done

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

[X] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[X] Tested execution of all binary files (usually in ./result/bin/)
[X] Fits CONTRIBUTING.md.

This doesn't look like a mass rebuild to me.

5d41dda02d

In master and 17.09 now.


Adjust timing of caption position shifts to match when player controls are hidden/shown

This change adjusts caption position change so that changes occur at same time controls are shown and hidden. Previously captions would move before the player controls were actually hidden. The player now fires custom events "controlsshown" and "controlshidden" when being shown/hidden. The tracks plugin registers event handlers for these events for changing the position of captions.

Sorry I'm just now getting to this. I think it's a good change, and I'd like to incorporate it. But to make it work, it needs to be resumitted just as changes to the /src/js/ folder, not the files in the /build/ folder.
Can you resubmit it that way?
Thanks!


REMOVECARDS.cpp

This is a solution to the REMOVECARDS problem of CODECHEF

please star the repo , thanks :)


flutter: Calculator::Open() for node "ClassifierClientCalculator" failed: #vk The input tensor should have dimensions 1 x height x width x 3. Got 1 x 3 x 416 x 416., null)

I'm trying to run custom model for label_detector use case, and I'm using the same example to load model and process image, but I got this error : The input tensor should have dimensions 1 x height x width x 3. Got 1 x 3 x 416 x 416., null)
Initialized TensorFlow Lite runtime.
INFO: Initialized TensorFlow Lite runtime.
Created TensorFlow Lite XNNPACK delegate for CPU.
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
flutter: ERROR: PlatformException(Error 3, com.google.visionkit.pipeline.error, Pipeline failed to fully start:
flutter: CalculatorGraph::Run() failed in Run:
flutter: Calculator::Open() for node "ClassifierClientCalculator" failed: #vk The input tensor should have dimensions 1 x height x width x 3. Got 1 x 3 x 416 x 416., null)
flutter:
flutter: STACK:#0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:652:7)
flutter: #1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:310:18)
flutter: <asynchronous suspension>
flutter: #2      ImageLabeler.processImage (package:google_mlkit_image_labeling/src/image_labeler.dart:20:20)

how I can preprocess image to make it compatible with the model ? should I do something on model ?

Check TensorFlow Lite model compatibility to learn how to make your model compatible with ML Kit.
I was playing with custom model as well and created this tutorial to document my finds: https://github.com/flutter-ml/mlkit-custom-model
I think you need to make sure the metadata in your input tensor meets the compatibility requirements from ML Kit.


Relationship Criteria Fields field with multiple fields breaks other processes

We use a 3rd party tool called Smart Sandbox to move records between Salesforce instances. This is useful for testing things in sandboxes using realistic data.
During a recent Smart Sandbox transfer, any DLRS summaries that contained multiple fields in the Relationship Criteria Fields errored out in Smart Sandbox with the message, "Field   Date_Out_For_Repair__c   Date_Returned_From_Repair__c does not exist on the child object."
It appears that Smart Sandbox assumes that the Relationship Criteria Fields field will contain one field name like a normal field, but in this case it actually contains two, separated by a line break, which Smart Sandbox reads as a concatenated mess ("Date_Out_For_Repair__c   Date_Returned_From_Repair__c").
This is not critical functionality for DLRS, but I wanted to let you know about the effect that this non-standard design (having a field that contains multiple field names separated by line breaks) has on other systems.

Yeah i have to agree with @DanDonin on this. It sounds like SmartBox is losing the line breaks and thus the DLRS trigger is firing this error thinking its a single field. Since large text areas in general support line breaks, this feel like an easy repo and bug report for SmartBox tbh.

@cgerth let us know if you need more help on this and we can re-open. Thanks!


Turn off based on entity_id, e.g., turn off when no motion around to prevent screen burn

@tioan, @MrSleeps, @maxgeilert, please see the new feature introduced in #18:
state_entity_id, see the example here https://github.com/basnijholt/home-assistant-streamdeck-yaml#configurationyaml.


fix for bug with selecting presets and toggle switches

When selecting a preset it will also turn off all the sliders in the tweaks tab. Testing a fix for this issue.

@DeveloperDurp this is great, FIY I'm working on ripping out global config, import/export functionality Chris said that he prefers "user friendly" UI to be able to automate things. Basically the issue is that these real time toggle controls don't work nicely with storing things in the config. For example, if you store White Theme in the config file, but you have Dark Theme loaded and the toggle is set the to Dark theme. When you load the config file do you then flip the toggle immediently to Dark? But if you do they user might not want that be changed in real time, they might want to preg config  for later but not necessarily change it in real time. So import/export config functionality doesn't work nicely with real time controls like these toggles. What I proposed in thie PR https://github.com/ChrisTitusTech/winutil/pull/1415#issuecomment-1901044106 is to change them to check boxes so you can still import/export them but if you want to "do an action" you have to press "Run Selected" button. This way it also makes the UI consistent between all of the functionality accross winutil. So basically I made all the toggles work like the rest of the tweaks, you can "Run Selected", Clear, "Get Installed" etc. check it out here
https://raw.githubusercontent.com/KonTy/winutil/test-2024-01-15/winutil.ps1
I think I'm going to fork the project, It is very important for me to be able to automate things. What I want to accomplish in the end is be able to save the config, with all the apps, tweaks, themes etc. Embedd it into Microwin, make an ISO and as a last step apply all the tweaks and install all the apps so when you come back everything will be done and installed.

@DeveloperDurp could you also ping me, I would like to talk to you about running UI on a different thread. I didn't bother much with all the work I added. And I didn't bother learning how you did this since you are the expert in this area and I didn't want to waste my time with that. But I think I need your advise and also would like to bounce a couple of ideas off of you. For instance, I think when things are being run in the background, I think it would be better to through some modal dialog box with a spinning wheel or something on the UI that way people would start another action. I've noticed when the tool is doing things and you start a new action, a lot of times it would crash etc.

@DeveloperDurp this is great, FYI I'm working on ripping out global config, import/export functionality Chris said that he prefers "user friendly" UI as oppose to having the ability to automate things. Basically the issue is that these real time toggle controls don't work nicely with storing things in the config. For example, if you store White Theme in the config file, but you have Dark Theme loaded and the toggle is set the to Dark theme. When you load the config file do you then flip the toggle immediently to Dark? But if you do they user might not want that be changed in real time, they might want to preg config for later but not necessarily change it in real time. So import/export config functionality doesn't work nicely with real time controls like these toggles. What I proposed in thie PR #1415 (comment) is to change them to check boxes so you can still import/export them but if you want to "do an action" you have to press "Run Selected" button. This way it also makes the UI consistent between all of the functionality accross winutil. So basically I made all the toggles work like the rest of the tweaks, you can "Run Selected", Clear, "Get Installed" etc. check it out here

@KonTy We had that originally some time ago but the problem was how do you communicate to the user when you want to do a "toggle" IE enable dark mode, if checked it will enable it but how do you communicate to disable it? a second check box? I hear where you are coming from and that's the reason I tried to make everything as modular the best I could. However as Chris has mentioned winutil is meant to be a user friendly ui. I have setup some frameworks for other tools to piggyback off the main tool however.

https://raw.githubusercontent.com/KonTy/winutil/test-2024-01-15/winutil.ps1
I think I'm going to fork the project, It is very important for me to be able to automate things. What I want to accomplish in the end is be able to save the config, with all the apps, tweaks, themes etc. Embedd it into Microwin, make an ISO and as a last step apply all the tweaks and install all the apps so when you kick off in ISO install and come back after it is done everything will be done and installed.

All of the tweaks live inside the config files so you wouldn't really need to use winutil to achieve this. This is where the modular structure comes in. There are several functions in the private section that handle the tweaks through the use of parameters, if memory serves me it should be the exact same parameters that get generated through the import/export process.

@DeveloperDurp could you also ping me, I would like to talk to you about running UI on a different thread. I didn't bother much with all the work I added. And I didn't bother learning how you did this since you are the expert in this area and I didn't want to waste my time with that. But I think I need your advise and also would like to bounce a couple of ideas off of you. For instance, I think when things are being run in the background, I think it would be better to through some modal dialog box with a spinning wheel or something on the UI that way people would start another action. I've noticed when the tool is doing things and you start a new action, a lot of times it would crash etc.

I am not sure which thread you would want to continue that discussion but yes, I did notice some places that the runspace structure would benefit the additions you have made. As for running the gui in its own runspace, it's possible but introduces other complexities. Right now because it is on the main thread it can do quick actions itself or spawn threads to handle longer running tasks. However if the gui was in a runspace you now have to interact with the main thread to spawn new tasks and adds additional complexity that I didn't see the benefit of having. If the task is using a runspace it shouldn't be crashing when a user attempts to do another action as everything I have setup prevents you from doing more than 1 action. If you find it crashing that might be something that needs to be ran in a runspace.
I also agree with you, we should have better feedback when things are running. Right now it's all in the console and I have had ideas as well to improve this but I have ended up stepping away for some time to work as other projects have taken priority.

Gotcha, I see what you mean. I will spend some time this weekend to see if I can think of a solution however I am in agreement with Chris on trying to keep this easier on the end user over automation so having text saying "uncheck for light mode check for dark mode" is a no go for me. Toggle switches have been a pain in the past but there are ways to work around it.
if anything it would be part of the import/export process and when you import the config it will also handle the toggles as well. You should be able to piggy back from there.
also going to set this back to drafts, I should mirror what I have here
https://github.com/ChrisTitusTech/winutil/blob/3b133e704e1d393161ca957f2ce40b111a2355fa/functions/private/Get-WinUtilCheckBoxes.ps1#L36-L38

@DeveloperDurp sounds good let me know what you come up with. I'm not going to make any more changes untl I hear from you. Please take a look at my global import/export changes, it is buggy because of toggles.
As far an automation goes I don't agree with prioritizing toggles vs automation. Chris himself said the reason why he started the script is because he wanted to automate tweaks at work, and going back on that vision it really strange. Creating an automation tool that ends up, in the end, needing a lot of clicks :-)
If you wanna see what I'm tlaking about look at my changes in main where you can pass -Config <file> -Run -- that would run automation that is loaded from the config. Anyway let me know what you decide.

@DeveloperDurp thinking about it some more, we could turn those into drop downs, like Windows. You can chose your tweaks from the drop-down and then click "Run Tweaks".

This way we can store it in the config and get around this real time toggling issue. We have to do this for hte DNS drop down list, I didn't do, but if we get DNS working we can have more drop-down lists

@DeveloperDurp thinking about it some more, we could turn those into drop downs, like Windows. You can chose your tweaks from the drop-down and then click "Run Tweaks".
This way we can store it in the config and get around this real time toggling issue. We have to do this for hte DNS drop down list, I didn't do, but if we get DNS working we can have more drop-down lists.

Could be an option, Through we can treat the toggles exactly as all the other checkboxes, if you pass the name of the checkbox assume enabled, if missing assume disabled. Then the export function can pull the names of enabled toggles and pass it to the json. Though I guess that could get a little weird because the default windows install will have some of those options enabled.
I think there might also be a miscommunication when we say end user > automation. I am all for automation and should strive for that, however the interface needs to be easy to understand because not everyone is a power user. IE the checkbox for dark mode situation would confuse a lot of people, however your drop down idea might be a possible solution to that issue. Tagging @ChrisTitusTech to get his opinion.

I'm still working on the user friendly toggles for the tweaks section. I need to rework the wording of the tweaks on the run and undo. Maybe switch them to Enable / Disable or something that is a bit more clear.

@ChrisTitusTech I will have a POC sometime today for this. I think Derp and I have an idea I just need to finish it. Let me send you a message sometime today.

@ChrisTitusTech @DeveloperDurp hey guys take a look at my experimental toggle design. So basically it is not real time, you have to toggle things and click "Run Tweaks", you can also click "Get installed" and that will load all the tweaks that are applied to the system. This is still not finished, if you untoggle things and "run tweaks" it will just get ignored. I didn't spend any time on that logic, just worked on the UI design, besically lifted it from Windows 11
irm https://raw.githubusercontent.com/KonTy/winutil/test-2024-01-15/winutil.ps1 | iex


Document error? Maybe use ParsePath instead of Parse when parse path request

Description:
In the GoZero documentation, when parsing both body and path parameters simultaneously, it suggests using httpx.Parse for both. However, when doing so, the request body will be consumed during the first parse, leading to an EOF error when trying to parse the path parameters with httpx.Parse again.
The issue can be resolved by using httpx.ParsePath for parsing the path parameters, as it does not consume the request body.
Request Parameters | go-zero Documentation
Try parsing the request body and path parameters using httpx.Parse:
```go
var req Request
err := httpx.Parse(r, &req) // Parsing the body
```

Try parsing the path parameters after parsing the body:
```go
var pathReq Request
err = httpx.Parse(r, &pathReq) // This results in EOF error because the body was already consumed
```

Solution:
Instead of using httpx.Parse for both body and path parameters, use httpx.ParsePath for the path parameters, as it does not consume the body content:
var req Request
err := httpx.Parse(r, &req)  // Parse the body

var pathReq Request
err = httpx.ParsePath(r, &pathReq)  // Use ParsePath for path parameters, avoiding EOF

Why do you parse req twice? Body is a io.Reader, can only read once.

Why do you parse req twice? Body is a io.Reader, can only read once.

I need to get both the reqBody and pathReq at the same time.

Why do you parse req twice? Body is a io.Reader, can only read once.

I need to get both the reqBody and pathReq at the same time.

You can use httpx.Parse(...) to achive this.


Input: Add new decimal input type

Prerequisites

[X] I have searched for duplicate or closed feature requests
[X] I have read the Modus style guidelines

Proposal
Add ability for inputs to display/format/validate decimal values. Implementation details TBD.
Need prop for format and one to toggle the step arrows.
Motivation and context
Need ability to present and format currency values.
What is the issue regarding ?
@trimble-oss/modus-web-components
Priority
Medium
What product/project are you using Modus Components for ?
Modus
What is your team/division name ?
Modus
Are you willing to contribute ?
None
Are you using Modus Web Components in production ?
No response

Also refer to #2280


Deploying on cloud sandbox is failing: Unauthorized

Since it's asking me to put this on github...
I'm trying to develop from VSCode against a cloud sandbox, and all of a sudden, all is unauthorized .. no clear reason.
Here are the details
[2018-06-05 17:17:22.75] Using reference symbols cache path: c:\Users\Waldo\Dropbox (Personal)\Presentations\iFacto\2018\2018-06-07 Klantenevent\Customization\Twitter\./.alpackages
[2018-06-05 17:17:22.75] Authenticating...
[2018-06-05 17:17:23.10] Sending request to https://api.businesscentral.dynamics.com/v1.0/sandbox/dev/packages?publisher=Microsoft&appName=Application&versionText=<IP_ADDRESS>
[2018-06-05 17:17:23.10] Sending request to https://api.businesscentral.dynamics.com/v1.0/sandbox/dev/packages?publisher=Microsoft&appName=System&versionText=<IP_ADDRESS>
[2018-06-05 17:17:23.26] The request for path /v1.0/sandbox/dev/packages?publisher=Microsoft&appName=System&versionText=<IP_ADDRESS> failed with code Unauthorized. Reason: Web service call failed because user could not be authenticated or authorized.
[2018-06-05 17:17:23.29] The request for path /v1.0/sandbox/dev/packages?publisher=Microsoft&appName=Application&versionText=<IP_ADDRESS> failed with code Unauthorized. Reason: Web service call failed because user could not be authenticated or authorized.
[Error - 17:17:23] Please report this issue to https://github.com/microsoft/al/issues including information on how to reproduce it, if possible.
Processing of message 'al/downloadSymbols' failed with error: 'Unsupported authentication method AAD
Parameter name: Authentication'
StackTrace:
   at Microsoft.Dynamics.Nav.Deployment.OnPremiseHttpClientFactory..ctor(EmitLogger logger, ConnectionOptions connectionOptions) in C:\Agent\_work\46\s\source\Prod\Microsoft.Dynamics.Nav.Deployment\OnPremiseHttpClientFactory.cs:line 29
   at Microsoft.Dynamics.Nav.EditorServices.Protocol.LanguageServer.Extensions.NavServerRequestHandler`1.<HandleAsync>d__5.MoveNext() in C:\Agent\_work\46\s\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\LanguageServer\Extensions\NavServerRequestHandler.cs:line 54
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Dynamics.Nav.EditorServices.Protocol.RequestRegistry.<Process>d__6.MoveNext() in C:\Agent\_work\46\s\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\Endpoints\RequestRegistry.cs:line 59

I have been clearing credentials and resetting sandboxes about 10 times ...

Could you please try to re-use symbol packages from another project (so that your extension builds locally) and then publish to the sandbox with F5? Would you get a permission error saying that you don't have access to TableData Nav App?
If this is the case, could you please check that you are either a SUPER user on the sandbox or you have Extension MGT permission set for an empty company?
This would explain the 401 Unauthorized error.
The exception for al/downloadSymbols that you get afterwards is an incorrect handling of 401 error in the AL extension. It has already been fixed in the latest codebase.

Well - can't say what the problem was, but all of a sudden, it started to work again.
strange...


ci: transformer benchmark measure transformer itself only

#5193  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @overlookmotel and the rest of your teammates on  Graphite


Simulation for hybrid systems

[x] better cut-off for invariants (either create more small steps in the ODE solver or use an event-based detection)
[x] nondeterministic transitions
[x] return useful struct (currently it is a vector of vectors of solutions)
[x] test

[x] initial set
[x] multiple initial locations
[x] small invariant-guard intersections
[x] guards that get activated-deactivated-activated

Future additions:

[ ] urgent transitions
[ ] interpolation between time steps (currently we need to enforce a small time step for reasonable results)

Example
using ReachabilityAnalysis
using HybridSystems, MathematicalSystems, LazySets, LinearAlgebra
using LazySets: HalfSpace  # resolve name-space conflicts with Polyhedra

function thermostat()
    c_a = 0.1

    # automaton structure
    automaton = LightAutomaton(2)

    # mode on
    A = hcat(c_a)
    inv = HalfSpace([1.0], 22.0)  # x ≤ 22
    # @vars x v
    # @set x ≤ 22
    m_on = ConstrainedLinearContinuousSystem(A, inv)

    # mode off
    A = hcat(-c_a)
    inv = HalfSpace([-1.0], -18.0)  # x ≥ 18
    m_off = ConstrainedLinearContinuousSystem(A, inv)

    # modes
    modes = [m_on, m_off]

    # transition from on to off
    add_transition!(automaton, 1, 2, 1)
    guard = HalfSpace([-1.0], -21.0)  # x ≥ 21
    t_on2off = ConstrainedIdentityMap(2, guard)

    # transition from off to on
    add_transition!(automaton, 2, 1, 2)
    guard = HalfSpace([1.0], 19.0)  # x ≤ 19
    t_off2on = ConstrainedIdentityMap(2, guard)

    # transition annotations
    resetmaps = [t_on2off, t_off2on]

    # switching
    switchings = [AutonomousSwitching()]

    ℋ = HybridSystem(automaton, modes, resetmaps, switchings)

    # initial condition in mode on
    X0 = Singleton([18.0])
    initial_condition = [(1, X0)]

    return InitialValueProblem(ℋ, initial_condition)
end;

S = thermostat();
T = 5.0;

# ---

sol = solve(S, T=T);

using Plots

plot(sol, vars=(0, 1))

# ---

import DifferentialEquations

# will have many intermediate steps
solsd = solve(S, T=T, ensemble=true, trajectories=10, use_discrete_callback=true);
# will handle invariants continuously but not have many intermediate steps
solsc = solve(S, T=T, ensemble=true, trajectories=10);
# will handle invariants continuously with additionally many intermediate steps
solscstep = solve(S, T=T, ensemble=true, trajectories=10, dtmax=0.1);

for piece in ensemble(solsd)
    plot!(piece, vars=(0, 1), c=:red, lw=2, alpha=1, lab="")
end
for piece in ensemble(solsc)
    plot!(piece, vars=(0, 1), c=:black, lw=2, alpha=1, lab="")
end
for piece in ensemble(solscstep)
    plot!(piece, vars=(0, 1), c=:blue, lw=2, alpha=1, lab="")
end
plot!()

The plot shows that the set-based results are incorrect: the last two jumps are missing!

Tests:
# transition from off to on
guard1 = HalfSpace([1.0], 19.0)  # original guard
guard2 = HalfSpace([1.0], 18.01)  # small invariant-guard intersection
# guard is a union (does not work with reachability analysis; I needed to manually deactivate it)
guard3 = UnionSet(Interval(18., 18.3), Interval(19., 19.3))

# initial condition
X0 = Singleton([18.0])
X1 = BallInf([18.0], 0.3)
X2 = BallInf([21.0], 0.3)
X3 = BallInf([21.0], 0.1)
initial_condition1 = [(1, X0)]  # original singleton condition
initial_condition2 = [(1, X1)]  # whole set of points
initial_condition3 = [(1, X1), (2, X2)]  # several initial locations
initial_condition4 = X3  # set intersecting with both location invariants

initial_condition1 and guard1
initial_condition2 and guard1
initial_condition3 and guard1
initial_condition4 and guard1
initial_condition1 and guard2
initial_condition1 and guard3

As can be seen, there are many transitions missing in the set-based analysis :scream:

The confusion is that the fixpoint check is true by default.

i think its good; the docs build is unrelated


Add discussion of a "opt-out" lint for "opt-in" traits

Per the concerns mentioned on PR #19 by @bill-myers and @cmr, one option to help library authors remember to implement Send and Share would be a lint that warns you about builtin traits that you could have implemented but did not. I envision this being part of a series of lints that enforce best practices for libraries (and I could even see having them warn by default in library mode, but perhaps not app mode). I intend to add discussion of this to the PR.

Not really relevant any more since Copy is the only opt-in built-in trait, and that’s already got a lint.

As @P1start commented almost 2 years ago, this is no longer how Send and Sync work. Closing.


SUBMARINE-722. [WEB] Add template page on workbench

What is this PR for?
Complete template page on workbench. This pr is a UI for users to register new pre-defined experiment template. Now user could register a pre-defined experiment template, then run experiments quickly with different hyper-parameters.
What type of PR is it?
[Feature]
Todos

[ ] - templateIT

What is the Jira issue?
https://issues.apache.org/jira/browse/SUBMARINE-722
How should this be tested?
https://github.com/kobe860219/submarine/runs/2325676029
Screenshots (if appropriate)

Questions:

Does the licenses files need update? No
Is there breaking changes for older versions? No
Does this needs documentation? No

@xunliu  Sorry ! This pr is a UI for users to register new pre-defined experiment template. Now user could register a pre-defined experiment template, then run experiments quickly with different hyper-parameters.

LGTM


[jvm-packages] API docs have been outdated after many changes in 0.7

reminder for myself

resolved by https://github.com/dmlc/xgboost/pull/1713


Allow to use RethinkDB as an alternative to MongoDB

RethinkDB has pub/sub system we can use in this context.
It will also allow users who have it in their stack to use oplog.

Weused mongo for the same reason: we already have mongo dbs in pour stack. It would be great to have this backend pluggable though. I will have a look.


How to show custom decoded request and response in mitmproxy UI

My app used custom encryption for https communication.
For now I use mitmdump -s decode.py to show the decoded data for request and response.
Is it possiable show decoded data in mitmproxy UI ?

The sample custom_contentview.py crashes.
$ mitmproxy -s test.py --insecure
Traceback (most recent call last):
  File "/usr/local/Cellar/mitmproxy/2.0.0/libexec/lib/python3.6/site-packages/mitmproxy/tools/console/master.py", line 281, in run
    self.loop.run()
  File "/usr/local/Cellar/mitmproxy/2.0.0/libexec/lib/python3.6/site-packages/urwid/main_loop.py", line 278, in run
    self._run()
  File "/usr/local/Cellar/mitmproxy/2.0.0/libexec/lib/python3.6/site-packages/urwid/main_loop.py", line 376, in _run
    self.event_loop.run()
  File "/usr/local/Cellar/mitmproxy/2.0.0/libexec/lib/python3.6/site-packages/urwid/main_loop.py", line 682, in run
    self._loop()
  File "/usr/local/Cellar/mitmproxy/2.0.0/libexec/lib/python3.6/site-packages/urwid/main_loop.py", line 719, in _loop
    self._watch_files[fd]()
  File "/usr/local/Cellar/mitmproxy/2.0.0/libexec/lib/python3.6/site-packages/urwid/raw_display.py", line 393, in <lambda>
    event_loop, callback, self.get_available_raw_input())
  File "/usr/local/Cellar/mitmproxy/2.0.0/libexec/lib/python3.6/site-packages/urwid/raw_display.py", line 493, in parse_input
    callback(processed, processed_codes)
  File "/usr/local/Cellar/mitmproxy/2.0.0/libexec/lib/python3.6/site-packages/urwid/main_loop.py", line 403, in _update
    self.process_input(keys)
  File "/usr/local/Cellar/mitmproxy/2.0.0/libexec/lib/python3.6/site-packages/urwid/main_loop.py", line 503, in process_input
    k = self._topmost_widget.keypress(self.screen_size, k)
  File "/usr/local/Cellar/mitmproxy/2.0.0/libexec/lib/python3.6/site-packages/mitmproxy/tools/console/window.py", line 84, in keypress
    k = super().keypress(size, k)
  File "/usr/local/Cellar/mitmproxy/2.0.0/libexec/lib/python3.6/site-packages/urwid/container.py", line 1128, in keypress
    return self.body.keypress( (maxcol, remaining), key )
  File "/usr/local/Cellar/mitmproxy/2.0.0/libexec/lib/python3.6/site-packages/mitmproxy/tools/console/flowview.py", line 616, in keypress
    callback = self.change_this_display_mode
  File "/usr/local/Cellar/mitmproxy/2.0.0/libexec/lib/python3.6/site-packages/blinker/base.py", line 267, in send
    for receiver in self.receivers_for(sender)]
  File "/usr/local/Cellar/mitmproxy/2.0.0/libexec/lib/python3.6/site-packages/blinker/base.py", line 267, in <listcomp>
    for receiver in self.receivers_for(sender)]
  File "/usr/local/Cellar/mitmproxy/2.0.0/libexec/lib/python3.6/site-packages/mitmproxy/tools/console/statusbar.py", line 88, in sig_prompt_onekey
    mkup.extend(common.highlight_key(e[0], e[1]))
  File "/usr/local/Cellar/mitmproxy/2.0.0/libexec/lib/python3.6/site-packages/mitmproxy/tools/console/common.py", line 50, in highlight_key
    if parts[1]:
IndexError: list index out of range

mitmproxy has crashed!
Please lodge a bug report at:
	https://github.com/mitmproxy/mitmproxy
Shutting down...

I found the reason is
class ViewSwapCase(contentviews.View):
    name = "Colopl Cipher"
    prompt = ("hello", "X")

If shortcut letter is not in prompt, it will crash.
Thanks.