22.x.x.x firmware - GOKE GK7102 SoC

Just for information.
I bought this ESCAM "button" Q6. It uses 22.x.x.x series of the same style of firmware. The SoC is a GOKE Electronics GK7102. My plan is to enable telnetd and reconfigure video bitrate (it's rather low for the moment)
http://www.gokemicro.com/GK7102.html
Example firmware upgrade file it tries to fetch:
http://upg.cloudlinks.cn/upg/22/00/npcupg_<IP_ADDRESS>.bin

the latest firmware (<IP_ADDRESS>) already has a working telnetd and an empty root password.

hi,
unfortunately the later firmwares close telnet option, but reduce bitrate and quality. Is there a way to add possibility to work with exec_sz=0x18c7 firmwares too?
br.
Feri

@mada3k / @csirk51, please have a look at the my PR #3, which adds support for 22.x.x.x versions.

Thanks for the help, it works great:)

Just because I'm interested: @csirk51 can you tell me which modification do you do with the firmware? How to enable telnetd for later firmware which do not open this port? And: do you know how to flash the device in a manual way? Or how do you do the flashing?

Before (no telnet available firmwares) I had to use serial pins to get into the device to open telnet for modifications, it was really annoying.
To enable telnet, just put /bin/busybox telnetd into /npc/boot.sh, so it will load on boot (user is root and there is no password).
The changes I often make on Digoo M1Q (/npc/config/video_sc1135.xml) and M1Z (/npc/config/video_sc1135.xml) Stream0 are the following:

increase vi_framerate to 25
increase fps to 25
reduce h264_gop_N to 25
increase	h264_cbr_avg_bps to 4000000 (6000000 on M1Z)
increase h264_vbr_min_bps to 2000000 (3000000 on M1Z)
increase h264_vbr_max_bps to 4000000 (6000000 on M1Z)
reduce h264_qp_min_I to 12
reduce h264_qp_min_P to 15

Do you do this all manually or do you use some script or patch files to modify the firmware? Maybe you provide your final configuration since I'm also using a Digoo M1Q.
Do you have some documentation about all these settings? How do you know what to change?

I got my camera into bootloop before with wrong config, so I do it manually on the new firmwares for safety, than flash it to the cameras.
About settings... I searched a lot what they could stand for, these are the ones I can see some improvement in quality after the modifications.

@csirk51 thanks for your feedback.
But how do you flash an img file? Simply do a dd of the parts (app, jffs) into the correct mdblock devices on the camera? I'm interested in the concrete flashing procedure because I don't want to brick the cam by simply coping the data into the md devices. But maybe this is the way of manual flashing.

I just use the gm_app_fw.py script the way it is written on the main page:

unpack the firmware (-u)
mount the firmware (-m)
modify the parameters on the mounted filesystem (in /mnt/fw_app/)
create a new image of the modified filesystem (mkfs.jffs2 -r /mnt/fw_app/ -o modified.jffs2)
pack the firmware using the new jffs and the old elf files
flash the modified firmware with ipc debugging tool or tinyipctools

I have one of the more recent M1Q's with the <IP_ADDRESS> firmware, it does not have Telnet open, just 53, 554, and 5000...@csirk51 how are you getting access to the Telnet port? Can busybox be loaded without tapping the serial pins on the pcb?

You can download the .17 firmware from here  (sent by digoo support).
Modify this one if you need .17 with working telnet.

How can I modify the resolution and bit rate of rtsp video stream?

I've M1Z version with <IP_ADDRESS> firmware. @csirk51  how to enable ftp access? I tried to put boot.sh in npc folder with:
#!/bin/sh

/bin/busybox telnetd

but without success. Do You have any solution?

@ciast, I guess the script is not executed when put on SD card. You need to flash a custom firmware to the device which includes the modified boot.sh script.
Just download a official firmware and try to extract the contents using the script from this repo.

"/bin/busybox telnetd" is for telnet, not for ftp.
For ftp, you should check https://github.com/ant-thomas/zsgx1hacks, I didnt try it yet but maybe...

Firmware <IP_ADDRESS>
Just unpacked/mounted/modified/repacked/flashed the firmware.
I had put "/bin/busybox telnetd" after rows:
#start npc boot
and
ulimit -s 2048
After reboot telnet works, root without password.

I have yoosee cam with <IP_ADDRESS> version firmware. What do we need so we can we add support for 21.xx.xx.xx?

I think this issue can be closed since PR #3 is already merged which adds support for 22.xx.xx.xx firmwares.
@hrch3k, I suggest to create a new issue for this version.

Firmware <IP_ADDRESS>
Just unpacked/mounted/modified/repacked/flashed the firmware.
I had put "/bin/busybox telnetd" after rows:
#start npc boot
and
ulimit -s 2048
After reboot telnet works, root without password.

To enable the telnet just paste the following line and reboot after that:
echo '/bin/busybox telnetd' >> /npc/boot.sh

By accident I bricked my Digoo DG-M1X/M1Q cam which uses the GK7102 SoC by modifiying the boot.sh file - now it wont finish boot as it does not execute boot.sh.
I can get into u-boot, but found no way to actually get a shell or modifiy the boot.sh from there ...
I used the py tool provided here to unpack the firmware "npcupg_<IP_ADDRESS>.bin" - and it seems boot.sh is actually part of it. So now I wonder if there is a way for me to flash above image? Maybe through kermit (loadb) in u-boot? (I cant get ethernet to work so cant use TFTP ....)

U-Boot 2012.10 (Sep 29 2006 - 00:20:41) for GK7102 rb jxh42 v1.00 (GOKE)

HAL:  20151223
DRAM:  64 MiB
Flash: 16 MiB
16 MiB
NAND:  SPINAND MID = 0xff, DID = 0xffff, Data = 0x1ffffff !spinand_board_init[1581]: No support this SPI nand!
SF: Detected GD25Q128C with page size 256 B, sector size 64 KiB, total size 16 MiB
In:    serial
Out:   serial
Err:   serial
Net:   arm_freq(600MHz)..............0x112032
use int MII..............
gk7101
Hit any key to stop autoboot:  5  4  3  2  1  0
[PROCESS_SEPARATORS] run sfboot
[PROCESS_SEPARATORS] setenv bootargs console=${consoledev},${baudrate} noinitrd mem=${mem} rw ${rootfstype} init=linuxrc ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:${netdev} mac=${ethaddr} phytype=${phytype};sf probe 0 0;sf read ${loadaddr} ${sfkernel} ${filesize}; bootm
SF: Detected GD25Q128C with page size 256 B, sector size 64 KiB, total size 16 MiB
put param to memory
mem size (35)
bsb size (2)

the kernel image is zImage or Image
entry = 0xc1000000
## Transferring control to Linux (at address c1000000)...

Starting kernel ...

machid = 3988 r2 = 0xc0000100
Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0
[    0.000000] Linux version 3.4.43-gk (user15@ubuntu) (gcc version 4.6.1 (crosstool-NG 1.18.0) ) #56 PREEMPT Fri Sep 29 00:24:56 PDT 2006
[    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[    0.000000] CPU: VIPT aliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: Goke GK7102 RB_JXH42 board V2.00
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] AHB: 0x90000000  0xf2000000  -- 0x1000000
[    0.000000] APB: 0xa0000000  0xf3000000  -- 0x1000000
[    0.000000] PPM: 0xc0000000  0xc0000000  -- 0x200000
[    0.000000] BSB: 0xc2500000  0xf5000000  -- 0x200000
[    0.000000] DSP: 0xc2700000  0xf6000000  -- 0x1900000
[    0.000000] hal version = 20151223
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8890
[    0.000000] Kernel command line: console=ttySGK0,115200 noinitrd mem=35M rw mtdparts=gk7101_flash:256K(boot),64K(bootenv),2560K(kernel),7168K(rootfs),1024K(rom),5312K(APP) rootfstype=squashfs root=/dev/mtdblock3 init=linuxrc ip=<IP_ADDRESS>:<IP_ADDRESS>:<IP_ADDRESS>:<IP_ADDRESS>:"gk7101":eth0 mac=3C:97:0E:22:E1:14 phytype=0
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Memory: 35MB = 35MB total
[    0.000000] Memory: 30760k/30760k available, 5080k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     DMA     : 0xff600000 - 0xffe00000   (   8 MB)
[    0.000000]     vmalloc : 0x82800000 - 0xff000000   (1992 MB)
[    0.000000]     lowmem  : 0x80000000 - 0x82300000   (  35 MB)
[    0.000000]     modules : 0x7f000000 - 0x80000000   (  16 MB)
[    0.000000]       .text : 0x80008000 - 0x80413000   (4140 kB)
[    0.000000]       .init : 0x80413000 - 0x80433000   ( 128 kB)
[    0.000000]       .data : 0x80434000 - 0x8045cd00   ( 164 kB)
[    0.000000]        .bss : 0x8045cd24 - 0x8048edf8   ( 201 kB)
[    0.000000] NR_IRQS:128
[    0.000000] >> gk7101 init irq vic1...
[    0.000000] >> gk7101 init irq vic2...
[    0.000000] gk7101 init vic...
[    0.000000] mach gk7101 init timer...
[    0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every<PHONE_NUMBER>ms
[    0.000000] Console: colour dummy device 80x30
[    0.000000] console [ttySGK0] enabled
[    0.010000] Calibrating delay loop... 597.60 BogoMIPS (lpj=2988032)
[    0.070000] pid_max: default: 32768 minimum: 301
[    0.070000] Mount-cache hash table entries: 512
[    0.080000] CPU: Testing write buffer coherency: ok
[    0.090000] Setting up static identity map for 0xc0542e30 - 0xc0542e68
[    0.100000] NET: Registered protocol family 16
[    0.110000] gk7101 init timer...
[    0.110000] Init HW timer for DSP communication
[    0.120000] gk7101 init gpio...
[    0.120000] gpiochip_add: registered GPIOs 0 to 63 on device: gk7101-gpio0
[    0.130000] gpio map init...
[    0.130000] create proc dir
[    0.140000] gk7101 register devices 8
[    0.140000] gk7101 register I2C
[    0.280000] bio: create slab <bio-0> at 0
[    0.290000] spi spi.0: gk7101 SPI Controller 0 created
[    0.290000] spi spi.0: master is unqueued, this is deprecated
[    0.300000] usbcore: registered new interface driver usbfs
[    0.310000] usbcore: registered new interface driver hub
[    0.310000] usbcore: registered new device driver usb
[    0.320000] i2c regbase: 0xf3003000
[    0.320000] i2c i2c.0: i2c irq:registers 9
[    0.330000] i2c i2c.0: GK7101 I2C[0] adapter[i2c-0] probed!
[    0.340000] FS-Cache: Loaded
[    0.340000] CacheFiles: Loaded
[    0.350000] cfg80211: Calling CRDA to update world regulatory domain
[    0.360000] gk7101-sd gk7101-sd.0: Slot0 req_size=0x00010000, segs=16, seg_size=0x00010000
[    0.390000] gk7101-sd gk7101-sd.0: GK7101 SD/MMC[0] has 1 slots @ 46000000Hz, [0x09e130b0:0x00000000]
[    0.400000] NET: Registered protocol family 2
[    0.400000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.410000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.420000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.430000] TCP: Hash tables configured (established 2048 bind 2048)
[    0.440000] TCP: reno registered
[    0.440000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.450000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.450000] NET: Registered protocol family 1
[    0.460000] RPC: Registered named UNIX socket transport module.
[    0.470000] RPC: Registered udp transport module.
[    0.470000] RPC: Registered tcp transport module.
[    0.480000] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.490000] mdma init...
[    0.490000] mdma request irq: 54
[    0.500000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.510000] NFS: Registering the id_resolver key type
[    0.520000] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.530000] msgmni has been set to 60
[    0.540000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[    0.550000] io scheduler noop registered
[    0.550000] io scheduler deadline registered
[    0.560000] io scheduler cfq registered (default)
[    0.570000] uart.0: ttySGK0 at MMIO 0xa0005000 (irq = 31) is a gk7101uart
[    0.570000] uart.1: ttySGK1 at MMIO 0xa001f000 (irq = 15) is a gk7101uart
[    0.580000] uart.2: ttySGK2 at MMIO 0xa001e000 (irq = 27) is a gk7101uart
[    0.600000] brd: module loaded
[    0.610000] loop: module loaded
[    0.610000] adc initialized (10:11)
[    0.620000] slram: not enough parameters.
[    0.620000] speed_mod is 0
[    0.630000] gk7101_flash gk7101_flash.0: GD25Q128C (16384 Kbytes)
[    0.630000] 6 cmdlinepart partitions found on MTD device gk7101_flash
[    0.640000] Creating 6 MTD partitions on "gk7101_flash":
[    0.650000] 0x000000000000-0x000000040000 : "boot"
[    0.650000] 0x000000040000-0x000000050000 : "bootenv"
[    0.660000] 0x000000050000-0x0000002d0000 : "kernel"
[    0.670000] 0x0000002d0000-0x0000009d0000 : "rootfs"
[    0.680000] mmc0: new high speed SDHC card at address 0001
[    0.680000] 0x0000009d0000-0x000000ad0000 : "rom"
[    0.690000] 0x000000ad0000-0x000001000000 : "APP"
[    0.700000] GKETH_init
[    0.700000] [GKETH_drv_probe] eth_base = 0xf200e000
[    0.710000] mii id = 0
[    0.710000] ###### PHY Reset.1.0.2
[    0.830000] mdiobus_register: PHY[0] whose id 0x00000000
[    0.830000] goke MII Bus: probed
[    0.840000] gk7101-eth gk7101-eth.0: MAC Address[3e:97:0e:22:e1:14].
[    0.850000] usbcore: registered new interface driver cdc_wdm
[    0.850000] usbcore: registered new interface driver libusual
[    0.860000] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[    0.870000] musb phy Begin initial sequence ...
[    1.110000] gk7101 musb init end...
[    1.120000] musb-hdrc musb-hdrc: MUSB HDRC host driver
[    1.120000] musb-hdrc musb-hdrc: new USB bus registered, assigned bus number 1
[    1.130000] vm : ffde0000, phy : c21a0000
[    1.130000] dma_buf alloc ok!
[    1.140000] hub 1-0:1.0: USB hub found
[    1.140000] hub 1-0:1.0: 1 port detected
[    1.150000] musb-hdrc musb-hdrc: USB Host mode controller at f0006000 using PIO, IRQ 26
[    1.160000] platform add gk7101 musb...
[    1.160000] mousedev: PS/2 mouse device common for all mice
[    1.170000] input: GKInput as /devices/virtual/input/input0
[    1.180000] Protocol NEC[0]
[    1.180000] ir request irq: 62
[    1.180000] IR Host Controller probed!
[    1.190000] gk7101 rtc init...
[    1.190000] rtc base: 0xf2080000
[    1.190000] os read tm: t=0
[    1.200000] gk7101-rtc gk7101-rtc: rtc core: registered gk7101-rtc as rtc0
[    1.200000] i2c /dev entries driver
[    1.210000] gk7101_wdt: GK7101 Watchdog Timer, (c) 2014 Goke Microelectronics
[    1.220000] [gk7101_wdt_init]: init
[    1.220000] [gk7101_wdt_probe]: probe
[    1.230000] [gk7101_wdt_probe]: probe mapped wdt_base=f3006000
[    1.230000] watchdog inactive, reset disabled, irq disabled
[    1.240000] mmcblk0: mmc0:0001 SD16G 29.5 GiB
[    1.250000]  mmcblk0: p1
[    1.250000] IPv4 over IPv4 tunneling driver
[    1.260000] gre: GRE over IPv4 demultiplexor driver
[    1.260000] ip_gre: GRE over IPv4 tunneling driver
[    1.270000] TCP: cubic registered
[    1.270000] Initializing XFRM netlink socket
[    1.280000] NET: Registered protocol family 10
[    1.290000] IPv6 over IPv4 tunneling driver
[    1.290000] NET: Registered protocol family 17
[    1.300000] NET: Registered protocol family 15
[    1.300000] lib80211: common routines for IEEE802.11 drivers
[    1.310000] Registering the dns_resolver key type
[    1.320000] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[    1.330000] os read tm: t=0
[    1.330000] gk7101-rtc gk7101-rtc: setting system clock to 1970-01-01 00:00:00 UTC (0)
[    1.340000] net eth0: ###### GKETH_start_hw
[    1.350000] net eth0: ###### GKETH_phy_start_aneg...
[    1.350000] ADDRCONF(NETDEV_UP): eth0: link is not ready
[    1.610000] usb 1-1: new high-speed USB device number 2 using musb-hdrc
[    2.350000] PHY: 0:00 - Link is Up - 100/Full
[    2.360000] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    2.380000] IP-Config: Complete:
[    2.380000]      device=eth0, addr=<IP_ADDRESS>, mask=<IP_ADDRESS>, gw=<IP_ADDRESS>
[    2.390000]      host="gk7101", domain=, nis-domain=(none)
[    2.390000]      bootserver=<IP_ADDRESS>, rootserver=<IP_ADDRESS>, rootpath=
[    2.410000] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[    2.420000] Freeing init memory: 128K
Starting logging: OK
Starting mdev...
Initializing random number generator... read-only file system detected...done
Starting network...
ip: RTNETLINK answers: File exists
[    7.830000] gk_vi_init
[    7.830000]  request_irq...24 ok-- video_sync
[    7.830000]  request_irq...59 ok-- video_frame_last_pixel
[    7.850000]  request_irq...61 ok-- video_frame
[    7.850000]  gk7101_is_valid_gpio_irq...
[    8.040000] crypto initialized (10:11)
[    8.120000] Media driver version (gcc version 4.6.1 (crosstool-NG 1.18.0) (uClibc)) v1.1.2 #svn r8850 Wed Jul 6 17:44:23 CST 2016
/npc/boot.sh: line 1: start: not found
[   11.480000] rtusb init rt2870 --->
[   11.500000]
[   11.500000]
[   11.500000] === pAd = 82a82000, size = 1581168 ===
[   11.500000]
[   11.520000] <-- RTMPAllocTxRxRingMemory, Status=0
[   11.520000] <-- RTMPAllocAdapterBlock, Status=0
[   11.530000] RTMP_COM_IoctlHandle():pAd->BulkOutEpAddr=0x8
[   11.540000] RTMP_COM_IoctlHandle():pAd->BulkOutEpAddr=0x4
[   11.550000] RTMP_COM_IoctlHandle():pAd->BulkOutEpAddr=0x5
[   11.550000] RTMP_COM_IoctlHandle():pAd->BulkOutEpAddr=0x6
[   11.560000] RTMP_COM_IoctlHandle():pAd->BulkOutEpAddr=0x7
[   11.570000] RTMP_COM_IoctlHandle():pAd->BulkOutEpAddr=0x9
[   11.570000] STA Driver version-JEDI.MP1.mt7601u.v1.5
[   11.580000] Compile time-Jul 26 2006,19:39:19
[   11.590000] ==>WaitForAsicReady MAC_CSR0=0x76010500
[   11.590000] ==>WaitForAsicReady MAC_CSR0=0x76010500
[   11.610000] NVM is EFUSE
[   11.610000] Endpoint(8) is for In-band Command
[   11.610000] Endpoint(4) is for WMM0 AC0
[   11.620000] Endpoint(5) is for WMM0 AC1
[   11.620000] Endpoint(6) is for WMM0 AC2
[   11.630000] Endpoint(7) is for WMM0 AC3
[   11.630000] Endpoint(9) is for WMM1 AC0
[   11.640000] Endpoint(84) is for Data-In
[   11.640000] Endpoint(85) is for Command Rsp
[   11.650000] 80211> RFICType = 3
[   11.650000] NumOfChan ===> 58
[   11.660000] 80211> Number of channel = 0x44
[   11.660000] 80211> Number of rate = 12
[   11.670000] 80211> CurTxPower = 0 dBm
[   11.670000] 80211> TxStream = 0
[   11.680000] crda> requlation requestion by core: 00
[   11.680000] 80211> CFG80211_Register
[   11.700000] MSC msc_proc_create: 82a82000
[   11.750000] usbcore: registered new interface driver rt2870

Well guess what, this actually worked.
I 1st unpacked the firmware (bin) using gmfwtools, then in uboot did 'loadb 0xC1000000 38400'. Uploaded the jff file through Kermit.
Then 'sf erase 0x000000ad0000 0x530000'
and
'sf write 0xC1000000 0x000000ad0000 0x0028573c'
And the device was running again.

Hi There,
I have many of these cheap Cloud Storage Intelligent Cameras (Intelligent, OMG) and recently they upgraded the firmware to <IP_ADDRESS>2 and since then the ONVIF feed does not work to iSpy. Opening the Camera I see it has a Goke 7102 Chip inside so i guess this firmware would work. I have tried the IPCtools software on both my computers but it doesnt find the camera. I just want to upload the firmware to the camera, Many instructions say to just put the Firmware into the root directory of an SD card formatted fat 32. Reset the camera and it should upload. But I can not seem to get that to happen.
Can someone please point me in the direction of newbie instructions of how to get the firmware onto the camera.
Please, I have 12 Cameras all bolted on to my house and none of them work.
Thanks Thanks Thank in advance.


Error 'This file is not encrypted'

Upgraded from 1.3.0 to 1.5.1 and now this error is being thrown - 'This file is not encrypted'
Stacktrace -
  at LiteDB.Engine.AesStream..ctor (System.String password, System.IO.Stream stream) [0x001f9] in <7b8c154640e6442cbc93e4644732d128>:0
  at (wrapper remoting-invoke-with-check) LiteDB.Engine.AesStream..ctor(string,System.IO.Stream)
  at LiteDB.Engine.FileStreamFactory.GetStream (System.Boolean canWrite, System.Boolean sequencial) [0x00077] in <7b8c154640e6442cbc93e4644732d128>:0
  at LiteDB.Engine.StreamPool+<>c__DisplayClass3_0.<.ctor>b__0 () [0x00000] in <7b8c154640e6442cbc93e4644732d128>:0
  at System.Lazy`1[T].ViaFactory (System.Threading.LazyThreadSafetyMode mode) [0x00043] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/Common/src/CoreLib/System/Lazy.cs:333
  at System.Lazy`1[T].ExecutionAndPublication (System.LazyHelper executionAndPublication, System.Boolean useDefaultConstructor) [0x00022] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/Common/src/CoreLib/System/Lazy.cs:351
  at System.Lazy`1[T].CreateValue () [0x00074] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/Common/src/CoreLib/System/Lazy.cs:431
  at System.Lazy`1[T].get_Value () [0x00000] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/Common/src/CoreLib/System/Lazy.cs:509
  at LiteDB.Engine.StreamPool.get_Writer () [0x00000] in <7b8c154640e6442cbc93e4644732d128>:0
  at LiteDB.Engine.DiskService..ctor (LiteDB.Engine.EngineSettings settings, System.Int32[] memorySegmentSizes) [0x0009a] in <7b8c154640e6442cbc93e4644732d128>:0
  at LiteDB.Engine.LiteEngine..ctor (LiteDB.Engine.EngineSettings settings) [0x00173] in <7b8c154640e6442cbc93e4644732d128>:0
  at LiteDB.ConnectionString.CreateEngine () [0x0004a] in <7b8c154640e6442cbc93e4644732d128>:0
  at LiteDB.LiteDatabase..ctor (LiteDB.ConnectionString connectionString, LiteDB.BsonMapper mapper) [0x0002e] in <7b8c154640e6442cbc93e4644732d128>:0
  at LiteDB.LiteDatabase..ctor (System.String connectionString, LiteDB.BsonMapper mapper) [0x00007] in <7b8c154640e6442cbc93e4644732d128>:0
  at MonkeyCache.LiteDB.Barrel..ctor (System.String cacheDirectory) [0x00059] in D:\a\1\s\src\MonkeyCache.LiteDB\Barrel.cs:68
  at MonkeyCache.LiteDB.Barrel.get_Current () [0x00000] in D:\a\1\s\src\MonkeyCache.LiteDB\Barrel.cs:34
  at CardiffMobileApp.Services.Cache.CacheService.IsExpired (System.String key) [0x00001] in D:\WS\Azure\App\CardiffMobileApp\CardiffMobileApp\Services\Cache\CacheService.cs:56
  at CardiffMobileApp.Services.Cache.CacheService.Get[T] (System.String key, System.Boolean allowExpired) [0x00001] in D:\WS\Azure\App\CardiffMobileApp\CardiffMobileApp\Services\Cache\CacheService.cs:49
  at CardiffMobileApp.Services.ReportIt.ReportItService.GetData () [0x0004a] in D:\WS\Azure\App\CardiffMobileApp\CardiffMobileApp\Services\ReportIt\ReportItService.cs:42

I've implemented MonkeyCache by creating an Interface and wrapped the methods we use. When the class is created it provided the encryption key -

Hmmmm nothing changed here: https://github.com/jamesmontemagno/monkey-cache/blob/master/src/MonkeyCache.LiteDB/Barrel.cs#L56-L66
I'll try to update it to 5.0.10

If you move back down to 1.3.0?

Looks like maybe it is this -> https://github.com/mbdavid/LiteDB/issues/1428

@jamesmontemagno Great, ye moving back to 1.3.0 works.
No rush, if you want me to test it before you publish anything to NuGet, if you add the .nupkg
to this issue i'll give it ago.

pushing out 1.5.2-pre give that a try and set:
Barrel.Upgrade = true; after you set Encryption key

@jamesmontemagno thanks that did the trick

yay! i will document it


Feature | 把主要/次要資料庫啟用改為命令中指定

Codecov Report

Merging #91 (a6d27b4) into main (e756eba) will decrease coverage by 0.06%.
The diff coverage is 92.30%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
@@            Coverage Diff             @@
##             main      #91      +/-   ##
==========================================
- Coverage   92.48%   92.42%   -0.06%
==========================================
  Files          43       43
  Lines        2395     2377      -18
==========================================
- Hits         2215     2197      -18
  Misses        129      129
  Partials       51       51

Files Changed
Coverage Δ

mizugos/redmos/mxexist.go
76.92% <84.61%> (-4.33%)
:arrow_down:

mizugos/redmos/mxdel.go
75.67% <100.00%> (-2.38%)
:arrow_down:

mizugos/redmos/mxget.go
73.68% <100.00%> (-1.73%)
:arrow_down:

mizugos/redmos/mxset.go
73.21% <100.00%> (-1.79%)
:arrow_down:

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


quote image tags in vagrant setup

Helm treats tags as float64 whenever possible. This means tag "2.0"
would become just "2" which causes ImagePullBackOff.
Signed-off-by: samuel.elias<EMAIL_ADDRESS>

Coverage increased (+0.02%) to 75.644% when pulling 3d44fcff27aeaf910ccdc606bcf99a25fdd2ca98 on samelias:quote_tags_2.0 into 5c83b8e1c49276f0f57152b225f42273836478d8 on contiv:release-2.0.


[SPARK-18695] Bump master branch version to 2.2.0-SNAPSHOT

What changes were proposed in this pull request?
This patch bumps master branch version to 2.2.0-SNAPSHOT.
How was this patch tested?
N/A

Test build #69599 has started for PR 16126 at commit 5362113.

Test build #69599 has finished for PR 16126 at commit 5362113.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/69599/
Test PASSed.

Merged build finished. Test PASSed.

Merging in master.


Session timeout exception while launching Edge in IE mode

See, https://github.com/SeleniumHQ/selenium/issues/10633
Steps to re-produce:
Language: C#

Download Selenium.Webdriver v4.1.1
Download 32-Bit IEDriverServer.exe v4.0.0 or higher and put it in path(say C:/Drivers/IEDriverServer.exe)
Use below script:

namespace SeleniumTest
{
    class Program
    {
        static void Main(string[] args) {

            var driver = new InternetExplorerDriver(@"C:\Driver", new InternetExplorerOptions
            {
                AttachToEdgeChrome = true,
                EdgeExecutablePath = "C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe",
                IgnoreZoomLevel = true
            });
        }
    }
}

After launch of Edge, the control is never sent back to scripts.
Output
OpenQA.Selenium.WebDriverException: 'The HTTP request to the remote WebDriver server for URL http://localhost:53359/session timed out after 60 seconds.'

I tried the sample script and it runs successfully. From the linked SeleniumHQ issue, it sounds like you've already done the required configuration in https://www.selenium.dev/documentation/ie_driver_server/ so I could use some more information:

Windows version
Edge version
Any other details about the environment (is it a VM, a physical machine?, etc..)

Sure,
Here are the details:
OS: Windows 10
Edge version: 101.0.1210.39
Selenium version: 4.0.0 or higher
Its a physical machine.

Is Internet Explorer enabled as a Windows feature? I believe this is still necessary for IE Mode in Edge.
You can also try using either the 32-bit or 64-bit version of IEDriver https://www.selenium.dev/downloads/ and seeing whether that helps.

I am going to close this issue since there hasn't been any recent comments. Feel free to reopen if you are able to provide more details.


Splash Screen for Android

Splash screen for android, doing it native.
Supports all devices.

There is again a loading screen, which is shown when background process is going on. So this as introduced a brand new 2 second delay.

I think this delay is not in iOS app?

We would like to share code between android and iOS as much as possible. (so at latter stage if we decide to change design it becomes super easy)

For iOS we don't need to add any code. We can just add the designs for splash screen.
Check out : https://medium.com/the-react-native-log/change-default-launch-screen-in-react-native-ios-app-544f94f1e947

I think we have a splash screen on iOS... not 100% sure we are showing it.
In any case, a potential splash screen needs to:

not increase the loading time, but show it over the 'loading progress' thing we have
be the same between iOS and Android
be consistent with the web app

Currently, the image doesn't look like anything we have on the web app.
We should be consolidating the 'logo' and not creating more versions.
I tested about 10 chat apps right now, and most of them have no splash screen and no progress bar even. Best case for us is to speedup loading and just show the UI itself.

Here is the demo:

@borisyankov Is this fine? I added logo instead of having loading ( inspired by airbnb app) Shoul i resolve the merge conflicts or close it?

Closing as no longer needed.


Rich Text Editor

The Rich Text Editor feature for this project is intended to be a space for freeform notes. The RTE should be approachable but does not need to be a fully-featured word processing UX.
At this time I am writing the draft schema for the data model with the assumption that the RTE values will be encoded at the root of the data model. That is, there will be no granularity about where notes are assigned.

AJ (oe5jey on Slack) and I (Debbie Berlin) have been following this tutorial: https://draftjs.org/ which uses a library to help create a Rich Text Editor. We were able to insert a very basic editor (that allows free form typing only). The tutorial advises including a Draft.css file to allow for buttons, etc. for text editing which we were not yet sure how to include. AJ will create a separate branch with the code. Help appreciated -- thank you. This is the link for AJ's branch: https://github.com/xee5ch/rfj_expungement/tree/issue-26-spike-rich-text-editor

This issue is also being worked on in: Rich Text Editor Draft #60 pull request.

Hi @CharlesDLandau hope all is well 😄
The PR reference has been merged ( #60 ). Should we close this issue and complete the items found in #15?


Installation command not working with latest Homebridge Docker release

Describe The Bug:
I upgraded Homebridge to latest docker image (1.4.1) using the Docker UI on a Synology NAS. I 'Reset' the previous container (losing any in-container changes). The configuration was retained, but on startup there was an (expected) error:

No plugin was found for the platform "EchonetLiteHeaterCooler" in your config.json. Please make sure the corresponding plugin is installed correctly.

Executing 'npm install -g 'yasuoza/homebridge-echonet-lite-heater-cooler#npm' in the homebridge terminal failed.
To Reproduce:
In Homebridge terminal, paste:
npm install -g 'yasuoza/homebridge-echonet-lite-heater-cooler#npm'
Output:
npm ERR! code 128
npm ERR! An unknown git error occurred
npm ERR! command git --no-replace-objects ls-remote<EMAIL_ADDRESS>npm ERR! ssh -oStrictHostKeyChecking=accept-new: line 1: ssh: not found
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2022-06-05T02_36_52_778Z-debug-0.log

Expected behavior:

Logs:
n/a
Plugin Config:
n/a
Screenshots:
n/a
Environment:

Plugin Version:
Homebridge Version: 1.4.1
Node.js Version: 16.15.0
NPM Version: 8.5.5
Operating System: Docker on Synology NAS

Managed to install it manually:
(I'm not really familiar with node, so i'm sure this isn't the right way, but it worked for me!)
cd /usr/local/lib/node_modules
git clone https://github.com/yasuoza/homebridge-echonet-lite-heater-cooler.git -b npm
cd homebridge-echonet-lite-heater-cooler/
npm install

Hi -- is this plugin still being maintained?   The 'npm' branch seems to be about 7 months behind the master, and the master is only getting bot-committed updated?
This package was working really well, but stopped working one day, so i thought i'd reinstall things.
I had some trouble getting it going with the latest Homebridge release (v1.5.0) again.
I just installed the new Docker package, which has shifted to using hb-service or something.
I think i eventually managed to figure out a manual install approach - the paths have changed in the new release:
cd /var/lib/homebridge/node_modules/
git clone https://github.com/yasuoza/homebridge-echonet-lite-heater-cooler.git -b npm
cd homebridge-echonet-lite-heater-cooler/
npm install

It would be awesome if this package could be added to the registry or whatever is required, to make it installable in the Homebridge UI 'plugins' tab. When you search for 'echonet' this plugin can't be found ... which is a shame, as this one seems to be much more efficient than the others.

Hi again -- just checking again to see if any likelihood this package is going to be updated to work with the Homebridge package system?
I'm running Homebridge on a Synology NAS, and the latest version is a standard Synology package ... which no longer includes git... so my workarounds no longer work, and i've had to copy across the node modules from an old install to get it working after doing some upgrades.
Your plugin otherwise is working wonderfully -- be great to have it available and more accessible to the full homebridge community.


Upstream ApisUtils from kip-500

In the KIP-500 development branch, we have a separate ControllerApis that shares a lot of functionality with KafkaApis. We introduced a utility class ApisUtils to pull out the common code. Some things were moved to RequestChannel as well.
We'd like to upstream this work now so we don't continue to diverge (since KafkaApis is a frequently modified class). There should be no logical changes in this PR, only shuffling code around.

@abbccdda can you take a look at the forwarding parts?

@chia7712 thanks for the feedback. I've incorporated your suggestions, can you take another look?

Note that the goal here is not to reduce KafkaApis footprint, it is to allow reuse from ControllerApis. The latter is required for the KIP-500 effort. I think it makes sense to go with a simple change here that extracts commonly used methods. If we want to discuss breaking up KafkaApis, that is a fair discussion, but can happen separately. Does that make sense @chia7712?

I think it makes sense to go with a simple change here that extracts commonly used methods. If we want to discuss breaking up KafkaApis, that is a fair discussion, but can happen separately. Does that make sense

makes sense to me :)

The test failures were due to unhappy mocks in KafkaApisTest. It looks rather tedious to fix the mocks so I ended up moving two of the methods I had put into RequestChannel back into the helper class. They are now passing for me locally.

The test failures were due to unhappy mocks in KafkaApisTest. It looks rather tedious to fix the mocks so I ended up moving two of the methods I had put into RequestChannel back into the helper class. They are now passing for me locally.


 I've read in old issues here that addch() doesn't work because it calls a non-wide char using function in the backend so I guess it's the same for border(). Does that mean I have to print the border tediously using addstr() or is there a better way?
And to make it more of an issue and less of a support question, I'm not sure if ncurses and pdcurses have wide char border functions but since Rust is so unicode-oriented I guess pancurses should call wide functions whenever possible

@GOKOP Have you found a solution? I was also just trying to draw a nice border with unicode chars and found that the border function doesn't work.

@palto42 I ended up drawing the border myself with addstr()

@GOKOP Thanks.
I meanwhile found that the limitation of border is caused by the underlying C function of ncurses, which means a unicode implementation can't do a simple call to the C-lib and would require a similar solution as you did.


Added IPv6 config into README

This adds in the info I needed to get our network up-and-running with IPv6; I'm hoping we can add this into the README for future adopters.

Going to crosscheck with my config, pretty similar, minus obvious port difference.
My att has been off & unplugged for over a week already.
Storms most of reason for reboots. I agree it should be added.

issue #3 documents a lot of this, though jay emailed me the config I used in this PR which I had to change slightly (eth3 to eth0). The only thing I had to add was the slaac service for ipv6 to work for me (but I also used duid to keep our old block).

This config is working perfectly for me. 10/10 on test-ipv6.com

@jimbair Added your updated config into my guide here:  guide_eap_proxy.  Thanks to @h-parks for pointing this out to me.

@jaysoffian curious if you had any feedback :)


SecurityPolicyDsc: Converting to new CI pipeline

Work need to be done to convert this repository to use the new CI pipeline.
https://dsccommunity.org/blog/convert-a-module-for-continuous-delivery/

These PR's should be merged which will help with the conversion process:
https://github.com/dsccommunity/SecurityPolicyDsc/pull/139
https://github.com/dsccommunity/SecurityPolicyDsc/pull/138
https://github.com/dsccommunity/SecurityPolicyDsc/pull/137

Hi @johlju,  if you can start merging in the documentation update PRs, I'll convert this module to the new CI pipeline.

Done!

Cheers! have all the latest changes we have been making to the pipeline been applied to the Sampler template?

Hi @johlju, I can't update the Git tags, as I have no write permissions to this repo. Do you want to do that stage, or give me permissions to do so?

Cheers! have all the latest changes we have been making to the pipeline been applied to the Sampler template?

Not all no. :/

Hi @johlju, I can't update the Git tags, as I have no write permissions to this repo. Do you want to do that stage, or give me permissions to do so?

Let's ping @gaelcolas on Slack so you get access everywhere. I think I can give you permission to the repo though.

OK, I'm going to take the azure-pipelines.yml from ActiveDirectoryDsc and use that then.

Yes do that it is the fastest

@X-Guardian You should gotten an invite to the repo now.

Yep cheers, I can see 'Settings' on the repo now.


Adds round export button and changes simpleExport

Fixes #221.

@asemoller Tabs are a bit wide here too; two spaces is should be the default setting. Picky, I know, especially when the rest of the documentation suffers from the same thing. No point in adding more to the mess, though.


Certain include parameters require full control access rather than just read

When trying to get a PnPWeb, certain parameters require the PnPConnection (ie using AppID/AppSecret to have Full Control right () rather than just read, which is an issue for a pure reporting scenario.
Ie With read-only access, Get-PnPWeb -Includes RequestAccessEmail, UseAccessRequestDefault results in an Get-PnPWeb : Access denied. You do not have permission to perform this action or access this resource.

@officedocsbot assign @yogkumgit

Hello @Hannes-Git
Thanks for your feedback.
This issue resource is specifically to report issues in documentation.
PnP cmdlets are community-driven, so to report bugs, issues and feature requests, the resource to start is https://docs.microsoft.com/en-us/sharepoint/dev/community/community
Hope this info helps you.

Another option @Hannes-Git
Create an issue here https://github.com/SharePoint/PnP-PowerShell/issues
with full and complete information of what you experienced.
Thanks

@get-itips  Thank you very much for the contribution and sharing this explanation. @Hannes-Git
Hope this comment is helpful for you. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.

@officedocsbot close


Manual Backport: adding hostname support for notifications deny list

Manual backport of https://github.com/opensearch-project/notifications/pull/858
Description
[Describe what this change achieves]
Related Issues
Resolves #[Issue number to be closed when this PR is merged]

Check List

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

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

Security tests failing in previous PR
https://github.com/opensearch-project/notifications/actions/runs/8445591278/job/23133023191?pr=894


Fix issue when intermediate dependencies also contain vulnerabilities

This PR addresses the scenario when the intermediate artifact contains vulnerabilities.  The current codebase ignores these vulnerabilities when running certifier, for example the vertx-web vulnerability in the test case.

Thanks, @knrc that's a great catch! In our testing, we were working with custom images that would not have vulnerabilities associated so this was missed in the test case.

@pxp928 I'm seeing test failures for a different test, TestCertifyHelperStackOverflow, which is failing with "Invalid Package URL".  I've been running tests locally but cannot reproduce, is there something in the backend environment I should know about?

@pxp928 This PR is generating CI test failures for a different test, TestCertifyHelperStackOverflow, which is failing with "Invalid Package URL". I've been running tests locally but cannot reproduce, is there something in the backend environment I should know about?

So if you replace it with the following test values that will fix that issue. It was not formatted properly and did not hit the OSV endpoint so it never error before.:
	A = &root_package.PackageComponent{
		Package: assembler.PackageNode{
			Purl: "pkg:example.com/A",
		},
	}

	B = &root_package.PackageComponent{
		Package: assembler.PackageNode{
			Purl: "pkg:example.com/B",
		},
	}
	C = &root_package.PackageComponent{
		Package: assembler.PackageNode{
			Purl: "pkg:example.com/C",
		},
	}

Weird, now it is failing for me :)

Weird, now it is failing for me :)

Right, it should fail for you locally as well. :)

Thanks for your help @pxp928


Help to build addon

Hello everybody,
I need help to build a nodejs addon to create an interface for  Hx711 ADC (repository).
The addon was build, but when I try to run the test script, I get the message: undefined symbol: mraa_gpio_close.

Thank's for advance!

That's awesome, have you looked at submitting this to UPM instead? Also you are aware there is a js interface to mraa (though nothign wrong with a nice native module :))
You don't link against mraa, you need to add -lmraa to the linker flags in binding.gyp something like (if you do ldd against your node module you'll see:
brendan@hippo ~/hx711-addon/src (git)-[master] % ldd build/Release/hx711.node
	linux-vdso.so.1 (0x00007fffc87fe000)
	libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007ff260bde000)
	libm.so.6 => /usr/lib/libm.so.6 (0x00007ff2608d9000)
	libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007ff2606c3000)
	libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007ff2604a6000)
	libc.so.6 => /usr/lib/libc.so.6 (0x00007ff260103000)
	/usr/lib64/ld-linux-x86-64.so.2 (0x00007ff261133000)

but no mraa :(. I've submitted a PR with a fix here:
https://github.com/rafaneri/hx711-addon/pull/1
One comment (had a quick run through the code) https://github.com/rafaneri/hx711-addon/blob/master/src/HX711.cpp#L9 - if you call mraa_init() check the return value otherwise it's a waste of time (it's already getting called on libmraa load)

@arfoll I'm using the mraa to many sensors, but to this ADC, I did observed that the read time in nodejs was delayed. Then, to do a test, I wrote the native addon. Thanks for the comments, it was my first addon in my life, I going to better it! :D


Testing - not to be merged - use v1.4.0-1.4.3 to reproduce windows build

Checklist

[x] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

@conda-forge-admin, please rerender

@conda-forge-admin, please rerender

Reference: https://github.com/diffpy/diffpy.pdffit2/releases
230926 8:40 AM  rollback report 1
use v1.4.0 b8 to reproduce earlier build success:

good: win, macOS (intel), linux for Python 3.9-12 build
bad: still not v1.4.1, 1.4.2, 1.4.3

@conda-forge-admin, please rerender

@conda-forge-admin, please rerender

@conda-forge-admin, please rerender

@conda-forge-admin, please rerender

Closing this PR since we know the exact setup required to build windows.


Multi Select

What is the expected behavior?
should trigger the button on  fist click only
What is the current behavior?
it triggering on 2nd click
What are the steps to reproduce?
Providing a StackBlitz reproduction is the best way to share your issue.
StackBlitz starter: https://goo.gl/wwnhMV
select option from multi select and try to click on button
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
latest
Is there anything else we should know?

after selecting option from select and click on button not working for first time

It looks like you've sent the link to the stackblitz template rather than your own version

It looks like you've sent the link to the stackblitz template rather than your own version

@agpreynolds please download and run code
nknanbljxbk.angular.zip

Looks like this is a focus issue. When you select from the multi-select the overlay remains open as you may want to select a second option.
While the overlay is visible other events cannot be triggered. However if you click somewhere else on the page then click the button it works as expected.
I'm sure someone from the material team will confirm, but this looks like the control is behaving as designed.

Closing as this is working as intended.  When an overlay is open, as it is while making a selection from the select list, any click outside the list is captured to close the overlay.  This is consistent with how the native select implementation works.


[3.2] Fix regression in baked lights when using GLES2

Lights with bake mode set to "All" were behaving erratically because of a
faulty check in the renderer. This should be the correct way to check if
a geometry instance is using baked light.
Fixes #43204.

Thanks!


Golang Handler encountering System.Net.Sockets.SocketException

I have created a Golang custom handler that is running on a windows consumption plan. The Function App runtime version is 3.0.13353.0. I have followed the sample Golang code in this repo and modified it to trigger on event hub events.
My host.json file is:
{
  "version": "2.0",
  "extensionBundle": {
    "id": "Microsoft.Azure.Functions.ExtensionBundle",
    "version": "[1.*, 2.0.0)"
  },
  "extensions": {
    "eventHubs": {
      "batchCheckpointFrequency": 1,
      "eventProcessorOptions": {
        "maxBatchSize": 512,
        "prefetchCount": 1024
      }
    }
  },
  "httpWorker": {
    "description": {
      "defaultExecutablePath": "main.exe"
    }
  }
}

and my function.json file is:
{
  "bindings": [
    {
      "type": "eventHubTrigger",
      "name": "events",
      "direction": "in",
      "eventHubName": "diagnostic-logs",
      "consumerGroup": "consumer-group",
      "cardinality": "many",
      "connection": "DIAGNOSTIC_LOGS_EVENT_HUB_CONNECTION_STRING"
    }
  ]
}

In addition to modifying the code to be triggered off of event hub events, I also added the ability to fetch a secret from Key Vault on start up. Because of this, I have assigned the Function App a system assigned managed service identity and have given it permissions get secrets from a Key Vault.
My code is as follows:
package main

import (
	"context"
	"encoding/json"
	"fmt"
	"log"
	"net/http"
	"os"
	"strings"

	"github.com/Azure/azure-sdk-for-go/services/keyvault/2016-10-01/keyvault"
	"github.com/Azure/go-autorest/autorest/azure"
	"github.com/Azure/go-autorest/autorest/azure/auth"
)

var (
	mySecret string
)

type InvokeResponse struct {
	Outputs     map[string]interface{}
	Logs        []string
	ReturnValue interface{}
}

type InvokeRequest struct {
	Data     map[string]interface{}
	Metadata map[string]interface{}
}

func init() {
	authorizer, err := auth.NewAuthorizerFromEnvironmentWithResource(strings.TrimSuffix(azure.PublicCloud.KeyVaultEndpoint, "/"))
	if err != nil {
		fmt.Println("Failed to create authorizer")
		os.Exit(1)
	}

	secretsClient := keyvault.New()
	secretsClient.Authorizer = authorizer

	fmt.Println("Fetching secret")
	secret, err := secretsClient.GetSecret(context.Background(), os.Getenv("AZU_KEY_VAULT_URI"), "my-secret", "")
	if err != nil {
		fmt.Printf("Failed to fetch secret: %s\n", err)
		os.Exit(1)
	}
	mySecret = *secret.Value
	fmt.Println("Successfully fetched secret")
}

func eventHubTrigger(w http.ResponseWriter, r *http.Request) {
	fmt.Println("Triggered")

	invokeResponse := InvokeResponse{Logs: []string{"success"}}

	js, err := json.Marshal(invokeResponse)
	if err != nil {
		http.Error(w, err.Error(), http.StatusInternalServerError)
		return
	}

	w.Header().Set("Content-Type", "application/json")
	w.Write(js)
}

func main() {
	httpInvokerPort, exists := os.LookupEnv("FUNCTIONS_HTTPWORKER_PORT")
	if exists {
		fmt.Println("FUNCTIONS_HTTPWORKER_PORT: " + httpInvokerPort)
	}
	mux := http.NewServeMux()

	mux.HandleFunc("/diagnostic_logs", eventHubTrigger)

	log.Println("Go server Listening...on httpInvokerPort:", httpInvokerPort)
	log.Fatal(http.ListenAndServe(":"+httpInvokerPort, mux))
}

The main thing to call out is the init() function which fetches the secret from Key Vault.
Every execution of the function is throwing a System.Net.Sockets.SocketException exception for me. The message for the exception is "An attempt was made to access a socket in a way forbidden by its access permissions. An attempt was made to access a socket in a way forbidden by its access permissions."
I can see the line fmt.Println("Fetching secret") printing in App Insights but nothing else seems to be printed after this. If I were to remove the fetching of the secret from Key Vault (so the whole init() function), the function executes fine.
I don't know if this issue is related to custom handlers, but I would appreciate some guidance.

I suggest trying to run this locally with trace enabling. I just ran into a similar issue and it was just an underlying error that doesn't get caught.
In your host.json
  "logging": {
      "logLevel": {
          "default": "Trace"
  }

Basically the custom handler attempts to cold start your app and then send an http request to the webserver
If somethign is failing in your init() function I don't think it will ever connect
Also did you set the environment variable AZU_KEY_VAULT_URI somewhere? In your app settings in the portal or locally in your


Option to use the tailscale integration

Problem this feature will solve

With the Tailscale integration you can use e.g. services / databases in other environments in your GitPod development environment.
Background

Securely access a cloud or on-prem resource, like a production database
Spin up a fleet of connected Gitpod workspaces
Share a staged resource with a colleague, as part of a review
Access a package registry
Complete a coding interview

Proposed Solution

GitPod has a sample project for the tailscale integration. https://github.com/gitpod-io/template-tailscale
If the GitPod ENV "TAILSCALE_AUTHKEY" is present and the Tailscale integration has been enabled in the starter.ini, the Tailscale service shall be started in the background and the AuthKey shall be used to log into the TailNet.
Here the GitPod Blog Post: https://www.gitpod.io/blog/tailscale

At the time of writing this, the tailscale  and tailscald binaries are very new and require sudo to run. Also running: tailscale --help outputs this: This CLI is still under active development. Commands and flags will change in the future.
Until Gitpods tailscale commands will not change (the API is solid and not so expiremental) A user that wants to implement tailscale can do so on their own by setting a value for the TAILSCALE_AUTHKEY environment variable in the Gitpod dashboard and then running  the following command in the terminal after a workspace is created:
      sudo -E tailscale up --hostname "gitpod-${GITPOD_WORKSPACE_ID}"  --authkey "${TAILSCALE_AUTHKEY}"

Also as a side note it is not advised to run tailscale in the background as a user would not be prompted in the terminal to authenticate:
To authenticate, visit:

 https://login.tailscale.com/a/542947456ed5

Or notified in the terminal if tailscale was successfully authenticated or not.

@strausmann is it ok with you if I  keep this issue in the backlog and leave it out of the 1.4 release?

it's ok for me... thx


New Connection Failure

Storage Explorer Version:
Build Number:
Platform/OS:
Architecture:
Regression From:
Bug Description

Steps to Reproduce

Expected Experience

Actual Experience

Additional Context

Can you please elaborate a bit more on what you were trying to do?  Which version of Storage Explorer and on which OS? Thanks.

Closing due to lack of response.


Sniping for higher price then bin?

[13:42:36] Bought for BIN (650) on Hector
[13:42:42] Bought for BIN (650) on Hector
[13:42:49] Bought for BIN (650) on Hector
How its Possible he buys players who have max bin 600 and he starts to buy them for 650 all?

Hi,
Is your app up to date?
Was fixed with release 0.2.2...

Have the same problem after update today!  Bought a player with max bid 900 for 950 and puts him on transferlist for min price 800. That doesnt make sense, hehehe

Ye i have the newest update. So i guess something not working correct

Does this happen shortly after a price update, or all the time?

Happens shortly after the price update,
Mulumbu should be bought for max. 1500:
[17:02:08] Updating price for Mulumbu... ... [17:09:00] Preparing to snipe Mulumbu... [17:09:13] 16 BIN found for Mulumbu... [17:09:29] Bought for BIN (2000) on Mulumbu [17:09:48] Bought for BIN (2000) on Mulumbu [17:10:03] Bought for BIN (2000) on Mulumbu [17:10:20] Bought for BIN (2000) on Mulumbu [17:10:35] Bought for BIN (2000) on Mulumbu [17:10:57] Bought for BIN (2000) on Mulumbu [17:11:21] Bought for BIN (2000) on Mulumbu

ye happen after price update

@Gsoul2k9, @Fotospecht, @syros1977, @Nicorad - Please try with v0.3.1

@hunterjm I think it's ok now

checking. First of all Thumbs up Hunter. Will answer later if that happend again

Seems to be fixed 👍

Closing as it appears to be fixed.


Should we add faux-generics support for collections?

Forms JS currently supports:

Array type type: array
Basic validations on the array (required, min, max)
Validations on nested objects within the array

However we don't support validating an arrays contents if those contents are primitives (e.g. we don't allow you to say "an array of numbers" vs "an array of strings").
We could support this using generics type syntax: type: 'Array<String>' if we think the use-case is important.
We could also support this by adding a new validation rule for arrays that worked something like:
validationRules = {
  someField: {
    type: 'Array',
    itemType: 'String' // String, Float, Boolean, Integer, Object
  }
};

This might be more inline with our other validation rules.

I like to keep the type property consistent in primitives too. It's a bit verbose but gives you the opportunity to add more stuff in the object.
validationRules = {
  someField: {
    type: 'Array',
    itemType: { type: 'string' }
  }
};

validationRules = {
  someField: {
    type: 'Array',
    itemType: {
      type: 'string',
      format: '[a-z]'
    }
  }
};

We're on the path of re-inventing JSON Schema! ;)

I don't think we're reinventing JSON schema. Just discussing how much of a subset of its functionality we also may want to support.
I don't like itemType being an object. I think the only objects inside of validation rules should be the ones that mirror the structure of the form-data object. I'm also not necessarily convinced we even need to support this use-case. It could be done simply by letting users provide a custom validator for the collection like so:
validationRules = {
  someField: {
    type: 'Array',
    validators: [
      function(value, formData) {
        // Iterate over 'value' and do whatever you want to evaluate your primitive types
      }
    ]
  }
};

Maybe that's the better approach (at least for now) to keep things from getting to complex or special-cased.

Based on chatter in the Gitter room I'm going to close this issue for now. We can rely on custom validators for arrays of primitive types. If this becomes a feature people are really wanting in the future, we can always revisit. :)


Bug: Fix VRM connection logic

Quoting @wiebeytec:

I also see an (unused?) hostname mqtt.victronenergy.com. This works currently by accident, but is not compatible with our server sharding. See Determining the broker URL for a given installation.

Also, it uses VRM tokens to request JWTs, but the auth scheme Token ${app.config.secrets.vrmToken} works with MQTT too nowadays. See Connecting to the VRM MQTT servers. This also helps in preventing expiring JWTs.

This needs to be addressed.

So point 1 calculating proper VRM MQTT instance is actually addressed correctly, see here:
https://github.com/victronenergy/venus-influx-loader/blob/d18ce6ebd83f98422aeaf3bd8cc788cc22a2b8f6/src/server/loader.js#L273-L280
and it works as required...

I guess this mention of mqtt.victronenergy.com gave me the wrong impression. I guess it should be removed.


Cscfairmeta 1104 set up ldap idm

set up app_config with
LDAP:
HOST:
BIND:
PASSWORD:

Closed, since active development of this repository has been moved away from GitHub.


Add several drawing functions with documentation and examples

This PR adds several functions from the raw drawing API: AddCircle, AddCircleFilled, AddText, AddImage, and AddPolyline. All of these are members of _DrawList, which I added to documentation.
Each of the newly-implemented functions have visual examples, and I tried my best to document them similarly to other functions in PyImGui. I didn't know if I should include the visual examples themselves, so I did.
This PR is a continuation of #103, but I added visual examples and limited the focus on _DrawList functions. It partly intersects with #123, but with (hopefully) better documentation. It also (partly?) solves #49.

Coverage increased (+0.5%) to 54.01% when pulling 597dd633536bf4fe10962840ff107183b18eb6ec on potocpav:draw into c163865e5cf1d9adf957029247d620cc348f592f on swistakm:master.

The deletions in imgui/core.pyx are just because I reordered the drawing functions to match the order in imgui

This is rad! Thank you for the contribution.
Sorry it took me so long to review.

Great that it got merged! Together with the other recent updates, this will enable me to throw away my fork and publish a project on pypi. Thanks :)

Great to hear that. As soon as the build completes I will publish new version.

This has been released in 1.1.0 and is available for download from PyPI.


Add textbox in grid toolbar and set value for column?

Help me!
how can add textbox in quick bar and using keyup set value for colums

if textbox (red) is keyup value => all value row of column(yelow) = texbox value

Add quickfilter attribute to field, and see https://github.com/volkanceylan/Serene/tree/master/Serene/Serene.Web/Modules/BasicSamples/Grids/InitialValuesForQuickFilters

Thanks @Estrusco


feat: add dark & light mode button in the header

In the header section we need to add a button to change the theme color(dark, light etc.)

@priyankarpal, I want to work on this feature.


FloatingActionButton flickers on Hero animation

I have a list of images in a SliverList with a FloatingActionButton on the bottom-right corner. When the user click's any image on the SliverList, the image animates to a new Route where the image goes behind the AppBar on this new page. I am using a Hero widget to make the animation from the SliverList item to the AppBar flexibleSpace.
The problem happens when the clicked image is behind the FloatingActionButton on the first page and the user clicks the back button on the second page. When the user clicks the image on the SliverList the image animates fine to the next page, but when it goes back the image transitions from the top (the AppBar) to the bottom right in front of the FloatingActionButton, while the FloatingActionButton fades-in as the second page fades-out, and then the Herowidget suddenly replaces the source image with the destination image, as the source is on top of theFloatingActionButtonand the destination is behind, the end result is theFloatingActionButton` flickering in place, which goes against all the soft transitions that happened before.
So in a nutshell, as we go back we see the FloatingActionButton fading-in while the image moves covering it then suddenly it appears on top of the image.

Hi @MichaelRFairhurst
can you please provide your flutter doctor -v and flutter run --verbose?
Also, to better address the issue, would be helpful if you could post a minimal code sample to reproduce the problem
Thank you

@TahaTesser you should be able to see al of this with the following code, just click on the rectangle that's behind the FloatingActionButton on the first scrren:
class FirstScreen extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: ListView.builder(
        itemCount: 15,
        itemBuilder: (BuildContext context, int index) {
          return Hero(
            tag: index,
            child: GestureDetector(
              onTap: () {
                return Navigator.push(
                  context,
                  MaterialPageRoute(
                    builder: (context) => SecondPage(index),
                  ),
                );
              },
              child: Container(
                height: 200,
                color: Colors.primaries[index],
              ),
            ),
          );
        },
      ),
      floatingActionButton: FloatingActionButton(
        child: Icon(Icons.add, color: Colors.white,),
        onPressed: () { },
      ),
    );
  }
}

class SecondPage extends StatelessWidget {
  SecondPage(this.tag);

  final int tag;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Second Page'),
      ),
      body: Hero(
        tag: tag,
        child: Container(
          height: 200,
          color: Colors.primaries[tag],
        ),
      ),
    );
  }
}

Hi @feinstein
Does this described your FAB flicker issue gif
Thank you

Kinda... It needs more frames to show it better.

Reproducible on stable and master.

video recorded with slow animations on
https://user-images.githubusercontent.com/88313112/166662877-6af4c08f-f4e5-4875-8710-2e1aa7c68338.mov

updated code sample
import 'package:flutter/material.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: FirstScreen(),
    );
  }
}

class FirstScreen extends StatelessWidget {
  const FirstScreen({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: ListView.builder(
        itemCount: 15,
        itemBuilder: (BuildContext context, int index) {
          return Hero(
            tag: index,
            child: GestureDetector(
              onTap: () {
                Navigator.push(
                  context,
                  MaterialPageRoute(
                    builder: (context) => SecondPage(index),
                  ),
                );
              },
              child: Container(
                height: 200,
                color: Colors.primaries[index],
              ),
            ),
          );
        },
      ),
      floatingActionButton: FloatingActionButton(
        child: const Icon(Icons.add, color: Colors.white,),
        onPressed: () { },
      ),
    );
  }
}

class SecondPage extends StatelessWidget {
  const SecondPage(this.tag, {Key? key}) : super(key: key);

  final int tag;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Second Page'),
      ),
      body: Hero(
        tag: tag,
        child: Container(
          height: 200,
          color: Colors.primaries[tag],
        ),
      ),
    );
  }
}

flutter doctor -v
[✓] Flutter (Channel stable, 2.10.5, on macOS 12.3.1 21E258 darwin-arm, locale en-GB)
    • Flutter version 2.10.5 at /Users/nexus/dev/sdks/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5464c5bac7 (2 weeks ago), 2022-04-18 09:55:37 -0700
    • Engine revision 57d3bac3dd
    • Dart version 2.16.2
    • DevTools version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/nexus/Library/Android/sdk
    • Platform android-32, build-tools 31.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)

[☠] IntelliJ IDEA Community Edition (the doctor check crashed)
    ✗ Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know about this issue at https://github.com/flutter/flutter/issues.
    ✗ FormatException: Unexpected extension byte (at offset 5)
    • #0      _Utf8Decoder.convertSingle (dart:convert-patch/convert_patch.dart:1789:7)
      #1      Utf8Decoder.convert (dart:convert/utf.dart:351:42)
      #2      InputStream.readString (package:archive/src/util/input_stream.dart:207:30)
      #3      new ZipDirectory.read (package:archive/src/zip/zip_directory.dart:40:30)
      #4      ZipDecoder.decodeBuffer (package:archive/src/zip_decoder.dart:19:30)
      #5      ZipDecoder.decodeBytes (package:archive/src/zip_decoder.dart:14:12)
      #6      IntelliJPlugins._findPluginXml (package:flutter_tools/src/intellij/intellij.dart:130:44)
      #7      IntelliJPlugins._readPackageVersion (package:flutter_tools/src/intellij/intellij.dart:141:40)
      #8      IntelliJPlugins.validatePackage (package:flutter_tools/src/intellij/intellij.dart:63:35)
      #9      IntelliJValidator.validate (package:flutter_tools/src/intellij/intellij_validator.dart:103:15)
      #10     asyncGuard.<anonymous closure> (package:flutter_tools/src/base/async_guard.dart:111:32)
      #11     asyncGuard.<anonymous closure> (package:flutter_tools/src/base/async_guard.dart:109:18)
      #12     _rootRun (dart:async/zone.dart:1426:13)
      #13     _CustomZone.run (dart:async/zone.dart:1328:19)
      #14     _runZoned (dart:async/zone.dart:1861:10)
      #15     runZonedGuarded (dart:async/zone.dart:1849:12)
      #16     runZoned (dart:async/zone.dart:1780:12)
      #17     asyncGuard (package:flutter_tools/src/base/async_guard.dart:109:3)
      #18     Doctor.startValidatorTasks (package:flutter_tools/src/doctor.dart:205:9)
      #19     Doctor.diagnose (package:flutter_tools/src/doctor.dart:309:47)
      #20     DoctorCommand.runCommand (package:flutter_tools/src/commands/doctor.dart:50:48)
      #21     FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1320:12)
      <asynchronous suspension>
      #22     FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1161:27)
      <asynchronous suspension>
      #23     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
      <asynchronous suspension>
      #24     CommandRunner.runCommand (package:args/command_runner.dart:209:13)
      <asynchronous suspension>
      #25     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
      <asynchronous suspension>
      #26     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
      <asynchronous suspension>
      #27     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
      <asynchronous suspension>
      #28     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
      <asynchronous suspension>
      #29     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
      <asynchronous suspension>
      #30     main (package:flutter_tools/executable.dart:94:3)
      <asynchronous suspension>

[✓] VS Code (version 1.66.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.40.0

[✓] Connected device (3 available)
    • Nexus (mobile)  • 00008020-001875E83A38002E • ios            • iOS 15.4.1 19E258
    • macOS (desktop) • macos                     • darwin-arm64   • macOS 12.3.1 21E258 darwin-arm
    • Chrome (web)    • chrome                    • web-javascript • Google Chrome 100.0.4896.127

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

[✓] Flutter (Channel master, 2.13.0-0.0.pre.886, on macOS 12.3.1 21E258 darwin-arm, locale en-GB)
    • Flutter version 2.13.0-0.0.pre.886 at /Users/nexus/dev/sdks/flutters
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision e9c0ee1e08 (3 hours ago), 2022-05-04 00:29:07 -0400
    • Engine revision 0b46116471
    • Dart version 2.18.0 (build 2.18.0-82.0.dev)
    • DevTools version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/nexus/Library/Android/sdk
    • Platform android-32, build-tools 31.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)

[✓] IntelliJ IDEA Community Edition (version 2021.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin version 213.5744.122

[✓] VS Code (version 1.66.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.40.0

[✓] Connected device (3 available)
    • Nexus (mobile)  • 00008020-001875E83A38002E • ios            • iOS 15.4.1 19E258
    • macOS (desktop) • macos                     • darwin-arm64   • macOS 12.3.1 21E258 darwin-arm
    • Chrome (web)    • chrome                    • web-javascript • Google Chrome 100.0.4896.127

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!


Ballerina: 2201.1.0 -> 2201.2.0

Description of changes
Changelog
In addition, we switch over to OpenJDK 11, since Ballerina 2201.2.0 produces exceptions from the compiler when compiling a simple test service. This seems to be avoided when using OpenJDK 11. While Ballerina docs say to use “OpenJDK 11 and above”, GitHub comments indicate JDK 17 might not be officially supported.
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

Supersedes #192704

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

Might be nice just to squash the commits, the old update doesn't add much and the JDK pinning can just be included in the update commit imo

Rebased.

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

1 package built:

ballerina


Hold error message in state

Currently we need to set up state by ourselves in order to set error message at runtime (e.g. when showing an error message from server API), as discussed in this issue #19.
I thought it'd be much simpler to have the error message in the components' state and then change the error message directly.
After the this change, this code can be written as below
var RegisterForm = React.createClass({
...
    onClick: function(evt) {
        evt.preventDefault();
        var values = this.refs.registerForm.getValue();
        if (values) {
            var errors = sendDataToServer(values);
            if (errors.email) {
              var emailComp = this.refs.registerForm.getComponent('email')
              emailComp.setState({ hasError: true, error: errors.email })
            }
        }
    },
...
    render: function() {
        var Form = t.form.createForm(Model, {
            fields: {
                email: {
                    type: 'email',
                    label: 'Email',
                }
            }
        });

Manipulating the child's state directly could be a bad practice, in which case we could expose an API  like setError('error message') on the component


Fix: orWhereJson Functions

Fixed orWhereJson... functions like orWhereJsonSupersetOf, orWhereJsonNotSupersetOf, orWhereJsonSubsetOf and orWhereJsonNotSubsetOf,
The problem
I found a issues about orWhereJsonSupersetOf and orWhereJsonSubsetOf which behaved the same as whereJsonSupersetOf and whereJsonSubsetOf

Coverage increased (+0.03%) to 92.369% when pulling 86a2dd6eb6dfaf45bd433bbc88d6002676e4ac8b on SuhyeongCho:master into d39051f4a56bbd4b2b48500f08198efddef5b94d on knex:master.


Properly reset conceal attributes of highlight

Fixes #6302, #6303, #4854.

Can you fix the test failures?


Error handling

We have setup Spring Cloud Gateway and it is working as expected; however when a particular predicate does not match it is throwing 404 error.
For example, in the below configuration I have a predicate on Cookie and when i do not pass cookie in the request or if i pass an incorrect value, i get 404 error. Can we handle such errors and customize? The reason for handling is when a cookie is not available in the request, i would like to send 401 (Unauthorized) to the clients. Please advise the best pattern that we need to us for such scenarios.
spring:
  cloud:
    gateway:
      routes:
      - id: product-service
        uri: http://api.product-service.com
        predicates:
        - Path=/api/v1/products
        - Cookie=ACCESS-TOKEN, test123
        - Method=GET, POST

did anyone had a chance to look into this?

have another route right below without the cookie predicate that has a SetStatus=401 filter?

Are you saying this? If I specify like this, will it not return 401 always? I want 401 to be returned only when Cookie is not present.
spring:
  cloud:
    gateway:
      routes:
      - id: product-service
        uri: http://api.product-service.com
        predicates:
        - Path=/api/v1/products
        - Cookie=ACCESS-TOKEN, test123
        - Method=GET, POST
    - id: product-service-401
        uri: http://api.product-service.com
        predicates:
        - Path=/api/v1/products
        - Method=GET, POST
          filters:
            - SetStatus=401

why wouldn't that work? product-service is first and will only match if the cookie is there. If the cookie is not there then it would fall to product-service-401. A custom filter would also work.

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.

@spencergibb , this would work. Thanks!

@spencergibb , if we use the custom filter, how do we send custom exception message with body and traceid?


[Helm chart] Init-db container failing

Init db errors when deploying with helm chart
Expected results
Succesful init of the DB upon helm chart deployment
Actual results
The init-db command fails with:
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1277, in _execute_context
    cursor, statement, parameters, context
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 593, in do_execute
    cursor.execute(statement, parameters)
psycopg2.errors.UndefinedTable: relation "ab_permission_view_role" does not exist
LINE 2: FROM ab_role LEFT OUTER JOIN (ab_permission_view_role AS ab_...
                                      ^

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/bin/superset", line 33, in <module>
    sys.exit(load_entry_point('apache-superset', 'console_scripts', 'superset')())
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/flask/cli.py", line 586, in main
    return super(FlaskGroup, self).main(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/click/decorators.py", line 21, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/flask/cli.py", line 426, in decorator
    return __ctx.invoke(f, *args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/flask_migrate/cli.py", line 134, in upgrade
    _upgrade(directory, revision, sql, tag, x_arg)
  File "/usr/local/lib/python3.7/site-packages/flask_migrate/__init__.py", line 96, in wrapped
    f(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/flask_migrate/__init__.py", line 271, in upgrade
    command.upgrade(config, revision, sql=sql, tag=tag)
  File "/usr/local/lib/python3.7/site-packages/alembic/command.py", line 298, in upgrade
    script.run_env()
  File "/usr/local/lib/python3.7/site-packages/alembic/script/base.py", line 489, in run_env
    util.load_python_file(self.dir, "env.py")
  File "/usr/local/lib/python3.7/site-packages/alembic/util/pyfiles.py", line 98, in load_python_file
    module = load_module_py(module_id, path)
  File "/usr/local/lib/python3.7/site-packages/alembic/util/compat.py", line 184, in load_module_py
    spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/app/superset/migrations/env.py", line 124, in <module>
    run_migrations_online()
  File "/app/superset/migrations/env.py", line 116, in run_migrations_online
    context.run_migrations()
  File "<string>", line 8, in run_migrations
  File "/usr/local/lib/python3.7/site-packages/alembic/runtime/environment.py", line 846, in run_migrations
    self.get_context().run_migrations(**kw)
  File "/usr/local/lib/python3.7/site-packages/alembic/runtime/migration.py", line 522, in run_migrations
    step.migration_fn(**kw)
  File "/app/superset/migrations/versions/e38177dbf641_security_converge_saved_queries.py", line 65, in upgrade
    migrate_roles(session, PVM_MAP)
  File "/app/superset/migrations/shared/security_converge.py", line 235, in migrate_roles
    roles = session.query(Role).options(Load(Role).joinedload(Role.permissions)).all()
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 3373, in all
    return list(self)
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 3535, in __iter__
    return self._execute_and_instances(context)
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 3560, in _execute_and_instances
    result = conn.execute(querycontext.statement, self._params)
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1011, in execute
    return meth(self, multiparams, params)
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/sql/elements.py", line 298, in _execute_on_connection
    return connection._execute_clauseelement(self, multiparams, params)
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1130, in _execute_clauseelement
    distilled_params,
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1317, in _execute_context
    e, statement, parameters, cursor, context
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1511, in _handle_dbapi_exception
    sqlalchemy_exception, with_traceback=exc_info[2], from_=e
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 182, in raise_
    raise exception
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1277, in _execute_context
    cursor, statement, parameters, context
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 593, in do_execute
    cursor.execute(statement, parameters)
sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedTable) relation "ab_permission_view_role" does not exist
LINE 2: FROM ab_role LEFT OUTER JOIN (ab_permission_view_role AS ab_...
                                      ^

[SQL: SELECT ab_role.id AS ab_role_id, ab_role.name AS ab_role_name, ab_permission_view_1.id AS ab_permission_view_1_id, ab_permission_view_1.permission_id AS ab_permission_view_1_permission_id, ab_permission_view_1.view_menu_id AS ab_permission_view_1_view_menu_id
FROM ab_role LEFT OUTER JOIN (ab_permission_view_role AS ab_permission_view_role_1 JOIN ab_permission_view AS ab_permission_view_1 ON ab_permission_view_1.id = ab_permission_view_role_1.permission_view_id) ON ab_role.id = ab_permission_view_role_1.role_id]
(Background on this error at: http://sqlalche.me/e/13/f405)

Screenshots
Logs of the init-db container
How to reproduce the bug
Deploy with helm chart v 0.1.5
Environment
helm chart v0.1.5 (superset:latest image sha: a2dea5294747c956e815d2f382fe0ec6eb334293ec03dfbd137eb2365b94ec0d)
Checklist
Make sure to follow these steps before submitting your issue - thank you!

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

Additional context
Add any other context about the problem here.

Issue solved, took original values.yaml and taylored to my needs seems to solve the issue

Hello @layoaster, I'm facing the exact same problem.
I've tried to use the default values.yml and ran a helm upgrade without success. I also have set all of the "forceReload" keys.
Do you have any other clue about the problem?

Hi @jkleinkauff, I don't know the root cause but I solved it by getting rid of my old values.yaml (coming from a previous chart version).
Notice that in my case I was installing the chart for the first time. It seems that you are upgrading your release might be related but I think you might want to open new issue.

Rebuilding my infrastructure and using the original values.yml got it working!
helm install -f default_values.yml  superset superset/superset -n superset
helm upgrade -f default_values.yml -f custom_values.yml superset superset/superset -n superset

Thank you @layoaster !

I got same error, no matter how many time I tried, it still failed. However, after switching to my own Postgres, it succeed.
I posted the solution at https://github.com/apache/superset/issues/19738
Hope it helps future people!


Add Dropdown with 'Block' Option for Admins in Approved Projects

Add a dropdown menu for admins in the Approved Projects section with a "Block" option.
The "Block" feature should:

Stop the addition of new members to the project.

This will provide admins with better control over managing approved projects.

do you want the block option on each project or
on top right of screen a block option which is gonna let you select which projects to block??


ng serve should watch i18n messages files

🚀 Feature request
Command (mark with an x)
- [ ] new
- [ ] build
- [x] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Description
When using the new i18n support with CLI v9 (rc.4 at the time of writing), it is possible to run:
ng serve --configuration=fr

with fr:
"i18n": {
  "locales": {
    "fr": "src/locale/messages.fr.xlf"
  }
},
"fr": {
  "localize": ["fr"]
}

This works great, but does not pick up translation changes in messages.fr.xlf, requiring a stop and restart of ng serve.
Describe the solution you'd like
It would be nice to have ng serve watch the files defined in the locales configuration.
Describe alternatives you've considered
It is possible to stop and restart the server to have the up-to-date translations.

it's still an issue with v10 :(
I would also re-qualify it from feature to bug/regression because it worked fine in v8

I have to restart my dev server when changing anything in the .xlf files to see the change reflected in the server. Is this issue related?

@clydin sorry to bother you, but I see that you have a PR that address this issue... so allow me to kindly ask: is there a plan to merge this before v13 comes out? Thanks.

Is anyone else having an issue with this change now giving a warning every time you save a file that every message in your translation file is a duplicate?

WARNING [src/locale/messages.fr.xlf]: Duplicate translations for message 'bd56617283412e79a0b08b6cf2a9409c548ac187' when merging

WARNING [src/locale/messages.fr.xlf]: Duplicate translations for message 'ngb.alert.close' when merging

WARNING [src/locale/messages.fr.xlf]: Duplicate translations for message 'ngb.carousel.next' when merging

WARNING [src/locale/messages.fr.xlf]: Duplicate translations for message 'ngb.carousel.previous' when merging

WARNING [src/locale/messages.fr.xlf]: Duplicate translations for message 'ngb.carousel.slide-number' when merging

WARNING [src/locale/messages.fr.xlf]: Duplicate translations for message 'ngb.datepicker.next-month' when merging

WARNING [src/locale/messages.fr.xlf]: Duplicate translations for message 'ngb.datepicker.previous-month' when merging

every time I save a file while running ng serve now I get a few hundred of these if I have translations in use.

@bbarry, I think https://github.com/angular/angular-cli/pull/22209 should add an option to suppress these warnings, though they typically do point to a real issue, so it might be worth investigating why there are duplicate translations.

Yes I don't like the idea of suppressing the warning; my concern isn't seeing the warnings, it is that they only appear after a watched file rebuilds.
I am not getting the warnings on the initial builds. It seems like the variable isn't being properly re-initialized.


Update 'Blob containers' to 'blob containers' on Release Notes New section

Storage Explorer Version: 1.9.0_rel/1.9.0_20190701.8
Platform/OS: Linux Ubuntu 19.04/macOS High Sierra
Architecture: ia32/x64
Regression From: Not a regression
Steps to reproduce:

Launch Storage Explorer -> Open Release Notes.
Check the description (1) under the New section.

Expect Experience:
There shows '... blob containers...'.
Actual Experience:
There shows '... Blob containers....'

These release notes are going to be discarded for the next version. Will keep this casing in mind though for next release. Thanks!


Jetson (aarch64) support

I refactored setup.py to make it work on my Jetson AGX Orin, I think it also helps for future ARM + GPU platforms
I don't want to make it complex so I just allow to set CUDA gencode from ENV, Jetson is compute_87, sm_87

Hello, thanks for the amazing job.
I installed flash attention from source using your committed setup.py with commit hash 0097ec4 for jetson Orin. The installation was completed without error and I can successfully import it in python. However, it returns all Failures when I run the unit tests with test_flash_attn.py. I don' t know if this is normal? Do we have other ways to test/check if flash attention works on Orin? Thank you.

Hello, thanks for the amazing job.
I installed flash attention from source using your committed setup.py with commit hash 0097ec4 for jetson Orin. The installation was completed without error and I can successfully import it in python. However, it returns all Failures when I run the unit tests with test_flash_attn.py. I don' t know if this is normal? Do we have other ways to test/check if flash attention works on Orin? Thank you.

Which version of Jetpack you're using? I just tried on JP 6.0 DP

I'm waiting for the JP 6.0 production release, I guess we just need to let the setup.py support sm_87

Hello, thanks for the amazing job.
I installed flash attention from source using your committed setup.py with commit hash 0097ec4 for jetson Orin. The installation was completed without error and I can successfully import it in python. However, it returns all Failures when I run the unit tests with test_flash_attn.py. I don' t know if this is normal? Do we have other ways to test/check if flash attention works on Orin? Thank you.

Which version of Jetpack you're using? I just tried on JP 6.0 DP

Hello,
Thank you for the quick reply.
Mine is JP 5.1.2. Couple months ago, just back to the moment of release of flash attention 2, I tried to install it with setting compute_87 or sm_87 but both attmpts were failed with the same JP. Do you have any ideas about what's wrong here? Thank you again.
Best regards,

Hello, thanks for the amazing job.
I installed flash attention from source using your committed setup.py with commit hash 0097ec4 for jetson Orin. The installation was completed without error and I can successfully import it in python. However, it returns all Failures when I run the unit tests with test_flash_attn.py. I don' t know if this is normal? Do we have other ways to test/check if flash attention works on Orin? Thank you.

Which version of Jetpack you're using? I just tried on JP 6.0 DP

Hello,
Thank you for the quick reply.
Mine is JP 5.1.2. Couple months ago, just back to the moment of release of flash attention 2, I tried to install it with setting compute_87 or sm_87 but both attmpts were failed with the same JP. Do you have any ideas about what's wrong here? Thank you again.
Best regards,

Hadn't tried on 5.1.x, I guess the too old CUDA. In fact, I have to upgrade to 6.0 because Ubuntu 18.04, CUDA 11.4, and Python 3.7 are too old to run recent version of LLM and Stable Diffusion stacks

Hello, thanks for the amazing job.
I installed flash attention from source using your committed setup.py with commit hash 0097ec4 for jetson Orin. The installation was completed without error and I can successfully import it in python. However, it returns all Failures when I run the unit tests with test_flash_attn.py. I don' t know if this is normal? Do we have other ways to test/check if flash attention works on Orin? Thank you.

Which version of Jetpack you're using? I just tried on JP 6.0 DP

Hello,
Thank you for the quick reply.
Mine is JP 5.1.2. Couple months ago, just back to the moment of release of flash attention 2, I tried to install it with setting compute_87 or sm_87 but both attmpts were failed with the same JP. Do you have any ideas about what's wrong here? Thank you again.
Best regards,

I haven't tried on 5.1.x. I guess the reason is that the CUDA is too old. I have to upgrade to 6.0 because Ubuntu 18.04, CUDA 11.4, and Python 3.7 are too old to run recent versions of LLM and Stable Diffusion

Hello again, I upgraded Orin to JP 6.0 DP today and tried to install flash_attn 2 again with your fork (branch aarch64). The upgraded JP eventually did not help for the correct installation. I noticed that the CUDA gencode was with compute_90 and sm_90 while compiling instead of 87 for Orin. Could you please share more info how you install the package from source? Thank you.

Hello, thanks for the amazing job.
I installed flash attention from source using your committed setup.py with commit hash 0097ec4 for jetson Orin. The installation was completed without error and I can successfully import it in python. However, it returns all Failures when I run the unit tests with test_flash_attn.py. I don' t know if this is normal? Do we have other ways to test/check if flash attention works on Orin? Thank you.

Which version of Jetpack you're using? I just tried on JP 6.0 DP

Hello,
Thank you for the quick reply.
Mine is JP 5.1.2. Couple months ago, just back to the moment of release of flash attention 2, I tried to install it with setting compute_87 or sm_87 but both attmpts were failed with the same JP. Do you have any ideas about what's wrong here? Thank you again.
Best regards,

I haven't tried on 5.1.x. I guess the reason is that the CUDA is too old. I have to upgrade to 6.0 because Ubuntu 18.04, CUDA 11.4, and Python 3.7 are too old to run recent versions of LLM and Stable Diffusion

Hello again, I upgraded Orin to JP 6.0 DP today and tried to install flash_attn 2 again with your fork (branch aarch64). The upgraded JP eventually did not help for the correct installation. I noticed that the CUDA gencode was with compute_90 and sm_90 while compiling instead of 87 for Orin. Could you please share more info how you install the package from source? Thank you.

I don't want to make it complex (Jetson isn't popular) so the PR actually introduces an env CUDA_GENCODE so you can override it when compiling on the Jetson platform
You can use this command
MAX_JOBS=8 FORCE_BUILD=True CUDA_GENCODE='arch=compute_87,code=sm_87' pip3 wheel --wheel-dir=dist --no-deps --verbose .