APU1d4 does not boot after upgrade to v 20.7 - upgrade issue only

Describe the bug
System does not continue to boot after the log line random: unblocking device.
To Reproduce
Have 20.1 and upgrade using menu point 12.
 Boot Multi User [Enter]             |   @@@@@                    @@@@@
|  2. Boot [S]ingle User                  |       @@@@@            @@@@@
|  3. [Esc]ape to loader prompt           |    @@@@@@@@@@@       @@@@@@@@@@@
|  4. Reboot                              |         \\\\\         /////
|                                         |   ))))))))))))       (((((((((((
|  Options:                               |         /////         \\\\\
|  5. [K]ernel: kernel (1 of 2)           |    @@@@@@@@@@@       @@@@@@@@@@@
|  6. Configure Boot [O]ptions...         |       @@@@@            @@@@@
|                                         |   @@@@@                    @@@@@
|                                         |   @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|                                         |   @@@@@@@@@@@@@@@@@@@@@@@@@@@@
+=========================================+
                                                 20.1 ``Keen Kingfisher''

/boot/kernel/kernel text=0x17e43a9 data=0x1e3428+0x76edc0 syms=[0x8+0x18e9e8+0x8+0x1ace92]
/boot/kernel/carp.ko size 0x10250 at 0x268e000
/boot/kernel/if_bridge.ko size 0xf998 at 0x269f000
loading required module 'bridgestp'
/boot/kernel/bridgestp.ko size 0x72a8 at 0x26af000
/boot/kernel/if_enc.ko size 0x3e78 at 0x26b7000
/boot/kernel/if_gre.ko size 0xb1c0 at 0x26bb000
/boot/kernel/if_lagg.ko size 0x15fe8 at 0x26c7000
/boot/kernel/if_tap.ko size 0x8b60 at 0x26dd000
/boot/kernel/pf.ko size 0x582f0 at 0x26e6000
/boot/kernel/pflog.ko size 0x2af8 at 0x273f000
/boot/kernel/pfsync.ko size 0xebd0 at 0x2742000
Booting...
KDB: debugger backends: ddb
KDB: current backend: ddb
---<<BOOT>>---
Copyright (c) 2013-2019 The HardenedBSD Project.
Copyright (c) 1992-2019 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
       The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 12.1-RELEASE-p7-HBSD #0  427d53bc125(stable/20.7)-dirty: Sun Jul 26 05:51:42 CEST 2020
   root@sensey64:/usr/obj/usr/src/amd64.amd64/sys/SMP amd64
FreeBSD clang version 8.0.1 (tags/RELEASE_801/final 366581) (based on LLVM 8.0.1)
HardenedBSD: initialize and check features (__HardenedBSD_version 1200059 __FreeBSD_version 1201000).
CPU: AMD G-T40E Processor (1000.02-MHz K8-class CPU)
 Origin="AuthenticAMD"  Id=0x500f20  Family=0x14  Model=0x2  Stepping=0
 Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
 Features2=0x802209<SSE3,MON,SSSE3,CX16,POPCNT>
 AMD Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM>
 AMD Features2=0x35ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,IBS,SKINIT,WDT>
 SVM: NP,NRIP,NAsids=8
 TSC: P-state invariant, performance statistics
real memory  =<PHONE_NUMBER> (4592 MB)
avail memory =<PHONE_NUMBER> (3892 MB)
Event timer "LAPIC" quality 600
ACPI APIC Table: <CORE   COREBOOT>
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
FreeBSD/SMP: 1 package(s) x 2 core(s)
arc4random: no preloaded entropy cache
ioapic0 <Version 2.1> irqs 0-23 on motherboard
Launching APs: 1
Timecounter "TSC" frequency<PHONE_NUMBER> Hz quality 800
wlan: mac acl policy registered
random: entropy device external interface
kbd0 at kbdmux0
module_register_init: MOD_LOAD (vesa, 0xffffffff812507c0, 0) error 19
000.000051 [4335] netmap_init               netmap: loaded module
[ath_hal] loaded
nexus0
cryptosoft0: <software crypto> on motherboard
acpi0: <CORE COREBOOT> on motherboard
acpi0: Power Button (fixed)
cpu0: <ACPI CPU> on acpi0
atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0
atrtc0: registered as a time-of-day clock, resolution 1.000000s
Event timer "RTC" frequency 32768 Hz quality 0
attimer0: <AT timer> port 0x40-0x43 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 950
Event timer "HPET" frequency 14318180 Hz quality 550
Event timer "HPET1" frequency 14318180 Hz quality 450
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> irq 16 at device 4.0 on pci0
pci1: <ACPI PCI bus> on pcib1
re0: <Realtek PCIe GBE Family Controller> port 0x1000-0x10ff mem 0xf7900000-0xf7900fff,0xf7800000-0xf7803fff irq 16 at device 0.0 on pci1
re0: Using Memory Mapping!
re0: Using 1 MSI-X message
re0: ASPM disabled
re0: version:1.95.00
re0: Ethernet address: 00:0d:b9:3f:87:f8

This product is covered by one or more of the following patents:
US6,570,884, US6,115,776, and US6,327,625.
re0: Ethernet address: 00:0d:b9:3f:87:f8
pcib2: <ACPI PCI-PCI bridge> irq 17 at device 5.0 on pci0
pci2: <ACPI PCI bus> on pcib2
re1: <Realtek PCIe GBE Family Controller> port 0x2000-0x20ff mem 0xf7b00000-0xf7b00fff,0xf7a00000-0xf7a03fff irq 17 at device 0.0 on pci2
re1: Using Memory Mapping!
re1: Using 1 MSI-X message
re1: ASPM disabled
re1: version:1.95.00
re1: Ethernet address: 00:0d:b9:3f:87:f9

This product is covered by one or more of the following patents:
US6,570,884, US6,115,776, and US6,327,625.
re1: Ethernet address: 00:0d:b9:3f:87:f9
pcib3: <ACPI PCI-PCI bridge> irq 18 at device 6.0 on pci0
pci3: <ACPI PCI bus> on pcib3
re2: <Realtek PCIe GBE Family Controller> port 0x3000-0x30ff mem 0xf7d00000-0xf7d00fff,0xf7c00000-0xf7c03fff irq 18 at device 0.0 on pci3
re2: Using Memory Mapping!
re2: Using 1 MSI-X message
re2: ASPM disabled
re2: version:1.95.00
re2: Ethernet address: 00:0d:b9:3f:87:fa

This product is covered by one or more of the following patents:
US6,570,884, US6,115,776, and US6,327,625.
re2: Ethernet address: 00:0d:b9:3f:87:fa
pcib4: <ACPI PCI-PCI bridge> irq 19 at device 7.0 on pci0
pci4: <ACPI PCI bus> on pcib4
ath0: <Atheros 9280> mem 0xf7e00000-0xf7e0ffff irq 19 at device 0.0 on pci4
[ath] enabling AN_TOP2_FIXUP
ath0: [HT] enabling HT modes
ath0: [HT] 1 stream STBC receive enabled
ath0: [HT] 1 stream STBC transmit enabled
ath0: [HT] 2 RX streams; 2 TX streams
arc4random: no preloaded entropy cache
ath0: AR9280 mac 128.2 RF5133 phy 13.0
ath0: 2GHz radio: 0x0000; 5GHz radio: 0x00c0
ahci0: <AMD SB7x0/SB8x0/SB9x0 AHCI SATA controller> port 0x4010-0x4017,0x4020-0x4023,0x4018-0x401f,0x4024-0x4027,0x4000-0x400f mem 0xf7f04000-0xf7f043ff irq 19 at device 17.0 on pci0
ahci0: AHCI v1.20 with 6 6Gbps ports, Port Multiplier supported
ahci0: quirks=0x22000<ATI_PMP_BUG,1MSI>
ahcich0: <AHCI channel> at channel 0 on ahci0
ahcich1: <AHCI channel> at channel 1 on ahci0
ahcich2: <AHCI channel> at channel 2 on ahci0
ahcich3: <AHCI channel> at channel 3 on ahci0
ahcich4: <AHCI channel> at channel 4 on ahci0
ahcich5: <AHCI channel> at channel 5 on ahci0
ohci0: <AMD SB7x0/SB8x0/SB9x0 USB controller> mem 0xf7f00000-0xf7f00fff irq 18 at device 18.0 on pci0
usbus0 on ohci0
usbus0: 12Mbps Full Speed USB v1.0
ehci0: <AMD SB7x0/SB8x0/SB9x0 USB 2.0 controller> mem 0xf7f04400-0xf7f044ff irq 17 at device 18.2 on pci0
usbus1: EHCI version 1.0
usbus1 on ehci0
usbus1: 480Mbps High Speed USB v2.0
ohci1: <AMD SB7x0/SB8x0/SB9x0 USB controller> mem 0xf7f01000-0xf7f01fff irq 18 at device 19.0 on pci0
usbus2 on ohci1
usbus2: 12Mbps Full Speed USB v1.0
ehci1: <AMD SB7x0/SB8x0/SB9x0 USB 2.0 controller> mem 0xf7f04500-0xf7f045ff irq 17 at device 19.2 on pci0
usbus3: EHCI version 1.0
usbus3 on ehci1
usbus3: 480Mbps High Speed USB v2.0
isab0: <PCI-ISA bridge> at device 20.3 on pci0
isa0: <ISA bus> on isab0
pcib5: <ACPI PCI-PCI bridge> at device 20.4 on pci0
pci5: <ACPI PCI bus> on pcib5
ohci2: <AMD SB7x0/SB8x0/SB9x0 USB controller> mem 0xf7f02000-0xf7f02fff irq 18 at device 20.5 on pci0
usbus4 on ohci2
usbus4: 12Mbps Full Speed USB v1.0
pcib6: <ACPI PCI-PCI bridge> at device 21.0 on pci0
pci6: <ACPI PCI bus> on pcib6
ohci3: <AMD SB7x0/SB8x0/SB9x0 USB controller> mem 0xf7f03000-0xf7f03fff at device 22.0 on pci0
usbus5 on ohci3
usbus5: 12Mbps Full Speed USB v1.0
ehci2: <AMD SB7x0/SB8x0/SB9x0 USB 2.0 controller> mem 0xf7f04600-0xf7f046ff at device 22.2 on pci0
usbus6: EHCI version 1.0
usbus6 on ehci2
usbus6: 480Mbps High Speed USB v2.0
acpi_button0: <Power Button> on acpi0
orm0: <ISA Option ROM> at iomem 0xee800-0xeffff pnpid ORM0000 on isa0
uart0: <16550 or compatible> at port 0x3f8 irq 4 flags 0x10 on isa0
uart0: console (115200,n,8,1)
uart1: <16550 or compatible> at port 0x2f8 irq 3 on isa0
Timecounters tick every 1.000 msec
ugen3.1: <ATI EHCI root HUB> at usbus3
ugen5.1: <ATI OHCI root HUB> at usbus5
uhub0: <ATI EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus3
uhub1: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus5
ugen1.1: <ATI EHCI root HUB> at usbus1
ugen2.1: <ATI OHCI root HUB> at usbus2
uhub2: <ATI EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
uhub3: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus2
ugen6.1: <ATI EHCI root HUB> at usbus6
ugen0.1: <ATI OHCI root HUB> at usbus0
uhub4: <ATI EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus6
uhub5: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
ugen4.1: <ATI OHCI root HUB> at usbus4
uhub6: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus4
Trying to mount root from ufs:/dev/da0s1a [rw]...
Root mount waiting for: usbus6 usbus5 usbus4 usbus3 usbus2 usbus1 usbus0
uhub1: 4 ports with 4 removable, self powered
uhub6: 2 ports with 2 removable, self powered
uhub3: 5 ports with 5 removable, self powered
uhub5: 5 ports with 5 removable, self powered
Root mount waiting for: usbus6 usbus3 usbus1
uhub4: 4 ports with 4 removable, self powered
uhub2: 5 ports with 5 removable, self powered
uhub0: 5 ports with 5 removable, self powered
ugen6.2: <Generic Flash Card Reader/Writer> at usbus6
umass0 on uhub4
umass0: <Generic Flash Card Reader/Writer, class 0/0, rev 2.01/1.00, addr 2> on usbus6
umass0:  SCSI over Bulk-Only; quirks = 0x4001
umass0:6:0: Attached to scbus6
mountroot: waiting for device /dev/da0s1a...
da0 at umass-sim0 bus 0 scbus6 target 0 lun 0
da0: <Multiple Card  Reader 1.00> Removable Direct Access SPC-2 SCSI device
da0: Serial Number 058F63666485
da0: 40.000MB/s transfers
da0: 30895MB (63272960 512 byte sectors)
da0: quirks=0x2<NO_6_BYTE>
random: unblocking device.

Environment
APU1d4 board (amd geode g40e cpu, 4gb memory, installation on SD card)

OPNsense 20.7.1-amd64 is running without issues on the next generation, a apu2c2 (3 i211AT LAN / AMD GX-412TC CPU / 2 GB DRAM) for me in case that helps.

BIOS update maybe?

I have the same issue after upgrading to 20.7 and also 20.7.1. ^C ^D allows it to continue.
Hardware is a Decisio A10 Quad Core SSD rack.
Log attached: log20200819a.txt

@nachtbraker as mentioned in the previous post, a reinstall usually fixes the issue. (backup config to be sure, install with config import)

@AdSchellevis for me it worked to press ctrl +c, assign an ip address using the dhcp and push the config using netcat over tcp to my laptop. I think since this was the dev device the backup was outdated.

@AdSchellevis
I finally got around reinstalling (with config import) and this fixed the problem, thanks.

@nachtbraker thanks for letting us know! @fabianfrz can we close the issue?

I think if this will not reoccur in future releases, then yes.
It is not a huge blocker for me since a reinstall fixed the issue. Don't know how many people get real issues when the upgrade is done remotely.

The fix would likely remain the same if it happens, so best close it now (auto time-out would do so anyway in a couple of months)


New: TypeScript config parser.

New: typescript-config-is-valid rule.

Pull request checklist
Make sure you:

[x] Signed the Contributor License Agreement
[x] Followed the commit message guidelines

For non-trivial changes, please make sure you also:

[x] Added/Updated related documentation.
[ ] Added/Updated related tests.

Short description of the change(s)

Clossing in favor of https://github.com/sonarwhal/sonarwhal/pull/847


Better install instructions

It is possible to provide a more detailed install guide (in README or docs/wiki).
As this one I wrote on another project https://github.com/mitre-cyber-academy/ctf-scoreboard/blob/d59eced1dbf6830015c35687667afb89a54eba7e/README.md
I'll maybe PR when I'll have time.

I do all my deployments on Swarm now.  I've been working on making sure the docker images I push to (paullj1/hackthearch) are in line with releases here.  Deployment when using swarm is SUPER straightforward.  You can even use the yml file that's checked in to the repo.


Avoid multiple Register submits

Hi @vaibhavyadav-dev  , I can fix this issue for you. Please assign it to me. Thanks.
Also, can you please add Labels on this for Hactoberfest? Thanks.
Description:
When a user attempts to register, clicking the “Register” button multiple times in quick succession triggers multiple submit requests. This can lead to redundant requests being sent to the server, potentially causing performance issues or duplicate registrations.
Steps to Reproduce:
1.	Navigate to the registration page.
2.	Enter valid registration details in all required fields.
3.	Click the “Register” button multiple times rapidly.
4.	Observe that multiple submit requests are sent to the server.

Expected Behavior:
Only one registration submit request should be sent, even if the user clicks the “Register” button multiple times.
Current Behavior:
Multiple requests are sent if the “Register” button is clicked repeatedly.
Proposed Solution:
Disable the “Register” button and display a loading state immediately after the first click until the registration process is complete.

Great work @karthik-script You’ve identified some crucial UI/UX issues that we hadn't noticed before. I’d appreciate it if you could take this one and also apply similar improvements to the Login Page for consistency across the platform.


fix encoding for dyndns2 basic auth header

Hey,
didn't catched up my fork by now.
Could you please apply the following fix?
change line 121 to be string for split lateron:
auth_header = str(base64.b64decode(auth_header), 'utf-8')
Thanks

Updated the code. Thank you!


Switch FST to DoubleArrayTrie

Switch FST library to yada (Double Array Trie) in PrefixDict.
Need rust version >= 1.46.0 to build.
This PR breaks the data structure from the previous version.
Still a work in progress. Remain tasks are here:

[x] Change .fst file to .da
[x] Add some tests
[x] Update CHANGES.md
[x] Check benches

[x] Debug an error on long text bench

[ ] Check/test lindera-server
[x] Check/test lindera-tantivy

[x] Need tokenizer to be Clone-able.

[ ] Change other builders, e.g. neologd, unidic

This branch passes make test  already exists. However, I got an error running cargo bench in the lindera package.

The result of Cargo bench

test result: ok. 0 passed; 0 failed; 18 ignored; 0 measured; 0 filtered out

     Running /Users/johtani/IdeaProjects/rust-workspace/lindera-workspace/lindera/target/release/deps/bench-4e692558eb08e35b
Gnuplot not found, using plotters backend
Benchmarking bench-constructor: Warming up for 3.0000 s
Warning: Unable to complete 100 samples in 5.0s. You may wish to increase target time to 82.8s or reduce sample count to 10.
bench-constructor       time:   [15.986 ms 16.083 ms 16.214 ms]
                        change: [+2.2083% +5.1511% +7.4330%] (p = 0.00 < 0.05)
                        Performance has regressed.
Found 5 outliers among 100 measurements (5.00%)
  3 (3.00%) high mild
  2 (2.00%) high severe

Benchmarking bench-constructor-custom-dict: Warming up for 3.0000 s
Warning: Unable to complete 100 samples in 5.0s. You may wish to increase target time to 86.7s or reduce sample count to 10.
bench-constructor-custom-dict
                        time:   [16.079 ms 16.139 ms 16.214 ms]
                        change: [-1.1785% +0.5738% +1.8693%] (p = 0.54 > 0.05)
                        No change in performance detected.
Found 4 outliers among 100 measurements (4.00%)
  1 (1.00%) high mild
  3 (3.00%) high severe

bench-tokenize-wiki     time:   [76.202 us 76.963 us 77.743 us]
                        change: [-15.749% -14.453% -13.197%] (p = 0.00 < 0.05)
                        Performance has improved.
Found 4 outliers among 100 measurements (4.00%)
  4 (4.00%) high mild

bench-tokenize-custom-dict
                        time:   [17.819 us 18.329 us 18.855 us]
                        change: [-26.619% -24.613% -22.628%] (p = 0.00 < 0.05)
                        Performance has improved.
Found 14 outliers among 100 measurements (14.00%)
  9 (9.00%) high mild
  5 (5.00%) high severe

Benchmarking Long text/bench-tokenize-long-text: Warming up for 3.0000 sthread 'main' panicked at 'byte index 5 is not a char boundary; it is inside '相' (bytes 3..6) of `は相違《そうい》なくっても暑いには極ってる。`', /Users/johtani/.rustup/toolchains/1.46.0-x86_64-apple/rust/src/libcore/str/mod.rs:2018:47
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

After upgrading yada 0.3.1, there is no errors!!

This is the result of cargo bench after upgrading yada 0.3.1.
test result: ok. 0 passed; 0 failed; 18 ignored; 0 measured; 0 filtered out

     Running /Users/johtani/IdeaProjects/rust-workspace/lindera-workspace/lindera/target/release/deps/bench-f9b2f9f58925b6fa
Gnuplot not found, using plotters backend
Benchmarking bench-constructor: Warming up for 3.0000 s
Warning: Unable to complete 100 samples in 5.0s. You may wish to increase target time to 86.5s or reduce sample count to 10.
bench-constructor       time:   [16.719 ms 16.746 ms 16.775 ms]
                        change: [+11.266% +11.846% +12.404%] (p = 0.00 < 0.05)
                        Performance has regressed.
Found 4 outliers among 100 measurements (4.00%)
  4 (4.00%) high mild

Benchmarking bench-constructor-custom-dict: Warming up for 3.0000 s
Warning: Unable to complete 100 samples in 5.0s. You may wish to increase target time to 85.9s or reduce sample count to 10.
bench-constructor-custom-dict
                        time:   [16.903 ms 16.924 ms 16.948 ms]
                        change: [+8.7492% +9.0774% +9.4225%] (p = 0.00 < 0.05)
                        Performance has regressed.
Found 5 outliers among 100 measurements (5.00%)
  1 (1.00%) low mild
  3 (3.00%) high mild
  1 (1.00%) high severe

bench-tokenize-wiki     time:   [75.686 us 76.070 us 76.546 us]
                        change: [-13.333% -11.474% -9.2561%] (p = 0.00 < 0.05)
                        Performance has improved.
Found 15 outliers among 100 measurements (15.00%)
  2 (2.00%) high mild
  13 (13.00%) high severe

bench-tokenize-custom-dict
                        time:   [16.689 us 16.756 us 16.828 us]
                        change: [-29.111% -28.071% -27.095%] (p = 0.00 < 0.05)
                        Performance has improved.
Found 6 outliers among 100 measurements (6.00%)
  4 (4.00%) high mild
  2 (2.00%) high severe

Benchmarking Long text/bench-tokenize-long-text: Warming up for 3.0000 s
Warning: Unable to complete 20 samples in 5.0s. You may wish to increase target time to 35.3s or reduce sample count to 10.
Long text/bench-tokenize-long-text
                        time:   [157.82 ms 158.99 ms 160.43 ms]
                        change: [-28.585% -25.637% -22.439%] (p = 0.00 < 0.05)
                        Performance has improved.
Found 1 outliers among 20 measurements (5.00%)
  1 (5.00%) high severe

And dict.fst data sizes.
yada
5425152 Sep 30 16:07 dict.fst
fst
2147765 Sep 25 23:42 dict.fst

I got an error building lindera-tantivy. The Tokenizer has to clone-able.
I make a feature request on the yada repository.
Related: https://github.com/takuyaa/yada/issues/8

Fixed Cloneable.

It's ready to review I think. I'll check other builders after the new version released.

Thanks for the good work!


有关addRoute父子路由name、path相同时的处理结果问题

Reproduction
https://codesandbox.io/p/sandbox/vue-router-4-addroute-bug-4t7fyx
Steps to reproduce the bug
[Vue Router warn]: Finding ancestor route "/:path(.)" failed for "/:path(.)"
Expected behavior
在父路由被删除，matchers.lastIndexOf(insertionAncestor, upper - 1) 返回-1时，使用此路由的原本upper，而不是返回-1的upper
0 : {path: '/', redirect: undefined, name: undefined, meta: {…}, aliasOf: undefined, …}
1 : {path: '/:path(.*)*', redirect: undefined, name: 'ErrorPage', meta: {…}, aliasOf: undefined, …}

Actual behavior
0 : {path: '/:path(.*)*', redirect: undefined, name: 'ErrorPage', meta: {…}, aliasOf: undefined, …}
1 : {path: '/', redirect: undefined, name: undefined, meta: {…}, aliasOf: undefined, …}

Additional information
打开Reproduction，f12然后点击click here按钮，可以看到现在vue-router对于父子路由name，path相同时addRoute的处理结果

Duplicate of https://github.com/vuejs/router/issues/2266

If the names are different, two routes will be created, as shown below
0: {path: '/', redirect: undefined, name: 'home', meta: {…}, aliasOf: undefined, …}
1: {path: '/:path(.*)*', redirect: undefined, name: 'ErrorPageSon', meta: {…}, aliasOf: undefined, …}
2: {path: '/:path(.*)*', redirect: undefined, name: ErrorPage, meta: {…}, aliasOf: undefined, …}

i hope my route list is clean,only has one ErrorPageSon route.
and i find,if have same name,but path different,it can be only created one route,maybe it's bug?
#2267 throw Error i think that reasonable for same name,This can help people know the specific cause of errors in the development environment
If it's just a warning, I think it's good to handle the routing better
The above is just my personal opinion. I just hope that my routing list can be cleaner and there will be no extra routes


[CHALLENGE SUBMISSION] Week 3 - Python 3.8

Please provide the following information for your submission:
What is your name? (First, Last)
Rebecca Trapani
Where is your GitHub Repo ?(Link to your challenge solution)
Detailed instructions: https://github.com/errbufferoverfl/violet-lobster
Python Solution: https://github.com/errbufferoverfl/violet-lobster/tree/main/week-03
Azure Function Endpoint:

Flexitarian Recipe: https://longest-kebab.azurewebsites.net/api/tartmak?type=flexitarian&weight=200
Vegan Recipe: https://longest-kebab.azurewebsites.net/api/tartmak?type=vegan&weight=200

What Challenge is this for? (Challenge number between 1 and 7)
3
(Optional) Anything else we should know? e.g., language used, location, blog post, tell us how you solved this solution, including any challenges you faced solving it.
I went back to basics this week so I could focus on adding in multiple options :) works using kilograms and bases it's measurement on a 12cm x 4 kebabs based on the image. The vegan recipe was based on the same ratio.

From all of us at Developer Relations at Microsoft, thank you for participating in #SeasonsOfServerless and submitting a solution!

Feel free to share your solution on Twitter with the tag #SeasonsOfServerless.

Thanks for your awesome submission!
🎉 We've now added you and your solution to the Hall of Fame. 🎉


Redirect loop on /

If we set custom_base_url to relative url, homepage returns infinite loop.
Simple fix is to add check in  system/src/Grav/Common/Uri.php on line 308:
$redirect = str_replace($this->root, '', rtrim($uri, '/'));
// If configured to, redirect trailing slash URI's with a 302 redirect
if ($uri !== '/' && $redirect !== $this->base()  && $config->get('system.pages.redirect_trailing_slash', false) && Utils::endsWith($uri, '/')) {
    $grav->redirect($redirect, 302);
}

I will try to post more information soon.

I implemented your fix, but then discovered several other issues related to custom_base_url when using both absolute and relative custom paths.  Hopefully my commit will address all of these, please test :)

Your fix is perfect :)


Open-Ended Polls Rather than Limited Options

Hi, apologies if this is the wrong repo for a feature like this. I'd like to create a proposal with 1,000 different options (simply using integer IDs, #0 to #999), allowing users to vote on their top 5 or top 10 of those options. Then using some sort of rank voting to determine which options among all of them tend to be most preferred. Happy to help develop this feature with PRs but wonder if something like this is even possible within Snapshot, or with a custom plugin of some kind.

Hi @mattdesl Look into these voting types https://docs.snapshot.org/proposals/voting-types (maybe ranked-choice voting may work for you)


It's this the same as grapesjs-plugin-forms-ca ?

just wan to know if this its the same as grapesjs-plugin-forms-ca?
from here https://snyk.io/advisor/npm-package/grapesjs-plugin-forms-ca

Looks like a copy of an old version, not the official one, I'd ignore it


An error maybe about system

Hi!bro:
As a green hand,I want to ask a problem.Could you tell me how to do it?
When I use this code$ TASK="halfcheetah-medium-v2"; seed=0; python3 -u train_behavior.py --expid ${TASK}-baseline-seed${seed} --env $TASK --seed ${seed},terminal tells me that `$ : 无法将“$”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写，如果包括路径，请确保路径正确，然后再试一次。
所在位置 行:1 字符: 1
所在位置 行:1 字符: 33

$ TASK="halfcheetah-medium-v2"; seed=0; python3 -u train_behavior.py

CategoryInfo          : ObjectNotFound: (seed=0:String) [], CommandNotFoundException
FullyQualifiedErrorId : CommandNotFoundException`

I think that this error may be caused by system.My system is Windows10,and the environment is python3.7.
Your system may be Ubuntu20.04?

Hi, the first $ stands for the start of the command line. Try
TASK="halfcheetah-medium-v2"; seed=0; python3 -u train_behavior.py --expid ${TASK}-baseline-seed${seed} --env $TASK --seed ${seed}
instead of
$ TASK="halfcheetah-medium-v2"; seed=0; python3 -u train_behavior.py --expid ${TASK}-baseline-seed${seed} --env $TASK --seed ${seed}

I've updated the readme file to avoid similar confusion. Sorry for the inconvenience.

Thanks for your reply!Have a nice day!


use sys.maxsize rather than platform.machine()

platform.machine() gives the wrong answer if you're running 32-bit
Python on a 64-bit machine. sys.maxsize gives the answer we want. See
also https://stackoverflow.com/a/1405971/823869.
Also use CARGO_CFG_TARGET_POINTER_WIDTH rather than inferring the
pointer width from CARGO_CFG_TARGET_ARCH.

This should fix the issue described at https://github.com/PyO3/pyo3/pull/779#issuecomment-602717125.

It would be ideal to have CI test this case for us. Would you guys be open to adding test targets like what I've got in https://github.com/oconnor663/blake3-py/blob/master/.github/workflows/push.yml?

Thanks very much for this. I would be in favour of having both 32-bit and 64-bit Python in CI.

I'm going to prepare x86/x64 tests for macOS and Win.
Please wait for that.

I enabled x64 + macOS and x86 + Windows tests in #831.
Please rebase on the master and add a test you want (x86 + macOS?)

I've tried to add Linux CI testing, but it's failing with this error:
/home/runner/work/pyo3/pyo3/target/debug/deps/pyo3-1c9bfe8599f85944: error while loading shared libraries: libpython3.7m.so.1.0: cannot open shared object file: No such file or directory
Is that a known problem?

@oconnor663
As in travis scripts,
PYTHON_LIB=$($PYTHON_BINARY -c "import sysconfig; print(sysconfig.get_config_var('LIBDIR'))")

export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PYTHON_LIB:$HOME/rust/lib"

would solve the problem.
But I don't think we need Ubuntu CI on Actions unless it can test something different from what we do on travis.

Oh that makes sense. I missed the Travis runs. I'll just remove the test.yml change then.

Looks like I'm hitting some OverflowError: timestamp out of range, possibly related to PyPy. Could those be my fault?

@oconnor663
No, this is due to #720

The failing test uses platform.architecture()[0] == "32bit" to determine whether the architecture is 32bit or 64bit...

That's consistent with the admonition here, which I mention in the code comments in this PR:

BTW, you might be tempted to use platform.architecture() for this. Unfortunately, its results are not always reliable, particularly in the case of OS X universal binaries.
$ arch -x86_64 /usr/bin/python2.6 -c 'import sys,platform; print platform.architecture()[0], sys.maxsize > 2**32'
64bit True
$ arch -i386 /usr/bin/python2.6 -c 'import sys,platform; print platform.architecture()[0], sys.maxsize > 2**32'
64bit False

Let me see if I can switch it over to the same maxsize approach.

Actually I hadn't seen this comment before. It sounds like struct.calcsize("P") might be the One True Way?

https://github.com/PyO3/pyo3/pull/830/commits/884db67ef55fce69d8a5e59581bd408310f1f6ca doesn't seem to have helped. I'm going to keep staring at it.

It looks like the test failure is only on macOS, and only on Python 3.5 specifically. I don't know what could've changed here between 3.5 and 3.6.

The exception pathway being hit looks like it exists on python 3.5 but was removed from 3.6.
https://github.com/python/cpython/blob/3.5/Modules/_datetimemodule.c#L4936

Cool, that's definitely what we're seeing. But I don't know enough about this test to interpret whether we want it to fail here or not.

I'm going to defer to you all on this one. I'll remove my temporary debugging commits. If you want to see the debugging output, it's visible in this run: https://github.com/PyO3/pyo3/pull/830/checks?check_run_id=534169690

@oconnor663
Thank you for hard debugging!
I think it's better for us to wait for @pganssle, who is the author of our datetime binding.
I don't have a macOS machine so this is hard to debug for me, though I'm going to try using Actions.

Is 32-bit Mac OS still a used platform? Even numpy doesn't have 32-bit Mac OS wheels on pypi (https://pypi.org/project/numpy/#files). If I remember correctly there isn't a wheel tag for 32-bit Mac OS.
This is what the blog post of rust demoting apple 32-bit targets:

Why are those targets being demoted?
Apple dropped support for running 32-bit binaries starting from macOS 10.15 and iOS 11. They also prevented all developers from cross-compiling 32-bit programs and apps starting from Xcode 10 (the platform’s IDE, containing the SDKs).
Due to those decisions from Apple, the targets are no longer useful to our users, and their choice to prevent cross-compiling makes it hard for the project to continue supporting the 32-bit platform in the long term.

Made the comment change requested above.
I want to emphasize that this bug is causing build failures with the current release version, for example https://github.com/oconnor663/blake3-py/runs/534852943. If you guys can think of a way to reduce the scope of this change, so that we can release a fix quickly without the risk of breaking anything, that might be worth doing.

It's all a bit arcane.
I couldn't find anything about this specifically in the cpython changelog. I did find the commit in cpython which reworked the implementation removing this OverflowError. It looks like it's a side-effect of changes for PEP 495.
Prior to those changes the implementation used mktime. I can't find good documentation on the apple docs about what values should be accepted. The following stack overflow post suggests that for some undocumented reason macOS can't handle time_t values (aka mktime output) earlier than 1900.
That would at least be consistent with the error we're seeing on that CI. So I suggest you mark that test as xfail for macOS on 3.5.

(Sorry for not being more helpful on this one, I haven't had much free time recently!)

I just xfailed the tests on macOS, but now something else datetime+3.5 related is failing on Windows?That's odd to me, because everything passed on this run: https://github.com/PyO3/pyo3/actions/runs/63179251

@oconnor663
It's not related to this PR. Please don't care.

So I suggest you mark that test as xfail for macOS on 3.5.

I'm not strongly against using xfail, but please let me debug this for a while.

Gotcha, I've removed the commit.

Note: I put fail-fast: false on one of me earlier temporary commits, and I've since removed it from this branch. But it looks like there might be some unexpected failures getting masked by failures on other platforms here. It might be worth putting fail-fast: false in master, or at least in whatever experimental branches you're working on.

@oconnor663
Sorry I can't detect the cause at last. Please use xfail for the test.

I've added back https://github.com/PyO3/pyo3/pull/830/commits/e44e4ce1e9799ab39167e0506b86fc94df08789c.

Thank you!
I'll push some tweaks to make CI happy.


host heap memory need to free  for sanity data validation case

a programming issue, for data validation case, heap memories have been allocated at the beginning, but not free at the end.

@pakmarkthub  could you please take a look?


How to Modify multiple PDF pages without reloading it.

Hi Thank for this Awesome Lib.
My Requirement is , I need to add Images to multi-page , Image can be on all pages and pdf can be hundreds of pages. Currently I am reloading Pdfbytes in each Itteration.
Following is Snippet
pageSet.forEach(async (pageNum: number) => {
			const currentPage = pages[pageNum - 1];
			const { width, height } = currentPage.getSize();
			let url =  await this.getCanvasUrl(pageNum, width, height); // data url of image that can be of 3000x5000
			const pngBytes = await fetch(url).then((res) => res.arrayBuffer());
			const pngImage = await this.pdfDoc.embedPng(pngBytes);
			const pngDims = pngImage.scale(1);
			currentPage.drawImage(pngImage, {
				x: 0,
				y: 0,
				width: width,
				height: height,
			});
			this.pdfBytes = await this.pdfDoc.save();
			this.pdfDoc = await PDFDocument.load(this.pdfBytes);
			this.operation();
});

Now this way create big performance Issue when pdf is of more then 50 pages and if we need to add image on all page. You can see that I am loading the.pdfBytes again.
So is there any way to get pages from pdf , update it and insert is back? or any other way to improve this?
Thank You.

What is pageSet?
Are you embedding the same image on all or multiple pages?

What is pageSet?
Are you embedding the same image on all or multiple pages?

It can be same or can't be. Its upto user.
User can add one image on all pages,  or on selected pages. User can also add multiple images on single page.
Pageset is set of pages where i stored page list.
As async-await doesn't work properly in forEach so i used traditional for-loop instead and also removed save() out of the loop.
Now its working properly but when pdf size get more then 50mb then my browser get crashed(i7, 8GB ram).
Any solution to optimizing it further?

Afraid not. Large PDFs are difficult to work with. This may become easier once pdf-lib supports I/O streaming, as everything is done in-memory today. I'd suggest trying to use SVGs if possible. They use less space than images. If you must use images, then try lowering their quality so they don't take up as much space prior to embedding them in the document.

Afraid not. Large PDFs are difficult to work with. This may become easier once pdf-lib supports I/O streaming, as everything is done in-memory today. I'd suggest trying to use SVGs if possible. They use less space than images. If you must use images, then try lowering their quality so they don't take up as much space prior to embedding them in the document.


feat (examples): Added Swift examples

Description
Adds two example Swift projects which show how to use GraphCMS with Swift. One is native and uses URLSession and plain GraphQL strings, while the other uses swift-graphql to parse a GraphQL schema into native Swift and build queries from that.
Both examples are built in SwiftUI, with (rough) support for varying devices (iPhone / iPad / Mac). Both use Swift's native async/await support.

@craigtweedy I'm happy to merge if you are.


Add an option to upgrade service sidekicks also

At the moment upgrade will not be performed on any service's sidekicks. This change adds an option (default False) to upgrade also sidekicks with main service.

Thanks for the PR! I've merged it and updated the image on Docker Hub.


TODO list / priorities

Main

[ ] #18 / #20
[x] #28 / #21
[x] #19
[x] #25
[x] #2
[x] #26
[ ] Add sorting related queries
[ ] #9
[ ] #10
[ ] #11

Secondary

[x] #27
[x] #29
[x] #30
[x] #24
[ ] #17
[x] #16
[x] #5

tried this project out tonight on my sqlite DB. pretty incredible work. worked on the first go. great job. looking forward to seeing mutations land!

Moved to milestones


User nav is inaccurate after becoming a store

Related: #289. After becoming a store I continued to see the "Become a Store" link in the user nav. This option persisted until I restarted the client app.

I can't replicate this issue. Can up get the latest code and check it again?

I tried it again. It still shows it after becoming a store, but I was wrong about the persistence. It goes away after I reload the page.

Is anyone else experiencing this?

Cannot replicate. Closing and if anyone else has the problem they can re-open.


Cant catch errors with .goto

Steps to reproduce
Tell us about your environment:

Puppeteer version: 0.10.2
Platform / OS version: mac 10.12.6

What steps will reproduce the problem?
const puppeteer = require('puppeteer');

puppeteer.launch({ headless: false }).then(async function(browser) {

	const newPage = await browser.newPage();

	// newPage.goto('http://google.com', { timeout: 1 })
	// 	.catch(function(err) {});

	// newPage.goto('http://google.com', { timeout: 1 })
	// 	.then(function() {}, function(err) {});

	try {
		await newPage.goto('http://google.com', { timeout: 1 });
	} catch (e) {}
});

What is the expected result?
To be able to silence the error.
What happens instead?
The error isn't caught.
(node:33288) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Navigation Timeout Exceeded: 1ms exceeded
(node:33288) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:33288) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1)

Listening to unhandledRejection on the process returns this:
Promise {
  <rejected> Error: Navigation Timeout Exceeded: 1ms exceeded
    at NavigatorWatcher.waitForNavigation (./node_modules/puppeteer/lib/NavigatorWatcher.js:74:13)
    at <anonymous> }

Here is a related issue. #718

Looks like this too: https://mobile.twitter.com/thejameskyle/status/905921542906712064

@kaushik-sundar
Doesn't look related... The reason why that error is happening in that Issue is explained in the last post by @aslushnikov. Unlike the code there, I am trying to try-catch an error from a function call that is prepended by await.
@ebidel

Always return await or if you wrap with try-catch it won't be caught

I am using await. Don't think returning it will make a difference but I can try later.

Zubair Saif
On Mon, Sep 11, 2017 at 9:15 AM, Hiroki Osame<EMAIL_ADDRESS>wrote:

@kaushik-sundar https://github.com/kaushik-sundar
Doesn't look related... The reason why that error is happening in that
Issue is explained in the last post by @aslushnikov
https://github.com/aslushnikov. Unlike the code there, I am trying to
try-catch an error from a function call that is prepended by await.
@ebidel https://github.com/ebidel
Always return await or if you wrap with try-catch it won't be caught
I am using await. Don't think returning it will make a difference but I
can try later.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/GoogleChrome/puppeteer/issues/738#issuecomment-328411045,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALNHBiaZ5joA1GwvO_O1jFAjbNXpbdaWks5shLPigaJpZM4PSiXO
.

@hirokiosame that's a bug, thanks for reporting!

@aslushnikov I'm sorry but i still meet this bug with puppeteer v1.4, node v10.1:


Extensibility: Details View: Table widget: Table column names

Description
Currently the column names of a Table widget are the name (if present) or path (if not) of the Table component concatenated with the name (if present) or path (if not) of the child entry.  This means the names of the columns are always more technical than actually human readable. We would like that column names can be configurable in a way so that column names can be only a single string so that we can have columns with simple strings such as Kind instead of Resource.Kind or .Kind in case you use a hack and define the parent name as " ".
Additionally it might be useful to have tables have a title which displays above the column line, perhaps on the left side from the search bar.
Reasons
It would be much more human readable if the column can be overwritten with column names that aren't concatenated name/path of the parent component and the name/path of the child.
The title for the Table would mean we can put a title to the table without having to instead create another component above it to simply hold the title. This also means that the table would be 1 component and not 2 - a title for the table and the table component itself.

Attachments
How it currently shows up:

The code I use:
        {
          "path": "status.results",
          "widget": "Table",
          "children": [
            {
              "name": "Kind",
              "path": "resource.kind"
            },
            {
              "name": "Name",
              "path": "resource.name"
            },
            {
              "name": "Namespace",
              "path": "resource.namespace"
            },
            {
              "name": "Status",
              "path": "metadata.status"
            }
          ]
        }

The issue with the column names was resolved using the translations functionality by mapping the complex names status.results.resource... to the column names I want to have. Only the Table Title is still relevant from this issue.


Provide a simpler retry API.

This is currently just a proposal. Next steps would be:

Adding tests
Checking that we can use this easily in places that use RetrySettings in APIs (on next-major-version)

This is an alternative approach to #369. It avoids putting extra logic in RetrySettings, but hopefully gives a simpler API for other code that needs details of the retry sequence.

Great - I'll find everywhere that we use RetrySettings.NextBackoff in google-cloud-dotnet and see whether this change makes that simpler.

APIs that need checking:

Firestore
Bigtable
Spanner.Data
Spanner.V1

Trying to use this in a couple of places, we sometimes don't have a clock, and that's fine because we don't have a deadline, and in those cases we don't use ShouldRetry anyway. So I'm tempted to move the IClock to being a parameter of ShouldRetry - any objections?

Significant snag: one place we use RetrySettings is in Spanner.Data, where we have a SpannerException rather than an RpcException. Humbug.
One option would be to still revert NextBackoff to be public again, so that using this new scheme is an option, but not the only option. Thoughts welcome.

Significant snag: one place we use RetrySettings is in Spanner.Data, where we have a SpannerException rather than an RpcException. Humbug.
One option would be to still revert NextBackoff to be public again, so that using this new scheme is an option, but not the only option. Thoughts welcome.

Make RetrySettings generic on the Exception type?
Or simply accept any Exception type on the predicate instead of RpcException and keep the helper methods that return a Predicate based on status codes?

I also like this design.
For Spanner-line situations, could CreateRetrySequence allow a custom exception type, and custom way of determining if the error is retryable?
I accept this may be over-complex!

Make RetrySettings generic on the Exception type?

That seems overly complicated for the sake of a small amount of tidying up.

Or simply accept any Exception type on the predicate instead of RpcException and keep the helper methods that return a Predicate based on status codes?

Hmm. Maybe. So those methods would then return Predicate<Exception> but basically include e is RpcException rpcException && ...?

Trying to use this in a couple of places, we sometimes don't have a clock, and that's fine because we don't have a deadline, and in those cases we don't use ShouldRetry anyway. So I'm tempted to move the IClock to being a parameter of ShouldRetry - any objections?

Maybe overload CreateRetrySequence so as to have one that doesnt receive a deadline and clock, and it's probably easy to check for null on ShouldRetry, and it that way, ShouldRetry can also be used to check for the exception and max attempts in cases where there might be no deadline?

Maybe overload CreateRetrySequence so as to have one that doesnt receive a deadline and clock

Yup, that works for me.

Hmm. Maybe. So those methods would then return Predicate<Exception> but basically include e is RpcException rpcException && ...?

Yes, and this model can then be used for all cases in which we need to retry, not just RPCs but more "complex" operations as well, as in Spanner with the RetriableTransaction.

Note that the foreach loop is still copied in quite a few places. We could probably make that public in GAX at some point - but we can do that later.

Okay, done, and there's now a test. PTAL, including the comment for the commit which goes into a bit more detail.

The API library changes are at https://github.com/googleapis/google-cloud-dotnet/pull/4264


Clone element overwriting yourself. I don't now

Gif example:

Plunker example: http://plnkr.co/edit/FEJjil?p=preview

I got it a fast solution, but maybe is not the best solution.
At event onAdd(), I inserted an validation:
if (e.from.id === $self.item.parentNode.id) {
	return false;
}

As I understood from the example, a problem in your code.


[User Problem] Convert V-net from Keras 1 to Keras 2

Hi,
I am trying to convert a V-net code I found from Keras 1 to Keras 2. I've updated everything, but I have a problem with the following class:
class Deconv3D(Layer):
    def __init__(self, nb_filter, kernel_dims, output_shape, strides):
        assert K.backend() == 'tensorflow'
	self.nb_filter = nb_filter
	self.kernel_dims = kernel_dims
	self.strides = (1,) + strides + (1,)
	self.output_shape_ = output_shape
	super(Deconv3D, self).__init__()

def build(self, input_shape):
	assert len(input_shape) == 5
	self.input_shape_ = input_shape
	W_shape = self.kernel_dims + (self.nb_filter, input_shape[4], )
	self.W = self.add_weight(W_shape, initializer=functools.partial(initializers.glorot_uniform), name='{}_W'.format(self.name))
	self.b = self.add_weight((1,1,1,self.nb_filter,), initializer='zero', name='{}_b'.format(self.name))
	self.built = True

def get_output_shape_for(self, input_shape):
	return (None, ) + self.output_shape_[1:]

def call(self, x, mask=None):
	return tf.nn.conv3d_transpose(x, self.W, output_shape=self.output_shape_, strides=self.strides, padding='same', name=self.name) + self.b

When I call it using Deconv3D(128, (2, 2, 2), (1, 16, 16, 8, 128), (2, 2, 2))(X), I get the following error that I don't understand:
Traceback (most recent call last):
  File "V-net.py", line 118, in <module>
downsample_5 = Deconv3D(128, (2, 2, 2), (1, 16, 16, 8, 128), (2, 2, 2))(prelu_5_1) # Check the 8
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/keras/engine/topology.py", line 569, in __call__
self.build(input_shapes[0])
  File "V-net.py", line 35, in build
self.W = self.add_weight(W_shape, initializer=functools.partial(initializers.glorot_uniform), name='{}_W'.format(self.name))
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/keras/legacy/interfaces.py", line 87, in wrapper
return func(*args, **kwargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/keras/engine/topology.py", line 391, in add_weight
weight = K.variable(initializer(shape), dtype=dtype, name=name)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/keras/backend/tensorflow_backend.py", line 321, in variable
v = tf.Variable(value, dtype=_convert_string_dtype(dtype), name=name)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/tensorflow/python/ops/variables.py", line 200, in __init__
expected_shape=expected_shape)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/tensorflow/python/ops/variables.py", line 278, in _init_from_args
initial_value(), name="initial_value", dtype=dtype)
TypeError: __call__() missing 1 required positional argument: 'shape'

What am I doing wrong?
Thank you for your help.

Hi, @FiReTiTi, it's possibly due to the differences in Keras versions, for the version==2.1.2 this class should be rewritten as follows:
class Deconvolution3D(Layer):

    def __init__(self, nb_filter, kernel_dims, output_shape, subsample, **kwargs):
        self.nb_filter = nb_filter
        self.kernel_dims = kernel_dims
        self.strides = (1, ) + subsample + (1, )
        self.output_shape_ = output_shape
        assert K.backend() == 'tensorflow'
        super(Deconvolution3D, self).__init__(**kwargs)

    def build(self, input_shape):
        assert len(input_shape) == 5
        self.W = self.add_weight(shape=self.kernel_dims + (self.nb_filter, input_shape[4], ),
                                 initializer='glorot_uniform',
                                 name='{}_W'.format(self.name),
                                 trainable=True)
        self.b = self.add_weight(shape=(1, 1, 1, self.nb_filter,),
                                 initializer='zero',
                                 name='{}_b'.format(self.name),
                                 trainable=True)
        super(Deconvolution3D, self).build(input_shape)

    def call(self, x, mask=None):
        return tf.nn.conv3d_transpose(x, self.W, output_shape=self.output_shape_,
                                      strides=self.strides, padding='SAME', name=self.name) + self.b

    def compute_output_shape(self, input_shape):
        return (input_shape[0], ) + self.output_shape_[1:]

Thanks a lot for your help, it works!!!

It seems that I have an error :-(
Using TensorFlow backend.
Traceback (most recent call last):
  File "/eppec/storage/sw/conda/envs/ThibaultPython35/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1323, in _do_call
return fn(*args)
  File "/eppec/storage/sw/conda/envs/ThibaultPython35/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1302, in _run_fn
status, run_metadata)
  File "/eppec/storage/sw/conda/envs/ThibaultPython35/lib/python3.5/site-packages/tensorflow/python/framework/errors_impl.py", line 473, in __exit__
c_api.TF_GetCode(self.status.status))
tensorflow.python.framework.errors_impl.InvalidArgumentError: Conv3DBackpropInput: input and out_backprop must have the same batch size
     [[Node: deconv3d_1/deconv3d_1 = Conv3DBackpropInputV2[T=DT_FLOAT, data_format="NDHWC", padding="SAME", strides=[1, 2, 2, 2, 1], _device="/job
:localhost/replica:0/task:0/device:GPU:0"](deconv3d_1/deconv3d_1/output_shape, deconv3d_1/deconv3d_1_W/read, p_re_lu_11/add)]]
     [[Node: loss/mul/_515 = _Recv[client_terminated=false, recv_device="/job:localhost/replica:0/task:0/device:CPU:0", send_device="/job:localhost/replica:0/task:0/device:GPU:0", send_device_incarnation=1, tensor_name="edge_5083_loss/mul", tensor_type=DT_FLOAT, _device="/job:localhost/replica:0/task:0/device:CPU:0"]()]]

I took a look online and it seems that be an old error that was fixed on Keras, but I probably something wrong with the output dimensions.
Any idea?


Crash

when i use asyncio.wait(tasks)
will crash
response = await client.post(url, data=self.progressData(data))
File "/Users/darkedge/.pyenv/versions/3.8.4/lib/python3.8/site-packages/httpx/_client.py", line 1827, in post
return await self.request(
File "/Users/darkedge/.pyenv/versions/3.8.4/lib/python3.8/site-packages/httpx/_client.py", line 1513, in request
return await self.send(request, auth=auth, follow_redirects=follow_redirects)
File "/Users/darkedge/.pyenv/versions/3.8.4/lib/python3.8/site-packages/httpx/_client.py", line 1600, in send
response = await self._send_handling_auth(
File "/Users/darkedge/.pyenv/versions/3.8.4/lib/python3.8/site-packages/httpx/_client.py", line 1628, in _send_handling_auth
response = await self._send_handling_redirects(
File "/Users/darkedge/.pyenv/versions/3.8.4/lib/python3.8/site-packages/httpx/_client.py", line 1665, in _send_handling_redirects
response = await self._send_single_request(request)
File "/Users/darkedge/.pyenv/versions/3.8.4/lib/python3.8/site-packages/httpx/_client.py", line 1702, in _send_single_request
response = await transport.handle_async_request(request)
File "/Users/darkedge/.pyenv/versions/3.8.4/lib/python3.8/site-packages/httpx_socks/_async_transport.py", line 82, in handle_async_request
resp = await self._pool.handle_async_request(req)
File "/Users/darkedge/.pyenv/versions/3.8.4/lib/python3.8/site-packages/httpcore/_async/connection_pool.py", line 247, in handle_async_request
await self.response_closed(status)
File "/Users/darkedge/.pyenv/versions/3.8.4/lib/python3.8/site-packages/httpcore/_async/connection_pool.py", line 274, in response_closed
self._requests.remove(status)
ValueError: list.remove(x): x not in list

We could not reproduce the issue


NUI-855 - Better metrics and logs for post processing

For NUI-855. I slightly changed that from just Log the duration of just the imagemagick convert command in post processing to Better metrics and logs for post processing and doing all these small improvements:

Log the duration of the imagemagick convert command in post processing
Log the duration of the imagemagick metadata read command in post processing
Add imagePostProcess (boolean) metric if image post processing ran
Change worker timeout message wording to include fmt not worker name

Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Query to see the new imagePostProcess metric in action on the IT tests:
SELECT filter(count(*), WHERE imagePostProcess=1) AS 'post-process', filter(count(*), WHERE imagePostProcess=0) AS 'direct' FROM rendition WHERE package='it-20201019-adobe-asset-compute-sdk-e6898dcdff29' FACET actionName, fmt


[Question] Is there a linux native replacement for DX11?

Is there a linux native replacement for DX11, meaning a d3d11.so or something else that linux will recognize as native and will use it as a native replacement of DX11? I know the question sounds weird but I don't wanna install the Windows version of the game bc it runs worse than the native linux version (native in linux - ultra settings; windows version - high settings at best).
I downloaded a mod for ETS2 which fixes the bad HDR SCS Software have made and almost everything is perfect with the exception of the fact that the sky is black. This happens because the person who made the mod, made the skybox textures for DX11. That's why I'm hoping that there's a native linux replacement for DX11. Ofc I could put the d3d11.dll and dxgi.dll in the folder where the executable file of the game is but I seriously doubt that this would work as intended.

The Linux version of the game obviously doesn't support D3D11.


cigien: Watch comixie.com

cigien requests the watch of the watch_keyword comixie\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

comixie\.com has been seen in 1 true positive, 0 false positives, and 0 NAAs.

comixie\.com has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by tripleee in Charcoal HQ

Approved by tripleee in Charcoal HQ


Dev community tools template

I would also suggest adding a line in the readme saying everyone who adds a tool will be given credit and acknowledged for their contributions in the readme.

@fulankun1412 I would recommend giving users credit for the functions or features added instead of counting pull requests. It is possible that we get a lot of low-effort pull-requests to game this metric.

@fulankun1412 I would recommend giving users credit for the functions or features added instead of counting pull requests. It is possible that we get a lot of low-effort pull-requests to game this metric.
@pkopparla So only mentioning the users and then functions/features that he added?
It will be like this?
| Contributor | Function developed  |
|------------ |--------------------- |
| user1           | PQS_function            |

@fulankun1412 Yes please. Other than that I don't have any other comments, changes look good.


Why was smart-hierarchy archived?

Do you want to merge it with smart inspector?
Cause im very much depending on this marvellous extension but using it in conjunction with smart inspectors gives me errors during build.

I had to stop working on Smart Hierarchy because of heroic, unfinished features that are just hanging around on different branches with inconsistent architecture everywhere.
It was nightmarish to work that way, especially for my health. (I've got into depression and then caught an ulcer)
I'm planning to remake the Smart Hierarchy with a fresh, successful, and healthy approach. Using Fluent UITK that I've developed with Smart Inspector.
None of my plugins would be merged together. Instead - they'll work alongside in harmony 😊

Jesus, sorry to hear that. Health should be first.
Ill stick to the last version because its vital for me to not lose my ming with 500+ elements of UI on the scene

Perhaps you could open the repository again (or a new one) so we can suggest ideas for the future of Smart Hierarchy?

You can suggest them on our Discord or on this Notion page


[DSA]: Tower of Hanoi

Description
Briefly discuss about Tower of Hanoi, Its Rules and Its Algorithm.
Domain
DSA
Type of Contribution
Documentation
Code of Conduct

[X] I follow Contributing Guidelines & Code of conduct of this project.

/assign

@nimisha-yadav @pjdurden @Muskan-creator Please assign this issue

This issue already exists. @priyanshu688


WebApp site tests

Coverage increased (+0.3%) to 42.588% when pulling 4df280548ec465df41831b7a031b993d2b6b4971 on lmazuel:webapp_tests into a08c55361905eaf0c0ba9ee0948c24c0ab429cf7 on Azure:dev.


Add egui tiles as alternative in readme

It would be nice to list egui_tiles as an alternative
Here is the comparision

I can't see why we would need this. egui_tiles was created as an alternative to egui_dock, not the other way around.

I think it would be nice if we just let users decide what to use and show what's out there

I think it would be nice if we just let users decide what to use and show what's out there


prometheus-mixin: fix PrometheusTSDBWALCorruptions

This is for discussion as I'm not sure what's the proper way to handle. Maybe we need to reconsider the metric itself?
The counter is only increased when tsdb.Open() is called which
Prometheus does only once in its lifetime (when it initializes). If the
corruption can't be recovered, tsdb.Open() returns an error and
Prometheus exits. Hence the metric is either 0 (no corruption) or 1
(corruption detected and repaired).
The metric name is 'prometheus_tsdb_wal_corruptions_total', not
'tsdb_wal_corruptions_total'.

Can't this also happen when creating checkpoints?
I'd also not have an alert that turns itself off, either this is a problem that requires intelligent human intervention or it isn't.

Can't this also happen when creating checkpoints?

Looking at the code, I'd say no but I'll let @krasi-georgiev chime in. Checkpoint operations have their own metrics: prometheus_tsdb_checkpoint_creations_failed_total and prometheus_tsdb_checkpoint_creations_total.

I'd also not have an alert that turns itself off, either this is a problem that requires intelligent human intervention or it isn't.

Fair enough. As I wrote in the description, I'm not sure we need the metric/alert since if corruption happens, it is either repaired automatically or Prometheus can't restart. I can see that someone wants to know about the "event" and investigate if data has been lost but the only way to resolve the alert would be to restart the server.

That a case for logging, not alerting.

I just double checked and we even have a bug as this metric is registered twice
https://github.com/prometheus/tsdb/blob/b40cc43958a563aa06a73b2c8d9090e66109ad1b/wal.go#L72-L75
https://github.com/prometheus/tsdb/blob/6f9bbc7253cb1cd550eeba2c3cc4c3015abbc91c/head.go#L169-L171
and yes when I was working on these parts I also thought it is weird and not very useful metric to have so can be removed I think.

@brancz mentioned in a call that this metric might be useful to know that a corruption happened and maybe can keep a copy of the corrupted data for potential repair, but from previous discussions I think the overall impression is that even if some data can be recovered it would make it impossible to use because of missing data points, series etc. Or in other words querying this recovered data would lead to misleading results.

I meant that it'd be good to keep the corrupt data around for us to analyze if we potentially could have repaired more/better. I think the metric is still useful to have, but the alerting rule is questionable.

Given the current feedback, I've amended the PR to remove the alert.

From the discussion so far I conclude that everyone agrees removing the alert is an improvement.
Therefore I'll merge this.


Tests all use the first instance of the server

The tests always close the port 5000 in express, but all the express routes remain and calling start in server.js again does not overwrite them.
The result is that all the tests use the same, first configuration. I didn't find a good way to fix this, it may require us to rethink how the tests are initiated.

Fork the Crudivore server into a new process for each test suite:
https://github.com/Vokkim/crudivore/commit/8712a28f6b4c9834fe8958e8c6ab8bd865f2ab68


fix: scaling (index, about) and Finnish grammar fixes

Current dependencies on/for this PR:

main

PR #70   👈

This stack of pull requests is managed by Graphite.


Fix HTML highlight when whitespace before closing end tag '>'

It fixes #4150

Please update the header.  The date makes sure we know what version we have and avoids merging patches out of sequence.

I've just updated the header, @brammool.

Thanks, I'll include it.


When I can test swagger ? Were is token ?

Hello,
When I can test swagger ? all are "Error: Unauthorized" ...
Where can I found the token to test ?
The :

AUTHORIZATION

AUTH_ROUTE="http://localhost:3333/tokeninfo"
in configuration not works (404).
Thanks

@Paul75 the AUTH_ROUTE="http://localhost:3333/tokeninfo" is used for authentication checking. This url is provided by a 3td party and not included in this repository.
By 3td party I mean:

Auth0
Our test server like stated in the readme (Auth Mock Server)

We do not implement the authentication by our selfs but you can reference this issue about implementation details: https://github.com/w3tecch/express-typescript-boilerplate/issues/52


Update tex icon

The current TeX icon seems not correct. I think it should be the logo of TeX, not nf-md-text_shadow.
󰙩 -> 
Edit: Btw, I have checked the whole codebase before this PR. I confirm there is no other meaning of tex. It should have been only mapped to TeX.

Fixed by maintainers

Looks like you have a solution. Anything more to do?

Looks like you have a solution. Anything more to do?

Oh sorry, I opened another PR (#437).


Mongodm can not be use in Phalcon?

I have this question when create new model:
Argument 2 passed to Purekid\Mongodm\MongoDB::__construct() must be of the type array, null given, called in C:\xampp\htdocs\guppys\common\Library\Vendor\purekid\mongodm\src\Purekid\Mongodm\MongoDB.php on line 66 and defined

@wughvor can you give more context, show some code?

@jrschumacher hi, I use mongodm in Phalcon:
// User.php
class User extends \Purekid\Mongodm
{
static public $collection = 'user';
protected static $attrs = array(
'name'  => array('type' = 'string'),
);
}
class UserManager
{
public function create()
{
$user = new User();
$user->name =  'somebody';
$user->save();
}
}
// IndexController.php
class IndexController extends \Phalcon\Mvc\Controller
{
public function indexAction()
{
$user = new User();
$user->name = 'somebody';
$user->save();  // This is ok, will save the somebody user in mongo
}
   public function createAction()
   {
       $userManager = new UserManager();
       $userManager->create(); // This is fail, and error like "Argument 2 passed to Purekid\Mongodm\MongoDB::__construct() must be of the type array, null given, called" will show.
   }

}
I want to use some middle class to manage the models, like UserManager,  but it' will show error message when create the UserManager in Controller.
This is my question, Thank you

How are you setting up the database? https://github.com/purekid/mongodm/blob/master/README.md#setup-database

@purekid , Thank you!!, I  resolve this question by your suggestion. also thanks you, @jrschumacher

@purekid , Thank you!!, I  resolve this question by your suggestion. also thanks you, @jrschumacher


feat: Make the maximum recycleable parser cache size configurable

Component(s)
router
Is your feature request related to a problem? Please describe.
Problem:
One of our federated queries is for loading a batch of data >1500 items all with >100 fields. This often results in larger JSON responses that the Resolver ends up parsing. After switching to ParserPools in fastjson (sometime after Router .88.0) we noticed unbounded memory growth when performing a relatively large number of these batch requests (> 150 min) often resulting in unwieldy heap sizes and a struggling GC.  This was not a problem for smaller requests (same Query but with <200 items).
It turns out that the issue is for our given queries, the ParserPool ends up retaining Parser objects which have allocated arrays of 2^17 (131,072) astjson.Value objects. This makes the Router retain an unusually large Heap that can not be reduce by the GC because the Parsers are being actively used to resolve GraphQL responses.
I've attached a few pprof dumps from v 0.88.0 and v 0.107.0
v88.pb.gz
v107.pb.gz
Describe the solution you'd like
I'm proposing and have implemented a somewhat simple solution to the problem to discard Parser objects that have unusually large caches so that the GC can eventually release that memory back to the Program.
Additionally, I propose making this a configurable property of the Router and Graphql-go-tools so that the default behavior will continue as is and this value can be set on a per need basis.
I've already tested this locally and it works well for our use case. Here are the 3 PRs I'm proposing:

astjson: Add a PutIfSizeLessThan method to ParserPool
https://github.com/wundergraph/astjson/pull/2

graphql-go-tools: Add ResolverOption for MaxRecyclableParserSize and use on Resolvable.Reset()
https://github.com/wundergraph/graphql-go-tools/pull/881

router: Add ResolverMaxRecyclableParserSize configuration and pass to Resolver on creation
https://github.com/wundergraph/cosmo/pull/1157

Describe alternatives you've considered
No response
Additional context
No response

@jfroundjian thanks for raising this, it sounds very reasonable.
I mostly like your proposal, although I'd suggest that we set a default max value to automatically cleanup the heap based on a "reasonable" number of cache objects.
Do you have any suggestion on what this number could be?
We could determine an approximation in terms of memory usage using reflect and limit the storage to some amount, e.g. 100MiB. I'm not sure what's a good way to configure this as a random number like "100k" will not have a lot of meaning to the users. What are your thoughts?

Thanks @jensneuse setting a default is definitely a good idea I just didn't want to suggest it immediately because it would have some performance implications for those really large requests (which is probably a rare use case).
I agree that the number won't have a lot of meaning to folks since it's just a cap on the number of json objects that are parsed in an individual response but it is also difficult to estimate the size since it depends a lot on the JSON being parsed.
From my example our subgraph responses can get pretty large so I'll try to do some basic maths here to work backwards:

1500 items with 180 fields and some nested objects ~ 12MB  uncompressed.
This will usually mean that the Parser object allocates a byte array for the string (12MB) and then an array of Values for every parsed field and subfield which in this case equate to about 270,000 fields. In practice a lot of these are null and I've seen the Value array end up at around 2^17 values
For our particular use case this translated to about 100MB allocated per parser

I think 32,768 or 2^15 is a very reasonable limit that almost all graphql responses will never get to but if you want to be more accomodating going up one more also works. Wdyt? Btw I am going up in powers of 2 because that's how the Parser grows the underlying array to store these values.

I think your suggestion of 2^15 sounds reasonable.
Another case to think about is that we could implement a more sophisticated parser pool.
If the parser pool would know the cap of each parser in the pool, we can determine the most appropriate parser in the pool.
E.g. we could estimate a parser of the right size so that we don't have to increase the cap again during parsing.
In addition, we could have more control over releasing a parser.
E.g. if we run a dedicated goroutine for cleanups of the pool, we wouldn't have to "push" parsers to the GC based on size, as the goroutine could track a few seconds if a parser is not needed anymore and automatically discard it.
That said, I'm fine going with a simple approach first and seeing where it takes us.

That sounds pretty nice @jensneuse but going simple first is also a deliberate decision I made because afaict our use case is unique.
In the future, I'd be happy to contribute a more elaborate scheme for assigning parsers and cleaning up.
Btw I also came across this PR that was never merged into fastjson to add a reusability limit for a parser. That's more appropriate for the use case where we occasionally parse large jsons but it's also doing something similar
https://github.com/valyala/fastjson/pull/45

Thanks for helping me merge all the PRs and update the documentation @jensneuse. I can confirm that the feature is working as expected in<EMAIL_ADDRESS>and that our high memory usage has been curbed.


HAL reorganization

moved HAL back to core module
added another HAL implementation example (in samples/hal)
ability to provide HAL replacement headers and libraries as lists (;-separated) to cmake
split and merge replacement entry point

Locations:

functions implemented in HAL: <core-include>/hal/hal.hpp
public interface to be used by external implemetations: <core-include>/hal/interface.h
HAL dummy replacement functions and macros: <core-src>/hal_replacement.hpp
HAL samples: samples/hal

check_regression=*

@mshabunin, even though it's WIP still, I dare to make some comments. Overall, it looks great. I do not quite like the name "broken" in the HAL sample. I would probably rename it to ext_hal, rename functions, and put comments to some of the functions like

return CV_HAL_ERROR_UNKNOWN; // test how OpenCV handles various error codes returned by HAL functions

(of course, there can be different error codes like NOT_IMPLEMENTED, NULLPTR etc.)
This is because "broken" name is quite confusing and people may think that this sample is not usable and they should not look at it.

@vpisarev , I've renamed hal samples and added readme file with the basic instructions.

thank you! :+1:

Should be merged with Itseez/opencv_contrib#475


Offset option is not working

I'm using Typeahead for a long time, but as of today I want to use the option 'offset'. So that the autocomplete shows the values, starting with the input (referring to the typeahead documentation). But I can't let it work, I cleared the cache. Tried multiple times, but I can't let it work.
$('#registration').typeahead({           hint: false,           highlight: true,           minLength: 1,           order: "asc",           offset: true,           cache: false }, {           name: 'registrationSearch',           display: 'registration',           limit: 5,           source: registrationsMultiply         });
Via the link you see a screenshot, how the autocomplete looks like (live in action): https://ibb.co/bL3YT5M

I don't see an offset option listed in either of the docs:
https://github.com/corejavascript/typeahead.js/blob/master/doc/jquery_typeahead.md
https://github.com/corejavascript/typeahead.js/blob/master/doc/bloodhound.md
What typeahead documentation were you referring to?

Simply pull the end denotion value to flow in statement that make value true in language free flow no blocks like the flow . Tim Harvath


Title Metadata Request

Would it be possible to add a option to make the title metadata of the mp4 file the same as the renamed file name?
Or even a setting to wipe all metadata except the audio video track data.
As of now I have been having to do it manually with this bat:
mkdir output

for %%a in (*.mp4) do ffmpeg -i "%%a" -map 0:v -map 0:a? -map 0:s? -map_metadata:g -1 -c copy -metadata title="%%~na" "output\%%~a"

Then rerunning the automator.
I understand you can disable plex metadata as a bandaid fix.

Not a planned feature, title is set based on TVDB / TMDB
You could write a post processing script and tie into mutagen if you wanted to adjust tagging behavior though including whip and custom sources
See the tvdb_mp4 / tmdb_mp4 files for how a tagging script can work


HWP-351 Add frontend post flagging functionality

Description
This PR includes the following proposed change(s):

Created files

post.js

Created to standardize the display of a post and comply with the D.R.Y. principle

flagPostModal.js

Modal which allows the user to flag a post and select the reason for flagging via a dropdown

flagDuck.js

Contains functionality for opening the flag post modal, and flagging said post

alertList.js

Lists all alerts in alertDuck.js and displays them in the top right of the screen

Removed unneeded comments from App.js

Requires
Add 'Requires Attention' label if appropriate.

[ ] Requires an update to the .env file
[ ] Requires adding a file listed in the .gitignore
[ ] Requires an opinion or answer to a question, see comments.
[ ] Requires other attention, see below.

If there are any requirements for the developer to make after this PR is merged please list them here.
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Refactoring / Documentation
[ ] Version change

if your change is a breaking change, please add breaking change label to this PR
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
For pull requests that are not just a simple fix, please check that the branch works on your local machine.

[x] Tested by Zach.
[ ] Tested by Brandon.
[x] Tested by Brady.

Does the change impact or break the Docker build?

[ ] Yes
[ ] No

If Yes: Has Docker been updated accordingly?

[ ] Yes
[ ] No

Checklist:

[x] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have made corresponding changes to the documentation
[ ] New and existing unit tests pass locally with my changes
[ ] If attention is required by the developer such as updating the .env file, these requirements have been listed.

Maybe increase the time alerts are shown on screen but works great!

Will do right now

As it is right now, a user can flag a post with a single flag, and then if they choose to flag it again they can set another flag on the same post. (In the API calls) We've discussed that we want to have it so a user can click the flag icon on a post, which brings up a modal, and they can select/unselect the flags they want to set (instead of a dropdown). Then the backend will be able to receive the list of flags instead of a single flag, and set them.

The chip idea is a great idea, I'll create a Jira ticket and put it in the backlog to be worked on in future iterations.


Simplify syntax for DataSource and indicator

It's a draft, an early concept. Feel free to review and comment. I don't have a clear idea yet how should we proceed with such a change.

Being more straightforward and less verbose is mentioned in a couple of issues. But on the other hand, OpenSLO wants to be flexible.
This PR tries to address the issues described in https://github.com/OpenSLO/OpenSLO/issues/162 and simplify the syntax.
Changes

kind: DataSource is less verbose, the field type has been abandoned and the field with a name defined by the implementor <<dataSourceName>> (I used <<&>> to indicate that it's an arbitrary value, maybe it's a better way to do it) replaces connectionDetails, by this approach info from those two mentioned earlier can be in one
to make names more straightforward and aligned with others, change field indicator to sli and indicatorRef to sliRef it tells which kind of object should be referred there
get rid of metricSource (reduce the level of indentation), use the directly new syntax of DataSource

I'm in favor of this change in general, though we should discuss the compatibility implications today.

Closes #27


ISPN-5434 ClusteringConfigurationBuilder.l1() does not enable L1

https://issues.jboss.org/browse/ISPN-5434

I personally think the fix should be to change the javadoc so it doesn't state this.  But I also prefer a more proactive approach to enabling things.  @tristantarrant WDYT?

Just noting that WF and EAP6s assume that the javadoc is correct. In any case we would need to have the fix in ISPN or WF/EAP6.

I'd rather change the javadoc and fix WF. All other "boolean" components use explicit methods and I don't want to make L1 special.

OK, I am closing the PR based on above comments.

Thanks @dpospisil for pointing out the discrepancy though :+1:


Zapping a stream does not seem to work

Zapping stream comments does though

Edit: it seems just that particular stream wasn't setup correctly. I managed to zap another one


import directives reference JS files where in fact no such file exists in type=TS

Version:
go install<EMAIL_ADDRESS>This is how I'm using the go-protoc-gen-es to generate TypeScript files for my proto definitions
  - name: es
    out: ./web/src/gen/ts
    opt:
      - target=ts

I can see the generated files with no issue
Vscode shows no problems with the imports however imports like these runtime problems:
import { Account, Project, Team } from "./common_pb.js";

Error from runtime:
ERROR in ./src/gen/ts/service/v2/migrations_pb.ts 9:0-56
Module not found: Error: Can't resolve './common_pb.js' in '.../web/src/gen/ts/service/v2'

If I manually change the import line to : import { Account, Project, Team } from "./common_pb"; then the problem goes away. However the next time I generate code it gets overwritten again

Closing this it is already solved in protoc-gen-es!

Hi @jeffsaremi - you probably already found it but just in case or for anyone else that stumbles on this issue, for v1 you can add import_extension=none option for that behavior, while in v2 it is the default behavior.


Add PUSH_TOOL to ubuntu Makefile

So people can just do make push  and push to gcr without errors.

/lgtm

This change is

Coverage increased (+0.04%) to 45.914% when pulling bb489633b9c2fad71a249afeb4d4b5d20a4a1c02 on bprashanth:ubuntu_makefile into 5fab1e99febb0c9513ce59bd8de8e07ee9d01724 on kubernetes:master.


:bug: Fix error when zero chunks are passed, add intersphinx

Codecov Report

Merging #4 (667f23a) into master (5164a32) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master        #4   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            3         3
  Lines           72        72
  Branches        12        12
=========================================
  Hits            72        72

Impacted Files
Coverage Δ

src/mapply/parallel.py
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


MultiMiner does not find USB Antminer U3 v2

I have two USB Antminer U3 v2's connected to my workstation. MultiMiner cannot find them. I am able to use them with CGMiner, but I prefer MultiMiner. Are there any settings I can change to get them to work with MultiMiner?

You will need to wait for a release of BFGMiner that supports the AntMiner U3. MultiMiner uses BFGMiner for ASIC mining rather than CGMiner due to wider ASIC support.
Until then you can run CGMiner with the --api-allow and --api-listen arguments and MultiMiner should show the device after a few minutes under the Network group. You can find more info here:
https://github.com/nwoolls/MultiMiner/wiki/Network-Devices#network-devices

Ok thank you. I will have to use CGMiner for now. I hope BFGMiner supports the U3's soon. I prefer to donate 3% to 5% of my hashes using MultiMiner but for now I cannot :( thank you for your help!
Jake
Sent from my iPhone

On May 6, 2015, at 11:07 AM, Nate Woolls<EMAIL_ADDRESS>wrote:
You will need to wait for a release of BFGMiner that supports the AntMiner U3. MultiMiner uses BFGMiner for ASIC mining rather than CGMiner due to wider ASIC support.
Until then you can run CGMiner with the --api-allow and --api-listen arguments and MultiMiner should show the device after a few minutes under the Network group. You can find more info here:
https://github.com/nwoolls/MultiMiner/wiki/Network-Devices#network-devices
—
Reply to this email directly or view it on GitHub.


Provide a script to run the whole NDS tests including all necessary parts.

We need a script to combine all seperate tests together to do a whole NDS run including Power Run, Throughput Run, Data Maintenance etc.

General execution order:
7.4.2
The benchmark must use the following sequence of tests:
a) Database Load Test
b) Power Test
c) Throughput Test 1
d) Data Maintenance Test 1
e) Throughput Test 2
f) Data Maintenance Test 2

More details:
### TPC-DS defines three primary metrics:
- a) A Performance Metric, QphDS@SF, reflecting the TPC-DS query throughput (see Clause 7.6.3)
- b) A Price-Performance metric, $/kQphDS@SF (see Clause 7.6.4);
- c) System availability date (see Clause 7.6.5).

### TPC-DS also defines several secondary metrics. The secondary metrics are:
- a) Load time, as defined in Clause <IP_ADDRESS>;
- b) Power Test Elapsed time as defined in Clause 7.4.4 and the elapsed time of each query in the Power Test;
- c) Throughput Test 1 and Throughput Test 2 elapsed times, as defined in clauses <IP_ADDRESS> and <IP_ADDRESS>.
- d) When TPC_Energy option is chosen for reporting, the TPC-DS energy metric reports the power per
performance and is expressed as Watts/kQphDS@SF. (see TPC-Energy specification for additional
requirements).

Each secondary metric shall be referenced in conjunction with the scale factor at which it was achieved. For
example, Load Time references shall take the form of Load Time @ SF, or “Load Time = 10 hours @ 1000”

Where:
• SF is defined in Clause 3.1.3, and is based on the scale factor used in the benchmark
• Q is the total number of weighted queries: Q=Sq*99, with Sq being the number of streams
executed in a Throughput Test
• TPT=TPower*Sq, where TPower is the total elapsed time to complete the Power Test, as defined in
Clause 7.4.4, and Sq is the number of streams executed in a Throughput Test
• TTT= TTT1+TTT2, where TTT1 is the total elapsed time of Throughput Test 1 and TTT2 is the total
elapsed time of Throughput Test 2, as defined in Clause 7.4.6.
• TDM= TDM1+TDM2, where TDM1 is the total elapsed time of Data Maintenance Test 1 and TDM2 is the
total elapsed time of Data Maintenance Test 2, as defined in Clause 7.4.9.
• TLD is the load factor computed as TLD=0.01*Sq*TLoad, where Sq is the number of streams executed
in a Throughput Test and TLoad is the time to finish the load, as defined in Clause 7.1.2.
• TPT, TTT, TDM and TLD quantities are in units of decimal hours with a resolution of at least 1/3600th
of an hour (i.e., 1 second)


Add ability to override default 'example' namespace.

Related to #32
Added --use-namespace option.

Codecov Report

Merging #33 into master will decrease coverage by 0.05%.
The diff coverage is 41.66%.

@@            Coverage Diff             @@
##           master      #33      +/-   ##
==========================================
- Coverage   64.63%   64.57%   -0.06%
==========================================
  Files          16       16
  Lines        5033     5045      +12
==========================================
+ Hits         3253     3258       +5
- Misses       1780     1787       +7

Impacted Files
Coverage Δ

stix2slider/cli.py
32.43% <0%> (-0.91%)
:arrow_down:

stix2slider/convert_stix.py
65.58% <40%> (-0.19%)
:arrow_down:

stix2slider/options.py
68.62% <50%> (-0.25%)
:arrow_down:

stix2slider/utils.py
78.94% <50%> (-7.72%)
:arrow_down:

Continue to review full report at Codecov.

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

@emmanvg @gtback:  Hold off on merging this - I made some changes too that haven't been pushed, which I think conflict with what was done here.

@emmanvg: your changes subsume mine, so we should just merge this in and I will delete my branch.
One thing - can you add --use-namespace to command-line.rst, then it will be ready for merging.

@rpiazza @gtback, it should be good to go now. I have added a test as well.


The project name in Java projects explorer is not change when user change maven artifactId

Environment:

OS: Win 10/Mac/Linux
Vscode: 1.51.1
Vscode java project manager: 0.15.0

Actual:

this is in falt view, this is by design

This is because the change will not be consumed by the Java Language Server.
One way to update it is trigger the command Java: Clean Java Language Server Workspace  and restart to invalidate the cache.


Remove javax servlet based Web Applications Specification

Should we drop https://docs.osgi.org/specification/osgi.cmpn/8.0.0/service.war.html#service.war for the 8.1 release?
With the update of the servlet whiteboard specification to Jakarta and the removal of http.service, I think we should also remove this specification from the release. Especially, as it is for example not possible to implement it with some of the Jakarta EE based servlet containers.
(Note: removing a spec from an upcoming release does not mean that the spec stops existing, it is just an indication that there will be no updates anymore to it)

I pinged the pax-web people here:

https://github.com/ops4j/org.ops4j.pax.web/issues/1790

as I know they are quite active in that area an might want to help / participate here!

First, let me add a reference to my related questions in FELIX-6574.
Responding to ops4j/org.ops4j.pax.web#1790, my first rough answer would be - let's keep the chapter 128 with minor changes:

replace JavaEE references with JakartaEE ones
rewrite Table 128.1 Dependency versions to match JakartaEE 9+

Besides that there's nothing to change in chapter 128, as there's no API exposed.
Pax Web 8 was indeed quite a big refactoring of previous versions (mostly due to Whiteboard specification). Initially I thought that JavaEE8 → JakartaEE 9 migration would be very very tough for entire OSGi CMPN, mostly because OSGi is expected to be quite conservative and supporting older versions - and I couldn't imagine handling HttpService (Chapter 102) both for javax.servlet and jakarta.servlet.
However, now that Chapter 102 is gone, I can imagine Pax Web 10, which supports:

Jetty 11
Tomcat 10
Undertow 2.2, JakartaEE 9 edition

If I could join the meeting at wed nov 23 17:00 GMT+1, it'd be great.

Responding to ops4j/org.ops4j.pax.web#1790, my first rough answer would be - let's keep the chapter 128 with minor changes:
* replace JavaEE references with JakartaEE ones

* rewrite _Table 128.1 Dependency versions_ to match JakartaEE 9+

Besides that there's nothing to change in chapter 128, as there's no API exposed.

In addition to these suggested spec changes, we will then need a new compatible implementation which supports the Jakarta Servlet API and to update the TCK for the Jakarta Servlet API. The current implementation is a rather old one based upon the Eclipse Gemini project which is being terminated.
So we will need help with the implementation and TCK updates.

So we will need help with the implementation and TCK updates.

Could Pax Web be a candidate for Chapter 128 RI? Is felix.http implementing this specification (afaik - it's not)?
About TCK - I remember once I tried to look around it, but I had hard time running it - I didn't even manage to start testing Pax Web using it ;) Maybe I'll need a second look.

Could Pax Web be a candidate for Chapter 128 RI?

I think so since it is available under AL2. I assume the artifacts are available from Maven Central.

Is felix.http implementing this specification (afaik - it's not)?

I don't believe it does.

About TCK - I remember once I tried to look around it, but I had hard time running it

In the build, you can use the testOSGi gradle task to run the TCK in development mode.

Jetty 9 supported it. I tried that with the bnd -wab instruction and it
worked.
I gave it a try with the Jetty 11 Felix WAB dont work anymore, but in
plain Jetty 11 WAB still works with jakarta.servlet.
There is still documentation to be migrated:
https://www.eclipse.org/jetty/documentation/jetty-11/old_docs/index.html#_support-for-the-osgi-service-platform-enterprise-specification
Regards,
Mark
Am 09.11.22 um 18:30 schrieb Grzegorz Grzybek:

So we will need help with the implementation and TCK updates.

Could Pax Web be a candidate for Chapter 128 RI? Is felix.http
implementing this specification (afaik - it's not)?
About TCK - I remember once I tried to look around it, but I had hard
time running it - I didn't even manage to start testing Pax Web using
it ;) Maybe I'll need a second look.
—
Reply to this email directly, view it on GitHub
https://github.com/osgi/osgi/issues/499#issuecomment-1309098491, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AB6R22AMN7B6GT2Y2DJIKRTWHPNR3ANCNFSM6AAAAAARQ5EHAE.
You are receiving this because you are subscribed to this
thread.Message ID: @.***>

--
Mark Hoffmann
M.A. Dipl.-Betriebswirt (FH)
Geschäftsführer
Tel:    +49 3641 384 910 0
Mobil:  +49<PHONE_NUMBER>
@.***
Web:www.datainmotion.de
Data In Motion Consulting GmbH
Kahlaische Straße 4
07745 Jena
Geschäftsführer
Mark Hoffmann
Jürgen Albert
Jena HRB 513025
Steuernummer 162/107/05779
USt-Id DE310002614

Jetty 9 supported it. I tried that with the bnd -wab instruction and it worked.

Interesting - I didn't know about this...

Apache Felix Http Jetty 4.x supports the current specification (javax.servlet based). Starting with version 5 the switch to Jetty 11 makes it hard to implement. If the specification gets updated to jakarta.servlet, we might add the support for it back if users demand it.

We agreed to defer removal until a later compendium release in the hope that the PAX-Web team is able to contribute to modernize the spec, TCK and compatible implementation for Jakarta.

I can't promise anything before end of 2022, I first have to get used to the bnd workspaces used across osgi/osgi project.
However I want to help here and do two things at the same time:

have a proof that I managed to get at least ~90% compliance with Whiteboard R6+ in Pax Web 8+
try to use Pax Web as implementation in https://github.com/osgi/osgi/blob/main/cnf/repo/org.osgi.impl.bundle.webcontainer/org.osgi.impl.bundle.webcontainer-7.0.0.lib

Is there any progress on this - or meetings planned on this strategy?

At least there is the OSGi Servlet Whiteboard with Jakarta Servlet Support:
https://docs.osgi.org/specification/osgi.cmpn/8.1.0/service.servlet.html
Works with:
Felix Http Jetty

@ecki could you please explaine what your goal is?


CB-2907 fix keytab vault path and improve logging

Yes, thanks for the feedback everyone. We'll address these in a separate PR just to unblock everyone.


Proposal - IBM Watson (Independent Publisher)

When submitting a connector, please make sure that you follow the requirements below, otherwise your PR might be rejected. We want to make you have a well-built connector, a smooth certification experience, and your users are happy :)
If this is your first time submitting to GitHub and you need some help, please sign up for this session.

[ ] I attest that the connector doesn't exist on the Power Platform today. I've verified by checking the pull requests in GitHub and by searching for the connector on the platform or in the documentation.
[ ] I attest that the connector works and I verified by deploying and testing all the operations.
[ ] I attest that I have added detailed descriptions for all operations and parameters in the swagger file.
[ ] I attest that I have added response schemas to my actions, unless the response schema is dynamic.
[ ] I validated the swagger file, apiDefinition.swagger.json, by running paconn validate command.
[ ] If this is a certified connector, I confirm that apiProperties.json has a valid brand color and doesn't use an invalid brand color, #007ee5 or #ffffff. If this is an independent publisher connector, I confirm that I am not submitting a connector icon.

If you are an Independent Publisher, you must also attest to the following to ensure a smooth publishing process:

[ ] I have named this PR after the pattern of "Connector Name (Independent Publisher)" ex: HubSpot Marketing (Independent Publisher)
[ ] Within this PR markdown file, I have pasted screenshots that show: 3 unique operations (actions/triggers) working within a Flow. This can be in one flow or part of multiple flows. For each one of those flows, I have pasted in screenshots of the Flow succeeding.
[ ] Within this PR markdown file, I have pasted in a screenshot from the Test operations section within the Custom Connector UI.
[ ] If the connector uses OAuth, I have provided detailed steps on how to create an app in the readme.md.

Hello @IvanLeong03,
Thank you so much for your new proposal submission. We are looking forward to seeing your connector artifacts soon.
May I ask you to confirm if you are a student?
Please let us know if you have any questions.
Thank you so much again for working with us.

Yes, I am a student

Hello @IvanLeong03,
I hope you are doing well.
I am following up with you to see how things are going with preparing your connector.
Please let us know if you have any questions.
Thank you.

Closing this PR since we have a new one https://github.com/microsoft/PowerPlatformConnectors/pull/2189


[Testerina] Support mock object reset functionality

Description:
Support mock object reset functionality for object mocking.
Use case: If one needs to set the mock behavior prior to a test case and reset it for other cases, the current mocking implementation doesn't support it.
Steps to reproduce:
Affected Versions:
OS, DB, other environment details and versions:
Related Issues (optional):

Suggested Labels (optional):

Suggested Assignees (optional):

The test framework has before and after methods that can be used to achieve this


metadata: update location

The repo was moved from mylesborins/proposal-top-level-await to tc39/proposal-top-level-await, the old GitHub Pages link no longer works.

/cc @MylesBorins.