Disable line wrap

#980

Didn't mean to duplicate comments. That's an odd behavior of GitHub :thinking: :laughing:

Thanks for the review @spenserblack
I didn't expect this issue to be resolved with a one-line PR. 😅

Just thought of something: how does Ctrl+C handle this? If onefetch is taking a long time (like in a massive repo) a user might try to terminate the process. Could that potentially leave the terminal in a "no wrap" state?

That's a good point. But since we disable line wrapping only after generating the output, we should be fine. If the user decides to halt the program, it is likely to happen during the commit traversal or language stat computation stages.


Hikey960 hangs when writing ptable.

Regarding the steps for releaving a booting process loop, when removing the 3-4 pin after the hikey_idt config command when specifically should i power cycle the device? I have tried a few different ways and non are successfuly flashing the device with the base image files. There is a section in the doc labeled "flash images by bootloader", is that process one I can try to fix a booting loop?

booting loop? Please share your log to us.

I may have incorrectly flashed an AOSP image with some code for kernel security hardening.
I believe this is the log for one loop:
dump_stack begin:
cmd_process: [fdt_next_tag]:
pc: 000000001ad214cc sp: 000000001afbfd10
cmd_process: [fdt_next_node]:
pc: 000000001ad21650 sp: 000000001afbfd60
cmd_process: [load_nomap_mem_config]:
pc: 000000001ad46128 sp: 000000001afbfda0
cmd_process: [load_teeos_init]:
pc: 000000001ad990a0 sp: 000000001afbff10
cmd_process: [start_armboot]:
pc: 000000001ad9a5fc sp: 000000001afbff70
exception:
dump_stack end.
bbox: record exce_type is 0x00000075
bbox: -------show exception info begin
bbox:  modid:          [0x81fff202]
bbox:  reboot_pri:     [0x00000001]
bbox:  dump_mod_mask:  [0x0000000000000003]
bbox:  reset_mod_mask: [0x0000000000000003]
bbox:  from_module:    [0x0000000000000001]
bbox:  reentrant:      [0x0f00da01]
bbox:  exce_type:      [0x00000075]
bbox:  reserve_u64:    [0x0000000000000000]
bbox:  reserve_p:      [0x00000000]
bbox: -------show exception info end
bbox: dump module [0000000000000001] start!
bbox: modid is 0x81fff202, etype is 0x00000075, mod_group_id is 0x0000000000000001
bbox: modid:[0x81fff202], coreid:[0x0000000000000001]
bbox: bbox_dump_done current mask:[0x0000000000000001]
bbox: dump module [0000000000000001] end!
bbox: Skip module [0x0000000000000001]
bbox: bbox_notify_module_dump done. return mask=[0x0000000000000001]
bbox: current mask:[0x0000000000000001]
bbox: all dump done
bbox: save_log_to_dfx():462:storage_read fail[-1]
bbox: p_module_ops->s_mod_group_id is [0x0000000000000001]
bbox: reset module [0x0000000000000001] start!
bbox: modid is 0x81fff202, etype is 0x00000075, mod_group_id is 0x0000000000000001
bbox: reset module [0x0000000000000001] end!
bbox: -------system reset
hikey960 boarid:5301 xloader use UART6
scsysstat_value[8].
clear reset source
last_keypoint31,reboot_type117
secdbg not DCU.
SecDbgVer exit
xloader chipid is: 0x36600110, start at 478ms.
Build Date: Jun 20 2017, 20:37:08
[clock_init] ++
hikey960 [hikey960_clk_init]
hi3660 [clk_setup]
[clock_init] --
storage type is UFS
ufs retry: 6 count v_tx:0 v_rx:0
ufs set v_tx:0 v_rx:0
Hikey960[5301] no need avs_init.
ddr ft:0xf20332a3,mode:1 target:4
UceLdOk
ch 0 gt_errfail, STATUS:0x00000060
ch 0 gdst_errfail, STATUS:0x00000040
ch 1 gt_errfail, STATUS:0x00000060
ch 1 gdst_errfail, STATUS:0x00000040
ch 2 gt_errfail, STATUS:0x00000060
ch 2 gdst_errfail, STATUS:0x00000040
ch 3 gt_errfail, STATUS:0x00000060
ch 3 gdst_errfail, STATUS:0x00000040
timeout
timeout
timeout
timeout
density: 0x0c0c0c0c,0x00000000,0x0c0c0c0c,0x00000000,0x0c0c0c0c,0x00000000,0x0c0c0c0c,0x00000000
ddr info 0x00000306
400M
685M
1067M
C1R,V0x0000002d e:66
C3R,V0x0000002d e:66
C0R,V0x0000002c e:66
C1R,V0x0000002e e:66
C2R,V0x0000002d e:66
C3R,V0x0000002e e:66
C0R,V0x0000002d e:66
C1R,V0x0000002f e:66
C2R,V0x0000002e e:66
C3R,V0x0000002f e:66
C0R,V0x0000002e e:66
C1R,V0x00000030 e:65
C2R,V0x0000002f e:65
C3R,V0x00000030 e:66
1244M
1866M
C0R,V0x00000015 e:193
C0R,V0x00000016 e:66
C2R,V0x00000016 e:113
C3R,V0x00000016 e:66
C0R,V0x00000017 e:66
C2R,V0x00000017 e:66
C3R,V0x00000017 e:66
iomcu_subsys_init
boot_c0 PROFILE 4
main:     ******** Fastboot for Kirin *****************
main:   ******** Build Date: Jun  2 2017, 17:34:24 **
main: ******** Fastboot start at 1846 ms **********
main: print soc_id computed in xloader phase, is below:
main: 00000000  main: 00000000  main: 00000000  main: 00000000  main:
main: 00000000  main: 00000000  main: 00000000  main: 00000000  main:
led_alwayson: can't get dtb operators
bbox: bbox_register_module_ops success.
bfm: : >>>>>enter bfm_init
bfm: : [disable_boot_fail_system] boot_fail_system state is 0
clock: PLL Stat
clock: PLL2 ctrl0=0x04909604,ctrl1=0x02000000
clock: PLL2 acpu en_stat:0x00000008, acpu gt_stat:0x00040000
clock: PLL2 final en_stat:0x00100000, final gt_stat:0x00020000
clock: PLL3 ctrl0=0x04904005,ctrl1=0x07000000
clock: PLL3 acpu en_stat:0x00000000, acpu gt_stat:0x00000000
clock: PLL3 final en_stat:0x00200000, final gt_stat:0x00040000
clock: clock init OK
ufs: ufs start on platform[36600110]ufs: ufs current mode: 0x00000011
ufs: ufs current gear: 0x00000003
ufs: ufs mphy reg 0x4A = 0x00000000
ufs: bUD0BaseOffset: 0x00000010, bUDConfigPLength: 0x00000010
ufs: UFS device manufacturerid = 0x00000198
ufs: UFS device: T******
bfm: : >>>>>enter set_boot_stage
bfm: : bootStageCode is 0x02000001, mntnStageCode is 27
bfm: : <<<<<exit set_boot_stage.
storage: emmc_ops invalid
storage: storage type is UFS
bfm: : bfm system is disabled!
storage: emmc_init: BL2_STAGE_EMMC_OK is 33554435!
bfm: : >>>>>enter set_boot_stage
bfm: : bootStageCode is 0x02000003, mntnStageCode is 29
bfm: : <<<<>>>>enter set_boot_stage
bfm: : bootStageCode is 0x02010001, mntnStageCode is 30
bfm: : <<<<<exit set_boot_stage.
ddr: current logic version is lpddr4 verison !!!
ddr: ddr size is 3072MB
bbox: register modid [0x81fff200]
bbox: register exception succeed.
bbox: register modid [0x81fff202]
bbox: register exception succeed.
bbox: register modid [0x81fff20b]
bbox: register exception succeed.
watchdog: Enable watchdog start
boardid: [BDID]boardid: 5301
gpio: hikey960_gpio_init: GPIO 46 202 206 ouput low, GPIO 219 pullup.
load_kernel: register_update_dt_ops for usb!
usb: [USBERR]random_serial: fastboot serial:<PHONE_NUMBER>000000
secureboot: Enter secboot_init: set pll efuse flag!
secureboot: pll efuse flag has been succ set!bbox: register modid [0x81fff20a]
bbox: register exception succeed.
secureboot: SECBOOT_DEV_INFO_DADDR = 0x1d7fff00, SECBOOT_DEV_INFO_SIZE = 0x00000040!
dtimage: number of dtb = 1
dtimage: =========uncompress_dtb_addr=[0x16f00000],====vrl_addr=[0x1b0e64e0]====
dtimage: [device_tree_get_dtb_entry:215] Verify Not Exist
dtimage: fdt_init success!
dtimage: -----can not find hisilicon,fastboot node by compatible
dtimage: -----can not find hisilicon,fastboot node by compatible
load_kernel: register_update_dt_ops for led!
dtimage: -----can not find hisilicon,fastboot node by compatible
vibrator: vibrator_delay: hisilicon,fastboot motor-vib_type failed!
dtimage: -----can not find hisilicon,fastboot node by compatible
vibrator: vibrator_off: hisilicon,fastboot motor-vib_type failed!
reboot_reason: scsysstat_value is 0x00000008
pmu: can not find fastboot,hisi-pmic-mntn node1
pmu: pmu_property_read_u32 fastboot,hisi-pmic-mntn, hisilicon,data-width, failed
pmu: pmu_mntn_record_dts_parse failed!
reboot_reason: enter [check_hardware_reset]
reboot_reason: fdt_open_into failed.
reboot_reason: get_sysctrl_reason_data is error
ddr: reset dmc_rint_0:00000000
ddr: reset dmc_rint_1:00000000
ddr: reset dmc_rint_2:00000000
ddr: reset dmc_rint_3:00000000
ddr: new dmc_rint_0:00000000
ddr: new dmc_rint_1:00000000
ddr: new dmc_rint_2:00000000
ddr: new dmc_rint_3:00000000
bbox: save_tempbuffer_to_loop_area():727:storage_read fail[-1]
reboot_reason: reboot_reason is FASTBOOT_S_PANIC
reboot_reason: clear_reset_source in!
reboot_reason: tmp =0x0effcc70
dtimage: -----can not find fastboot,charger node by compatible
power: get_chargerIC_type: getU32byCompatible fastboot,charger, hw_charger_type failed!
dtimage: -----can not find fastboot,coul node by compatible
power: get_coul_type: get  coul_type failed!
power: get  coul_type failed!
power: hi6421v500 register coulometer ops fail!
dtimage: -----can not find huawei,hisi_bci_battery node by compatible
no_module: [hi6523_get_config_info]: can't get battery board type
dtimage: -----can not find fastboot,charger node by compatible
no_module: get hi6523 i2c reg num fail!
dtimage: -----can not find fastboot,charger node by compatible
no_module: [hi6523_start_charging_by_init_params]: get ichrg_pre_limit fail
dtimage: -----can not find huawei,hi6523_charger node by compatible
no_module: [hi6523_start_charging_by_init_params]: get reg fail
dtimage: -----can not find fastboot,buckboost node by compatible
max77813: get_buckboost_type: getU32byCompatible fastboot,buckboost, hw_buckboost_type failed!
max77813: get dts buckboost type fail!
cpu_buck: pmu type3 not registered
cpu_buck: Bad cpu buck info:1
bbox: fdt_open_into failed.
mntn: tele_mntn_stat_point_init: can not bbox_ops !
dtimage: -----can not find hisilicon,fastboot node by compatible
mntn: [tele_mntn_m3_wdt_config]: getU32byCompatible(hisilicon,fastboot, lpm3-board-type) error!
mntn: mntn init
mntndump: [MNTN]:fdt_open_into failed.
mntndump: mntn_dump_init failed
mntndump: get_mntn_dump_addr:mid[2] is not init
mntn: kernel dump is not available
mntn: reboot_type is 117
mntn:
no need to dump_mem...
mntn: enter [registe_pstore_ramoops_dump]
mntndump: get_mntn_dump_addr:mid[5] is not init
mntn: no mdump_pstore info
mntn: M3_RDR_SYS_CONTEXT_BASE_ADDR is null
uart_cfg: [MNTN]:fdt_open_into failed.
uart_cfg: set_default_uart_cfg: uart_from_dts_read failed!
uart_cfg: module_idx 2, uart_no 6
uart_cfg: odule_idx 11, uart_no 15
uart_cfg: module_idx 2, uart_no 6
uart_cfg: getU32byCompatible(hisilicon,fastboot, uart-board-type) error!
uart_cfg: boardid: 5301 use uart port: 6
pasr: in pasr_init-43 ...ddr: current logic version is lpddr4 verison !!!
ddr: current logic version is lpddr4 verison !!!
dtimage: -----can not find huawei,lcd_panel_type node by compatible
display: [display]get_detect_type: huawei,lcd_panel_type: get detect_type fail
display: lcd:no lcd detect_type
no_module: [LOGO] get_logo_buffer_from_dtsi: fdt_open_into failed.
no_module: [LOGO] logo_init: logo init failed!!! used the default fb addr.
display: [display]jdi_nt35696_panel_init: lcd type is not JDI_NT35696_5P5_LCD.
display: [display]jdi_otm2503b_panel_init: lcd type is not JDI_OTM2503B_5P5_LCD.
bfm: : >>>>>enter set_boot_stage
bfm: : bootStageCode is 0x02010002, mntnStageCode is 31
bfm: : <<<<<exit set_boot_stage.
dtimage: -----can not find huawei,lcd_panel_type node by compatible
display: [display]get_dts_value: can not get huawei,lcd_panel_type, bl_bus_id=4!
dtimage: -----can not find ti,lm36923 node by compatible
display: [display]get_dts_value: can not get ti,lm36923, support=0!
display: get lm36923_support failed!
Audio_codec: [audio]:fdt_open_into failed.
load_teeos: can not find fb node fingerprint
load_teeos: failed to find fb node ese_config
display: [display]hisi_get_disp_info: hisifb_data is NULL pointer, return!
exception: "Synchronous Abort" handler, esr 0x96000021
exception: ELR:     000000001ad214cc
exception: LR:      000000001ad214c8
exception: x0:<PHONE_NUMBER>f06669 x1:<PHONE_NUMBER>206669
exception: x2:<PHONE_NUMBER>206669 x3:<PHONE_NUMBER>200000
exception: x4:<PHONE_NUMBER>000066 x5:<PHONE_NUMBER>000065
exception: x6:<PHONE_NUMBER>000001 x7: 00000000ffffffc8
exception: x8: 000000001afbff10 x9: 000000001afbff10
exception: x10: 000000001ae9d000 x11:<PHONE_NUMBER>00000f
exception: x12:<PHONE_NUMBER>000006 x13: 00000000ffd72044
exception: x14: 00000000ffd72040 x15: 00000000ffd72004
exception: x16: 00000000ffd72000 x17:<PHONE_NUMBER>000000
exception: x18:<PHONE_NUMBER>000000 x19:<PHONE_NUMBER>000000
exception: x20: 000000001afbfe14 x21: 000000001afbfd9c
exception: x22:<PHONE_NUMBER>d00000 x23:<PHONE_NUMBER>000000
exception: x24: 000000001afbfe28 x25: 000000001ae1df28
exception: x26: 000000001ae03168 x27: 000000001afbfe14
exception: x28: 000000001adf8000 x29: 000000001afbfd10
exception:
dump_stack begin:
cmd_process: [fdt_next_tag]:
pc: 000000001ad214cc sp: 000000001afbfd10
cmd_process: [fdt_next_node]:
pc: 000000001ad21650 sp: 000000001afbfd60
cmd_process: [load_nomap_mem_config]:
pc: 000000001ad46128 sp: 000000001afbfda0
cmd_process: [load_teeos_init]:
pc: 000000001ad990a0 sp: 000000001afbff10
cmd_process: [start_armboot]:
pc: 000000001ad9a5fc sp: 000000001afbff70
exception:
dump_stack end.

You're using Hisilicon property bootloader. Maybe it's time to switch to ATF/UEFI now.

Your suggesting i follow the recovery-flash-uefi.sh script to restore?

As an update i tried to install via prebuilt uefi, as described in the folder "install-prebuilt-uefi", It appeared to be successful for all steps until i had to leave recovery mode to normal mode and then the same behavior as above was observed. Looking closer at some of the log does it appear y hardware is damaged? I have been careful when handling it, no observable events have occurred that would seem to have damaged it.
Same log as above:
reboot_reason: enter [check_hardware_reset] reboot_reason: fdt_open_into failed. reboot_reason: get_sysctrl_reason_data is error ddr: reset dmc_rint_0:00000000 ddr: reset dmc_rint_1:00000000 ddr: reset dmc_rint_2:00000000 ddr: reset dmc_rint_3:00000000 ddr: new dmc_rint_0:00000000 ddr: new dmc_rint_1:00000000 ddr: new dmc_rint_2:00000000 ddr: new dmc_rint_3:00000000 bbox: save_tempbuffer_to_loop_area():727:storage_read fail[-1] reboot_reason: reboot_reason is FASTBOOT_S_PANIC reboot_reason: clear_reset_source in! reboot_reason: tmp =0x0effcc70 dtimage: -----can not find fastboot,charger node by compatible  power: get_chargerIC_type: getU32byCompatible fastboot,charger, hw_charger_type failed! dtimage: -----can not find fastboot,coul node by compatible  power: get_coul_type: get  coul_type failed! power: get  coul_type failed! power: hi6421v500 register coulometer ops fail! dtimage: -----can not find huawei,hisi_bci_battery node by compatible  no_module: [hi6523_get_config_info]: can't get battery board type dtimage: -----can not find fastboot,charger node by compatible  no_module: get hi6523 i2c reg num fail! dtimage: -----can not find fastboot,charger node by compatible  no_module: [hi6523_start_charging_by_init_params]: get ichrg_pre_limit fail dtimage: -----can not find huawei,hi6523_charger node by compatible  no_module: [hi6523_start_charging_by_init_params]: get reg fail dtimage: -----can not find fastboot,buckboost node by compatible  max77813: get_buckboost_type: getU32byCompatible fastboot,buckboost, hw_buckboost_type failed! max77813: get dts buckboost type fail! cpu_buck: pmu type3 not registered cpu_buck: Bad cpu buck info:1

It's the same log of Hisilicon property bootloader. It's not the log of ATF/UEFI.
When you download images into the hardware in recovery mode, you need to run "fastboot flash" commands to burn l-loader.bin & fip.bin first. You need to reference the scripts, "recovery-flash-uefi.sh".

I referenced the "recovery-flash-uefi.sh" and performed the following:

sudo ./hikey_idt -c ./config -p /dev/ttyUSB0

Config name: ./config
Port name: /dev/ttyUSB0
0: Image: hisi-sec_usb_xloader.img Downalod Address: 0x20000
1: Image: hisi-sec_uce_boot.img Downalod Address: 0x6a908000
2: Image: recovery.bin Downalod Address: 0x1ac00000
Serial port open successfully!
Start downloading<EMAIL_ADDRESS>file total size 99584
downlaod address 0x20000
Finish downloading
Start downloading<EMAIL_ADDRESS>file total size 23680
downlaod address 0x6a908000
Finish downloading
Start downloading<EMAIL_ADDRESS>file total size 1179648
downlaod address 0x1ac00000
Finish downloading

fastboot flash fastboot ./l-loader.bin

target reported max download size of 134217728 bytes
sending 'fastboot' (25 KB)...
OKAY [  0.008s]
writing 'fastboot'...
FAILED (remote: No such partition.)
finished. total time: 0.011s

fastboot flash ptable ./prm_ptable.img

target reported max download size of 134217728 bytes
sending 'ptable' (24 KB)...
OKAY [  0.008s]
writing 'ptable'...

It has been writing the 'ptable' for 5 hours

Yes, flashing the ptable is always as far as i can make it. I have discovered how to access the Android Fastboot boot manager menu through the serial line that my serial board provides if that can be helpful for me...

Could you help to check whether you're fetching the latest code of all repositories? Or, you can use the prebuilt binaries to test first. (https://snapshots.linaro.org/96boards/reference-platform/components/uefi-staging/latest/hikey/release/) Now the latest one is build #70.

I remember downloading the #70 build but my folder contained hisi_idt binaries not hisi-idt.py. It was also missing the ptable-aosp-4g.img / ptable-aosp-8g.img. I will try this idt version and ptable image in a few hours. Thanks for the link.
Where can i determine which filesystem my hikey has? 4gb or 8gb?

Oh, you're running on HiKey960. I'm sorry to give the wrong link. The right one is at here. (https://snapshots.linaro.org/96boards/reference-platform/components/uefi-staging/latest/hikey960/release/)

After correctly setting up recovery mode and ttyUSB0 and ttyUSB1 for OTG i run:
sudo ./hikey_idt -c config -p /dev/ttyUSB1
Using picocom reading ttyUSB0 i get:

hikey960 boarid:5301 xloader use UART6
scsysstat_value[0].
clear reset source
last_keypoint0,reboot_type0
secdbg not DCU.
SecDbgVer exit
xloader chipid is: 0x36600110, start at 122452ms.
Build Date: Dec  6 2017, 15:31:59
[clock_init] ++
hikey960 [hikey960_clk_init]
hi3660 [clk_setup]
[clock_init] --
storage type is UFS
ufs retry: 6 count v_tx:0 v_rx:0
ufs set v_tx:0 v_rx:0
UfsLuInit ret:0
UsbMode, nvData invalid
rtc_nve_read failed !
Hikey960[5301] no need avs_init.
ddr ft:0xf20332a3,mode:1 target:4
[USBI]driver init:0003e800 0003f840 00000000
[USBI]download start! total_frame:24
+1	0|+2	0|+3	0|+4	0|+5	0|+6	0|+7	0|+8	0|+9	0|+10	0|+11	0|+12	0|+13	0|+14	0|+15	0|+16	0|+17	0|+18	0|+19	0|+20	0|+21	0|+22	0|+23	0|+24	0|
[USBI]expected:23680, received:23680 (bytes)
[USBI]download suc
UceLdOk
ch 0 gt_errfail, STATUS:0x00000060
ch 0 gdst_errfail, STATUS:0x00000040
ch 1 gt_errfail, STATUS:0x00000060
ch 1 gdst_errfail, STATUS:0x00000040
ch 2 gt_errfail, STATUS:0x00000060
ch 2 gdst_errfail, STATUS:0x00000040
ch 3 gt_errfail, STATUS:0x00000060
ch 3 gdst_errfail, STATUS:0x00000040
timeout
timeout
timeout
timeout
density: 0x0c0c0c0c,0x00000000,0x0c0c0c0c,0x00000000,0x0c0c0c0c,0x00000000,0x0c0c0c0c,0x00000000
ddr info 0x00000306
400M
685M
1067M
C0R,V0x0000002c e:66
C1R,V0x0000002d e:66
C2R,V0x0000002d e:66
C3R,V0x0000002d e:66
C0R,V0x0000002d e:66
C1R,V0x0000002e e:66
C2R,V0x0000002e e:66
C3R,V0x0000002e e:66
C0R,V0x0000002e e:66
C1R,V0x0000002f e:66
C2R,V0x0000002f e:65
C3R,V0x0000002f e:66
C0R,V0x0000002f e:65
C1R,V0x00000030 e:65
C2R,V0x00000030 e:65
C3R,V0x00000030 e:66
1244M
1866M
C0R,V0x00000015 e:193
C3R,V0x00000015 e:113
C0R,V0x00000016 e:66
C3R,V0x00000016 e:66
C0R,V0x00000017 e:66
C2R,V0x00000017 e:66
C3R,V0x00000017 e:66
UsbMode, nvData invalid
UsbMode, nvData invalid
UsbMode, nvData invalid
[USBI]driver init:0003e800 0003f840 00000000
[USBI]download start! total_frame:1152
+1	0|+2	0|+3	0|+4	0|+5	0|+6	0|+7	0|+8	0|+9	0|+10	0|+11	0|+12	0|+13	0|+14	0|+15
0|+16	0|+17	0|+18	0|+19	0|+20	0|+21	0|+22	0|+23	0|+24	0|+25
DOWNLOADING
0|+1150	0|+1151	0|+11520|
[USBI]expected:1179648, received:1179648 (bytes)
[USBI]download suc
iomcu_subsys_init
boot_c0 PROFILE 4
slave0 irq0:0x00000004
slave1 irq0:0x00000004
NOTICE:  Booting Trusted Firmware
NOTICE:  BL1: v1.5(release):v1.5-149-gda9d1d59
NOTICE:  BL1: Built : 13:29:43, May 14 2018
NOTICE:  BL1-FWU: FWU Process Started
UEFI firmware (version Alpha built at 13:29:12 on May 14 2018)
WARNING: CAN NOT BOOT KERNEL IN RECOVERY MODE!
Switch to normal boot mode, then reboot to boot kernel.
Press ESCAPE for boot options .Android Fastboot mode - version 0.7.
Press RETURN or SPACE key to quit.

But then again i attempt to flash the ptable and fails:
fastboot flash ptable prm_ptable.img
ttyUSB0:

Downloading 24576 bytes
24576 /    24576 bytes downloaded (100%)
Flashing partition ptable
Synchronous Exception at 0x0000000000000000

ttyUSB1:

target reported max download size of 134217728 bytes
sending 'ptable' (24 KB)...
OKAY [  0.008s]
writing 'ptable'...

How many boards do you have? Do you have the same issue on other boards?

We have two identical boards, the other one is able to be recovered.

Up to now, I doubt it's a hardware issue. Since we don't have the synchronous exception issue in recovery mode.

Other guy is also reporting this issue. Maybe there's something wrong in UFS driver. Need to investigate it.

Could you help to check what the difference on the two boards? vendors on UFS chips?

It is a LeMaker Hikey960 (specifies Ver.B on the board), 4 cortex A73 + 4 cortex A53 Big.Little CPU architecture, ARM Mali G71 MP8 GPU

SOLVED:
https://discuss.96boards.org/t/board-stuck-in-fastbooting-loop-solved/4770

Could you help to format a patch?

Hi , i  did  as  Erik-Koning said ,  all was ok before echo “Sleeping till device resets… zzz” sleep 15
and after that always show  < waiting for device >  , unable to fastboot  fastboot flash ptable prm_ptable.img fastboot flash xloader hisi-sec_xloader.img fastboot flash fastboot l-loader.bin fastboot flash fip fip.bin

@mpadiy Sorry for the late respone.
Ive had that issue too, I found restarting the device in recovery-mode, and then running either the recovery-flash-uefi.sh, or the recovery-flash.sh script for whatever reason cleared out the device rom memory so i was able to go back and try the "install-prebuilt-uefi" step again.
Im not sure why this procedure was necessary, but for me it fixed the device from being stuck waiting for devices.

Refined instructions:
If the board experiences an interrupt when flashing or a mysterious event occurs that causes the board to software brick, the boards base firmware/UEFI must be flashed before an OS can be flashed.
The following steps restored a software bricked Hikey960 that was observed to be in a fastboot booting-loop, back to being flashed with AOSP source code, and a fastboot boot rom:
git clone https://github.com/96boards-hikey/tools-images-hikey960.git
Place the board into recovery mode.
Switch 1 : ON
Switch 2 : ON
Switch 3 : OFF
Connect the type C USB cable to the host and board and make sure it is configured as ttyUSB1 (dmesg or observe the /dev directories when type C connected). Power on board.
cd tools-images-hikey960/install-prebuilt-uefi
sudo ./hikey960-efi-prebuilt.sh -r -v 57
The above line downloads & installs the uefi on the board, the board will then be in an android fastboot mode and 4 partitions are flashed.
Note: 57 is the version of UEFI released by Linaro so make sure you download the correct one.
It might change over a period of time, but most older versions should be compatible.
If the board is hung waiting for devices, restart in recovery mode and run the recovery-flash.sh (non-uefi) script to overwrite old memory before rebooting, and trying step 5 again.
Power off the board and place the board into fastboot mode.
Switch 1 : ON
Switch 2 : OFF
Switch 3 : ON
Configure environment, config files if desired (see here for hdmi display config), and build a complete android kernel's .img files.
Use this script:
#!/bin/bash
INSTALLER_DIR="dirname ${0}"
for cases that don't run "lunch hikey960-userdebug"
if [ -z "${ANDROID_BUILD_TOP}" ]; then
ANDROID_BUILD_TOP=${INSTALLER_DIR}/../../../../../
ANDROID_PRODUCT_OUT="${ANDROID_BUILD_TOP}/out/target/product/hikey960"
fi
if [ ! -d "${ANDROID_PRODUCT_OUT}" ]; then
echo "error in locating out directory, check if it exist"
exit
fi
echo "android out dir:${ANDROID_PRODUCT_OUT}"
fastboot flash fastboot "${INSTALLER_DIR}"/fastboot.img
fastboot flash nvme "${INSTALLER_DIR}"/nvme.img
fastboot flash fw_lpm3   "${INSTALLER_DIR}"/lpm3.img
fastboot flash trustfirmware   "${INSTALLER_DIR}"/bl31.bin
fastboot flash boot "${ANDROID_PRODUCT_OUT}"/boot.img
fastboot flash dts "${ANDROID_PRODUCT_OUT}"/dt.img
fastboot flash system "${ANDROID_PRODUCT_OUT}"/system.img
#fastboot flash vendor "${ANDROID_PRODUCT_OUT}"/vendor.img
fastboot flash cache "${ANDROID_PRODUCT_OUT}"/cache.img
fastboot flash userdata "${ANDROID_PRODUCT_OUT}"/userdata.img
to flash the AOSP fastboot and image files to bring back original flashing functionality.
Note: Make sure the scripts path variables are configured correctly to point to the relevant image files. for a linaro kernel you may want to put this script with the other flash-all.sh script found in "/device/linaro/hikey/installer/hikey960".
place the board into run-mode, connect HDMI, and power on board.

@Erik-Koning Could you help to format a patch on it? Then we could merge your patch.


Login Only Not Allowed

When using the plugin, I am unable to make it perform a 'login only' function. I have looked at a few other issues related to this (#4 and #48) but it still doesn't appear to be resolved even though these issues are closed.
When I enable the WordPress setting 'Anyone can register' then the plugin allows users who have never logged into WordPress via Auth0 to login successfully, but when this is disabled then I get the error reported in #48 (Error: Could not create user. The registration process is not available.)
What I want is to allow only users who already exist in Auth0 (their accounts were created elsewhere) to be able to log in to the site. Is this possible? I have already tried changing the 'Auto Provisioning' setting (which IMO should allow what I want) but it doesn't help.
Thanks

I changed the behavious of the auto provisioning toggle to handle this use case. When anyone can register is disabled, auto provisioning will allow to create new users only on login.
I will be releasing the new version with this by EOW

Great, thanks. Look forward to testing it.

I will release 3.2.5 in a couple of hours. I am closing this one but reopen after the update if you need.

Not sure whether this is a separate issue or not but here's my scenario.
The fix worked perfectly - now if I disable registrations and an existing Auth0 user logs in, the 'WordPress' user is created automatically.
However, I'm using another plugin on the site called 'WP Full Stripe Members' which integrates with Stripe (for payments) but also creates/uses the users in WordPress to associate to customers in Stripe. The issue is that if a WordPress user exists in the site with the same email address as a user in Auth0, when that user logs in I would like them to be 'merged' (i.e. the WordPress user 'becomes' the Auth0 user) rather than what happens currently (they get a message saying email address in use).
Is this possible? Thanks

The users get merged only if the user is flagged as verified on Auth0. I think your used did not verified the email so the plugin by default will reject the merge since it can not trust the user. You can disable this on the plugin settings, under advanced disable require verified emails.

OK, so that led me to the solution, but it wasn't quite as you describe. The user wasn't email verified, but changing the require verified emails setting still didn't allow them to log in (still got the message saying email address is in use). When I set require verified emails on, it gave the correct message (you need to verify your email).
I then verified the email in Auth0, and the user can then login immediately. It never seems to allow users to be merged if their email is not verified (which I agree with) but the message is misleading (saying the email is in use when really they need to verify so the merge can happen).
I think the workaround in my scenario is to always require verified emails (so that if they're either new or merging, it will work) but just wanted to flag the message as being a little confusing.
Thanks for the quick fix on the REAL issue though...that was a deal-breaker and we can make it work now! :)

OK, so that led me to the solution, but it wasn't quite as you describe. The user wasn't email verified, but changing the require verified emails setting still didn't allow them to log in (still got the message saying email address is in use). When I set require verified emails on, it gave the correct message (you need to verify your email).
I then verified the email in Auth0, and the user can then login immediately. It never seems to allow users to be merged if their email is not verified (which I agree with) but the message is misleading (saying the email is in use when really they need to verify so the merge can happen).
I think the workaround in my scenario is to always require verified emails (so that if they're either new or merging, it will work) but just wanted to flag the message as being a little confusing.
Thanks for the quick fix on the REAL issue though...that was a deal-breaker and we can make it work now! :)

I wait, I mixed stuff. This happens when the user is already merged. Check if there is a button in the user profile to delete the auth0 info.
You can merge a wp user with more than one auth0 users. For example, if you use user/password and facebook this could happen


New Shopify design

First of all, thank you so much for creating UptownCSS! It's really useful when you don't use React and hance can't use the official Polaris library.
Shopify has launched a new look and feel of the admin panel. Do you plan to update the UptownCSS to match the new design?

Polaris update notes. React part was released on Jan 27th, 2021 so the design is probably stable enough to update to now. I like that it's actually quite generic "modern app" and doesn't have a lot of Shopify-specific designs.

Polaris update notes. React part was released on Jan 27th, 2021 so the design is probably stable enough to update to now. I like that it's actually quite generic "modern app" and doesn't have a lot of Shopify-specific designs.


Error with other clients

If I use a client like "Cosmic Client" the tab appears in red ..

This is because of the ping value being -1 by default to remove ping from tab on Lunar Client, you could set the ping value to 0. There's a method in the TabElement class to set the ping value (TabElement#add(x, y, text, ping).


Some suggestions for improvement

Just wanted to let you know that it's possible to pass custom metadata when streaming now (so you don't have to patch internals of pyatv to do that). The documentation is here:
https://pyatv.dev/development/stream/#custom-metadata
I also suggest that you run ffmpeg the way I'm doing here (to stay in asyncio land):
https://pyatv.dev/development/stream/#stream-a-file

Thanks, @postlund  - will migrate to latest pyatv!

Great! I'm gonna extend the custom metadata support with an "override missing" flag as well (I'll start working on it now). It will allow you to use the metadata provided from a file or (radio) stream if present, but fall back to static metadata in case no metadata exists or extraction fail. So hopefully you will be able to present correct radio metadata. I'll see if I can work on artwork later as well.

I added support for artwork and made it possible to only override metadata in case it's not present in the stream. Everything is part of the 0.13.2 release.


InfluxDB adds to each measurement device_frmpayload_data_

All of our measurement results stored in InfluxDB contains the device_frmpayload_data_ prepended.
I think that occurs on this line.
What is the reason for prepending this string?

There is also a device_status_ prefix. The device_frmpayload_data_ is there to make it explicit where the data comes from.

Thank you for the answer. What do you think about an interface to let the user determine the prepend (or empty) string for it?

If not needed, I would like to avoid this, as this is the documented behavior: https://www.chirpstack.io/docs/chirpstack/integrations/influxdb.html.
What would be the "win" to make this configurable?

Definitely not needed, it is  a nice to have. At a higher user level I do not care about the device_frmpayload_data_temperature only about temperature. We could keep the default prefix device_frmpayload_data_ if not specified by the user. But I do not know if that will have any significant side effects.
We can also solve the renaming at the database level, so if you don't think this worthwhile you can close the issue.

I will close this issue as I do not really see a need for now and it would only add additional complexity.


Add ranking.php?

Maybe we can add Ranking.php
It's useful. And mode daily monthly weekly
They don't need login except r18 mode
Thanks!

looks like possible using their api
https://www.pixiv.net/ranking.php?p=1&format=json
https://www.pixiv.net/ranking.php?mode=daily&date=20220104&p=2&format=json
https://www.pixiv.net/ranking.php?mode=daily_r18&p=1&format=json
https://www.pixiv.net/ranking.php?mode=daily&date=20220104&p=2&format=json
Filtering need to be done on application, not sure if needed as the UI doesn't expose this yet.

looks like normal daily ranking is limited to 500 post (5 pages) and R-18 daily ranking is limited to 100 posts (2 pages).

https://www.pixiv.net/ranking.php?mode=weekly&p=2&format=json
https://www.pixiv.net/ranking.php?mode=monthly&p=2&format=json
https://www.pixiv.net/ranking.php?mode=rookie&p=2&format=json
https://www.pixiv.net/ranking.php?mode=original&p=2&format=json
https://www.pixiv.net/ranking.php?mode=male&p=2&format=json
https://www.pixiv.net/ranking.php?mode=female&p=2&format=json
https://www.pixiv.net/ranking.php?mode=weekly_r18&p=2&format=json
https://www.pixiv.net/ranking.php?mode=male_r18&p=2&format=json
https://www.pixiv.net/ranking.php?mode=female_r18&p=2&format=json

additional information:

https://www.pixiv.net/ranking.php?mode=daily&content=illust&date=20220105&p=2&format=json
https://www.pixiv.net/ranking.php?mode=daily&content=ugoira&date=20220105&p=2&format=json
https://www.pixiv.net/ranking.php?mode=daily&content=manga&date=20220105&p=2&format=json


A spelling mistake

In this file: https://github.com/google/material-design-lite/blob/d27f47fd2811ff4139794e1ba899c7add40072a5/src/data-table/README.md

I think it should be changed to "mdl-data-table__header--sorted-descending".

Fixed via commit f99892cbb1ec5691b906ea5a779762a3652b28d2. Thanks for the issue!


Omitted elements when unmarshalling types with same name in different namespaces

Hi,
I use Jsonix with a big collection of schemas. I create a mapping module for each xsd where an xml will be instantiated from. Those xsd import "common" xsd files, and sometime they use a type with the same name in different common xsd (so in different namespaces) and in those case the unmarshalled json will have omitted elements in the elements of the name that are common.
For example a schema A imports schemas B and C (of namespaces b and c) and both contains a type of name "CommonType", schema A uses both b:CommonType and c:CommonType. b:CommonType have the elements "Common" and "B" and c:CommonType have the elements "Common" and "C" . So it seems the unmarshalled json will contain the Common node in b:CommonType and  c:CommonType, elements but not their exclusive elements "B" and "C".
So if type have the same name in different namespace, it seems jsonix can't disambiguate them.
I am trying to create a simple reproducible example I can share; but maybe I just did something wrong with the mapping or config.
Thanks.

May be related to #50.
Normally the mapping should refer to B.CommonType or C.CommonType, so it should not be ambiguous. But mayber something's wrong. Please try to create a reproducible test case, this would be helpful.

Hi, here is an example, ground.xsd imports house.xsd and garden.xsd schemas, where in each there is a LocaType type in their own namespace. Then there is the ground.xml instance as an input, ground.json the unmarshalled json and groudroundtrip.xml as the output of unmarshalling and marshalling.
ground.xsd :
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
    xmlns:ns1="hieu_a" xmlns:h1="urban" xmlns:h2="rural">

    <xs:import namespace="urban" schemaLocation="./house.xsd"/>
    <xs:import namespace="rural" schemaLocation="./garden.xsd"/>

    <xs:element name="Root">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="House">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="id" type="xs:int"/>
                            <xs:element name="localisation" type="h1:LocaType"/>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <xs:element name="Garden">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="id" type="xs:int"/>
                            <xs:element name="localisation" type="h2:LocaType"/>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
</xs:schema>

house.xsd :
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
    targetNamespace="urban" xmlns:ns1="urban">

    <xs:element name="localisation" type="ns1:LocaType"> </xs:element>
    <xs:complexType name="LocaType">
        <xs:sequence>
            <xs:element name="name" type="xs:string"/>
            <xs:element name="oldName" type="xs:string"/>
            <xs:element name="streetName" type="xs:string"/>
        </xs:sequence>
    </xs:complexType>
</xs:schema>

garden.xsd :
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
    targetNamespace="rural" xmlns:ns2="rural">

    <xs:element name="localisation" type="ns2:LocaType"> </xs:element>
    <xs:complexType name="LocaType">
        <xs:sequence>
            <xs:element name="name" type="xs:string"/>
            <xs:element name="swingCount" type="xs:int"/>
            <xs:element name="kennelCount" type="xs:int"/>
        </xs:sequence>
    </xs:complexType>
</xs:schema>

ground.xml :
<?xml version="1.0" encoding="utf-8"?>
<Root
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="./ground.xsd">
    <House>
        <id>
            1
        </id>
        <localisation>
            <name>
                Kleber
            </name>
            <oldName>
                Kleb
            </oldName>
            <street>
                MainStreet
            </street>
        </localisation>
    </House>
    <Garden>
        <id>
            2
        </id>
        <localisation>
            <name>
                Versailles
            </name>
            <swingCount>
                3
            </swingCount>
            <kennelCount>
                5
            </kennelCount>
        </localisation>
    </Garden>
</Root>

ground.json
{
  "name": {
    "namespaceURI": "",
    "localPart": "Root",
    "prefix": "",
    "key": "Root",
    "string": "Root"
  },
  "value": {
    "TYPE_NAME": "ground.Root",
    "house": {
      "TYPE_NAME": "ground.Root.House",
      "id": 1,
      "localisation": {
        "TYPE_NAME": "ground.LocaType"
      }
    },
    "garden": {
      "TYPE_NAME": "ground.Root.Garden",
      "id": 2,
      "localisation": {
        "TYPE_NAME": "ground.LocaType"
      }
    }
  }
}

groudroundtrip.xml :
<Root>
    <House>
        <id>1</id>
        <localisation/>
    </House>
    <Garden>
        <id>2</id>
        <localisation/>
    </Garden>
</Root>

ground.js:
var ground_Module_Factory = function () {
  var ground = {
    name: 'ground',
    typeInfos: [{
        localName: 'Root.House',
        propertyInfos: [{
            name: 'id',
            elementName: {
              localPart: 'id'
            },
            typeInfo: 'Int'
          }, {
            name: 'localisation',
            elementName: {
              localPart: 'localisation'
            },
            typeInfo: '.LocaType'
          }]
      }, {
        localName: 'LocaType',
        propertyInfos: [{
            name: 'name',
            elementName: {
              localPart: 'name',
              namespaceURI: 'urban'
            }
          }, {
            name: 'oldName',
            elementName: {
              localPart: 'oldName',
              namespaceURI: 'urban'
            }
          }, {
            name: 'streetName',
            elementName: {
              localPart: 'streetName',
              namespaceURI: 'urban'
            }
          }]
      }, {
        localName: 'Root',
        propertyInfos: [{
            name: 'house',
            elementName: {
              localPart: 'House'
            },
            typeInfo: '.Root.House'
          }, {
            name: 'garden',
            elementName: {
              localPart: 'Garden'
            },
            typeInfo: '.Root.Garden'
          }]
      }, {
        localName: 'LocaType',
        propertyInfos: [{
            name: 'name',
            elementName: {
              localPart: 'name',
              namespaceURI: 'rural'
            }
          }, {
            name: 'swingCount',
            elementName: {
              localPart: 'swingCount',
              namespaceURI: 'rural'
            },
            typeInfo: 'Int'
          }, {
            name: 'kennelCount',
            elementName: {
              localPart: 'kennelCount',
              namespaceURI: 'rural'
            },
            typeInfo: 'Int'
          }]
      }, {
        localName: 'Root.Garden',
        propertyInfos: [{
            name: 'id',
            elementName: {
              localPart: 'id'
            },
            typeInfo: 'Int'
          }, {
            name: 'localisation',
            elementName: {
              localPart: 'localisation'
            },
            typeInfo: '.LocaType'
          }]
      }],
    elementInfos: [{
        elementName: {
          localPart: 'localisation',
          namespaceURI: 'urban'
        },
        typeInfo: '.LocaType'
      }, {
        elementName: {
          localPart: 'Root'
        },
        typeInfo: '.Root'
      }, {
        elementName: {
          localPart: 'localisation',
          namespaceURI: 'rural'
        },
        typeInfo: '.LocaType'
      }]
  };
  return {
    ground: ground
  };
};
if (typeof define === 'function' && define.amd) {
  define([], ground_Module_Factory);
}
else {
  var ground_Module = ground_Module_Factory();
  if (typeof module !== 'undefined' && module.exports) {
    module.exports.ground = ground_Module.ground;
  }
  else {
    var ground = ground_Module.ground;
  }
}

Thank you for the very detailed report. I've reproduced it.
The problem is that your mapping has LocaType generated two times, but with the same name. How did you generate the ground.js mapping, exactly? You've actually got 3 namespaces so normally you should get 3 mappings. You're getting just one.
So from the two LocaTypes you're getting, just one is effective. I think it is the last one.
When your original XML is parsed, you don't get contents in House and Ground for two different reasons:

In House - wrong LocaType is applied (this is the core issue).
In Ground - your elements should be in the rural namespace, but they are in the default namespace. This is a mistake in your XML.

You must have compiled with -p ground.

To sum up, this does not seem to be a problem in Jsonix, but rather in Jsonix Schema Compiler.
With the -p option you've generated everything in just one mapping. The correct behaviour for the Jsonix Schema Compiler would have been to fail with an error message about duplicate types.
Here's an issue for that:
highsource/jsonix-schema-compiler#41
You have the following options:

don't use -p - you'll get three modules instead.
customize one of the LocaType to get a different name.
do not use -p, customize to generate one module with three mappings.

I've created a "support" project to demonstrate the third options:
https://github.com/highsource/jsonix-support/blob/master/issues/issue-83/bindings/bindings.xjb
With generated mappings, tests go through:
https://github.com/highsource/jsonix/tree/master/nodejs/scripts/tests/GH83
I'm closing this as this is not a Jsonix issue and there's a workaround.
See highsource/jsonix-schema-compiler#41 for the follow-up issue in Jsonix Schema Compiler.

Yesterday I had another look at the jsonix schema compiler documentation and indeed tried without the -p options and successfully tested a round trip marshalling with our 84 schemas catalog on all our samples. I was about to close the issue, thanks for the explanation I will also look at the bindings options.


Refs 645: update testing templates

change IQE_ENV to ENV_FOR_DYNACONF
update fields for testing-integration to be more generic
Pairs with this app-interface MR, moving test pipelines into different cluster:
https://gitlab.cee.redhat.com/service/app-interface/-/merge_requests/77262

https://issues.redhat.com/browse/HMS-645


Does not install

Centos 7
Attempted with node 0.12, 4.4.1, and 5.91
npm v2, and v3
It constantly kills itself during install. It's rather annoying, apostrophe-site never installs.
i have all the dependencies installed to build, gcc, make, etc.
Even attempted to follow this guide http://apostrophenow.org/howtos/production.html#system-requirements.
Using apostrophe-cli to create a new project, cd into, and npm install

i attempted the sandbox package.json
script is killed at extract:apostrophe-ui-2

Please be specific. Is this an npm install error?
We really don't control npm, but I suggest upgrading it to latest stable:
sudo npm install -g npm
Again though... npm is not our baby.
Hope this is of some help!
On Sun, Mar 27, 2016 at 2:32 AM, Brian M. Jemilo II <
<EMAIL_ADDRESS>wrote:

i attempted the sandbox package.json
script is killed at extract:apostrophe-ui-2
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/punkave/apostrophe/issues/474#issuecomment-202000782

--
*THOMAS BOUTELL, *DEV & OPS
P'UNK AVENUE |<PHONE_NUMBER>  |  punkave.com

You could be running out of RAM. Is this on a fairly small VPS perhaps? I
know npm has been RAM-hungry lately.
On Sun, Mar 27, 2016 at 8:43 AM, Tom Boutell<EMAIL_ADDRESS>wrote:

Please be specific. Is this an npm install error?
We really don't control npm, but I suggest upgrading it to latest stable:
sudo npm install -g npm
Again though... npm is not our baby.
Hope this is of some help!
On Sun, Mar 27, 2016 at 2:32 AM, Brian M. Jemilo II <
<EMAIL_ADDRESS>wrote:

i attempted the sandbox package.json
script is killed at extract:apostrophe-ui-2
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/punkave/apostrophe/issues/474#issuecomment-202000782

--
*THOMAS BOUTELL, *DEV & OPS
P'UNK AVENUE |<PHONE_NUMBER>  |  punkave.com

--
*THOMAS BOUTELL, *DEV & OPS
P'UNK AVENUE |<PHONE_NUMBER>  |  punkave.com

So far yes, it is an npm install error. hmmm, ram.. i haven't thought about that, I will check that out. Thanks!

 I guess i'll have to setup a build system.

That is kind of a bummer. Was mongo running on the system or something? Or was it 1.5GB just for npm? Not that npm is something we control, but it does make you long for an alternative, doesn't it.

I made sure that mongo and docker were not running at the time of the install. Just node v 4.1.1. Hopefully npm can fix the memory issues. That's a lotta memory being consumed. I wonder if it has anything to do with gcc compiling certain modules.

My suspicion is not... I think our introduction of babel into our
apostrophe-browserify stack may be creating new challenges for it. Although
I find tons of memory being consumed by npm installs unrelated to
apostrophe as well.
On Wed, Mar 30, 2016 at 2:59 PM, Brian M. Jemilo II <
<EMAIL_ADDRESS>wrote:

I made sure that mongo and docker were not running at the time of the
install. Just node v 4.1.1. Hopefully npm can fix the memory issues. That's
a lotta memory being consumed. I wonder if it has anything to do with gcc
compiling certain modules.
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/punkave/apostrophe/issues/474#issuecomment-203583071

--
*THOMAS BOUTELL, *DEV & OPS
P'UNK AVENUE |<PHONE_NUMBER>  |  punkave.com


Swarm services dashboard is not showing services running on the manager node.

Hi,
My cluster has 2 nodes, 1 manager and 1 worker.
In the swarm node dashboard I can see details for all the nodes (except for CPU usage for both the nodes, is it normal?)
In the swarm services dashboard, I 'm only seeing details from my worker node. When I explicitly select the master node, I don't see anything. As if it's not reading anything from my master.

The CPU idle works for 30 mins and above time frame. For 5 and 15 mins it doesn't work. Is this a known thing? Totally new to Prometheus and Grafana so can't interpret much from the formulas.

Bump, same issue


Detailed Instruction?

Is there any instruction on running a game with IndieRunner? It can be a README file, a blog post, a screencast, or anything. I just want to know what command I should execute to run, let's say, Brotato.

Please note that this is still pre-release state (could probably call it beta stage).
The Makefile.PL installation isn't set up yet, so right now you have to clone the git repo and install the dependencies (most should be listed in https://github.com/IndieRunner/IndieRunner/blob/main/README.md).
Launching a game with it is mainly done by calling script/indierunner from the game's location. It uses heuristics to try to figure out the game engine and the main game file to call. It may also rename some bundled libraries that prevent execution. With Brotato:
$ cd /path/to/Brotato # location of Brotato.pck
$ /path/to/IndieRunner/script/indierunner

You can use -h to get a list of flags.

there will eventually be a port on OpenBSD that will make installation painless.

There is now a port on OpenBSD so I'm closing this issue. If questions come up, please open a new issue.


go-kosu: add remote signer support

Overview
Remote signer support added with the new --remote-signer-listener
Description
If set, what --remote-signer-listener does is to open a listening connection bound to the argument. From that point kosud will sign blocks using a remote signer, the remote signer connects to us, and not the other way around.
Testing instructions
In order to test this, I installed and configure tmkms with softkey support (you can enable ledger and yubikey support too); softkey will use the filesystem keys.
The whole process is described here, the document is a bit outdated because tmkms has been updated. You'll need to prefix softsign to the keygen subcommand and use the config.toml below.
cargo install tmkms --features softsign

Using this config file:
[[validator]]
addr = "tcp://<IP_ADDRESS>:61219"         # This is where we will find tm-signer-harness.
chain_id = "kosu-chain-Sz2uIW"         # The Tendermint chain ID for which KMS will be signing (found in ~/.tendermint/config/genesis.json).
reconnect = true                       # true is the default
secret_key = "./secret_connection.key" # Where to find our secret connection key.

[[chain]]
id = "kosu-chain-Sz2uIW"
key_format = { type = "hex"} #, account_key_prefix = "cosmospub", consensus_key_prefix = "cosmosvalconspub"  }
# state_file = "/path/to/cosmoshub_priv_validator_state.json"
# state_hook = { cmd = ["/path/to/block/height_script", "--example-arg", "cosmoshub"]  }

[[providers.softsign]]
chain_ids = ["kosu-chain-Sz2uIW"]              # The Tendermint chain ID for which KMS will be signing (same as validator.chain_id above).
path = "./signing.key"

addr needs to match with --remote-signer-listener
chain_id needs to match the node's chain id
secret_key is generated like this: tmkms softsign keygen secret_connection.key
path = "./signing.key" is the kosud/tendermint signing key, and it's generated with the internal tendermint tool tm-signer-harness.

Once the keys are generated you should start tmkms
tmkms start -c tmkms.toml

And kosud with the remote signer enabled
kosud start --remote-signer-listener tcp://<IP_ADDRESS>:61219

We may have to put this PR on ice for the time being, unfortunatley.
From #tendermint-dev slack:

Henry H (Paradigm) 11:15 AM
Hey All, does anyone know if its possible to use TMKMS to sign transactions?
Our application requires special validator signed transactions, and I’m trying to figure out how to make that work with a remote signer. We have TMKMS working to sign proposals and votes via SignerClient, but our logic breaks b/c we expect to be able to load the private key within a subprocess to sign transactions. Is this possible? Its obviously trivial when using FilePV and local keys.

zaki 11:15 AM
It isn't at the moment
it would be a great thing to add support for


CLOUDSTACK-9165 unable to use reserved IP range in a network for exte…

…rnal VMs
Repro Steps

Create an isolated network with CIDR <IP_ADDRESS>/24.
Edit the CIDR to <IP_ADDRESS>/25.

Perform Network restart with cleanup.

Network Restart with Cleanup, it was successful.
Add external VM to the network with IP <IP_ADDRESS>/24 to the network.
After restart Netmask1 displayed CIDR <IP_ADDRESS>/25 and Network CIDR as <IP_ADDRESS>/24.
Create an instance from cloudstack.
Ping the VM from external VM.

Before Applying the fix
External Vm was unable to communicate with the cloudstack managed VM.

After applying the fix

Hi =)
What is the difference between network.getCidr() and network.getNetworkCidr() ?
And, there is a possibility to you create a method with a simple javadoc and simple testcase instead of using a short if?
Ty =)

Hello, there is also something bugging me with this piece of code which appears on the changed files:
final String gatewayCidr = guestNetwork.getNetworkCidr() == null ? guestNetwork.getCidr() : guestNetwork.getNetworkCidr();

First, it is repeated code, which could turn into a function in the superclass, since VirtualNetworkApplianceManagerImpl and NetworkHelpImpl are implementation classes.
Also, you are calling the function getNetworkCidr twice in the event of it's return value not being null. It's both confusing and not efficient. You could try writing a separate method for the purpose of correctly setting this variable, such as:
protected String getValidGatewayCidr(){
    String gatewayCidr = guestNetwork.getNetworkCidr();
    return gatewayCidr == null ? guestNetwork.getCidr() : null;
}

These changes would make the code more understandable, provided that you could write javadocs on these pieces of code.

@alexandrelimassantana I have made changes with respect to ur last comment.

@SudharmaJain can you rebase against latest master and share state of your PR, thanks
tag:easypr

@SudharmaJain, I've added a few comments

ACS CI BVT Run
Sumarry:
Build Number 75
Hypervisor xenserver
NetworkType Advanced
Passed=68
Failed=5
Skipped=3
Link to logs Folder (search by build_no): https://www.dropbox.com/sh/yj3wnzbceo9uef2/AAB6u-Iap-xztdm6jHX9SjPja?dl=0
Failed tests:

test_vpc_vpn.py

ContextSuite context=TestRVPCSite2SiteVpn>:setup Failing since 3 runs

ContextSuite context=TestVpcRemoteAccessVpn>:setup Failing since 4 runs

ContextSuite context=TestVpcSite2SiteVpn>:setup Failing since 4 runs

test_volumes.py

test_06_download_detached_volume Failed

test_vm_life_cycle.py

test_10_attachAndDetach_iso Failed

Skipped tests:
test_vm_nic_adapter_vmxnet3
test_static_role_account_acls
test_deploy_vgpu_enabled_vm
Passed test suits:
test_deploy_vm_with_userdata.py
test_affinity_groups_projects.py
test_portable_publicip.py
test_over_provisioning.py
test_global_settings.py
test_scale_vm.py
test_service_offerings.py
test_routers_iptables_default_policy.py
test_routers.py
test_reset_vm_on_reboot.py
test_snapshots.py
test_deploy_vms_with_varied_deploymentplanners.py
test_login.py
test_list_ids_parameter.py
test_public_ip_range.py
test_multipleips_per_nic.py
test_regions.py
test_affinity_groups.py
test_network_acl.py
test_pvlan.py
test_nic.py
test_deploy_vm_root_resize.py
test_resource_detail.py
test_secondary_storage.py
test_disk_offerings.py

Moved the getValidNetworkCidr to common class NetworkModel and Rebased with master.

ACS CI BVT Run
Sumarry:
Build Number 328
Hypervisor xenserver
NetworkType Advanced
Passed=103
Failed=1
Skipped=7
Link to logs Folder (search by build_no): https://www.dropbox.com/sh/yj3wnzbceo9uef2/AAB6u-Iap-xztdm6jHX9SjPja?dl=0
Failed tests:

test_routers_network_ops.py

test_02_RVR_Network_FW_PF_SSH_default_routes_egress_false Failed

Skipped tests:
test_01_test_vm_volume_snapshot
test_vm_nic_adapter_vmxnet3
test_static_role_account_acls
test_11_ss_nfs_version_on_ssvm
test_nested_virtualization_vmware
test_3d_gpu_support
test_deploy_vgpu_enabled_vm
Passed test suits:
test_deploy_vm_with_userdata.py
test_affinity_groups_projects.py
test_portable_publicip.py
test_over_provisioning.py
test_global_settings.py
test_scale_vm.py
test_service_offerings.py
test_routers_iptables_default_policy.py
test_loadbalance.py
test_routers.py
test_reset_vm_on_reboot.py
test_deploy_vms_with_varied_deploymentplanners.py
test_network.py
test_router_dns.py
test_non_contigiousvlan.py
test_login.py
test_deploy_vm_iso.py
test_list_ids_parameter.py
test_public_ip_range.py
test_multipleips_per_nic.py
test_regions.py
test_affinity_groups.py
test_network_acl.py
test_pvlan.py
test_volumes.py
test_nic.py
test_deploy_vm_root_resize.py
test_resource_detail.py
test_secondary_storage.py
test_vm_life_cycle.py
test_disk_offerings.py

LGTM for code change.

@nlivens As suggested I have moved the getValidNetworkCidr to common class NetworkModel.

ACS CI BVT Run
Sumarry:
Build Number 419
Hypervisor xenserver
NetworkType Advanced
Passed=103
Failed=2
Skipped=7
Link to logs Folder (search by build_no): https://www.dropbox.com/sh/yj3wnzbceo9uef2/AAB6u-Iap-xztdm6jHX9SjPja?dl=0
Failed tests:

test_volumes.py

test_06_download_detached_volume Failed

test_routers_network_ops.py

test_02_RVR_Network_FW_PF_SSH_default_routes_egress_false Failed

Skipped tests:
test_01_test_vm_volume_snapshot
test_vm_nic_adapter_vmxnet3
test_static_role_account_acls
test_11_ss_nfs_version_on_ssvm
test_nested_virtualization_vmware
test_3d_gpu_support
test_deploy_vgpu_enabled_vm
Passed test suits:
test_deploy_vm_with_userdata.py
test_affinity_groups_projects.py
test_portable_publicip.py
test_over_provisioning.py
test_global_settings.py
test_scale_vm.py
test_service_offerings.py
test_routers_iptables_default_policy.py
test_loadbalance.py
test_routers.py
test_reset_vm_on_reboot.py
test_deploy_vms_with_varied_deploymentplanners.py
test_network.py
test_router_dns.py
test_non_contigiousvlan.py
test_login.py
test_deploy_vm_iso.py
test_list_ids_parameter.py
test_public_ip_range.py
test_multipleips_per_nic.py
test_regions.py
test_affinity_groups.py
test_network_acl.py
test_pvlan.py
test_nic.py
test_deploy_vm_root_resize.py
test_resource_detail.py
test_secondary_storage.py
test_vm_life_cycle.py
test_disk_offerings.py

Test LGTM based on manual testing results.
Before fix The VM got a Netmask of <IP_ADDRESS> and after fix the VM got a Netmask of <IP_ADDRESS>
on a network where the CIDR was /25

tag:mergeready

@SudharmaJain This seems to work if I restart the Guest Network, but if I restart the VPC the incorrect netmask is applied again

@Slair1 Thanks for reviewing. I will update the fix as needed.

@SudharmaJain can you rebase against master, if you want this in 4.9 please change the base branch as well.

@blueorangutan package

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-901

@Slair1 I have fixed the bug for vpc also. Please review.

Thanks @SudharmaJain  LGTM

@blueorangutan package

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

Packaging result: ✔centos6 ✖centos7 ✔debian. JID-915

@blueorangutan package

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

Packaging result: ✔centos6 ✔centos7 ✔debian.

@Slair1 Please review.

@blueorangutan package

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

Packaging result: ✔centos6 ✔centos7 ✔debian.


Finalize Lighthouse config

Use "preset": "lighthouse:no-pwa" or other presets from https://github.com/GoogleChrome/lighthouse-ci/blob/main/docs/configuration.md
Take a look at https://www.npmjs.com/package/lighthouse-badges

Not necessary


PackagesNotFoundError:

(base) C:\Users\jsteinbach>conda create -n bw brightway2=2.4.7 jupyterlab
Collecting package metadata (current_repodata.json): done
Solving environment: unsuccessful attempt using repodata from current_repodata.json, retrying with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed
PackagesNotFoundError: The following packages are not available from current channels:

brightway2=2.4.7

Current channels:

https://repo.anaconda.com/pkgs/main/win-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/win-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/msys2/win-64
https://repo.anaconda.com/pkgs/msys2/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org

and use the search bar at the top of the page.

Fixed by adding -c conda-forge to conda install command. Will be updated in a few minutes.


Add images to Umple's xtext outline view

Originally reported on Google Code with ID 100
Owned by @obahy

The xtext plugin is using the default images in the outline view. This should be enhanced
with more appropriate images, perhaps adopting the same images as available in other
open source UML tools.

Reported by @umple on 2011-06-24 14:52:18

Attachment: xtext_screenshot.png

The XText plugin has not been maintained for several years. If this issue is to be done, the entire plugin needs to be revisited.


[NSE-206] fix doc link, update limitations

What changes were proposed in this pull request?
Fixes #178
update the documents
Signed-off-by: Yuan Zhou<EMAIL_ADDRESS>How was this patch tested?
no tests needed

@weiting-chen can you please take a look?


Duplicate symbols for architecture x86_64 for RNSelectableText and react-native-selectable-text

Hi all,
I was wondering if anyone has the following issue of where RNSelectableText and react-native-selectable-text both call same function RNSelectableTextView during the installation.
I was originally using Expo, ejected, installed react-native-selectable-text through npm, and ran pod install after copying the pod spec for RNSelectableText.

My package.json looks like below.
"scripts": {
"start": "react-native start",
"android": "react-native run-android",
"ios": "react-native run-ios",
"web": "expo start --web"
},
"dependencies": {
"@astrocoders/react-native-selectable-text": "^1.5.1",
"@react-native-community/masked-view": "0.1.10",
"@react-navigation/bottom-tabs": "^5.7.3",
"@react-navigation/drawer": "^5.8.7",
"@react-navigation/native": "^5.7.2",
"@react-navigation/stack": "^5.8.0",
"bufferutil": "^4.0.1",
"css-to-react-native": "^3.0.0",
"expo": "~38.0.8",
"expo-splash-screen": "^0.5.0",
"expo-status-bar": "^1.0.2",
"expo-updates": "~0.2.10",
"react": "~16.11.0",
"react-dom": "~16.11.0",
"react-native": "~0.62.2",
"react-native-autoheight-webview": "^1.5.2",
"react-native-gesture-handler": "~1.6.0",
"react-native-modal-wrapper": "^3.1.1",
"react-native-reanimated": "~1.9.0",
"react-native-render-html": "^4.2.1",
"react-native-responsive-dimensions": "^3.1.1",
"react-native-screens": "~2.9.0",
"react-native-unimodules": "~0.10.1",
"react-native-web": "~0.11.7",
"react-native-webview": "^9.4.0",
"react-native-windows": "^0.62.3",
"react-redux": "^7.2.1",
"redux": "^4.0.5",
"redux-devtools-extension": "^2.13.8",
"redux-thunk": "^2.3.0",
"require-html": "^1.0.0",
"utf-8-validate": "^5.0.2"
},
"devDependencies": {
"@babel/core": "^7.8.6",
"babel-jest": "~25.2.6",
"jest": "~25.2.6",
"react-test-renderer": "~16.11.0",
"babel-preset-expo": "~8.1.0"
},
"private": true,
"name": "client",
"version": "1.0.0"
}
Any help would be much appreciated.

For anyone having this problem by going through expo eject, follow the official instructions from "https://reactnative.dev/docs/linking-libraries-ios".
Basically do "npx react-native link" after npm install


[Feature Request] Database Backup

Overview
Database may need reverting to an earlier version if there are user or operational errors. Creating a backup of recent versions of the database would be helpful in such a situation.
Details
Create a separate folder like db_backups to store a snapshot of all databases each day, for up to 72 hours,
Why would this feature be useful?
Catastrophic errors or misuse may render certain functionalities useless until they are fixed. having a copy before things "went bad" seems like the responsible thing to do.
Additional Notes
No response

Also pushing a change to production seems to delete the database.

@phoenixpereira Can you find a way to keep persistent storage between sessions/merges? If everything gets overwritten whenever there's a merge then it's an issue that has to be addressed with the deployment environment.

@phoenixpereira Can you find a way to keep persistent storage between sessions/merges? If everything gets overwritten whenever there's a merge then it's an issue that has to be addressed with the deployment environment.
Maybe look at EBS or S3?
I will see about implementing an on_shutdown() process as well

Fixed in #39/#40

We might set up a cron job to backup the database to S3 as well, and if that's done this issue can be closed


DataRow test throws excption

Description
Unit tests are not working with DataRows and MSTests 2.2.5 in Visual Studio 2017
Steps to reproduce
[DataRow(true)]
[DataRow(false)]
[DataTestMethod]
public void Test(bool boolean)
{
    Assert.AreEqual(boolean, boolean);
}

See https://github.com/debabbe/DateRowError
This simple test is not working. Unit test fails with the error:
Message: Fehler beim Deserialisieren des Objekts "vom Typ System.Object". Unerwartetes Zeichen 'S'.
Expected behavior
Tests have to work.
Environment
Window 10
MSTest 2.2.5
Visual Studio 2017

This issue should be fixed by https://github.com/microsoft/testfx/pull/998 .  It got merged after 2.2.7 was released ...

This issue is fixed, if you're still having it could you please share a sample repro @krilbe? Also as @jr01 mentioned there were more fixes released with 2.2.8, it might help with your issue to update.
If the issue is generally about how we process DataRow tests, you can opt-out of the behavior by adding this assembly level attribute anywhere on your test project:
[assembly: TestDataSourceDiscovery(TestDataSourceDiscoveryOption.DuringExecution)]

It's working now. Thanks all

It's working now. Thanks all


RFE: pass arguments when using 'helidon dev'

When trying the use JDK 15 preview features, I bumped into the following limitation using the dev mode (or I haven't looked hard enough).
In dev mode, it should be possible to pass arguments,

to the compiler (possible via the pom.xml)
to the JVM that will run the App.

see https://github.com/oracle/helidon-build-tools/issues/245

@delabassee Do you actually need to pass compiler arguments on the command line for some reason? We directly use the maven compile goal in the dev loop, so the most we could do is pass properties to maven; is there some use case where modifying the plugin configuration in the pom is not sufficient?

@batsatt in my uses, i.e. preview features, I need to pass to java --enable-preview --release xx (xx being the Java version)

Right, those are JVM options, not compiler options, and can now be passed (well, once we've released) like so:
--app-jvm-args "--enable-preview --release xx"

So... no need for compiler options on the helidon dev command line then, right?

Oh, sorry, I see that you also need those args to javac, but you should be able to configure that in the pom.

no, we need to tell javac to enable preview features on the generated byte code using those 2 params. To use that byte code, we then need to tell hotspot using one single arg: "--enable-preview"

see https://blogs.oracle.com/javamagazine/the-role-of-preview-features-in-java-14-java-15-java-16-and-beyond

Right, as I said in the follow up comment, you can configure the pom for javac.

Got it. That's what I currently do, to me it's fine.

OK, great, then I'll close this.


Game log

for more efficient stuff, like debugging and equal die rules non-recursive

Dropped, closing


Combat (scaled) returns NaN in PC Regression

Unclear why. See raw results output at https://github.com/openproblems-bio/openproblems/actions/runs/3463236911. cc @LuckyMD

Discussion: https://github.com/openproblems-bio/website/pull/45

The PCR metric uses adata.X to compute the metric before integration, which combats overwrites. The metric value for combat scaled returns 0, thus it tries to compute 0/0. Combat should probably be in the _feature subtask and not the _embedding one

https://github.com/openproblems-bio/openproblems/pull/784

It should be in both, no? PCA on the features then? I think the solution would more be to distinguish the place the corrected features and the original features are stored consistently. Could you do that?

So this is an issue for all feature outputs then, no? Also combat unscaled, and seurat for example?

I think the PR I linked fixes that. It places the original feature matrix in adata_pre.X and not the corrected one

Would that overwrite the combat results?

I don't think so -- the function edited in #784 is only for batch_integration_embed


Quantitative analysis on the CWA code base performed using data provided by Git

Dear all,
In the last weeks I have conducted some analysis on some CWA repos (cwa-server, cwa-app-ios, cwa-app-android).
The objective has been to test if it is possible to have a quantitative, data driven approach to the analysis of a large code base. The data used come from the logs produced by git, which hold the “temporal”, the “ownership” and the “size” dimensions of change (when a change occurred, who made it, how big the change was).
The outcomes of this analysis have been summarised in this document (https://docs.google.com/document/d/1Y5TQOLkMwoYu0bX8S7q818koFzUxj54Bto5fdDYJVmo/edit).
Considering that I have tried to apply this approach to a codebase which you know very well, I would appreciate a lot if you could provide some feedback about the ideas exposed there.
Thanks in advance
PS: I hope this is the right place for a request like this

@EnricoPicci very interesting article. Thanks!

It seems like nobody is giving any feedback here, sadly. I suggest to close this issue.

no feedback - issue closed


Continue to listen to docker containers while running in swarm mode

Hello
I have successfully configured traefik on a cluster running in swarm mode.
However, I also need to deploy some privileged containersn which is not possible in swarm mode yet, so I am using docker-compose until it becomes possible.
The problem that I have is that traefik doesn't seem to see containers started with docker-compose up, nor with docker run (I have tested it with a simple docker run of the emilevauge/whoami image). I'm guessing this is normal since traefik is configured to use swarm mode.
Is it possible for traefik to listen to services creation (docker service create) as well as normal containers (docker run) at the same time ?
Thanks in advance.

Thanks for your interest in Traefik !
Every question in the issues means features less 😉.
The issue tracker is for reporting bugs and feature requests only.
For end-user related support questions, refer to one of the following:

Stack Overflow using the "traefik" tag
the Traefik community Slack channel

@BenoitAverty have your solved this issue or is this listening both swarm services and docker containers not possible in traefik?


[bug] dividing by an svar of 0 ≤ x < 1 crashes the game

Description
When dividing by a svar that is a decimal (0 ≤ x < 1), the game crashes. This is because of the integer casting of the variables. cur and other are of type long so idk why they're being cast to int.
Suggested Changes

-atoi +atol in src/Features/ConfigPlus.cpp @ 130 & 142
Check for divisor of 0

Expected behaviour

If divisor of 0, the variable is set to "NaN" or 0 or returns an error, and obviously it doesn't crash.
Dividing by a decimal should be possible: x / 0.5 = x * 2

Environment
OS: Windows 10 Home 20H2 (Build 19042.985)
SAR version: 1.12.3-4-g91e228f   (master as of 91e228f)
Portal 2 version: Steam Latest release

There may be applications that use the rounding property of this cast, so maybe add svar_round <variable> / svar_floor <variable> / svar_ceil <variable>.


Fixed missing header version in 2.24 release

Coverage decreased (-0.07%) to 88.336% when pulling fdd82b2b1e87a943fd78e7c5a415d538731743ed on KaushikDev:bug-fix/version-issue into 13a61b285c095bda7ea8e33156090ea5ccfeaef1 on moment:develop.

Coverage decreased (-0.07%) to 88.336% when pulling fdd82b2b1e87a943fd78e7c5a415d538731743ed on KaushikDev:bug-fix/version-issue into 13a61b285c095bda7ea8e33156090ea5ccfeaef1 on moment:develop.

Take a look: https://github.com/moment/moment/issues/5057#issuecomment-618592588


Problem with Relationships not eager loaded

Laravel Version: 5.5.39
Voyager Version: 1.0.16
PHP Version: 7.1.14
Database Driver & Version: 10.1.30-MariaDB

Description:
#2871 should solve the problem of relationships defined in details field some times not eager loaded.
Now the problem is that relationships defined with the "Create a relationship" are never eager loaded, or at last I didn't find any way to make it work and I can't find the piece of code that should do it.
I read somewhere that Bread management is being rebuilt so I don't know if it's going to work in the new version since I can't see the code, on 1.x-dev branch I don't see any change.
I'd like this to work in the new version so I'm writing here how I made it work extending VoyagerBreadController and relationship.blade.php.
I added on my class BreadController extends VoyagerBreadController:
        // Check if BREAD is Translatable
        if (($isModelTranslatable = is_bread_translatable($model))) {
            $dataTypeContent->load('translations');
        }

        //Check relationship
        $relationships = [];
        foreach ($dataType->browseRows as $row) {
            if ($row->type == 'relationship') {
                $details = json_decode($row->details);
                $methodName = class_basename($details->model);
                switch ($details->type) {
                    case 'belongsToMany':
                    case 'hasMany':
                        $methodName = str_plural($methodName);
                        break;
                }
                $methodName = camel_case($methodName);
                if (method_exists($dataType->model_name, $methodName)) {
                    $relationships[] = $methodName;
                }
            }
        }
        // Eager load relationships
        if (!empty($relationships)) {
            $dataTypeContent->load($relationships);
        }

And I changed how data is taken in relationship.blade.php
for belongTo
                    $method = camel_case(class_basename($options->model));
                    if (isset($relationshipData->{$method})) {
                        $query = $relationshipData->{$method};
                    } else {
                        $model = app($options->model);
                        if (method_exists($model, 'getRelationship')) {
                        	$query = $model::getRelationship($relationshipData->{$options->column});
                        } else {
                        	$query = $model::find($relationshipData->{$options->column});
                        }
                    }

for belongsToMany
                @php
                    $relationshipData = (isset($data)) ? $data : $dataTypeContent;
                    $method = camel_case(str_plural(class_basename($options->model)));
                    if (isset($relationshipData->{$method})) {
                        $selected_values = $relationshipData->{$method}->pluck($options->label)->all();
                    } else {
                        $selected_values = isset($relationshipData) ? $relationshipData->belongsToMany($options->model, $options->pivot_table)->pluck($options->label)->all() : array();
                    }
                @endphp

etc.
Of course relationship methods need to be defined in model otherwise it will fallback to the old way.
A solution like this should be integrated I think in getRelationships, but if I do it there resolveRelations complains because it tries to find the relationship as a field.
So I don't really know if there was an intent on all this or simply the system was not complete and I have no idea on how all this is going to change in the next version so I'm not going to work in something better integrated.
Steps To Reproduce:
On bread "Create a relationship"
Browse and log queries
A query for each row will be executed to load relationship
Expected Beahviour
Relationships should be eager loaded

Voyager relationships cannot be eager-loaded because they don't exist as methods on a model class.  This will be changing in a future release.

I mostly opened this issue to understand the situation of current and future releases about eager loading and also to hopefully help someone else to have a temporary fix.
So thank you for your reply.
Please for the future release consider letting the user override the default behavior: if I manually create a model method to retrieve relationship I probably want that to be used and not the magic one "created" by bread management.
Thanks!
Thanks!

We stumbled upon this behaviour as well. For now we will be using getRawAttributes() in the initial Translator's model and from there manually load each of its relationships as needed. Is there a better way of doing this with the current implementation?
I would also like to know if we can help with a PR for this in the Translator class and/or the Translatable trait perhaps.
I'd like to discuss the best approach in regards to performance (since we are working with EAV tables, need caching?, etc). Also, is the current the interface/api for Translator sufficient for using this or do we need to add functions to it for resolving the relations as mentioned above?
The original PR for reference :
https://github.com/the-control-group/voyager/pull/561


dbg ast generate invalid json (simd-json bug)

Problem
dbg ast generates invalid JSON, this is a bug in simd-json.
Steps
Run the test file:
a.b

through dbg ast
the output is:
[
  {"Imut": {"Path": {"Local": {
    "idx": 0,"is_const": false,"mid": 4,"segments": [
      {
        "Id": {"mid": 3
        }
      ]
    }}}}
  ]

Possible Solution(s)
Notes
Output of tremor --version: 0.10.2

Or could it be a bug in simd_json handling the skip property or any other part used in the serialize process? This is how we setup Serialize for the Segment::Id:
Id {
        /// Key
        #[serde(skip)]
        key: KnownKey<'script>,
        /// Id
        mid: usize,
    },

nah skip is handled by serde, simd-json never sees that, already found and fixed it :D the serializer was too optimized, it optimized a } away for the struct variant of an enum

The good news is that won't affect anything in tremor but AST printing, we don't rely on the serde::Serializer for anything on the critical path as it's just too slow and simd-json's value serializer wasn't affected as it's completely different :D

This is resolved with a fix in simd-json :+1:


FYI: container images

I've created tmt-all images:
https://github.com/pvalena/tmt-all/
https://hub.docker.com/r/pvalena/fedora-tmt-all/tags
Maybe this could be part of fedora registry?
I find them quite useful, see my example.
I look forward to your suggestions. (I know that without the mount it currently is broken, I'll fix that later on.)

@psss @thrix  WDYT?
Here're the 2 missing plans- basic (succeds), install (fails; needs virtualization/containerization):
https://gist.github.com/pvalena/0ac019aecbb1bcf9df77f248e71cad72

pretty neat @pvalena !  If we could make the official moving forward, it woudl be pretty awesome. I have no idea who to contact in those regards, if that is even an option.

Nice idea! Could be handy. What would be the best place for the tmt container images?

https://registry.fedoraproject.org/
https://registry.centos.org/containers
https://quay.io/

Or any other place?

docker.io as it is present in configuration on Fedora, RHEL and CentOS.

So docker.io is https://hub.docker.com/, right? Shall we create a new tmt account there to be able to do podman pull tmt/all or podman pull tmt/core and similar? Is it possible to configure docker hub repo/account so that the shortest command podman pull tmt is possible as well?

So docker.io is https://hub.docker.com/, right? Shall we create a new tmt account there to be able to do podman pull tmt/all or podman pull tmt/core and similar? Is it possible to configure docker hub repo/account so that the shortest command podman pull tmt is possible as well?

I vote for Fedoras' https://registry.fedoraproject.org/ , as it builds nicely from Fedora content (example), but AFAIK there are not automated rebuilds (with new versions).

We have container images on quay.io.

For reference, the links are:

https://quay.io/repository/testing-farm/tmt
https://quay.io/repository/testing-farm/tmt-all


docs: add How to use section for panels

We should use Image instead of img, but I'll do that in the following PR.


Display first names in schedule

Please display the full name in the schedule, currently it's abbreviated.
Python conferences are on a first name basis, so we should also show first names.
https://ep2018.europython.eu/p3/schedule/ep2018/
https://ep2018.europython.eu/p3/schedule/ep2018/list/

Fixed here https://github.com/EuroPython/epcon/commit/22f2e67ab4be29d550e1323c2adedf693c5efd08  could you please on https://epstage.europython.eu/p3/schedule/ep2018/ ?

This is still valid for a list view -> https://ep2018.europython.eu/p3/schedule/ep2018/list/


FastAPI converts float 1.0 to integer 1 even when using StrictFloat in a request.

FastAPI converts float 1.0 to integer 1 even when using StrictFloat in a request.

Can you provide a minimal, reproducible example?
But anyway, I've tested this:
from fastapi import FastAPI
from pydantic import StrictFloat, BaseModel

app = FastAPI()

class TestModel(BaseModel):
    test: StrictFloat

@app.post("/")
def home(what: TestModel):
    return str(type(what.test))

When you execute this body on the swagger UI:
{
  "test": 1.0
}

This curl command is generated:
curl -X POST "http://localhost:8000/" -H  "accept: application/json" -H  "Content-Type: application/json" -d "{\"test\":1}"

Which unfortunately will lead to:
{
  "detail": [
    {
      "loc": [
        "body",
        "test"
      ],
      "msg": "value is not a valid float",
      "type": "type_error.float"
    }
  ]
}

But, running the right curl command:
curl -X POST "http://localhost:8000/" -H  "accept: application/json" -H  "Content-Type: application/json" -d "{\"test\":1.0}"

I'm able to get the right response!
So basically, I think this is the problem you're facing. And I'm not sure if it's a bug. Does anyone have more knowledge about the subject?

Exactly,
I didn't noticed that Swagger UI transformers 1.0 to 1. I have tested it with CURL with correct value and it worked. Thank you!!!
For sure, there is no bug in FastAPI. Maybe in Swagger UI.
Stay safe.

Thanks for the help @Kludex ! 🍰
And thanks for coming back to close the issue @echatzikyriakidis

Sorry for the long delay! 🙈  I wanted to personally address each issue/PR and they piled up through time, but now I'm checking each one in order.


Need to fix license

For this (and for the other TidierOrg packages), we need to ensure that our license appropriately acknowledges the contributions of the R packages whose API and functionality we are implementing.
Keeping this here as a note to self. Once we figure out how to address here, let's fix throughout the Tidier ecosystem.

Given that we re-implement the tidytext interface (even though we don't directly reuse any code), i think it is a good gesture for us to add the copyright holders for tidytext onto our license. I've gone ahead and made that change in our license, adding David Robinson and Julia Silge.
I'll close this issue. We should discuss making the same change for our other packages.

Thank you so much for doing this. Following suit with the other licenses sounds good to me, but I'm happy with any route.


how i upgrade bootfs？

when i upgrade docker，i want to upgrade bootfs for upgrade docker？who i do？

bootfs is concepts, you can't touch it, docker will handle it.

I do not understand what you mean by bootfs? is this in the image, is it /var/lib/docker, is it your storagedriver ex. aufs, btrfs, etc


check examples are always up-to-date

update all flake examples
check examples are always up-to-date

Closing in favor of #451.


Project is broken

Compiling this project with the latest version of Emscripten SDK which is just 3 days old from incoming fails. See PR #36 for details and description of the problem in asm.js from upstream.
   Unsupported:   %12 = tail call i128 @llvm.bswap.i128(i128 %11) #5
   LLVM ERROR: Instruction not yet supported for integer types larger than 64 bits

https://travis-ci.org/ethereumjs/rustbn.js/jobs/492925664#L631

Last it was compiled with rust 1.27.2 and then-recent emscripten: https://github.com/ethereumjs/rustbn.js/tree/master/lib
Apart from running rustfmt, we haven't changed anything since.

@axic I'm using 1.38.21

Is it still compiling with 1.38.21?

Yes, I've just compiled it using that version and Rust 1.27.2

@abitrolly what rustc/emscripten are you building with?

@axic
rustc 1.32.0 (9fda7c223 2019-01-16)

https://travis-ci.org/ethereumjs/rustbn.js/jobs/492925664#L188
Emscripten 1.38.27
https://travis-ci.org/ethereumjs/rustbn.js/jobs/492925664#L273

Fails with Rust 1.27.2 and Emscripten 1.38.21
https://travis-ci.org/ethereumjs/rustbn.js/jobs/493657514#L693-L694

See https://github.com/ethereumjs/rustbn.js/pull/36/files#r257229082.


Update AutoMod config update script to prevent overwriting individual subreddit custom rules

Need to update the AutoMod config update script so that it does not overwrite the entire subreddit config when pushing out updated network-wide rules.
Similar to the sidebar update method, the script would identify the network rules section by only replacing the config section between the section start/end flags:
#Begin-Network-Config

...

#End-Network-Config

ion_propagate --automod does this now.


[WeGiveYouEat] - Account Screen doesn't refresh after sign up

Description
After user signs up account screen breaks and does not show the user's info like before, you have to manually refresh for it to work
User Acceptance Criteria
Fix the above issue

related to #69


Incorporate general conventions for spatial derivatives

As follow up on https://github.com/bids-standard/bids-specification/issues/1602, these ideas should now be incorporated into the BEP guidelines in this repo. I don't see any page dedicated specifically to extensions related to derivatives, so maybe it would be good to start such a page?

Something like "General conventions"?

How about something slightly more specific like "General conventions for spatial derivatives?"

Sure thing, I don't have any specific preference/opinion re this but just thought that if other "general conventions" emerge, they could be added as sections/sub-pages.

Yeah, I think it makes sense to have a page that's "General conventions" with a little blurb about what the overall purpose is, and then a specific section on spatial derivatives. I don't think this decision deserves a top-level heading, and it will presumably not be a unique decision.

First draft is now up for discussion/feedback here.


E2E script needs to exit on errors

Description
Make sure we exit on any failure such as pulling down the RAG content or extracting it
Type of change

[ ] Refactor
[ ] New feature
[x] Bug fix
[ ] CVE fix
[ ] Optimization
[ ] Documentation Update
[ ] Configuration Update
[ ] Bump-up dependent library

Related Tickets & Documents

Related Issue #
Closes #

Checklist before requesting a review

[ ] I have performed a self-review of my code.
[ ] PR has passed all pre-merge test jobs.
[ ] If it is a core feature, I have added thorough tests.

Testing

Please provide detailed steps to perform tests related to this code change.
How were the fix/results from this change verified? Please provide relevant screenshots or results.

/test e2e-ols-openai-gpt35

/lgtm

@vishnuchalla you were right, i should have done this in the first place :)

Codecov Report
Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (3548c10) 94.26% compared to head (797ad20) 94.94%.
Report is 43 commits behind head on main.

Additional details and impacted files

@@            Coverage Diff             @@
##             main     #374      +/-   ##
==========================================
+ Coverage   94.26%   94.94%   +0.68%
==========================================
  Files          32       33       +1
  Lines        1115     1048      -67
==========================================
- Hits         1051      995      -56
+ Misses         64       53      -11

Files
Coverage Δ

ols/app/main.py
94.73% <100.00%> (-1.27%)
:arrow_down:

ols/app/models/models.py
100.00% <100.00%> (ø)

ols/app/routers.py
100.00% <100.00%> (ø)

ols/src/cache/cache.py
100.00% <100.00%> (ø)

ols/src/cache/cache_factory.py
100.00% <ø> (ø)

ols/src/cache/in_memory_cache.py
97.56% <100.00%> (ø)

ols/src/cache/redis_cache.py
88.88% <100.00%> (ø)

ols/src/query_helpers/docs_summarizer.py
98.00% <100.00%> (ø)

ols/src/query_helpers/question_validator.py
100.00% <100.00%> (ø)

ols/src/query_helpers/yes_no_classifier.py
100.00% <100.00%> (ø)

... and 3 more

/test e2e-ols-openai-gpt35


create MidRes.json isn't working

When I download FB15K-237 using Google Drive and run MidRes.json file, I get the following error. Please check..
I looked up the problem, but there is no difference between the entity2text.txt file uploaded to Google Drive and the entity2textlong.txt file.
run python ./LLM/create_midres.py
'''
Traceback (most recent call last):
File "./LLM/create_midres.py", line 39, in
build_midres()
File "./LLM/create_midres.py", line 28, in build_midres
for i in entity2textlong[lines[0]].replace('\n',' ').split('. '):
KeyError: '9447'
'''

Hi, sorry, the preprocessing code is missing and we will update these code ASAP.

Hi, the bug has been fixed and please try it again.

Thank you for your careful inspection and suggestions. The indentation has been modified now.
And please check your openai_key or the proxy if you use it in File "./LLM/gpt3kgc.py", line 15.


Modification of Color module

Options for Color analysis,

Get 3 dominant colors

https://giusedroid.blogspot.com/2015/04/using-python-and-k-means-in-hsv-color.html
https://charlesleifer.com/blog/using-python-and-k-means-to-find-the-dominant-colors-in-images/

Caculate "colorfulness" level

https://www.pyimagesearch.com/2017/06/05/computing-image-colorfulness-with-opencv-and-python/

Modification complete through 7baf0a6.

Modification complete through 7baf0a6.


Translation with html tag and replacement

With the drop of dangerousHTML prop in the new version of react-i18nify.
If I combine html tag and replacement in the same translation, it doesn't work (it was working with v1).
export default {
   label_phone:
Phone: %{phone_number}

}

<Translate
   value="label_phone"
   phone_number="+99999999999"
/>

The main reason it's dropped is because dangerouslySetInnerHTML is something to be avoided.
Better would be to do something like
<Translate value="phone" />: {phone_number}
.
If you really want to stick with dangerous html, you could do this:
.


API improvements

Hi!
First of all thanks for this library.
I've found a couple of naming and interface inconsistencies with HTTP status code metrics. To demonstrated how it could be improved I've created a separate trait named  StatusCodeMetrics.
What's new:

Use akka-http terminology,  i.e. status code instead of response code  (see akka.http.scaladsl.model.StatusCode).
Use directive naming consistent with other directives in akka, e.g. withStatusCodeCounter, it's the same pattern as withLog, withSettings, etc.
Counter directives no longer require implicit ExecutionContext, it is obtained using extractExecutionContext directive. If there was some reason behind requiring it in the first place (like blocking calls or something) please correct me.

I've also removed unused imports and renamed test/scala/ResponseCodeMetrics.scala to test/scala/ResponseCodeMetricsSpec.scala to be consistent.
If you find this changes useful, and you don't want to break API, there is a duplicate code in StatusCodeMetrics and ResponseCodeMetrics that could be extracted to a common trait.

Hey @notxcain! Thanks for the PR. I assume some of the verbage choices were from the spray/akka-http beta days (or just my own ramblings). This some pretty good cleanup that I'll get merged in. I'm thinking that this should go in a 0.5.0 release with deprecation warnings (and sharing code).

I've released 0.5.0 with these changes. Thanks!

@adamdecaf awesome! Thank you very much!

@adamdecaf BTW what do you think about renaming HttpMeterMetrics#meterDirective to withMeter and HttpMeterMetrics#meterDirectiveWithName to withMeterNamed, adding proper deprecation annotation? I can send a PR, if it's ok with you.

@notxcain Yea. Those names sound much better and seem to flow better with the existing names. I'll accept a PR.
http://doc.akka.io/docs/akka-http/current/scala/http/routing-dsl/directives/alphabetically.html

@adamdecaf cool! What do you think about renaming traits, adding Directives suffix, it seems to be consistent with akka-http?

Anyway I'll send a PR with first batch of changes, and then we'll see :)

To have MeterDirectives and TimerDirectives? That does make more sense. Feel free to add that in with deprecation notices on the older trait names.

That's great, will do. I just feel that it will make usage of the library more pleasant for new comers. Especially given that it's the first line of Google search results for akka http metrics :)


Revert "Replace datadog-agent dependecy versions"

Reverts open-telemetry/opentelemetry-collector-releases#386
Relates to https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/27601.

Will wait for open-telemetry/opentelemetry-collector-contrib/pull/27601 so that we run tests first

Collector contrib is updated https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/27622. This PR should be ready.


How to compile  and run this project?

Hello,
I want to compile , run and  execute this project on my local. Could you please add steps to build this on local dev environment.?

Read the documentation carefully..!


1

What are you doing ?

Hi,
You play 3d games on it. But I do not know its performance. Maybe you need to test it yourself.
You can find guide on renegade project forum.
You can download UEFI firmware in GitHub action.
You can find windows drivers in alula’s repohttps://github.com/alula.
Sunflower2333
发件人: @.>
发送时间: 2022年11月9日 14:44
收件人: @.>
抄送: @.***>
主题: [edk2-porting/MU-sm8150pkg] nubia mini 5g (Issue #53)
When nubia mini 5g had installed win11,can it play 3d games,like call of duty?Who have Guides for installing Windows on nubia mini 5g and the files needed(include uefi firmware)?I'm a beginer,can somone give me help?
―
Reply to this email directly, view it on GitHubhttps://github.com/edk2-porting/MU-sm8150pkg/issues/53, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AM4FVLNW5KKHOSWHBOKLN4LWHNB4JANCNFSM6AAAAAAR3C2P74.
You are receiving this because you are subscribed to this thread.Message ID: @.***>


Unset cookie doesn't work

This request sends cookie anyway
request
      .get('/api/auth/submit_code')
      .unset('Cookie')
      .set('Content-Type', 'application/json')
      .send()

PR welcome to fix


Update README.md

Based on the MIT License, do we need to reference the original creator?

We still are https://github.com/0xOpenBytes/Site/blob/main/LICENSE
His name is the name in the LICENSE.


Add Blueprint to CI

We need to test the development version of Tact is compatible with Blueprint.
For reference, this is how tact-template integration is checked in CI.
Related issue: https://github.com/tact-lang/tact/issues/67

This will create a potential for fails in case if something breaks in Blueprint itself

Yeah, that's the point -- to catch incompatibilities between Tact and Blueprint early

In case it gets in the way of Tact development, I can override CI fails due to some Blueprint issues and merge anyways. But at least we will know about those before making new releases


Feature/61983

Added additional optional button in popular card, added course cards on click of the button

Resolved


Add pride of Mandalore obstacles

Hi. Thank you for contributing to and extending Sandrams effort.
It's really really nice to be able to import 2.5 xws lists, and work with them.
I pull from meta lists (sometimes), and whenever a pride of Mandalore obstacle is in the xws, I receive "an error has occurred while creating the squad. Then it crashes.
I have a workaround, just edit the xws  with non Mando obstacles, and it works.
If you have higher priorities (which it looks like you do), is there a way you could auto generate the default obstacles instead of crashing?
I appreciate your hard work.

Sorry for the delay in getting back to you. I'm planning to add these for my next release.

These are included in the current release.


Governance: Use saturating sub to decrease voting proposal count

Summary
After upgrading to v2 existing realms won't have voting_proposal_count and hence transition to completed state would result in underflow
Implementation
Use saturating_sub instead of checked_sub

Hehe I was going to comment this on the other one!