text:
Icon disappeared from the menu bar

The icon appears with "updating" then disappears. I have never had this issue before.
I tested the following things to no avail:
• kill battery and relaunch it
• brew reinstall battery
Version: 1.0.8
👾 Battery CLI logs:

02/21/23-08:07:54 - Discharging to 80% from 78%
02/21/23-08:07:54 - 🔽🪫 Enabling battery discharging
02/21/23-08:07:54 - 🔼🪫 Disabling battery discharging
02/21/23-08:07:55 - Discharging completed at 78%
02/21/23-08:07:55 - Discharge pre battery-maintenance complete, continuing to battery maintenance loop
02/21/23-08:07:55 - Charging to and maintaining at 80% from 78%
02/21/23-09:23:32 - Debug trail. User: clement, config folder: /Users/clement/.battery, logfile: /Users/clement/.battery/battery.log, file called with 1: maintain_synchronous, 2: recover
02/21/23-09:23:32 - Recovering maintenance percentage 80
02/21/23-09:23:35 - Triggering discharge to 80 before enabling charging limiter
02/21/23-09:23:37 - Discharging to 80% from 49%
02/21/23-09:23:37 - 🔽🪫 Enabling battery discharging
02/21/23-09:23:37 - 🔼🪫 Disabling battery discharging
02/21/23-09:23:37 - Discharging completed at 49%
02/21/23-09:23:37 - Discharge pre battery-maintenance complete, continuing to battery maintenance loop
02/21/23-09:23:38 - Charging to and maintaining at 80% from 49%
02/21/23-13:00:49 - Triggering discharge to 80 before enabling charging limiter
02/21/23-13:00:49 - Discharging to 80% from 37%
02/21/23-13:00:49 - 🔽🪫 Enabling battery discharging
02/21/23-13:00:49 - 🔼🪫 Disabling battery discharging
02/21/23-13:00:49 - Discharging completed at 37%
02/21/23-13:00:49 - Discharge pre battery-maintenance complete, continuing to battery maintenance loop
02/21/23-13:00:49 - Charging to and maintaining at 80% from 37%
02/21/23-13:00:59 - Triggering discharge to 80 before enabling charging limiter
02/21/23-13:00:59 - Discharging to 80% from 37%
02/21/23-13:00:59 - 🔽🪫 Enabling battery discharging
02/21/23-13:00:59 - 🔼🪫 Disabling battery discharging
02/21/23-13:00:59 - Discharging completed at 37%
02/21/23-13:00:59 - Discharge pre battery-maintenance complete, continuing to battery maintenance loop
02/21/23-13:00:59 - Charging to and maintaining at 80% from 37%
02/21/23-14:04:01 - Charge above 80
02/21/23-14:04:01 - 🔌🪫 Disabling battery charging
02/21/23-17:09:45 - Debug trail. User: clement, config folder: /Users/clement/.battery, logfile: /Users/clement/.battery/battery.log, file called with 1: maintain_synchronous, 2: recover
02/21/23-17:09:45 - Recovering maintenance percentage 80
02/21/23-17:09:45 - Triggering discharge to 80 before enabling charging limiter
02/21/23-17:09:46 - Discharging to 80% from 83%
02/21/23-17:09:46 - 🔽🪫 Enabling battery discharging
02/21/23-17:09:46 - Battery at 83% (target 80%)
02/21/23-17:10:41 - Triggering discharge to 80 before enabling charging limiter
02/21/23-17:10:41 - Discharging to 80% from 83%
02/21/23-17:10:41 - 🔽🪫 Enabling battery discharging
02/21/23-17:10:41 - Battery at 83% (target 80%)
02/21/23-17:10:45 - Triggering discharge to 80 before enabling charging limiter
02/21/23-17:10:45 - Discharging to 80% from 83%
02/21/23-17:10:45 - 🔽🪫 Enabling battery discharging
02/21/23-17:10:45 - Battery at 83% (target 80%)
02/21/23-17:11:41 - Battery at 83% (target 80%)
02/21/23-17:11:45 - Battery at 82% (target 80%)
02/21/23-17:12:41 - Battery at 82% (target 80%)
02/21/23-17:12:45 - Battery at 82% (target 80%)
02/21/23-17:13:41 - Battery at 82% (target 80%)
02/21/23-17:13:45 - Battery at 82% (target 80%)
02/21/23-17:14:41 - Battery at 82% (target 80%)
02/21/23-17:14:45 - Battery at 81% (target 80%)
02/21/23-17:15:41 - Battery at 81% (target 80%)
02/21/23-17:15:46 - Battery at 81% (target 80%)
02/21/23-17:16:41 - Battery at 81% (target 80%)
02/21/23-17:16:46 - Battery at 81% (target 80%)
02/21/23-17:17:41 - Battery at 81% (target 80%)
02/21/23-17:17:46 - 🔼🪫 Disabling battery discharging
02/21/23-17:17:46 - Discharging completed at 80%
02/21/23-17:17:46 - Discharge pre battery-maintenance complete, continuing to battery maintenance loop
02/21/23-17:17:46 - Charging to and maintaining at 80% from 80%
02/21/23-17:17:46 - Charge above 80
02/21/23-17:17:46 - 🔌🪫 Disabling battery charging
02/21/23-17:18:41 - 🔼🪫 Disabling battery discharging
02/21/23-17:18:41 - Discharging completed at 80%
02/21/23-23:41:03 - Charge below 80
02/21/23-23:41:03 - 🔌🔋 Enabling battery charging
02/21/23-23:41:03 - 🔼🪫 Disabling battery discharging
02/22/23-09:55:07 - Triggering discharge to 80 before enabling charging limiter
02/22/23-09:55:07 - Discharging to 80% from 4%
02/22/23-09:55:07 - 🔽🪫 Enabling battery discharging
02/22/23-09:55:07 - 🔼🪫 Disabling battery discharging
02/22/23-09:55:07 - Discharging completed at 4%
02/22/23-09:55:07 - Discharge pre battery-maintenance complete, continuing to battery maintenance loop
02/22/23-09:55:07 - Charging to and maintaining at 80% from 4%
02/22/23-09:55:56 - Triggering discharge to 80 before enabling charging limiter
02/22/23-09:55:56 - Discharging to 80% from 5%
02/22/23-09:55:56 - 🔽🪫 Enabling battery discharging
02/22/23-09:55:56 - 🔼🪫 Disabling battery discharging
02/22/23-09:55:56 - Discharging completed at 5%
02/22/23-09:55:56 - Discharge pre battery-maintenance complete, continuing to battery maintenance loop
02/22/23-09:55:56 - Charging to and maintaining at 80% from 5%
02/22/23-09:57:56 - Charge below 80
02/22/23-09:57:56 - 🔌🔋 Enabling battery charging
02/22/23-09:57:56 - 🔼🪫 Disabling battery discharging
02/22/23-09:58:15 - Triggering discharge to 80 before enabling charging limiter
02/22/23-09:58:15 - Discharging to 80% from 7%
02/22/23-09:58:15 - 🔽🪫 Enabling battery discharging
02/22/23-09:58:15 - 🔼🪫 Disabling battery discharging
02/22/23-09:58:15 - Discharging completed at 7%
02/22/23-09:58:15 - Discharge pre battery-maintenance complete, continuing to battery maintenance loop
02/22/23-09:58:15 - Charging to and maintaining at 80% from 7%
02/22/23-10:11:05 - Triggering discharge to 80 before enabling charging limiter
02/22/23-10:11:05 - Discharging to 80% from 17%
02/22/23-10:11:05 - 🔽🪫 Enabling battery discharging
02/22/23-10:11:05 - 🔼🪫 Disabling battery discharging
02/22/23-10:11:05 - Discharging completed at 17%
02/22/23-10:11:05 - Discharge pre battery-maintenance complete, continuing to battery maintenance loop
02/22/23-10:11:05 - Charging to and maintaining at 80% from 17%

🖥  Battery GUI logs:

Executing PATH=$PATH:/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew:/usr/bin/ battery status_csv
Refreshing tray icon...
Battery status:
{"percentage":"8","remaining":"2:58","charging":true,"discharging":false,"maintain_percentage":"80","battery_state":"8% (2:58 remaining)","daemon_state":"smc charging enabled"}
Executing PATH=$PATH:/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew:/usr/bin/ battery status
Generate app menu percentage: 8
Resetting interface timer speed
Get active logo for 8
Executing PATH=$PATH:/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew:/usr/bin/ battery status_csv
Refreshing interface update timer
Display percentage undefined based on 8
Limiter status message:
02/22/23-09:59:56 - Battery at 8% (2:58 remaining), smc charging enabled
02/22/23-09:59:56 - Your battery is currently being maintained at 80%

Battery status:
{"percentage":"8","remaining":"2:58","charging":true,"discharging":false,"maintain_percentage":"80","battery_state":"8% (2:58 remaining)","daemon_state":"smc charging enabled"}
Setting interface refresh speed to 0.5 minutes
Starting tray app
Executing PATH=$PATH:/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew:/usr/bin/ curl icanhasip.com &> /dev/null
Get inactive logo for 100
Executing PATH=$PATH:/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew:/usr/bin/ curl github.com &> /dev/null
Display percentage 95 based on 100
Triggering boot-time auto-update
Tray app boot complete
Internet online: true
Executing PATH=$PATH:/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew:/usr/bin/ which git
Executing PATH=$PATH:/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew:/usr/bin/ which battery
Executing PATH=$PATH:/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew:/usr/bin/ sudo -n /usr/local/bin/smc -k CH0C -r
Executing PATH=$PATH:/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew:/usr/bin/ sudo -n /usr/local/bin/smc -k CH0I -r
Executing PATH=$PATH:/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew:/usr/bin/ which smc
Is installed?
/usr/local/bin/smc

Executing ps aux | grep "/usr/local/bin/battery " | wc -l | grep -Eo "\d*"
Executing PATH=$PATH:/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew:/usr/bin/ battery maintain stop
Found 3 battery related processed to kill
Executing pkill -f "/usr/local/bin/battery.*"
Error killing existing battery progesses, usually means no running processes
Updating battery...
Executing PATH=$PATH:/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew:/usr/bin/ battery update silent
Update result:
This will run curl -sS https://raw.githubusercontent.com/actuallymentor/battery/main/update.sh | bash
🔋 Starting battery update

[ 1/3 ] Cloning battery repository
[ 2/3 ] Writing script to /usr/local/bin/battery
[ 3/3 ] Removed temporary folder

🎉 Battery tool updated.

Executing nohup curl "https://unidentifiedanalytics.web.app/touch/?namespace=battery" > /dev/null 2>&1
Executing PATH=$PATH:/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew:/usr/bin/ battery status_csv
App initialisation process complete
Executing PATH=$PATH:/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew:/usr/bin/ battery maintain 80
Battery status:
{"percentage":"17","remaining":"2:44","charging":true,"discharging":false,"battery_state":"17% (2:44 remaining)","daemon_state":"smc charging enabled"}
enable_battery_limiter exec complete
Refreshing tray icon...
Executing PATH=$PATH:/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew:/usr/bin/ battery status_csv
Executing PATH=$PATH:/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew:/usr/bin/ battery status
Battery status:
{"percentage":"17","remaining":"2:45","charging":true,"discharging":false,"maintain_percentage":"80","battery_state":"17% (2:45 remaining)","daemon_state":"smc charging enabled"}
Generate app menu percentage: 17
Get active logo for 17
Refreshing interface update timer
Refreshing interface update timer
Executing PATH=$PATH:/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew:/usr/bin/ battery status_csv
Executing PATH=$PATH:/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew:/usr/bin/ battery status_csv
Limiter status message:
02/22/23-10:11:07 - Battery at 17% (2:45 remaining), smc charging enabled
02/22/23-10:11:07 - Your battery is currently being maintained at 80%

Display percentage undefined based on 17
Resetting interface timer speed
Battery status:
{"percentage":"17","remaining":"2:45","charging":true,"discharging":false,"maintain_percentage":"80","battery_state":"17% (2:45 remaining)","daemon_state":"smc charging enabled"}
Setting interface refresh speed to 0.5 minutes
Battery status:
{"percentage":"17","remaining":"2:45","charging":true,"discharging":false,"maintain_percentage":"80","battery_state":"17% (2:45 remaining)","daemon_state":"smc charging enabled"}
Setting interface refresh speed to 0.5 minutes
Executing PATH=$PATH:/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew:/usr/bin/ battery status_csv
Refreshing tray icon...
Battery status:
{"percentage":"17","remaining":"2:45","charging":true,"discharging":false,"maintain_percentage":"80","battery_state":"17% (2:45 remaining)","daemon_state":"smc charging enabled"}
Executing PATH=$PATH:/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew:/usr/bin/ battery status
Generate app menu percentage: 17
Get active logo for 17
Resetting interface timer speed
Limiter status message:
02/22/23-10:11:37 - Battery at 17% (2:45 remaining), smc charging enabled
02/22/23-10:11:37 - Your battery is currently being maintained at 80%

Executing PATH=$PATH:/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew:/usr/bin/ battery status_csv
Display percentage undefined based on 17
Refreshing interface update timer
Battery status:
{"percentage":"17","remaining":"2:45","charging":true,"discharging":false,"maintain_percentage":"80","battery_state":"17% (2:45 remaining)","daemon_state":"smc charging enabled"}
Setting interface refresh speed to 0.5 minutes

📁 Config folder details:

total 1872
drwxr-xr-x@   6 clement  staff   192B 22 fév 10:11 .
drwxr-xr-x+ 151 clement  staff   4,7K 22 fév 10:11 ..
-rwxr-xr-x@   1 clement  staff    24K 22 fév 10:11 battery.log
-rw-r--r--@   1 clement  staff     5B 22 fév 10:11 battery.pid
-rw-r--r--@   1 clement  staff   849K 22 fév 10:11 gui.log
-rw-r--r--@   1 clement  staff     3B 22 fév 10:11 maintain.percentage

⚙  Battery data:

02/22/23-10:11:51 - Battery at 17% (2:45 remaining), smc charging enabled
02/22/23-10:11:51 - Your battery is currently being maintained at 80%
Battery CLI utility v1.0.1

Can you please the latest version 1.0.9, or try the 1.0.10 beta?
Reopen this issue if the problem persists.

authors: actuallymentor carlodrift

repo: actuallymentor/battery


text:
Shorten

Instead of:
total_data = functools.reduce(lambda a, b: a + b, results)
npdata = np.transpose(total_data)

a one-liner?

Done a3f89a98f7630b35b6c4a27536156a9443773931

source: gharchive/issue

repo: acturtle/cashflower

license: MIT

license_type: permissive

license_source: github-api


text:
⚠ Processors has degraded performance

In ac6bf49, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 83 ms

Resolved: Processors performance has improved in 08c7826.

repo: acumenlabs/status-page


text:
error in ads1015.py

Traceback (most recent call last):
File "/Users/nianhong/kairos/kairos_repo/vibration_monitor/ADS1015_FT232H.py", line 10, in
import adafruit_ads1x15.ads1015 as ADS
File "/Users/nianhong/kairos/kairos_repo/vibration_monitor/venv/lib/python3.11/site-packages/adafruit_ads1x15/ads1015.py", line 23, in
from .ads1x15 import ADS1x15, Mode
ModuleNotFoundError: No module named 'adafruit_ads1x15.ads1x15'

It looks like you are using Python with Blinka via a FT232H.
How did you install the ADS1x15 library on to your system?

Closing this for now since there was no further response. please feel free to re-open or create a new issue if you get back to this and are still having issues.

authors: FoamyGuy caternuson fzdm2022


text:
🧹 🧹 🧹

@tekktrik this library is ready to rock! you know what to do :)

Okie dokie!

Pending resolution of #4 before adding to bundle or RTD

@kattni ready for the RTD webhook!

Done!

authors: kattni ladyada tekktrik


text:
Expose polarity argument on BBIO_PWM_Adapter.start()

Adafruit's dedicated Beaglebone Black Python API allows the use of the polarity argument upon calling PWM.start(), which determines whether the duty cycle setting affects the high or low part of the signal's period.
This is useful in cases where an output is driven with inverted logic (e.g. using a transistor in inverter configuration to switch a +12V load).
BBIO_PWM_Adapter.start() in the PWM.py module does neither expose nor initialise the polarity argument, thus it can't be used.

hiya thank you for the issue. we're going to be deprecating this library in favor of our python3 Blinka library which has support for almost 200 different drivers, and a wide variety of linux computers as well as ft232h

If this issue is still occuring when you use Blinka, please re-open it there!

authors: dplanella ladyada

license: mit

license_source: bigquery


text:
Tuple in Python is not indicated by parenthesis!

Python Version
No response
flake8 Version
No response
Package Version
No response
Description

C408: Unnecessary <dict/list/tuple> call - rewrite as a literal.
It's slower to call e.g. dict() than using the empty literal, because the name dict must be looked up in the global scope in case it has been rebound. Same for the other two basic types here. For example:
Rewrite dict() as {}
Rewrite dict(a=1, b=2) as {"a": 1, "b": 2}
Rewrite list() as []
Rewrite tuple() as ()

Are you really proposing to represent tuple as (), but for Python it is not right because the comma is an tuple indicator foo, bar this is a tuple or singular one something, and adding parenthesis only adds readability, but it is not syntactically  required: (foo, bar) and (something,).

OK, () is a literal for empty tuple, I missed that. So, sorry, my issue is not relevant, clossing.


text:
Player models are randomly replaced with a default black/blank player model thing.

Randomly people look like the black blank player model that you see sometimes as the preview of player models in the pointshop menu.
Any ideas?

Welp I couldn't figure it out and decided to shut down my server... Oh well.

Welp I couldn't figure it out and decided to shut down my server... Oh well.

Like this?

Hope someone finds a fix. My TTT server has been running for over a year and still gets a decent amouny of daily traffic  I don't want this issue to affect it in the long term.

Amount*

I have exactly the same problem. I've just made a local SteamCMD server to play with friends and I added some playermodels to pointshop. They work but they change their colour usually to black / green / blue / dark grey / black flickering, ...
I confirmed this with 'sv_cheats 1' and 'thirdperson' commands. Besides, friends also

Besides, after preparing round, sometimes the model changes to a default cs terrorist one...
I don't know what else should I do :/

@iluh  I don't have the problem, only the problem in the screenshot before yours

I had this problem on my server. Try using TTT Weapon Placer by BadUragrian on Workshop. Make new players spawns. And set ttt_playercolor_mode to 0...

Also if u are running SteamCMD server u need fast PC and CPU.. Sometimes it happens becaus CPU slow and make mistakes in database...

@iluh
That can be fixed with a few simple commands in the config and to a file in the terrortown directory.
Place this in your server.cfg
ttt_playercolor_mode 0
Go to gamemodes/terrortown/gamemode/player_ext.lua and edit line 272 by adding -- or // at the beginning
Your problem is not the same as ours. :/

Thanks to all of you! Done! :)

umm does that fix the other proble in the first screenshot? because these apear to be 2 different things....

No it fixes the stuff in the second screenshot. We are still having the problem. Also, i think you guys should update your ttt, Im having less problems with it now.

update ttt, how lol. Thought it updated auto. less problems, how?

Now im having like 0 errors but you get it from here https://github.com/garrynewman/garrysmod

Not sure if I'm able to update TTT since my server is hosted by NFO (managed?)

I know this thread is old, but I recently run into the same issue with playermodels turning into blank playermodels. Well, I fixed it.
"Sometimes they have it at the begining and later on in the round its back to normal. Seems to be random. Also if you kill a player with the blank model their model goes back to normal."
Same thing happened to me...
"Also if u are running SteamCMD server u need fast PC and CPU.. Sometimes it happens becaus CPU slow and make mistakes in database..."
Kind of, not exactly. You might have a powerful Server with the best CPU, but if you have a lot of addons, then they obviously use resources and, as mentioned in that quote, it can lead to errors in database. That's what really happens. I'd also suggest updating your server.cfg with lag compensation convars and other tweaks to improve gaming experience. That's what I did as well.
"Go to gamemodes/terrortown/gamemode/player_ext.lua and edit line 272 by adding -- or // at the beginning"
No. Definately don't do that. Ever. If you have a problem as described above, that playermodels change to blank playermodels, that clearly means that they're working but the game is checking the code for playermodels too early when starting a round and it's loading that piece of code alongside all of the addons, creating errors in database (etc etc), so to fix that, follow this little guideline. 100% guaranteed it'll work. I tested it myself...
Fix:
Just copy "hook.Call("PlayerSetModel", GAMEMODE, self)" to appropriate places in the player_ext.lua file, like so...
Starting from line 269...
-- Preps a player for a new round, spawning them if they should. If dead_only is
-- true, only spawns if player is dead, else just makes sure he is healed.
function plymeta:SpawnForRound(dead_only)
hook.Call("PlayerSetModel", GAMEMODE, self)
hook.Call("TTTPlayerSetColor", GAMEMODE, self)
-- wrong alive status and not a willing spec who unforced after prep started
-- (and will therefore be "alive")
if dead_only and self:Alive() and (not self:IsSpec()) then
-- if the player does not need respawn, make sure he has full health
self:SetHealth(self:GetMaxHealth())
hook.Call("PlayerSetModel", GAMEMODE, self)
return false
end
if not self:ShouldSpawn() then return false end
-- reset propspec state that they may have gotten during prep
PROPSPEC.Clear(self)
-- respawn anyone else
if self:Team() == TEAM_SPEC then
self:UnSpectate()
hook.Call("PlayerSetModel", GAMEMODE, self)
end
self:StripAll()
self:SetTeam(TEAM_TERROR)
self:Spawn()
-- tell caller that we spawned
return true
end
function plymeta:InitialSpawn()
self.has_spawned = false
-- The team the player spawns on depends on the round state
self:SetTeam(GetRoundState() == ROUND_PREP and TEAM_TERROR or TEAM_SPEC)
-- Change some gmod defaults
self:SetCanZoom(false)
self:SetJumpPower(160)
self:SetSpeed(false)
self:SetCrouchedWalkSpeed(0.3)
-- Always spawn innocent initially, traitor will be selected later
self:ResetStatus()
-- Start off with clean, full karma (unless it can and should be loaded)
self:InitKarma()
-- We never have weapons here, but this inits our equipment state
self:StripAll()
hook.Call("PlayerSetModel", GAMEMODE, self)
end
Ending at line 325.
Simple, effective, awesome, clever.
:)
Btw, to fix this issue, it took me less than 3 minutes. Most of the time I tried to figure out what exactly was happening, then I googled the issue and found this thread :)

authors: Paramo96 Pugga123 XboxFest cygiel iluh nystinicus

repo: adamdburton/pointshop


text:
Use the lang page variable attribute

Hi!
Since the version 2.0 of 11ty, a lang attribute has been available in the page variable.
I am suggesting this PR to reflect this addition and use this handy attribute directly rather than inferring the lang from the URL.
Thanks in advance!

Thanks for this, @hjonin. Apologies this plugin hasn't seen much attention lately.
Hoping to revisit and bring a few of these modern improvements along.

source: gharchive/pull-request

authors: adamduncan hjonin


text:
Caught an exception on ProxyToServerConnection

Hello all,
There are instances that I see this message in the log output for browsermob.
11:46:13.050 [LittleProxy-0-ProxyToServerWorker-5] ERROR org.littleshoot.proxy.impl.ProxyToServerConnection - (AWAITING_INITIAL) [id: 0x2748bd19, L:/10.212.30.79:54450 - R:<corporate proxy>/<ip>:8099]: Caught an exception on ProxyToServerConnection
io.netty.handler.codec.DecoderException: java.lang.NullPointerException
	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:418)
	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:245)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:292)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:278)
	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:962)
	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)
	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:528)
	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:485)
	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:399)
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:371)
	at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException: null
	at java.lang.System.arraycopy(Native Method)
	at com.sun.crypto.provider.GCTR.reset(GCTR.java:125)
	at com.sun.crypto.provider.GCTR.doFinal(GCTR.java:116)
	at com.sun.crypto.provider.GaloisCounterMode.doLastBlock(GaloisCounterMode.java:343)
	at com.sun.crypto.provider.GaloisCounterMode.decryptFinal(GaloisCounterMode.java:511)
	at com.sun.crypto.provider.CipherCore.finalNoPadding(CipherCore.java:1023)
	at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:960)
	at com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:479)
	at javax.crypto.CipherSpi.bufferCrypt(CipherSpi.java:830)
	at javax.crypto.CipherSpi.engineDoFinal(CipherSpi.java:730)
	at javax.crypto.Cipher.doFinal(Cipher.java:2416)
	at sun.security.ssl.CipherBox.decrypt(Unknown Source)
	at sun.security.ssl.EngineInputRecord.decrypt(Unknown Source)
	at sun.security.ssl.SSLEngineImpl.readRecord(Unknown Source)
	at sun.security.ssl.SSLEngineImpl.readNetRecord(Unknown Source)
	at sun.security.ssl.SSLEngineImpl.unwrap(Unknown Source)
	at javax.net.ssl.SSLEngine.unwrap(Unknown Source)
	at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1098)
	at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:970)
	at io.netty.handler.ssl.SslHandler.decode(SslHandler.java:904)
	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:387)
	... 11 common frames omitted

I am running v1.1.0-beta-bmp-12 in conjunction with browsermob v2.1.0.
How should I go about addressing this error? Is this an issue with the library itself or the upstream proxy or the site?
Any direction would be appreciated... thank you!

This is a BMP issue, so I'm going to close this issue and ask you to open an issue there. When you open it, include information on the network setup (is the chained proxy TCP or UDP? TLS or plain text?). Also it would be useful to know what version of netty you're running.

authors: jekh madoni

repo: adamfisk/LittleProxy


text:
Fix memory leak on initial requests with HttpObjectAggregator

This PR should fix issue #348. The change is very simple: initial HttpRequests are released if they are ReferenceCounted. However, the reasoning is complicated and requires a non-trivial understanding of netty reference counting, so here's a more detailed explanation of what's happening:
When HttpObjectAggregator is in the pipeline, it generates ReferenceCounted FullHttpRequests (since they have content as well as the request headers). Whereas, when HttpObjectAggregator is not in the pipeline, the HttpRequest does not contain body content and therefore is not ReferenceCounted.
When the ProxyToServerConnection#write() method is called, it always increments ReferenceCounted objects, since netty will automatically decrement them when they are written to the server (and we want to keep them around, since our ClientToProxyConnection will also try to clean them up).  Generally this works fine, even for FullHttpRequests, but it breaks when dealing with the initial request.
For initial HTTP messages, which are eventually written to the server, the ProxyToServerConnection#write() method is called twice: first when the server is disconnected, and then again after the connection is complete. This causes the ReferenceCounted object to be .retain()ed twice, but only released by netty once (when it is actually written to the server).
For initial HTTPS messages (always a CONNECT), which are not written to the server at all, they are only .retain()ed once, when the server is disconnected, then "dropped", since the CONNECT is never written to the upstream server. But since the FullHttpRequest was already retained by the write() method, it must be manually released.

we have verified that this resolves #348. lgtm!

connectionSucceeded will release request,but when connectionfailed happen, it must be also release request! @jekh

@linking12 Hi. I was investigating issue # and encountered your comment.
Can you review my PR that hopefully should fix the issue?

authors: asolntsev jekh linking12 mjallday


text:
Symbol style guidelines

Assuming we are willing to make some deviations from datasheets (which are usually awful), it would be good to have a consistent style for pin naming. For example:

Clearly subscripted letters should be lowercase: Vcc rather than VCC
Use +/- rather than P/N or A/C
nRST should be ~RST~
Clarify when we should specify alternate pin functions in the pin label
How to name exposed pads if the datasheet doesn't specify a pin number

I like this idea.

How to indicate alternate functions - "A/B" or "A_B" or something else? I think I like A/B better
I think exposed pads should always be "EP" which we use a lot, even if otherwise given a pad number. Except for packages with multiple pads on the underside which are not just ground slugs, e.g. power transistors, LGA packages, etc, where do whatever the datasheet names/numbers them.
This interacts a bit with #53 wrt how we name transistor pins and how those map to footprints
How do we handle changing an existing symbol? Hopefully most people are using agg-kicad as a submodule (or directly copying files) so are only hit by changes when they specifically update it

Also maybe @cillian64 or @JMW95 will have some thoughts on this

Regarding alternate functions:

We should probably only specify a single, "most common" one, to stop symbol width getting comically large.
Should we change the order so that the canonical pin name always ends up nearest the actual pin (i.e. PA1/SPI1_NSS if the pin is on the left of the symbol, but SPI1_NSS/PA1 if it's on the right)? (This will probably break if you rotate the symbol in eeschema.)
I wonder if alternate functions should be listed in a different format to strapping pins?

I think for something like a microcontroller, each pin has too many alternate functions to make it sensible to list any. Even SPI1_NSS will appear in loads of different places and often on pins that are also I²C and UART at the same time. On devices with just one alternate function it might be more reasonable (e.g. the rpi symbol).
On the many special purpose chips where pins have maybe two functions (e.g. strapping as you mention, or trim/softstart on vregs) and they have both functions in the name on the datasheet then I think it makes more sense to name them like that.
Changing the order depending on side sounds like it will just lead to too much trouble thanks to rotation, so I don't think it's worth doing.
What different format can you think of? Like using A_B vs A/B?

Well, the ESP32 symbol I added recently uses A-B, but I think the forwardslash is probably the best option for everything.
(Incidentally I believe even the RPi has the capability to remap pins but it seems like there's a very strong convention there.)

Subscripts becoming lowercase: I can see the logic but I am mildly against in the case of VCC, just because Vcc looks wrong to me.  Then again this wouldn't affect me because I don't use agg-kicad power pins, and use voltage-specific rails anyway.  Are there other instances of this change which have a more convincing benefit?
Differential signals: whatever we choose needs to match KiCAD's notation for differential routing.  I seem to recall it likes +- and PN but not AB?
I agree with using ~RST instead of nRST
Alternate functions: On microcontrollers you can't show all AFs, so I would say show none.  However in some cases you have two functions where it's not clear which should be dominant.  I'm thinking of the 6800/8080 memory interfaces where it's pretty confusing if you only show one set, and not too arduous to show both sets.  So maybe if there is one primary function (uCs) we show that, or if there are 2 equal alternatives we show both?  I like using A/B rather than A_B.  I don't like swapping the order depending which side the pin is on.
I think EPs should be named GND and numbered EP

@cillian64

This is just about pin names on ICs, rather than the power pins.
The name on the pins doesn't matter to kicad, which routes differential nets by the net name (which doesn't inherit from the pin name); the only reason to do this is to make the pin name match the likely net name. KiCAD uses + and - or _N and _P. A/C is anode/cathode for LEDs.

@russss
Right, so on something like the rpi where there's a strong convention to use a single alternate function I think it make sense to include it. Likewise on an Arduino where 0 and 1 are TX and RX, and it has PWM pins, etc, but only one thing per pin.

authors: adamgreig cillian64 russss

repo: adamgreig/agg-kicad


text:
How can I get the title of my spec file/describe as my HTML report file namne

Let's say I have 3 spec files that each one of them has its own describe. When I run all 3 files together mochawesome report will be generated as
mochawesome.html
mochawesome_001.html
mochawesome_002.html
Is it a way to inherit the spec file name or even the descripe name of the spec file into the reports?

When I run all 3 files together

Can you provide more details on how you are running your tests? What options are you passing to the reporter? Based on your comment I would expect a single report to be output, not 3.

"reporter": "mochawesome",
"reporterOptions": {
"charts": true,
"overwrite": false,
"html": true,
"json": true,
"reportDir": "cypress/reports/",
},
It become 3 reports because I have 3 spec files with each describe command inside them, and that's why I'm getting 3 reports after each describe has finished. So the html reports become as the follow:
mochawesome.html
mochawesome_001.html
mochawesome_002.html
But what I want is to inherit the name of my describe or the spec file it self.
In my case I have 3 spec files with each describe command inside with those those names
accounts.spec.js --> describe name (Accounts)
members.spec.js --> describe name (Members)
admins.spec.js --> describe name (Admins)
For my case I want the mochawesome reports to be:
accounts.html
members.html
admins.html
instead of the default name.

@adamgruber

The functionality you are looking for is not currently available. There are some differences with how standalone mocha works and how it works when using cypress. These differences make adding this feature non-trivial but I am trying to find a solution that will work for the majority of cases.

With v7.1.0 this is now possible. See https://github.com/adamgruber/mochawesome#reportfilename-replacement-tokens

repo: adamgruber/mochawesome-report-generator


text:
Handshake failure

I've tried to run both IPEDSInstChar02to16.do and IPEDSDirInfo02to16.do, but in both cases I get Received fatal alert: handshake_failure.  In both cases it happens during the loop for downloading from NCES. I tried to run online as well as running the dofile from a local file. I am running Stata 13.1 on MacOS. Any help is appreciated. Thanks for putting this together!

So sorry about this. Would love to help you get up and running with this. On my end, seems to be working for me on Stata 15 this morning.
That error message looks like a connectivity issue. Could you describe your internet connection? Are you on a campus network? Work network? Home network? Are you using a vpn? Also, any chance you could connect to a different network to test for better results?
My first attempt to replicate the error was to turn my internet off and run the do file. That caused a host not found error. Will keep working on it.
I'll have a colleague test this out today, also.

No worries! I tried on my computer on campus as well and the same thing happened. Maybe it's just an issue with stata 13? Doesn't seem like that should be the case, but that's the only thing I can think of at the moment.

A note from Stata technical support indicates that support for https was added in Stata 13.
However for copy to work, it needed the update. Try the command update all and then try the script(s) in this repo again.
Hope that'll work.

authors: adamrossnelson chrisbirdsall

repo: adamrossnelson/StataIPEDSAll


text:
docker部署成功，但是 网页一直在loading中什么情况？三个点一直跳

docker部署成功，但是 网页一直在loading中什么情况？三个点一直跳

额对我来说超纲了，我是在openwrt上的docker上部署的，openclash一直挂着，可能要再哪改下什么

配置没写走socks?

配置socks?，怎么做？

authors: QwindF simonartt


text:
🛑 mastodon-relay.moew.science is down

In 838dcf2, mastodon-relay.moew.science (https://mastodon-relay.moew.science/actor) was down:

HTTP code: 0
Response time: 0 ms

Resolved: mastodon-relay.moew.science is back up in 16f4aec after 18 minutes.


text:
🛑 relay.fedi.agency is down

In f85f2c7, relay.fedi.agency (https://relay.fedi.agency/actor) was down:

HTTP code: 502
Response time: 706 ms

Resolved: relay.fedi.agency is back up in 0d64f26.


text:
🛑 relay.national-defence.network is down

In 08f0d24, relay.national-defence.network (https://relay.national-defence.network/actor) was down:

HTTP code: 0
Response time: 0 ms

Resolved: relay.national-defence.network is back up in 6d54509.


text:
🛑 mastodon-relay.moew.science is down

In a1767ec, mastodon-relay.moew.science (https://mastodon-relay.moew.science/actor) was down:

HTTP code: 502
Response time: 468 ms

Resolved: mastodon-relay.moew.science is back up in d1de582.


text:
🛑 relay.national-defence.network is down

In 19a2c49, relay.national-defence.network (https://relay.national-defence.network/actor) was down:

HTTP code: 0
Response time: 0 ms

Resolved: relay.national-defence.network is back up in a0f102d.


text:
🛑 relay.national-defence.network is down

In 1dbe712, relay.national-defence.network (https://relay.national-defence.network/actor) was down:

HTTP code: 0
Response time: 0 ms

Resolved: relay.national-defence.network is back up in 5b2c1de after 19 minutes.


text:
podsepc public_header_files exclude "ALPValidatorRule.h"?

dear adamwaite, why public_header_files exclude "ALPValidatorRule.h"?
i want to use rule then inherit and override something. in my xcode project (using Pods), i can't import ALPValidatorRule.h
could you update podsepc?

I had hidden the rule file because I couldn't think of a reason to expose it, why do want to override something?
I plan to refactor the library to use protocols over an abstract rule object eventually anyway.

(closed by accident, reopened now)

e, i want to add new rule like email, url (this is a suck that using a block for these generic validation every time) . also i need a name/tag/identifer to lookup specified rule in validator rules, auto created same type message, resort validation order, or control other details.

I'll take a look at this today. I'm unsure what your last sentence is trying to say I'm afraid. If you need all this additional functionality why don't you fork the library?

authors: adamwaite picp

repo: adamwaite/AJWValidator


text:
Add conda build for ARM based Mac

Currently, while installing on a M1 Mac, the package is not found since the build is not currently available (osx-arm64)
PackagesNotFoundError: The following packages are not available from current channels:

  - proteinflow

Current channels:

  - https://conda.anaconda.org/conda-forge/osx-arm64
  - https://conda.anaconda.org/conda-forge/noarch
  - https://conda.anaconda.org/bioconda/osx-arm64
  - https://conda.anaconda.org/bioconda/noarch
  - https://conda.anaconda.org/adaptyvbio/osx-arm64
  - https://conda.anaconda.org/adaptyvbio/noarch
  - https://repo.anaconda.com/pkgs/main/osx-arm64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/osx-arm64
  - https://repo.anaconda.com/pkgs/r/noarch

added in #72 but it doesn't include mmseqs because they don't have an osx-arm64 build on conda
(so if someone tries to use it for splitting they'll get an error message that says they need to install mmseqs, as in the pypi distribution)

authors: elkoz stochasticribosome

repo: adaptyvbio/ProteinFlow


text:
Access to a Modal from @user profile page will create sidebar bug (doublesidebar)

Normal Modal (from feed) = OK
Modal from @user profile = Double sidebar
(Google chrome test)

Route does not update

repo: adcpm/busy


text:
Query Issue, Server Side

Summary (include Python version)
Python 3.6
Date/time of issue
7/17/2019 7-8:00 pm
Expected behavior
stock_item = Stock.("AAPL", token = MY_AUTH_TOKEN)
stock_item.get_price() should yield the current price,
Actual behavior
Instead I get a query error.
"iexfinance.utils.exceptions.IEXQueryError: An error occurred while making the query."
No, it is not an authentication or message usage issue. I am under my quota (only 58 messages) and also have tried the tokens of various other accounts, several times. Will try again later.
Uninstalled and reinstalled package several times, both through pip and git clone.

I have the same problem.

me too :/

As am I

Having a hard time reproducing this. 0.4.2 works for me in Python 3.6.8 and 3.7.0. Is it still throwing IEXQueryError/

Howdy. I just got this error today on 3.7.x, so it's still there. Try making a fresh account and using that key.

I tried with a free tier account and got the following:

The requested data is not available to free tier accounts. Please upgrade for access to this data.

For:
https://cloud.iexapis.com/v1/stock/AAPL/price?token=
https://cloud.iexapis.com/v1/stock/AAPL/chart/1d?token=
Which correspond to the code in the comments above. I will contact the provider to see if any free tier access has changed, but per their site, all equities data is included:

Provider issue opened:
https://github.com/iexg/IEX-API/issues/1135

I tried from their dashboard, and was able to request price information (although I don't know if I checked Apple specifically) but when I tried through the API token I got an error.

@Xnetter and @addisonlynch,
I tried from their dashboard with AAPL, and had no errors for chart and symbol APIs. With the token, I get an error.

Per the provider:
Hello,
We recently contacted you regarding upcoming changes surrounding Nasdaq-listed stock data (which is UTP data) on IEX Cloud.
As a reminder, if you use Nasdaq UTP data, please ensure that you carefully review the following details and next steps.
Due to data provider policy, effective Wednesday, July 31, certain fields for Nasdaq-listed stock data (UTP data) will only be available through IEX Cloud if you are on a Launch, Grow, or Scale plan and authorized by UTP directly to continue to receive UTP data. UTP data has already been removed from Start plans.
What does that mean for you?
Nasdaq controls UTP consolidated delayed stock prices for companies listed on Nasdaq (i.e., UTP, Nasdaq UTP or “Tape C” securities). That means that all 15-minute delayed intraday price data for Nasdaq-listed stocks will be impacted.
To be clear, IEX Cloud will continue to provide non-delayed intraday data for all stocks when those quotes and trades occur on the Investors Exchange. That’s a lot of data!  However, for Nasdaq-listed stocks only, you will notice that some key points such as the official opening and closing price as well as pre- and post-market prices (before 9:30 am ET and after 4:00 pm ET) will be missing. Data for non-Nasdaq listed stocks will not be affected. The full list of affected endpoints for Nasdaq-listed stocks is below.
What if you want to keep receiving this data?
If you’d like to get authorization to receive this data through IEX Cloud or any other data vendor (Nasdaq UTP's policy applies to all redistributors of Nasdaq UTP data) you’ll need to fill out Nasdaq UTP’s forms and pay the applicable fees, which start at $250 per year (additional Nasdaq UTP fees may apply). When you are approved to receive Nasdaq UTP data, Nasdaq UTP will alert IEX Cloud, at which point access to Nasdaq UTP data via IEX Cloud can be enabled. We are currently working with Nasdaq UTP to add IEX Cloud as an option in the relevant forms. You can find more information on how to get authorization from Nasdaq UTP to receive the data here.
If you intend to get Nasdaq UTP approval to continue receiving the data, or if you already have a Nasdaq UTP agreement and just need to add IEX Cloud as an approved channel, please email us at support@iexcloud.io. We will do everything we can to help you avoid a disruption in the data you receive through IEX Cloud and will let you know when the forms are ready for you to fill out.
Please reach out to us with any comments or questions. We look forward to continuing to bring you new data and tools to help you build.
Joshua Blackburn
Head of IEX Cloud
Affected endpoints for Nasdaq-listed symbols ONLY
"Quote”: open, openTime, close, closeTime, delayedPrice, delayedPriceTime,extendedPrice, extendedPriceTime, extendedChange, extendedChangePercent, week52High, week52Low, high, low fields will be null.
“Quote”: latestPrice, latestUpdate, latestTime, latestSource, change, changePercent, marketCap, ytdChange will no longer incorporate Nasdaq UTP data but will continue to use Investors Exchange data.
“OHLC”: all fields will be null.
“Intraday Prices”: all fields prefixed with “market” will be null.

So certain Nasdaq UTP data is no longer available to Start accounts.

@addisonlynch Does this mean get_historical_data will no longer work?

From what I can tell, get_historical_data() will no longer work for anybody. On July 15, IEX sent the email linked here: https://github.com/iexg/IEX-API/files/3419237/Gmail.-.Updates.to.IEX.Cloud.pdf
Based on my reading, the data is only available to paid IEX subscriber accounts that are authorized by the UTP Plan Administrator to receive this data from IEX Cloud. By my reading, we're supposed to pay for the IEX subscription, then pay the annual UTP fee, and then submit a form requesting to be able to access the UTP data through IEX.

Thanks, @wflaschka. This is indeed the issue. The OP here was trying to retrieve data for AAPL, which is a nasdaq-listed symbol.
I will update the iexfinance documentation to reflect the new requirements for these.

Another note from the provider:
Hello,
As a reminder, because you have not been authorized by Nasdaq UTP to receive their data, your access to 15-minute delayed price data for Nasdaq-listed stocks through IEX Cloud will be removed later today.
If you believe that this is an error, and you should be authorized to continue using this data, please call Nasdaq UTP directly as soon as possible.
Additional detail about how to get authorization from Nasdaq UTP to have this data reinstated is included below along with background on this change (which you should have received previously).
Joshua Blackburn
Head of IEX Cloud
Requesting Authorization from Nasdaq UTP
If you wish to access delayed UTP data via IEX Cloud, you must submit the following documents:
Submit a Vendor Agreement
Submit a Data Feed Request Form: Online or Hard Copy (select “IEX Cloud Services LLC” as the Data Provider in the online version)
Submit a System Description: Online or Hard Copy
Why am I receiving this message?
Effective Wednesday, July 31, certain fields for Nasdaq-listed stock data (UTP data) will only be available through IEX Cloud if you are on a Launch, Grow, or Scale plan and authorized by UTP directly to continue to receive UTP data.
What does that mean for you?
Nasdaq controls UTP consolidated delayed stock prices for companies listed on Nasdaq (i.e., UTP, Nasdaq UTP or “Tape C” securities). That means that all 15-minute delayed intraday price data for Nasdaq-listed stocks will be impacted.
To be clear, IEX Cloud will continue to provide non-delayed intraday data for all stocks when those quotes and trades occur on the Investors Exchange. That’s a lot of data!  However, for Nasdaq-listed stocks only, you will notice that some key points such as the official opening and closing price as well as pre- and post-market prices (before 9:30 am ET and after 4:00 pm ET) will be missing.
Data for non-Nasdaq listed stocks will not be affected. The full list of affected endpoints for Nasdaq-listed stocks ONLY is below.
"Quote”: open, openTime, close, closeTime, delayedPrice, delayedPriceTime, extendedPrice, extendedPriceTime, extendedChange, extendedChangePercent, week52High, week52Low, high, low fields will be null.
“Quote”: latestPrice, latestUpdate, latestTime, latestSource, change, changePercent, marketCap, ytdChange will no longer incorporate Nasdaq UTP data but will continue to use Investors Exchange data.
“OHLC”: all fields will be null.
“Intraday Prices”: all fields prefixed with “market” will be null.

So looks like access to this data will end for Launch, Grow, and Scale accounts will end today without the Nasdaq UTP

If someone is currently on a paid account, could you confirm that you can pull financial data such as get_balance_sheet and get_cash_flow?
I tried the code with the sandbox and it seemed to work.
os.environ["IEX_API_VERSION"] = "iexcloud-sandbox"
However, once I used the default live one, it gives the error:
IEXQueryError: An error occurred while making the query.
This leads me to believe that financial data is not available with the free account anymore. I would appreciate if someone can help me confirm this. Thanks in advance.

@noobmaster29 fundamental data is not available at the free account tier.

authors: LordSkloore Xnetter addisonlynch chries89 mattangriffel noobmaster29 sanderlacerda w601sxs wflaschka

repo: addisonlynch/iexfinance


text:
demo_plane has no thrust

demo_plane has no thrust it should have a way to thrust by default

Which version of the plugin are you using?

This commit fixes it.
https://github.com/addmix/godot_aerodynamic_physics/commit/c6840872a1bd59b8c56abd041072b96b86ed7dbf

I am still having a lot of trouble with demo_scene.tscn and demo_plane and thrust, I am seeing mass acceleration rate being printed out and  would assume throttle up SHIFT key or throttle down CTRL key would do something but I truly believe it is not doing anything, can you please check to see how demo_scene.tscn and demo_plane.tscn are working?

@icon("../icons/JetThrusterComponent.svg")
extends Marker3D
class_name AeroThrusterComponent
const AeroNodeUtils = preload("../utils/node_utils.gd")
@onready var rigid_body : RigidBody3D = AeroNodeUtils.get_first_parent_of_type(self, RigidBody3D)
##Enables simulation of the JetThrusterComponent.
@export var enabled : bool = true
@export_group("Control")
##If enabled, throttle is automatically read from the ancestor AeroBody3D.
@export var get_throttle_from_aero_body : bool = true
##Throttle value used to simulate the JetThrusterComponent
@export var throttle : float = 1.0
@export_group("Simulation Parameters")
##Area (in meters squared) of the JetThrusterComponent's intake.
@export var intake_area : float = 0.5
##Area (in meters squared) of the JetThrusterComponent's exhaust. (Unused)
#@export var exit_area : float = 1.0
##Maxmimum air velocity the intake fan can create in static thrust, at max throttle.
@export var intake_fan_max_velocity : float = 100.0
##Velocity of exhaust gasses at max throttle.
@export var exhaust_velocity : float = 1000
##Maximum amount of fuel (in kilograms) the engine can burn per second.
@export var max_fuel_flow : float = 0.1 #flow rate in kilograms per second
##Ratio of fuel volume before, and after combustion. (Unused)
#@export var fuel_expansion_ratio : float = 10.0
var throttle_step : float = 0.1  # How much throttle changes per input
var min_throttle : float = 0.0
var max_throttle : float = 1.0
func _physics_process(delta : float) -> void:
if not enabled:
return
# Handle throttle input if not getting it from aero body
if not get_throttle_from_aero_body:
	# Increase throttle
	if Input.is_action_pressed("throttle_up"):
		throttle = clamp(throttle + throttle_step * delta, min_throttle, max_throttle)

	# Decrease throttle
	if Input.is_action_pressed("throttle_down"):
		throttle = clamp(throttle - throttle_step * delta, min_throttle, max_throttle)

# Calculate force
var mass_acceleration_rate : float = calculate_mass_flow_acceleration()
var force_magnitude : float = mass_acceleration_rate * delta
print(mass_acceleration_rate)
print(throttle)
if rigid_body:
	rigid_body.apply_force(-global_transform.basis.z * force_magnitude, rigid_body.global_transform.basis * position)

if rigid_body is AeroBody3D and get_throttle_from_aero_body:
	throttle = rigid_body.throttle_command

I believe this fixes the throttle input issues

The demo scene doesn't have any throttle control, as I hadn't found any appropriate built-in InputMap actions to fill that role. (ui_* events). Because you are modifying the demo plane, your issue is probably due to the throttle input being set to 1.0 here:

I suppose it isn't a perfect way to demonstrate how to properly use the AeroControlComponent, and is a very small detail, which is easy to overlook. I will change the demo plane to use the ui_page_up and ui_page_down actions for throttle control instead. This change is in commit: 193255c7da71bd91b9b573cb9db87dd03d97bdeb
However, hard-coded input logic inside the AeroThrusterComponent script won't be needed, as binding inputs in the AeroControlComponent provides the expected functionality, assuming that the throttle input hasn't been set to 1.0.
As a sidenote, the input value on the control config is used as a pass-through value. It isn't modified by the control config, and it exists as a way to script custom control schemes, without losing the convenience of the AeroControlComponent.


text:
🛑 Covid Portal is down

In 9d183b2, Covid Portal (http://covid19.interieur.gov.ma/Operation_ATTADAMON.aspx) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Covid Portal is back up in a8b9b18.

repo: adnane-X-tebbaa/DownTime-Score


text:
ui.apps - Wrong vault configuration

The /apps/APP folder should not use merge mode. This means that when we update our components, those updates will not reflect when we install a newer package.
   <filter root="/apps/mysamplespa" mode="merge"/>

@ittaibaratz Thanks for reporting.
The filter for apps uses merge mode so this archetype does not destroy any custom datain case you have already an project with the same name.
Imagine the use case you start building your spa app and you want to sync at any time with the archetype.

I have to agree with @ittaibaratz, it has long been a standard that /apps is overwritten every time as is the case with [0] in the aem project archetype. I'm not sure what you mean by "sync" with the archetype?
[0] - https://github.com/adobe/aem-project-archetype/blob/master/src/main/archetype/ui.apps/src/main/content/META-INF/vault/filter.xml

What I mean with sync is if you generate a new version of the archetype to get the latest status and try to update / sync your existing project.
If there is no need and the project archetype handles is different, then let's just adjust the vault filter for /apps. no strong feeling here from my side.

issue tracked internally by CQ-4266180

authors: godanny86 ittaibaratz lydiapuric pfauchere

repo: adobe/aem-spa-project-archetype


text:
DataReader.getString is not throwing an exception when the string value is not present in the map

Expected Behaviour
A DataReaderException should be thrown if the requested key is not present in the given map
Actual Behaviour
Reproduce Scenario (including but not limited to)
Steps to Reproduce
Platform and Version
Android AEPSDK Core 2.4.0
Sample Code that illustrates the problem
Map<String, Object> map = new HashMap<String, Object>() {{ put("key", "value"); }};
        try {
            String retValue = DataReader.getString(map, "key2");
        } catch (DataReaderException exception) {
            // this should fail but doesn't
            Assert.fail();
        }

Logs taken while reproducing problem

@rymorale - DataReader.getString(..) is documented as follows :
 @return {@code String} value associated with {@code key} or null if {@code key} is not
     *     present in {@code map}
     * @throws DataReaderException if value is not gettable as an {@code String}

So it is expected to return null if the key is absent. DataReaderException is thrown when the key exists but is not a string.

authors: prudrabhat rymorale

repo: adobe/aepsdk-core-android


text:
The data-management tags page has a link in the hero banner

The /blog/tags/data-management page has a link textual URL showing in the hero banner and I believe it shouldn't be shown since the other tags pages don't.  I'm assuming there should be consistency here and the link in the hero banner is to another blog post.  See the screenshot below for reference:

Import issue, resolved

authors: aaronmauchley-adobe fkakatie

repo: adobe/business-website


text:
Cut a release?

I think we should cut a proper release (maybe 0.1.0), so that petridish does not have to depend on snapshots anymore.

we already have released 0.2.0: https://www.npmjs.com/package/@adobe/git-server

also see: https://github.com/adobe/git-server/releases/tag/v0.0.2

Ok, then changing the package.json version to 0.3.0 will make sure we get 0.3.0-* snapshots.

good practice to fill in the release-notes of releases.

Oh, and we would jump to 0.0.3 - not 0.3.0

I'm not happy with the release concepts. I'm never sure if the snapshots are higher than the released version. maybe we should use the odd/even release scheme.

so current release process is:
$ npm version patch
$ git push && git push --tags
$ npm publish
$ npm version patch
$ git push

authors: trieloff tripodsan

repo: adobe/git-server


text:
v2: automatically set content-type based on request body

Is your feature request related to a problem? Please describe.
node-fetch automatically sets the content-type header, based on the body given to new Response():
https://github.com/node-fetch/node-fetch/blob/6ee9d3186f8b4bdc4288ccf92f0a776aa17644ae/src/request.js#L72
It would be convenient to do the same in helix-fetch.

Request or Response?
helix-fetch does that already in the Request constructor: https://github.com/adobe/helix-fetch/blob/main/src/fetch/request.js#L96-L107

Request or Response?
helix-fetch does that already in the Request constructor: https://github.com/adobe/helix-fetch/blob/main/src/fetch/request.js#L96-L107

authors: stefan-guggisberg tripodsan

repo: adobe/helix-fetch


text:
Refactor last modified date to be rendered client side

The last modified date is currently rendered "server" side and uses "difference" time ("Last modified xxx months ago"). Since the html is cache, the difference is wrong: it is the difference at the time of the caching and not at client rendering time.
Fixing that "issue" will allow to introduce some JS client side code and give more consistence to the project.

Yes, that's the idea. Something that looks like this in the HTML: October 1st 1985, 5:23 pm and then a small library that gets all date-classed elements and replaces their value.

Yes.
I'd like to use this opportunity to create a web project, have a dependency to moment.js... just to see what is needed.

I prefer @trieloff version, but I would try to follow microformat patterns:
<time datetime="2018-10-24T12:24:44-0700">
  Thu Jun 21 2018 10:24:44 GMT-0700
</time>

or

  Thu Jun 21 2018 10:24:44 GMT-0700

authors: kptdobe trieloff tripodsan

repo: adobe/helix-helpx


text:
DatePicker - Internationalization server client mismatch [NextJS 14.1.0 App Router]

Provide a general summary of the issue here
NextJS  14.1.0 using App Router
When using DatePicker as instructed in documentation server client mismatch occurs.
To mitigate a rerender on client (adapting language) for some of the components we need to provide language information on server
I've followed the steps provided here

🤔 Expected Behavior?
The component should get correct language on SSR and not need to correct it on client.
😯 Current Behavior
The component doesn't render correct language on SSR, corrects on client resulting in a server client mismatch
💁 Possible Solution
No response
🔦 Context
No response
🖥 Steps to Reproduce
https://stackblitz.com/edit/nextjs-arbvzx?file=components%2FDatePicker.tsx
Version
react-aria-components 1.1.1
What browsers are you seeing the problem on?
Chrome
If other, please specify.
No response
What operating system are you using?
Windows 10
🧢 Your Company/Team
No response
🕷 Tracking Issue
No response

I can't seem to get your stackblitz to work, but I noticed you don't have a wrapping I18nProvider, does that help?

Thanks for taking the time @LFDanLu. Did you add routing locale? eg "en-US". I'm using /sv (swedish).
And there's a string in the datesegment component yielding "app-index.js:35 Warning: Prop aria-valuetext did not match. Server: "Empty" Client: "Tomt""
I can't set the text manually either. That would work for me. Not sure if I would stumble into more strings that needs translation though. As for wrapping the app with I18nProvider - Since I'm using NextJS Im following the NextJS specific docs:
 // app/[lang]/layout.tsx
import {LocalizedStringProvider} from 'react-aria-components/i18n';
export default function RootLayout(
  {children, params: {lang}}:
  {children: React.ReactNode, params: {lang: string}}
) {
  return (
    <html lang={lang}>
      <body>
        <LocalizedStringProvider locale={lang} />
        {children}
      </body>
    </html>
  );
}

I might be having a brain fart, but when I open the stackblitz it just 404's after the packages are installed and next dev finishes. My understanding here is that you still need to have a wrapping i18nProvider with the locale set to whatever locale will be used on the client so that localized strings like the aria-valuetext will match between server and client. I do see what you are referring to in the docs here where it states
Render React Aria's LocalizedStringProvider component at the root of your app. This includes the strings for the user's language in the initial HTML so that the client can access them. It also passes the locale to the client, so an I18nProvider is not needed.

but looking at the code it doesn't look like LocalizedStringProvider does this in time, it sets a localeSymbol on the window which doesn't exist on the server if I'm not mistaken hence why the i18nProvider is still necessary.

You need to add the locale in the url. In my case I'm adding "/sv" (swedish). NextJS router gets the params in the RootLayout and provides the locale to html tag and LocalizedStringProvider on the server.
As for wrapping the app in i18nProvider I'm not convinced it's the right approach when it comes to NextJS but I might be missing something. I've tried to apply it in the code but I can't really figure out where I would put it.

Yeah, the setup required isn't ideal here (probably a bug tbh), we'll probably want to change LocalizedStringProvider on our end to handle this for you. For now you'd have to make a client component to render the i18nProvider like so: https://stackblitz.com/edit/nextjs-tep8sy?file=app%2F[lang]%2Flayout.tsx,app%2F[lang]%2FLocaleProvider.tsx,app%2F[lang]%2Fpage.tsx

Thank you for sharing your thoughts about this! @LFDanLu

authors: LFDanLu thomaswanhpls

repo: adobe/react-spectrum


text:
closePath has no further arguments

Therefore, number chains can not appear on next segment.
Return if we see that that. Fixes #64

Bit more detailed description:
The reason why we can't simply check if we have a segment type at the beginning is that we might not actually have one and the syntax is still valid. Here an example of valid syntax.
M 0,0 100, 100 L 200, 200 300,300

In reality it means that the source code need to add the last segment type between the right number of path sequences implicitly.
In our code we would jump to the next iteration after parsing 200, 200 and remember that the prev command was an L. We go back into the L case and check if the next characters is a valid sequence for L again and just parse to the moment until after 2 coordinates and leave the further checking to the next iteration and the next case clause.
Z has no arguments but the code still requires that we enter the loop with the reminder string. So now we just check if we had a close path before and no segment type currently. In this case we return.

Also fixes #76

repo: adobe/svg-native-viewer


text:
MWPW-157036: Nonprofit form with api integration

MWPW-157036

Codecov Report
Attention: Patch coverage is 0% with 1538 lines in your changes missing coverage. Please review.

Project coverage is 70.45%. Comparing base (4babb81) to head (73d3d10).
Report is 171 commits behind head on stage.

Files with missing lines
Patch %
Lines

acrobat/blocks/nonprofit/nonprofit.js
0.00%
805 Missing :warning:

acrobat/blocks/nonprofit/constants.js
0.00%
427 Missing :warning:

acrobat/blocks/nonprofit/select.js
0.00%
256 Missing :warning:

acrobat/scripts/reactiveStore.js
0.00%
50 Missing :warning:

Additional details and impacted files
@@             Coverage Diff             @@
##            stage     #808       +/-   ##
===========================================
- Coverage   97.10%   70.45%   -26.65%
===========================================
  Files          39       47        +8
  Lines        4906     7108     +2202
===========================================
+ Hits         4764     5008      +244
- Misses        142     2100     +1958

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

authors: codecov-commenter st-angelo-adobe

repo: adobecom/dc


text:
Nested properties

Hi guys,
is it possible to add support for nested properties, for example cities.city.new_york?
cities.json

{
  "city": {
    "new_york": "New York"
  }
}

Since it depends on intl-messageformat, this could be a nice hint: https://github.com/yahoo/intl-messageformat/issues/113#issuecomment-162675406

Duplicate of https://github.com/adonisjs/adonis-antl/issues/32#issuecomment-387275931

authors: danilopolani thetutlage

repo: adonisjs/adonis-antl


text:
Define mysql database port in config/database.js

Based on this issue https://github.com/adonisjs/adonis-framework/issues/430 , i think we need beginner user to know this. 😃

Thanks 😄

authors: arryanggaputra thetutlage

repo: adonisjs/adonis-app


text:
Correct CYGWIN LIB_DIR

Update the cygwin check to correctly set LIB_DIR for cygwin os

The issue was reported by slack https://adoptium.slack.com/archives/C5219G28G/p1704231165068949. When running locally (not explicitly set LIB_DIR) on window cygwin , the compile step failed due to missing json-simple.jar.
The PR should also fix the PR tests with github workflow  in temurin-build https://github.com/adoptium/temurin-build/actions/runs/7172315110/job/19613059851.
Locally was tested by Joe Braley.
The PR won't affect jenkins job https://ci.adoptium.net/view/Test_grinder/job/Grinder/8444/console

repo: adoptium/TKG


text:
Update external test documentation

As we do a clean-up, modifications, and additions of external tests, there's need to update the documentation to reflect the new changes.

Remove external/example-test  #3181
Thorntail_microprofile_tck removal #3182
Standardize testCaseName for external tests #3157 #3158

Closed as all steps are done.

authors: jnjerin sophia-guo

repo: adoptium/aqa-tests


text:
QEMU jobs are unstable/failing

As of the creation of this issue, all but the riscv QEMU jobs are either failing or unstable
ppc64le ubuntu18 - fails in the test stage. Looks like the test script needs to be updated to support the new name of the tests repo
00:17:27 TESTDIR: /home/linux/testLocation/openjdk-tests is invalid. Please use --testdir|-t to set valid TESTDIR under aqa-tests. Default value current dir (pwd) is used if not provided.
00:17:32 /home/linux/openjdk-infrastructure/ansible/pbTestScripts/testJDK.sh: line 15: cd: /home/linux/testLocation/openjdk-tests/TKG: No such file or directory
00:17:32 + grep -q 'FAILED: 0' /home/vagrant1/workspace/QEMUPlaybookCheck/ARCHITECTURE/ppc64le/OS/ubuntu18/label/vagrant/ansible/pbTestScripts/qemu_pbCheck/logFiles/UBUNTU18.PPC64LE.test_log
00:17:32 + echo TEST FAILED

s390x ubuntu18 - fails when ansible tries running apt-get upgrade, https://ci.adoptopenjdk.net/job/QEMUPlaybookCheck/272/ARCHITECTURE=s390x,OS=ubuntu18,label=vagrant/consoleFull
12:07:41 TASK [Common : Run apt-get upgrade] ********************************************
12:43:05 fatal: [localhost]: FAILED! => {"changed": false, "msg": "'/usr/bin/apt-get upgrade --with-new-pkgs ' failed: E: Sub-process /usr/bin/dpkg returned an error code (1)\n", "rc": 100, "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nCalculating upgrade...\nThe following NEW packages will be installed:\n  distro-info gcc-11-base libgcc-s1 libnetplan0 linux-headers-4.15.0-144\n  linux-headers-4.15.0-144-generic linux-image-4.15.0-144-generic\n  linux-modules-4.15.0-144-generic linux-modules-extra-4.15.0-144-generic\nThe following packages will be upgraded:\n  accountsservice apt apt-utils base-files bind9 bind9-doc bind9-host\n  bind9utils bsdutils busybox-initramfs busybox-static ca-certificates dbus\n  distro-info-data dmeventd dmsetup dnsutils e2fsprogs fdisk file\n  friendly-recovery gcc-8-base initramfs-tools initramfs-tools-...

aarch64 ubuntu18 - disconnected during build stage, playbook passes without error
01:01:35 Connection to localhost closed by remote host.
aarch64 debian10 - Connection reset by peer
12:01:00 TASK [Gathering Facts] *********************************************************
12:01:00 fatal: [localhost]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: kex_exchange_identification: read: Connection reset by peer\r\nConnection reset by 127.0.0.1 port 10020", "unreachable": true}

arm32 debian8 - Fails to download GCC 7.5 binary. URL is invalid
14:15:17 TASK [gcc_7 : Download AdoptOpenJDK gcc-7.5.0 binary] **************************
14:15:35 fatal: [localhost]: FAILED! => {"changed": false, "dest": "/tmp/ansible-adoptopenjdk-gcc-7.tar.xz", "elapsed": 6, "msg": "Request failed", "response": "HTTP Error 404: Not Found", "status_code": 404, "url": "https://ci.adoptopenjdk.net/userContent/gcc/gcc750+ccache.armv7l.tar.xz"}
14:15:35

I assume the riscv job is no longer failing at
12:06:32 TASK [Common : Add the openjdk repository to apt for openjdk7] *****************
12:06:55 fatal: [localhost]: FAILED! => {"changed": false, "cmd": "apt-key export DA1A4A13543B466853BAF164EB9B1D8886F44E2A", "msg": "E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation", "rc": 255, "stderr": "E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation\n", "stderr_lines": ["E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation"], "stdout": "", "stdout_lines": []}

since the merging of https://github.com/adoptium/infrastructure/pull/2193

Latest QEMU job https://ci.adoptopenjdk.net/job/QEMUPlaybookCheck/274/

Dup of #2121 ?

@sxa Good shout

Moving over to https://github.com/adoptium/infrastructure/issues/2121

authors: Haroon-Khel sxa

repo: adoptium/infrastructure


text:
Adjust regexs for release tool job

          Look at recommendations for expressions for filenames in RELEASING.md vs the examples shown in the job (Particularly in terms of the sources tarball and inclusion of testimage files)

Originally posted by @sxa in https://github.com/adoptium/adoptium/issues/240#issuecomment-1645803026
Possibly only have the information in the job parameter description or RELEASING.md ...  Could be either in the releasing guide or the job (Perhaps better in the job as you have it on screen when you're running it). Or sort it out properly via a higher level release job that has fewer parameters and is easier to run, encompassing all of the appropriate logic.

As a follow-on to this, could we move the regular expressions into source control and have the user pick platform names rather than attempting to get the regex correct?

regular expressions into source control

That would be part of a separate effort to make this a pipeline job which is already underway by @sophia-guo IIRC

have the user pick platform names rather than attempting to get the regex correct?

Yep that was the goal of this issue.

authors: adamfarley sxa

repo: adoptium/temurin-build


text:
Default roles not applied when creating a new user in Keycloak 13.0.1

A new user created with the keycloak-config-cli tool does not have the default realm role assigned.
See the example below.

Run Keycloak

docker run \
  --rm \
  -d \
  --net host \
  -e KEYCLOAK_USER=admin \
  -e KEYCLOAK_PASSWORD=admin \
   quay.io/keycloak/keycloak:13.0.1 \
  -b 0.0.0.0 \
  -bprivate 127.0.0.1

Create minimal realm file

cat <<EOF >bug.yaml
realm: demo
enabled: true
displayName: Demo
displayNameHtml: Demo

users:
  - username: tester
    email: tester@local
    firstName: Theo
    lastName: Tester
    enabled: true
    credentials:
      - type: password
        value: test
        temporary: false
EOF

Run Keycloak-Config-CLI

docker run \
    -e KEYCLOAK_URL=http://localhost:8080/auth \
    -e KEYCLOAK_USER=admin \
    -e KEYCLOAK_PASSWORD=admin \
    -e KEYCLOAK_AVAILABILITYCHECK_ENABLED=true \
    -e KEYCLOAK_AVAILABILITYCHECK_TIMEOUT=120s \
    -e IMPORT_PATH=/config \
    -e IMPORT_FORCE=false \
    -e IMPORT_VARSUBSTITUTION=true \
    -e IMPORT_VARSUBSTITUTIONINVARIABLES=true \
    -v $(pwd)/bug.yaml:/config/bug.yaml:z \
    --rm \
    --net host \
    adorsys/keycloak-config-cli:edge

Inspecting the roles for the newly created user with kcadm yields an empty list.
$ kcadm config credentials --server http://localhost:8080/auth --realm master --user admin --password admin

$ kcadm get-roles -r demo --uusername tester
[ ]

However, when I create another user with kcadm I see the proper default role(s). Since the default role management in keycloak has been changed in 13.x I assume this is a bug.
$ kcadm create users -r demo -s username=kcadm -s firstName=first -s lastName=last -s email='kcadm@localhost' -s enabled=true

$ kcadm get-roles -r demo --uusername kcadm
[ {
  "id" : "4f6e12a2-0631-4519-a270-323dd79791e3",
  "name" : "default-roles-demo",
  "description" : "${role_default-roles}",
  "composite" : true,
  "clientRole" : false,
  "containerId" : "eebdcc97-b409-4eda-9e0f-a4750d4ae554"
} ]

Logs:
Status: Downloaded newer image for adorsys/keycloak-config-cli:edge
2021-06-15 14:33:30.277  INFO 1 --- [           main] d.a.k.config.KeycloakConfigApplication   : Starting KeycloakConfigApplication v3.4.1-SNAPSHOT using Java 11.0.11 on neumann with PID 1 (/app/keycloak-config-cli.jar started by ? in /)
2021-06-15 14:33:30.281  INFO 1 --- [           main] d.a.k.config.KeycloakConfigApplication   : No active profile set, falling back to default profiles: default
2021-06-15 14:33:30.849  INFO 1 --- [           main] d.a.k.config.KeycloakConfigApplication   : Started KeycloakConfigApplication in 1.162 seconds (JVM running for 1.613)
2021-06-15 14:33:31.339  INFO 1 --- [           main] d.a.k.config.KeycloakConfigRunner        : Importing file '/config/bug.yaml'
2021-06-15 14:33:31.343  INFO 1 --- [           main] d.a.k.config.provider.KeycloakProvider   : Wait 120 seconds until http://localhost:8080/auth is available ...
2021-06-15 14:33:34.012  INFO 1 --- [           main] d.a.k.config.KeycloakConfigRunner        : keycloak-config-cli running in 00:02.838.

Hi,
I created a realm through keycloak UI and use the yaml (converted to JSON) as import file. The user was created by keycloak, but kcadm get an empty result, too.
bash-4.4$ ./kcadm.sh get-roles -r demo --uusername tester
[ ]

idk, if kcadm has some specific client implementations here.

okay I'm running keycloak-config-cli with more logging
jkr@joe-nb keycloak-config-cli % java -jar target/keycloak-config-cli.jar --spring.profiles.active=dev --import.path=test.yaml --import.force=true
2021-06-16 01:02:45.534  INFO 2561 --- [           main] d.a.k.config.KeycloakConfigApplication   : Starting KeycloakConfigApplication v3.4.1-SNAPSHOT using Java 11.0.11 on joe-nb with PID 2561 (/Users/jkr/IdeaProjects/keycloak-config-cli/target/keycloak-config-cli.jar started by jkr in /Users/jkr/IdeaProjects/keycloak-config-cli)
2021-06-16 01:02:45.537  INFO 2561 --- [           main] d.a.k.config.KeycloakConfigApplication   : The following profiles are active: dev
2021-06-16 01:02:46.197  INFO 2561 --- [           main] d.a.k.config.KeycloakConfigApplication   : Started KeycloakConfigApplication in 1.375 seconds (JVM running for 1.877)
2021-06-16 01:02:46.706  INFO 2561 --- [           main] d.a.k.config.KeycloakConfigRunner        : Importing file '/Users/jkr/IdeaProjects/keycloak-config-cli/test.yaml'
2021-06-16 01:02:47.383 DEBUG 2561 --- [           main] d.a.k.config.service.RealmImportService  : Creating realm 'demo3' ...
2021-06-16 01:02:48.201 DEBUG 2561 --- [           main] d.a.k.config.service.UserImportService   : Create user 'tester' in realm 'demo3'
2021-06-16 01:02:48.345 DEBUG 2561 --- [           main] d.a.k.config.service.UserImportService   : Remove realm-level roles [default-roles-demo3] from user 'tester' in realm 'demo3'
2021-06-16 01:02:48.460 DEBUG 2561 --- [           main] d.a.k.config.service.state.StateService  : Updated states of realm 'demo3'
2021-06-16 01:02:48.525 DEBUG 2561 --- [           main] d.a.k.c.s.checksum.ChecksumService       : Updated import checksum of realm 'demo3' to '933271700fb4362b477de9068070a96a00d299cd001d06099c75c5f4d24842fd'
2021-06-16 01:02:48.526  INFO 2561 --- [           main] d.a.k.config.KeycloakConfigRunner        : keycloak-config-cli running in 00:02.012.

keycloak-config-cli is removing the role default-roles-demo3, since the user does not have the role defined in the import json. I verify it, this is the same behavior like the real keycloak import.
If you do an export for the realm, the users would have realmRoles: ["default-roles-$realm"] defined inside the export json realm like that:
realm: demo3
enabled: true
displayName: Demo
displayNameHtml: Demo

users:
  - username: tester
    email: tester@local
    firstName: Theo
    lastName: Tester
    enabled: true
    realmRoles: ["default-roles-demo3"]
    credentials:
      - type: password
        value: test
        temporary: false

At the end, the behavior is correct. Do something like

do not remove the realm role, if it begins default-roles-

would result into a different behavior between keycloak-config-cli and keycloak realm import.

@jkroepke thanks for looking into this!
I just did a quick test with keycloak 12.0.4 and the previous version of keycloak-config-cli
    image: quay.io/keycloak/keycloak:12.0.4

    # adorsys/keycloak-config-cli:v3.3.0-12.0.4
    image: adorsys/keycloak-config-cli@sha256:fc8051e8d097e869dfbb442c4045d450306725a0825bb1571bef96ad3cafe19c

Given the following user definition:
  - username: demo2
    enabled: true
    email: demo2@local
    firstName: Demo2
    lastName: User2
    attributes:
      locale:
        - "de"
    credentials:
      - type: password
        value: test
        temporary: false

I see the following executions:
custom-keycloak-provisioning_1  | 2021-06-16 07:44:25.191 DEBUG 1 --- [           main] d.a.k.config.service.UserImportService   : Create user 'demo2' in realm 'demo'
custom-keycloak_1               | 07:44:25,267 INFO  [org.keycloak.events] (default task-1) operationType=CREATE, realmId=master, clientId=5216d996-e810-47dd-a3e0-2f403a6ff20b, userId=548e4601-b270-42fa-a1ce-33e4b779acdf, ipAddress=192.168.128.5, resourceType=USER, resourcePath=users/43962d51-0eef-4a44-a5ae-d559132d7b2a
custom-keycloak-provisioning_1  | 2021-06-16 07:44:25.307 DEBUG 1 --- [           main] d.a.k.config.service.UserImportService   : Remove realm-level roles [uma_authorization, offline_access] from user 'demo2' in realm 'demo'
custom-keycloak_1               | 07:44:25,331 INFO  [org.keycloak.events] (default task-1) operationType=DELETE, realmId=master, clientId=5216d996-e810-47dd-a3e0-2f403a6ff20b, userId=548e4601-b270-42fa-a1ce-33e4b779acdf, ipAddress=192.168.128.5, resourceType=REALM_ROLE_MAPPING, resourcePath=users/43962d51-0eef-4a44-a5ae-d559132d7b2a/role-mappings/realm

The created user does not have the realms roles offline_access and uma_authorization. However the demo2 user still has the account client roles [manage-account,view-profile] which are default client roles.
This changed with Keycloak 13.0.1 and indirectly in the latest version of Keycloak-config-cli.
I think this might be a breaking change for users who are currently using older keycloak and keycloak-config-cli versions.

Thanks for looking deeper into this :)

I guess exclude the role default-roles-$REALM from remove function would be the best here, or?
Yes, I think it makes sense to exclude default-roles-$REALM from the roles removal.

Hi @thomasdarimont ,
can you take a look at #452 if it's fit? You many find compiled artefacts inside inside github actions.

@jkroepke thanks for the fix!
I couldn't find the jar, but built a docker image from your branch locally and this is working fine.
Users created without realm role configurations now have the default-roles-$REALM which includes the account roles.
I think this is fine now. As an additional feature it might be helpful to be able to explicitly express that a user should NOT have default roles. Can this already be expressed somehow?

As an additional feature it might be helpful to be able to explicitly express that a user should NOT have default roles. Can this already be expressed somehow?

This is the trade-off and the downside of the comfortable solution. That would not possible anymore.

Alright, this behavior is now toggled by a new flag. By default, the role is excluded now. But if someone wants to explicit remove the default role form a user, the flag can be turnt off now. That covers everythink.

authors: jkroepke thomasdarimont

repo: adorsys/keycloak-config-cli


text:
Users with different email/username getting misidentified by umapi-client

There's a check in the UserAction class of umapi-client that tries to infer the user type:
        if username:
            if email and username.lower() == email.lower():
                # ignore the username if it's the same as the email (policy default)
                username = None
            elif id_type is not IdentityTypes.federatedID:
                raise ValueError("Username must match email except for Federated ID")
            else:
                self._validate(username=username)
                if domain:
                    self._validate(domain=domain)
                    self.domain = domain

Basically, if username is set and is different from the email of a user's record, then it assumes the federated auth type is username-based and validates the username accordingly.
A problem arises with certain Okta records that have username and email set to two different email addresses.  Because they differ, this check attempts to validate the username field, but that validation fails because username should not be a full email address.
Why are we getting two email addresses from Okta for certain users?  Which email address do we use for email ID?  We need to use the correct email ID address and make sure the username field is set to None.

Alternatively, the email field and username field should both be set to the email ID that sync will use to create/update the user record.

Resolved by leaving username field blank.


text:
Is it possible to use Mirror with Univoice?

Hei yo!
thanks for creating an open source voice chat for unity.
Do you have a sample scene that i can take a look on how to use univoice with mirror ?

Hi @Akravator91 univoice is network agnostic and can be used with pretty much any network stack, as long as there's an implementation for it.
There currently isn't one for Mirror as I haven't made one yet. But you can make it and use it, it just takes one class that implements the IChatroomNetwork interface.
You can refer to the Telepathy implementation to get some idea. The implementation details for that repo are in the UniVoiceTelepathyNetwork class
Let me know if you need more help.

any updates on that matter? @Akravator91 did you manage to make it work with mirror?

Not yet, I am waiting for the mirror example from @adrenak :)

Today may be the day! Going to work on this.
On Mon, 8 Jan, 2024, 19:42 Raymond, @.***> wrote:

Not yet, I am waiting for the mirror example from @adrenak
https://github.com/adrenak :)
—
Reply to this email directly, view it on GitHub
https://github.com/adrenak/univoice/issues/22#issuecomment-1881087659,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABZ5ZBRZH2I6FJ7PDPL3AI3YNP5DVAVCNFSM6AAAAAA6D3ZEEWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBRGA4DONRVHE
.
You are receiving this because you were mentioned.Message ID:
@.***>

Update on this. I have a working implementation for Mirror now! Tested locally and now trying with edgegap hosting to make sure it works on the cloud too.

Took a while but Mirror implementation is available now! Check it out here: https://github.com/adrenak/univoice-mirror-network
Note that it's still in early stages and has not been used in any serious project (2 people are interested in using it in real world applications, so improvements will come over time)
It just uses the NetworkManager of Mirror. You don't need to manage chatrooms (creating/joining/etc). Just initialize the ChatroomAgent and go about using Mirror as you usually do. Univoice takes care of everything.
I've tested on a cloud deployment where I had a continuous conversation for 30 minutes or so. The README is quite descriptive.

nicely Done Adrenak! :D
Thanks for the library

Hi Vatsal!
The mirror example works awesome. :)
and much easier to implement than Dissonance.
Do you know how to make it works on WebGL.?
I have compiled it using Multiplex(KCP Transport and WebSocketTransport(https://mirror-networking.gitbook.io/docs/manual/transports/websockets-transport)However since Unity microphone is not supported in WebGL, I tried to couple the UniMic with this https://github.com/tgraupmann/UnityWebGLMicrophone.Do you have perhaps the implementation that i can use?
Once again Awesome Job!!
Thank you very much for finding time in your free time to create UniVoice.
Best regards,
Raymond
On Thursday, February 1, 2024 at 02:43:08 PM GMT+1, Vatsal Ambastha ***@***.***> wrote:

Took a while but Mirror implementation is available now! Check it out here: https://github.com/adrenak/univoice-mirror-network
Note that it's still in early stages and has not been used in any serious project (2 people are interested in using it in real world applications, so improvements will come over time)
It just uses the NetworkManager of Mirror. You don't need to manage chatrooms (creating/joining/etc). Just initialize the ChatroomAgent and go about using Mirror as you usually do. Univoice takes care of everything.
I've tested on a cloud deployment where I had a continuous conversation for 30 minutes or so. The README is quite descriptive.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

authors: Akravator91 HoboCatGames adrenak

repo: adrenak/univoice


text:
Namespace 'firebase' has no exported member 'Promise'.

i got this error
ERROR in node_modules/angularfire2-offline/database/angularfire2-interfaces.d.ts(4,32): error TS2694: Namespace 'firebase' has no exported member 'Promise'.
node_modules/angularfire2-offline/database/angularfire2-interfaces.d.ts(5,35): error TS2694: Namespace 'firebase' has no exported member 'Promise'.
node_modules/angularfire2-offline/database/angularfire2-interfaces.d.ts(6,35): error TS2694: Namespace 'firebase' has no exported member 'Promise'.
node_modules/angularfire2-offline/database/angularfire2-interfaces.d.ts(7,44): error TS2694: Namespace 'firebase' has no exported member 'Promise'.
node_modules/angularfire2-offline/database/object/afo-object-observable.d.ts(53,24): error TS2694: Namespace 'firebase' has no exported member 'Promise'.
node_modules/angularfire2-offline/database/object/afo-object-observable.d.ts(63,31): error TS2694: Namespace 'firebase' has no exported member 'Promise'.

I also have this problem. Please merge pull-requests where these are fixed.

HI! I'm with same problem, you find any solution @MayGo or @PgPedroGabriel?
I had this problem with the version of AngularFire2 ^5.0.0-rc.4 but with the version of example 4.0.0-rc.0 works!

@MayGo  But would that require you moving the whole data store on the realtime DB down to firestore

@vixson yes.

Damn that is a gonna be stressful. please is there a way to move the data automatically on firebase

I have this issue too... Any known version working with firebase@4.12.1 ?

I have this issue too... Any known version working with firebase@4.12.1 ?

@kevinrodriguez-io, unfortunately, you would have to stick with the old angularfire2 version 40.0.-rc.0.

In  the end It was easier for me to switch to firestore. Will keep using firestore in the future for all of my projects.

authors: MayGo PgPedroGabriel kevinrodriguez-io sdanieljose vixson


text:
[FEAT] Add config file support

Is your feature request related to a problem? Please describe.

Some parameters must be configured by project
Describe the solution you'd like

Add a extensible configuration file. At least .yml files should be supported
Additional context

:tada: This issue has been resolved in version 1.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This issue has been resolved in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This issue has been resolved in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

authors: AdrianInsua adrianiy

repo: adrianiy/release-notes-generator


text:
Update charging-stats.json

extends charging-stats.json according to #269

This is really useful information and the Charge Heatmap & Dela look amazing. Thanks!

@marcogabriel, a minor detail -> Discharge stats should have '# discharges' instead of '# charges' . Thx for making the heatmaps and deltas. This is very handy.

authors: adriankumpf marcogabriel vkarthikbalaji

repo: adriankumpf/teslamate


text:
Dialog backgroundColor or decoration?

Sorry for requesting again. I am trying to set decoration (or backgroundColor) on Dialog, but it looks like impossible in the current constructor.
This is what I want to do on my component - passing BoxDecoration to Dialog:
Container(
  decoration: BoxDecoration(
    gradient: LinearGradient(
      colors: [
        colorScheme['secondary']!,
        colorScheme['secondaryVariant']!,
      ],
    ),
  ),
  child: xxx,
),

Right now, I am using showDialog() to open the component Drawer, which is the same code at the issue. As I am using beamer, and I want no transition on route change by doing this, it will get the error screen above at the following steps:

run showDialog()
beamToNamed(‘page 1’)
beamToNamed(‘page 2’)
beamToNamed(‘page 1’) => error

The showDialog function uses the root Navigator, wouldn't this be the problem? But I will need to do some testings with beamer to see how it using the Navigator.

return Navigator.of(context, rootNavigator: true).push<T>(createDialogRoute(
    builder: builder,
    context: context,
    barrierDismissible: barrierDismissible,
    filter: filter,
    barrierColor: barrierColor,
  ));

This is basically the function, wouldn't it be different with beamer?

https://github.com/slovnicki/beamer/search?l=Dart&q=Navigator
I don’t find any Navigator keyword in beamer (not directly using Navigator?).


text:
[Reddit] Follow redirect for /s/ urls

Example: https://www.reddit.com/r/Ultrakill/s/kFOGSpkevO

hi cyn im just gonna pop a bunch of stuff here for next time i work on this
fixvx.com and fixupx.com redirects
reddit image/text post support
qrt support (bigger project; may need slight refactors)


text:
Problems downloading ImageCollection to asset

Hi, your code is working well, unless I set download to true, at which point the page becomes unresponsive.
I wondered whether I am alone in this experience, or whether you could assist a relative newbie in overcoming this challenge.
I m trying to map locations of small scale illegal artisanal mining in the Lower Zambezi region of Zambia where I live. I am hoping the SAR will be able to detect the locations of the mining sites. Much appreciated.

Yes, this is common especially if you're downloading a lot of images. Usually you have to wait a bit until all the download tasks are loaded into the task window when using the code editor.

Le me know if you get an error after waiting...

Many thanks for your fast reply ! I am such a newbie to all this, I totally forgot I had to go to Tasks and Run the downloads....I know right. Anyway, many thanks for the code.


text:
Set systemd as the chosen init manager

We may/should probably investigate the possibility of running OSTree without systemd and initramfs.

Review Score: 11/11

authors: OYTIS cajun-rat

repo: advancedtelematic/meta-updater