cannot build Docker frontend due to error from nodejs

This issue is due to https://github.com/webpack/webpack/issues/14532
#15 5.142 Error: error:0308010C:digital envelope routines::unsupported
#15 5.142     at new Hash (node:internal/crypto/hash:67:19)
#15 5.142     at Object.createHash (node:crypto:130:10)
#15 5.142     at module.exports (/app/node_modules/webpack/lib/util/createHash.js:135:53)
#15 5.142     at NormalModule._initBuildHash (/app/node_modules/webpack/lib/NormalModule.js:417:16)
#15 5.142     at handleParseError (/app/node_modules/webpack/lib/NormalModule.js:471:10)
#15 5.142     at /app/node_modules/webpack/lib/NormalModule.js:503:5
#15 5.142     at /app/node_modules/webpack/lib/NormalModule.js:358:12
#15 5.142     at /app/node_modules/loader-runner/lib/LoaderRunner.js:373:3
#15 5.142     at iterateNormalLoaders (/app/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
#15 5.142     at Array.<anonymous> (/app/node_modules/loader-runner/lib/LoaderRunner.js:205:4)
#15 5.142     at Storage.finished (/app/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:55:16)
#15 5.142     at /app/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:91:9
#15 5.142     at /app/node_modules/graceful-fs/graceful-fs.js:123:16
#15 5.142     at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3) {
#15 5.142   opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
#15 5.142   library: 'digital envelope routines',
#15 5.142   reason: 'unsupported',
#15 5.142   code: 'ERR_OSSL_EVP_UNSUPPORTED'
#15 5.142 }

How to solve
I have confirmed that the solution described in the issue will solve the problem.

/kind bug

/assign

Adding ENV NODE_OPTIONS --openssl-legacy-provider like this will solve this issue.

This should be solved by #45
Thanks @tk3fftk
/close


Is There a command to wipe out the server

As the title, my question is if there is any kind of tool command to wipe out The Ark and player profiles. Is there?

This was also requested in a round-about way by @arkfrancegaming - we can add a --wipe option to stop and restart, and/or add e.g. a wipesave command.

Thank you for the answer.

You can also just delete all the files in the save directory to wipe a server.

cd ark/Shootergame/Saved/SavedArks && rm -rf *


Torchaudio.load does not return Tensor

🐛 Describe the bug
I'm using torchaudio.load() to load an audio file, and instead of getting back a Tensor (ie. tensor([[ 0.1612,  0.2587,  0.2292]], device='cuda:0')), I'm getting <torch.Tensor object at 0x7fcfd7ea0950>. Does anyone know what's causing this?
Versions
torchaudio 0.12.1

@shoang22  Thanks for sharing the issue. Could you add a script and the audio file you use to reproduce the issue?
You can also share your pytorch and other conda environment via this script for better investigation
wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py

So it seems that my problem was loading silent audio resulting in vectors of all zeros. This works fine on loaded audio with noise.


Bebop Disconnects From Wireless Network When Driver is Launched

We are running the Bebop by connecting it to a router. The Bebop connects and we were running the driver just fine. However, today after running successfully we replaced the battery and restarted the Bebop. It connects to the network but when the driver is launched the Bebop disconnects itself from the network and the driver fails to complete the launch. An error comes up saying the connection is lost because it took too long to receive the first frame. We could see no change in the driver but still tried deleting the driver completely and rebuilding. After rebuilding the problem persisted. Does anyone know what the problem might be? Here is the output of the driver launch:
> SUMMARY
========

PARAMETERS
 * /bebop/bebop_driver/bebop_ip: <IP_ADDRESS>
 * /bebop/bebop_driver/camera_info_url: package://bebop_d...
 * /bebop/bebop_driver/reset_settings: True
 * /bebop/bebop_driver/states/enable_altitudechanged: True
 * /bebop/bebop_driver/states/enable_autotakeoffmodechanged: True
 * /bebop/bebop_driver/states/enable_camerastate_orientation: True
 * /bebop/bebop_driver/states/enable_commonstate_batterystatechanged: True
 * /bebop/bebop_driver/states/enable_commonstate_wifisignalchanged: True
 * /bebop/bebop_driver/states/enable_controllerstate_ispilotingchanged: True
 * /bebop/bebop_driver/states/enable_flightplanstate_availabilitystatechanged: True
 * /bebop/bebop_driver/states/enable_flightplanstate_componentstatelistchanged: True
 * /bebop/bebop_driver/states/enable_gpsstate_numberofsatellitechanged: True
 * /bebop/bebop_driver/states/enable_mavlinkstate_mavlinkfileplayingstatechanged: True
 * /bebop/bebop_driver/states/enable_mavlinkstate_mavlinkplayerrorstatechanged: True
 * /bebop/bebop_driver/states/enable_mediastreamingstate_videoenablechanged: True
 * /bebop/bebop_driver/states/enable_numberofsatellitechanged: True
 * /bebop/bebop_driver/states/enable_overheatstate_overheatchanged: True
 * /bebop/bebop_driver/states/enable_pilotingstate_altitudechanged: True
 * /bebop/bebop_driver/states/enable_pilotingstate_attitudechanged: True
 * /bebop/bebop_driver/states/enable_pilotingstate_flattrimchanged: True
 * /bebop/bebop_driver/states/enable_pilotingstate_flyingstatechanged: True
 * /bebop/bebop_driver/states/enable_pilotingstate_navigatehomestatechanged: True
 * /bebop/bebop_driver/states/enable_pilotingstate_positionchanged: True
 * /bebop/bebop_driver/states/enable_pilotingstate_speedchanged: True
 * /rosdistro: indigo
 * /rosversion: 1.11.19

NODES
  /bebop/
    bebop_driver (bebop_driver/bebop_driver_node)

auto-starting new master
process[master]: started with pid [3672]
ROS_MASTER_URI=http://workstation:11311/

setting /run_id to 02a842b4-13a4-11e6-8438-3c970edc4507
process[rosout-1]: started with pid [3685]
started core service [/rosout]
process[bebop/bebop_driver-2]: started with pid [3702]
[ INFO] [1462550582.810552466]: Initializing nodelet with 8 worker threads.
[ INFO] [1462550582.878636277]: [BebopSDK] 12:03:02:878 | Bebop:198 - Bebop Cnstr()
[ INFO] [1462550582.878705567]: Nodelet Cstr
[ INFO] [1462550582.886062153]: Connecting to Bebop ...
[ INFO] [1462550582.891177876]: [CB] 12:03:02:891 | Ardrone3PilotingStateFlatTrimChanged:319 - [STATES] Enabling states/ARDrone3/PilotingState/FlatTrimChanged
[ INFO] [1462550582.893775132]: [CB] 12:03:02:893 | Ardrone3PilotingStateFlyingStateChanged:363 - [STATES] Enabling states/ARDrone3/PilotingState/FlyingStateChanged
[ INFO] [1462550582.896615254]: [CB] 12:03:02:896 | Ardrone3PilotingStateNavigateHomeStateChanged:465 - [STATES] Enabling states/ARDrone3/PilotingState/NavigateHomeStateChanged
[ INFO] [1462550582.898468033]: [CB] 12:03:02:898 | Ardrone3PilotingStatePositionChanged:523 - [STATES] Enabling states/ARDrone3/PilotingState/PositionChanged
[ INFO] [1462550582.900179366]: [CB] 12:03:02:900 | Ardrone3PilotingStateSpeedChanged:588 - [STATES] Enabling states/ARDrone3/PilotingState/SpeedChanged
[ INFO] [1462550582.901976164]: [CB] 12:03:02:901 | Ardrone3PilotingStateAttitudeChanged:653 - [STATES] Enabling states/ARDrone3/PilotingState/AttitudeChanged
[ INFO] [1462550582.904435691]: [CB] 12:03:02:904 | Ardrone3PilotingStateAltitudeChanged:769 - [STATES] Enabling states/ARDrone3/PilotingState/AltitudeChanged
[ INFO] [1462550582.908986874]: [CB] 12:03:02:908 | Ardrone3MediaStreamingStateVideoEnableChanged:1045 - [STATES] Enabling states/ARDrone3/MediaStreamingState/VideoEnableChanged
[ INFO] [1462550582.912266005]: [CB] 12:03:02:912 | Ardrone3CameraStateOrientation:1096 - [STATES] Enabling states/ARDrone3/CameraState/Orientation
[ INFO] [1462550582.916254270]: [CB] 12:03:02:916 | Ardrone3GPSStateNumberOfSatelliteChanged:1256 - [STATES] Enabling states/ARDrone3/GPSState/NumberOfSatelliteChanged
[ INFO] [1462550582.922437928]: [CB] 12:03:02:922 | CommonCommonStateBatteryStateChanged:141 - [STATES] Enabling states/common/CommonState/BatteryStateChanged
[ INFO] [1462550582.930734351]: [CB] 12:03:02:930 | CommonCommonStateWifiSignalChanged:503 - [STATES] Enabling states/common/CommonState/WifiSignalChanged
[ INFO] [1462550582.936090787]: [CB] 12:03:02:936 | CommonOverHeatStateOverHeatChanged:714 - [STATES] Enabling states/common/OverHeatState/OverHeatChanged
[ INFO] [1462550582.938812280]: [CB] 12:03:02:938 | CommonControllerStateisPilotingChanged:809 - [STATES] Enabling states/common/ControllerState/isPilotingChanged
[ INFO] [1462550582.940673323]: [CB] 12:03:02:940 | CommonMavlinkStateMavlinkFilePlayingStateChanged:860 - [STATES] Enabling states/common/MavlinkState/MavlinkFilePlayingStateChanged
[ INFO] [1462550582.943380837]: [CB] 12:03:02:943 | CommonMavlinkStateMavlinkPlayErrorStateChanged:925 - [STATES] Enabling states/common/MavlinkState/MavlinkPlayErrorStateChanged
[ INFO] [1462550582.950948562]: [CB] 12:03:02:950 | CommonFlightPlanStateAvailabilityStateChanged:1201 - [STATES] Enabling states/common/FlightPlanState/AvailabilityStateChanged
[ INFO] [1462550582.953564100]: [CB] 12:03:02:953 | CommonFlightPlanStateComponentStateListChanged:1252 - [STATES] Enabling states/common/FlightPlanState/ComponentStateListChanged
[ INFO] [1462550583.055508151]: [BebopSDK] 12:03:03:055 | CommandReceivedCallback:112 - Command Received Callback LWP id is:<PHONE_NUMBER>79177
[ INFO] [1462550583.236001806]: [BebopSDK] 12:03:03:235 | Connect:287 - BebopSDK inited, lwp_id: 3702
[ WARN] [1462550583.236126052]: Resetting all settings ...
[ INFO] [1462550583.236236196]: [BebopSDK] 12:03:03:236 | ResetAllSettings:375 - All settings of the drone have been reset to default values.
[ERROR] [1462550583.305124814]: [ARCONTROLLER_Network] 12:03:03:305 | ARCONTROLLER_Network_ReaderRun:819 - ARCOMMANDS_Decoder_DecodeBuffer () failed : 2 ARDrone3.CameraState.UNKNOWN -> Unknown command
[ INFO] [1462550583.540925380]: Value for PilotingSettingsMaxAltitudeCurrent recved: 30
[ INFO] [1462550583.541043966]: [CB] 12:03:03:541 | Update:111 - Checking if PilotingSettingsMaxAltitudeCurrent exists in params ...
[ INFO] [1462550583.542928390]: [CB] 12:03:03:542 | Update:114 -   No
[ INFO] [1462550583.585796610]: Value for PilotingSettingsMaxTiltCurrent recved: 20
[ INFO] [1462550583.585906066]: [CB] 12:03:03:585 | Update:191 - Checking if PilotingSettingsMaxTiltCurrent exists in params ...
[ INFO] [1462550583.587642937]: [CB] 12:03:03:587 | Update:194 -   No
[ INFO] [1462550583.615175356]: Value for PilotingSettingsAbsolutControlOn recved: 0
[ INFO] [1462550583.615276786]: [CB] 12:03:03:615 | Update:271 - Checking if PilotingSettingsAbsolutControlOn exists in params ...
[ INFO] [1462550583.617096975]: [CB] 12:03:03:617 | Update:274 -   No
[ INFO] [1462550583.640272180]: Value for SpeedSettingsMaxVerticalSpeedCurrent recved: 1
[ INFO] [1462550583.640371232]: [CB] 12:03:03:640 | Update:512 - Checking if SpeedSettingsMaxVerticalSpeedCurrent exists in params ...
[ INFO] [1462550583.642037757]: [CB] 12:03:03:641 | Update:515 -   No
[ INFO] [1462550583.653155000]: Value for SpeedSettingsMaxRotationSpeedCurrent recved: 100
[ INFO] [1462550583.653275477]: [CB] 12:03:03:653 | Update:592 - Checking if SpeedSettingsMaxRotationSpeedCurrent exists in params ...
[ INFO] [1462550583.654879490]: [CB] 12:03:03:654 | Update:595 -   No
[ INFO] [1462550583.666767253]: Value for SpeedSettingsHullProtectionPresent recved: 0
[ INFO] [1462550583.666885121]: [CB] 12:03:03:666 | Update:672 - Checking if SpeedSettingsHullProtectionPresent exists in params ...
[ INFO] [1462550583.668580269]: [CB] 12:03:03:668 | Update:675 -   No
[ INFO] [1462550583.824874973]: Value for GPSSettingsReturnHomeDelayDelay recved: 60
[ INFO] [1462550583.825008767]: [CB] 12:03:03:824 | Update:1060 - Checking if GPSSettingsReturnHomeDelayDelay exists in params ...
[ INFO] [1462550583.827115042]: [CB] 12:03:03:827 | Update:1063 -   No
[ INFO] [1462550586.236525477]: Fetching all settings from the Drone ...
[ INFO] [1462550586.289499868]: Value for PilotingSettingsMaxAltitudeCurrent recved: 30
[ INFO] [1462550586.289626402]: [CB] 12:03:06:289 | Update:111 - Checking if PilotingSettingsMaxAltitudeCurrent exists in params ...
[ INFO] [1462550586.291504181]: [CB] 12:03:06:291 | Update:119 -   Yes
[ INFO] [1462550586.291979542]: Value for PilotingSettingsMaxTiltCurrent recved: 20
[ INFO] [1462550586.292056503]: [CB] 12:03:06:292 | Update:191 - Checking if PilotingSettingsMaxTiltCurrent exists in params ...
[ INFO] [1462550586.293522502]: [CB] 12:03:06:293 | Update:199 -   Yes
[ INFO] [1462550586.296154098]: Value for PilotingSettingsAbsolutControlOn recved: 0
[ INFO] [1462550586.296223512]: [CB] 12:03:06:296 | Update:271 - Checking if PilotingSettingsAbsolutControlOn exists in params ...
[ INFO] [1462550586.297777328]: [CB] 12:03:06:297 | Update:279 -   Yes
[ INFO] [1462550586.304889918]: Value for SpeedSettingsMaxVerticalSpeedCurrent recved: 1
[ INFO] [1462550586.304963606]: [CB] 12:03:06:304 | Update:512 - Checking if SpeedSettingsMaxVerticalSpeedCurrent exists in params ...
[ INFO] [1462550586.306416801]: [CB] 12:03:06:306 | Update:520 -   Yes
[ INFO] [1462550586.311213231]: Value for SpeedSettingsMaxRotationSpeedCurrent recved: 100
[ INFO] [1462550586.311333200]: [CB] 12:03:06:311 | Update:592 - Checking if SpeedSettingsMaxRotationSpeedCurrent exists in params ...
[ INFO] [1462550586.312962571]: [CB] 12:03:06:312 | Update:600 -   Yes
[ INFO] [1462550586.318337076]: Value for SpeedSettingsHullProtectionPresent recved: 0
[ INFO] [1462550586.318444948]: [CB] 12:03:06:318 | Update:672 - Checking if SpeedSettingsHullProtectionPresent exists in params ...
[ INFO] [1462550586.319983278]: [CB] 12:03:06:319 | Update:680 -   Yes
[ INFO] [1462550586.320945115]: Value for SpeedSettingsOutdoorOutdoor recved: 1
[ INFO] [1462550586.321040254]: [CB] 12:03:06:321 | Update:752 - Checking if SpeedSettingsOutdoorOutdoor exists in params ...
[ INFO] [1462550586.322523048]: [CB] 12:03:06:322 | Update:755 -   No
[ INFO] [1462550586.326668131]: Value for NetworkSettingsWifiSelectionType recved: 3
[ INFO] [1462550586.326764473]: [CB] 12:03:06:326 | Update:858 - Checking if NetworkSettingsWifiSelectionType exists in params ...
[ INFO] [1462550586.328016949]: [CB] 12:03:06:327 | Update:861 -   No
[ INFO] [1462550586.329490471]: Value for NetworkSettingsWifiSelectionBand recved: 0
[ INFO] [1462550586.329591022]: [CB] 12:03:06:329 | Update:879 - Checking if NetworkSettingsWifiSelectionBand exists in params ...
[ INFO] [1462550586.330790166]: [CB] 12:03:06:330 | Update:882 -   No
[ INFO] [1462550586.332631344]: Value for NetworkSettingsWifiSelectionChannel recved: 6
[ INFO] [1462550586.332733315]: [CB] 12:03:06:332 | Update:900 - Checking if NetworkSettingsWifiSelectionChannel exists in params ...
[ INFO] [1462550586.334339791]: [CB] 12:03:06:334 | Update:903 -   No
[ INFO] [1462550586.386944134]: Value for GPSSettingsReturnHomeDelayDelay recved: 60
[ INFO] [1462550586.387118393]: [CB] 12:03:06:387 | Update:1060 - Checking if GPSSettingsReturnHomeDelayDelay exists in params ...
[ INFO] [1462550586.388884558]: [CB] 12:03:06:388 | Update:1068 -   Yes
[ INFO] [1462550589.712603354]: Dynamic reconfigure callback with level: -1
[ INFO] [1462550589.712759777]: [CB] 12:03:09:712 | UpdateBebopFromROS:309 - PilotingSettingsMaxDistanceValue changed!
[ERROR] [1462550589.712842722]: [CB] 12:03:09:712 | UpdateBebopFromROS:317 - Value of PilotingSettingsMaxDistance was not initialized either by Bebop or Params.
[ INFO] [1462550589.712917599]: [CB] 12:03:09:712 | UpdateBebopFromROS:796 - NetworkSettingsWifiSelectionType changed!
[ INFO] [1462550589.712975222]: [CB] 12:03:09:712 | UpdateBebopFromROS:828 - Sending NetworkSettingsWifiSelection changes to bebop
[ INFO] [1462550589.713032354]: [CB] 12:03:09:713 | UpdateBebopFromROS:938 - GPSSettingsHomeTypeType changed!
[ERROR] [1462550589.713071706]: [CB] 12:03:09:713 | UpdateBebopFromROS:946 - Value of GPSSettingsHomeType was not initialized either by Bebop or Params.
[ INFO] [1462550589.725599154]: Enabling video stream ...
[ WARN] [1462550589.725720016]: [BebopSDK] 12:03:09:725 | StartStreaming:325 - Video streaming started ...
[ INFO] [1462550589.725891685]: Nodelet lwp_id: 3702
[ INFO] [1462550589.725954965]: Camera publisher thread lwp_id: 3998
[ INFO] [1462550589.726075612]: bebop_driver nodelet loaded.
[ INFO] [1462550589.832409415]: [ARSTREAM_Reader] 12:03:09:832 | ARSTREAM_Reader_RunDataThread:455 - Missed -65535 frames !
[ INFO] [1462550589.832671765]: [BebopSDK] 12:03:09:832 | FrameReceivedCallback:144 - Frame Recv & Decode LWP id:<PHONE_NUMBER>46476
[ INFO] [1462550589.834209624]: [Decoder] 12:03:09:834 | InitCodec:127 - H264 Codec is initialized!
[ INFO] [1462550589.834269139]: [Decoder] 12:03:09:834 | Decode:201 - Waiting for the first IFrame.
[ERROR] [1462550589.834340208]: [BebopSDK] 12:03:09:834 | FrameReceivedCallback:171 - Video decode failed
[ INFO] [1462550589.845375550]: [Decoder] 12:03:09:845 | Decode:201 - Waiting for the first IFrame.
[ERROR] [1462550589.845471645]: [BebopSDK] 12:03:09:845 | FrameReceivedCallback:171 - Video decode failed
[ INFO] [1462550589.872389018]: [Decoder] 12:03:09:872 | Decode:201 - Waiting for the first IFrame.
[ERROR] [1462550589.872495407]: [BebopSDK] 12:03:09:872 | FrameReceivedCallback:171 - Video decode failed
[ INFO] [1462550589.917476501]: [Decoder] 12:03:09:917 | Decode:201 - Waiting for the first IFrame.
[ERROR] [1462550589.917603219]: [BebopSDK] 12:03:09:917 | FrameReceivedCallback:171 - Video decode failed
[ INFO] [1462550589.939233707]: [Decoder] 12:03:09:939 | Decode:201 - Waiting for the first IFrame.
[ERROR] [1462550589.939332592]: [BebopSDK] 12:03:09:939 | FrameReceivedCallback:171 - Video decode failed
[ INFO] [1462550594.978263919]: [ARNETWORKAL_WifiNetwork] 12:03:14:978 | ARNETWORKAL_WifiNetwork_Receive:860 - [0x7f17e424bdf0] connection lost (too long time without reception)

Some additional info:

We had this problem previously, and switching to this commit e00b40d0a891f344470717c07e0ec9b424d96c66 seemed to have fixed the problem. We thought this might mean the driver pulls an updated version of the SDK, however now, the computer is not even connected to the internet, and without any changes as far as we can see, the issue reappeared.

Currently we are using a Bebop 2. However, using a Bebop 1 with this script gives the same issue. Similarly, resetting the access point, as well as using a different access point yields the same issue. It seems that when the driver works, it works for all combinations of Bebop's, routers, and  computers, and when it doesn't work, it doesn't work for any.

Through pinging the bebop at a high rate, and adding delays in the driver, it seems the disconnect happens at this line. It seems that when the parameters are reset, it forces the bebop to disconnect from the router. We have checked the band and channel settings in the cfg file, and they match the router settings, so we are not sure what the issue is.

It seems really weird that it can work fine at one minute, and then permanently break the next time it's launched. We don't really know what to check next. Any insight would be greatly appreciated.

Can you try setting reset_settings to false, either here or in your custom configuration file?

I've tried doing that and it still has the same problem. Looking at the output of the node launch more closely, I see the following:
[ INFO] [1469023592.390956954]: Dynamic reconfigure callback with level: -1
[ INFO] [1469023592.391067208]: [CB] 10:06:32:391 | UpdateBebopFromROS:796 - NetworkSettingsWifiSelectionType changed!
[ INFO] [1469023592.391111051]: [CB] 10:06:32:391 | UpdateBebopFromROS:828 - Sending NetworkSettingsWifiSelection changes to bebop

Since the settings are not being reset (confirmed since I don't see [ WARN] [1469023091.321904669]: Resetting all settings ... in the output), I'm not sure what is causing the dynamic reconfigure callback to be called?
Turning off the dynamic reconfigure (i.e., commenting out this line ) seems to make everything work, though I'm not sure for how long considering we had things working temporarily before, and we would like to enable dynamic parameters.

It's strange. Have you ever modified any of the on-board config files of your Bebop? What version of bebop_autonomy are you using? What is the firmware version of your Bebop?

@anuppari Have you had a chance to look more into this issue?

i have a same problem

We did not modify any of the on-board config files, other than adding the long press script linked above to change the bebop from AP mode to client mode. We tried using the latest version, as well as an older commit (mentioned above) that we thought would fix the issue, but both ended up not working.
I'm not sure about the firmware version, but I think it was the latest that was available at the time. Unfortunately, I no longer have access to the drones anymore, but @bellz867 is continuing the work with the drones and should have access to them. He would also be the one still running into this issue and interested in the fix.

i have experimented bebop drone with setting its ip <IP_ADDRESS>~13.
but, when i set a drone ip to <IP_ADDRESS>, it works well but other ip doesn't work

Thanks @anuppari for the update. The problem might be caused by the script you mentioned. I will close this issue for now. @bellz867 please feel free to re-open this issue if you have more information and/or a fix.


Upgrade python-telegram-bot to 4.3.1

v4.3.1

Update wrong requirement: urllib3>=1.10

v4.3

Use urllib3.PoolManager for connection re-use
Rewrite run_async decorator to re-use threads
New requirements: urllib3 and certifi

Tested with the following configuration:
notify:
  - platform: telegram
    name: telegram
    api_key: 1234xxxxx:AAxxxxxxxg
    chat_id: 10xxxxxx

Message sent with "Call Service"
{"message": "The sun is {% if is_state('sun.sun', 'above_horizon') %}up{% else %}down{% endif %}!"}

The new certifi dependency breaks my home-assistant Docker install. The Telegram component is now unusable for all Docker users:
16-08-07 17:24:56 ERROR (MainThread) [homeassistant.bootstrap] Error during setup of component notify
Traceback (most recent call last):
  File "/usr/src/app/homeassistant/bootstrap.py", line 156, in _setup_component
    result = component.setup(hass, config)
  File "/usr/src/app/homeassistant/components/notify/__init__.py", line 74, in setup
    notify_service = notify_implementation.get_service(hass, p_config)
  File "/usr/src/app/homeassistant/components/notify/telegram.py", line 38, in get_service
    import telegram
  File "/usr/local/lib/python3.4/site-packages/telegram/__init__.py", line 45, in <module>
    from .file import File
  File "/usr/local/lib/python3.4/site-packages/telegram/file.py", line 24, in <module>
    from telegram.utils.request import download as _download
  File "/usr/local/lib/python3.4/site-packages/telegram/utils/request.py", line 26, in <module>
    import certifi
ImportError: No module named 'certifi'

This is because certifi is being specifically uninstalled on the Dockerfile.
This has already been reported on #2554, but didn't seem to get much attention.
Any chance this issue will be fixed soon?

Same here: Telegram component does not work for Docker.
Currently running HASS 0.26.2.
Same Error: ImportError: No module named 'certifi'

Installing certifi in docker breaks ALL https connections due to it being incompatible with the docker openssl

Same problem here with HASS 0.27.2 on docker.
Is there a workaround?

@jeanregisser There's currently no known workaround as far as I know.
You could try back-porting an older version of the component, unsure if that would work since the telegram-bot-api keeps updating and older versions might not be compatible.


Allocation

Fixes https://github.com/Deltares/Ribasim/issues/632.
There is currently some plotting code in the Ribasim core for visualizing the max flow results, this will probably be removed before merging.
Here is my extensive (but probably incomplete) list of what still needs to be done if we keep this approach for allocation (not meant to be solved within this PR). Feel free to comment so that it can be worked out into productive issues. These points are ordered roughly from low to high expected complexity.
To do:

[ ] Remove plotting code from Ribasim core, how to make the plotting functionality available for users? See also allocation output file below
[ ] Add support for users having demands for multiple priorities
[ ] Add more residual flow distribution algorithms (see powerpoint)
[ ] Create user input framework (needs design session)
[ ] Create allocation update policy; i.e. how often are allocations re-evaluated (needs design session)
[ ] Create output file of allocation decisions
[ ] Take local water supply into account for allocation
[ ] Add support for more subnetwork sources than only FlowBoundary, e.g. LevelBoundary or something on the boundary between the subnetwork and the rest of the model
[ ] Add interaction of allocation with control; e.g. set pump and outlet flow rates to achieve required capacity
[ ] Add support for fractional flow: splits the capacity of edges in the max flow graph, and can make constraining nodes also junction nodes which is currently not supported
[ ] Take return flow of users into account for allocation
[ ] Add support for multiple sources in a subnetwork

Here is the script I'm currently using to run allocation once at t=0 for the first allocation test model:
using Ribasim
using SQLite
using GraphMakie: save
using GeoDataFrames: read

# Load test model
toml_path = "path/to/Ribasim/generated_testmodels/subnetwork/subnetwork.toml"
cfg = Ribasim.Config(toml_path)
gpkg_path = Ribasim.input_path(cfg, cfg.geopackage)
db = SQLite.DB(gpkg_path)

p = Ribasim.Parameters(db, cfg)
gdf_node = read(gpkg_path, "Node")
close(db)

# Inputs specific for this test model
subgraph_node_ids = unique(keys(p.lookup))
source_node_id = only(p.flow_boundary.node_id)

# Parsed subnetwork (contains max flow graph and additional information)
subnetwork = Ribasim.get_graph_max_flow(p, subgraph_node_ids, source_node_id)

function run_allocation_once()::Nothing
    # Plot max flow graph
    plot_folder = "path/to/your/favorite/folder"
    fig, ax = Ribasim.plot_graph_max_flow(subnetwork; gdf_node)
    save(normpath("$plot_folder/Ribasim_max_flow.png"), fig)

    # Run allocation with max flow solver,
    # plots solutions of max flow problems on the max flow graph
    t = 0.0
    source_capacity = only(p.flow_boundary.flow_rate)(t)
    Ribasim.allocate!(p.user, subnetwork, source_capacity, t; plot_folder, gdf_node)
    @show(p.user.allocated)
    return nothing
end

Closed because superseded by https://github.com/Deltares/Ribasim/pull/663.


Remote loading of Table data

As an extension of #11, ensure that Tables can be loaded from a remote location by HTTP URL.

@roll currently the library has no external dependencies, however the most reasonable way to implement this is using HTTP for Julia. I've added example code, which looks like this:
mytable = Table()
req = request("GET", "https://...")
read(mytable, readcsv(req.body))

Is it really a requirement to bake this into our lib?

@loleg
The general approach of the libs is to simplify user experience e.g.:
table = Table(path.csv/path.xls/url/dict/etc)

but if it's a common practice to use req.body in Julia it should be OK while the functionality is here (an ability to open a remote table).
I don't how dependencies are handled in Julia (maybe some gotchas for clients) but in general to do not have dependencies (esp. such vital as HTTP requests) is not really a goal for other libs. For example, the Python one has a lot of dependencies.

Working and tested.


yaml.load missing one requirement 'Loader', ROS instructions

Apparently I have a midas touch in reverse.  At the wstool merge step, I get the above error.  Searching a bit provided me with this clue

Now, the load() function requires parameter loader=Loader.
If your YAML file contains just simple YAML (str, int, lists), try to use yaml.safe_load() instead of yaml.load(). And If you need FullLoader, you can use yaml.full_load().

pip freeze shows my version of pyYAML as 6.0 and this is apparently an issue after 5.4.
pip install --upgrade piyaml == 5.4 resolved it.

You already fixed it, thanks!
You can install cartographer automatically with the command below now, thanks!
$sudo apt-get install ros-noetic-cartographer-ros


Investigate whether we can just use a _Future in async functions instead of the additional _AsyncAwaitCompleter object

Right now we each async function will allocate a _AsyncAwaitCompleter object and a _Future object.
We should be able to get rid of the completer itself and use a _Future directly. That would save one object allocation.

@cskau-g has landed this, closing issue.


How can i clear esp32 ble rx and tx buffer?

I am working esp32 ble comminication. I creat the ble comminication one master and two slave device with handshake  algorithm. But i have a problem. Master is sending message until slave  send "ok" message. So esp32 rx and tx buffer fill in more same data package so another loop tour that issue creat a problem. How can i clear esp32 ble rx and tx buffer?
Thanks for your interest.

Hi. Did anyone have some progress about this issue?


build(no-release): add @semantic-release/git

Add another missing dependency for the semantic-release workflow to work

:tada: This PR is included in version 1.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Update README.md

The first part of the command in <> was confusing, I had to look it up to confirm it's a free-form input.
This change should make it clearer that it's a free-form secret name.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Ah thanks @jaspervdj-snyk and good call. I didn't notice it was referenced twice.
I'll update the second reference as well, hang tight.

Hi @jaspervdj-snyk , should be good to go now.


CAD-3511: datapoint-forward library.

The third forwarding library for the new tracing infrastructure (https://github.com/input-output-hk/cardano-node/pull/2847). It allows forwarding arbitrary data that provides ToJSON instance. The trace-dispatcher will use this library to forward different structured data to external acceptor apps (for example, cardano-tracer).
For reviewers: please note that this library is based on the existing trace-forward library, but with one important difference: there is no "infinite stream" of data when we ask for it every N seconds. Instead, acceptor app asks for each DataPoint explicitly, when it needs this data.

Please note that after it will be merged, NodeInfo will be removed from trace-forward library (https://github.com/input-output-hk/cardano-node/blob/master/trace-forward/src/Trace/Forward/Protocol/Type.hs#L125-L132), because it will be forwarded as one of DataPoints.

Closed because of https://github.com/input-output-hk/cardano-node/pull/3342


Remove old classic ASP stuff

This change is

Current coverage is 80% (diff: 100%)

Merging #1647 into master will increase coverage by 1%

@@             master      #1647   diff @@
==========================================
  Files           273        268     -5
  Lines         16699      16528   -171
  Methods        2653       2631    -22
  Messages          0          0
  Branches       1840       1815    -25
==========================================
- Hits          13271      13251    -20
+ Misses         3009       2846   -163
- Partials        419        431    +12

Powered by Codecov. Last update b483611...f7102f4

Good idea for old parts!
I have searched through codes and wikis and I have found somethings.
We also need to remove these files:

ASPTests.cs
Asp things in the webtest folder

and wiki pages:

Platform-Support
AspResponse target
AspApplication-Layout-Renderer
AspRequest-Layout-Renderer
AspSession-Layout-Renderer

I can do wiki things after merging. Just let me know!

thanks @UgurAldanmaz !

and wiki pages:

We will remove the old pages from the index, but deletion is unneeded IMO

I agree, index removing is enough. :)
I am not sure if old ASP things are still using. Should we mark it as a breaking change?

Well AFAIK you can't even use it.


Tasks index

Overview
I have basically completed the task index page, along with the modals.
Configuration

I changed the seed file to make the task descriptions longer, so run rails db:seed
Details

I'll go through everything with you guys tomorrow morning

 Tasks index

 Tasks show (modal)

Ok guys this should be all working now! Just know that when you run db:seed you are in for a long journey...


Support UE4.27 Please

This game use UE4.27: https://apps.apple.com/us/app/black-clover-m/id1616496847

Will check it once I have time

Will check it once I have time

i got it thank you

added


fix(post): major refactoring of user-service, move from prometheus to…

… otel# Pull Request
Trello Ticket

[Trello Ticket](insert link here)

Checklist

[ ] All tests pass
[ ] Changes are covered by tests
[ ] Code is well-documented
[ ] Added functionality was tested manually

Description

...

Additional Remarks

poc klappt, muss morgen aufräumen

mnrl ok?


Code samples on gh-pages are unreadable (rendered without line breaks)

Hi there, thanks for your great library!  This is not an actual issue with your source, just something I wanted to point out is a little bit frustrating with the documentation.
On your Samples pages, (e.g. http://pauldijou.fr/jwt-scala/samples/jwt-core/) the code snippets are strangely rendered with no line breaks, appearing on the page as a single very-long line that I have to scroll horizontally to read.  I had to copy-paste and transform these samples in order to read and use them.  I'm guessing this was not intentional, maybe some regression when changing how the pages were rendered at some point?  Just a little something that you might want to look into :)

Good catch, total regression indeed. Will fix ASAP.


Restored GetConnectionInfo with [Obsolete]

try/catch seems overkill.
also, did someone complain about not finding this method?
I doubt that anyone used GetConnectionInfo manually anywhere before.

FizzySteam was using it (I fixed it via PR to Raystorm's fork).
The try-catch was per @MichalPetryka
If it was public, it needs to be obsoleted.  We can't know what people have done.
Your words: "Mirror is optimized for ease of use and probability of success."
Making migration as painless as possible is part of that.

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


About BFM_model_front.mat

Hi, could you please explain how do you process the original BFM model, i.e., 01_MorphableModel.mat to get the BFM_model_front.mat?
I found the 'meanshape' is just the shapeMU in original BFM model times 1e5,  how do you convert the 'ShapePC' to 'idBase' ?

Sorry, I just found the function transferBFM09(). Solved.

Hi, could you please share the BFM_model_front.mat file with me by a share link? Actually, I want to use this file in another project. I will appreciate it if you can help me with that. Thanks in advance.

https://drive.google.com/drive/folders/105WLX_gDnxfb-FkYgXlWxuTpf8YGErbj?usp=sharing

Hi, could you please share the BFM_model_front.mat file with me by a share link? Actually, I want to use this file in another project. I will appreciate it if you can help me with that. Thanks in advance.

https://drive.google.com/drive/folders/105WLX_gDnxfb-FkYgXlWxuTpf8YGErbj?usp=sharing

Hello, one of my questions has been resolved from your answer. But I haven't found Exp_Pca.bin in the downloaded Coarse_dataset. Can you share this with me? My email is<EMAIL_ADDRESS>thank you very much.

Hi, you can download the BFM_model_front.mat file from the following link:
Download Link
Let me know if you need further assistance!


Code coverage

Would be nice to have some sort of code coverage metrics?
Do you think this would be reasonably achievable?
Feel free to close this if you consider it out of scope.
Cheers,
Michael

above code does not seem sbcl specific.

The code above only checks that all the functions all called. I think sionesco is talking about sb-cover that reports an annotated source code, showing for example if a branch of a conditional has not been executed by the tests.

That's correct, the above code doesn't really show test coverage

Yes, I apparently misunderstood the term. Thanks.

Closing because there's not portable way to report test coverage.


CI: Drone not updating Rust Docker image

Our Drone instance isn't picking up the latest Rust Docker image, despite Drone docs saying it should.
We need to get this working as it's blocking use of the latest hyper library, which is in turn blocking other issues like #55.
Without this we're stuck on Rust 1.1.0 and we should really be compiling against the latest stable release.

TravisCI does free builds for open source, if we can't get access to Drone, let's switch to that.


Alternative way to connect directly browser js-waku to nim-waku

Problem
If https://github.com/status-im/nim-waku/issues/434 is not yet done then we need to consider alternative ways to connect js-waku browser to nim-waky to achieve #68.
Solutions

long polling over https
QUIC

Cc @oskarth do you think we still need to investigate? Or can we close once https://github.com/status-im/infra-nim-waku/issues/6 is done?

Can probably hold off on this and then close or leave open for general discussion, e.g. native nim-ws/quic etc support. Up to you

(secure) websocket support implemented in nwaku.


fix(vue): support nullable paths in useProperty

This PR is an attempt at fixing #57.

[x] Fix the type of the path parameter of useProperty
[ ] Fix the return type of useProperty

Just took some time to finish this. We can now use useProperty<string>('blabla') so force-return a string as well, in addition to supporting nullable types in the global properties. Huge thanks for your initial work on it @nhedger!


How to get "Total number of frames since last measurement update."?

I am working on onnx_inference.py and I need to get the "Total number of frames since last measurement update." for my algorithm. DeepSort includes this field as "time_since_update"  However, I could not find the corresponding on ByteTrack. I will be very pleased if I you can help me?

I have edited the code according to my needs. Especially the byte_tracker.py


fix(schema): simplify json-schema when Nullable is used with only one  primitive type

Close: #2751
Information

Type
Breaking change

Fix
No

Todos

[x] Tests
[x] Coverage
[x] Example
[x] Documentation

:tada: This PR is included in version 7.75.5 :tada:
The release is available on:

v7.75.5
GitHub release

Your semantic-release bot :package::rocket:


updated release for macOS > version 0.2.4?

I can see that there is only 1 version of TF-DF released for macOS that is available via pip (0.2.4). There have been some useful improvements in the library since then that I'd like to use on mac. Any chance you could release the most current version for mac?

Hi, we hope to release an updated version for mac again, but we cannot commit to a timeline just yet


DoctrineTransport table dropped when running doctrine:schema:update

Hi,
In CI, we run
APP_ENV=test bin/console doctrine:schema:update --dump-sql --complete --ansi --no-interaction

to ensure that our schema in sync with the database.
However this produced DROP TABLE messenger_messages when using this bundle because this check fails, as the transport is actually Zenstruck\Messenger\Test\Transport\TestTransport
https://github.com/symfony/symfony/blob/9b323c6866078f1bc761d7cc34297c41815108d3/src/Symfony/Bridge/Doctrine/SchemaListener/MessengerTransportDoctrineSchemaListener.php#L39
Is there a way to fix this, apart from running with APP_ENV=prod instead?
Thans!

Hmm, in your test env, could you create a dummy/unused transport that uses doctrine?

ahh ok, a single one NOT using test://?
ok i'll try that!

a single one NOT using test://?

yep, exactly!

that'll work! thank


Add customized processing notebooks

Notebooks for custom preprocessing and postprocessing (vLLM and TRTLLM)
The notebooks include the details on how to create the model.py file.
Comments in processing functions added, written by @marckarp

Thanks for adding the notebooks! They work with djl 0.26.0.
However, when testing with djl 0.27.0, the custom_output_formatter() no longer works - the model output are always in the default format. But the custom_input_formatter() is effective.


Add log level to either command line or config files for router and controller

Right now you can only set log level to info (the default) or debug (using the -v flag). Should be able to select other log levels.

Could we also look at adjusting this as well, the quotes around the code in ExecStart is invalid, so adding the logging stanza at the end, we have to manually edit this every time we build a service.
Default format:
[Unit]
Description=Ziti-Router for ad-use1-1.yaml
After=network.target

[Service]
User=root
WorkingDirectory=/opt/ziti
ExecStart="/opt/ziti/ziti-bin/ziti" router run "/opt/ziti/ad-use1-1.yaml.yaml"
Restart=always
RestartSec=2
LimitNOFILE=65536

[Install]
WantedBy=multi-user.target

How we have to edit it
ExecStart=/opt/ziti/ziti-bin/ziti router run /opt/ziti/ad-use1-1.yaml --log-formatter pfxlog

Interesting. I assume you've used the quickstart to generate the systemd file... What OS are you running and how does the error manifest that makes you need to update it like that?

Ubuntu/Rhel8/Amazon Linux I think all use that same systemd file. We were having issues watching the logs in real time and found the pfxlog format easier to use.
https://openziti.discourse.group/t/log-tuning-for-ziti-router/1162 was the source for this issue.
We have really chatty services across the overlay and trying to find errors in real time when your working on a node was difficult.

and found the pfxlog format easier to use

that's for sure! :) I do all my testing with Ubuntu and the systemd file that the quickstart generates has never been an issue. I wonder if it's a RHEL problem, i rarely try RHEL.  I can try spinning up an amazon linux and see what happens. I'll also reach out to my systemd expert friend for RHEL help...
Just a 'for instance', I updated my current router to look like yours and you can see it somehow runs fine...

@pixitha in case it's useful, you can also post-process the json to pfxlog format, either using the pfxlog binary, built from that repo, or by using the version built into ziti: ziti ops log-format. I do that regularly when debugging production systems, which require json for ingest, as it's easier to read.

https://openziti.io/docs/guides/deployments/linux/controller/deploy#logging


[library] Add highlight component

Adds the ability to render a highlight tile as a web component.
This PR:

Adds a highlight component that wraps the highlight tile
Adds the ability to specify a specific date in the highlight tile
Adds a "part" to the highlight tile containing div to allow for web component styling via CSS
Adds documentation for the new highlight component
Also fixes an error in the map web component documentation (date attribute should be under optional, not required)

Now the syntax
<datacommons-highlight
  description="Population of the United States"
  place="country/USA"
  variable="Count_Person"
  date="2020"
></datacommons-highlight>

Produces:

Thanks Julia! I think @pradh added something to the highlight tile the other day to show the unit-can you verify this works with the web component?

The unit will show in the tile when a unit is passed into the statvar spec. Added an optional attribute to set a "unit" string to display to the web component.


Publish-CRL throws: An attempt was made to access an uninitialized object

Using PSPKI 3.7.2, when trying to run Publish-CRL -CertificationAuthority XXXXIntermediateCAv2 I get the following error:
Exception calling "PublishCRL" with "2" argument(s): "An attempt was made to access an uninitialized object."
At C:\Program Files\WindowsPowerShell\Modules\PSPKI\3.7.2\Server\Publish-CRL.ps1:15 char:4
+             $CA.PublishCRL($DeltaOnly, $UpdateFile)
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : UninitializedObjectException

If I try this another method, I get this..
PS C:\Windows\system32> Get-CertificationAuthority | Publish-CRL
Exception calling "PublishCRL" with "2" argument(s): "CCertAdmin::PublishCRLs: The parameter is incorrect. 0x80070057
(WIN32: 87 ERROR_INVALID_PARAMETER)"
At C:\Program Files\WindowsPowerShell\Modules\PSPKI\3.7.2\Server\Publish-CRL.ps1:15 char:4
+             $CA.PublishCRL($DeltaOnly, $UpdateFile)
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ArgumentException

Any idea why this is happening?

do you receive your CAs when calling Get-CertificationAuthority?

Same issue here, also on v3.7.2
Get-CertificationAuthority results in:
Name                 : <redacted>
DisplayName          : <redacted>
ComputerName         : <redacted>
ConfigString         : <redacted>
DistinguishedName    : CN=<redacted>,CN=Enrollment Services,CN=Public Key
                       Services,CN=Services,CN=Configuration,<redacted>
Type                 : Enterprise Subordinate CA
IsEnterprise         : True
IsRoot               : False
OperatingSystem      : Microsoft Windows Server 2019 Datacenter
IsAccessible         : True
RegistryOnline       : True
ServiceStatus        : Running
SetupStatus          : ServerInstall, SecurityUpgraded, ServerIsUptoDate
Certificate          : [Subject]
                         <redacted>

                       [Issuer]
                         <redacted>

                       [Serial Number]
                         <redacted>

                       [Not Before]
                         <redacted>

                       [Not After]
                        <redacted>

                       [Thumbprint]
                         <redacted>

BaseCRL              :
DeltaCRL             :
EnrollmentServiceURI :
EnrollmentEndpoints  : {}

Publish-CRL -CertificationAuthority $ca.Name gives the same error as OP.

Getting the same error as OP:
$CAName = 'My CA'
$CAObj = Get-CertificationAuthority -Name $CAName
$CAObj | Publish-CRL

Exception calling "PublishCRL" with "2" argument(s): "CCertAdmin::PublishCRLs: The parameter is incorrect. 0x80070057 (WIN32: 87 ERROR_INVALID_PARAMETER)"
At C:\Program Files\PKI Solutions\PowerShell Modules\PSPKI\Server\Publish-CRL.ps1:15 char:4
+             $CA.PublishCRL($DeltaOnly, $UpdateFile)
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ArgumentException

@jimbju what returns your $CAObj variable?

@Crypt32 contents of $CAObj:
DisplayName             ComputerName              IsAccessible ServiceStatus Type
-----------                  ------------                       ------------ ------------- ----
My CA                       mycacomputername...      True         Running       Enterprise Subordinate CA

Fixed in v4.0.0


restoring a database to a recovery point less than an hour ago

I am attempting a Point-in-time restore of a standard database and wish to restore to a point less than a hour ago. The web UI doesn't allow for this it displays an an error "Choose a restore point between earliest restore point and latest backup time which is 6 minute before current time" although it doesn't define the latest time you can restore from. Can the documentation give a rough outline of from what time a database restore becomes available? as it is definitely greater than 6 minutes.
Currently it is 16:50 and the earliest restore point is over 70 minutes ago.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 9492cedc-cea0-af9d-29a0-52cbca8c5e21
Version Independent ID: 969a8654-8f95-d5de-351d-73c8e02e5d3a
Content: Azure SQL Database automatic, geo-redundant backups
Content Source: articles/sql-database/sql-database-automated-backups.md
Service: sql-database
GitHub Login: @anosov1960
Microsoft Alias: sashan

Current time 4:53 so a restore point from around an hour ago errors out

Just over an hour and the the UI accepts the time

@padmick Thanks for the feedback! I have assigned the issue to the content author to evaluate and update as appropriate.

any update on this?

This is not a documentation issue. Please open a technical support ticket to investigate.

@padmick We will now proceed to close this issue. If you do not have an Azure subscription plan, please send an email to AzCommunity at Microsoft dotcom with your subscription GUID, and we can have a one time incident ticket opened for you.


Consistent with getters and setters

We should be consistent about how we name getters and setters.
In some places we use getXXX() and in other places we just use xxx().

Not sure if this is really an issue, but we should at least check.

I don't think this is an issue - the convention is to use getXXX and setXXX for mutable properties and just xXX() for non mutable property getter.


ebitenmobile fails in vendor mode and has no option to disable vendor mod

Hi, I have next problem while executing
ebitenmobile bind -a -x -v -target android -javapkg net.isoftservices.client -o ./android/app/libs/client.aar ./src/game/android

Output is:
ebitenmobile bind -a -x -v -target android -javapkg net.isoftservices.client -o ./android/app/libs/client.aar ./src/game/android
PATH=/tmp/ebitenmobile-2356515294/bin:/home/kordax/.nvm/versions/node/v16.13.1/bin:/home/kordax/yandex-cloud/bin:/home/kordax/.symfony/bin:/mnt/extended_partition/Applications/anaconda3/bin:/home/kordax/go/bin:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/home/kordax/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/apache-cxf/bin:/opt/protoc/bin
cd /tmp/ebitenmobile-2356515294
GO111MODULE=on go mod init ebitenmobiletemporary
GO111MODULE=on go get golang.org/x/mobile/cmd/gomobile@5d9a33257ab559d10fa8c96087aed99bf8b6d868
GO111MODULE=on go mod tidy
GO111MODULE=on go build -o bin/gomobile golang.org/x/mobile/cmd/gomobile
GO111MODULE=on go build -o bin/gobind-original golang.org/x/mobile/cmd/gobind
GO111MODULE=on go build -o bin/gobind -tags ebitenmobilegobind src/gobind.go
gomobile init
GOMOBILE=/home/kordax/go/pkg/gomobile
WORK=/tmp/gomobile-work-819293218
GOOS=android CGO_ENABLED=1 /tmp/ebitenmobile-2356515294/bin/gobind -lang=go,java -outdir=$WORK -javapkg=net.isoftservices.client octopus/parts/webgames/bin/shooters-go-client/src/game/android github.com/hajimehoshi/ebiten/v2/mobile/ebitenmobileview
unable to import bind: [-: cannot find package "." in:
	/home/kordax/Projects/maxbet/octopus/vendor/golang.org/x/mobile/bind]
unable to import bind: [-: cannot find package "." in:
	/home/kordax/Projects/maxbet/octopus/vendor/golang.org/x/mobile/bind]
unable to import bind: [-: cannot find package "." in:
	/home/kordax/Projects/maxbet/octopus/vendor/golang.org/x/mobile/bind]
"golang.org/x/mobile/bind" is not found; run go get golang.org/x/mobile/bind: [-: cannot find package "." in:
	/home/kordax/Projects/maxbet/octopus/vendor/golang.org/x/mobile/bind]
2022/02/10 17:03:37 exit status 1
rm -r -f "$WORK"
gomobile: /tmp/ebitenmobile-2356515294/bin/gobind -lang=go,java -outdir=/tmp/gomobile-work-819293218 -javapkg=net.isoftservices.client octopus/parts/webgames/bin/shooters-go-client/src/game/android github.com/hajimehoshi/ebiten/v2/mobile/ebitenmobileview failed: exit status 1

The problem is that ebitenmobile doesn't support -mod mod or -mod readonly and therefore it fails on Gobind when vendor dir is present in the root project's structure.
The current Gomobile package doesn't contain bind and cmd packages in vendor mode and I cannot explicitly force vendor mod for bind/cmd packages using _ import.
$ ls -F vendor/golang.org/x/mobile/
app/  asset/  AUTHORS  CONTRIBUTORS  event/  geom/  gl/  internal/  LICENSE  PATENTS

Is it possible to ignore the vendor directory somehow?
It works fine if there's no vendor directory in the project.
This problem is not as easy as it seems to be, because potentially the Gobind itself can be incapable of such an option.

I can do this, but it will be gone with the next go mod vendor command.

I think this is not an issue in Ebiten but in gomobile. A regular gomobile-bind caused the same error.

https://github.com/golang/go/issues/34181

Yep, looks like it's gobind issue:
gobind -lang=go,java -outdir=/tmp/gomobile-work-1386653115 -javapkg=net.isoftservices.client ./src/game/android github.com/hajimehoshi/ebiten/v2/mobile/ebitenmobileview

unable to import bind: [-: cannot find package "." in:
	/home/kordax/Projects/maxbet/octopus/vendor/golang.org/x/mobile/bind]
no exported names in the package "github.com/hajimehoshi/ebiten/v2/mobile/ebitenmobileview"
unable to import bind: [-: cannot find package "." in:
	/home/kordax/Projects/maxbet/octopus/vendor/golang.org/x/mobile/bind]
unable to import bind: [-: cannot find package "." in:
	/home/kordax/Projects/maxbet/octopus/vendor/golang.org/x/mobile/bind]
no exported names in the package "github.com/hajimehoshi/ebiten/v2/mobile/ebitenmobileview"
no exported names in the package "github.com/hajimehoshi/ebiten/v2/mobile/ebitenmobileview"
no exported names in the package "github.com/hajimehoshi/ebiten/v2/mobile/ebitenmobileview"
"golang.org/x/mobile/bind" is not found; run go get golang.org/x/mobile/bind: [-: cannot find package "." in:
	/home/kordax/Projects/maxbet/octopus/vendor/golang.org/x/mobile/bind]


ansi256 => ansi16 squashes a bunch of grayscale values and basic colors to black

This prints out all the grayscale values at the end of ansi256:
for (let i = 232; i < 256; i++) {
  console.log(colorConvert.ansi256.ansi16(i));
}

Which results in:
30
30
30
30
30
30
30
30
30
30
30
30
37
37
37
37
37
37
37
97
97
97
97
97

Note that the first half of the scale all gets crushed to 30 black, but I'd expect values from ~236-243 to be converted to 90 bright black, just like in the second half values are converted to white and bright white.

Oh, also, this same function crushes the first 16 colors to black and bright black:
for (let i = 0; i < 15; i++) {
  console.log(colorConvert.ansi256.ansi16(i));
}

This should print out 0-15, since these colors are the same in 256 and 16 color ANSI, but instead it prints out 30 for everything.

Going even deeper (and possibly more subjective, but maybe this is related)... here's the full color table generated by color-convert:

Aside from the issues already discussed above, I notice a lot of "30"s in there in the top half where maybe they shouldn't be; like 102 in ansi256 is rgb(102,102,102), which should probably be bright black instead of black - 102 is a long ways from 0.  There are a few "grey" colors in the middle of ansi256, so I'd expect to see a few 37s and 90s scattered about, but actually there's no 90s in this table at all, and 37 only shows up once (for 145), which is suspicious.

Yep, this is weird indeed. Not sure how I never noticed this before.
https://github.com/Qix-/color-convert/blob/master/conversions.js#L518-L538
That's the offending code. Since there is no clear conversion from ansi256 to ansi16, we use RGB (and sometimes HSV) as an intermediary model. The V channel is what's used for grayscale derivation.
The problem with the missing 90 code is that I'm erroneously biparting the value domain into 2 using round, instead of simply doing the division and checking if it's less than 0.5.
I think I have a fix in mind. I'm going to try to fix this in a bit.

Wow. There's a lot wrong. I have no idea what broke what, but keywords are broken, the ansi256->RGB got broken... I'm floored. I have no idea how this got past CI.
Alright, giving some love to this package this morning... yikes.

Wow, this stuff was seriously broken.
Firstly, let me point out a much larger problem I'm facing: a VERY LARGE portion of websites I'm using to verify color codes (to make sure everyone agrees) uses this library. While they haven't been using it for ANSI codes for example, it's just something for myself to keep in mind if I'm ever doing some "dumb"/"naive" checks against other converters to make sure values are reasonably sane at a quick-glance - there's a high enough chance that I'd be checking potentially fixed values against a buggy version of this very library.
Secondly, the ANSI256 to RGB code is straight-up broken. How it hasn't been caught before this is baffling (perhaps it has I was just a Bad Maintainer - that's very possible).

The reason why the basic colors (< 16) are being completely ignored was not obvious at first.
In your screenshots, they appear black. This is because you have a black background color. The confusing started when they appeared grey to me (whereas 16 and 232 looked more black than my background). They matched my background.
In fact, they're not generating correct values at all.
https://github.com/Qix-/color-convert/blob/3808cc73a0fc4f32868421403223f7a2710610c9/conversions.js#L606
Between this line and the greyscale check should have been a check to see if the value is < 16, to do a 1:1 conversion between the legacy colors. Instead, it just blindly subtracts 16 and spits back out a set of negative RGB values. This is why this bug is spectacularly bad, lol.
I have some fixes coming in, so stay tuned.

Hmm okay, having issues finding a good hueristic. Maybe a LUT really is the better option here.
Let me think about this overnight.

I'll point out that if you generate a LUT at runtime (similar to what I did in https://github.com/chalk/ansi-styles/pull/68), then generating the LUT is quite fast - there's only 256 values in the array, so even if you did something expensive like a perceptual-color-distance, it will generate very fast.  If you lazy-initialize the LUT the first time it's used, then you only incur that cost once.  And, since the LUT is only an array of 256 numbers, it's only going to take up something like 2K of memory (you could make it even less by storing the contents of the LUT as characters instead of as numbers, but that's probably more complexity than is warranted).

I'm leaning toward generating a LUT at build time at this point. I also noticed that no other terminal I can find uses the ANSI256 encoding, but instead uses the XTerm lookup table (that has, from what I can tell, slightly lighter/more saturated colors).
I'm inclined to keep the ansi encoding as part of the library but under a separate function.


[Snyk] Upgrade axios from 0.19.1 to 0.19.2

Snyk has created this PR to upgrade axios from 0.19.1 to 0.19.2.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

The recommended version is 1 version ahead of your current version.
The recommended version was released 6 months ago, on 2020-01-22.

The recommended version fixes:

Severity
Issue
Exploit Maturity

Prototype Pollution SNYK-JS-LODASH-567746
Proof of Concept

Release notes

Package name: axios

0.19.2 - 2020-01-22
Remove unnecessary XSS check (#2679) (see (#2646) for discussion)

0.19.1 - 2020-01-07Fixes and Functionality:

Fixing invalid agent issue (#1904)
Fix ignore set withCredentials false (#2582)
Delete useless default to hash (#2458)
Fix HTTP/HTTPs agents passing to follow-redirect (#1904)
Fix ignore set withCredentials false (#2582)
Fix CI build failure (#2570)
Remove dependency on is-buffer from package.json (#1816)
Adding options typings (#2341)
Adding Typescript HTTP method definition for LINK and UNLINK. (#2444)
Update dist with newest changes, fixes Custom Attributes issue
Change syntax to see if build passes (#2488)
Update Webpack + deps, remove now unnecessary polyfills (#2410)
Fix to prevent XSS, throw an error when the URL contains a JS script (#2464)
Add custom timeout error copy in config (#2275)
Add error toJSON example (#2466)
Fixing Vulnerability A Fortify Scan finds a critical Cross-Site Scrip… (#2451)
Fixing subdomain handling on no_proxy (#2442)
Make redirection from HTTP to HTTPS work ([#2426](https://github.com/axios/axios/pull/2426] and (#2547)
Add toJSON property to AxiosError type (#2427)
Fixing socket hang up error on node side for slow response. (#1752)
Alternative syntax to send data into the body (#2317)
Fixing custom config options (#2207)
Fixing set config.method after mergeConfig for Axios.prototype.request (#2383)
Axios create url bug (#2290)
Do not modify config.url when using a relative baseURL (resolves #1628) (#2391)
Add typescript HTTP method definition for LINK and UNLINK (#2444)

Internal:

Revert "Update Webpack + deps, remove now unnecessary polyfills" (#2479)
Order of if/else blocks is causing unit tests mocking XHR. (#2201)
Add license badge (#2446)
Fix travis CI build #2386
Fix cancellation error on build master. #2290 #2207 (#2407)

Documentation:

Fixing typo in CHANGELOG.md: s/Functionallity/Functionality (#2639)
Fix badge, use master branch (#2538)
Fix typo in changelog #2193
Document fix (#2514)
Update docs with no_proxy change, issue #2484 (#2513)
Fixing missing words in docs template (#2259)
🐛Fix request finally documentation in README (#2189)
updating spelling and adding link to docs (#2212)
docs: minor tweak (#2404)
Update response interceptor docs (#2399)
Update README.md (#2504)
Fix word 'sintaxe' to 'syntax' in README.md (#2432)
upadating README: notes on CommonJS autocomplete (#2256)
Fix grammar in README.md (#2271)
Doc fixes, minor examples cleanup (#2198)

    from axios GitHub release notes

Commit messages

Package name: axios

2a0ff47 Releasing 0.19.2
17cc1d6 Updating changlog for 0.19.2 release
c7488c7 Remove unnecessary XSS check introduced by #2451 (#2679)
351cf29 Fix link formatting in CHANGELOG.md to display PR number in parens as link (#2643)

Compare

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs

No longer relevant. Closing.


DDMD Example requires several fixes and test

Example of the issues in the code:
In this line https://github.com/radical-cybertools/ROSE/blob/0d568f1274495c7a98832a0a67be7d9973c6c2a2/_rp_example/ddmd_polaris_rp.py#L29, the sys.exit might not work in some cases and it is better to replace it with:
raise SystemExit("Warning: Did not set up work_dir using env var, need to set it up in parser manually!")

In this line  https://github.com/radical-cybertools/ROSE/blob/0d568f1274495c7a98832a0a67be7d9973c6c2a2/_rp_example/ddmd_polaris_rp.py#L127
A signal module is used but not imported.
In this line: https://github.com/radical-cybertools/ROSE/blob/0d568f1274495c7a98832a0a67be7d9973c6c2a2/_rp_example/ddmd_polaris_rp.py#L190 a callback function is used which has different name than defined in this line:
https://github.com/radical-cybertools/ROSE/blob/0d568f1274495c7a98832a0a67be7d9973c6c2a2/_rp_example/ddmd_polaris_rp.py#L196
In this line https://github.com/radical-cybertools/ROSE/blob/0d568f1274495c7a98832a0a67be7d9973c6c2a2/_rp_example/ddmd_polaris_rp.py#L250  a self.TASK_DDMD_AGENT is used but in the tasks types in here is not defined: https://github.com/radical-cybertools/ROSE/blob/0d568f1274495c7a98832a0a67be7d9973c6c2a2/_rp_example/ddmd_polaris_rp.py#L19
In this line https://github.com/radical-cybertools/ROSE/blob/0d568f1274495c7a98832a0a67be7d9973c6c2a2/_rp_example/ddmd_polaris_rp.py#L258 ddmd was used but it is not imported or defined anywhere
In this line: https://github.com/radical-cybertools/ROSE/blob/0d568f1274495c7a98832a0a67be7d9973c6c2a2/_rp_example/ddmd_polaris_rp.py#L124 the submission is commented out, why?
In this line: https://github.com/radical-cybertools/ROSE/blob/0d568f1274495c7a98832a0a67be7d9973c6c2a2/_rp_example/ddmd_polaris_rp.py#L465 this might cause an infinite loop, we need a better procedure to terminate.

This example is abandoned and no longer part of the ROSE.


Error Decoding QR ode

Prerequisites
Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

[x] I am running the latest version
[x] I checked the documentation and found no answer
[x] I checked to make sure that this issue has not already been filed

Expected Behavior
QR code should work
Current Behavior
Error Decoding QR code
Failure Logs

That's a problem then you need to fix open scanner in mobile and get link and try to make it to bar code again in your own way

From where i can get the link ?

Scan on mobile or in chrome you have option check it
On Thu, 4 Mar 2021, 22:26 Coder_Subhangini<EMAIL_ADDRESS>wrote:

From where i can get the link ?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/vikasdo/Book-Recommendation-Analysis/issues/14#issuecomment-790765621,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKT3M7HTMGGRQOJHMDX5BCDTB63THANCNFSM4YNAO5JA
.

The link generate when the QR scans successfully but in this case Qr is not being scanned.

The link generate when the QR scans successfully but in this case Qr is not being scanned.

I see the problem but that's a google generated QR, so there shouldn't be any problem.

I see the problem but that's a google generated QR, so there shouldn't be any problem.

Don't know  what's the problem is . Now i think QR is deleted from Readme. :)

I see the problem but that's a google generated QR, so there shouldn't be any problem.

Don't know what's the problem is . Now i think QR is deleted from Readme. :)

I will add the QR

QR code is still not working . should i try creating a new QR for the website?

Remove QR it works better for me
On Sat, 20 Mar 2021, 20:00 Coder_Subhangini, @.***>
wrote:

QR code is still not working . should i try creating a new QR for the
website?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/vikasdo/Book-Recommendation-Analysis/issues/14#issuecomment-803363081,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKT3M7D7TTJVQETPSPCPOEDTESWO5ANCNFSM4YNAO5JA
.

Remove QR it works better for me

Don't know why its not working for me . I tried it using online QR code scanner but its not working .Should I delete the QR from readme

what I have to do, remove the QR from README or Work on QR??

what I have to do, remove the QR from README or Work on QR??

let the QR be there!


Problem with detecting imports (plat-linux on arm)

Versions:
<IP_ADDRESS>
Python: 3.5.3 (default, Jun  7 2018, 20:26:48)
Executable: /home/root/venv/bin/python
OS: Linux
Arch: aarch64
Nuitka was instaled via pip in virtualenv (but i had no issues on the other platform/python).
python -m nuitka --follow-imports --standalone my_app.py
Nuitka:WARNING:There is a problem with detecting imports, CPython said:
...
...
...
b'# /home/root/venv/lib/python3.5/plat-linux/__pycache__/IN.cpython-35.pyc matches /home/root/venv/lib/python3.5/plat-linux/IN.py'
b"# code object from '/home/root/venv/lib/python3.5/plat-linux/__pycache__/IN.cpython-35.pyc'"
b'Traceback (most recent call last):'
b'  File "/tmp/tmprgqqtoq_", line 20, in <module>'
b'    __import__(imp)'
b'  File "<frozen importlib._bootstrap>", line 969, in _find_and_load'
b'  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked'
b'  File "<frozen importlib._bootstrap>", line 673, in _load_unlocked'
b'  File "<frozen importlib._bootstrap_external>", line 673, in exec_module'
b'  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed'
b'  File "/home/root/venv/lib/python3.5/plat-linux/IN.py", line 133, in <module>'
b'    __MHWORDSIZE = __WORDSIZE'
b"NameError: name '__WORDSIZE' is not defined"
b'# clear builtins._'
b'# clear sys.path'
b'# clear sys.argv'
b'# clear sys.ps1'
b'# clear sys.ps2'
...
...

These files in plat-* seem generated from system header files. I couldn't really find how or where they are used. So removing them, and I believe this must only be an optimization for Nuitka. Quite obviously the file is totally unused on your system. It might be used or may once have been for some distutils magic.

There is code on the factory branch that handles this. If you want to check it out, go here:
http://nuitka.net/doc/factory.html

Thanks, i will!

Seems that it worked out. Thanks!

Released as 0.6.2


[T4A3][W09-B1] Ng Yong Sheng

Kept the equals methods but overrode it in the various classes because it does not make sense if an Address value with the exact same String is the same as a Phone value, which will happen if they use the same equals method.

Kept the equals methods but overrode it in the various classes because it does not make sense if an Address value with the exact same String as a Phone value be equated the same with the parent class equals method, which will happen if they use the same equals method.

Remove the comments from the Contact class, the 2nd, 3rd line.
Change the first line of comment to something relevant.

Good effort.
Some comments added. Please close the PR after reading comments.


fix(postgresql): Add quotes for CamelCase columns

If columns are created with CamelCase, they have to be quoted or else
postgres won't find them.
This PR only applies to SELECT * FROM tablename queries. When the column names are specified individually with quotes, it already works.
fixes #1718

@kyleconroy Can we release a new version of SQLC that contains this functionality?


Add a recap blog post

This blog post recaps the Pulumi ESC and Pulumi for Platform Teams launches, and our Series C, and updates the banner.

@zchase I wasn't sure what the plan for the banner was. If you had other plans, no worries, just figured I'd knock this out in case it is helpful.


Core vs runtime and removing the Example class

Hey,
I've built a CNN based on the  neon_cnn.cpp example. I find that it is running orders of magnitude slower than the exact same network implemented in MKLDNN for Intel CPU.

The MKLDNN implementation does a few things that do not exist here; like fused conv_relu (all of my conv layers are followed by ReLU) and reordering of data. Do these exist in ACL and can you point me to some code?

I am also curious if using the Example class might be slowing things down? I understand there is a differentiation between core and runtime libraries but I haven't found any example of code running it. If I did build my network from scratch rather than using the Example what kind of speed could I expect?

I look forward to hearing from you.
Thanks,
Gal

Hi @GalMoore

ACL supports fused activation in the convolution layer, please look at the documentation: https://github.com/ARM-software/ComputeLibrary/blob/master/arm_compute/runtime/NEON/functions/NEConvolutionLayer.h#L93
The example class shouldn't cause any major slowdown. You have two options: a) use the experimental graph api vs b) implement the network using the runtime functions like NEConvolutionLayer. The graph api in ACL is a thin layer on the top of the core and runtime libraries and it should not cause any slowdow.

What CPUs are you comparing? Which intel cpu vs which arm cpu?
Could you please provide an example of the network?

Hey @morgolock
Thanks for your reply.

Great! Does fused conv_relu significantly speedup inference? If so, how would I change the neon_cnn  example to make that happen? It could be enabled twice in this network right?
Thanks, that saves us the time of trying to separate the class to see if leads to performance change. Yes our network is implemented with the runtime functions - exactly like the neon_cnn example - but with few changes in params like dilation, filter size etc.. What is the experimental graph API?
Regarding the hardware (in both cases I'm running inference on a single core/thread and on the same input for 1,000 times):

The x86 is:

Intel Xeon(R) CPU E5-2680 v3 @ 2.50GHz

running Ubuntu 18.04

The Aarch64 is:

ARM Taishan Kunpeng 920 2.6 GHz

running EulerOS (similar to fedora centOS)

I wonder if the data reorder in MKLDNN (oneDNN) makes a big difference. Any thoughts?
As I mentioned, the network is very similar to neon_cnn with only few hyper parameter changes. The MKLDNN version is running orders of magnitude faster with the setup above. The ACL implementation is however similar in terms of performance to an optimized network after AutoTVM.
I look forward to hearing from you.
Thanks,
Gal

Hi @GalMoore
Could you please share the command you use to build ACL? specifically the arch option.
What version of ACL are you using? Please try with the lastest 20.08

Does fused conv_relu significantly speedup inference?

There is no easy answer, it depends on the underlying hardware and data types used by the network. But in general yes, you should see an improvement.

how would I change the neon_cnn example to make that happen?

Please take a look at the API documentation, when you configure the convolution layer you should pass in a struct of the ActivationLayerInfo to enable the fusion.

What is the experimental graph API?

The graph API in ACL is an internal tool we created to quickly prototype networks and assess their performance and validate them. It's not meant to be used in a production environment. You're not using the graph API from what you described you use the runtime's functions direactly.
Hope this helps.


Unable to use in successive Cypress tests

Problem
I am trying to use mock-sockets with Cypress, setting up the mock in the onBeforeLoad hook for cy.visit() in my beforeEach block. I can get one test to work but when the mock setup runs on the next beforeEach I get an error that A mock server is already listening on this url.
code under test:
(called from my React app's componentDidiMount)
  subscribeToSettings(url: string): W3CWebSocket {
    let settingsSubscription = new W3CWebSocket(url);
    settingsSubscription.onopen = () => console.log('WebSocket Client Connected (settings)');
    settingsSubscription.onclose = () => console.log('WebSocket Client Disconnected (settings)');
    settingsSubscription.onmessage = (message: MessageEvent) => this.handleSettingsMessage(message);
    return settingsSubscription;
  }

  /**
   * Handler for websocket settings messages, which updates the local settings values.
   * @param message the websocket message
   */
  handleSettingsMessage(message: MessageEvent) {
    const updatedValues = JSON.parse(message.data);
    console.log('A message was received on the settings channel.', updatedValues);
    this.props.updateSettingsFromBackend(updatedValues);
  }

cypress tests
import { Server } from 'mock-socket'
import { defaultSettingsState } from "../../src/reducers/settings.reducer";
import { _createSettingsApiPutPayload } from "../../src/actions/settings.actions";

describe('mock socket method 1', () => {
  let mockSocket;
  let mockServer;
  beforeEach(() => {
    cy.visit('/', {
      onBeforeLoad(win: Window): void {
        // @ts-ignore
        cy.stub(win, 'WebSocket', url => {
          mockServer = new Server(url)
          mockServer.on('connection', socket => {
            console.log('mock socket connected');
            mockSocket = socket;
          });
          mockSocket = new WebSocket(url);
          return mockSocket
        });
      },
    });
  });

  afterEach(() => {
    mockSocket.close()
    mockServer.stop()
  });

  it('gets a message', () => {
    cy.contains('SETTINGS').click()
    const object = _createSettingsApiPutPayload(defaultSettingsState)
    mockSocket.send(JSON.stringify(object));
    cy.contains('Motion threshold')
  });
  it('gets another message', () => {
    cy.contains('SETTINGS').click()
    const object = _createSettingsApiPutPayload(defaultSettingsState)
    mockSocket.send(JSON.stringify(object));
    cy.contains('Motion threshold')
  });
});

Here are the logs from my console:
WebSocket Client Connected (settings)
mock socket connected at url ws://localhost:8702/PM_Settings
A message was received on the settings channel. {…}
mock socket connected at url ws://localhost:3000/sockjs-node/949/mhuyekl3/websocket
The development server has disconnected.
Refresh the page if necessary.
Uncaught Error: A mock server is already listening on this url

I wonder if it has to do with that second call which is for some mystery url.
(Note: calling cy.contains('SETTINGS').click() at the end of beforeEach somehow doesn't work, even in that first test. Even when I have my app set to start on the settings page (instead of having to click to it from inside the tests),  clicking on SETTINGS from beforeEach still doesn't work even though we're already there. So that's kind of weird)
These full cypress logs may also be helpful:

I fixed the A mock server is already listening on this url issue with the following implementation:
// websocket-server-mock.ts
import { Server } from "mock-socket";

let mockServer = null;

export class WebsocketServerMock {
  constructor(url: string){
    if (mockServer) {
      mockServer.stop();
      mockServer.close();
      mockServer = null;
    }

    mockServer = new Server(url);
  }

  connect(callback){
    mockServer.on("connection", (socket: any) => {
      if ("function" === typeof callback) {
        callback(socket);
      }
    })
  }
}

And this is how I used this on a test.
import { WebSocket } from "mock-socket";
import { WebsocketServerMock } from "../../support/websocket-server-mock";

beforeEach(() => {
    cy.visit("/#/alarmcentral/global", {
        onBeforeLoad: (win) => {
          cy.stub(win, "WebSocket", (url) => new WebSocket(url));
        },
    });
})

...

it("should test something", () => {
    const { hostname, port } = window.location;
    const url = `ws://${hostname}:${port}/nxt-ui/app/websocket/spectralAnalysis`;
    const mockServer = new WebsocketServerMock(url);
    mockServer.connect((socket) => {
      socket.on("message", console.log);
      socket.send(`{"message":"Successfully connected!"}`);
    });
}

According to the screen you have 2 WebSockets called for the first test: /PM_Settings and /sockjs-node/..., so it's why only the latest ws is assigned to mockServer and is cleared in the afterEach hook. Looks like the second ws is related to the hot reloading so you don't need to catch it.
It's better to create the mock server first to avoid handling everything else in the stub callback:
mockServer = new Server(url)
mockServer.on('connection', socket => {
    console.log('mock socket connected');
    mockSocket = socket;
});
cy.stub(win, 'WebSocket', url => new WebSocket(url));

So here you will have only pre-defined servers and all other WebSockets will be rejected (It stops the hot reloading there but it doesn't affect the tests. But if you want to keep it you have to add some conditions for this URL in the stub callback to create a native WebSocket at this case)

@jrfornes Looks like your mock server is running across multiple tests until the new instance of WebsocketServerMock is created. It's better to clear all mocks in afterEach hook, so it makes the code clear and avoids weird behavior. (Like If you forgot to create a new instance the previous mock server will catch the next WebSocket)


Twisted Reactor breaks twisted.web.xmlrpc

tornado.platform.twisted.TornadoReactor breaks twisted.web.xmlrpc because it doesn't call connectionLost().
Following code works fine if you remove "tornado.platform.twisted.install()":
# -*- coding: utf-8 -*-
from __future__ import print_function

import tornado.platform.twisted
tornado.platform.twisted.install()

from twisted.internet import defer,reactor

from twisted.web.xmlrpc import Proxy

service = Proxy('http://www.cookcomputing.com/xmlrpcsamples/RPC2.ashx')
result = service.callRemote('examples.getStateName', 13)
result.addCallback(lambda x: (print(x),reactor.stop()))
reactor.run()

@stiletto, can you test with the change I just merged from pull request #389?  It looks like it may fix the problems you're seeing.

I'm closing this issue, but please feel free to reopen if the problem is still present.


home

fill up the home screen.
add image of the vote
add feature list

Updated to add some home content and a screenshot. could have some better styling for the cards still.
Maybe try to improve alongside #9 ?


[Imgui] Update docking-experimental and freetype features to 1.81

Update the docking-experimental feature from 1.79 to 1.81.
The Freetype integration procedure was changed with 1.81, the IMGUI_ENABLE_FREETYPE macro should be defined in imconfig.h.

We refactored some of imgui_freetype to make integration easier (a simple #define IMGUI_ENABLE_FREETYPE in your config file does the job for most users) and also to fix some inconsistencies. The majority of imgui_freetyoe users shouldn't be affected as the RasterizerFlags were rarely used.
Removed ImGuiFreeType::BuildFontAtlas(). Kept inline redirection function.
Prefer using #define IMGUI_ENABLE_FREETYPE, but there's a runtime selection path available too.
The shared extra flags parameters (very rarely used) are now stored in ImFontAtlas::FontBuilderFlags.
Renamed ImFontConfig::RasterizerFlags (used by FreeType) to ImFontConfig::FontBuilderFlags.
Renamed ImGuiFreeType::XXX flags to ImGuiFreeTypeBuilderFlags_XXX for consistency with other API.

I updated the CMake file to uncomment this macro in imconfig.h when the user ask for the freetype feature.

The regressions caused by gsoap will be fixed by PR #16270.

/azp run

The IMGUI_ENABLE_FREETYPE macro should only be defined in imconfig.hpp when the freetype feature is enabled, I fixed it. I also moved the string replacement code for wchar32 to the portfile for the reasons you mentioned about parallel configuration.


new pydata theme proposed instead of dff sphinx theme

Description
New theme proposal. It should solve existing bugs and ease theme development and integration.
Checklist

[ ] I have covered the code with tests
[ ] I have added comments to my code to help others understand it
[x] I have updated the documentation to reflect the changes
[x] I have performed a self-review of the changes

Theme, I think so, is very attractive. There are different buttons, light/dark themes. The documentation is looking better, thanks @pseusys


Roll engine to 77252d2371f3341f9f3a7e3ec2eb64bfa29bf975

Rolls the engine to 77252d2371f3341f9f3a7e3ec2eb64bfa29bf975 in order to pick up a semantics flag change that is needed to fix the build.

This actually breaks tests without some simultaneous framework changes.  The PR https://github.com/flutter/flutter/pull/41814 includes those changes, as well as the engine roll.  I'll commit that one instead of this one.

Thanks for the update. Will follow that instead.


Incompatible with rules_prcross

Symbol links created by https://github.com/jvolkman/rules_pycross will be wrongly packed in the appimage. The problem is pycross' depsets only include a single dictionary, so https://github.com/lalten/rules_appimage/blob/87277aa09e2b33dcacc813dd0f4db71c07e97f86/appimage/private/tool/mkappimage.py#L134 will directly add whole dictionary full of symlinks into new_manifest_data.

So rules_pycross targets have just a single directory (not sure what dictionary you mean here?) as runfiles? Is that dir a TreeArtifact? or are the deps inside the dir just undeclared?
I think the current behavior of copying directory dependencies as-is is correct in rules_appimage. It's pretty ambiguous what should be done with them, and Bazel will even warn you (input 'tests/dir' to //tests:appimage_py is a directory; dependency checking of directories is unsound)
Can you maybe share the manifest.json rules_appimage generates for a rules_pycross target?
Maybe @jvolkman has some insights here as well?

Maybe @jvolkman has some insights here as well?

Hello.
One of rules_pycross' features is building sdists into wheels in build actions, rather than in repository rules. Because of this, it also extracts Python wheels in build actions rather than repository rules, so the only thing added to the dependency graph is a single TreeArtifact containing the contents of the extracted wheel.
The relevant starlark is here.

@chestnutprog please check if https://github.com/lalten/rules_appimage/pull/173 resolves this issue for you


Added a new SizedBufferPool + README/godoc changes.

Added a new bpool.SizedBufferPool type that pre-allocates the buffers provided by the pool.

This helps avoid cases where a buffer in a 'not-so-smart' pool might end up growing unnecessarily large due to non-typical use cases - e.g. a particularly large JSON response that's not the norm.

The flipside is that you want to "tune" the alloc parameter (or at least make an educated guess) to cover your 95th percentile/median buffer size (etc.).

Usage is a therefore little more obtuse than the regular bpool.BufferPool (changing the existing impl. would also break the API) but not hugely so.

Note: I am definitely open to changing the name. I had PreSizedBufferPool and AllocatedBufferPool before settling on SizedBufferPool. None are "great" in that they are ambiguous as 'size' or 'allocated' could be conflated with the number buffers in the pool, not the allocated size of each buffer. (Grown? Measured?)

I also fleshed out the README a little further and 'standardised' the godoc comments to use // instead of the /* */ syntax.

Also note that Go 1.5 has a Cap() method that returns the full capacity of the underlying slice, where as cap(b.Bytes()) returns the capacity based on the current read off-set.
This doesn't affect our implementation however as we call b.Reset() before we check the capacity, which resets the offset (and we end up getting the true capacity).
PS: ping @oxtoacart in the event GH doesn't notify on you a fresh PR. Sometimes the email notification breakpoint isn't clear.

@elithrar This is really awesome, thanks!  I know it's a little hypocritical of me because I didn't have any unit tests in the original, but how would you feel about adding some unit tests for SizedBufferPool?

Funny you ask! I was going to write tests for the whole repo this weekend, but here's a comprehensive test for the SizedBufferPool in the meantime.
The tests check that over-sized buffers are being dropped and that correctly sized buffers are created to replace them.
I still aim to write tests for the rest of the package this weekend if I can sneak in the time—just wanted to get this one done before heading to the office this morning!

@oxtoacart Rest of the tests added. They're fairly simple, but check params and that the pools discard additional buffers beyond their size parameter. Should be good to merge once you've had a look over them!

@elithrar Very cool, thanks for doing this!


Add Ignyita to Preptember participants

Type of Contribution
Check the item(s) that applies.

[x] 🌱 Practice Open Source
[ ] 📃 Repositories List

If your type of contribution is Repositories List, check items in the repository checklist below that apply.
⚠ We only accept PRs where most of the items are checked

[ ] Relevant name
[ ] Description
[ ] Relevant tags
[ ] README.md file
[ ] CONTRIBUTIONS.md/CONTRIBUTING.md file
[ ] Open source license
[ ] Code of Conduct (COC)
[ ] Issue and Pull Request templates

Description

Hi @Ignyita,
We only accept PRs from Virtual Coffee members only in this repository.
What is your username on Slack so I can proceed this PR?


Make art ready for v2 release

Before asking big brains to test art we must make sure that it looks professional.
Acceptance criterion

[x] Updated readme.
[x] tags added
[ ] release created.
[x] about
[x] All v.02 issues must be closed
[x] Change the name from audio research toolkit to actually robust training

@SebChw what do you mean by saying tags added, and about?

After #174 we're ready to to a release


Locator with event-driven approach?

@stomita     Can the event-driven approach to querying as shown below be used with queryMore (low-level wrapper) instead of autoFetch? If so, how would one retrieve the locator to pass in to the next query?
var records = [];
var query = conn.query("SELECT Id, Name FROM Account")
  .on("record", function(record) {
    records.push(record);
  })
  .on("end", function() {
    console.log("total in database : " + query.totalSize);
    console.log("total fetched : " + query.totalFetched);
  })
  .on("error", function(err) {
    console.error(err);
  })
  .run({ autoFetch : true, maxFetch : 4000 }); // synonym of Query#execute();

Is this event-driven approach actually streaming, or is it still synchronous but just with a streaming interface?

Ah, it's still synchronous


fMRIprep preprocessing takes 76 hrs on Mac with M2 chip

What happened?
Hi everybody, my labmate and I are first time fMRIPrep users. It takes 76 hours to do the preprocessing for one subject on Mac with M2 chip! But, preprocessing of the same participant with same code takes 8 hours on another Mac with Intel 2,8 GHz Quad-Core i7. Is there anything that we can do to make this process any shorter on Mac with M2 chip?
What command did you use?
fmriprep-docker /Users/User/Desktop/resting/sub-01 /Users/User/Desktop/resting/sub-01 participant --output-spaces func fsnative MNI152NLin2009cAsym:res-2 MNI152Lin:res-2 MNI152NLin6Asym:res-2 --skip_bids_validation --use-aroma --ignore fieldmaps --cifti-output --use-syn-sdc --fs-license-file /Users/User/Desktop/resting/license.txt --low-mem

What version of fMRIPrep are you running?
20.2.7
How are you running fMRIPrep?
Docker
Is your data BIDS valid?
Yes
Are you reusing any previously computed results?
No
Please copy and paste any relevant log output.
No response
Additional information / screenshots

Before trying to build a docker image with binaries optimized for ARM, we would need to demonstrate that it can be done bare metal and realize the speed gains.
Would you be comfortable installing fMRIPrep and the tools it uses on your system directly? You can see the Docker file for the necessary tools.

Thank you for your answer Chris!

Closing this as nothing to do until we hear more.


TypeError: this.adapter.addAll is not a function

my project use socket.io 2.0.4   socket.io-redis 5.2.0
const httpServer = require('http').createServer(app);
const io = require('socket.io')(httpServer);
const ioc = require('socket.io-redis');
io.adapter(ioc({ host: socketRedisConfig.host, port: socketRedisConfig.port, password: socketRedisConfig.password}));

getting error
0|server   | TypeError: this.adapter.addAll is not a function
0|server   |     at Socket.join (/home/htdocs/socket/server/node_modules/socket.io/lib/socket.js:244:16)
0|server   |     at Socket.onconnect (/home/htdocs/socket/server/node_modules/socket.io/lib/socket.js:299:8)
0|server   |     at /home/htdocs/socket/server/node_modules/socket.io/lib/namespace.js:171:16
0|server   |     at _combinedTickCallback (internal/process/next_tick.js:73:7)
0|server   |     at process._tickDomainCallback (internal/process/next_tick.js:128:9)

@xzk821649509 , what was the solution here?

Both<EMAIL_ADDRESS>and<EMAIL_ADDRESS>include<EMAIL_ADDRESS>which adds the addAll method (https://github.com/socketio/socket.io-adapter/commit/f627cd2db1eb2f18aef82ac991ddf8ea799b662d).
I'd say there's an earlier version of socket.io-adapter in your dependency tree. Could you please check if reinstalling from scratch solves the issue? Thanks!


Fix a typo in peerDependenciesMeta field name

I'll do this in a separate update since  I have some conflicts with your branch. Thanks for the PR!