Did you restart Homebridge just before reading the log file?

[0;37m[2020-2-19 10:39:04 PM] [Config] Homebridge restart request received
[2020-2-19 10:39:04 PM] [Config] No restart command defined, killing process...
[2020-2-19 10:39:04 PM] [HB Supervisor] Stopping services...
[2020-2-19 10:39:04 PM] Got SIGTERM, shutting down Homebridge...
[2020-2-19 10:39:09 PM] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[2020-2-19 10:39:15 PM] [HB Supervisor] Homebridge Path: /usr/lib/node_modules/homebridge/bin/homebridge
[2020-2-19 10:39:15 PM] [HB Supervisor] UI Path: /usr/lib/node_modules/homebridge-config-ui-x/dist/bin/standalone.js
[2020-2-19 10:39:16 PM] [HB Supervisor] Started Homebridge with PID: 6784
[2020-2-19 10:39:21 PM] Loaded config.json with 2 accessories and 9 platforms.
[2020-2-19 10:39:21 PM] ---
[2020-2-19 10:39:23 PM] Loaded plugin: homebridge-broadlink-rm-tv
[2020-2-19 10:39:23 PM] Registering platform 'homebridge-broadlink-rm.BroadlinkRM'
[2020-2-19 10:39:23 PM] ---
[2020-2-19 10:39:23 PM] Loaded plugin: homebridge-config-ui-x
[2020-2-19 10:39:23 PM] Registering platform 'homebridge-config-ui-x.config'
[2020-2-19 10:39:23 PM] ---
[2020-2-19 10:39:29 PM] [Config] Homebridge Config UI X v4.10.2 is listening on :: port 8080
[2020-2-19 10:39:25 PM] Loaded plugin: homebridge-dyson-pure-cool
[2020-2-19 10:39:25 PM] Registering platform 'homebridge-dyson-pure-cool.DysonPureCoolPlatform'
[2020-2-19 10:39:25 PM] ---
[2020-2-19 10:39:27 PM] Loaded plugin: homebridge-ewelink-max
homebridge API version: 2.4
[2020-2-19 10:39:27 PM] Registering platform 'homebridge-eWeLink.eWeLink'
[2020-2-19 10:39:27 PM] ---
[2020-2-19 10:39:27 PM] Loaded plugin: homebridge-fritz
[2020-2-19 10:39:29 PM] Registering platform 'homebridge-fritz.Fritz!Box'
[2020-2-19 10:39:29 PM] ---
[2020-2-19 10:39:31 PM] Loaded plugin: homebridge-ifttt
[2020-2-19 10:39:31 PM] Registering platform 'homebridge-ifttt.IFTTT'
[2020-2-19 10:39:31 PM] ---
[2020-2-19 10:39:31 PM] Loaded plugin: homebridge-nest
[2020-2-19 10:39:31 PM] Registering platform 'homebridge-nest.Nest'
[2020-2-19 10:39:31 PM] ---
[2020-2-19 10:39:32 PM] Loaded plugin: homebridge-orbit-bhyve
[2020-2-19 10:39:32 PM] Registering accessory 'homebridge-orbit-bhyve.OrbitBHyve'
[2020-2-19 10:39:32 PM] ---
[2020-2-19 10:39:33 PM] Loaded plugin: homebridge-qnap-qvrpro
[2020-2-19 10:39:33 PM] Registering platform 'homebridge-QNAP-QVRPro.Camera-QNAP-QVRPro'
[2020-2-19 10:39:33 PM] ---
[2020-2-19 10:39:34 PM] Loaded plugin: homebridge-risco-alarm
[2020-2-19 10:39:34 PM] Registering accessory 'homebridge-risco-alarm.RiscoAlarm'
[2020-2-19 10:39:34 PM] ---
[2020-2-19 10:39:34 PM] Loaded plugin: homebridge-shelly
[2020-2-19 10:39:35 PM] Registering platform 'homebridge-shelly.Shelly'
[2020-2-19 10:39:35 PM] ---
[2020-2-19 10:39:36 PM] Loading 9 platforms...
[2020-2-19 10:39:36 PM] [Nest] Initializing Nest platform...
[2020-2-19 10:39:36 PM] [Nest] Fetching Nest devices.
[2020-2-19 10:39:36 PM] [PlatFritz] Initializing Fritz!Box platform...
[2020-2-19 10:39:36 PM] [Config] Initializing config platform...
[2020-2-19 10:39:36 PM] [Config] Running in Standalone Mode.
[2020-2-19 10:39:36 PM] [IFTTT] Initializing IFTTT platform...
[2020-2-19 10:39:36 PM] [IFTTT] Loading accessories...
[2020-2-19 10:39:36 PM] [IFTTT] Found: Lavastoviglie
[2020-2-19 10:39:36 PM] [IFTTT] Loading service: Lavastoviglie RUN-STOP, subtype: LavastoviglieRUNLavastoviglieSTOP
[2020-2-19 10:39:36 PM] [IFTTT] Loading service: Lavastoviglie ON-OFF, subtype: LavastoviglieONLavastoviglieOFF
[2020-2-19 10:39:36 PM] [IFTTT] Initializing platform accessory 'Lavastoviglie'...
[2020-2-19 10:39:36 PM] [Camera-QNAP-QVRPro] Initializing Camera-QNAP-QVRPro platform...
[2020-2-19 10:39:36 PM] [Shelly] Initializing Shelly platform...
[2020-2-19 10:39:36 PM] [Broadlink RM] Initializing BroadlinkRM platform...
[2020-2-19 10:39:36 PM] [Broadlink RM] [INFO] Automatically discovering Broadlink RM devices.
[2020-2-19 10:39:36 PM] [Broadlink RM] Condizionatore Accessory Ready
[2020-2-19 10:39:37 PM] [Broadlink RM] A/C Switch Accessory Ready
[2020-2-19 10:39:37 PM] [Broadlink RM] McIntosh Accessory Ready
[2020-2-19 10:39:37 PM] [Broadlink RM] Initializing platform accessory 'Condizionatore'...
[2020-2-19 10:39:37 PM] [Broadlink RM] Initializing platform accessory 'A/C Switch'...
[2020-2-19 10:39:37 PM] [Broadlink RM] Initializing platform accessory 'McIntosh'...
[2020-2-19 10:39:37 PM] [eWeLink] Initializing eWeLink platform...
[2020-2-19 10:39:37 PM] [eWeLink] Intialising eWeLink
[2020-2-19 10:39:37 PM] [eWeLink] Found 0 group(s)
[2020-2-19 10:39:37 PM] [DysonPureCoolPlatform] Initializing DysonPureCoolPlatform platform...
[2020-2-19 10:39:37 PM] Loading 2 accessories...
[2020-2-19 10:39:37 PM] [RiscoAlarm] Initializing RiscoAlarm accessory...
[2020-2-19 10:39:37 PM] [RiscoAlarm] Starting polling with an interval of 15000 ms
[2020-2-19 10:39:37 PM] [B-Hyve Irrigazione] Initializing OrbitBHyve accessory...
[2020-2-19 10:39:37 PM] [eWeLink] Luce Cappa Configure Accessory
[2020-2-19 10:39:37 PM] [eWeLink] Router Home&Life Configure Accessory
[2020-2-19 10:39:37 PM] [Shelly] 22 accessories loaded from cache
[2020-2-19 10:39:37 PM] [eWeLink] A total of [2] accessories were loaded from the local cache
[2020-2-19 10:39:37 PM] [eWeLink] getRegion query: country_code=39&version=6&ts=1582148377&nonce=158214837786700&appid=oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq&imei=DBF88FD7-BE6C-4E36-A342-4D2B407C1D70&os=iOS&model=iPhone10%2C6&romVersion=11.1.2&appVersion=3.5.3
[2020-2-19 10:39:37 PM] [eWeLink] getRegion signature: JxuHsm5r/lILdDqHVoRghSc+0um1Urys0VJeWcUG+Mo=
[2020-2-19 10:39:38 PM] [DysonPureCoolPlatform] Signing in.
[2020-2-19 10:39:38 PM] [Shelly] Admin server is running on port 8181
[2020-2-19 10:39:38 PM] [Broadlink RM] Condizionatore getCurrentHeatingCoolingState: 0
[2020-2-19 10:39:38 PM] [Broadlink RM] Condizionatore getTargetTemperature: 16
[2020-2-19 10:39:38 PM] [Broadlink RM] Condizionatore getTargetHeatingCoolingState: 0
[2020-2-19 10:39:38 PM] [Broadlink RM] A/C Switch getSwitchState: false
[2020-2-19 10:39:38 PM] [Broadlink RM] A/C Switch getFanSpeed: 63
[2020-2-19 10:39:38 PM] [Broadlink RM] McIntosh getSwitchState: 0
[2020-2-19 10:39:38 PM] [Broadlink RM]
[2020-2-19 10:39:38 PM] [Broadlink RM] **************************************************************************************************************
[2020-2-19 10:39:38 PM] [Broadlink RM] ** Welcome to version 4.0.5 of the Homebridge Broadlink RM Plugin!
[2020-2-19 10:39:38 PM] [Broadlink RM] **
[2020-2-19 10:39:38 PM] [Broadlink RM] ** Find out what's in the latest release here: https://github.com/lprhodes/homebridge-broadlink-rm/releases
[2020-2-19 10:39:38 PM] [Broadlink RM] **
[2020-2-19 10:39:38 PM] [Broadlink RM] ** If you like this plugin then please star it on GitHub or better yet
[2020-2-19 10:39:38 PM] [Broadlink RM] ** buy me a drink using Paypal https://paypal.me/lprhodes or crypto https://goo.gl/bEn1RW.
[2020-2-19 10:39:38 PM] [Broadlink RM] **
[2020-2-19 10:39:38 PM] [Broadlink RM] ** Keep up to date with this plugin along with everything HomeKit and homebridge
[2020-2-19 10:39:38 PM] [Broadlink RM] ** by signing up to my newsletter at http://workswith.io
[2020-2-19 10:39:38 PM] [Broadlink RM] **
[2020-2-19 10:39:38 PM] [Broadlink RM] ** You can disable this message by adding "hideWelcomeMessage": true to the config (see config-sample.json).
[2020-2-19 10:39:38 PM] [Broadlink RM] **
[2020-2-19 10:39:38 PM] [Broadlink RM] **************************************************************************************************************
[2020-2-19 10:39:38 PM] [Broadlink RM]
HAP Warning: Characteristic 00000025-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 000000B7-0000-1000-8000-0026BB765291. Adding anyway.
[2020-2-19 10:39:39 PM] [Broadlink RM] [INFO] Discovered Broadlink RM Mini (2737) at <IP_ADDRESS> (77:0f:78:18:57:7e)
[2020-2-19 10:39:40 PM] [Camera-QNAP-QVRPro] sid:lzgzb5tr
[2020-2-19 10:39:40 PM] [Broadlink RM] Condizionatore monitorTemperature
[2020-2-19 10:39:40 PM] [Broadlink RM] Condizionatore addTemperatureCallbackToQueue (device no longer active, using existing temperature)
[2020-2-19 10:39:40 PM] [DysonPureCoolPlatform] Signed in.
[2020-2-19 10:39:41 PM] [RiscoAlarm] Sesion expired, relogin...
[2020-2-19 10:39:41 PM] [eWeLink] Sending login request with user credentials: {"email":"platini76@icloud.com","password":"Portoric0","version":"6","ts":"1582148381","nonce":"158214838139100","appid":"oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq","imei":"DBF88FD7-BE6C-4E36-A342-4D2B407C1D70","os":"iOS","model":"iPhone10,6","romVersion":"11.1.2","appVersion":"3.5.3"}
[2020-2-19 10:39:41 PM] [eWeLink] Login signature: Aa2ce0q++nc5PCDycRZfdoPUQ5m/bGmvo1/ECk9HWkY=
[2020-2-19 10:39:41 PM] [DysonPureCoolPlatform] Got devices from the Dyson API.
[2020-2-19 10:39:41 PM] [B-Hyve Irrigazione] Logged into Orbit B-Hyve
[2020-2-19 10:39:41 PM] [PlatFritz] Fritz!Box platform login successful
[2020-2-19 10:39:41 PM] [PlatFritz] Discovering accessories
[2020-2-19 10:39:42 PM] [PlatFritz] Using tr64 api for guest Wifi
[2020-2-19 10:39:44 PM] [eWeLink] Authentication token received [37dca2bff6c6dac88584edce40d94bf8f35c860d]
[2020-2-19 10:39:41 PM] [Nest] Auth failed: access token specified in Homebridge configuration rejected
[2020-2-19 10:39:41 PM] [DysonPureCoolPlatform] No IP address provided for device with serial number VW3-EU-KFA3231A.
[2020-2-19 10:39:46 PM] [PlatFritz] Updating guest WLAN
[2020-2-19 10:39:47 PM] [eWeLink] WebSocket host received [eu-pconnect3.coolkit.cc]
[2020-2-19 10:39:47 PM] [eWeLink] Requesting a list of devices from eWeLink HTTPS API at [https://eu-api.coolkit.cc:8080]
[2020-2-19 10:39:47 PM] [eWeLink] eWeLink HTTPS API reports that there are a total of [3] devices registered
[2020-2-19 10:39:47 PM] [eWeLink] Evaluating if devices need to be removed...
[2020-2-19 10:39:47 PM] [eWeLink] Verifying that all cached devices are still registered with the API. Devices that are no longer registered with the API will be removed.
[2020-2-19 10:39:47 PM] [eWeLink] Device [Luce Cappa], ID : [4aabca9c-a583-4050-a133-1fb2d1301d9e] is now splitted. It will be removed.
[2020-2-19 10:39:47 PM] [eWeLink] Removing accessory [Luce Cappa]
[2020-2-19 10:39:47 PM] [eWeLink] Device [Router Home&Life], ID : [befc9c75-5272-4076-b86b-6e4ea973fed8] is now splitted. It will be removed.
[2020-2-19 10:39:47 PM] [eWeLink] Removing accessory [Router Home&Life]
[2020-2-19 10:39:47 PM] [eWeLink] Evaluating if new devices need to be added...
[2020-2-19 10:39:47 PM] [eWeLink] Device with ID [a030002d95] is not configured. Add accessory.
[2020-2-19 10:39:47 PM] [eWeLink] Device type for 23 is NEST_THERMOSTAT
[2020-2-19 10:39:47 PM] [eWeLink] Device [Termostato Nest], ID : [a030002d95] will be added
[2020-2-19 10:39:47 PM] [eWeLink] A device with an unknown type was returned. It will be skipped. a0
[2020-2-19 10:39:47 PM] [eWeLink] Device with ID [10005a0d89] is not configured. Add accessory.
[2020-2-19 10:39:47 PM] [eWeLink] Device type for 6 is SWITCH
[2020-2-19 10:39:47 PM] [eWeLink] Device [Luce Cappa], ID : [10005a0d89] will be added
[2020-2-19 10:39:47 PM] [eWeLink] Found Accessory with Name : [Luce Cappa], Manufacturer : [G1], Status : [off], Is Online : [false], API Key: [97a9ef77-7d73-4875-97b3-6c3ad3e13866]
[2020-2-19 10:39:47 PM] [eWeLink] Device type for 6 is SWITCH
[2020-2-19 10:39:47 PM] [eWeLink] Device type for 6 is SWITCH
[2020-2-19 10:39:47 PM] [eWeLink] Device with ID [100078e24d] is not configured. Add accessory.
[2020-2-19 10:39:47 PM] [eWeLink] Device type for 1 is SOCKET
[2020-2-19 10:39:47 PM] [eWeLink] Device [Router Home&Life], ID : [100078e24d] will be added
[2020-2-19 10:39:47 PM] [eWeLink] Found Accessory with Name : [Router Home&Life], Manufacturer : [Basic2], Status : [on], Is Online : [true], API Key: [97a9ef77-7d73-4875-97b3-6c3ad3e13866]
[2020-2-19 10:39:47 PM] [eWeLink] Device type for 1 is SOCKET
[2020-2-19 10:39:47 PM] [eWeLink] Device type for 1 is SOCKET
[2020-2-19 10:39:47 PM] [eWeLink] API key retrieved from web service is [97a9ef77-7d73-4875-97b3-6c3ad3e13866]
[2020-2-19 10:39:47 PM] [eWeLink] Connecting to the WebSocket API at [wss://eu-pconnect3.coolkit.cc:8080/api/ws]
[2020-2-19 10:39:47 PM] [eWeLink] Sending login request [{"action":"userOnline","userAgent":"app","version":6,"nonce":"158214838799900","apkVesrion":"1.8","os":"ios","at":"37dca2bff6c6dac88584edce40d94bf8f35c860d","apikey":"97a9ef77-7d73-4875-97b3-6c3ad3e13866","ts":"1582148387","model":"iPhone10,6","romVersion":"11.1.2","sequence":1582148387999}]
[2020-2-19 10:39:48 PM] [eWeLink] WebSocket messge received:  {"error":0,"apikey":"97a9ef77-7d73-4875-97b3-6c3ad3e13866","config":{"hb":1,"hbInterval":145},"sequence":"1582148387999"}
[2020-2-19 10:39:50 PM] [Broadlink RM] Condizionatore addTemperatureCallbackToQueue (requested temperature from device, waiting)
[2020-2-19 10:39:53 PM] [RiscoAlarm] New state detected: (3) -> DISARM. Notify!
[2020-2-19 10:40:00 PM] [Broadlink RM] Condizionatore addTemperatureCallbackToQueue (requested temperature from device, waiting)
[2020-2-19 10:40:03 PM] [PlatFritz] Alarm sensors found: none
[2020-2-19 10:40:03 PM] [PlatFritz] Buttons found: none
[2020-2-19 10:40:04 PM] [PlatFritz] Outlets found:<PHONE_NUMBER>51,087610177954
[2020-2-19 10:40:04 PM] [PlatFritz] Updating outlet<PHONE_NUMBER>51
[2020-2-19 10:40:04 PM] [PlatFritz] Updating outlet<PHONE_NUMBER>54
[2020-2-19 10:40:04 PM] [PlatFritz] Thermostats found: none
[2020-2-19 10:40:04 PM] [PlatFritz] Sensors found: none
[2020-2-19 10:40:04 PM] [PlatFritz] Initializing platform accessory 'Guest WLAN'...
[2020-2-19 10:40:04 PM] [PlatFritz] Initializing platform accessory 'FRITZ!DECT 200 #FRIGO'...
[2020-2-19 10:40:04 PM] [PlatFritz] Initializing platform accessory 'FRITZ!DECT 200 #TV'...
keep sid:lzgzb5tr
[2020-2-19 10:40:10 PM] [Broadlink RM] Condizionatore addTemperatureCallbackToQueue (requested temperature from device, waiting)
[2020-2-19 10:40:20 PM] [Broadlink RM] Condizionatore addTemperatureCallbackToQueue (requested temperature from device, waiting)
[2020-2-19 10:40:30 PM] [Broadlink RM] Condizionatore addTemperatureCallbackToQueue (requested temperature from device, waiting)
keep sid:lzgzb5tr
[2020-2-19 10:40:40 PM] [Broadlink RM] Condizionatore addTemperatureCallbackToQueue (requested temperature from device, waiting)

Can you show your config?

hello, my house is completely down... is there a solution or I have to uninstall config?

I'm not sure sure sorry. There is nothing in your logs, no errors or warnings, that suggest a problem or issue with Homebridge.

I really don't know.. I am sure that config was untouched.. all goes wrong after last update of config-ui-x
please help me...

Have you tried restarting your entire server after updating to 4.10.3?

yes. but no success as other user that has the same problem.

[2020-2-21 0:32:27] [Config] [homebridge-shelly] Error: ETIMEDOUT
[2020-2-21 0:32:27] [Config] [homebridge-broadlink-rm-tv] Error: ESOCKETTIMEDOUT
[2020-2-21 0:32:27] [Config] [homebridge-config-ui-x] Error: ESOCKETTIMEDOUT
[2020-2-21 0:32:27] [Config] [homebridge-dyson-pure-cool] Error: ESOCKETTIMEDOUT
[2020-2-21 0:32:27] [Config] [homebridge-ewelink-max] Error: ESOCKETTIMEDOUT
[2020-2-21 0:32:27] [Config] [homebridge-fritz] Error: ESOCKETTIMEDOUT
[2020-2-21 0:32:27] [Config] [homebridge-ifttt] Error: ESOCKETTIMEDOUT
[2020-2-21 0:32:27] [Config] [homebridge-nest] Error: ESOCKETTIMEDOUT
[2020-2-21 0:32:27] [Config] [homebridge-orbit-bhyve] Error: ESOCKETTIMEDOUT
[2020-2-21 0:32:27] [Config] [homebridge-qnap-qvrpro] Error: ESOCKETTIMEDOUT
[2020-2-21 0:32:27] [Config] [homebridge-risco-alarm] Error: ESOCKETTIMEDOUT
[2020-2-21 0:33:35] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[2020-2-21 0:33:40] [HB Supervisor] Restarting Homebridge...
[2020-2-21 0:33:40] [HB Supervisor] Starting Homebridge with extra flags: -D
[2020-2-21 0:33:40] [HB Supervisor] Started Homebridge with PID: 25059

reinstalled hb-service but no solved. it is all correct?
pi@home_hub:~$ sudo hb-service install --user pi
[2020-2-21 3:01:41] [HB Supervisor] Installing Homebridge Service
[2020-2-21 3:01:42] [HB Supervisor] WARNING: HOMEBRIDGE CONFIG UI PORT IN /var/lib/homebridge/config.json CHANGED TO 8581
[2020-2-21 3:01:43] [HB Supervisor] Starting Homebridge Service...
[2020-2-21 3:01:44] [HB Supervisor] Homebridge Started
Manage Homebridge by going to one of the following in your browser:

http://localhost:8581
http://<IP_ADDRESS>:8581
http://[fd84:ba1:9fd:1:5166:209b:e050:873b]:8581

Default Username: admin
Default Password: admin
pi@home_hub:~$ which homebridge-config-ui-x
/usr/bin/homebridge-config-ui-x
pi@home_hub:~$ which homebridge
/usr/bin/homebridge
pi@home_hub:~$ systemctl status homebridge
● homebridge.service - Homebridge
Loaded: loaded (/etc/systemd/system/homebridge.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2020-02-21 03:03:40 CET; 1min 53s ago
Process: 2802 ExecStartPre=/usr/lib/node_modules/homebridge-config-ui-x/dist/bin/hb-service.js before-start $HOMEBRIDGE_OPTS (code=exited, status=0/SUCCESS)
Main PID: 2811 (hb-service)
Tasks: 22 (limit: 4915)
CGroup: /system.slice/homebridge.service
├─2811 hb-service
└─2823 homebridge
feb 21 03:03:39 home_hub systemd[1]: Starting Homebridge...
feb 21 03:03:40 home_hub systemd[1]: Started Homebridge.
feb 21 03:03:42 home_hub hb-service.js[2811]: [2020-2-21 3:03:42] [HB Supervisor] Homebridge Storage Path: /var/lib/homebridge
feb 21 03:03:42 home_hub hb-service.js[2811]: [2020-2-21 3:03:42] [HB Supervisor] Homebridge Config Path: /var/lib/homebridge/config.json
feb 21 03:03:42 home_hub hb-service.js[2811]: [2020-2-21 3:03:42] [HB Supervisor] Logging to /var/lib/homebridge/homebridge.log

and this is homebridge.service (untouched since 1 year)
[Unit]
Description=Homebridge
After=syslog.target network-online.target
[Service]
Type=simple
User=pi
PermissionsStartOnly=true
EnvironmentFile=/etc/default/homebridge
ExecStartPre=-run-parts /etc/hb-service/homebridge/prestart.d
ExecStartPre=-/usr/lib/node_modules/homebridge-config-ui-x/dist/bin/hb-service.js before-start $HOMEBRIDGE_OPTS
ExecStart=/usr/lib/node_modules/homebridge-config-ui-x/dist/bin/hb-service.js run $HOMEBRIDGE_OPTS
Restart=always
RestartSec=3
KillMode=process
CapabilityBoundingSet=CAP_IPC_LOCK CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW CAP_SETGID CAP_SETUID CAP_SYS_CHROOT CAP_CHOWN CAP_FOWNER CAP_DAC_OVERRIDE CAP_AUDIT_WRITE CAP_SYS_ADMIN
AmbientCapabilities=CAP_NET_RAW
[Install]
WantedBy=multi-user.target

You could try rollback the UI to v4.10.1 which will get you back to where you were before the update 2 days ago:
sudo npm install -g --unsafe-perm<EMAIL_ADDRESS>
If you were not on 4.10.1 (released 8 days ago), just replace it with the version you were on, such as 4.10.0 (released 15 days ago).
Please reboot your entire server after downgrading just to make sure there is nothing left over from the current version (there shouldn't be, but it's good to be safe and try and isolate the issue).

it will install in : /usr/local/lib/node_modules
instead of: /usr/lib/node_modules (that is my folder)
do you kindly know why?  is this the problem?

It's not ideal.. but won't be the source of the problems you are facing.
Try this to force it to go to /usr/lib/node_modules.
npm install --prefix  /usr  -g --unsafe-perm<EMAIL_ADDRESS>

it is right that npm is in
pi@home_hub:~$ which npm
/usr/local/bin/npm
and all modules are in /usr/lib/node_modules?

Not really. But shouldn't be the cause of the issue you are facing.
I can help you fix that once we get the first issue sorted.

I want to thank mr "oznu" that help me very much in research of the problem.
it seems to be config-ui-x plugin but at the end it was not.
thank for your help friend and thank for your work here.

Happy to help; hope you go it sorted in the end.


can we customize memory allocation functions(like malloc/free) for inference with C api?

Click to expand!
Issue Type
Feature Request
Have you reproduced the bug with TF nightly?
No
Source
source
Tensorflow Version
2.8
Custom Code
No
OS Platform and Distribution
No response
Mobile device
No response
Python version
No response
Bazel version
No response
GCC/Compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current Behaviour?
When using C api to do inference, I want to customize the memory allocation functions like malloc/free to control how tensorflow allocates memory. I want to make tensorflow use a separate area of memory in some shared memory region to load the model. Is there a way to do this?
Standalone code to reproduce the issue
N/A

Relevant log output
No response

@dandlake,
Could you please elaborate about your Feature. Also, please specify the Use Cases for this feature. Thank you!

In our use case, we have multiple processes to handle various workloads. They all need to do ML inference. We are tight on memory, so we need to load the model once in shared memory, instead of every process loading a copy of the model themselves. This way, all the processes can use the model to do inference. Can this be supported?


HDFS-16211.Complete some descriptions related to AuthToken.

Description of PR
In AuthToken, some description information is missing.
The purpose of this jira is to complete some descriptions related to AuthToken.
How was this patch tested?
This is an improvement related to the documentation and does not require excessive testing.
More details:HDFS-16211

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
0m 57s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  1s

codespell was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

-1 :x:
test4tests
0m  0s

The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ trunk Compile Tests _

+1 :green_heart:
mvninstall
34m 53s

trunk passed

+1 :green_heart:
compile
24m 53s

trunk passed with JDK Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04

+1 :green_heart:
compile
23m 21s

trunk passed with JDK Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10

+1 :green_heart:
checkstyle
0m 39s

trunk passed

+1 :green_heart:
mvnsite
0m 44s

trunk passed

+1 :green_heart:
javadoc
0m 42s

trunk passed with JDK Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04

+1 :green_heart:
javadoc
0m 38s

trunk passed with JDK Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10

+1 :green_heart:
spotbugs
1m  0s

trunk passed

+1 :green_heart:
shadedclient
18m 56s

branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
0m 24s

the patch passed

+1 :green_heart:
compile
25m 33s

the patch passed with JDK Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04

+1 :green_heart:
javac
25m 33s

the patch passed

+1 :green_heart:
compile
22m 47s

the patch passed with JDK Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10

+1 :green_heart:
javac
22m 47s

the patch passed

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

+1 :green_heart:
checkstyle
0m 35s

the patch passed

+1 :green_heart:
mvnsite
0m 41s

the patch passed

+1 :green_heart:
javadoc
0m 33s

the patch passed with JDK Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04

+1 :green_heart:
javadoc
0m 37s

the patch passed with JDK Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10

+1 :green_heart:
spotbugs
1m  8s

the patch passed

+1 :green_heart:
shadedclient
18m 57s

patch has no errors when building and testing our client artifacts.

_ Other Tests _

+1 :green_heart:
unit
3m 44s

hadoop-auth in the patch passed.

+1 :green_heart:
asflicense
1m  0s

The patch does not generate ASF License warnings.

186m  1s

Subsystem
Report/Notes

Docker
ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3380/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/3380

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell

uname
Linux 4a5df42b4704 4.15.0-147-generic #151-Ubuntu SMP Fri Jun 18 19:21:19 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / e464f7136dbfa6bc1e3c49ff053b1493e07c3cb8

Default Java
Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3380/1/testReport/

Max. process+thread count
518 (vs. ulimit of 5500)

modules
C: hadoop-common-project/hadoop-auth U: hadoop-common-project/hadoop-auth

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3380/1/console

versions
git=2.25.1 maven=3.6.3 spotbugs=4.2.2

Powered by
Apache Yetus 0.14.0-SNAPSHOT https://yetus.apache.org

This message was automatically generated.

From the compilation results, some exceptions occur, such as:
ERROR: Failed to write github status. Token expired or missing repo:status write?
I'm not sure if this anomaly is related to the Jenkins environment.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
1m 13s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  1s

codespell was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

-1 :x:
test4tests
0m  0s

The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ trunk Compile Tests _

+1 :green_heart:
mvninstall
35m 43s

trunk passed

+1 :green_heart:
compile
27m  4s

trunk passed with JDK Ubuntu-11.0.13+8-Ubuntu-0ubuntu1.20.04

+1 :green_heart:
compile
25m 52s

trunk passed with JDK Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07

+1 :green_heart:
checkstyle
0m 40s

trunk passed

+1 :green_heart:
mvnsite
0m 51s

trunk passed

+1 :green_heart:
javadoc
0m 45s

trunk passed with JDK Ubuntu-11.0.13+8-Ubuntu-0ubuntu1.20.04

+1 :green_heart:
javadoc
0m 43s

trunk passed with JDK Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07

+1 :green_heart:
spotbugs
1m  5s

trunk passed

+1 :green_heart:
shadedclient
28m 29s

branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
0m 24s

the patch passed

+1 :green_heart:
compile
28m 53s

the patch passed with JDK Ubuntu-11.0.13+8-Ubuntu-0ubuntu1.20.04

+1 :green_heart:
javac
28m 53s

the patch passed

+1 :green_heart:
compile
21m 55s

the patch passed with JDK Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07

+1 :green_heart:
javac
21m 55s

the patch passed

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

+1 :green_heart:
checkstyle
0m 28s

the patch passed

+1 :green_heart:
mvnsite
0m 38s

the patch passed

+1 :green_heart:
javadoc
0m 34s

the patch passed with JDK Ubuntu-11.0.13+8-Ubuntu-0ubuntu1.20.04

+1 :green_heart:
javadoc
0m 30s

the patch passed with JDK Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07

+1 :green_heart:
spotbugs
1m  3s

the patch passed

+1 :green_heart:
shadedclient
25m 13s

patch has no errors when building and testing our client artifacts.

_ Other Tests _

+1 :green_heart:
unit
3m 35s

hadoop-auth in the patch passed.

+1 :green_heart:
asflicense
0m 47s

The patch does not generate ASF License warnings.

209m 15s

Subsystem
Report/Notes

Docker
ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3380/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/3380

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell

uname
Linux 01fa0414f739 4.15.0-163-generic #171-Ubuntu SMP Fri Nov 5 11:55:11 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / e464f7136dbfa6bc1e3c49ff053b1493e07c3cb8

Default Java
Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.13+8-Ubuntu-0ubuntu1.20.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3380/1/testReport/

Max. process+thread count
556 (vs. ulimit of 5500)

modules
C: hadoop-common-project/hadoop-auth U: hadoop-common-project/hadoop-auth

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3380/1/console

versions
git=2.25.1 maven=3.6.3 spotbugs=4.2.2

Powered by
Apache Yetus 0.14.0-SNAPSHOT https://yetus.apache.org

This message was automatically generated.


Do I need to explicitly down semantic-ui data and less-autoprefixer?

I follows the instruction (download semantic:ui and create a file custom.semantic.json) but still cannot get it working.
I can find the .custom.semantic.json file and didn't see the definitions. thems, sites, etc. folders.
Is there any steps I missed?

There is an issue opened for this here. My initial thought was to let the user decide what they want to use from Semantic UI and then generate the files. Feel free to add any comments/suggestions there :)
Basically you need to delete .custom.semantic.json and either restart meteor or make a modification in custom.semantic.json.

Had the same issue.
I just spent around 3 hours figuring out what's wrong with this package.
Almost ditched the idea of using it. Please make it more automatic or at least explain those issues in the docs.


[QUESTION] Storing object instances in the app context

Description
In Flask, I've found this to be a common pattern to do something like this:
run_app.py
from api.factory import create_app

app = create_app()

api/factory.py
from flask import Flask, current_app
import redis
import config
from api.resources.basic import basic

def create_app():
    """Create the app."""
    app = Flask(__name__)
    app.config.from_object(config.ProductionConfig)
    app.redis = redis.Redis(host=app.config["REDIS_HOST"], port=app.config["REDIS_PORT"])
    app.register_blueprint(basic, url_prefix="/api/v1")

api/resources/basic.py
from flask import current_app
from flask import Blueprint
from webargs import fields
from webargs.flaskparser import use_args

mod = Blueprint('basic', __name__)
write_args = {"value": fields.Str(required=True)}

@mod.route('/<str:key>', methods=['POST'])
@use_args(write_args, key)
def create_resource(args, key):
   """POST resource to redis."""
   current_app.redis.set(key, args["value"])
   current_app.logger.info("inserted value into redis")
   return {key: args["value"]}, 201

@mod.route('/<str:key>', methods=['GET'])
def retrieve_resource(key):
   """GET value from redis."""
   return {key: current_app.redis.get(key)}, 200

Is it possible to have a 'global' app context where you can put objects shared across request contexts, where you would access objects that you don't want to keep reinstantiating because it might be expensive and because of the convenience and how it makes it easier to reason about where 'objects' live. Like current_app.redis, or current_app.logger, or current_app.kafka_producer. I read about Depends, and saw the examples provided for how to deal with dependencies / resources but I didn't see something like the above.
Might be a bad practice, but it's worked well for me so far.

You should look at: https://fastapi.tiangolo.com/tutorial/sql-databases/ I
think the db dependancy is what you describe:
On Fri, Mar 15, 2019 at 2:40 PM Lasse Vang Gravesen <
<EMAIL_ADDRESS>wrote:

Description
In Flask, I've found this to be a common pattern to do something like this:
run_app.py
from api.factory import create_app
app = create_app()
api/factory.py
from flask import Flask, current_app
import redis
import config
from webargs.flaskparser import use_args
from api.resources.basic import basic
def create_app():
"""Create the app."""
app = Flask(name)
app.config.from_object(config.ProductionConfig)
app.redis = redis.Redis(host=app.config["REDIS_HOST"], port=app.config["REDIS_PORT"])
app.register_blueprint(basic, url_prefix="/api/v1")
api/resources/basic.py
from flask import current_app
from flask import Blueprint
from webargs import fields
from webargs.flaskparser import use_args
mod = Blueprint('basic', name)
write_args = {"value": fields.Str(required=True)}
@mod.route('/write/str:key', methods=['POST'])
@use_args(write_args )
def create_resource(args, key):
"""POST resource to redis."""
current_app.redis.set(key, args["value"])
current_app.logger.info("inserted value into redis")
return {key: args["value"]}, 201
@mod.route('/write/str:key', methods=['GET'])
def retrieve_resource(key):
"""GET value from redis."""
return {key: current_app.redis.get(key)}, 200
Is it possible to have a 'global' app context where you can put objects
shared across request contexts, where you would access objects that you
don't want to keep reinstantiating because it might be expensive and
because of the convenience and how it makes it easier to reason about where
'objects' live. Like current_app.redis, or current_app.logger, or
current_app.kafka_producer. I read about Depends, and saw the examples
provided for how to deal with dependencies / resources but I didn't see
something like the above.
Might be a bad practice, but it's worked well for me so far.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/tiangolo/fastapi/issues/81, or mute the thread
https://github.com/notifications/unsubscribe-auth/ABDZPt4hbxMUXWPraZi2pTCysiKhBnXOks5vW6LUgaJpZM4b2fPB
.

--
benoit barthelet
http://pgp.mit.edu/pks/lookup?op=get&search=0xF150E01A72F6D2EE

@euri10
I read about that but I didn't think it was totally right and I didn't know how to adapt it to other resources while retaining the nice properties of the aforementioned approach.
Like for instance, if I were to create a Kafka producer for every single session that would be really inefficient, and it looks like the docs create a local sqlalchemy session at each request and then closes it.
So specifically, my issue with dependencies like suggested in the tutorial is that I didn't see a way to create an app-level instance of dependencies - where I want to avoid recreating the same instances over and over again on every request, and I also want to avoid having ephemereal resources that are initialized by a function call without really associating it with the app context.
The docs say:

request.state is a property of each Starlette Request object, it is there to store arbitrary objects attached to the request itself, like the database session in this case.

Where I would instead want an app object where I can store arbitrary objects that can be accessed throughout the application, like you can choose to store objects in the app object in Flask and then refer to those objects using the current_app context.
If I can find out a nice way to do this using this or figure out a way to adapt dependencies such that they are immediately accessible from a common location.
I'm not sure if I like the thought-model that has you call a function to initialize something somewhere. I prefer initializing everything in a factory and then associate the created instances with the app itself as to make that globally available as needed by simply using app.state.db or app.state.kafka_producer or app.state.elasticsearch.

sorry I misunderstood you
I may be wrong but I think for that you can use
@app.on_event('startup') @app.on_event('shutdown')
Le sam. 16 mars 2019 à 12:14 PM, Lasse Vang Gravesen <
<EMAIL_ADDRESS>a écrit :

@euri10 https://github.com/euri10
I read about that but I didn't think it was totally right and I didn't
know how to adapt it to other resources while retaining the nice properties
of the aforementioned approach.
Like for instance, if I were to create a Kafka producer for every single
session that would be really inefficient, and it looks like the docs create
a local sqlalchemy session at each request and then closes it.
So specifically, my issue with dependencies like suggested in the tutorial
is that I didn't see a way to create an app-level instance of dependencies

where I want to avoid recreating the same instances over and over again
on every request, and I also want to avoid having ephemereal resources that
are initialized by a function call without really associating it with the
app context.

The docs say:
request.state is a property of each Starlette Request object, it is there
to store arbitrary objects attached to the request itself, like the
database session in this case.
Where I would instead want an app object where I can store arbitrary
objects that can be accessed throughout the application, like you can
choose to store objects in the app object in Flask and then refer to
those objects using the current_app context.
If I can find out a nice way to do this using this or figure out a way to
adapt dependencies such that they are immediately accessible from a common
location.
I'm not sure if I like the thought-model that has you call a function to
initialize something somewhere. I prefer initializing everything in a
factory and then associate the created instances with the app itself as to
make that globally available as needed by simply using app.state.db or
app.state.kafka_producer or app.state.elasticsearch.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tiangolo/fastapi/issues/81#issuecomment-473521359,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABDZPv5B-_KSJrFvCaJApV4Ez9KWgM8Gks5vXNIlgaJpZM4b2fPB
.

@euri10
I think I figured out how to approximately do something like this. The request object provides access to the app object. If you assign variables to the app objects you can later access it. See for instance this line in an example API that I quickly made.
https://github.com/Atheuz/Test-API/blob/master/api/routers/basic.py#L11

Hmm, in your case, why not a global object that you can import and use directly everywhere?
As you are not using something that requires transactions or something similar, just more or less atomic operations (Kafka, Redis), you can use the same object everywhere. You don't have to attach it to the app, just import it and use it.
Dependencies are for cases that need to somehow read data from the current request or similar things.
Adding things to the request state is for situations where you need to have something through all the request, like a SQLAlchemy session.
But in your case, if it's something that can be at the same application level, you don't really need to put it as a property in the application, you can just have the global object object/variable in a file (module) and import it anywhere you need it. If you import it from different Python files, Python will take care of re-using the same file that was imported before.
Would that work for you?

@tiangolo
I've tried to keep global objects that I can import and use anywhere in other projects, but I've just found the experience of instantiating objects and attaching them as properties on the app context to be simpler to reason about and less confusing.
I think, my problem with the other approach, is a feeling that I don't know "when"/"if" global objects are instantiated, with the app context I handle instantiation through a factory where objects that I want to use are clearly instantiated and attached to the app context. If the app throws up an exception like: AttributeError: 'app' object has no attribute 'kafka_producer' - I know where to look for the problem, in the factory.py file where that instance SHOULD have been created but for some reason was not.
This also makes it simpler to test: Create an app in the conftest.py file, and then every functional object that the app requires is available through the app context without having to import 9 different functional objects. Also makes it simple to mock these properties out in cases I'm not interested in their behaviour, but rather if they get called as intended.
Examples of this in use:
Creating a logger for every single file in the application feels messy, whereas with this approach you would instantiate a logger once in the factory and assign it to the app as a property. Then the logger would be available through the app, like this: app.logger.info("I am a log entry", extra={"meaning-of-life": 42}).
This is what Flask does as well, where there is a logger object assigned to the app context that can be used anywhere in the application through current_app or app.
Similarly with config, I like to have that be part of the application itself, so I can always refer to it anywhere through the app without having to think about if I should import it. For instance, if I define an hostname for an API that needs to be used multiple places in the application, I would like it to be available through the app context without having to import anything, like so: app.config["FIREBASE_API_URL"].
This is also what Flask does, also reachable through app or current_app.
See here for an example of instantiation of a logger object:
https://github.com/Atheuz/Test-API/blob/master/api/factory.py
Then it's reused here, using the request.app that's available:
https://github.com/Atheuz/Test-API/blob/master/api/routers/basic.py#L11
This almost works for me, except not everything in an API is necessarily an endpoint, for instance you can have actions or background tasks that you call from endpoints to perform some work, and in that case the request instance is not available unless you pass it directly through from the callee. In Flask they resolve this by having it be possible to import current_app, as a proxy for app.
This is a pattern I've been using a lot over the last year and I don't know if I would want to change it without a good reason to.

I extended the pattern in my example API a little bit:
https://github.com/Atheuz/Test-API/blob/master/api/actions/storage.py#L14
Seems to be alright like this.
I'll also look into putting the objects into modules and then importing them at some point.

Cool! I'm glad you found a way to solve your problem that matches well your workflow.

@tiangolo still not totally sure about this approach. I'd like a standard way to do it. In Flask, apparently the current_app object is magic and handles locking per session that's using it so you don't end up in bad situations. The above mentioned approach would work in instances where the object to be used is atomic and/or thread safe. So I think for Kafka and Redis it might be OK. I doubt that it's OK with SQLAlchemy and I need to do something like the dependency injection to establish a local session.

For SQLAlchemy you probably want to attach the session to the request (that's what SQLAlchemy recommends), as in the docs: https://fastapi.tiangolo.com/tutorial/sql-databases/

@tiangolo, I'm working with a colleague on a FastAPI application and we're having a discussion about the merits of global module variables vs. passed dependencies. I've been advocating dependency passing as a way to modularize an application, govern access, facilitate testing, etc. For example, I've been advocating that a database repository object should be passed as a dependency of some kind and should not be a globally accessible module variable.
We noticed this issue and your comment about globals on 2019/3/17. I'm hoping you'll weigh in again since we're looking to the broader Python community for guidance on this question. Are global module variables considered idiomatic Python? Are the pitfalls of globals less applicable here? Can you think of FastAPI reference applications that heavily use module globals as a way to distribute dependencies like caches, database repositories, etc?

@ebarlas you're 100% right. The way FastAPI documentation proposing app configuration assuming you have global variables for use with (angular-style inspired)? dependency injection, and in big projects it will be a huge mess, but MORE important - it's complex to write reusable modules for different apps.
Other frameworks trying to solve this in different way, happily FastAPI is based on starlette - and there is request.state and request.app.state variables. Pseudo-code for proper application configuration will look something like this, use this factory in tests to override settings without ugly hacks like documentation suggests.
create_app(**config):
  config.set_default('debug', true)
  config.set_default('db_url', 'sqlite://:memory:')
  app = Starlette(app)
  app.state.config = config
  setup_database(app)  # reads app.state.config, register middleware for request.state.db_session
  setup_redis(app)  # something similar
  return app

Hmm, in your case, why not a global object that you can import and use directly everywhere?
As you are not using something that requires transactions or something similar, just more or less atomic operations (Kafka, Redis), you can use the same object everywhere. You don't have to attach it to the app, just import it and use it.
Dependencies are for cases that need to somehow read data from the current request or similar things.
Adding things to the request state is for situations where you need to have something through all the request, like a SQLAlchemy session.
But in your case, if it's something that can be at the same application level, you don't really need to put it as a property in the application, you can just have the global object/variable in a file (module) and import it anywhere you need it. If you import it from different Python files, Python will take care of re-using the same object that was imported before.
Would that work for you?

@tiangolo
Hi ! I would be very interested to do that !
My use case :
I want to load an object from S3 when creating the app, to be able tu use this object in the functions.
my code looks like :
app = FastAPI()
bucket = connect_to_s3_bucket(bucket_name='azerty')
object1, object2 = load_from_s3_pickles()

@app.get("/recommendations/{user_id}")
def get_recommendations(user_id: str):
        reco = make_recommendations(user_id, object1, object2)
    return {"recommendations": reco['productId'].iloc[:50].to_dict()}

I am experiencing troubles with this, what do you think of my implementation

I am experiencing troubles with this, what do you think of my implementation

@MchlUh you are commenting on a closed issue and I do not see 1) what your problem is and 2) how the snipped relates to global state. I suggest you create a new question issue and provide a minimal working example.

I am experiencing troubles with this, what do you think of my implementation

@MchlUh you are commenting on a closed issue and I do not see 1) what your problem is and 2) how the snipped relates to global state. I suggest you create a new question issue and provide a minimal working example.

Thanks, I'll follow your advice

@ebarlas you're 100% right. The way FastAPI documentation proposing app configuration assuming you have global variables for use with (angular-style inspired)? dependency injection, and in big projects it will be a huge mess, but MORE important - it's complex to write reusable modules for different apps.
Other frameworks trying to solve this in different way, happily FastAPI is based on starlette - and there is request.state and request.app.state variables. Pseudo-code for proper application configuration will look something like this, use this factory in tests to override settings without ugly hacks like documentation suggests.
create_app(**config):
  config.set_default('debug', true)
  config.set_default('db_url', 'sqlite://:memory:')
  app = FastAPI(app)
  app.state.config = config
  setup_database(app)  # reads app.state.config, register middleware for request.state.db_session
  setup_redis(app)  # something similar
  return app

FYI!
There is now a documentation that describes that approach https://fastapi.tiangolo.com/tutorial/sql-databases/#about-requeststate

I would not use the app or request state as that can't be properly typed, so tooling like editors and mypy won't be able to help you make sure that you're not making bugs detectable by those tools, giving you certainty that your app is bug free, at least from type errors. You would also not get autocompletion in your editor.
If I needed to have something that works like a global but that I would be able to change, for example in tests, I would use a function that returns the value, and I would put an lru_cache to make sure it returns the same thing always. Like in the docs for settings: https://fastapi.tiangolo.com/advanced/settings/#creating-the-settings-only-once-with-lru_cache

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.


Plugin Architecture

Implement a collection of plugin hooks which are executed at various stages in the socket pipeline which can be used to trigger behaviour in custom plugins. These plugins must be written in Go and will be loaded at server start with their configurations. This can be used to reduce the number of SDKs required in game clients for analytics, Ads, dynamic IAP prices, etc.

I've put together an initial outline on what the plugin API will look like:
https://github.com/heroiclabs/nakama-plugins/blob/master/example/example.go
It'll be a unidirectional events API which can be used to stream information into other services like analytics and backoffice support tools. The plugin system will work as follows:

A plugin worker pool will be created at server start.
Each plugin will be read from the datadir and loaded.
The plugins will be "scanned" so only events they're registered to listen on will be sent.
All plugins will have their Start function called. Plugins are named and will be loaded by name lexicographically for deterministic execution.
Events emitted by the socket connections for each client will be collected on a queue.
The queue will be read by the plugin worker pool.
Each plugin registered for the events (which will be batched) will receive them and can operate on the info.

The design above allows the game server to be configured to limit the resource utilisation produced by connected clients. An important element of the design is also that when too many messages are pushed onto the queue and the queue capacity is reached it will be purged. This ensures the server can never be OOMed by too many game client connections or slow plugins.
The "queue" mentioned above will actually be implemented as a circular buffer for performance. The consequence of the design (which balances server availability, resource limits, and performance) is that some events will never reach the plugins if the worker pool cannot keep up with the producers (game clients).
Plugins will be written in Go only.

I'm trying to get the plugin system working. I know it's WIP, but I'm following the setup from: https://github.com/heroiclabs/nakama/blob/master/sample_go_module/README.md
I'm building the minimal example with Docker using the nakama-pluginbuilder:2.3.1 container. Nakama container version is 2.3.1 as well. However this is what I see when server tries to load the plugin:
{"level":"info","ts":"2019-01-16T12:52:36.468Z",
 "msg":"Initialising runtime","path":"/server/data/modules"}
{"level":"fatal","ts":"2019-01-16T12:52:36.568Z",
 "msg":"Error reading InitModule function in Go module",
"name":"playwin",
"stacktrace":"github.com/heroiclabs/nakama/server.NewRuntimeProviderGo\n\t/go/src/github.com/heroiclabs/nakama/server/runtime_go.go:1821\ngithub.com/heroiclabs/nakama/server.NewRuntime\n\t/go/src/github.com/heroiclabs/nakama/server/runtime.go:392\nmain.main\n\tmain.go:109\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:201"}

Seems that it's function signature validation issue:
https://github.com/heroiclabs/nakama/blob/1174be795ccdf39343ac136d256a93dfb1c326b5/server/runtime_go.go#L1821
..but I've checked this multiple times now, pretty sure it's ok. Any ideas how to debug this futher?

I also encountered this problem, I've checked that all day but can't solve.

@mosdeo Is there a particular reason you've used the 2.3.1 release of Nakama? I would recommend you use the latest release of Nakama which is 2.9.0.
In the 2.7.0 release we had to change how the runtime package for Nakama is imported. It became part of a separate repo (i.e. nakama-common) so that Go's new(er) dependency management solution with modfiles could be supported.
This will be why the InitModule signature appears wrong because the Go types are different as they come from different dependencies. If you continue to have trouble please open a question on the forums.

This was completed in an earlier release of Nakama and is documented now as "Events":


Finalize - no button

Using registrar.ens.domains with Parity.  I'm the winning bid, but there is no Finalize or Set Up button.  Instead the page shows a negative reveal period.

Looks like it was a problem with the browser cache or possibly Parity needed to finish downloading the node.  Resolved itself.


Failed build on Windows 7x64 OS

I recently downloaded version 1.0.9 and attempted to build the project, but was met with unit test failures.
I tried to compile by running mvn package, and was met with the following test failures:
Failed tests:
rootFolderHasTheExpectedProperties(com.coveo.nashorn_modules.FilesystemFolderTest)
getFolderReturnsAnObjectWithTheExpectedProperties(com.coveo.nashorn_modules.FilesystemFolderTest)
Tests run: 68, Failures: 2, Errors: 0, Skipped: 0
OS info:
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T11:41:47-05:00)
Maven home: C:\apache-maven\bin..
Java version: 1.8.0_102, vendor: Oracle Corporation
Java home: C:\Progra~1\Java\jdk1.8.0_102\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"
Any insight into what might be going wrong would be appreciated!

It seems the unit tests looking at the path information don't account for Windows OS, which have paths in the format of drive:\path\someotherpath.  While I can disable these tests to get the build to completion, the larger question is, is the fact that these tests are failing going to cause an issue with the library functionality?

Hi @cookch10
I'm using this module on Windows and I've no issue. I think that the problem is how the class FilesystemFolder and the related test have been written.
The FilesystemFolder  is a wrapper of a folder and when examining a path to a resource (referenced with the require call) it adds the character '/' when creating the subfolder wrapper.
In Java working with this character as separator is "portable" both in Windows and in Unix like path style but after the creation of a File object the "universal separator" is converted in the style of the underlying system (see the property File.separator). So the test that fail is not "portable".
I think the correct way to write the test for the method rootFolderHasTheExpectedProperties (to test the class as it is written at the moment) could be:
  @Test
  public void rootFolderHasTheExpectedProperties() {
    assertTrue(root.getPath().startsWith(file.getAbsolutePath().replace(file.getPath(), "")));
    assertTrue(root.getPath().endsWith(file.getPath() + "/"));
    assertNull(root.getParent());
  }

Hope this helps.

Thanks for the suggestion, I made a PR with your proposed change. It works on OS X, but I have no Windows machine to test it. I'll try spinning up a VM later, but @cookch10 if you can try it out and report your findings that would be very kind of you 😁

Hi @malaporte,
happy to hear you. If you are opened to my proposal I would like to be more drastic. I propose:

in FilesystemFolder use File.separator instead of "/"
in FilesystemFolderTest remove all assert based on string constants and use File.getPath and File.separator to:

to retrieve the root path, i.e  on Win s.o. and / on POSIX s.o. then use this root path when assert Folder.getPath.startsWith
to assert Folder.getPath.endsWith

I attach you the two modified files tested under Windows.
I'm very happy about your work and I'm willing to contribute more and more if possible ;)
Bye
arisone
FilesystemFolderAndTest.zip

I tested it with your change @malaporte , however, I still get one failing test:
Failed tests:   getFolderReturnsAnObjectWithTheExpectedProperties(com.coveo.nashorn_modules.FilesystemFolderTest)
Tests run: 68, Failures: 1, Errors: 0, Skipped: 0

Hi @cookch10 it fails for the same reason.
In this comment more drastic solution I've proposed a change both on class and on test which should fix the issue.

@arisone, are you planning on submitting a PR with your suggested changes?  Wondering if I should open one up, but don't want to duplicate efforts.  Thanks!

You are welcome @malaporte. Thanks a lot to you for the great work you've done with this project.

Thanks @malaporte and @arisone!  A great project indeed.


have we need to add any depedency??

have we need to add any depedency??
Originally posted by @asif3593 in https://github.com/ZieIony/Carbon/issues/157#issuecomment-1160144750

I'm not sure I understand the question. All features provided by this library require adding it as a dependency. See:https://github.com/ZieIony/Carbon/wiki/Installation


Generating the unit vectors image from the intrinsic data stored on the O3D device

Hello,
( I am using an O3D device with firmware version 1.30.5309)
I have gone through all the documentation I could find on the intrinsic calibration stored on the device (this github issue was particularly useful https://github.com/ifm/ifm3d/issues/108) but I still cannot find an answer to the following question:
How can I reconstruct the unit vector image from the intrinsic data stored on the device?
The goal being to record only this more compact representation of data and regenerate the unit vector image representation as needed.
I have tried many things and I am getting close but there is still a small different between the unit vector image I generate from the intrinsics data (well more specifically what is referred to as the "inverse" intrinsic calibration in this repository) and the unit vectors reported by the device.
Here is how far I've got so far:

I've configured the device to not rectify the amplitude image and the distance image
I've set all extrinsics parameters in the device configuration to 0.
I've extracted the inverse intrinsic calibration from the device using the  InverseIntrinsics function
I've extracted the extrinsic calibration (optical frame to -> ifm frame) stored on my device using the Extrinsics() function to express the unit vectors I generate in the ifm frame (the unit vectors are reported in this frame if I understood correctly this unit test correctly).

Given that, I use the following python snippet to generate the unit vector image:
import image_geometry
import numpy
import math
from tf.transformations import quaternion_from_euler, quaternion_matrix
from sensor_msgs.msg import CameraInfo

cam_info_msg = CameraInfo()
cam_info_msg.height = 264
cam_info_msg.width= 352
cam_info_msg.distortion_model = "plumb_bob"
cam_info_msg.D = [-0.3871031701564789, 0.07685842365026474, 0.0, 0.0, 0.09532918781042099]
cam_info_msg.K = [353.70770263671875, 0.0,<PHONE_NUMBER>173828, 0.0,<PHONE_NUMBER>3671875,<PHONE_NUMBER>9296875, 0.0, 0.0, 1.0]
cam_info_msg.P = [353.70770263671875, 0.0,<PHONE_NUMBER>173828, 0.0, 0.0,<PHONE_NUMBER>3671875,<PHONE_NUMBER>9296875, 0., 0.0, 0.0, 1.0, 0.]
cam_info_msg.R = [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0]
cam_info_msg.binning_x = 1
cam_info_msg.binning_y = 1

cam_model = image_geometry.PinholeCameraModel()
cam_model.fromCameraInfo(cam_info_msg)

optical_to_ifm_transform =  quaternion_matrix = quaternion_matrix(
    quaternion_from_euler(
        math.radians(0.200534582138), 0.,  math.radians(0.368382424116)))
# this is the optical -> ifm transform stored on my device

unit_vectors = numpy.zeros((cam_info_msg.height, cam_info_msg.width, 3))
for i in xrange(cam_info_msg.height):
    for j in xrange(cam_info_msg.width):
        rectified_coords = cam_model.rectifyPoint((float(j) + 0.5, float(i) + 0.5))
        vector = cam_model.projectPixelTo3dRay((rectified_coords[0] - 0.5, rectified_coords[1] - 0.5))
        unit_vectors[i, j, 0] = vector[0]
        unit_vectors[i, j, 1] = vector[1]
        unit_vectors[i, j, 2] = vector[2]
        unit_vectors[i, j, :] = numpy.dot(optical_to_ifm_transform[0:3,0:3], unit_vectors[i, j, :])

The coordinates unit vectors I get differ from the original on average by ~ 0.001 and at most  by0.002.

I don't have an answer to your primary question off the top of my head; let me dig in and get back to you.
In the meantime is your goal to minimize network utilization (by not needing to transfer the UVEC image array on each frame) or storage (not needing to keep a copy of the unit vectors around in memory)? If network, you could always create the ifm3d::FrameGrabber with the UVEC flag specfied, cache the vectors, and then reset/re-create a new FrameGrabber without the flag set.

Actually I just noticed that based on your imports, you're using ROS. Are you using the ifm3d-ros bindings? If so, the idea I mentioned is already implemented. Unit vectors are pulled from the device once at init, published to a latched topic, and then the FrameGrabber is reconfigured to not stream unit vectors any longer.
Implementation: https://github.com/ifm/ifm3d-ros/blob/36850c79b987985b45132f86a2b615da6913924e/src/camera_nodelet.cpp#L540

Hey @GreNait do we have any official application notes describing how to derive the unit vectors from the calibration information?

Awesome, thanks for the quick reply!

Actually I just noticed that your sample code is ROS based. Are you using the ifm3d-ros bindings? If so, the idea I mentioned is already implemented. Unit vectors are pulled from the device once at init, published to a latched topic, and then the FrameGrabber is reconfigured to not stream unit vectors any longer.

Very good point! and yes that's what I do currently to minimize the network overhead.

In the meantime is your goal to minimize network utilization (by not needing to transfer the UVEC image array on each frame) or storage (not needing to keep a copy of the unit vectors around in memory)? If network, you could always create the ifm3d::FrameGrabber with the UVEC flag specfied, cache the vectors, and then reset/re-create a new FrameGrabber without the flag set

My goals are:

minimize network utilization (and you've completely addressed this point)
handling the O3D camera just like any other camera (with an extra depth channel), this would have the big advantage of being able to reuse a lot of boilerplate code as is (i.e. without adding if else statement for dealing with the unit_vector image representation instead of the sensor_msgs.msg/CameraInfo representation of the intrinsics).

Cool, glad that was useful.
Your point is understood -- let me circle back internally and see if we have any documentation (already) on the computation of unit vectors. If not it might be a good candidate to put a sample together for, like we did for image rectification.
There's also this issue floating around on our ROS driver that I haven't gotten to...would this be useful? If so I'll consider this to be another vote in favor of doing that work sooner.

Your point is understood -- let me circle back internally and see if we have any documentation (already) on the computation of unit vectors. If not it might be a good candidate to put a sample together for, like we did for image rectification.

Thanks!

There's also this issue floating around on our ROS driver that I haven't gotten to...would this be useful? If so I'll consider this to be another vote in favor of doing that work sooner.
I ended up implementing something along these lines. I'll try to submit a PR if that's ok with you.

Hey @flajolet -- @GreNait is still checking internally on the intrinsics question.
In the meantime, always happy to review and accept community PRs.

Hey @flajolet -- @GreNait is still checking internally on the intrinsics question.

Thanks for following up!

In the meantime, always happy to review and accept community PRs.

Great, I'll try to put something together.

Hey @flajolet -- sorry for the delay on this topic. Here's an example jupyter notebook demonstrating the process of computing the unit vectors (and then on to the cartesian data) from the camera's intrinsics parameters. Tested on an O3D303.

Thank you so much, this is very helpful!

Glad it's helpful.
By the way, while working on that document I also saw errors on the order of 1e-3 in my computed unit vectors versus the values read from the camera. But, as you can see when projecting back to cartesian, this error doesn't seem to be enough to make a significant difference. Might just be standard floating point precision stuff.
I'm going to close this, feel free to re-open or create a new issue as needed.


Windows terminal's light/dark window theme does not change automatically when changed in windows settings

Environment
Windows build number: Microsoft Windows NT 10.0.19631.0
Windows Terminal version (if applicable): 1.0.1401.0
Steps to reproduce

open windows terminal, keep this open
in PowerShell(either in that terminal window or elsewhere) type Start-Process -FilePath 'ms-settings:personalization-colors'
use the dropdown menu to change the value of the 'change your colour' option
notice that all the windows on your screen(setting, windows store apps, chromium Microsoft edge) change from a whatever light/dark theme they were set to, to its opposite. windows terminal does not.

Expected behavior
I would expect that the light/dark theme of open windows terminal windows would change automatically when it is changed in the system settings.
Actual behavior
Windows terminal will not change its light/dark theme automatically, instead for it to change you will have to close the window, clearing all session variables, and open a new window where the light/dark theme is as changed in system settings

Thanks for the report! This is actually already being tracked by another issue on our repo - please refer to #1230 for more discussion.
/dup #1230


[Bug] App crashes during batch backup

Hello,
I am on a Pixel 6 running latest version of Android 13.
When I select all apps (Total of 387), it will export and crash seconds later. No error message, no force close but just puts me back at home launcher.
It exports some apps fine, it managed to export 26 the first time.
p.s as theres no option to hide system apps, thats why the total of 387 apps is so many.

Thanks, I see, I think I can add a new tab ("Pending tasks" or "Background jobs") to group all exports and do it in background (no more single task, this will avoid this critical crash). Also do you mind to explain what is your use-case? I find many people trying to export all apks, but I never really understood the purpose, what you wanna do with all these apks? I don't see any problems of course, it's your device; I'm just curious.

@alexrintt I plan to un-root my device and re-lock bootloader.
My only use case for root anymore is backing up app data (currently done with Neo backup), although thats not actually needed in my case anymore.
So because I wont have root anymore, that app won't work. So I was looking for an app that just backs up all apks alone.
Many apps I've installed via fdroid and so d like to just place them all in a specific directory for quick install when restoring. (I don't rely on google cloud for backup, privacy reasons), though even if I did use google cloud backup it would only re-install apps from play store but not sideloaded apps. And adb backup is depreciated and may be removed soon so I dont want to rely on it.

@alexrintt hey i also have a similar question, the apps that we extract from this app will also take all the data in apk?
Like for example if i have termux app which is 14gb in size (installed kali nethunter in it) and i export it as apk and installed in another andorid device, so will it exactly install the app with all the data without any dataloss?


K8SPXC-502 add annotations only if vault is not empty

Test name
Status

haproxy
passed

scaling
passed

recreate
passed

storage
passed

smart-update
failed

big-data
passed

init-deploy
passed

self-healing
passed

scaling-proxysql
passed

upgrade
passed

restore-to-encrypted-cluster
passed

limits
passed

monitoring
passed

upgrade-consistency
failed

monitoring-2-0
passed

demand-backup
passed

self-healing-advanced
passed

affinity
passed

one-pod
passed

operator-self-healing
passed

auto-tuning
passed

proxysql-sidecar-res-limits
passed

security-context
passed

scheduled-backup
passed

users
failed

demand-backup-encrypted-with-tls
passed

Test name
Status

haproxy
passed

smart-update
failed

storage
passed

scaling
passed

init-deploy
passed

self-healing
passed

scaling-proxysql
passed

limits
passed

self-healing-advanced
passed

upgrade
passed

monitoring
passed

operator-self-healing
passed

upgrade-consistency
failed

monitoring-2-0
passed

recreate
passed

affinity
passed

restore-to-encrypted-cluster
passed

one-pod
passed

demand-backup
passed

auto-tuning
passed

scheduled-backup
passed

proxysql-sidecar-res-limits
passed

demand-backup-encrypted-with-tls
passed

users
failed

big-data
passed

security-context
passed

Test name
Status

scaling
passed

haproxy
passed

big-data
passed

smart-update
failed

recreate
passed

storage
passed

scaling-proxysql
passed

init-deploy
passed

self-healing
passed

upgrade
passed

restore-to-encrypted-cluster
passed

limits
passed

upgrade-consistency
passed

monitoring
passed

monitoring-2-0
passed

demand-backup
passed

self-healing-advanced
passed

security-context
passed

affinity
passed

one-pod
passed

operator-self-healing
passed

auto-tuning
passed

proxysql-sidecar-res-limits
passed

users
failed

scheduled-backup
passed

demand-backup-encrypted-with-tls
passed

Test name
Status

haproxy
passed

init-deploy
passed

limits
passed

smart-update
failed

monitoring
passed

monitoring-2-0
passed

affinity
passed

one-pod
passed

auto-tuning
passed

proxysql-sidecar-res-limits
passed

users
failed

storage
passed

self-healing
passed

self-healing-advanced
passed

operator-self-healing
passed

recreate
passed

restore-to-encrypted-cluster
passed

demand-backup
passed

scheduled-backup
passed

demand-backup-encrypted-with-tls
passed

scaling
passed

scaling-proxysql
passed

upgrade
passed

upgrade-consistency
passed

security-context
passed

big-data
passed


dbt_run_operation operator fails with no arg

I have a macro that I can trigger from the cli with no arguments however it fails when triggered from airflow via the DbtRunOperation operator. Is this expected behavior?
The error I get in the airflow logs is ERROR - 20:54:11  Encountered an error while running operation: a string or stream input is required

Hey @samLozier, thanks for reporting this issue. I tested it out and indeed I've reproduced the same scenario.
I quickly was able to identify a bug in the default argument for the args parameter of run-operation. I've fixed that in #66, as well as added a unit test that catches the bug. Once tests are green I'll cut release v0.14.5 with the patch.

Thanks @tomasfarias !


Increment version for template releases PRs being constantly filed

No-one is releasing template but we have ~60 PRs in both open and closed states in the repo.

Maybe what needs to happen here is to add @Azure/azure-sdk-eng to the CODEOWNERS for all of the templates.

We can also look into options about updating existing version bump PR's instead of opening new ones. @chidozieononiwu we can probably do this by making the version bump branch name only account for the service directory instead of including the pipeline id.
We will of course need to test that strategy and ensure that we don't end up with merge conflicts because they will be updating the same links in the files and if they push a new commit that might fail.


csv: proxy-aware/fips annotation (PROJQUAY-3709)

Add proxy-aware and fips in the list of infrastructure features.

@HammerMeetNail we don't need to manually port this to midstream anymore, right ?

@HammerMeetNail we don't need to manually port this to midstream anymore, right ?

Right, it's all done automatically now.

/cherry-pick redhat-3.7


Add shell tool clean

This just adds a shell tool. The tool itself is not used directly (though it could potentially replace some common tools? Not sure that we gain anything from it though :) ).
I am adding this since it is an extremely useful tool for Fab scripts. For example, many scripts might want to query nf-config for compiler- and linker flags for using NetCDF. Since it was decided not to support running Fab-triggered command using a shell (which would allow a configuration to use $(nf-config ..fflags) etc), applications now need to explicitly run a shell command.
With a shell tool in Fab (which will check various shells to find one that is available on the platform), this becomes a lot more convenient and reduces code duplication.
Unfortunately, I could not find a generic way of testing if a shell is available with a single parameter (e.g. some shells have no version command), so the most portable way I could think of was to run an echo something command ... which then requires at least two parameters (-c  and echo something), requiring many changes in tool to support a list of strings instead of only a single string.

@MatthewHambley, thanks for your comments. Notice that this PR is a bit in 'your future', it's 4 prs ahead of main, which is why I had it marked for Jason ;)
Not sure how you would like to proceed. I won't try to merge the PRs in out-of-order - I've spent way too much time when I migrated our branches across (admittedly because of user error ... I mixed up the order of two branches ;) ). So you can either continue, and once this is OK, I'll keep it in its position, and we just merge it when we reach it. Or you wait till I 'trickle' this PR through to you as the next one, and I'll let Jason finish this for now (i.e. for a merge into develop)

Ready for next review.

I have checked, all applications we have at are de-facto sh script, so since you are really concerned, we can remove bash etc from the loop, so only sh gets created. Note that I still want the test that sh works, just to be consistent among all tools, and give better error messages to the user (i.e. 'sh' is not available, as opposed a potential cryptic error message when the user tries to run a script, which then might not work).
Thanks!


Using github vars for workflow directory

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 97.44%. Comparing base (2bcf8a4) to head (00d7fa0).

Additional details and impacted files

@@           Coverage Diff           @@
##           master      #69   +/-   ##
=======================================
  Coverage   97.44%   97.44%
=======================================
  Files          34       34
  Lines         469      469
  Branches       59       59
=======================================
  Hits          457      457
  Misses         11       11
  Partials        1        1


stage1: host flavor: copy systemd-journald units

They were missing.

LGTM, although a dynamic solution that does a recursive dependency search would be awesome! My guess is that these units change between systemd version.

LGTM


Add solutions for numpy_question.py and sklearn_questions.py

The solution for Lab4 has been pushed and raises no errors during the tests by the continuous integration (CI) system.


Real Jupyter functional tests on Windows take far too long

I've had to bump up the timeout way up for the nightly flake suites. And it's just windows causing this issue. My quick guess is that it's the "locate the right jupyter to launch" code, as I think that multiple SxS versions of Python are installed on the test boxes.

Is there any thing that extension team should investigate here? This does not look like something we can address.

Oops that's was accidental,

Following the directions here:
https://stackoverflow.com/questions/42997898/how-to-enable-source-map-support-for-node-js-prof-process
and by making a new test entry like this in the package.json:
        "test:functional:perf": "node --inspect-brk ./node_modules/mocha/bin/_mocha --require source-map-support/register --opts ./build/.mocha.functional.perf.opts",

I can profile the tests.

Additionally using this is also possible, just not as nice of an output:
https://nodejs.org/en/docs/guides/simple-profiling/

Looks like the majority of the time is enumerating interpreters by asking the registry. We do this on every test.
Hotspots:

getInterpretersFromRegistry
getInterpreterDetails

Validated via the most recent test results timing. Now just 2x linux mac and only 1 hour.


Height is a decimal problem

When the height is decimal, the decimal part is less than 0.5.The calculated height will lose a fraction.At this point, if "border-bottom" exists, it will cause "border-bottom" to disappear

Fixed in v5.0.0 #1205


Adding Anadolu Uni

@isscawdmnet We do not recognize this university as eligible for granting free tools to the students there due to nature of the university rules related to assigning email addresses and other policies. Regrettably, I have to close the request without merging.


Checkout testcases

Description
Test cases & name validity check for the branch name
Types of changes

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

Checklist:

[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[x] I have added tests to cover my changes.
[ ] All new and existing tests passed.

So I'm a bit confused as to the status of this? I think there's a lot of overlap with #32, and this branch doesn't seem like it's really kept up with the changes in master.
Do you want to continue with this PR? Or include the relevant changes in #32 along with a most focused commit for the remainder?

The TODOs in this PR is not just related to #32. There are few other changes that we haven't looked into at all. So I would say, let's merge this and then along with rebasing #32, will sort out what's required there. Once #32 lands, we'll have a stable master on which I can do a clean up perhaps.

Ok sounds good. I'm just going to rerun the tests to make sure everything is OK, then will merge this and rebase #32.


Added new PHP client library allansun/kubernetes-php-client

PHP client library automatically generated from Swagger on daily basis.

I signed it

/lgtm
/approve


raftkv: add admin command failed log

What is changed and how it works?

Issue Number: ref #15258
What's Changed:

raftkv: add admin command failed log

Check List
Tests

Integration test

Release note
None

/merge


how can i  config   per-route http timeouts  by  gateway 2.1.33

our online version is using spring cloud +eureka +gateway
and my gateway verion is  2.1.33
how can i config a single service timeout  otherwise  all service by one
i find the oldest document
https://docs.spring.io/spring-cloud-gateway/docs/2.2.10.RELEASE/reference/html/#http-timeouts-configuration
but 2.1.33 doesn't have this metadata

Use a supported version (currently 4.1.x)


Fix Slow Ring Windows 10 for Release 19041

Update the Win 10 Release 19041 to reflect that it was/is an update for both Fast and Slow rings - as stated in the linked description itself (and reflected in my test machine).

@moekhalil It's already included in https://github.com/MicrosoftDocs/windows-insider/pull/268.

@moekhalil - Closing this PR since the suggested changes is already part of PR #268 created by ItzLevvie.


Is this package dead?

I would love to use realtime-py for some app backend - but based on the number of commits in the past few months,
I am wondering if this project is dead?

This project isn't dead. Sorry we have been absent from it for so long, we are now putting more time into our Python libraries and looking to get them on par with our JavaScript libraries.

@silentworks can you help with solution for broadcast and https://github.com/supabase-community/realtime-py/issues/39 ?

This project isn't dead. Sorry we have been absent from it for so long, we are now putting more time into our Python libraries and looking to get them on par with our JavaScript libraries.

I got this working: https://github.com/bitnom/aiorealtime in-case it's of any interest. Don't expect best practices everywhere. I'm in a hurry with something at the moment.

The latest version 2.0.2 is a working version of this library.


it's possible to have some rare timing issues. also, deactivate servi…

…ce (esp. global)
at end of test

@ibuildthecloud

@alena1108 @ibuildthecloud
Should fix the intermittent update_labels TF we get in drone.  The deactivation of global service wasn't necessary for this fix, but I figure it's good to not have those lying around since I'm not sure it plays nicely when we do the rest of the test teardown and I think could cause hangups downstream.

LGTM

LGTM


Add C++ docs to repository

Adds documentation by @davidbaraff on the design and implementation of the C++ core and pybind11 wrapper.
Co-authored by: @davidbaraff

Codecov Report

Merging #610 into master will decrease coverage by 0.02%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #610      +/-   ##
==========================================
- Coverage   81.69%   81.67%   -0.03%
==========================================
  Files          72       72
  Lines        2732     2729       -3
==========================================
- Hits         2232     2229       -3
  Misses        500      500

Flag
Coverage Δ

#py27
81.67% <ø> (ø)
:arrow_up:

#py36
?

#py37
?

Impacted Files
Coverage Δ

...ntimelineio/opentimelineio-bindings/otio_utils.cpp
87.05% <0%> (-0.16%)
:arrow_down:

...eio/opentimelineio-bindings/otio_anyDictionary.cpp
100% <0%> (ø)
:arrow_up:

...elineio/opentimelineio-bindings/otio_anyVector.cpp
100% <0%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

This is super helpful! While the C++ is already pretty approachable, this adds a ton of clarity.


proj: 7.2.1 -> 8.1.1

Motivation for this change
Cartopy is no longer compatible with older versions of PROJ: https://github.com/SciTools/cartopy/pull/1854
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

cc @mpickering @MatthewCroughan

Does somebody know the URLs for GPlates 2.3.0? See https://www.earthbyte.org/download-gplates-2-3/

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

3 packages marked as broken and skipped:

openspace
python39Packages.basemap
qlandkartegt

1 package failed to build:

gplates

51 packages built:

cloudcompare
gdal (python39Packages.gdal)
gdal_2
gmt
libLAS
libgeotiff
libspatialite
mapproxy
merkaartor
octavePackages.octproj
openorienteering-mapper
osm2pgsql
osm2xmap
paraview
pdal
postgis (postgresql13Packages.postgis)
postgresql11Packages.postgis
postgresql12Packages.postgis
proj
proj7
python38Packages.basemap
python38Packages.cartopy
python38Packages.fiona
python38Packages.gdal
python38Packages.geopandas
python38Packages.osmnx
python38Packages.owslib
python38Packages.pygmt
python38Packages.pyproj
python38Packages.rasterio
python38Packages.worldengine
python39Packages.cartopy
python39Packages.fiona
python39Packages.geopandas
python39Packages.osmnx
python39Packages.owslib
python39Packages.pygmt
python39Packages.pyproj
python39Packages.rasterio
python39Packages.worldengine
pytrainer
qgis
qgis-unwrapped
qmapshack
readosm
saga
spatialite_tools
sumo
udig
valhalla
xastir

Does somebody know the URLs for GPlates 2.3.0? See https://www.earthbyte.org/download-gplates-2-3/

I managed to update GPlates but I'm still trying to convince upstream to make the tarball available under a nice URL: https://discourse.gplates.org/t/gplates-2-3-released/374/3

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

3 packages marked as broken and skipped:

openspace
python39Packages.basemap
qlandkartegt

52 packages built:

cloudcompare
gdal (python39Packages.gdal)
gdal_2
gmt
gplates
libLAS
libgeotiff
libspatialite
mapproxy
merkaartor
octavePackages.octproj
openorienteering-mapper
osm2pgsql
osm2xmap
paraview
pdal
postgis (postgresql13Packages.postgis)
postgresql11Packages.postgis
postgresql12Packages.postgis
proj
proj7
python38Packages.basemap
python38Packages.cartopy
python38Packages.fiona
python38Packages.gdal
python38Packages.geopandas
python38Packages.osmnx
python38Packages.owslib
python38Packages.pygmt
python38Packages.pyproj
python38Packages.rasterio
python38Packages.worldengine
python39Packages.cartopy
python39Packages.fiona
python39Packages.geopandas
python39Packages.osmnx
python39Packages.owslib
python39Packages.pygmt
python39Packages.pyproj
python39Packages.rasterio
python39Packages.worldengine
pytrainer
qgis
qgis-unwrapped
qmapshack
readosm
saga
spatialite_tools
sumo
udig
valhalla
xastir

nixpkgs-review throws up no new failures on macos 10.15 (but there are many existing failures, so that doesn't say too much by itself)

@ofborg eval

Expected Python to be a framework

Didn't Apple have plans to not ship macOS with Python anymore?
Should I set GPlates' platforms to linux?

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

5 packages marked as broken and skipped:

googleearth-pro
grass
openspace
python39Packages.basemap
qlandkartegt

52 packages built:

cloudcompare
gdal (python39Packages.gdal)
gdal_2
gmt
gplates
libLAS
libgeotiff
libspatialite
mapproxy
merkaartor
octavePackages.octproj
openorienteering-mapper
osm2pgsql
osm2xmap
paraview
pdal
postgresql11Packages.postgis
postgresql12Packages.postgis
postgresqlPackages.postgis (postgresql13Packages.postgis)
proj
proj_7
python38Packages.basemap
python38Packages.cartopy
python38Packages.fiona
python38Packages.gdal
python38Packages.geopandas
python38Packages.osmnx
python38Packages.owslib
python38Packages.pygmt
python38Packages.pyproj
python38Packages.rasterio
python38Packages.worldengine
python39Packages.cartopy
python39Packages.fiona
python39Packages.geopandas
python39Packages.osmnx
python39Packages.owslib
python39Packages.pygmt
python39Packages.pyproj
python39Packages.rasterio
worldengine-cli (python39Packages.worldengine)
pytrainer
qgis
qgis-unwrapped
qmapshack
readosm
saga
spatialite_tools
sumo
udig
valhalla
xastir

Does anybody object to merging this? I wanna emphasize that this disables mapnik and qlandkartegt.

Does anybody object to merging this? I wanna emphasize that this disables mapnik and qlandkartegt.

What about using proj_7 with qlandkartegt to not broke it? I still use qlandkartegt.

Does anybody object to merging this? I wanna emphasize that this disables mapnik and qlandkartegt.

What about using proj_7 with qlandkartegt to not broke it? I still use qlandkartegt.

Can you try whether it works with the following patch?
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index f1a830e964e..0f847412114 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -26900,7 +26900,10 @@ with pkgs;

   qimgv = libsForQt5.callPackage ../applications/graphics/qimgv { };

-  qlandkartegt = libsForQt514.callPackage ../applications/misc/qlandkartegt {};
+  qlandkartegt = libsForQt514.callPackage ../applications/misc/qlandkartegt {
+    proj = proj_7;
+    gdal = gdal.override { proj = proj_7; };
+  };

   garmindev = callPackage ../applications/misc/qlandkartegt/garmindev.nix {};

Maybe someone knows how we could define proj_7Packages in all-packages.nix? Then we could use proj_7Packages.callPackage for qlandkartegt.

The change looks good to me, I would say feel free to merge.
I unfortunately don't see a better solution for now than an override for qlandkartegt

@sikmir I added all overrides necessary to make qtlandkartegt use to the exact same dependencies as before this PR to all-packages.nix. Actually, they are only the same modulo the removal of preCheck from the expression for proj_7. Please test whether everything works as expected.

@sikmir I added all overrides necessary to make qtlandkartegt use to the exact same dependencies as before this PR to all-packages.nix. Actually, they are only the same modulo the removal of preCheck from the expression for proj_7. Please test whether everything works as expected.

Yes, it works for me. Thanks for keeping it unbroken!


nixos/mongodb: fix running initialScript without a set root password

Motivation for this change
Running an initialScript without having set an initialRootPassword failed because mogo tried to login to the server with a nonexistent username (root).
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[x] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

@bluescreen303 @offlinehacker @cstrahan Could you review this PR please?

I think this is an obvious one which can't break anything so I would love it if somebody could look over it. https://docs.mongodb.com/manual/reference/program/mongo/#bin.mongo shows that  --password <password>, -p <password> only makes sense noninteractively with an argument and "Specifies a username with which to authenticate to a MongoDB database that uses authentication." specifies that the user argument only makes sense if authentication is used. https://github.com/NixOS/nixpkgs/blob/5161708ff571c3ec097b3c5b753f0c5c9eb1a8d0/nixos/modules/services/databases/mongodb.nix#L112 specifies that a password is required if authentication is enabled.

Could somebody please just check the diff as this removes inserting a null value which should not make things worse. I would really like to get this merged.

@timokau Thanks for that fix! I kept your co-authorship.

/marvin opt-in
/status awaiting_reviewer


hyperrogue: 13.0v -> 13.0w

Closes https://github.com/NixOS/nixpkgs/pull/367519
Fix font not found error.
Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 367624

aarch64-darwin

:white_check_mark: 1 package built:

hyperrogue

Suggestions applied. :)

It does have a binary for macos on https://zenorogue.itch.io/hyperrogue so I thought darwin is supported. But I don't have a mac to fix it. :shrug:

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 367624

x86_64-darwin

:white_check_mark: 1 package built:

hyperrogue

aarch64-darwin

:white_check_mark: 1 package built:

hyperrogue


rbd: add doc comments to cut down on revive warnings

Assorted doc comments on functions to reduce the number of warnings produced by revive code checker tool. This continues to get us closer to making this category of checks errors rather than warnings.
Checklist

[x] Added tests for features and functional changes
[x] Public functions and types are documented
[x] Standard formatting is applied to Go code

Updated. PTAL.


Stripe Handler not reached

Hello,
I'm trying to setup webhooks from Stripe, but I don't understand what I'm doing wrong. I'm following the instruction shown here: https://docs.microsoft.com/en-us/aspnet/webhooks/
I first installed the NuGet Microsoft.AspNet.WebHooks.Receivers.Stripe package, then added the app setting key for Stripe in Web.config using Stripe's secret key ( <add key="MS_WebHookReceiverSecret_Stripe" value="sk_test_****" />). Next, I initialized the WebApiConfig with config.InitializeReceiveStripeWebHooks(); and created a StripeHandler class to handle the processing phase.

In Stripe, I'm sending a test webhook to url/api/webhooks/incoming/stripe?code=key
but nothing happens and after a little while I get a timeout error...
BTW, I'm using a tunnel application (called ngrok) so I can test the webhook without having to publish the site everytime
Please, can somebody tell me, in Leyman's terms, what I'm doing wrong and how to fix it?
Thank you very much!
Matteo

@MatteoMichelotti -Try this, it is working for me: https://<host>/api/webhooks/incoming/stripe/{id}?code=secret_key

Thank you for the reply, though I already solved my problem, I wasn't setting up the receiving controller properly.

All questions appear answered. @MatteoMichelotti please reopen if I missed something.


The keybinding is an awesome redundant confusing feature.

Always conflictions. It makes none of the packages work completely.
Much better if just put those keybindings into menu.

All keybindings are already available in the Settings View.