LaunchImageLibrary returns 'camera_unavailable' using an iOS simulator

How to repeat issue and example
We implement this library as this in our app:
import {
    CameraOptions,
    ImagePickerResponse,
    launchCamera,
    launchImageLibrary,
} from "react-native-image-picker";
import { askCameraPermission, askPhotoPermission } from "./permissions";

const options: CameraOptions = {
    mediaType: "photo",
    maxHeight: 1600,
    maxWidth: 1600,
    includeBase64: true,
    quality: 0.8,
};

export async function openCamera(callback: (response: ImagePickerResponse) => void) {
    const hasPermission = await askCameraPermission();

    if (hasPermission) {
        launchCamera(options, callback);
    }
}

export async function openPhotoLibrary(callback: (response: ImagePickerResponse) => void) {
    const hasPermission = await askPhotoPermission();

    if (hasPermission) {
        launchImageLibrary(options, callback);
    }
}

Calling await openImageLibrary((response) => {}) returns a response object of { errorCode:'camera_unavailable }. Camera should not be required to browse images on simulator.
Solution
Image gallery should open when calling launchImageLibrary() on simulators
Additional Information

React Native version: 0.63
Platform: ios
Development Operating System: macos
Dev tools: iOS 14.1 Simulator

Thanks for the report, fixed in master vnext.

@Johan-dutoit we need to release a new version

Check out the latest version (3.0.0-vnext.1).  If this doesn't resolve your issue, please feel free to reopen.


fix(cache, model): Member#joined_at can sometimes be null

Discord's documentation shows that it should not be null, but it occasionally returns null.
I found another inactive pull request (#2276) so I made this one

Reference PR: https://github.com/discord/discord-api-docs/pull/6247


Compiling/launching within multi root workspace

When having a multi-root workspace, if one of the workspaces in it has a specific SDK assigned, the compile or debug tasks will always use the "parent" workspace's SDK, is this intended?

That's just how settings in VSCode work when you have a multi-root workspace. Settings in individual workspace folders are ignored. As you discovered, this means that a multi-root workspace can't use different SDKs for each folder.

I see josh, didn't know that. I guess I will have to think some other way of debugging with a specific sdk then, thanks


Move python code from gitlab to this repo

As the code is moved over to the .../src/lephare directory, make sure that the appropriate stylings are applied.
Note that this includes setup.py and any pybind files.
Also note that there are python files scattered in multiple locations:

.../lephare
.../tools
.../examples
Possibly other locations.

Need to find good locations for all of those .py files in .../src/lephare/

@johannct I just pushed a commit to PR #18 that implements the changes that @jeremykubica made and addresses the issue in the previous comment.


Look at schema salad codegen

Feature Request
Desired behaviour
This potentially removes the need to call out to cwltool in order to reformat cwl to json (and subsequently use cwlavro to read json-ified cwl). Take a look at https://github.com/common-workflow-language/schema_salad/pull/134

Note to self: might have something follow-up for bunny anyway


Why not taking this method to accerate training？ FLIP

https://arxiv.org/abs/2212.00794

Hello thanks for your interest! We follow the training scheme as DataComp did to have a fair comparison, so we haven't applied masking.

Hi, I still wonna ask a little question.
Have consider using next token prediction to train the ViT, not constractive learning. Do u find any work did this method?

Thanks, that is a really interesting question. Yet we haven't experimented in the manner of next token prediction.


Bug: Fix time shifts for python 3.3 and above.

Fixes https://github.com/jsocol/pystatsd/issues/95.

Thanks for this!


Milestone 1: Discussion

[X] Work Contract

Dataset: Gapminder
Section 1: Arijeet
Section 2: Anupriya
Section 3: Mel
Section 4: Reza

All activities for Milestone 1 completed.


States are disordered or missed while open/close operations

For cover(curtain):
I've noticed that tuya-local reports action complete state at start of movement, if initiated by tyua-local. And misses movement stage if movement was initiated from outside.
EXTERNAL OPENS:						TUYA_LOCAL REPORTS:
 ^ Open			23:16:50			^ 		(absent)	(actual opened)
 | Opening		23:16:44			 | 		(absent)
 | Open			23:16:44			 | Open		23:16:44
 | Closed		--------	     		 | Closed	--------	(initial state)

IF TUYA_LOCAL OPENS by COMMAND:				EXTERNAL REPORTS:
^			(absent)			Open		23:18:33 	(actual opened)
 | Open			23:18:26			Opening		23:18:26
 | Opening		23:18:26			Open		23:18:26
 | Closed		23:18:15			Closed		23:18:21	(initial state)

IF TUYA_LOCAL OPENS by SET POSITION:			EXTERNAL REPORTS:
 ^			(absent)			^ Open		23:43:54 	(actual opened)
  |			(absent)			| Opening	23:43:47
  | Open by cover.set_cover_position	23:43:47	| Open		23:43:47
  | Close				23:41:19	| Closed	23:41:25 	(initial state)

 IF EXTERNAL CLOSES:					 TUYA_LOCAL REPORTS:
 ^ Closed			23:31:36		 ^				(actual closed)
 | Closing			23:31:30		 |
 | Closed			23:31:30		 | Closed	23:31:30
 | Open							 | Open		23:27:06	(initial state)

 IF TUYA_LOCAL CLOSES by COMMAND:			EXTERNAL REPORTS:
 ^							^ Closed	23:21:52	(actual closed)
 | Closed			23:21:46		| Closing	23:21:46
 | Closing			23:21:46		| Closed	23:21:46
 | Open				23:20:41		| Open		23:20:47	(initial state)

-----------------------------------------
IF TUYA_LOCAL CLOSES BY SET POSITION:			EXTERNAL REPORTS:
^				(absent)		^ Closed	23:41:25	(actual closed)
 |				(absent)		| Closing	23:41:19
 | Closed by cover.set_cover_position	23:41:19	| Closed	23:41:19
 | Open					23:40:58	| Open	23:41:04		(initial state)

open_close_experiment_export.txt
open_close_experiment_debug_log.txt

If this is for the Loonas curtain that was added yesterday, the curtain does not actually provide "opening" or "closing" state, so it has to be generated from last command and current position, so can be wrong in some cases.  I am not sure about HA's logic for updating attributes, but it seems that maybe it is only bothering to update the current action when it thinks the curtain should be doing something because it sent a command.
Based on the above table, the Tuya Local reports seem to be more reasonable than the External reports, which always seem to report the target state before reporting any movement.

I'm closing this, as I don't see any bug here.  "closing" and "opening" states can only be accurate if the device provides them.  In the case of the open/close by set_position, the last command is "stop", so even if the current_position is moving between 0 and 100, we are unable to tell from a single snapshot whether it is opening or closing, and we do not keep history, nor do I wish to start keeping history just to workaround poorly implemented devices.  As long as open and closed are correctly reported, I don't see this as a major issue.

The "external" is a LocalTuya with little patch to invert percent position.
Both solutions (TUYA-LOCAL and LocalTuya) are inherited from cover component of HA.
Yes, you're right LocalTuya is having it's own problems and too optimistic to report Completed state at the begin of the movements, but it's correct it's state in next state update and informs final state just in time movement completed.
The TUYA_LOCAL component reports final state at the begin of  a movement but not in time movement completed.

The wrong information is coming from the device.  Getting rid of the noise from the log, I can see that immediately after sending a command, the device reports dp 2 and 3 as jumping straight to the target position (100 or 0).  Then when the operation completes, the command is changed to "stop" and dp 2 and 3 changed to the actual position of the curtain (which is often 1 or 99 rather than 0 or 100).  There is no intermediate positions coming back from the curtain.  Localtuya is obviously using different logic to determine opening/closing, but it too is having problems with the state that the curtain is reporting.

The "original" HA code, for example in mqtt 'cover' have another state logic, little differ from both components.
I think that the problem, that component sometimes confuses 'CLOSE' as command and 'CLOSE' as movement state.

I guess that localtuya is also taking the jump in position as a sign that the curtain has finished opening or closing, but it is then changing to opening or closing, probably based on the command changing from stop.
But I am not sure that other curtains have the same behaviour, some don't report position at all, and the current logic needs to handle those as well, which I think only report stop when the curtain was manually stopped in the middle.

I guess that localtuya is also taking the jump in position as a sign that the curtain has finished opening or closing, but it is then changing to opening or closing, probably based on the command changing from stop.

Yes, it is.
Now as a result in HA:
localtuya device correct report (and draws in intertface, as result) movement state: at the beginning of a movement state and icon is changed to 'Opening' (for example) and at the end - the state (and icon) is changed to the 'Open' or 'Opened' state.
Same behavior i'm try to get from TUYA_LOCAL.
The problem i try to resolve - is link (synchronize) two curtains (motor itself and curtain switch-controller). Make one follow another simultaneously. This link correct works in TUYA itself: On OPEN1 -> OPEN2: On CLOSE1 -> CLOSE2, On STOP1 -> STOP2. Now i try to migrate to HA and local usage of a devices.

Here video how it looks in HA interface:

https://user-images.githubusercontent.com/90279550/216578056-37876a31-e158-4df4-823c-99b60cc30e03.mp4

position state video:
https://user-images.githubusercontent.com/90279550/216580329-3f27eac8-09a9-48d1-8b07-c0d16f74f74c.mp4

It seems you have configured multiple integrations to connect to the same device.  It is known that tuya devices do not handle multiple local connections well, what happens if you disable/remove the localtuya connection?  It seems that localtuya is getting all the intermediate position reports, perhaps due to order the integrations were initialised, as based on the logs, we are only ever getting 0, 100, 1 and 99 reported (the latter two only after the "stop" is received).

Ok, not a problem to make these tests too. I created this configuration just to compare behavior.

Here it is (other than LOCAL_TUYA whole integrations are disabled)
https://user-images.githubusercontent.com/90279550/216582534-f2bc7bc1-e94c-483a-8928-ff2bc95bacc5.mp4

As you can see (it's after HA reboot), tuya_local doesn't inform CLOSING state and doesn't report state when movement ends.
https://user-images.githubusercontent.com/90279550/216586747-3b415fa6-f279-43b8-b90a-883620ce9ea8.mp4

If you want to change the names of the states, you need to submit an architectural change request to HA project, as that would affect a lot of integrations.

If you want to change the names of the states, you need to submit an architectural change request to HA project, as that would affect a lot of integrations.

Fully agree with you
Now i try to resolve that tuya_local informs final state earlier than movement was completed. and no report at the time its actually completed. As it was in first message:
IF TUYA_LOCAL OPENS by COMMAND:				EXTERNAL REPORTS:
^(absent)			Open		23:18:33 	(actual opened)
 | Open			23:18:26			Opening		23:18:26
 | Opening		23:18:26			Open		23:18:26
 | Closed		23:18:15			Closed		23:18:21	(initial state)


RX 6900XT - cannot change OC settings

Hello there!
When trying to edit OC settings, I only have power cap and Automatic/Lowest Clocks/Highest Clocks available to me.
I have the ppfeaturemask set as a boot parameter correctly, and have been using a manual overclock for some time now, wanted to try out your software but I'm running into this issue
Is it because lact-gui needs to be run as sudo? I have initiated lact-gui from root using su but the issue still persists.
Any help would be greatly appreciated, my specs are below :)
Thanks!
OS: Arch Linux x86_64
Kernel: 5.15.11-230-tkg-pds-llvm
Shell: fish 3.3.1
Resolution: 2560x1440
WM: sway
Theme: Adwaita [GTK2], dracula [GTK3]
Icons: Adwaita [GTK2], Tela-circle-purple-dark [GTK3]
Terminal: kitty
CPU: AMD Ryzen 9 3900X (24) @ 3.800GHz
GPU: AMD ATI Radeon RX 6800/6800 XT / 6900 XT
Memory: 2316MiB / 32084MiB
EDIT: just in case, here is the output for "/sys/class/drm/card*/device/uevent"
MAJOR=226
MINOR=0
DEVNAME=dri/card0
DEVTYPE=drm_minor
MAJOR=226
MINOR=0
DEVNAME=dri/card0
DEVTYPE=drm_minor
MAJOR=226
MINOR=0
DEVNAME=dri/card0
DEVTYPE=drm_minor
MAJOR=226
MINOR=0
DEVNAME=dri/card0
DEVTYPE=drm_minor
DRIVER=amdgpu
PCI_CLASS=30000
PCI_ID=1002:73BF
PCI_SUBSYS_ID=148C:2408
PCI_SLOT_NAME=0000:2f:00.0
MODALIAS=pci:v00001002d000073BFsv0000148Csd00002408bc03sc00i00
EDITEDIT:  lact-cli info shows GPU as blank, see below:
GPU Model:
GPU Vendor: Advanced Micro Devices, Inc. [AMD/ATI]
Driver in use: amdgpu
VBIOS Version: 113-D41201-XT
VRAM Size: 16368
Link Speed: 16.0 GT/s PCIe
However, lact-gui confirms it to be a Navi21 [Radeon RX 6800/6800 XT / 6900 XT] (it even confirms the brand of my GPU, Powercolor)
LAST EDIT I PROMISE: just to confirm journalctl shows no errors for lactd and lact-gui has no errors whatsoever when run from terminal

Could you post the output of cat /sys/class/drm/card*/device/pp_od_clk_voltage ?

As requested!
cat /sys/class/drm/card*/device/pp_od_clk_voltage
OD_SCLK:
0: 500Mhz
1: 2499Mhz
OD_MCLK:
0: 97Mhz
1: 1000MHz
OD_VDDGFX_OFFSET:
0mV
OD_RANGE:
SCLK:     500Mhz       3000Mhz
MCLK:     674Mhz       1075Mhz

It looks like big navi GPUs use a different format for the overclocking table compared to earlier generations, which is currently not supported. I will probably have to do a major rewrite in order to support the different formats in a generic manner.
For now you can try CoreCtrl and see if that works for you instead.

I won't use corectrl again, not that it's a bad bit of software but because it has to be running all the time, I much prefer your method of creating a daemon, very impressive stuff.
I will use the manual overlclock method for now but continue using your daemon for fan control, it works very well
Keep up the good work, and if you need any bits of info from my rig to help you with the rewrite, please let me know!
Thanks
Andrew

@MrWissenschaft sorry for the very long delay, but the rewrite is now out and supports the new format. While I don't have a GPU to test it on, there are software tests using the table you provided, so it should work.

strange I'm running a RX 6700XT and I still only have Highest, lowest and auto here the cat output for my card
OD_SCLK:
0: 500Mhz
1: 2725Mhz
OD_MCLK:
0: 97Mhz
1: 1000MHz
OD_VDDGFX_OFFSET:
0mV
OD_RANGE:
SCLK:     500Mhz       2800Mhz
MCLK:     674Mhz       1075Mhz

strange I'm running a RX 6700XT and I still only have Highest, lowest and auto here the cat output for my card
OD_SCLK:
0: 500Mhz
1: 2725Mhz
OD_MCLK:
0: 97Mhz
1: 1000MHz
OD_VDDGFX_OFFSET:
0mV
OD_RANGE:
SCLK:     500Mhz       2800Mhz
MCLK:     674Mhz       1075Mhz

Could you run
RUST_LOG=debug lact gui

And post the logs?

[paehyr@paehyr-ms7c02 ~]$ RUST_LOG=debug lact gui
2023-02-26T09:58:11.381254Z  INFO lact_client: connecting to service at "/var/run/lactd.sock"
2023-02-26T09:58:11.401051Z DEBUG lact_gui::app: GPU Selection changed
2023-02-26T09:58:11.434104Z DEBUG lact_gui::app: could not extract clocks info: Got error from daemon: Clocks table not available: parse error: parse error: Could not parse level number with value od_vddgfx_offset: invalid digit found in string at line 7 at line 1
2023-02-26T09:58:11.434132Z DEBUG lact_gui::app: Updated current GPU id

(lact:13318): Gtk-WARNING **: 03:58:17.205: GtkGizmo 0x5587613e2a00 (slider) reported min width -2, but sizes must be >= 0

(lact:13318): Gtk-WARNING **: 03:58:17.205: GtkGizmo 0x5587613e26c0 (slider) reported min height -2, but sizes must be >= 0

pp_od_clk_voltage.zip

This zip was extremely helpful, for some reason the clocks table file has null bytes around some lines, and they're not shown when posting as text. I've updated the parser to handle this.
Please try running the latest git version now (lact-git on Arch or package from this release for deb/rpm) and tell me if it fixes the problem.

I have an RX6800 and I'm facing the same issue. I've tried lact-git-r303.72cd453-1 on ARCH.
my pp_od_clk_voltage  shows next
OD_SCLK:
0: 500Mhz
1: 2314Mhz
OD_MCLK:
0: 97Mhz
1: 1000MHz
OD_VDDGFX_OFFSET:
0mV
OD_RANGE:
SCLK:     500Mhz       2600Mhz
MCLK:     674Mhz       1075Mhz

Also if I try to write changes to vram clock next error pops up

DEBUG lact_gui::app: applying thermal settings: ThermalsSettings { manual_fan_control: false, curve: Some({30: 0.0, 40: 0.2, 50: 0.35, 60: 0.5, 70: 0.75, 80: 1.0}) }
2023-02-26T11:44:30.226458Z  WARN lact_gui::app: Could not apply settings
Caused by:
0: Could not set the maximum memory clock
1: Got error from daemon: Could not apply settings: Could not write clocks table: io error: Invalid argument (os error 22)

https://pastebin.com/qLnFCbgR
new logs
gui is also incorrect: gpu clock has nothing, gpu voltage also has nothing, VRAM looks like it would work but it doesn't apply see error in logs

I've got access to an RX 6000 series GPU, and there are several problems with some weird behaviour from the driver's side which prevent tweaking from working. Hopefully I will be able to resolve them over the next few days.

amazing!

hmm it works for me have you restarted the daemon?

Thanks for the fix! Sadly it doesn't fully solve my problem.
Now LACT correctly reports all the gpu related (voltage an clock) stuff but still refuses to allow OC\undervolt with the next error

Caused by:
0: Could not set the maximum core clock
1: Got error from daemon: Could not apply settings: not allowed: GPU does not report allowed OD ranges

I'm on 6.2.0-arch1-1 and rx 6800 with next mesa libs

lib32-mesa 22.3.6-1
mesa 23.0.0-1
mesa-demos 8.5.0-2
mesa-utils 8.5.0-2
mesa-vdpau 22.3.6-1

If any additional info is required - feel free to ask.
One again - thank you!

That is weird, as local tests with the file you provided pass fine. Have you restarted the daemon after updating (sudo systemctl restart lactd)?
If so, please update again and post the output when running RUST_LOG=debug lact

@ilya-zlobintsev I've restarted the daemon - it didn't help immediately. I've re-enabled the daemon and then restarted my pc. Now everything works perfect.

Alright, I'm closing this as multiple people with RX 6000 series GPUs have confirmed it working.


the first paragraph of code in the quick start can not run in jupyter

System Info
Hi everyone,
I am a beginner of Python and I can not run the first part of the code

but those code is supposed to output feetful of fun

Is there anybody who knows why?
Who can help?
No response
Information

[X] The official example notebooks/scripts
[ ] My own modified scripts

Related Components

[X] LLMs/Chat Models
[ ] Embedding Models
[ ] Prompts / Prompt Templates / Prompt Selectors
[ ] Output Parsers
[ ] Document Loaders
[ ] Vector Stores / Retrievers
[ ] Memory
[ ] Agents / Agent Executors
[ ] Tools / Toolkits
[ ] Chains
[ ] Callbacks/Tracing
[ ] Async

Reproduction
set the environment variable with openai API key and then run the code in the picture
Expected behavior
it supposed to output something  OR  why is this problem? what should I add into the code?

HI, can you share the full notebook code and the full error? not clear from the error which type was actually observed by the llm. I would try to figure out if something went wrong with the copy&paste.
probably OT - but from the screenshot it appears that the cell which places the api key did not run.

Hi, thanks for your reply, but I can not upload any attachment here and the full error is too long to upload, my email address is<EMAIL_ADDRESS>  if you want the file, I can share, thank you again.


MCPL Packet Receipt is too slow

The callback for received multicast packets is too slow and leads to network congestion. A fix The correct approach is to stick received packets into a queue and to have another thread process them outside of the interrupt. Moreover, the current multiple filter routing tables could be combined to decrease the amount of loop overheads and m-Trie table minimisation could be used to reduce the number of entries. (Alternatively, a more TCAM-like structure could be used and OC could be used to minimise this new table.)
The TCAM-like structure can be of the form: [(key, mask) -> [(filter routing entry, ...)]

This was fixed in #143 and #145.


unable to provision AWS ec2

HI Ive tried to provision ec2 cluster today but Im getting a error that Ive not be able to track down . I use EC2 all the time so I know there templates but I still can not find the error in the generated template . Ive also just dumped the provision scripts output to file and I can upload and run on AWS but when calling the provision script I get this error.
✹  ec2 (develop *=) 👽  ./provision-ec2-cluster.sh baas
usage: aws [-h] [-v] {elb,as,ec2} ...
aws: error: invalid choice: 'cloudformation' (choose from 'elb', 'as', 'ec2')

if you run bash -x provision-ec2-cluster.sh baas, do you get any more verbose information?

@apps4u What version of the aws-cli are you using? Sounds like it's old.
Mine is:
$ aws --version
aws-cli/1.4.3 Python/2.7.6 Darwin/14.1.0

yes here is the output
http://laravel.io/bin/DeyGx http://laravel.io/bin/DeyGx
Jason Kristian | Director | Apps 4 U Pty Ltd.
ph: +61<PHONE_NUMBER>
mob: +61 0411 389 392
e: Jason Kristian<EMAIL_ADDRESS>
On 2 Mar 2015, at 3:43 pm, Matthew Fisher<EMAIL_ADDRESS>wrote:
if you run bash -x provision-ec2-cluster.sh baas, do you get any more verbose information?
—
Reply to this email directly or view it on GitHub https://github.com/deis/deis/issues/3166#issuecomment-76661452.

✹  laravel-five (develop *=) 👽   aws --version
0.2.5
Jason Kristian | Director | Apps 4 U Pty Ltd.
ph: +61<PHONE_NUMBER>
mob: +61 0411 389 392
e: Jason Kristian<EMAIL_ADDRESS>
On 2 Mar 2015, at 3:46 pm, Chris Armstrong<EMAIL_ADDRESS>wrote:
@apps4u https://github.com/apps4u What version of the aws-cli are you using? Sounds like it's old.
Mine is:
$ aws --version
aws-cli/1.4.3 Python/2.7.6 Darwin/14.1.0
—
Reply to this email directly or view it on GitHub https://github.com/deis/deis/issues/3166#issuecomment-76661643.

I run the gen-json.py > cloud.json  to get the out put from the provision script I then used AWS web console and was able to start and provision the CloudFormation cluster just by uploading the cloud.json file and setting the correct SSH key . and Ive just install platform and its running ok so I think it might be the AWS client tool that might have changed . IF thats any help.
Jason Kristian | Director | Apps 4 U Pty Ltd.
ph: +61<PHONE_NUMBER>
mob: +61 0411 389 392
e: Jason Kristian<EMAIL_ADDRESS>
On 2 Mar 2015, at 3:48 pm, Jason Kristian<EMAIL_ADDRESS>wrote:
✹  laravel-five (develop *=) 👽   aws --version
0.2.5
Jason Kristian | Director | Apps 4 U Pty Ltd.
ph: +61<PHONE_NUMBER>
mob: +61 0411 389 392
e: Jason Kristian<EMAIL_ADDRESS>
On 2 Mar 2015, at 3:46 pm, Chris Armstrong<EMAIL_ADDRESS><EMAIL_ADDRESS>wrote:
@apps4u https://github.com/apps4u What version of the aws-cli are you using? Sounds like it's old.
Mine is:
$ aws --version
aws-cli/1.4.3 Python/2.7.6 Darwin/14.1.0
—
Reply to this email directly or view it on GitHub https://github.com/deis/deis/issues/3166#issuecomment-76661643.

so I think it might be the AWS client tool that might have changed

Yes, I bet you find that things work just fine if you update your aws-cli.

My fault Ive just noticed that some installed pip AWS and it was overriding pip awscli which is at version awscli (1.7.5)
s I’ll uninstall pip uninstall aws should fix it .
Jason Kristian | Director | Apps 4 U Pty Ltd.
ph: +61<PHONE_NUMBER>
mob: +61 0411 389 392
e: Jason Kristian<EMAIL_ADDRESS>
On 2 Mar 2015, at 4:10 pm, Chris Armstrong<EMAIL_ADDRESS>wrote:
so I think it might be the AWS client tool that might have changed
Yes, I bet you find that things work just fine if you update your aws-cli.
—
Reply to this email directly or view it on GitHub https://github.com/deis/deis/issues/3166#issuecomment-76663163.

s I’ll uninstall pip uninstall aws should fix it .

Sounds good. Closing, as this isn't a Deis issue. Let us know if that doesn't resolve things.


utf8mb4 error

I'm trying to set the config.addDataSourceProperty("characterEncoding", "utf8mb4"); but its not working.
Any idea of how to use utf8mb4 on hikari???

@GitDov How is it "not working"?  Is an exception thrown?  If not, it is an issue with the MySQL configuration or database schema.

I received the following error:
com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Unsupported character encoding 'utf8mb4'.

You probably want to read this article
https://dev.mysql.com/doc/connector-j/5.1/en/connector-j-reference-charsets.html

@GitDov I had the same problem with Hikari in my Scala app.
I'm using Scala, JDK8, Mysql JConnector 5.1.40, HikariCP-java6 2.0.1.
the server is set to latin1 by default and ONLY the table I'm interested in is in utf8mb4.
I cannot change the server settings, so I have to configure my client instead.
when I request utf8mb4  in the jdbc URL I get:

21:01:57.862 [HikariCP connection filler] DEBUG com.zaxxer.hikari.pool.HikariPool - Connection attempt to database HikariPool-0 failed: Unsupported character encoding 'utf8mb4'.
java.sql.SQLException: Unsupported character encoding 'utf8mb4'.
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:964) ~[mysql-connector-java-5.1.40.jar:5.1.40]

I found a solution|workaround:
   hikariConfig.setConnectionInitSql("SET NAMES utf8mb4")

I had done some SQL adjusts to support utf8mb4. But that wasn't enough.
@alexeyOnGitHub 's solution just ended a 45min quest for answers here.
Thanks!

This will not work with certain versions of MySQL/driver combinations. If the connection sets the charset first before initSQL is fired, it will not do anything.
https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-reference-charsets.html
I ended up setting datasource property: characterEncoding=UTF-8 to get it to work.

I'm trying to set the config.addDataSourceProperty("characterEncoding", "utf8mb4"); but its not working.
Any idea of how to use utf8mb4 on hikari???
characterEncoding=UTF-8

https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-reference-charsets.html
As mentioned in the doc. use the Java name convention for utf8, which is UTF-8


Create requirements-test and remove test libs from requirements

The project only contains the requirements.txt file for all app and test requirements.
They should be separated into two different files, avoiding unnecessary installation of libraries (like responses).

I would like to do this

Welcome aboard @pniedzwiedzinski ! Do you need some help to understand?

Perhaps you want to use a Pipfile instead of requirements.txt. There you have the separation between development and general libraries.


Fixed one crash on MacOS + some small corrections

Changed the order of OS-specific sources in the CMakeLists.txt,
because on MacOS console both APPLE and UNIX are defined. Reordering
makes sure that the correct sources are built.
Added support for velocity on NoteOff to QMidiOut and QMidiEvent. This
is part of the standard as far as I know
Fixed a bug where QMidiOut::sendMsg() crashed on MacOS. MIDIPacketListAdd()
expects a pointer to msg so I added the missing &

Thanks!

Thanks!


Fix pip3 default

This fixes #37
Previously, after install compsys, pip would link to pip3 instead of pip2. This is due to the order pip is upgraded in the update script. Whoever is last will override the pip symlink.
This fix reorders the installation to prevent the issue, and verifies that such issue is no longer present. If it still is, it will correct it.
All previous users of compsys should rerun the update script manually and reinstall all python rosdeps as they were likely all installed with pip3 instead of pip2. In other words, just run the following:
cd ${ROBOTIC_PATH}/compsys
./update
roscd
rosdep install --reinstall -y --from-paths src

This will ask for your password.

FYI @mcgill-robotics/auv @mcgill-robotics/drone @mcgill-robotics/rover

We should keep installing pip from PyPi to keep it up-to-date unfortunately.


Build problems with lib tidy

I run this cmake command: cmake -B build -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release -DUSE_QT_GUI=OFF -GNinja
I get this error:
--   Found tidy, version 5.8.0
-- Found Git: /usr/local/bin/git (found version "2.46.0")
-- Configuring done (2.5s)
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
TIDY_LIBRARY (ADVANCED)
    linked by target "lgogdownloader" in directory /home/yourfate/workspace/lgogdownloader

-- Generating done (0.0s)
CMake Generate step failed.  Build files cannot be regenerated correctly.

I'm on commit 6556dc6a82b4e3d64ef1a7940736be3a7b2ac956 on master.
I'm on freeBSD 14.1, on x86_64. I have built lgogdownloader many times before, tho it has been several months now.

Update: I was able to fix it by adding this to the cmake call:
-DTIDY_LIBRARY=/usr/local/lib/libtidy5.so


[Bug] 'ConfigDict' object has no attribute 'workers_per_gpu'

Prerequisite

[X] I have searched Issues and Discussions but cannot get the expected help.
[X] I have read the FAQ documentation but cannot get the expected help.
[X] The bug has not been fixed in the latest version (master) or latest version (3.x).

Task
I'm using the official example scripts/configs for the officially supported tasks/models/datasets.
Branch
master branch https://github.com/open-mmlab/mmdetection
Environment
sys.platform: win32
Python: 3.9.15 (main, Nov 24 2022, 14:39:17) [MSC v.1916 64 bit (AMD64)]
CUDA available: False
MSVC: Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30136 for x64
GCC: n/a
PyTorch: 1.13.1+cpu
PyTorch compiling details: PyTorch built with:

C++ Version: 199711
MSVC 192829337
Intel(R) Math Kernel Library Version 2020.0.2 Product Build 20200624 for Intel(R) 64 architecture applications
Intel(R) MKL-DNN v2.6.0 (Git Hash 52b5f107dd9cf10910aaa19cb47f3abf9b349815)
OpenMP 2019
LAPACK is enabled (usually provided by MKL)
CPU capability usage: AVX2
Build settings: BLAS_INFO=mkl, BUILD_TYPE=Release, CXX_COMPILER=C:/actions-runner/_work/pytorch/pytorch/builder/windows/tmp_bin/sccache-cl.exe, CXX_FLAGS=/DWIN32 /D_WINDOWS /GR /EHsc /w /bigobj -DUSE_PTHREADPOOL -openmp:experimental -IC:/actions-runner/_work/pytorch/pytorch/builder/windows/mkl/include -DNDEBUG -DUSE_KINETO -DLIBKINETO_NOCUPTI -DUSE_FBGEMM -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -DEDGE_PROFILER_USE_KINETO, LAPACK_INFO=mkl, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, TORCH_VERSION=1.13.1, USE_CUDA=0, USE_CUDNN=OFF, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=OFF, USE_NNPACK=OFF, USE_OPENMP=ON, USE_ROCM=OFF,

TorchVision: 0.14.1+cpu
OpenCV: 4.7.0
MMCV: 1.7.1
MMCV Compiler: MSVC 192829924
MMCV CUDA Compiler: not available
MMDetection: 2.27.0+
Reproduces the problem - code sample
I didn't change the code at all.
Reproduces the problem - command or script
python tools\train.py yolov3_d53_mstrain-608_273e_coco.py
Reproduces the problem - error message
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm 2022.1.3\plugins\python\helpers\pydev\pydevd.py", line 1491, in _exec
pydev_imports.execfile(file, globals, locals)  # execute the script
File "C:\Program Files\JetBrains\PyCharm 2022.1.3\plugins\python\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "C:/Users/rpierau/Code/mmdetection/tools/train.py", line 247, in
main()
File "C:/Users/rpierau/Code/mmdetection/tools/train.py", line 236, in main
train_detector(
File "C:\Users\rpierau\Code\mmdetection\mmdet\apis\train.py", line 247, in train_detector
workers_per_gpu=cfg.data.workers_per_gpu,
File "C:\Users\rpierau\Code\mmdetection\openmmlab\lib\site-packages\mmcv\utils\config.py", line 50, in getattr
raise ex
AttributeError: 'ConfigDict' object has no attribute 'workers_per_gpu'
Additional information
I just tried to run a Yolo model with the config file provided by you. I didn't change anything.

Seems like a bug, we will fix it ASAP.


#148: profilepage.gif, update with new color rich GIF

Inclusion of the new pie chart into the GIF being displayed on the frontpage.

@rahul-kumi : I don't know if this was intentional - but please don't blur the accuracy.

Thanks @rahul-kumi :+1:

I will correct it in my next PR.

don't close the issue!!

O oh! I will have to revert this -

Blurring the accepted accuracy
Calendar not showing completely (not your fault but...)
Use this one and send a new PR.

@raj454raj, was the resolution a problem?

Umm, yeah the screen size. Works fine with 15 inch screens. Waiting for the next PR.


Update requirements & installation & management

Updated requirements with new ingress controllers supported & configuration;
updated installation with nginx-ingress tls;
updated management with runtime activity log

[CI] Staging environment is at http://cap-staging-docs.codefresh.io.s3-website.us-east-1.amazonaws.com/cap-ingress-enhancements/docs/

[CI] Staging environment is at http://cap-staging-docs.codefresh.io.s3-website.us-east-1.amazonaws.com/cap-ingress-enhancements/docs/

[CI] Staging environment is at http://cap-staging-docs.codefresh.io.s3-website.us-east-1.amazonaws.com/cap-ingress-enhancements/docs/

[CI] Staging environment is at http://cap-staging-docs.codefresh.io.s3-website.us-east-1.amazonaws.com/cap-ingress-enhancements/docs/

[CI] Staging environment is at http://cap-staging-docs.codefresh.io.s3-website.us-east-1.amazonaws.com/cap-ingress-enhancements/docs/

[CI] Staging environment is at http://cap-staging-docs.codefresh.io.s3-website.us-east-1.amazonaws.com/cap-ingress-enhancements/docs/

[CI] Staging environment is at http://cap-staging-docs.codefresh.io.s3-website.us-east-1.amazonaws.com/cap-ingress-enhancements/docs/


Express like Router Object

Hi, first of all, thank you very much for this project and for being so kind when replying to the issues here.
With express js, I use router objects outside the main server.js file; from this file I require all the router objects and apply them by using app.use('/prefix', routerObj).
My main concern is code organization but I don't know if using router objects is the best way to do it with express.
Anyways, it seems restana does not implement a Router Object like express (does it?).
So, given all this, do you have any suggestions for code organization using restana?
Thank you!

Hi @campie, first of all, thanks for your kind words in regards to the project.
You are right, restana does not support the nested routers abstraction at the moment. The main reason for not implementing this was to reduce the risk of performance impact.
There are some utility functions we can place on top of restana to simulate a router component. I want to ask, on your case is this only about routes prefixes or also middlewares execution? In case you are able to follow up with an example server code I can bring in some suggestions for better code organisation.
Thanks and looking forward to your feedback.

Hi, @jkyberneees
Thanks for replying this fast!
I came up with a solution to organize my request handler functions so the folder structure maps to the requests' url. I'm building a RPC-like api.
Folder structure example:
db
    index.js
lib
    loadRoutes.js
routes
    api
        getAllUsers.js
        getProfile.js
        ...
    auth
        login.js
        ...
server.js

server.js
const restana = require('restana')
const loadRoutes = require('./lib/loadRoutes')
const db = require('./db')

const run = async () => {

    await db()

    const app = restana()

    loadRoutes(app)

    console.log(app.routes())

    app.start(3000)
}

run()

lib/loadRoutes.js
const fs = require('fs')

module.exports = function (app, prefix = '') {
    resolveRoutes(prefix).forEach(route => {
        const fn = require(route.modulePath)
        fn(app, route.path)
    })
}

function resolveRoutes(prefix = '', subFolder = '') {
    const files = fs.readdirSync(__dirname + '/../routes' + subFolder)

    return files.reduce((acc, file) => {

        const [fileName, extension] = file.split('.')

        if (extension === 'js') {

            const modulePath = __dirname + '/../routes' + subFolder + '/' + fileName

            const path = fileName !== 'index'
                ? prefix + subFolder + '/' + fileName
                : prefix + subFolder
                    ? prefix + subFolder
                    : '/'

            acc.push({
                modulePath,
                path
            })
        } else {
            const nestedSubFolder = subFolder + '/' + fileName
            acc.push(...resolveRoutes(prefix, nestedSubFolder))
        }

        return acc

    }, [])
}

routes/api/getAllUsers.js
const db = require('../../db')

module.exports = function (app, path) {
    app.get(path, (req, res) => {
        res.send(db().users.getAll())
    })
}

Side note: with express, I can do app.set('db', dbInstance) and then access req.app.get('db') inside a req handler function. In the example above, in every req handler function file where I need the dbInstance, I have to require it. What do you think about this?
When I run server.js, I get the following routes:
[GET]/api/getAllUsers
[GET]/api/getProfile
[POST]/auth/login
...
It works very well!
The problem now is applying middlewares to specific paths. It seems app.use('/api', middleware) can't be used. So I can't do the following in server.js:
//...
const run = async () => {

    await db()

    const app = restana()

    // these two lines break the app
    app.use('/api', authMiddleware)
    app.use('/auth', rateLimitMiddleware)

    loadRoutes(app)

    console.log(app.routes())

    app.start(3000)
}

run()

One solution could be adding Route level middlewares. I may change the loadRoutes() function so that whenever a middlewares.js file is found in a subfolder inside routes folder, the middlewares are injected in all request hadler functions in the current folder and nested folders.
The request handler functions would become something like this:
module.exports = function (app, path, middlewares) {
    app.get(path, ...middlewares, (req, res) => {
        res.send(db().users.getAll())
    })
}

I would love to know what you think about all this. Maybe you have something better to suggest.
Thank you very much!

Hi @campie, I really appreciate your effort on getting upon some of the missing features in restana.
For global middlewares at prefix level I would recommend the following module: https://www.npmjs.com/package/middleware-if-unless
I am planning a big refactoring for version 4 of restana, more express compatibility with still 2-3x performance gain. Please keep tuned.
Best Regards,
Rolando

Hi @jkyberneees,
I'm closing this issue because everything is working!
Thank you for suggesting the middleware-if-unless module. It's definitely useful for my use case.
Instead of using middleware-if-unless though, I have refactored my loadRoutes function so that every request handler function receives four arguments: app, path, middlewares (array) and context (an object into which I can inject a DB reference, for example).
routes/api/getAllUsers.js
module.exports = function (app, path, middlewares, context) {
    app.get(path, ...middlewares, (req, res) => {
        res.send(context.db.users.getAll())
    })
}

server.js
const restana = require('restana')
const loadRoutes = require('./lib/app/loadRoutes')
const connectDb = require('./db')
const cookieParser = require('cookie-parser')
const bodyParser = require('body-parser')
const authMid = require('./middlewares/auth')
const limitById = require('./middlewares/limitById')

const run = async () => {

    const db = await connectDb()

    const context = {
        db
    }

    loadRoutes({
        app,
        folder: '/api',
        middlewares: [
            cookieParser(),
            authMid,
            limitById,
            bodyParser.json()
        ],
        context
    })

    loadRoutes({
        app,
        folder: '/auth',
        middlewares: [
            bodyParser.json()
        ],
        context
    })

    console.log(app.routes())

    app.start(process.env.APP_PORT)
}

run().catch(console.log)

I'm looking forward to playing with restana version 4.
Thank you very much for all you've been doing!

You rock!


Error 401 instead of 400

When I did not send the access token the system returns me the error 400 bad request.
Is there a way to change for me to receive the error 401 Unauthorized?

@michalsanger In your \App\Exceptions\Handler, you can catch the InvalidRequestException exception and return the response like you want. I do this in my projects.
if ($e instanceof \League\OAuth2\Server\Exception\InvalidRequestException) {
    return response(); //Return wathever you want
}

tnks @maximebeaudoin

@maximebeaudoin thanks for helping out!


[5.1] Rename avg to average for eloquence

Renames the newly added Collection::avg to average for fluency.

This introduces inconsistency between collection and query builder avg.

@taylorotwell what's your opinion on renaming the Builder avg to average? Obviously BC so for 5.2, but what's your opinion on it?

I think it make sense to stay as avg(). If anything an extra "average"
function could be added but I would never remove "avg".
On Fri, Sep 25, 2015 at 2:26 PM, Leo Sjöberg<EMAIL_ADDRESS>wrote:

@taylorotwell https://github.com/taylorotwell what's your opinion on
renaming the Builder avg to average? Obviously BC so for 5.2, but what's
your opinion on it?
—
Reply to this email directly or view it on GitHub
https://github.com/laravel/framework/pull/10386#issuecomment-143331250.


chore(main): release 5.4.0

:robot: I have created a release beep boop
5.4.0 (2024-08-11)
Features

open currently visible splits as yazi tabs (opt-in) (#359) (c57a4ea)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

v5.4.0
:sunflower:


rtve.es:alacarta (alias rtve.es:play) doesn't work

Checklist

[x] I'm reporting a broken site support
[x] I've verified that I'm running youtube-dl version 2021.12.17
[x] I've checked that all provided URLs are alive and playable in a browser
[x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[x] I've searched the bugtracker for similar issues including closed ones

Verbose log

$ youtube-dl -v https://www.rtve.es/alacarta/videos/somos-documentales/avion-novias/6704549/
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.rtve.es/alacarta/videos/somos-documentales/avion-novias/6704549/']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Python version 3.6.9 (CPython) - Linux-5.4.0-126-generic-x86_64-with-LinuxMint-19.3-tricia
[debug] exe versions: ffmpeg 4.1.3-0ppa1, ffprobe 4.1.3-0ppa1
[debug] Proxy map: {}
[rtve.es:alacarta] Fetching manager info
[rtve.es:alacarta] 6704549: Downloading JSON metadata
[rtve.es:alacarta] 6704549: Downloading url information
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.6/dist-packages/youtube_dl/__init__.py", line 475, in main
    _real_main(argv)
  File "/usr/local/lib/python3.6/dist-packages/youtube_dl/__init__.py", line 465, in _real_main
    retcode = ydl.download(all_urls)
  File "/usr/local/lib/python3.6/dist-packages/youtube_dl/YoutubeDL.py", line 2069, in download
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))
  File "/usr/local/lib/python3.6/dist-packages/youtube_dl/YoutubeDL.py", line 808, in extract_info
    return self.__extract_info(url, ie, download, extra_info, process)
  File "/usr/local/lib/python3.6/dist-packages/youtube_dl/YoutubeDL.py", line 815, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/youtube_dl/YoutubeDL.py", line 836, in __extract_info
    ie_result = ie.extract(url)
  File "/usr/local/lib/python3.6/dist-packages/youtube_dl/extractor/common.py", line 534, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/lib/python3.6/dist-packages/youtube_dl/extractor/rtve.py", line 153, in _real_extract
    formats = self._extract_png_formats(video_id)
  File "/usr/local/lib/python3.6/dist-packages/youtube_dl/extractor/rtve.py", line 127, in _extract_png_formats
    for quality, video_url in self._decrypt_url(png):
  File "/usr/local/lib/python3.6/dist-packages/youtube_dl/extractor/rtve.py", line 90, in _decrypt_url
    quality, url_data = text.split(b'%%')
ValueError: not enough values to unpack (expected 2, got 1)

Description

The real url is https://www.rtve.es/play/videos/somos-documentales/avion-novias/6704549/ but as it's said in others issues it needed change play by alacarta.

Actually, that's not quite enough. ValueError: not enough values to unpack (expected 2, got 1) persists even if the RTVE extractor from the git master is tweaked to handle /play/ URLs.
The issue is fixed by the new PR #31241, which supersedes PR #29816. From the UK I get some 403s that may not occur in RTVE's region, or under some other circumstance.
$ python -m youtube_dl -v -F 'https://www.rtve.es/play/videos/somos-documentales/avion-novias/6704549/'
[debug] System config: [u'--prefer-ffmpeg']
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'-F', u'https://www.rtve.es/play/videos/somos-documentales/avion-novias/6704549/']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Git HEAD: f838f3805
[debug] Python version 2.7.17 (CPython) - Linux-4.4.0-210-generic-i686-with-Ubuntu-16.04-xenial
[debug] exe versions: avconv 4.3, avprobe 4.3, ffmpeg 4.3, ffprobe 4.3
[debug] Proxy map: {}
[rtve.es:play] Fetching manager info
[rtve.es:play] 6704549: Downloading JSON metadata
[rtve.es:play] 6704549: Downloading url information
[rtve.es:play] 6704549: Downloading m3u8 information
WARNING: Failed to download m3u8 information: <urlopen error [Errno -3] Temporary failure in name resolution>
[rtve.es:play] 6704549: Downloading MPD manifest
WARNING: Failed to download MPD manifest: HTTP Error 403: Unauthorized
[info] Available formats for 6704549:
format code  extension  resolution note
0            mp4        unknown
$

ok, I did:
git clone -b rtve-fixes https://github.com/mildsunrise/youtube-dl youtube-dl-rtve-fixes
python3 youtube-dl-rtve-fixes/youtube_dl/__main__.py https://www.rtve.es/play/videos/somos-documentales/avion-novias/6704549/

and work it.
Why master haven't integrate this fix yet?
Thanks.

Neither the PR author nor I have progressed it.

seems gets 720p and not 1080p?

ok, I did:
git clone -b rtve-fixes https://github.com/mildsunrise/youtube-dl youtube-dl-rtve-fixes

python3 youtube-dl-rtve-fixes/youtube_dl/__main__.py https://www.rtve.es/play/videos/somos-documentales/avion-novias/6704549/

and work it.
Why master haven't integrate this fix yet?
Thanks.

seems gets 720p and not 1080p?

This works, but I can't figure out how to download the original version audio. For instance, for this video:
https://www.rtve.es/play/videos/el-comisario-montalbano/voz-violin/6636027/

-F lists some video formats and an audio format, none of them have the original version audio, but that's selectable on the web player of the URL above.


Future Scope

Hi,
Seems like a really cool project, and I'd love to be able to use it for my Hero 9 (the windows version of the gopro webcam app hasnt worked for me despite trying everything I can think of), which leads me to two questions:

Do you have any intentions of expanding the compatible devices to include the 9?
If not, do you have any ideas how I could achieve this myself?
-  for example, I'm not quite sure how to go about accessing the stream using an ip, or why this is required if its plugged
into my laptop.

Forgive my ignorance; it's not often that I'd buy a camera to use for a specific, marketed function and then find that I need to build the software myself 😅
Thanks in advance for taking the time to reply,
Rob

Finally got it sorted using another users package, thanks anyway!


Add icons to the Navlinks in the Navbar

Hello,
Can I contribute by adding attractive icons to the NavLinks present on the navbar section.

Please assign me this issue under ggsoc'24.
Thank you

Hey, hope you're doing great! As an GSSoC contributor, I'm keen on ramping up my involvement for GSSoC'24. Could you assign this issue to me? I'm excited to continue contributing to the project. Thanks a bunch!!


Does gsip actually sort the line?

https://github.com/ralismark/opsort.vim/blob/ff2beee58e61db6ce7a0936ac230c037ec3f14d4/README.md?plain=1#L17 As far as I rememeber the ip text-object in vim stands for paragraph, not line

Thanks for noticing!


option/questionmark equivalence

I think this should probably be rejected by the parser:

parse("A * option[?int32]", symtable)
dshape("A * ??int32")

This one is rejected:

parse("A * ??int32", symtable)
Traceback (most recent call last):
[...]
datashape.error.DataShapeSyntaxError: Expected a dim or a dtype

I'm not sure if option/questionmark should be exactly equivalent.

I think the real bug here is that ??A is rejected. imho this should be allowed.

Theoretically it should be allowed -- for example the ML type system allows it, too:
Poly/ML 5.2 Release

SOME (SOME 10);
val it = SOME (SOME 10) : int option option

But  it probably doesn't occur in practice.  dynd-python explicitly disallows it:
Python 3.5.1 |Continuum Analytics, Inc.| (default, Dec  7 2015, 11:16:01)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.

from dynd import nd, ndt
a = nd.empty("A * option[?int32]")
Traceback (most recent call last):
File "", line 1, in
File "dynd/nd/array.pyx", line 800, in dynd.nd.array.empty (/home/travis/build/libdynd/dynd-python/build/temp.linux-x86_64-3.5/array.cxx:7592)
File "dynd/ndt/type.pyx", line 122, in dynd.ndt.type.type.cinit (/home/travis/build/libdynd/dynd-python/build/temp.linux-x86_64-3.5/type.cxx:1565)
TypeError: Cannot construct an option type out of ?int32, it is already an option type


DOC-5195 remove crdb_internal entries

Addresses: DOC-5195

Removes most crdb_internal.* release note entires for v22.1.0-alpha.1 and later. Please see ticket for more information.

releases/v22.1.md

This change is


how to remove min-width of components select ?

how to remove min-width of components select ?

@sajadevo
Could you tell me how to use the theme provider by editing the select styles?
I want to EXAMPLE CODE.
Thank you

Hey @hoangduongdat,
You can do that using the theme provider by editing the select styles, but on the next update there will be a simpler way to do that.
Cheers, Sajad

Update please

U can custom this with theme-object-structure and select-theme-customization


Type alias 'BaseMacro' circularly references itself.

In Elysia 0.8.8, the following type error occurs using check-dts.
✖ ../../node_modules/.pnpm/elysia@0.8.8_@sinclair+typebox@0.32.6_typescript@5.4.0-dev.20231224/node_modules/elysia/dist/types.d.ts:406:13: Type error TS2456
  Type alias 'BaseMacro' circularly references itself.

Fixed by fabd071


Allow rotation of images

This small change allows the rotation of the images. Depending on the placement of the camera, this might be necessary.

Thanks, I actually needed this with one particular setup I'm testing today!


rewrite steve to use click

click is a library for building command line utilities. I've started switching all my utilities to use it since it makes writing clis much easier.
http://click.pocoo.org/5/
We should switch steve to use click.  It'll improve the testability of steve. It'll make it easier to do some things we can't do now.

click is internally build upon the outdated optparse. That is not a problem in itself, but if you want to do something under the hood, you'll find that familiarity with the more modern argparse and its concepts won't help you. E.g. try to find from the documentation if you can have  subcommand aliases; or can (re-)use special help formatters; or do simple things like specifying what optional argument is to be stored as a truth value (it is not the action="store_true" developers are already familiar with)
For me that, and other things, were the reason not to use click and to create ruamel.std.argparse which wraps around, and enhances the standard argparse module, but provides a more familiar interface e.g. for its @option decorator than click does.
It operates closely with ruamel.appconfig to allow loading (and storing) of default values for your commandline arguments in ~/.config/steve/steve.yaml (or steve.ini if you prefer that format over YAML)
If you are open to that as an alternative to click let me know and I will look at updating cmdline.py and provide a  PR.

ruamel.std.argparse looks interesting as does the entire ruamel suite.
I have a bunch of experience with click already that I've accrued over the last year. I got pretty sick of the optparse/argparse situation and looked for better APIs for clis and ended up evaluating four or five of which I only remember click, clint and cliff. click was the one I liked the most; the docs are decent, the API was easy to wrap my head around and it did everything I wanted including dealing with pipes and some other things beyond just argument parsing. The only issue I had was with the way help text works, but I worked around that with dennis (http://dennis.readthedocs.org/en/latest/) in a good enough manner that it wasn't a deal breaker.
I think I want to continue with click but if steve has requirements that click can't handle well, then I'll look at ruamel.std.argparse again.

OK, it makes sense to go with what you already know to work. I just wanted to make sure that before I did invest the time to provide a PR for this , to check that there is a chance of acceptance. Now I can do something else :-)
I will look at steve at some time anyway (otherwise I would not have bothered to watch the project), looking how what I did for uploading/generating EuroPython Conference video info can contribute to the project.


Please document DEFAULT_DOMAIN() function

Please document the builtin system function DEFAULT_DOMAIN().

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

ID: d4b44feb-196b-8504-52cb-266a5b5cd6e2
Version Independent ID: 850c1556-8ec7-e2eb-0b97-1d0e5f6df75f
Content: System Functions (Transact-SQL) - SQL Server
Content Source: docs/t-sql/functions/system-functions-transact-sql.md
Product: sql
Technology: t-sql
GitHub Login: @MikeRayMSFT
Microsoft Alias: mikeray

@sqlserverexpert -- Michael, thank you for your feedback.
@MikeRayMSFT -- Mike, please look into this issue 2700.

Reviewing with PM team

Thank you.
While this information might be available from system views, system views require extra permission reducing the ability to run scripts under least privileges.  Also, this function offers greater simplicity.  Case in point:
Dm_server_registry
Negates need for xp reg read, but still complex query to parse out domain.
Default domain function has been around decades, discoverable in many ways. Typically by studying system procedures and/or features.
-Mike
Certified Master, SQL Server
On Sep 23, 2019, at 6:17 PM, Mike Ray <notifications<EMAIL_ADDRESS>wrote:
Reviewing with PM team
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/sql-docs/issues/2700?email_source=notifications&email_token=AHR5NTBMGUK6JA2YQSEG2GDQLFFA3A5CNFSM4IKVOHL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7MRSKI#issuecomment-534321449, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AHR5NTBMPVDVDXVPCA4FSKTQLFFA3ANCNFSM4IKVOHLQ.

@sqlserverexpert - thanks for the comment, and please accept my personal apology for the late reply. During summer vacation I fell a bit behind on the issues I was tracking.
We reviewed the request and have decided not to document it at this time, but I recommend submitting the reasons you cite above at our product feedback site https://feedback.azure.com/forums/908035-sql-server.
Git issues is primarily for documentation feedback so a submission at that site will get a more comprehensive review from the product group.
Thanks you again.

Cross-posted to feedback forum as https://feedback.azure.com/forums/908035-sql-server/suggestions/42235297-default-domain

Updated link that I suspect is correct:
https://feedback.azure.com/d365community/idea/fcf18dd3-5f25-ec11-b6e6-000d3a4f0da0
Similar:
https://feedback.azure.com/d365community/idea/f24a2f72-4025-ec11-b6e6-000d3a4f0da0


Tapping on notification does not work on iOS

I have noticed an unusual bug for iOS where tapping on toast will only work for the first notification and never for any succeeding notifications. We are using Xamarin in our mobile app and the code works fine for  Android.
`
                var notificator = InjectionContainer.Instance.Resolve<IToastNotificator>();
                var options = new NotificationOptions()
                {
                    Description = message,
                };
                if (notification.Type != "Broadcast") options.IsClickable = true;
                var result = await notificator.Notify(options);
                if (result.Action == NotificationAction.Clicked) await HandleToastAction(notification)();

`

I tried the code on old iPhone 4 with iOS 9.3.5 the toast notification does not even show up.


Mark open file in project browser

If a file e.g. a multimodel is dbl clicked and therefore opened in the main window, then this file should be marked somehow in the project browser. Otherwise it is difficult to see which file is open in the main view.

@FlorianLapschies could this be a task for you?

This is relevant when the projectbrowser is refreshed.


1-1 Collection-NFT

We've got feedback that people are confused about how to mint, so we've decided to mint shadow collection and one NFT token at one TX.
Would users save from two steps of the process and waiting too long!
Heads up to the UX-first strategy

Closing in fav #100


Crash on prefix cache

import openai

openai.api_key = "EMPTY"
openai.base_url = "http://localhost:1234/v1/"

completion = openai.chat.completions.create(
    model="mistral",
    messages=[
        {
            "role": "user",
            "content": "Tell me a joke.",
        },
        {
            "role": "assistant",
            "content": "Sure! Here's a joke: Why did the tomato turn red? Because it saw the salad dressing!",
        },
        {
            "role": "user",
            "content": "Tell me another joke.",
        },
    ],
    max_tokens=256,
    frequency_penalty=1.0,
    top_p=0.1,
    temperature=0,
)

completion = openai.chat.completions.create(
    model="mistral",
    messages=[
        {
            "role": "user",
            "content": "Tell me a joke.",
        }
    ],
    max_tokens=256,
    frequency_penalty=1.0,
    top_p=0.1,
    temperature=0,
)

thread '<unnamed>' panicked at mistralrs-core/src/prefix_cacher.rs:95:29:
range start index 49 out of range for slice of length 13

I'll try to fix this.

Once I fixed the crash I stumbled upon the issue I reported on https://github.com/EricLBuehler/mistral.rs/pull/122#discussion_r1563545992
For now I'm not looking into fixing this. I feel like I still don't understand enough of the code to handle it

This should be fixed.


Enable draining of leftover credits on receive batch

For more context refer to #3471.
This PR attempts to enable draining of credits on receive().

Closing per discussion at https://github.com/Azure/azure-sdk-for-js/issues/3471#issuecomment-506037979


"require is not defined" error throws with cypress-mochawesome-reporter 3.6.1.

Environment
- OS: `Ubuntu 20.04.6 LTS`
- Node: `v18.17.0`
- cypress-mochawesome-reporter: `3.6.1`
- cypress: `13.3.1`

What happened?
Current behavior
Hello team,
I am following the instructions here, to setup Cypress HTML report using package cypress-mochawesome-reporter however I am getting the following error:
Your configFile threw an error from: /home/ubuntu/angular-frontend/web/cypress.config.ts

The error was thrown while executing your e2e.setupNodeEvents() function:

ReferenceError: require is not defined

Expected behavior
When I run yarn cypress run --browser chrome, in the terminal, I should see cypress-mochawesome-reporter
produce sample output below:
Start generate report proces
Read and merge json from (file:///home/ubuntu/angular-frontend/web/cypress/reports/html/.jsons/mochawesome_001.json)
...
....
Enhance report
Create HTML report
HTML report successfully crated!
home/ubuntu/angular-frontend/web/cypress/reports/html/index.html

Config file
import { defineConfig } from 'cypress';

export default defineConfig({
  projectId: 'angular-frontend',
  e2e: {
    baseUrl: 'http://localhost:3000',
    specPattern: 'cypress/e2e/**/*.cy.ts',
    setupNodeEvents(on) {
      require('cypress-mochawesome-reporter/plugin')(on)
    },
  },
  reporter: 'cypress-mochawesome-reporter',
  reporterOptions: {
    reportDir: 'cypress/results',
    reportPageTitle: 'Angular Cypress Test Report',
    charts: true,
    embeddedScreenshots: true,
  },
  screenshotOnRunFailure: true
});

Relevant log output
ReferenceError: require is not defined
    at setupNodeEvents (file:///home/ubuntu/angular-frontend/web/cypress.config.ts:18:7)
    at /home/ubuntu/.cache/Cypress/13.3.1/Cypress/resources/app/node_modules/@packages/server/lib/plugins/child/run_plugins.js:122:14
    at tryCatcher (/home/ubuntu/.cache/Cypress/13.3.1/Cypress/resources/app/node_modules/@packages/server/node_modules/bluebird/js/release/util.js:16:23)
    at Function.Promise.attempt.Promise.try (/home/ubuntu/.cache/Cypress/13.3.1/Cypress/resources/app/node_modules/@packages/server/node_modules/bluebird/js/release/method.js:39:29)
    at RunPlugins.load (/home/ubuntu/.cache/Cypress/13.3.1/Cypress/resources/app/node_modules/@packages/server/lib/plugins/child/run_plugins.js:119:9)
    at RunPlugins.runSetupNodeEvents (/home/ubuntu/.cache/Cypress/13.3.1/Cypress/resources/app/node_modules/@packages/server/lib/plugins/child/run_plugins.js:59:17)
    at EventEmitter.<anonymous> (/home/ubuntu/.cache/Cypress/13.3.1/Cypress/resources/app/node_modules/@packages/server/lib/plugins/child/run_require_async_child.js:185:22)
    at EventEmitter.emit (node:events:513:28)
    at EventEmitter.emit (node:domain:489:12)
    at process.<anonymous> (/home/ubuntu/.cache/Cypress/13.3.1/Cypress/resources/app/node_modules/@packages/server/lib/plugins/util.js:33:22)
    at process.emit (node:events:513:28)
    at process.emit (node:domain:489:12)
    at process.emit.sharedData.processEmitHook.installedValue [as emit] (/home/ubuntu/.cache/Cypress/13.3.1/Cypress/resources/app/node_modules/@cspotcode/source-map-support/source-map-support.js:745:40)
    at emit (node:internal/child_process:937:14)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)

### Anything else?

_No response_

Please create a repo with the problem and steps to reproduce the issue so I can have a look.
Thanks.

Hi @LironEr / @syumaK  -
I encountered this error (or something similar) in the process of upgrading my repository from Cypress 12.1.0 to 13.6.0. As best as I can tell, this issue is caused by upgrading to Node 14+ and setting type: module in your package.json. This changes the compilation type to ES6 and causes compatibility issues.
Here's how I encountered this issue:

npm-check-updates -u
Extracted configuration from plugins/index.js file and insert in defineConfig within cypress.config.js
Updated package.json to include type: module to specify ES6 compilation.
Updated imports within cypress.config.js to ES6-style imports.

This causes the error reported above:
ReferenceError: require is not defined
    at setupNodeEvents (file:///C:/Users/XXX/testing/cypress.config.js:49:25)

My first attempt was to monkey-patch the createRequire method from module as suggested in this SO post. This did not work for me, and instead, produced a rather cryptic error:
TypeError [undefined]: The "id" argument must be of type string. Received function registerChildEvent
    at new NodeError (node:internal/errors:399:5)
    at validateString (node:internal/validators:163:11)
    at Module.require (node:internal/modules/cjs/loader:1134:3)
    at require (node:internal/modules/cjs/helpers:110:18)
    at setupNodeEvents (file:///C:/Users/XXX/testing/cypress.config.js:49:90)

Now, on to the resolution:

Import the cypress-mochawesome-reporter/plugin module as an ES6 import:

import plugin from 'cypress-mochawesome-reporter/plugin';`

Update the static require('cypress-mochawesome-reporter/plugin)( on )line toplugin( on )`

Cypress should load the plugin correctly.
Hopefully this helps!


expo-cli bug

Environment
I installed nodejs version:10.13.0
Description
hello, i have a problem when i run the command npm install -g expo-cli as shown in the attached screenshot

I think this is not the right place for this issue. Have you tried posting it to expo? Expo builds on top of React Native, but the Expo CLI tooling is independently maintained by them.


Missing Folders?

It looks like in a latest update, some folder files were removed so folders that would normally exist for people were removed.  Example: assets, layouts.  Was this on purpose?  Some people are getting confused since docs, examples, etc.. all have these core folders in their examples.
https://github.com/nuxt/create-nuxt-app/pull/792/files

@hecktarzuli  - yes, there was previously an issued raised on here about this very topic that was marked "closed". It is as per design:

If you have a look at the ReadMe file in the root of a newly created app, it will give you guidance on creating those folders that you require.

It is as per design. If you have a look at the ReadMe in the root of a new project, it does give a bit of an explanation (curiously, it does not mention the middleware folder but this also follows the same pattern).

We decided to remove them for simplicity since most of the directories are not required by default. Everything is documented in the README :)

@danielroe
could you guys add a flag on create-nuxt-app to let us create all these folders automatically as it was before? Like, npx create-nuxt-app APP_NAME -c|f|a. Add some flag name that would resamble/relate to "create a project with all folders"
Or
at least define a list of folders we want? Like, you can add a new prompt for npx create-nuxt-app APP_NAME
Define your folders:
( ) components
( ) assets
( ) store
( ) plugins
( ) layouts
It seems unnecessary but I was really used to see a project with all folders, and now I few something is missing. I have to waste time to do it by hand every time I start a new project.

Mine does not work. I added layouts/default.vue. Nothing happens

@Isidorev215 I'll happily look into that if you open an issue on https://github.com/nuxt/nuxt.js/issues with a reproduction.

Mine does not work. I added layouts/default.vue. Nothing happens.
I checked .nuxt/app.js and I found this: import _6f6c098b from '.\\layouts\\default.vue' instead of import _6f6c098b from '..\\layouts\\default.vue' ...
I am using "nuxt": "^2.15.7"

I've got the exact same error.

After creating a nuxt project, I created the layouts folder and defined a the default.vue before you running npm run dev.
This worked for me.
I went further to create all the next folders that I needed before running the first npm run dev just in case.

Mine does not work. I added layouts/default.vue. Nothing happens.
I checked .nuxt/app.js and I found this: import _6f6c098b from '.\\layouts\\default.vue' instead of import _6f6c098b from '..\\layouts\\default.vue' ...
I am using "nuxt": "^2.15.7"

I've got the exact same error.

Stop the server and restart it

I'm facing this issue too, it keeps confusing me since the manual creation of layouts folder changes nothing!

I'm new to nuxt. Seems the tutorials I've seen uses these layout and asset folder. How do I adjust and which folder replaces the old folders removed.

or do i have to create my own?

@michaelmiracle018 If you are referring to Nuxt 3, please create a discussion at https://github.com/nuxt/framework/discussions/new with some info about what you've tried. (Probably you just need to add <NuxtLayout> in your app.vue - see https://v3.nuxtjs.org/guide/directory-structure/layouts/#enabling-the-default-layout.)

Learned nuxt a month ago. I liked how scss is already included and all the folders are present, this change made things worse.

Learned nuxt a month ago. I liked how scss is already included and all the folders are present, this change made things worse.
I cant even get the layouts to work.


Updating devel with master changes

We pushed some changes directly into master (there might be a couple of pushes to come).
This PR is just to update devel with the latest changes. Mainly:

Changes on packaging technique for shorter builds and right deployment to anaconda

Added docstr to some function

Added extra keyword argument to tofuplot and tofucalc for finer user tuneability

Hello @lasofivec! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file tofu/imas2tofu/_core.py:

Line 1270:80: E501 line too long (80 > 79 characters)
Line 3897:35: E702 multiple statements on one line (semicolon)
Line 3897:52: E261 at least two spaces before inline comment

In the file tofu/utils.py:

Line 1181:21: E116 unexpected indentation (comment)
Line 1182:25: E116 unexpected indentation (comment)
Line 1183:29: E116 unexpected indentation (comment)
Line 1184:29: E116 unexpected indentation (comment)
Line 1185:33: E116 unexpected indentation (comment)

In the file tofuplot.py:

Line 160:80: E501 line too long (83 > 79 characters)

Codecov Report

Merging #342 into devel will decrease coverage by 0.05%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##            devel     #342      +/-   ##
==========================================
- Coverage   40.02%   39.97%   -0.06%
==========================================
  Files          79       79
  Lines       24134    24128       -6
==========================================
- Hits         9659     9644      -15
- Misses      14475    14484       +9

Impacted Files
Coverage Δ

tofu/imas2tofu/_core.py
0.67% <0%> (-0.01%)
:arrow_down:

tofu/utils.py
48.15% <0%> (+0.22%)
:arrow_up:

tofu/data/_core_new.py
13.15% <0%> (-0.47%)
:arrow_down:

tofu/geom/_core_optics.py
14.35% <0%> (-0.35%)
:arrow_down:

tofu/geom/_comp.py
59.69% <0%> (-0.22%)
:arrow_down:

tofu/data/_core.py
38.79% <0%> (-0.18%)
:arrow_down:

tofu/geom/_plot.py
64.98% <0%> (-0.11%)
:arrow_down:

tofu/geom/_core.py
62.98% <0%> (-0.11%)
:arrow_down:

Continue to review full report at Codecov.

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


Work on Game Plan

Alexi should give the team more direction. Here are the steps being taken:

[ ] Reread Lizzie's document suggesting how we move forward
[ ] Write up a document explaining what exactly we have so far
[ ] Write up a [concise] document explaining what we need to accomplish to finish this project

[ ] Put everything into issues

[ ] Clean up prediction code so that teammates can utilize it

[ ] All necessary functionality should be put into .py files so that it can be utilized by other notebooks

[ ] Can you do this using Jupyter notebooks?

[ ] Merge into hugo branch

[ ] Come up with a comprehensive (ie explain why they all matter) list of requested displays in Tableau Cloud

[ ] Pitch these suggestions to the team
[ ] Make into individual issues (if not already done)
[ ] Try to get them assigned to team members
[ ] Make sure John can get what he needs to take these displays and import them into the webpage

What We Have So Far:

todo

What We Need to Accomplish:

see issues tagged priority-high


24 add missing trigger docs

resolves #24

@kronicz please fix those 3 issues before we merge

@digitaldiina Corrected based on input


How To Run HiddenEye-Reborn

How do i run it? it keeps saying:
Success, you can access this via terminal!
I have no other terminal except Kali linux & Command Promt (If there is for Cmd please tell me.)
Or maybe it hasn't yet finished?

Or, maybe, you should learn to look at closed issues before making new ones.

Duplicate of #11


Skype call function

Describe the bug
I upgraded to 5.6.0-b1.1808 and lost the skype call option within Franz. Skype standalone works fine. Have seen this problem over the years with upgrades
To Reproduce
Steps to reproduce the behavior:
Use skype, no audio video setting vailable, messaging works
Expected behavior
Tried to call contacts
Desktop (please complete the following information):

OS: 10.15.7
Browser safari
Version 14.0

I lost the skype call option before upgrading to 5.6.0-beta.1 when using electron 9 with 5.5.0. It similarly doesn't work on chromium 86.0.4240.75 (and some earlier version as well). The error message suggests browser unsupported so did the skype changed the browser version supported?


Translation and deployment

Hi. I just came across minutephysics' video and the maskmath website. Great job!
I thought it would be great if we could come up with some mechanism that will allow people to fork this repo, translate the text to whatever language, then create a pull request. After each pull request is merged a CI/CD process will deploy the website with the new translation (of course, language-selection buttons will be available on the page itself).
Already forked and started to work on my translation :)

I just saw that this is hosted by github pages, so this should be extremely easy :)
Please see my current attempt on https://deepspace2.github.io/maskmath/. It's very basic. The select element change event shows and hides relevant p elements . Each translation/language text is in its own p element, with the class attribute being the same as the 2-letters language code (which is also the value of the option element).

Hi there,
Thanks for creating this issue & for your interest in adding translations. I'd love to add translations and a few people have also already indicated interest in translating this to other languages.
One simple way to go about this would be to make a copy of the index.html page for each language (I think all the text content is contained in that one page). So e.g. we could add an index-es.html for spanish, and so on, and provide a link on the index.html page to all of the translations. This might make it easier for people without coding experience to add translations. Although there are probably some cons to this approach?
Another way might be to use something like vue i18n. I'm not so familiar with that, but am open to thoughts on how best to go about adding translations. My instinct is to go for a quick solution that would be simplest for contributors to add translations.

I can contribute a French translation when the process is clear!

@aatishb Glad you liked the initiative.
To be honest I think vue i18n might be an overkill (and it doesn't provide for people with no coding experience).
I went ahead with my approach and I think it will be cumbersome to maintain and to "explain" to people how to contribute translations.
I did like your first suggestion, having a dedicated index-<langauge>.html for each language, but I'm afraid that will have the same issues as the previous approaches.
I think what we can do is "templatize" the current index.html, and load the translations from a <language-code>.json file, but I'm not sure what the keys in such file would be (it would be weird to have the entire English sentence as key, it will also be problematic with the styling).

@aatishb I agree, I think having a separate page for each language might be the simplest.

Added a contributor's guide for translations here: https://github.com/aatishb/maskmath/issues/4

@DeepSpace2 feel free to close this if it's resolved. @nlehuen you're welcome to take on a French translation.


don't remove init listener after activation

[Bug] Other wallet extensions block transport between the webapp and extension
Fixes #297
obviously intended to be inside the conditional, but i guess there is not really any reason to deactivate it

That solved the issue


Add condition to call encounter with and without orders. Fix #477

Fix #477

Coverage increased (+0.09%) to 60.487% when pulling b0552cd4101955c1570d877dbe91ace7dfd518a0 on valvijo:master into ca1d2f72ff0a01dc4b54a3996044a7d9d3591aad on esaude:master.


clangd is inferring the wrong source file from a unity build source file

I have the following file structure:
- src/
    - OHServerControl/
         - main.cpp
    - OHWorkshopUploader/
         - main.cpp

I build my project using CMake, with set(CMAKE_UNITY_BUILD ON). The resulting compile_commands.json looks like this for the files mentioned above:
{
    "directory": "C:/OHW/SSVOpenHexagon/buildrel",
    "command": "C:\\msys64\\mingw64\\bin\\g++.exe -o CMakeFiles\\OHWorkshopUploader.dir\\Unity\\unity_0_cxx.cxx.obj -c C:\\OHW\\SSVOpenHexagon\\buildrel\\CMakeFiles\\OHWorkshopUploader.dir\\Unity\\unity_0_cxx.cxx",
    "file": "C:\\OHW\\SSVOpenHexagon\\buildrel\\CMakeFiles\\OHWorkshopUploader.dir\\Unity\\unity_0_cxx.cxx"
},
{
    "directory": "C:/OHW/SSVOpenHexagon/buildrel",
    "command": "C:\\msys64\\mingw64\\bin\\g++.exe -o CMakeFiles\\OHServerControl.dir\\Unity\\unity_0_cxx.cxx.obj -c C:\\OHW\\SSVOpenHexagon\\buildrel\\CMakeFiles\\OHServerControl.dir\\Unity\\unity_0_cxx.cxx",
    "file": "C:\\OHW\\SSVOpenHexagon\\buildrel\\CMakeFiles\\OHServerControl.dir\\Unity\\unity_0_cxx.cxx"
},

There clearly are two separate unity source files generated. However, clangd completion fails in VSCode with missing includes and other unexpected errors. After checking the logs, it seems that clangd picks the wrong unity source file:
[16:30:01.095] ASTWorker building file c:/OHW/SSVOpenHexagon/src/OHWorkshopUploader/main.cpp version 1 with command inferred from C:\OHW\SSVOpenHexagon\buildrel\CMakeFiles\OHServerControl.dir\Unity\unity_0_cxx.cxx

You can clearly see that clangd picks the unity source file from OHServerControl for OHWorkshopUploader, which is incorrect.

System information
Output of clangd --version:
clangd version 13.0.1
Features: windows
Platform: x86_64-w64-windows-gnu

Editor/LSP plugin:

llvm-vs-code-extensions.vscode-clangd v0.1.15

Operating system:

Windows 10 x64

There are potentially two separate issues here:

The way clangd chooses a source file in the compile_commands.json whose command to use, does not take into account the actual inclusion relationships between files. This is tracked in #123.

If main.cpp is not self-contained, i.e. it implicitly relies on symbols from other source files included earlier in the unity source file, then this is a code pattern clangd does not support, and it will not be able to parse main.cpp even with issue (1) fixed. This is tracked in #45 (and less likely to be fixed).
(If, on the other hand, you only need it to pick the right unity source file because different unity source files have different flags in their compile command, then fixing (1) should be sufficient to make that work.)

I'm going to close this as I don't think there's anything here that isn't covered by the two issues mentioned in the previous comment.


Deploy demo

https://github.com/PolymerElements/polymer-starter-kit/blob/master/docs/deploy-to-github-pages.md

I started playing with it a little, but I don't get it to work:
http://co-open.github.io/o-app-karma/
https://github.com/CO-OPEN/o-app-karma/tree/gh-pages


emacs.pkgs: 2021-05-03

Motivation for this change
This change updates recipes for emacs packages.
Changes generated by:
cd pkgs/applications/editors/emacs-modes
./update-melpa
./update-elpa
./update-org

Since the merge of #120354, it also fixes the following packages so they are no longer broken:
fennel-mode
geiser
geiser-chez
geiser-chibi
geiser-chicken
geiser-gambit
geiser-guile
geiser-mit
geiser-racket
gif-screencast
ligo-mode
mixed-pitch
modus-themes
oer-reveal
org-re-reveal
python-mode
recomplete
spell-fu
undo-fu
undo-fu-session
xref-rst
zotero

Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
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)
[X] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[X] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 121632 run on x86_64-linux 1

1 package built:

cask

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/emacs-python-mode-marked-as-broken-cant-rebuild-nixos-config/12674/4

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/516


Assets over SSL

Hello,
I'm converting my Laravel application from Non-SSL to using SSL. How can I get the include tags generated by Asset-Pipeline to use the SSL version of my URL?

@Jamesking56 did you resolve this, and if so, what worked? Otherwise this should stay open.


Stop buttons relying on line-height for padding

Why 1.4em and not just 1? Doesn't this still rely on line height?

To some extent, but the 1.4em is for the actual line height when the text has to go onto two lines, like here:

Ok that makes sense. Cool. +1


No response to Basic_motion

Hello everyone,
During running through the basic_motion notebook we couldn’t get any response from the car.
The transmitter and reciever we are using is the Carson Reflex PRO 3 (without LCD) the transmitter als isnt equiped with a manual override switch, when self operating the car, everything works just fine however whenever we try to get to run the car through the basic_motion notebook the car doesnt response on any setting we try  (neither steering nor throttle).
We tried to set the throttle_gain to a negative value, which also didnt give any response. We have also tried to bypass the multiplexer and connect the PCA PWM driver tot he ESC directly which also didnt give any response.
The transmitter is equiped with reverse switches which reverse the throttle and steering, while driving the car manually setting the reverse throttle switch to reverse mode will get the car to automatically drive in reverse motion without moving the throttle trigger forward backward. Whilst trying to run the Basic_motion notebook during this mode, we couldnt get any response either.
Thank You in advance for any hints.

We are using the Tamiya jetracer

You didn't state what version of Jetracer you are using.
Are you using the Jetracer latest release on a Nano 4GB B01 or an earlier version?

You didn't state what version of Jetracer you are using.
Are you using the Jetracer latest release on a Nano 4GB B01 or an earlier version?

We are using the latest version on a Nano 4GB B01 indeed.

You didn't state what version of Jetracer you are using.
Are you using the Jetracer latest release on a Nano 4GB B01 or an earlier version?

We are using the latest version on a Nano 4GB B01 indeed.

I assume that you used the latest release image and did not build Jetracer from scratch?
Did you take a look at open issue #99 before doing the Jetracer image install? Issue #99 may explain the issues that you are having with "basic_motion".

You didn't state what version of Jetracer you are using.
Are you using the Jetracer latest release on a Nano 4GB B01 or an earlier version?

We are using the latest version on a Nano 4GB B01 indeed.

I assume that you used the latest release image and did not build Jetracer from scratch?
Did you take a look at open issue #99 before doing the Jetracer image install? Issue #99 may explain the issues that you are having with "basic_motion".

I installed the latest release according to your guide in open issue #99 before installing the Jetracer image, however at step 4 permission is still denied while trying to install Jetcam and Jetracer. Basic motion still gives no response when running it

@sdovhl
When you say that you "installed the latest release" are you talking about the Jetracer latest release image?
If so, that is not what I did to get my installation of Jetracer to work. I did a clean install and setup of of Jetpack 4.5.1 and then cloned and installed Jetcard followed by Jetcam and Jetracer.

I followed your steps in issue #99 from start to finish, are there any more steps i had to do beforehand?
As I downloaded the zip file of jp 4.5.1 and transferred it to a micro SD, after that i followed on from step 2 however at step 4 it still kept on saying permission denied when trying to clone the packages.

@sdovhl,
I am sorry to hear that my guide has not worked for you.
Somehow you are doing something differently than I did during the installation process and unfortunately I don't know what it is.

When running sudo apt-get upgrade -y, It said some packages couldnt get the upgrade and said i should try  sudo apt-get upgrade --fix-missing, which i did. During the whole process it asked me to update the software (to ubuntu 18.04). It also asked my a question twice which i had to answer (y/N), once for overwriting jupyiter notebook with default Data or something like that which i rejected (N) and the other question was to install an extra package.
Just some things that were noticable, do you know if any of these might have caused the problem or is it better for me to just go with an older version of jp if that would even work?

When running sudo apt-get upgrade -y, It said some packages couldnt get the upgrade and said i should try sudo apt-get upgrade --fix-missing, which i did. During the whole process it asked me to update the software (to ubuntu 18.04). It also asked my a question twice which i had to answer (y/N), once for overwriting jupyiter notebook with default Data or something like that which i rejected (N) and the other question was to install an extra package.
Just some things that were noticable, do you know if any of these might have caused the problem or is it better for me to just go with an older version of jp if that would even work?

Just run sudo apt-get update -y and then sudo apt-get upgrade -y and then do a reboot. Don't worry about the packages that couldn't be upgraded as they usually can't be upgraded with the NVIDIA version of Ubuntu 18.04.  Just follow my installation guide to the letter and you should have a successful install.

When following your guide, I still couldnt get any response out of the car. After the reboot i still get the same error message shown when viewing it on a monitor. Still cant get any motion going when running basic_motion.
I have also tried with jetpack 4.5, but still couldnt get any motion going on.

@sdovhl,
FYI
NVIDIA has addressed the issues I pointed out and packaged a new image, partly taking my suggested solutions.

@sdovhl,
FYI
NVIDIA has addressed the issues I pointed out and packaged a new image, partly taking my suggested solutions.

Yes I saw! But isnt the new image just the 4.5.1? I've tried basic motion with their newest image however still cant get any motion when running through Basic_motion

@sdovhl,
The Jetracer "image" is not just JP 4.5.1, but includes Jetcard which builds a lot of packages and dependencies if you run it separately from JP 4.5.1.
Is your jet racer a kit or is it a DIY project?
Have you verified that the Nano is communicating with the PCA9685 servo driver module over the I2C bus?
Run the following to command vis SSH to verify that the Nano is communicating with the PCA9685:
sudo i2cdetect -r -y 1
The PCA9685 should appear at hex address 0x40.
If it appears at the correct hex address, then connect the ESC and steering servo cables directly to the PCA9685 and see if you can get basic_motion to operate the car throttle and steering. If that works, then there is something wrong with the multiplexer or the way that you have attached the throttle/steering cables to it.
If it does not appear at hex address 0x40, then that is where your problem is.

Hi, thank you for your help! We have now solved the issue.
With the new image we tried to bypass the multiplexer (connect the PCA motor driver directly to the ESC) and this time it was succesfull, we were able to run "basic_motion" now.
We have installed a manual override switch on channel 3 of the transmitter and now it works.


Wine Error when Lauching game

Describe the bug
Everything in the laucher works perfectly fine. However, when i launched the game, a fatal error "failed to load il2cpp appears". I tested v9.2-mingw, v8.16-3shain, unstable-bh-gptk-1.0, and even tried crossover, but the error still appears on launch. After pressing "ok" in the error box the game just quits itself.
Screenshots

System Information (please complete the following information):

macOS: [14.5 Sonoma]
Device: [MacbookPro 14inch 2023 ]
CPU: [Apple M3 Pro 11 Core ]
RAM: [18G ]

Additional context
Add any other context about the problem here.
Logs (if any)
File not found.
46305.833:00b8:err:service:validate_context_handle Access denied - handle created with access 34, needed 10000
46306.448:0150:err:module:import_dll Library WDFLDR.SYS (which is needed by L"C:\windows\system32\HoYoKProtect.sys") not found
46306.449:0150:err:ntoskrnl:ZwLoadDriver failed to create driver L"\Registry\Machine\System\CurrentControlSet\Services\HoYoProtect": c0000142
[experimental-async-load] Disabled
[2024-06-12 22:09:36.697] MultiThreadStackTrace init success!
46306.588:0128:err:kerberos:kerberos_LsaApInitializePackage no Kerberos support, expect problems
46306.590:0128:err:winediag:ntlm_check_version ntlm_auth was not found. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
46306.590:0128:err:ntlm:ntlm_LsaApInitializePackage no NTLM support, expect problems
Set new unhandled exception filter 00006FFFFCC540F0 to replace 00006FFFFCDA4060
url fetch responce: {"code":0}
url fetch responce: {"code":0,"message":"app running","milliTs":"1718201377265"}
url fetch responce: {"retcode":0,"message":"success","data":null}

it seems some files are missing, Reinstall the launcher
Uninstall Yaagl app > after Delete Yaagl OS folder in /Applications Support > Then make sure to reinstall it and move it to /Applications before opening.
Also may I ask where is ur Game download located?

It is downloaded in my user folder.

It is downloaded in my user folder.

Good good, its in a folder rite just to be sure "game" or something.

Is it normal that it is fixing game files?

Sorry for late reply, yes integrity check scans files and makes sure everything that is needed is downloaded and working as they are intended, your error did show some files were missing so completely normal.

The same error still appears after reinstalling.
Logs:
File not found.
78096.533:014c:err:module:import_dll Library WDFLDR.SYS (which is needed by L"C:\windows\system32\HoYoKProtect.sys") not found
78096.536:014c:err:ntoskrnl:ZwLoadDriver failed to create driver L"\Registry\Machine\System\CurrentControlSet\Services\HoYoProtect": c0000142
[experimental-async-load] Disabled
[2024-06-13 06:59:27.160] MultiThreadStackTrace init success!
78097.211:0124:err:kerberos:kerberos_LsaApInitializePackage no Kerberos support, expect problems
78097.299:0124:err:winediag:ntlm_check_version ntlm_auth was not found. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
78097.299:0124:err:ntlm:ntlm_LsaApInitializePackage no NTLM support, expect problems
Set new unhandled exception filter 00006FFFFCC540F0 to replace 00006FFFFCDA4060
[astrolabe:288:392:0613/065927.608:78097337:ERROR:hoyo_chrome_pref_service_factory.cc(27)] 6
url fetch responce: {"code":0,"message":"app running","milliTs":"1718233171349"}
url fetch responce: {"code":0}
url fetch responce: {"retcode":0,"message":"success","data":null}

that makes me thing your game is not in a folder, which is resulting in Yaagl not being able to find

For example

Game folder

i just realized there is a log file you don't have its {GenshinImpact.gc.log}
the log in the file:
(0) Failed to allocate 262144 (aligned 262144) bytes at 0x0000070081040000: 487
VQ: BA=0x0000070081040000 AB=0x000006FFFFFF0000 AP=0x1 RS=6425411584 S=0x2000 P=0x0 T=0x20000

weird, give Yaagl full disk access and see if it makes a diff
System settings > Privacy & security > Full disc > add Yaagl.

Same error. Should i reinstall the game?

Same error. Should i reinstall the game?

No im not using any. I reinstalled the game and it works now. Thanks for ur help

Everything working now rite? I see the message was edited so waited to ask if any problems still.

asking again to check in if everything is working as expected? will close this issue in 9 hours if no response, feel free to reopen if needed.


⚠ Bofrost.at has degraded performance

In 4fc5995, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1891 ms

Resolved: Bofrost.at performance has improved in 07c2fb0.