Stuck at "initialization of hcxdumptool" ALFA AWUS036ACH TYP C

I was able to install the drivers of the adapter and set the adapter to monitor mode successfully.
However when I use hcxdumptool with the adapter (I did set it back to managed mode before doing so), the process gets stuck at "initialization of hcxdumptool" as shown in the picture.

I am using Kali 2021.3 on VirtualBox.

The AWUS036ACH USB adapter incorporates RTL8812AU WLAN chipset. The driver depend on NETLINK and is not recommended.
Please remove the adapter. Than plug-in the adapter and run:
$ sudo hcxdumptool -iwlan0 --check-driver
and comment the output.
Do not run iw to set monitor mode before!
Output on a kernel stock driver should look like this:
$ sudo hcxdumptool -i wlp39s0f3u1u6 --check_driver
initialization of hcxdumptool 6.2.7-1-g7174fbc (depending on the capabilities of the device, this may take some time)...
starting driver test...
detected driver: mt76x0u
driver tests passed...
all required ioctl() system calls are supported by driver

terminating...

Next step is to set monitor mode by iw /which ruse NETLINK):
$ sudo ip link set wlan0 down
$ sudo iw wlan0 set monitor none
$ sudo ip link set wlan0 up
$ sudo hcxdumptool -i wlan0 --check-driver
and comment the output.

Last step is to set monitor mode by iw (which ruse NETLINK):
$ sudo ip link set wlan0 down
$ sudo iw wlan0 set monitor none
$ sudo ip link set wlan0 up
$ sudo hcxdumptool -i wlan0 -C
to request frequencies supported by the driver.

More information about the driver is here:
https://github.com/ZerBea/hcxdumptool/issues/214

Sorry for the late reply.
So I installed the latest version of Kali (2022.3) alongside with the latest drivers I was able to find for RTL8812au and then I tried out the commands you provided and here is the result :
$ sudo hcxdumptool -i wlan0 --check_driver

$ sudo ip link set wlan0 down
$ sudo iw wlan0 set monitor none
$ sudo ip link set wlan0 up
$ sudo hcxdumptool -i wlan0 --check_driver

$ sudo ip link set wlan0 down
$ sudo iw wlan0 set monitor none
$ sudo ip link set wlan0 up
$ sudo hcxdumptool -i wlan0 -C

The error message "driver doesn't support frequency scan" started appearing after 10 minutes from the moment I entered the command.

Thanks for the comments.
Looks like hcxdumptool doesn't have full access to the device, because NetworkManager and wpa_supplicant are still running.
Please stop both tools:
$ sudo systemctl stop NetworkManager.service
$ sudo systemctl stop wpa_supplicant.service
Than run hcxdumptool again.
To get Networkaccess back, start them if hcxdumptool terminated:
$ sudo systemctl start NetworkManager.service
$ sudo systemctl start wpa_supplicant.service

This is the driver supplied by KALI:
https://github.com/aircrack-ng/rtl8812au

Yes that's the one I installed.
So I stopped both NetworkManager and wpa_supplicant, however unfortunately I still get the same error.

This time it took about 6 minutes from the moment I entered the command for it to appear.

10 minutes is way too long until the driver respond to hcxdumptool.
Some examples:
ASUS AC51
$ hcxdumptool -I
wlan interfaces:
phy2	0c9d92b486ca	wlp39s0f3u1u1u4	(driver:mt76x0u)

$ time sudo hcxdumptool -i wlp39s0f3u1u1u4 -C
initialization of hcxdumptool 6.2.7-1-g7174fbc (depending on the capabilities of the device, this may take some time)...
wlp39s0f3u1u1u4 available frequencies, channels and tx power reported by driver:
2412MHz   1 (16 dBm)
2417MHz   2 (16 dBm)
2422MHz   3 (16 dBm)
2427MHz   4 (16 dBm)
2432MHz   5 (16 dBm)
2437MHz   6 (16 dBm)
2442MHz   7 (16 dBm)
2447MHz   8 (16 dBm)
2452MHz   9 (16 dBm)
2457MHz  10 (16 dBm)
2462MHz  11 (16 dBm)
2467MHz  12 (16 dBm)
2472MHz  13 (16 dBm)
2484MHz  14 ( 0 dBm)
5180MHz  36 (19 dBm)
5200MHz  40 (19 dBm)
5220MHz  44 (19 dBm)
5240MHz  48 (19 dBm)
5260MHz  52 (19 dBm)
5280MHz  56 (19 dBm)
5300MHz  60 (19 dBm)
5320MHz  64 (19 dBm)
5500MHz 100 ( 0 dBm)
5520MHz 104 ( 0 dBm)
5540MHz 108 ( 0 dBm)
5560MHz 112 ( 0 dBm)
5580MHz 116 ( 0 dBm)
5600MHz 120 ( 0 dBm)
5620MHz 124 ( 0 dBm)
5640MHz 128 ( 0 dBm)
5660MHz 132 ( 0 dBm)
5680MHz 136 ( 0 dBm)
5700MHz 140 ( 0 dBm)
5720MHz 144 ( 0 dBm)
5745MHz 149 (19 dBm)
5765MHz 153 (19 dBm)
5785MHz 157 (19 dBm)
5805MHz 161 (19 dBm)
5825MHz 165 (19 dBm)
5845MHz 169 ( 0 dBm)
5865MHz 173 ( 0 dBm)

terminating...

real	0m2,814s
user	0m0,062s
sys	0m0,136s

TP-LINK TL-WN722N v1
$ hcxdumptool -I
wlan interfaces:
phy3	f81a67077d0e	wlp39s0f3u1u1u4	(driver:ath9k_htc)

$ time sudo hcxdumptool -i wlp39s0f3u1u1u4 -C
initialization of hcxdumptool 6.2.7-1-g7174fbc (depending on the capabilities of the device, this may take some time)...
wlp39s0f3u1u1u4 available frequencies, channels and tx power reported by driver:
2412MHz   1 (20 dBm)
2417MHz   2 (20 dBm)
2422MHz   3 (20 dBm)
2427MHz   4 (20 dBm)
2432MHz   5 (20 dBm)
2437MHz   6 (20 dBm)
2442MHz   7 (20 dBm)
2447MHz   8 (20 dBm)
2452MHz   9 (20 dBm)
2457MHz  10 (20 dBm)
2462MHz  11 (20 dBm)
2467MHz  12 (20 dBm)
2472MHz  13 (20 dBm)
2484MHz  14 (20 dBm)

terminating...

real	0m1,151s
user	0m0,065s
sys	0m0,105s

ALFA AWUS036ACM
$ hcxdumptool -I
wlan interfaces:
phy5	00c0caad0e49	wlp39s0f3u1u1u4	(driver:mt76x2u)

$ time sudo hcxdumptool -i wlp39s0f3u1u1u4 -C
initialization of hcxdumptool 6.2.7-1-g7174fbc (depending on the capabilities of the device, this may take some time)...
wlp39s0f3u1u1u4 available frequencies, channels and tx power reported by driver:
2412MHz   1 (20 dBm)
2417MHz   2 (20 dBm)
2422MHz   3 (20 dBm)
2427MHz   4 (20 dBm)
2432MHz   5 (20 dBm)
2437MHz   6 (20 dBm)
2442MHz   7 (20 dBm)
2447MHz   8 (20 dBm)
2452MHz   9 (20 dBm)
2457MHz  10 (20 dBm)
2462MHz  11 (20 dBm)
2467MHz  12 (20 dBm)
2472MHz  13 (20 dBm)
2484MHz  14 ( 3 dBm)
5180MHz  36 (20 dBm)
5200MHz  40 (20 dBm)
5220MHz  44 (20 dBm)
5240MHz  48 (20 dBm)
5260MHz  52 (20 dBm)
5280MHz  56 (20 dBm)
5300MHz  60 (20 dBm)
5320MHz  64 (20 dBm)
5500MHz 100 ( 3 dBm)
5520MHz 104 ( 3 dBm)
5540MHz 108 ( 3 dBm)
5560MHz 112 ( 3 dBm)
5580MHz 116 ( 3 dBm)
5600MHz 120 ( 3 dBm)
5620MHz 124 ( 3 dBm)
5640MHz 128 ( 3 dBm)
5660MHz 132 ( 3 dBm)
5680MHz 136 ( 3 dBm)
5700MHz 140 ( 3 dBm)
5720MHz 144 ( 3 dBm)
5745MHz 149 (20 dBm)
5765MHz 153 (20 dBm)
5785MHz 157 (20 dBm)
5805MHz 161 (20 dBm)
5825MHz 165 (20 dBm)
5845MHz 169 ( 3 dBm)
5865MHz 173 ( 3 dBm)

terminating...

real	0m18,636s
user	0m0,038s
sys	0m0,113s

5745MHz 149 (20 dBm) = full tx power allowed by wireless regulatory domain
5720MHz 144 ( 3 dBm) = full tx power not allowed by wireless regulatory domain
$ iw reg get
global
country 98: DFS-UNSET
(2402 - 2482 @ 40), (N/A, 20), (N/A)
(5150 - 5250 @ 80), (N/A, 20), (0 ms), DFS
(5250 - 5350 @ 80), (N/A, 20), (0 ms), DFS
(5725 - 5850 @ 80), (N/A, 30), (N/A)

Something in your configuration prevent that hcxdumptool can change the frequency/channel and the ERROR message is shown after the timeout.

By latest commit I added some more information so that we can see what values the driver respond.
Please try latest git hat and comment output of
sudo hcxdumptool -i wlan0 -C

Here is the result :

Once again sorry for the late reply.

Thanks. It looks like this driver neither report a channel (all values < 1000 are channel numbers) nor a frequency (all values >= 1000 are frequencies). I guess it is a driver issue, because all tested drivers (MediaTek, Ralink and Atheros) are working as expected.
Device 021: ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter
$ hcxdumptool -I
wlan interfaces:
phy8	c83a35cc88c9	wlp39s0f3u1u1u4	(driver:rt2800usb)

$ time sudo hcxdumptool -i wlp39s0f3u1u1u4 -C
initialization of hcxdumptool 6.2.7-4-gfe0d024 (depending on the capabilities of the device, this may take some time)...
wlp39s0f3u1u1u4 available frequencies, channels and tx power reported by driver:
2412MHz   1 (20 dBm)
2417MHz   2 (20 dBm)
2422MHz   3 (20 dBm)
2427MHz   4 (20 dBm)
2432MHz   5 (20 dBm)
2437MHz   6 (20 dBm)
2442MHz   7 (20 dBm)
2447MHz   8 (20 dBm)
2452MHz   9 (20 dBm)
2457MHz  10 (20 dBm)
2462MHz  11 (20 dBm)
2467MHz  12 (20 dBm)
2472MHz  13 (20 dBm)
2484MHz  14 ( 0 dBm)

terminating...

real	0m0,711s
user	0m0,027s
sys	0m0,074s

The last hcxdumptool workaround  on this driver was late 2021:
https://github.com/ZerBea/hcxdumptool/issues/199
Unfortunately I'm running out of ideas.
I'll ask the maintainer of the driver.
https://github.com/aircrack-ng/rtl8812au
Maybe he has an idea.

BTW:
The man function to get the frequencies supported by the driver is here:
https://github.com/ZerBea/hcxdumptool/blob/master/hcxdumptool.c#L7713
Afer running this ioctl() call
if(ioctl(fd_socket, SIOCGIWFREQ, &pwrq) < 0) continue;
we should get either an ERROR (in that case we do nothing) or a frequency or a channel in pwrq.u.freq.e.
This is not the case and pwrq.u.freq.e always is 0.

Alright thanks a lot for being concerned I'll wait for your response.
I have to mention though that the awus036ach adapter that I am using is the new version with the USB Type-C, I am not sure if it differs a lot from the previous version but this might help in debugging.

I don't think the issue is related to hcxdumptool, because it looks like the aircrack-ng driver is still working. I got the first response here:
https://github.com/ZerBea/hcxdumptool/issues/199#issuecomment-1215713383
and it looks like everything is still working as expected.
Unfortunately there are many "screws" which can cause the problem:
ALFA AWUS036ACH TYP-C (new device - possible not completely covered by the driver)
VIRTUAL MACHINE (not recommended for hcxdumptool - the VM can prevent that hcxdumptool has full access to the device)
RTL8812AU driver that depend on NETLINK (hcxdumptool use ioctl() system calls instead of NETLINK messages
What happens if you try to the the frequency via iw (NETLINK)?
$ sudo ip link set wlan0 down
$ sudo iw wlan0 set monitor none
$ sudo ip link set wlan0 up
$ sudo iw dev wlan0 set freq 2412
$ sudo iw dev wlan0 set freq 2442
$ sudo iw dev wlan0 set freq 2462

By latest commit I added some initial tests to improve init speed. If this test failed, hcxdumptool terminated immediately.

ALFA AWUS036ACH TYP-C (new device - possible not completely covered by the driver)
I think this is the one. Do you know someone that has the exact same adapter to confirm whether he also encounters the same problem or not?

What happens if you try to the the frequency via iw (NETLINK)?
Everything works fine :

By latest commit I added some initial tests to improve init speed. If this test failed, hcxdumptool terminated immediately.
Here is the result when I tried the latest Git :

Thanks.
Now we know that iw is able to set the frequency by NETLINK message.
Let's try the same using iwconfig by ioctl() system call:
$ sudo hcxdumptool -m wlan0
$ sudo iwconfig wlan0 freq 2.412G
$ iwconfig
$ sudo iwconfig wlan0 freq 2.442G
$ iwconfig

There is a difference in my iwconfig output:
$ sudo hcxdumptool -m wlp39s0f3u1u1u4
setting interface wlp39s0f3u1u1u4 to monitor mode

$ sudo iwconfig wlp39s0f3u1u1u4
wlp39s0f3u1u1u4  IEEE 802.11  Mode:Monitor  Frequency:2.412 GHz  Tx-Power=16 dBm
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on

My interface is not shared (no unassociated ESSID and no Nickname).

Here is the result :

Sorry but if you don't mind me asking, what does a shared interface mean? and how does it differ from a non-shared one?

BTW did you consider trying to fetch the channels supported by the driver instead of the frequencies? (if possible ofc)

Shared Interface means that hcxdumptool doesn't have exclusive access to the interface.
Thanks for the iwconfig results.
Unfortunately, the result is incomplete, because I forgot to mention that you have to do the entire process directly after the device is plugged in. That way we make sure the adapter is not partly init by NETLINK.
$ sudo hcxdumptool -m wlan0
$ sudo iwconfig wlan0 freq 2.442G
$ iwconfig wlan0
There is no difference by setting the frequency or the channel:
struct iw_freq	freq;		/* frequency or channel :
					 * 0-1000 = channel
					 * > 1000 = frequency in Hz */

https://github.com/torvalds/linux/blob/master/include/uapi/linux/wireless.h#L910
Every driver understand this.

Problem is that we request the actual channel/frequency from the driver and it report: 0
if(ioctl(fd_socket, SIOCGIWFREQ, &pwrq) < 0) continue;
https://github.com/ZerBea/hcxdumptool/blob/master/hcxdumptool.c#L7738

Thanks for the reply.
Here is the result after a fresh reboot then plugging in the adapter :

However looks like I figured something out, I set the frequency to 2457hz (which is an arbitrary frequency I chose), then I added -c 10 which is the channel that has that frequency and it worked fine.

So I tried specifying a frequency other than the one that I set my adapter to and it worked fine too.

However when I don't specify a frequency it doesn't work, for example when I run the following commands :
$ sudo hcxdumptool -i wlan0 -o file.pcapng --active_beacon --enable_status=15
$ sudo hcxdumptool -i wlan0 -C

Thanks again.
It looks like the problem is related to the driver. After you plugged in the device neither hcxdumptool, nor iw config is able to set the frequency.
You requested 2.442G via iwconfig wlan0 2.442G , but the adapter remains on 2.412G. That should not happen and point to a driver issue.
Please try
$ sudo hcxdumptool -i wlan 0 -c 2457 instead of -c 10

Here, iwconfig was able to set the channel:
https://github.com/ZerBea/hcxdumptool/issues/227#issuecomment-1216326555
After a reboot and a fresh plug in, the settings by iwconfig are ignored completely (without an ERROR):
https://github.com/ZerBea/hcxdumptool/issues/227#issuecomment-1216452614
I don't think I'm able to code a workaround to this problem.

Please report this issue directly on the driver site:
https://github.com/aircrack-ng/rtl8812au/issues
it could be related to this issue:
https://github.com/aircrack-ng/rtl8812au/issues/587
https://github.com/aircrack-ng/rtl8812au/issues/725

Moved the issue to:
https://github.com/aircrack-ng/rtl8812au/issues/587
and closed it here.

So I did another fresh reboot and then plugged in the adapter and gave it another try, it worked fine this time :

I did this once again to make sure and it worked fine too.
I also tried $ sudo hcxdumptool -i wlan 0 -c 2457 and it worked fine

Nice to hear that it works. But I still suspect a driver issue that caused this trouble. For me it looks like the driver sometimes failed to init the device completely.

Thanks for the reply.
I agree with you it might be a driver issue.
So at the end I think I'll be going with adding the frequencies manually like this :
sudo hcxdumptool -i wlan0 -o file.pcapng --active_beacon --enable_status=15 -c 1,2,3,4,5,...
Its downside is that it takes a long time to start but it eventually works, however does it function the same as when not specifying the frequencies like this or is there a difference between the two commands?
sudo hcxdumptool -i wlan0 -o file.pcapng --active_beacon --enable_status=15

Difference is:
-c 1,2,3,4,5 -> hcxdumptool scan on this channels/frequencies as requested
if -c is absent, hcxdumtool is scanning all available channels from 1 .... last available channel/frequency.
BTW:
1,2,3,4,5 is not good -> 1,6,11,2,1,6,11,3,1,6,11,4 ..... 1,6,11,13 is much better.

From other users I know that the hcxdumptool is working if the rtl8812au driver initialized the device successfully. Unfortunately that sometimes fail.

Just to complete the device list. I got my hands on a notebook of a friend.
Looking good, running a rtw_8821ce device:
$ hcxdumptool -I
wlan interfaces:
phy0	7066557cb81a	wlp4s0	(driver:rtw_8821ce)

$ time sudo hcxdumptool -i wlp4s0 -C
initialization of hcxdumptool 6.2.7-9-g35929c3 (depending on the capabilities of the device, this may take some time)...
wlp4s0 available frequencies, channels and tx power reported by driver:
2412MHz   1 (20 dBm)
2417MHz   2 (20 dBm)
2422MHz   3 (20 dBm)
2427MHz   4 (20 dBm)
2432MHz   5 (20 dBm)
2437MHz   6 (20 dBm)
2442MHz   7 (20 dBm)
2447MHz   8 (20 dBm)
2452MHz   9 (20 dBm)
2457MHz  10 (20 dBm)
2462MHz  11 (20 dBm)
2467MHz  12 (20 dBm)
2472MHz  13 (20 dBm)
2484MHz  14 ( 0 dBm)
5180MHz  36 (30 dBm)
5200MHz  40 (30 dBm)
5220MHz  44 (30 dBm)
5240MHz  48 (30 dBm)
5260MHz  52 (24 dBm)
5280MHz  56 (24 dBm)
5300MHz  60 (24 dBm)
5320MHz  64 (24 dBm)
5500MHz 100 (24 dBm)
5520MHz 104 (24 dBm)
5540MHz 108 (24 dBm)
5560MHz 112 (24 dBm)
5580MHz 116 (24 dBm)
5600MHz 120 (24 dBm)
5620MHz 124 (24 dBm)
5640MHz 128 (24 dBm)
5660MHz 132 (24 dBm)
5680MHz 136 (24 dBm)
5700MHz 140 (24 dBm)
5720MHz 144 (24 dBm)
5745MHz 149 (30 dBm)
5765MHz 153 (30 dBm)
5785MHz 157 (30 dBm)
5805MHz 161 (30 dBm)
5825MHz 165 (30 dBm)

terminating...

real	0m1,706s
user	0m0,059s
sys	0m0,157s

BTW:
1,2,3,4,5 is not good -> 1,6,11,2,1,6,11,3,1,6,11,4 ..... 1,6,11,13 is much better.
Good to know, thanks for pointing it out.

From other users I know that hcxdumptool is working if the rtl8812au driver initialized the device successfully. Unfortunately that sometimes fail.
Yes that's the problem with the rtl8812au driver. Although the adapter is really good but dealing with the driver issues is really frustrating.

BTW specifying multiple frequencies -c 1,... doesn't find a lot of networks when using --do_rcascan
I used this command and left it to run for about 10 minutes and the result was 6 Networks on channel 1 and 2 only, although when I specified channel 1 only more than 10 Networks were found instantly. Am I missing something in the command?
sudo hcxdumptool -i wlan0 --do_rcascan -c 1,2,3,4,5,6,7,8,9,10,11,12,13
Same thing happens if I specified less channels such as -c 1,2

That depend on the stay time on the channel and the BEACON interval of the APs.
A BEACON is transmitted ever 100ms = 10 BEACONs a second from a single AP
If you scan e.g. 13 channels the chance to get a BEACON of an AP is 1:13 (only).

Makes sense.
I tried increasing the stay time but the result didn't change which makes sense since the default stay time which is 4 seconds is more than enough I guess.
In my case is there a method that allows for more BEACONs or I just have to wait?

The stay time on rca_scan mode is 1 second. That is more than enough, because we are waiting for PROBERESPNSEs and BEACONs only.
Please notice that the intensity of an attack decreases (by automatic) the longer you stay on a channel. That prevent spamming a channel if the target is out of tx range or if the target ignore the attacks. That behavior can be controlled by:
--stop_client_m2_attacks=<digit>   : stop attacks against CLIENTS after 10 M2 frames received
                                     affected: ap-less (EAPOL 2/4 - M2) attack
                                     require hcxpcangtool --all option
                                     warning: that can prevent that a CLIENT can establish a connection to an assigned ACCESS POINT
--stop_ap_attacks=<digit>          : stop attacks against ACCESS POINTs if <n> BEACONs received
                                     default: stop after 600 BEACONs
--resume_ap_attacks=<digit>        : resume attacks against ACCESS POINTs after <n> BEACONs received
                                     default: 864000 BEACONs

Currently I'm testing a dynamic channel management (hcxlabtool). If that is working as expected, I'll add it to hcxdumptool.

Latest git head should work now on rt88xxau driver (rtl8811au/rtl8812au/rtl8814au)
https://github.com/aircrack-ng/rtl8812au

Can you please test hcxlabtool which use NL80211 and RTNETLINK instead of WIRELESS EXTENSIONS):
https://github.com/ZerBea/wifi_laboratory
$ make
$ ./hcxlabtool -I interfacename
Thanks.


Question: Embed my css, images, fonts, js and more

Hi,
In my project GoCI, im migrating my web app to a web app with ng2. Everything is working before i migrate to angular-cli.
I have installed angular-cli, create the project, put my source files, bla bla bla.
When i run "ng serve", it is loading and working. But all css, bootstrap files, jquery, are not loaded:
My project and files:
https://github.com/prsolucoes/goci/tree/support-angular2/web-app
Screenshot of the result from "ng build":
https://www.dropbox.com/s/kjop1kv3d4gq6wx/Screenshot 2016-08-23 11.41.14.png?dl=0
My index.html that i tried load my css/js rom bootstrap 3, jqury, toatr, ...:
https://github.com/prsolucoes/goci/blob/support-angular2/web-app/src/index.html
My angular-cli.json file:
https://github.com/prsolucoes/goci/blob/support-angular2/web-app/angular-cli.json
Can anyone help me?
Thanks.

https://github.com/angular/angular-cli/pull/1633 and https://github.com/angular/angular-cli/pull/1747 address your needs, but the webpack version hasn't had a release yet that includes support for global styles and scripts. It should be available to install soon.


Issue #359 tofu-custom allow customization of script parameters

Main changes:

User-customizable default parameters of tofuplot and tofucalc have been moved to a dedicated module tofu/scripts/_def.py
tofu-custom now copies this module into the local .tofu/ directory so the user can edit these parameters

Issues:
Fixes, in devel, issue #359

Codecov Report

Merging #360 into devel will decrease coverage by 0.06%.
The diff coverage is 1.72%.

@@            Coverage Diff            @@
##           devel     #360      +/-   ##
=========================================
- Coverage   39.3%   39.24%   -0.07%
=========================================
  Files         84       85       +1
  Lines      24587    24625      +38
=========================================
  Hits        9663     9663
- Misses     14924    14962      +38

Impacted Files
Coverage Δ

tofu/scripts/tofucustom.py
0% <0%> (ø)
:arrow_up:

tofu/scripts/_def.py
0% <0%> (ø)

tofu/scripts/tofuplot.py
0% <0%> (ø)
:arrow_up:

tofu/scripts/tofucalc.py
0% <0%> (ø)
:arrow_up:

tofu/version.py
100% <100%> (ø)
:arrow_up:

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 4784c5b...5a8d273. Read the comment docs.


MSID: 98293 Version: 1 DOI: 10.1101/2<IP_ADDRESS>4655

MSID: 98293
Version: 1
Preprint DOI: https://doi.org/10.1101/2<IP_ADDRESS>4655
Step 1. Awaiting reviews
Editorial to post reviews via hypothesis
Useful links:

DocMap: https://data-hub-api.elifesciences.org/enhanced-preprints/docmaps/v2/by-publisher/elife/get-by-manuscript-id?manuscript_id=98293
New model tracking: https://docs.google.com/spreadsheets/d/1_fHaoOy7hjyocptKtVJRijeNpUY4hBS7Ck_aVmx6ZJk/
Reviews on sciety: https://sciety.org/articles/activity/10.1101/2<IP_ADDRESS>4655

For trouble shooting (e.g. no Docmaps available):

DocMap issue addressing: https://miro.com/app/board/uXjVNCwK6EI=/
Explore DataHub DocMaps API: https://lookerstudio.google.com/reporting/4c2f0368-babb-4beb-b5b3-497e7e7b0f08/page/ejphD
Unmatched submissions and preprints: https://lookerstudio.google.com/u/0/reporting/9f86204f-3bf7-477c-9b18-5c5ef141bf69/page/p_gxi57ha93c
Unmatched manuscripts spreadsheet: https://docs.google.com/spreadsheets/d/15QcK8w-ssB7109RQEDtFpJPZ0J5HTGxoHa_2TtpMBbg/edit#gid=1336081641

Step 2. Preview reviewed preprint
Production QC content ahead of publication
Instructions:

QC preview: https://prod--epp.elifesciences.org/previews/98293v1
Update ticket with any problems (add blocked label)
When QC OK, add QC OK label to ticket and add publication date and time to https://docs.google.com/spreadsheets/d/1amAlKvdLcaDp5W8Z8g77NmkwbMF5n_u89ArSqPMO8jg
Move card to next column
(At end of the day post link in #enhanced-preprint and ask for PDF to be generated)

Useful links:

Preprint DOI :  https://doi.org/10.1101/2<IP_ADDRESS>4655
Confirm reviews returned by EPP: https://prod--epp.elifesciences.org/api/reviewed-preprints/98293/v1/reviews
To update the MECA path in the docmap: https://docs.google.com/spreadsheets/d/1mctCQuNFBjSn97Lihy7_vBO6z7-N-oqyLv4clyi6zHg

Step 3: Awaiting search reindex
This step adds the reviewed preprint to the homepage: https://elifesciences.org
The search reindex is triggered once an hour. We need the reviewed preprint to be indexed as the search application serves the journal homepage.
Useful links:

Jenkins pipeline to reindex search can be triggered sooner or monitored here: https://alfred.elifesciences.org/job/process/job/process-reindex-reviewed-preprints/

Step 4: Published! PDF requested
Waiting for PDF to be generated
Useful links:

PDF tracking: https://docs.google.com/spreadsheets/d/106_XeDjmuBae7gexOTNzg60lapeqjl2aRn9DzupGyS8/

Step 5: Introduce PDF to data folder and git repo
Upload PDF to relevent folder in git repo https://github.com/elifesciences/enhanced-preprints-data/
Step 6: Done!

[ ] Kettle is on!

warn: [duplicate-author-test] There is more than one author with the following name(s) - Zhongzhou Yang - which is very likely be incorrect.


Documenting TaxBrain/Tax-Calculator Interactions

High-level documentation of how TaxBrain (TB) works as an interface to Tax-Calculator (TC)
This initial comment will eventually contain the high-level documentation for static tax analysis.
I will edit it as people answer questions posed in subsequent comments.
At the highest level of abstraction, TB contains three components:

TB INPUT GUI  This component creates the policy-parameter input form in a browser and sends the user-specified input to TC for calculation.

TB FILE UPLOAD This component creates the reform-file and assumption-file upload form and sends the user-specified forms to TC for calculation.

TB RESULTS GUI This component creates the TC-results-viewing forms in a browser and allows users to download the tax-calculation results in several formats.

The relationship between these three TB components and TC can be visualized as follows:
----------------               ------------------
| TB INPUT GUI |               | TB FILE UPLOAD |
----------------               ------------------
          |                         |
          |                         |
          |          ------         |
          ---------> | TC |<---------
                     ------
                       |
                       |
------------------     |
| TB RESULTS GUI |<-----
------------------

TB INPUT GUI DOCUMENTATION

Form-Creation Code Location
... info goes here ...

Input-Sending Code Location
... info goes here ...

Kind of Input Sent
... info goes here ...

TB FILE UPLOAD DOCUMENTATION

Form-Creation Code Location
... info goes here ...

Input-Sending Code Location
... info goes here ...

Kind of Input Sent
JSON reform file and JSON assumption file.

TB RESULTS GUI DOCUMENTATION

Kind of Results Received
... info goes here ...

Results-Receiving Code Location
... info goes here ...

Form-Creation Code Location
... info goes here ...

Results-Download Code Location
... info goes here ...

@talumbau @PeterDSteinberg @brittainhard
@MattHJensen @hdoupe @GoFroggyRun

First question about issue #604 is whether this high-level view of TB/TC interactions is correct.
Second set of questions is where is the code corresponding to these components.  In which webapp-public directories?  In which files? In which functions?
Even if you know (or think you know) answers to only a part of the whole picture, please contribute your knowledge by adding a comment to issue #604.
@talumbau @PeterDSteinberg @brittainhard
@MattHJensen @hdoupe @GoFroggyRun

TB INPUT GUI DOCUMENTATION

Form-Creation Code Location
The format of the TaxBrain input page is set in templates/taxbrain/input_form.html.

Input-Sending Code Location
The input from the submitted form is received by webapp/apps/taxbrain/views.py.  The function personal_results receives the input data and cleans and validates it in the PersonalExemptionsForm class in taxbrain/forms.py.  The data is sent to the function views.process_model which submits the data to the function DropqCompute.submit_dropq_calculation in compute.py.

Kind of Input Sent
The input is received as a requests object where request.Request is a dictionary containing reform parameters, the start year, and a boolean variable indicating whether to do a full calculation or not.  This data is cleaned and validated and then sent to the function DropqCompute.submit_dropq_calculation in taxbrain/compute.py.  The variables sent are start_year and worker_data which is a Python dictionary containing the cleaned reform parameters.

TB FILE UPLOAD DOCUMENTATION

Form-Creation Code Location
The format of the TaxBrain input page is set in templates/taxbrain/input_file.html.

Input-Sending Code Location
The input is received in webapp/apps/taxbrain/views.py by the function file_input.

Kind of Input Sent
The input is received as a requests object where request.Request is a dictionary and request.Request['start_year'] is the first budget year of the reform.  request.File is a dictionary where request.File['docfile'] is the uploaded json reform file and request.File['assumpfile'] is the uploaded json assumption file if one was uploaded.  These files are formatted into a taxcalc.Policy dictionary using the function taxcalc.Calculator.read_json_param_files.  The resulting dictionaries are sent to the function DropqCompute.submit_dropq_calculation in compute.py.

@martinholmer This is my understanding of how the data is received and formatted.  I hope this helps with the documentation.

@hdoupe,  Thanks so much for your contribution to TaxBrain issue #604.
This information will be very helpful going forward.


CL - List Viper Implementation

📋 PR Description
This PR adds the List Module using VIPER architecture in SwiftUI to display and manage a dynamic list with item selection.

✅ Checklist

[x] Code follows the project standards and guidelines.
[x] Relevant unit tests are written and all tests are passing.
[x] Test coverage is adequate for the changes.
[x] Any unnecessary files or debug statements have been removed.
[ ] Documentation is updated where necessary.
[x] The PR has been reviewed by at least one team member before merging.

🛠 Steps to Test

Navigate to the List Page from the home screen.
Verify the list items are displayed correctly.
Use the back button to return to the home screen.

🔗 Related Links

Documentation: https://developer.apple.com/documentation/swiftui/list

📷 Screenshots (Optional)

HomeView Screen
List View

All conflicts are resolved @gurkanfikretgunak


Contents of volume is deleted in version 2.1.36 and later

I create an s3 container according to the following compose file, then I post some data to the container.
version: '3.7'
services:
  s3:
    image: adobe/s3mock:2.1.36
    ports:
      - "9090:9090"
    environment:
      - initialBuckets=myFirstBucket
      - root=/data
    volumes:
      - s3_data:/data
volumes:
  s3_data:

I can inspect the volume s3_data and see that the data is there as expected.
However, if I stop the container the data in the volume is suddenly lost, which was not the case with version 2.1.34.

Yes, that is correct.
Before, S3Mock would never delete any files, cluttering every developer's machine or build system.
Now it deletes any files that were created during it's lifetime.

Hmm, ok.
But if I explicitly create a volume that maps to the data directory of the container I would certainly expect it to remain even after the container is stopped, and that is also how it works for all other database containers that I have used.

@muskedunder Just released 2.2.2 containing this change.


how to scroll 1 pixel

can i use vmulti to scroll 1 pixel like using touch pad? i can use SendInput simulate the operator ,but if i use vmulti , it at least scroll 120 pixel

I'm not the author, but seems '120 pixels' is an OS-specific behavior when it receives one wheel-scroll event from HID device (in simple terms). And probably this value can be adjusted in settings, but it is unlikely that it could be 1 pixel and unlikely this can be changed from vmulti driver.
Example for Windows

![image](https://user-images.githubusercontent.com/23584913/122302240-7edd7f80-cf0a-11eb-8660-f8d433ca2fb7.png)

yes I think ihor is most likely correct


create automated testing of the NE update

[ ] invoke update action
[ ] on update success, run assertions on the major states of the NE components (take from the deployment automation?)
[ ] start/stop an app (take from the deployment automation?)

This task is now included in nuvlaedge/validation#3


How to put images into cache that are already loaded

I'm trying to load volume using cornerstoneWADOImageLoader.wadouri.loadImage rather than streaming-wadors because wadors protocol is not available in my server environment.
After I loaded images and extracted meta data, I realized that I can't find a function to cache images. So currently my implementation loads images twice (for prefetch and volume generation). I wish there was a function like this: cornerstone.cacheImage(imageId, image)

Hey, the caching is done automatically if you have registered image loaders and using cornerstone to load them.  I think it's because the volumeLoader executes makeVolumeMetaData before loading prefetchIds. Thus I need to call cornerstone.imageLoader.loadAndCacheImage or cornerstone.imageLoader.loadImage before creating a volume.
I tried both ways, and only cornerstone.imageLoader.loadImage worked well.
What I found is, if cached images exist, cornerstone would rescale the image, which was unexpected behavior in my app's scenario. It results the viewport looks completely white.
I am not sure the dicom files were loaded twice, because chrome network tab shows only one request per file, even though I used cornerstone.imageLoader.loadImage.

If the images are cached, no problem. Otherwise, it will be perfect if I can pass an argument needToRescale: boolean to createAndCacheVolume so that unexpected rescaling would not occur.

 I think it's because the volumeLoader executes makeVolumeMetaData before loading prefetchIds. Thus I need to call cornerstone.imageLoader.loadAndCacheImage or cornerstone.imageLoader.loadImage before creating a volume.
I tried both ways, and only cornerstone.imageLoader.loadImage worked well.
What I found is, if cached images exist, cornerstone would rescale the image, which was unexpected behavior in my app's scenario. It results the viewport looks completely white.
I am not sure the dicom files were loaded twice, because chrome network tab shows only one request per file, even though I used cornerstone.imageLoader.loadImage.

If the images are cached, no problem. Otherwise, it will be perfect if I can pass an argument needToRescale: boolean to createAndCacheVolume so that unexpected rescaling would not occur.

I believe this issue can be closed as soon as #1509 is merged.

Retrieving and storing the image data is now done manually when the image is displayed using the viewport API.
Caching the metadata is performed by the WADO image loader (metadata provider), if this behaviour needs to be changed then #1509 can be used to write a  custom metadata provider and/or image loader which performs the correct behaviour.
Whether to perform prescaling is now chosen automatically on main.


influxdb ignores logging "level" configuration

Steps to reproduce:

Install influxdb 1.7.10 release 1(centos 7)
Configure logging section
Watch for rsyslog logs

Expected behavior:
As in documentation https://docs.influxdata.com/influxdb/v1.7/administration/config#logging-settings
level = "error"
The log level to be emitted. Valid values are error, warn, info(default), and debug. Logs that are equal to, or above, the specified level will be emitted.
Actual behavior:
with level "error" configured we are still seeing level 6 messages (info)
influxd[21052]: ts=2020-03-11T08:57:27.136522Z lvl=info msg="Dropping point" log_id=0LUC5WhG000 service=collectd name=snmp_value error="NaN is an unsupported value for field value"
Environment info:

System info: Linux 3.10.0-1062.4.1.el7.x86_64 x86_64
InfluxDB version: InfluxDB v1.7.10 (git: 1.7 f46f63d4e2d9684a2dd716594ab609ccd32f0a5b)

Config:
[logging]
format = "auto"
level = "error"
suppress-logo = true

@alexiff thanks for opening this. I wonder if the level in the log msg field isn't the same as the level in the config.
Based on this line: https://github.com/influxdata/influxdb/blob/281c08ec50834e0bbfcb3f982b4938bdc02733f7/models/points.go#L1314
that might be what's happening.

@russorat You want to say that this is an error message but influx marks it as "info"? If yes then it's another bug?
Also other messages that are clearly(from my point of view) "info" level are still passed :
ts=2020-03-12T21:40:52.712904Z lvl=info msg="Cache snapshot (end)" log_id=0LUC5WhG000 engine=tsm1 trace_id=0LWAw8YG000 op_name=tsm1_cache_snapshot op_event=end op_elapsed=1247.205ms

Don't know if this issue is still active but I observed the same issue on v1.8.10 (despite setting log level to "warn", info logs are still outputted)


Somwhat confusing port mapping in example

Hi, this just a minor comment. For clarity in the example hello-k8s, I recommend to have separate port numbers for container, service, and local port, like:
containerPort: 8888  (deployment.yaml)
port: 9999 (service.yaml)
and then issue the command:
# kubectl port-forward service/demo 19999:9999
Forwarding from <IP_ADDRESS>:19999 -> 8888
Forwarding from [::1]:19999 -> 8888
Handling connection for 19999
Handling connection for 19999
I also noticed another confusing thing regarding the resulting output. The service port number 9999 is not mentioned at all in the log output. However, that's another story and outside of this scope :-)
In addition, on page 62, the service port is set to 9999, but the port-forwarding command refers to 8888. The results in an error:
# kubectl port-forward service/demo 9999:8888
error: Service demo does not have a service port 8888

Thanks for the feedback @magnusaxelqvist! I think that is a good idea and would help clarify the difference between the container's port, the service's port, and the port that is used to forward. I'll double check the example on pg. 62. It's possible it was a typo or copy/paste error. Thanks again for opening the issue!

Sorry for the delay @magnusaxelqvist. This was changed in the latest edit to the book to use a consistent port between the pod and service (8888). I updated the Errata in O'Reilly and added a note to the Known Issues in the README, along with a comment in the example service YAML. Thanks again for opening the issue and sorry for any confusion.


CEL not finding attribute JWT

Describe what are you trying to do
Hi, I'm working on a project for univerity. I have an Enpoint (v1/users/{uuid}) where I want grant the user access if the user is either an Admin, SuperAdmin or if the parameter uuid is equal to the users uuid in the access token. I tried to accomplish this by using CEL to check the JWT user (which is the uuid) and the uuid from the url. I followed the docs but can't get it to work. If I use req_params.Uuid == JWT.user as check_expr I'm getting
INFO CEL: /v1/users/:uuid rejecter #0 result: no such attribute: id: 1 , names: [req_params] - err: no such attribute: id: 1 , names: [req_params]
| 401 |    1.996869ms |   <IP_ADDRESS> | GET      "/v1/users/f0b795c5-2586-45c1-8748-f979d07a6b59"

If I try req_params.Uuid.matches(JWT.user) || ('superAdmin' in JWT.roles || 'admin' in JWT.roles) I'm getting
[KRAKEND] 2021/07/20 - 20:56:04.115 ▶ INFO CEL: proxy /v1/users/:uuid-pre evaluator #0 result: no such attribute: id: 4 , names: [JWT] - err: no such attribute: id: 4 , names: [JWT]
[GIN] 2021/07/20 - 20:56:04 | 500 |    6.403743ms |   <IP_ADDRESS> | GET      "/v1/users/f0b795c5-2586-45c1-8748-f979d07a6b59"
Error #01: CEL: request aborted by &{Env:0xc005d4a840 evalOpts:0 defaultVars:<nil> dispatcher:0xc005e9b6f8 interpreter:0xc005eab4a0 interpretable:0xc005eaf620 attrFactory:0xc005eaf5c0}

I don't know how to progress here and how to accomplish that I can test the user id of the JWT with the user id supplied in the url parameters.
Your configuration file
The crucial part of the configuration file
{
      "endpoint": "/v1/users/{uuid}",
      "backend": [
        {
          "url_pattern": "/users/{uuid}/",
          "host": ["http://users-api:5000"]
        }
      ],
      "method": "GET",
      "extra_config": {
        "github.com/devopsfaith/krakend-jose/validator": {
          "alg": "HS512",
          "audience": ["http://localhost:9000"],
          "roles_key": "roles",
          "issuer": "http://users-api:5000",
          "jwk-url": "http://users-api:5000/auth/jwk/",
          "disable_jwk_security": true
        },
        "github.com/devopsfaith/krakend-cel": [
          {
            "check_expr": "req_params.Uuid.matches(JWT.user) || ('superAdmin' in JWT.roles || 'admin' in JWT.roles)"
          }
        ]
      }
},

Commands used
How did you start the software?
docker-compose up

api-gateway:
    image: devopsfaith/krakend:config-watcher
    restart: on-failure
    ports:
      - "${API_GATEWAY_PORT}:8080"
    networks:
      - users
      - tracing
    depends_on:
      users-api:
        condition:
          service_healthy
    volumes:
      - ./krakend:/etc/krakend

Logs
[KRAKEND] 2021/07/20 - 20:56:04.115 ▶ INFO CEL: proxy /v1/users/:uuid-pre evaluator #0 result: no such attribute: id: 4 , names: [JWT] - err: no such attribute: id: 4 , names: [JWT]
[GIN] 2021/07/20 - 20:56:04 | 500 |    6.403743ms |   <IP_ADDRESS> | GET      "/v1/users/f0b795c5-2586-45c1-8748-f979d07a6b59"
[00] Error #01: CEL: request aborted by &{Env:0xc005d4a840 evalOpts:0 defaultVars:<nil> dispatcher:0xc005e9b6f8 interpreter:0xc005eab4a0 interpretable:0xc005eaf620 attrFactory:0xc005eaf5c0}

Thanks for any help!

Hi @JenSeReal - did you get anywhere on this?
We are having a similar issue where we're trying to compare a JWT property against the request_param using CEL.
Our current assumption is that as the JWT and request validation happens at different steps in the pipeline, these don't have access to the same data in each. So JWT is only available during JWT step and request_params in the request step.
Would love any direction others have had working on something similar.
We're currently looking to see if the Lua scripting is a better alternative, will report back here if we make progress.

@timothyclifford I actually solved this issue with Lua and got it working. Unfortunately our the git Server of my University is currently down, but when they are up again I could post my solution in here. Roughly speaking, i did the JWT Validation with Jose, then propagated the userid claim I'm storing in the JWT to a header named X-User. Then I took the Lua type router and in the pre option I just extracted the X-User header and param userid and compared them. I'm also storing the roles of a user in the JWT. Just like the userid i propagated the roles and tried to find the string of the role. If one of both match the request is going to the backend, otherwise the request gets rejected with the custom_error function with a 403 status code.
I'm hoping the git servers are available soon, so I could share the code with you.

@timothyclifford here is the part of the configuration and the lua script for my solution:
krakend.json
{
      "endpoint": "/v1/users/{userId}",
      "headers_to_pass": ["X-User", "X-Roles", "X-TokenId"],
      "method": "GET",
      "extra_config": {
        "github.com/devopsfaith/krakend-jose/validator": {
          "alg": "HS512",
          "audience": ["http://localhost:9000"],
          "issuer": "http://users-api:5000",
          "jwk-url": "http://users-api:5000/auth/jwk",
          "disable_jwk_security": true,
          "propagate-claims": [
            ["user", "X-User"],
            ["roles", "X-Roles"],
            ["jit", "X-TokenId"]
          ]
        },
        "github.com/devopsfaith/krakend-lua/router": {
          "sources": ["scripts/check_if_userid_or_admin.lua"],
          "pre": "pre_check_if_userid_or_admin(ctx.load(), 'admin')",
          "live": true,
          "allow_open_libs": true
        }
      },
      "backend": [
        {
          "url_pattern": "/users/{userId}",
          "host": ["http://users-api:5000"]
        }
      ]
}

The Lua script in scripts/check_if_userid_or_admin.lua
function pre_check_if_userid_or_admin( req, role )
  local param_userid = req:params("userId");
  local jwt_userid = req:headers("X-User");
  local jwt_roles = req:headers("X-Roles");

  local is_admin = string.find(jwt_roles, role);
  local is_user = jwt_userid == param_userid;

  if not (is_admin or is_user)  then
    return custom_error("Not allowed on this route.", 403);
  end
end

The jwt_roles is a json array with the roles of the user (I save the roles of the user in the jwt). The rest is pretty self-explanatory.
I hope my solution helps you. And I don't think that this is a problem of when the jwt-variables are loaded in CEL. It's just if you use 2 different variables it does not work. If you use just the jwt variable everything works just fine. Instread of writing Lua scripts i was also thinking of writing a go plugin to compare the values. But i ran out of time for the assignment.

Thanks for sharing @JenSeReal, giving the Lua a go ourselves. Will report back any extra findings we have.
Thanks again!

In CEL, you can't evaluate the request and the JWT at the same time. But you could export the claim as a header and then evaluate it with other parts of the request

@kpacha

In CEL, you can't evaluate the request and the JWT at the same time. But you could export the claim as a header and then evaluate it with other parts of the request

How can I do that, I could not found the documentation for this part?

@vanntrong check this link: https://www.krakend.io/docs/authorization/jwt-validation/#propagate-jwt-claims-as-request-headers


Fix #5112. Broken links

What does this PR do?
Remove resource(s) | Improve repo
For resources
Description
Why is this valuable (or not)?
Fixes #5112
How do we know it's really free?
Wayback machine mirrors
For book lists, is it a book? For course lists, is it a course? etc.
Courses/guides
Checklist:

[x] Read our contributing guidelines
[x] Search for duplicates. #5112
[x] Include author(s) and platform where appropriate.
[x] Put lists in alphabetical order, correct spacing.
[x] Add needed indications (PDF, access notes, under construction)

Followup

Check the output of Travis-CI for linter errors!

nice touch with the archived note.


What-If blocks nested Management group deployment

Describe the bug
When trying to deploy a nested Management-Group Structure with bicep What-IF an AuthorizationFailed occurs because it tries to read the not-existing Management Group.
To Reproduce
Steps to reproduce the behavior:
Try to deploy a nested ( 3-Levels) Management-Group structure which doesn't exists before.
Expected behavior
AuthorizationFailed
MultipleErrorsOccurred - Long running operation failed with      | status 'Failed'. Additional Info:'Multiple error occurred:      | DeploymentWhatIfResourceError,DeploymentWhatIfResourceError,DeploymentWhatIfResourceError,DeploymentWhatIfResourceError,DeploymentWhatIfResourceError,DeploymentWhatIfResourceError. Please see details.' DeploymentWhatIfResourceError - The request to predict template deployment changes to scope '/providers/Microsoft.Management/managementGroups/XXX' has failed due to a resource error. See details for more information. AuthorizationFailed - The client 'XXX' with object id 'XXX' does not have authorization to perform action 'Microsoft.Management/managementGroups/read' over scope '/providers/Microsoft.Management/managementGroups/XXX' or the scope is invalid. If access was recently granted, please refresh your credentials. DeploymentWhatIfResourceError - The request to predict template deployment changes to scope '/providers/Microsoft.Management/managementGroups/XXX' has failed due to a resource error. See details for more information. AuthorizationFailed - The client 'XXX' with object id 'XXX' does not have authorization to perform action 'Microsoft.Management/managementGroups/read' over scope '/providers/Microsoft.Management/managementGroups/XXX' or the scope is invalid. If access was recently granted, please refresh your credentials. DeploymentWhatIfResourceError - The request to predict template deployment changes to scope '/providers/Microsoft.Management/managementGroups/XXX' has failed due to a resource error. See details for more information. AuthorizationFailed - The client 'XXX' with object id 'XXX' does not have authorization to perform action 'Microsoft.Management/managementGroups/read' over scope '/providers/Microsoft.Management/managementGroups/XXX' or the scope is invalid. If access was recently granted, please refresh your credentials. DeploymentWhatIfResourceError - The request to predict template deployment changes to scope '/providers/Microsoft.Management/managementGroups/XXX' has failed due to a resource error. See details for more information. AuthorizationFailed - The client 'XXX' with object id 'XXX' does not have authorization to perform action 'Microsoft.Management/managementGroups/read' over scope '/providers/Microsoft.Management/managementGroups/XXX' or the scope is invalid. If access was recently granted, please refresh your credentials. DeploymentWhatIfResourceError - The request to predict template deployment changes to scope '/providers/Microsoft.Management/managementGroups/XXX' has failed due to a resource error. See details for more information. AuthorizationFailed - The client 'XXX' with object id 'XXX' does not have authorization to perform action 'Microsoft.Management/managementGroups/read' over scope '/providers/Microsoft.Management/managementGroups/XXX' or the scope is invalid. If access was recently granted, please refresh your credentials. DeploymentWhatIfResourceError - The request to predict template deployment changes to scope '/providers/Microsoft.Management/managementGroups/XXX' has failed due to a resource error. See details for more information. AuthorizationFailed - The client 'XXX' with object id 'XXX' does not have authorization to perform action 'Microsoft.Management/managementGroups/read' over scope '/providers/Microsoft.Management/managementGroups/XXX' or the scope is invalid. If access was recently granted, please refresh your credentials.
Screenshots
If applicable, add screenshots to help explain your problem.
Client [e.g. PowerShell, CLI, API)
Task         : Azure PowerShell Description  : Run a PowerShell script within an Azure environment Version      : 5.202.0
Additional context
Add any other context about the problem here.

Duplicate of #162


add 413 requested entity too large handling for bop

@schellj you should decide if you want this done.

@robnagler is this for the ability to specify an error page for 413s? Would be nice to have as the user currently just gets the default nginx error page, though that probably doesn't happen much.

Yes, we can write a custom page similar to maintenance down page. Just need to do it.


DV Resolve - rendering with delivery

mainly focusing on Audio flattening and publishing
[cuID:PYPE-1139]

We had overcome this issue with OTIO implementation. Audio flattening is done with ffmpeg openpype\plugins\publish\extract_otio_audio_tracks.py


External clipboard does not work

Description of the problem or steps to reproduce
I installed micro on Fedora 32 Workstation. I use micro on Wayland. I have installed wl-clipboard. But I cannot copy paste  between micro and other applications. Only the internal clipboard works.
I removed micro, installed wl-clipboard, then installed micro, rebooted but it still did not work.
Specifications
Commit hash: c51f849
OS: Fedora 32 Workstation
Terminal: gnome-terminal

It seems like you are not using the most recent version of micro. I recommend upgrading because the wl-clipboard support is new since Feb 25.

It seems like you are not using the most recent version of micro. I recommend upgrading because the wl-clipboard support may be new since Feb 25 (I'm not sure).

OK. I installed this from the Fedora repository. Guess it has an older version. I'll try the latest and see. Thanks.

Hi @IROdEvO , any update on this?
I'm facing the same issue, on Debian 10. It works fine when I switch to Xorg

Hi @IROdEvO , any update on this?
I'm facing the same issue, on Debian 10. It works fine when I switch to Xorg

I stopped using micro a while ago. I'm using nano on Fedora 34. I don't recall that I ever managed to sort out that issue unfortunately.
Perhaps I should test it again and see. I'll install micro today and see if it works on Wayland. But I'm using Fedora 34 and it is likely that it has a more recent version of micro than what's on Debian 10.

Hi @IROdEvO, and thanks for the follow-up!
to be precise, my issue was to be able to copy/paste as Root or with sudo
Here is what I tested before switching to Xorg:
apt install xclip xsel wl-clipboard

I added the following lines in /root/.config/micro/settings.json
    {
        "clipboard": "external"
    }

Then, copy/pasting as root was working inside the same document, but I was not able to paste inside another application

I'm using Fedora 34 and it is likely that it has a more recent version of micro than what's on Debian 10.

Indeed, here is the version I run:

micro --version
Version: 2.0.6

IIRC, I had installed the same packages as well. But it did not work on Wayland to me either. I still have no tested a recent version. I'll be doing it today. I'll state the results once done.

@Tommimon Copying & pasting between micro running as root and other applications works for me with newest micro (in X11). Could you describe your environment more precisely (micro version, X11 or Wayland, desktop environment, terminal)?

When I ran into this issue I was using Hyprland, but on GNOME everything works fine, so maybe is not micro fault.

Micro passes copied string to external clipboard when I open a file as a regular user, but not when micro is executed with sudo
fedora 42, wayland
wl-clipboard 2.2.1


[nfc][cxx-interop] Add three utilities to the ClangModuleLoader.

This adds importDeclDirectly, findLookupTable, importName, and getEffectiveClangContext. These are all needed for #38675.
This is part one of many in an effort to split #38675 into a few pieces.

@swift-ci please smoke test.

@swift-ci please smoke test.

@swift-ci please test Windows.

@swift-ci please test windows


IS detected and other Questopn

Can i make my private on ? external / internal ? free right ? can i contribuate ? thanks; have a great day, and a great elove story

No its not detected, its external, sure you can contribute. No idea what you meant by "Can i make my private on ?"

Can i create my prviate cheat based on these source

Sure

Thanks, lets work ;) You are a great man.

Please star the project if you enjoy the cheat :)


Documentation about units

This is mostly a question. I just started looking into using parcels. Going over the examples, I wondered how the reading functions in parcels know what units the velocities (U, V, W) have. Does FieldSet.from_netcdf() read the metadata of the netcdf files (e.g., "units: m s-1") or is it assumed that the velocities are given in m/s? I couldn't find any info about required units in the documentation, so I wanted to check if velocities (U, V, W) should always be in m/s?

No, we do not read the units of the fields such that we don't do any automated rescaling. If your data is not in m/s, you can use the function Field.set_scaling_factor()
It is noteworthy that we do the scaling between m/s and °/s, such that it is important that you set if your mesh is spherical or flat. You can check it by printing field.grid.mesh
When you use Field.from_netcdf, the default value is spherical

Thanks @jetesdal, for this question. I've now added a tutorial that further explains how UnitConverter objects are used 'under the hood' in Parcels; see also #515. Hope that this clarifies your question further


Too many requests. Please try again.(react-native)

{"error": "key_error_code:ERROR_B2B_API_RETURNED_ERRORkey_error_result:{\"success\":false,\"code\":\"TOO_MANY_REQUESTS\",\"message\":\"Too many requests. Please try again.\",\"data\":{}}", "status": "FAILURE"}

hey, are you still facing this?


[FEATURE REQUEST] export OSM id's

Is your feature request related to a problem? Please describe.
Current utlity doesn't export source OSM ids (way/node).
Describe the solution you'd like and provide pseudocode examples if you can
pseudocode'ish
expandedEdge{
    ID:        newEdgeID,
    Cost:      cost,
    Geom:      []geoPoint{a, b},
    WasOneWay: true,
    osm_way_id: %OSM_PARENT_WAY_ID%
    osm_node_ids: [%OSM_PARENT_NODE_ID_SOURCE%, %OSM_PARENT_NODE_ID_TARGET%]
}

And then export it into CSV as separate columns
Describe alternatives you've considered and provide pseudocode examples if you can
nope
Additional context
nope

Implemented in https://github.com/LdDl/osm2ch/pull/12
fmt.Sprintf("%d", edge.SourceOSMWayID),
fmt.Sprintf("%d", edge.TargetOSMWayID),
fmt.Sprintf("%d", edge.SourceComponent.SourceNodeID), fmt.Sprintf("%d", edge.SourceComponent.TargetNodeID),
fmt.Sprintf("%d", edge.TargeComponent.SourceNodeID), fmt.Sprintf("%d", edge.TargeComponent.TargetNodeID),

If we will need all Nodes' IDs along the certain Way open new issue for new feature


Filter JSON Data with sub array elment

I have two dimensions arrays, So I want to filter each element's second subelement.
Suppose I have the following data
var data =[{
        name : "1",
        p :[["Data1","IRA","Data2"],["Data4","USA","Data5"]]
        },
        {
        name : "2",
        p :[["Data5","FRA","Data6"],["Data7","IND","Data8"]]
        }];

I want filter data
P->Arrays->[1] IN ("INR","USA")
var SQL =  "SELECT p FROM ?   ";
So my out will be like
["Data4","USA","Data5"]
["Data7","IND","Data8"]

Use .sort() on the data array after to get the right sorting.


re-doing Docker Engine overview topics for v.1.12

- What I did
- How I did it
- How to verify it
- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)
Signed-off-by: Victoria Bialas<EMAIL_ADDRESS>

@SvenDowideit  please take a look, this is the start of re-doing the Docker Engine overview. Will update this file more with current content, but this is a start of it.

CI failures are genuine; looks like there are some links to this page broken by this;
00:50:31 * link error: (in page engine/reference/api/docker_remote_api_v1.23.md) ../../quickstart.md#bind-docker-to-another-host-port-or-a-unix-socket
00:50:31 * link error: (in page engine/reference/api/docker_remote_api_v1.20.md) ../../quickstart.md#bind-docker-to-another-host-port-or-a-unix-socket
00:50:31 * link error: (in page engine/reference/api/docker_remote_api_v1.18.md) ../../quickstart.md#bind-docker-to-another-host-port-or-a-unix-socket
00:50:31 * link error: (in page engine/reference/api/docker_remote_api_v1.22.md) ../../quickstart.md#bind-docker-to-another-host-port-or-a-unix-socket
00:50:31 * link error: (in page engine/reference/api/docker_remote_api_v1.21.md) ../../quickstart.md#bind-docker-to-another-host-port-or-a-unix-socket
00:50:31 * link error: (in page engine/reference/api/docker_remote_api_v1.24.md) ../../quickstart.md#bind-docker-to-another-host-port-or-a-unix-socket
00:50:31 * link error: (in page engine/reference/api/docker_remote_api_v1.19.md) ../../quickstart.md#bind-docker-to-another-host-port-or-a-unix-socket
00:50:31

Should we update the top level README.md as well to match? This has struck me as a bit dated for a while.

@SvenDowideit @thaJeztah @justincormack All the broken links are pointing to one particular subtopic in quickstart.md. I do have quickstart.md re-directed to understanding-docker.md, but that won't resolve these more specific links. The (now) missing subtopic is the one you and I looked at, Sven: https://docs.docker.com/engine/quickstart/#bind-docker-to-another-host-port-or-a-unix-socket.
I can fix this by moving this one topic somewhere else, and then updating those links to its new location, but I'm not sure where to elegantly add it in. (My knowledge of networking is not up to this task right now.) The topics I've looked at where it might fit are:

User Guide "network containers" example: https://docs.docker.com/engine/userguide/containers/networkingcontainers/

User Guide "network configuration" topic, somewhere in there ( first topic is here: https://docs.docker.com/engine/userguide/networking/ and out of date index page for it is here: https://docs.docker.com/engine/userguide/)

Do either of those places make sense? I'd welcome some ideas on integrating this topic into a place where it makes sense, and other intro text to to describe context for it. It seems both legacy and still relevant.
Also, as a very important aside, when I was browsing through network topics, I noticed references to examples that are "dependent on Virtual Box being installed" (e.g., https://docs-preview.docker.com/engine/userguide/networking/get-started-overlay/#prerequisites) . I imagine there are a lot of these peppered throughout the docs. How do we handle this right now for v.1.12 when Piñata will be on the scene?

@londoncalling the redirects are only useful for people that have bookmarked the old location, but don't fix internal links (because Hugo will look for a file named quickstart.md to actually generate the link. changing those links to point to understanding-docker.md should fix the failures.
w.r.t. VirtualBox; I suggest to do a follow-up PR to clean those up; but there's quite some examples using VirtualBox / Docker ToolBox. Although we should fix those, I think it's "ok" to do so in the coming weeks, ToolBox is not entirely "gone" yet (but just my 0.02c)

@thaJeztah understand, regarding the re-directs, but the problem is "understanding docker" doesn't cover that use case that the API topics are pointing to. We saw it as way to low level for an overview to Docker, so I need to move that particular topic to somewhere that makes sense, then change the API links to there.
Agreed that we can't tackle the whole VirtualBox thing right now :-) soon though. I just wanted to call it out for myself and the rest of us.

@londoncalling oh! get it; I think that section could be moved to the dockerd.md document; https://docs.docker.com/engine/reference/commandline/daemon/ (or now; https://github.com/docker/docker/blob/master/docs/reference/commandline/dockerd.md) would that make sense?
Possibly adding links to https://docs.docker.com/engine/security/https/ and https://docs.docker.com/engine/security/security/#docker-daemon-attack-surface for the security aspect of doing so

Or, alternatively in the "main" remove-API document; https://docs.docker.com/engine/reference/api/docker_remote_api/, as it's related to the remote API

@thaJeztah @justincormack actually, from what I can tell, this covers it  file you pointed me to, wouldn't you say so? Daemon socket option
I'm going to re-direct those links to this topic and save off the original topic (Bind Docker to another host/port or a Unix socket ) to my desktop along with everything else in the quickstart, just in case we find something else isn't covered later. Thanks for pointing me to the daemon reference, @thaJeztah

@justincormack okay I'm not sure which README you're talking about now. But I've made the changes to the files in a way that should make sense. Please review, then let me know more specifically what README.

I plan on working through it later today - if things goto plan :)

@thaJeztah @SvenDowideit I'm going to merge this so that the broken links will be resolved in the docs builds

@thaJeztah can you merge this PR for me? It's blocking for other work we have to do.

@londoncalling oh, yes! LGTM


Pretter svelte-mode

Adds support for svelte-mode using prettier.

@raxod502 what changed where the linter was failing in the CI build but is passing now? I couldn't reproduce it locally.

It wasn't your fault. I fixed https://github.com/radian-software/apheleia/commit/782db664571d20f8f67d16d3719cda124ca0cc6c which was broken on master after some refactors in previous commits.


Add google analytics to docs

This should provide some insights on the current usage of Inductiva's documentation

This is super cool!! This ID refers to our general account correct? So we can use a single dashboard to monitor the analytics of the website and docs, etc...

That is correct, it uses the same ID we are using on the website


Youtube special shortener (youtu.be) is not applied

I have the option "Use special case URL formats for known sites enabled"; for example, github.com URLs are shortened to git.io.
However, this doesn't happen for Youtube URLs, which, instead of being shortened to youtu.be are shortened to the my default shortener.
Example: https://www.youtube.com/watch?v=mPtouOS0gxE is not shortened to https://youtu.be/mPtouOS0gxE.

Thank you! I will check this. It is possible Youtube changed their website in a way that breaks copy shorturl :-/

I cannot confirm - the example here is correctly shortened for me to youtu . be.
Can you show me the add-on settings? Mine look like this:

Hello! Thanks for the quick reply :)
These are my preferences:

I've also tested with all the other addons disabled, in order to avoid interference.
If nothing obvious pops up, I'll try to debug it. I suppose that the addon works by pattern matching the source URL, so I should be able to display the input value in a popup. I'm not a JS/addons programmer, so this may take a bit :smile:

I'll try with your settings - very good chance that I made a little mistake somewhere.
Oh! Perhaps the "24" makes it get shortened anyway. I will try.

Ah yes! This is exactly what happens:
The add-on looks at the main URL and turns it into https://youtu.be/mPtouOS0gxE which is longer than 24 characters, so it sends it to the shortening service.
Two options:

you make the number higher, and it won't force-shorten this URL, or
I change the code so that special-case URLs (currently: amazon, github, youtube) are never force-shortened.

I am almost thinking not force-shortening special URLs is the most expected behavior.

Ah yes! This is exactly what happens:
The add-on looks at the main URL and turns it into https://youtu.be/mPtouOS0gxE which is longer than 24 characters, so it sends it to the shortening service.
Two options:
* you make the number higher, and it won't force-shorten this URL, _or_

* I change the code so that special-case URLs (currently: amazon, github, youtube) are never force-shortened.

I am almost thinking not force-shortening special URLs is the most expected behavior.

Ah! I misunderstood the meaning of that setting :man_facepalming:.

I change the code so that special-case URLs (currently: amazon, github, youtube) are never force-shortened.

I've just increased the value, so for my case, nothing to change :smile: Regarding the other option, I have no idea what would be the reaction of the userbase :grin:
Thanks again for the attention :smile: Issue can be closed for me!


BACKPORT 0.3: Replace<EMAIL_ADDRESS>with<EMAIL_ADDRESS>

This change replaces node-sass due to a dependabot alert of
vulnerability CVE-2020-24025, where certificate validation was disabled
when requesting binaries.
Since node-sass is deprecated, it was replaced with sass.
Signed-off-by: Lee Bradley<EMAIL_ADDRESS>

Backport of: https://github.com/hyperledger/grid/pull/1307


OSB-tmk4201

🐛 Bug Report
https://gyazo.com/5540f33fc5490517146aba9393822a18
^ link to bot unresponsive to my commands only =b works in every channel for me
out of the 3 channels i use for it it usually works in 1 of them at a time unsure where this bug would lie as im not a programmer
but hopefully it helps !~
Write a description of the bug here, give all the information you can about what it is, how it happened.

resolved


Add maintainers minutes draft for Jul 2024

@netlify /blog/2024/maintainers-minutes-2024-07-01

After you added Rike's suggestions, can you please close this PR and open it from a fork of the branch monorepo (the files need to then be instead be in sites/main-site/src/content/blog). sorry for the current limbo


Swagger 2.0 support

Is this planned?

I'm actually working on this at the moment, it will be a few more weeks (with work and getting time)

Awesome thanks! Would love v2.0 support.

Going to make the pull request today towards @yvasiyarov , this is only the start and will need help from others to get it done better and quick :)

+1

@yvasiyarov I have the branch ready to merge, but Could you create a swagger2.0 branch on the master repo. As I think it might be best to create a sperate branch for 2.0 so we can improve it while having the other one going too. :) As the more people the better

Really looking forward to the 2.0 branch :+1:

Me too, thanks for the work ! I'll implement it and create issues if I found any bugs :+1:

Any news on this @RobertJGabriel? Could one use your fork in the meantime?

@schickling Still waiting on @yvasiyarov to create a branch to merge too. If I dont hear anything by friday will post it here :)

Looking forward to it!

+1  Yay

guys, I'm really sorry for delay.
swagger2.0 branch created

The swagger2.0 branch is still using the apis key to describe API paths. Is this being worked on? I could contribute and update it to use the newer paths key. Thanks.

That would be great @johndunne , as im snowed under at work at the moment :(

Based on the inactivity, I guess this seems the way to go now: https://github.com/go-swagger/go-swagger

+1

Seems 2.0 support is still not merged to the master?. I tried this and it generated a json of 1.2.

+1

+1

+1

+1

Swagger 2.0 support is planned and should land sometime soon :tm:.

any news on swagger 2 front?


OSError: python3.6/site-packages/lib/ke_dbl_i.so: cannot open shared object file: No such file or directory

This occurs for python3 with
pip3 install . --user
While it works for python2
pip install . --user
The shared library is installed in site-packages/lib/,
but it should be in site-packages/ke_dbl/lib/

Problem posted in https://github.com/pypa/pip/issues/8159, but no reply.


JBoss 4 support patch

Patch to support JBoss EAP 4.X (Servlet 2.X)

Codecov Report

Merging #6639 into master will decrease coverage by 0.00%.
The diff coverage is 21.42%.

@@            Coverage Diff             @@
##           master    #6639      +/-   ##
==========================================
- Coverage   39.23%   39.23%   -0.01%
==========================================
  Files        3113     3113
  Lines       92874    92879       +5
  Branches    11904    11905       +1
==========================================
- Hits        36443    36439       -4
- Misses      53428    53431       +3
- Partials     3003     3009       +6

Impacted Files
Coverage Δ

...nterceptor/StandardHostValveInvokeInterceptor.java
57.44% <21.42%> (+0.30%)
:arrow_up:

...rp/pinpoint/rpc/packet/ControlHandshakePacket.java
51.51% <0.00%> (-24.25%)
:arrow_down:

...pc/server/LoggingServerMessageListenerFactory.java
90.00% <0.00%> (-10.00%)
:arrow_down:

...rc/main/java/com/navercorp/pinpoint/test/Item.java
66.66% <0.00%> (-3.34%)
:arrow_down:

...tor/metric/datasource/DefaultDataSourceMetric.java
75.00% <0.00%> (-3.13%)
:arrow_down:

...vercorp/pinpoint/web/vo/ApplicationAgentsList.java
66.66% <0.00%> (-2.57%)
:arrow_down:

...navercorp/pinpoint/rpc/common/SocketStateCode.java
82.92% <0.00%> (-2.44%)
:arrow_down:

...point/rpc/client/DefaultPinpointClientHandler.java
70.77% <0.00%> (-1.30%)
:arrow_down:

...orp/pinpoint/rpc/server/DefaultPinpointServer.java
79.22% <0.00%> (-1.06%)
:arrow_down:

.../pinpoint/rpc/client/PinpointClientHandshaker.java
66.42% <0.00%> (+6.42%)
:arrow_up:

... and 1 more

Continue to review full report at Codecov.

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

@guillermomolina
Thank you for your contribution
This PR is a very good idea.
I modified your source code. Please review the code.

@guillermomolina
Thank you for your contribution
This PR is a very good idea.
I modified your source code. Please review the code.

OK, I've reviewed your changes and they all seem ok to me. Is there anything else you want me to do?

Everything is okay. I'll merge it.


Update All Source Code Files With Licensing

Proposed changes
NOTE: This depends on https://github.com/deepgram-devs/deepgram-go-sdk/pull/86 and is targeted to go-sdk-v1 release. Will rebase when https://github.com/deepgram-devs/deepgram-go-sdk/pull/86 is merged. Until it gets merged, here is a better looking diff to track the changes between branches: https://github.com/dvonthenen/deepgram-go-sdk/compare/restructure-project-using-go-conventions...dvonthenen:deepgram-go-sdk:dv/update-headers-with-licensing
Addresses https://github.com/deepgram-devs/deepgram-go-sdk/issues/90. This adds a Copyright header to all source files using the MIT license as described in the LICENSE file at the root of the repo.
Types of changes
What types of changes does your code introduce to the community Go SDK?
Put an x in the boxes that apply

[ ] Bugfix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update or tests (if none of the other choices apply)

Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

[x] I have read the CONTRIBUTING doc
[x] Lint and unit tests pass locally with my changes
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have added necessary documentation (if appropriate)
[ ] Any dependent changes have been merged and published in downstream modules

Further comments
NA

Until it gets merged, here is a better looking diff to track the changes between branches: https://github.com/dvonthenen/deepgram-go-sdk/compare/restructure-project-using-go-conventions...dvonthenen:deepgram-go-sdk:dv/update-headers-with-licensing

I tested the examples locally (precorded, projects, and streaming). They all work and I get the transcription/response.


experimental variable terms

From<EMAIL_ADDRESS>on July 13, 2009 21:44:44
At the OBI workshop, there was discussions on moving these into OBI (as
they are investigation specific). In addition, cleaned up definitions were
developed:
This needs a decision regarding move to OBI or not, and otherwise an update
of the definitions (including dependent variable).
An independent variable specification is an information artifact which
is part of a study design that is used to specify a type of entity of
which specific representative instances will be selected in the study
design execution to determine the effect of variation in the independent
variable on a dependent variable.
A controlled variable specification is an information artifact which is
part of a study design that is used to specify a type of entity of which
a constrained set of instances will be selected in the study design
execution in order to account for influences which could prevent
determination of the effect of variation in the independent variable on
a dependent variable.
Original issue: http://code.google.com/p/information-artifact-ontology/issues/detail?id=27

From<EMAIL_ADDRESS>on October 15, 2009 14:15:01
This was agreed upon IIRC. Uping priority - needs to be resolved as OBI awaits for
progress.
Owner: alanruttenberg
Cc: mcourtot bjoern.m.peters
Labels: -Priority-Medium Priority-Critical

From<EMAIL_ADDRESS>on October 24, 2009 06:54:34
done rev 248
Status: Done


React 15.1.0 warning about unitless css properties

Problem description
React 15.1.0 writes the following warning to the console when using an :

Warning: a button tag (owner: EnhancedButton) was passed a numeric string value for CSS property margin (value: 0) which will be treated as a unitless number in a future version of React.

Need to change all '0' css values to '0px' to avoid those annoying warning.
Or am I missing something?
Versions

Material-UI: 0.15.0
React: 15.1.0
Browser: Any

Need to change all '0' css values to '0px' to avoid those annoying warning.

That's correct. I guess you are overriding internal style of the EnhancedButton with an invalid value.


Failing dates

I got random failures in our tests that seem to be valid dates to me but they get denied anyway.
While testing that with validator 4.2 another date test was failing too.

Thanks. What's your timezone offset? new Date().getTimezoneOffset()

-60

Thanks. Would you mind running the test suite from the #447 branch to see if the issue is still present?

@chriso my mentioned date works with #447 :+1:
But the one that I mentioned that it's failing local is still failing. It's confusing to me that travis has no issue but it does not run on my machine.

The travis containers have their system timezone set to UTC and unfortunately there's no way (AFAIK) of emulating an alternate timezone in JavaScript.

Can you try #447 again?

@chriso still failing

This should be fixed in version 4.2.1. Thanks for your help!

@chriso you're welcome. All tests pass now. Thx for fixing it so fast :)


Searching for a type of profile seems to return all resources of that type, not profiles

http://spark.furore.com/fhir/Profile?type=Observation seems to return observations, not profiles about Observation. Is that a bug?

This is the same issue with #54. I already have a possible solution for that one, but "a more in depth" discussion might be needed.

These issue contained multiple problems:

the first one is the fact the the "type" parameter was wrongly treated (fixed by #36)
the second one, a problem with search parameter of type Token that correspond to string or bool properties on the actual resource.
The url in the initial comment is no longer valid. Currently this issue can be tested with a url like fhir/StructureDefinition?type=Quantity


Modprobe completion doesn't work in zsh

Describe the bug
modprobe completion is broken in zsh.
Steps To Reproduce
Type modprobe  and then press TAB (or whatever triggers completion). You will see:
➜ modprobe
_modutils:102: no such file or directory: /lib/modules/5.13.5-zen1/modules.alias
_modutils:102: no such file or directory: /lib/modules/5.13.5-zen1/modules.alias
_modutils:102: no such file or directory: /lib/modules/5.13.5-zen1/modules.alias

Expected behavior
Completion shows list of available modules.
Notify maintainers
@pSub
Metadata
 - system: `"x86_64-linux"`
 - host os: `Linux 5.13.5-zen1, NixOS, 21.05.20210731.11c6620 (Okapi)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.4pre20210707_02dd6bb`
 - channels(root): `"nixos-21.05.1970.11c662074e2"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:

this is fixed in zsh master :D
https://github.com/zsh-users/zsh/commit/02f62e5d21e09d4936e18147119b1f0c85b93d79

Thanks! No releases since then unfortunately. Closing this, but feel free to reopen if you think it should be backported to nix :)


[Feature]

Version information

Laravel: v5.8
Voyager: v1.2
PHP: 7.2
Database: MySQL

Description of problem

Hey there. I am new to voyager and laravel, but I am pretty sure that I want to learn it. So my problem is that I made in Admin Front-End panel in Media section Folder named Album where I uploaded some pictures. Everything is okay. But I want to ask you how it's possible to display those images into foreach loop?? How can I get those images??
For posts this worked:
@foreach($posts as $post)
    <img src="{{ Voyager::image( $post->image ) }}" />

@endforeach
How I need to change this one???

As the issue-template suggest, please ask questions in our Slack group.
As for your question: that simple filesystem  stuff.


Unable to use Salesforce CLI commands

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version: VS Code Insiders October 2023 (version 1.84)
OS Version: Mac OS Sonoma 14.0

Steps to Reproduce:

Open a new project in VS Code with the Salesforce Extension Pack installed

Use the command SFDX: Authorize an Org

Error occurs (see below)

Open a project in VS Code with the Salesforce Extension Pack installed

While connected to a Salesforce Dev Hub use command SFDX: Create a Default Scratch Org...

Populate settings (Scratch definition file, Scratch org alias, duration of scratch org. in days)

Error occurs (see below)

Authorize an org. error:
sfdx org:login:web --alias [REDACTED] --instance-url https://test.salesforce.com --set-default
/Users/[USERNAME]/.local/share/sfdx/client/bin/sfdx: line 16: /Users/[USERNAME]/.local/share/sfdx/client/bin/../7.209.6-8ba3197/bin/sfdx: No such file or directory
Create default scratch org error:
10:31:29.728 sfdx force:org:create -f config/project-scratch-def.json --setalias [SCRATCHORGNAME] --durationdays 7 --setdefaultusername --json --loglevel fatal
ended with exit code 1
I have tried removing the Salesforce Extension Pack and then uninstalling VS Code Insiders, then reinstalling VSCode and the Salesforce Extension pack, with no success.
This was working fine up until about two weeks ago - everything was working as expected, all CLI commands were working.
Please assist.

/causedByExtension

This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines. If you don't know which extension is causing the problem, you can run Help: Start extension bisect from the command palette (F1) to help identify the problem extension.
Happy Coding!


Let's Collaborate - SL

Let's Collaborate!

Let's learn the GitHub Flow

You are on your way. Issue #2 is the official Let's Collaborate thread.


SSL validation failing with Certificate Pinning

The project I am working on involves deploying multiple instances of our server at multiple facilities, and getting a domain-specific trusted certificate for each instance would be rather impractical, so I decided to create our own "secure" private CA and sign the SSL certificates with that CA.  I've followed this blog's (http://initwithfunk.com/blog/2014/03/12/afnetworking-ssl-pinning-with-self-signed-certificates/) instructions and the server responds to normal HTTPS requests in the browser just fine.  However, the only way I can get my AFNetworking requests to go through is if I set the security policy to PinningModeNone.  I even tried manually inserting the certificate in the pinned certificates to no avail.  Here's my request manager init code:
    requestManager = [[AFHTTPRequestOperationManager alloc] initWithBaseURL:[NSURL URLWithString:BASE_URL]];
    requestManager.requestSerializer = [AFJSONRequestSerializer serializer];
    [requestManager.requestSerializer setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
    [requestManager.requestSerializer setValue:@"application/json" forHTTPHeaderField:@"Accept"];

    AFSecurityPolicy *securityPolicy = [AFSecurityPolicy policyWithPinningMode:AFSSLPinningModeCertificate];
    securityPolicy.allowInvalidCertificates = YES;
    securityPolicy.validatesDomainName = NO;

    //Find our cert
    NSString *certPath = [[NSBundle mainBundle] pathForResource:@"InvisalertCA" ofType:@"cer"];
    NSData *certData = [NSData dataWithContentsOfFile:certPath];

    securityPolicy.pinnedCertificates = @[certData];

    requestManager.securityPolicy = securityPolicy;

My first request fails with: Error Domain=NSURLErrorDomain Code=-1012 "(null)" UserInfo={NSErrorFailingURLKey=https://<redacted> NSErrorFailingURLStringKey=https://<redacted>}

@danfellmeth-brick Is there anyway you can provide an example demonstrating the problem? The security policy class has lots of tests, so you should be able to examples of it working and failing there.

Can you verify if your certificate is in binary format or plain text, both can have an extension of ".cer"
A plain text certificate has the words BEING KEY, END KEY


Automatic publicPath is not supported in this browser

As reported here: https://github.com/revolist/vue-datagrid/issues/19
I'm encountering the same problem when testing in Chrome latest and Safari latest, with the basic code from the example and using Webpack:
Uncaught Error: Automatic publicPath is not supported in this browser
    at eval (vgrid.js?675a:1)
    at eval (vgrid.js?675a:1)
    at eval (vgrid.js?675a:1)
    at eval (vgrid.js?675a:1)
    at eval (vgrid.js?675a:1)
    at<EMAIL_ADDRESS>
<template>
  <div id="app">
    <v-grid theme="compact" :source="rows" :columns="columns"/>
  </div>
</template>

<script>
import VGrid from "@revolist/vue3-datagrid";
export default {
  name: "App",
  data() {
    return {
      columns: [{
          prop: "name",
          name: "First",
        },
        {
          prop: "details",
          name: "Second",
      }],
      rows: [{
        name: "1",
        details: "Item 1",
      }]
    };
  },
  components: {
    VGrid,
  },
};
</script>

I face the same problem too
I was working with Laravel Nova and writing a Tool for it.
I tried to use this package but it always show this Automatic publicPath error.

I face the same problem too
I was working with Laravel Nova and writing a Tool for it.
I tried to use this package but it always show this Automatic publicPath error.

+1, the same problem right now. Idk how to solve that

Have the same issue when using vue-test-utils to run unit tests. tried declaring publicPath in vue.config.js without any change. Looks like issue with vue async component declared in the vue adaptor, maybe consider using regular vue component ?

I face the same problem too I was working with Laravel Nova and writing a Tool for it. I tried to use this package but it always show this Automatic publicPath error.

+1 same here

Same issue here with Vite + Vue 3 but only when building for production.

#18

I am currently using vue 3 + vite and I can confirm that the fix provided by @lijie1129 resolves the issue.

Merged, added better vite support. Was planning to use it in 4.0+ but wasn't delivered yet.


Update to v11

Hi, I updated the project to version 11.
However, it seems like also hav-components library has to be updated to v11 too, as there is an error when starting the project:
Error: ./node_modules/hav-components/fesm2015/hav-components.js 2202:8-25
"export 'ɵɵstaticViewQuery' was not found in '@angular/core'

Thank you @Sonajos !
Apart from the apparent crux regarding "hav-components" as mentioned, we'll also need to keep the target branch in sync with develop. I'll look into both issues although I cannot be immediately sure if "hav-components" is actually reconcilable with this upgrade. There's a possibility that issue #51 will have to be adressed, I hope that's not the case.
In any case, I may want to make some additional commits to this PR branch before merging.

I decided to merge this PR first and merge develop into the upstream branch afterward.
I've confirmed that the frontend builds entirely only by commenting out the failing import (staticViewQuery) in the transpiled "hav-components" module, predictably the UI itself predictably crashes but I think it's good enough to accept the PR onto the wip branch.
I'm convinced it is as you've already suggested, the observed error is due to a discrepancy between Angular 10 - 11.
You may want to consider re-syncing your fork to the upstream, retrieving the project branch on the fork instead, and then continue your work on that branch. That way you won't need to merge back to your fork, you could just build upon the existing commit history.
But as it stands, it looks very much like we'll have to do #51 to be able to make more progress with this, or to upgrade any further, since development on the module 'hav-components' has gone stale.


Spike/duplicate meta mask integration

Merged upstream changes and work for sign and send via metamask changes

leave this with me, also, we can do upstream merge once #8 is merged


Adds default namespace for maya-apiserver-server service

Signed-off-by: Ashish Ranjan<EMAIL_ADDRESS>
What this PR does / why we need it:

This PR adds a default namespace to maya-apiserver-service .
This is needed because if we apply the operator from a different namespace other than default the service is created in that namespace  and provisioner is not able to connect to api server .

Special notes for your reviewer:

When openebs operator is applied through litmus book the mayapiserver service is getting created in litmus namespace and leads provisoner to crashloop error

NAME                                   READY     STATUS             RESTARTS   AGE
maya-apiserver-9679b678-qlzdk          1/1       Running            0          47m
openebs-provisioner-55ff5cd67f-c48v7   0/1       CrashLoopBackOff   13         47m

NAMESPACE     NAME                     TYPE        CLUSTER-IP     EXTERNAL-IP   PORT(S)         AGE
default       kubernetes               ClusterIP   <IP_ADDRESS>      <none>        443/TCP         16h
kube-system   kube-dns                 ClusterIP   <IP_ADDRESS>     <none>        53/UDP,53/TCP   16h
kube-system   kubernetes-dashboard     ClusterIP   <IP_ADDRESS>   <none>        80/TCP          16h
litmus        maya-apiserver-service   ClusterIP   <IP_ADDRESS>     <none>        5656/TCP        55m

@ashishranjan738 , add the namespace to the maya-apiserver alone. As for the rest:

CRD/CRs - They are cluster scoped
Storage-class - Is not a namespaced resource

@ashishranjan738 I am closing this PR. I don't see any reason why maya-apiserver service can't be in its own name space. The issue with the provisioner not able to contact could be that provisioner deployment is not updated to pass the following:
https://github.com/openebs/openebs/blob/master/k8s/openebs-operator.yaml#L177
        - name: OPENEBS_NAMESPACE
          valueFrom:
            fieldRef:
              fieldPath: metadata.namespace

Make sure you change the litmus playbook to fix the namespace issues.

ok


fix(45901): Error 1064 should apply to @callback definitions in the same way as @param, but doesn't

Fixes #45901

I think the basic approach is fine, and as a targetted fix, this just needs a little cleanup. Couple of points to follow up on, though:

I would inline getReturnInfoOfSignatureDeclaration since it's only used once and it allocates (unless the VM optimises it).
I thought there was a utility function that checks for a @type tag if getEffectiveReturnTypeNode returns undefined. Is that utility appropriate here? It probably doesn't return enough information though -- my memory is that it returns a Type instead of a Node. However, if you can find that utility, you should look at its callers to see if they could improve their error messages if they called getReturnInfoOfSignatureDeclaration instead.

I also need to think about the wording of the new error message. It's a little off but I haven't figured out an improvement.

Shouldn't the error message be the same as other instances of this error? i.e.

The return type of an async function or method must be the global Promise<T> type.

I'm not sure why a new error message is even needed.

@sandersn Thanks for the feedback. There is a utility called getReturnTypeFromAnnotation that returns a Type. This utility handles cases with JSDoc type tags by utilizing getReturnTypeOfTypeTag, which also returns a Type. We can attempt to use the type instead of the TypeNode to perform all checks. However, we still need the return TypeNode for error messages.

I would inline getReturnInfoOfSignatureDeclaration since it's only used once and it allocates (unless the VM optimises it)

Are you suggesting moving the logic from getReturnInfoOfSignatureDeclaration directly into checkSignatureDeclarationDiagnostics or relocating getReturnInfoOfSignatureDeclaration to the scope of checkSignatureDeclarationDiagnostics?

Sorry I dropped this. Now that I look at it again:

Move the logic directly into checkSignatureDeclarationDiagnostics.
I now disagree with my past self: I don't think it's worthwhile to reuse getReturnTypeFromAnnotation.

@sandersn Thanks. Do I need to modify the error message for the following?

The return type of an async function or method must be the global Promise type.


 with multiline on, caret always jumps to end of text

Environment
react-native -v: ^0.71.0
npm ls react-native-macos: 0.71.34
node -v: 18.15.0
npm -v:
yarn --version: 1.22.19
xcodebuild -version:14E300c

Steps to reproduce the bug
Create a <TextInput/> with multiline property, with value and onChangeText callbacks also set
Write some text
Try to add some text at the beginning of line, caret will jump to end of line
Expected Behavior
Caret should always retain correct position
Actual Behavior
No response
Reproducible Demo
<TextInput
  autoFocus
  value={store.ui.note}
  onChangeText={store.ui.setNote}
  // @ts-expect-error
  enableFocusRing={false}
  placeholderTextColor={colors.neutral[400]}
  placeholder="Write something..."
  className="flex-1"
  multiline
  spellCheck
/>

Additional context
No response

I thought it was expected that setValue would move the cursor to the end of the text. Do you know if this is a regression from an earlier version?

Also an aside, you shouldn't need "@ts-expect-error" anymore if you import the type from react-native-macOS instead of react-native

Also an aside, you shouldn't need "@ts-expect-error" anymore if you import the type from react-native-macos instead of react-native

yeah, it broke on the big migration to 0.71

yeah, it broke on the big migration to 0.71

From 0.68?

yeah, I think so. I was a long time ago, but it was immediately broken when the big merge happened.

Curious if it was broken and fixed upstream for iOS..
Thanks for the report, good to know it used to work 😅

Yeah this is a bug I run into frequently.. I took a crack at it earlier and didn't find a solution. Just wanted to give a small update

Just tested this again with 0.72.1 and it is working there.


what does this mean

D/AppsFlyer_5.4.5(30426): [GCD-A03] Server retrieving attempt finished
I/AppsFlyer_5.4.5(30426): [GCD-B01] URL: https://gcdsdk.appsflyer.com/install_data/v4.0/(xxx[app id])?devkey=c********************f&device_id=xxxxxxxxxxxxxxx(this is device id)
D/AppsFlyer_5.4.5(30426): [GCD-A02] Calling onConversionFailure with:
D/AppsFlyer_5.4.5(30426): Error connection to server: 403
D/AppsFlyer_5.4.5(30426): [GCD-A03] Server retrieving attempt finished

I/flutter (30426): {status: failure, type: onInstallConversionDataLoaded, data: Error connection to server: 403}

403 means, your dev key is wrong or missing.
https://support.appsflyer.com/hc/en-us/articles/211719806-App-settings-#sdk-installation-sdk-dev-key-1

403 means, your dev key is wrong or missing.
https://support.appsflyer.com/hc/en-us/articles/211719806-App-settings-#sdk-installation-sdk-dev-key-1

thank u ,i solved it


Add accumulate_with_remainder()

Looks way too specific, can't see how this is generally useful.

Reopen with usage examples if any.

Useful for cases where you'd want to accumulate while knowing what is remaining (if it must be actionable).
buffer = ''
items = []

for line in sys.stdin:
    for curr, remain in reversed(accumulate_with_remainder(line)):
        try:
            items.append(json.loads(buffer + tmp))
            buffer = remain
            break
        except ValueError:
            pass
    else:
        buffer += line

Maybe something like heads() or tails() will do the job for you:
>>> heads('1234')
['1', '12', '123', '1234']
>>> tails('1234')
['1234', '234', '34', '4']

These are hypotetical, so don't try to import them yet :)