Crash on "run_acme_agent.py"

Hello,
I did install all dependencies for acme and i am running it on python3.8 (linux)  using the pong textproto and pong apk
python3 run_acme_agent.py --avd_name='Pixel_XL_API_30' --android_avd_home='/home/username/.android/avd' --android_sdk_root=/home/username/Android/Sdk/ --emulator_path=/home/username/Android/Sdk/emulator/emulator --adb_path=/home/username/Android/Sdk/platform-tools/adb --num_episodes=100 --task_path=/home/username/Dev/android_env/examples/pong_default.textproto
I am getting the following error
I0622 02:01:27.057457<PHONE_NUMBER>65408 environment.py:37] Action spec: {'action_type': DiscreteArray(shape=(), dtype=int32, name=action_type, minimum=0, maximum=2, num_values=3), 'touch_position': BoundedArray(shape=(2,), dtype=dtype('float32'), name='touch_position', minimum=[0. 0.], maximum=[1. 1.])} I0622 02:01:27.058849<PHONE_NUMBER>65408 environment.py:38] Observation spec: {'pixels': Array(shape=(2560, 1440, 3), dtype=dtype('uint8'), name='pixels'), 'timedelta': Array(shape=(), dtype=dtype('int64'), name='timedelta'), 'orientation': Array(shape=(4,), dtype=dtype('uint8'), name='orientation')} I0622 02:01:27.059457<PHONE_NUMBER>65408 environment.py:39] Task extras spec: {'ball': Array(shape=(4,), dtype=dtype('int32'), name='ball'), 'computer': Array(shape=(4,), dtype=dtype('int32'), name='computer'), 'human': Array(shape=(4,), dtype=dtype('int32'), name='human'), 'collision': Array(shape=(1,), dtype=dtype('int32'), name='collision'), 'state': Array(shape=(1,), dtype=dtype('int32'), name='state')} Traceback (most recent call last):   File "run_acme_agent.py", line 88, in <module>     app.run(main)   File "/home/username/.local/lib/python3.8/site-packages/absl/app.py", line 312, in run     _run_main(main, args)   File "/home/username/.local/lib/python3.8/site-packages/absl/app.py", line 258, in _run_main     sys.exit(main(argv))   File "run_acme_agent.py", line 73, in main     num_actions=env_spec.actions.num_values), AttributeError: 'dict' object has no attribute 'num_values' I0622 02:01:27.711886<PHONE_NUMBER>65408 environment.py:127] Cleaning up AndroidEnv...
Thank you for any insights

Hello @ouya99, thanks for the report!
@a-gergely
I think we may have a bug in that script. The off-the-shelf Acme agent expects an action spec that's simply a DiscreteArray but we're passing a dict with a single entry action_id whose value is a DiscreteArray.
Can you try adding a FlatInterfaceWrapper to the wrappers applied to the environment before it's passed to the agent? If it works, feel free to send us a PR.
Thanks!
Daniel Toyama

Hello @kenjitoyama
fixed it applying the FlatInterfaceWrapper
def apply_wrappers(env):   """Applies a series of wrappers to the environment."""   env = wrappers.DiscreteActionWrapper(env, action_grid=(10, 10))   env = wrappers.ImageRescaleWrapper(env, zoom_factors=(0.25, 0.25))   env = wrappers.FloatPixelsWrapper(env)   env = acme_wrappers.SinglePrecisionWrapper(env)   **env = wrappers.FlatInterfaceWrapper(env)**   return env
Now having problems with the following line of code
Traceback (most recent call last):   File "run_acme_agent.py", line 89, in <module>     app.run(main)   File "/home/username/.local/lib/python3.8/site-packages/absl/app.py", line 312, in run     _run_main(main, args)   File "/home/username/.local/lib/python3.8/site-packages/absl/app.py", line 258, in _run_main     sys.exit(main(argv))   File "run_acme_agent.py", line 79, in main     loop = acme.EnvironmentLoopV2(env, agent) AttributeError: module 'acme' has no attribute 'EnvironmentLoopV2'
Thanks

Hi @ouya99, nice catch, thank you!
I've added the missing FlatInterfaceWrapper and replaced acme.EnvironmentLoopV2 with acme.EnvironmentLoop.
Let me know if there are any other issues.

Hello @a-gergely
well, actually after line 78 has been fixed with FlatInterfaceWrapper and line 79 with acme.EnvironmentLoop, the next line 80 is returning the following...
I0622 03:25:05.458233<PHONE_NUMBER>57024 environment.py:79] Done resetting AndroidEnv. I0622 03:25:05.458609<PHONE_NUMBER>57024 environment.py:80] ************* NEW EPISODE ************* Traceback (most recent call last):   File "run_acme_agent.py", line 89, in <module>     app.run(main)   File "/home/username/.local/lib/python3.8/site-packages/absl/app.py", line 312, in run     _run_main(main, args)   File "/home/username/.local/lib/python3.8/site-packages/absl/app.py", line 258, in _run_main     sys.exit(main(argv))   File "run_acme_agent.py", line 80, in main     loop.run(num_episodes=FLAGS.num_episodes)   File "/home/username/.local/lib/python3.8/site-packages/acme/environment_loop.py", line 159, in run     result = self.run_episode()   File "/home/username/.local/lib/python3.8/site-packages/acme/environment_loop.py", line 87, in run_episode     timestep = self._environment.reset()   File "/home/username/.local/lib/python3.8/site-packages/android_env/wrappers/flat_interface_wrapper.py", line 99, in reset     timestep = self._env.reset()   File "/home/username/.local/lib/python3.8/site-packages/acme/wrappers/single_precision.py", line 40, in reset     return self._convert_timestep(self._environment.reset())   File "/home/alexander/.local/lib/python3.8/site-packages/android_env/wrappers/float_pixels_wrapper.py", line 56, in reset     return self._process_timestep(timestep)   File "/home/username/.local/lib/python3.8/site-packages/android_env/wrappers/float_pixels_wrapper.py", line 52, in _process_timestep     observation=self._process_observation(observation))   File "/home/username/.local/lib/python3.8/site-packages/android_env/wrappers/float_pixels_wrapper.py", line 39, in _process_observation     float_pixels = utils.convert_int_to_float( AttributeError: module 'android_env.components.utils' has no attribute 'convert_int_to_float' [reverb/cc/platform/default/server.cc:63] Shutting down replay server

Fix landed!

@a-gergely
crash landed on https://github.com/deepmind/android_env/commit/663bf761fa9a3834f0f54d8b6d04bc1edf1f3e5c
I0622 03:47:00.690374<PHONE_NUMBER>04384 environment.py:79] Done resetting AndroidEnv. I0622 03:47:00.690935<PHONE_NUMBER>04384 environment.py:80] ************* NEW EPISODE ************* Traceback (most recent call last):   File "run_acme_agent.py", line 89, in <module>     app.run(main)   File "/home/username/.local/lib/python3.8/site-packages/absl/app.py", line 312, in run     _run_main(main, args)   File "/home/username/.local/lib/python3.8/site-packages/absl/app.py", line 258, in _run_main     sys.exit(main(argv))   File "run_acme_agent.py", line 80, in main     loop.run(num_episodes=FLAGS.num_episodes)   File "/home/username/.local/lib/python3.8/site-packages/acme/environment_loop.py", line 159, in run     result = self.run_episode()   File "/home/username/.local/lib/python3.8/site-packages/acme/environment_loop.py", line 87, in run_episode     timestep = self._environment.reset()   File "/home/username/.local/lib/python3.8/site-packages/acme/wrappers/single_precision.py", line 40, in reset     return self._convert_timestep(self._environment.reset())   File "/home/username/.local/lib/python3.8/site-packages/android_env/wrappers/flat_interface_wrapper.py", line 99, in reset     timestep = self._env.reset()   File "/home/username/.local/lib/python3.8/site-packages/android_env/wrappers/float_pixels_wrapper.py", line 56, in reset     return self._process_timestep(timestep)   File "/home/username/.local/lib/python3.8/site-packages/android_env/wrappers/float_pixels_wrapper.py", line 52, in _process_timestep     observation=self._process_observation(observation))   File "/home/username/.local/lib/python3.8/site-packages/android_env/wrappers/float_pixels_wrapper.py", line 39, in _process_observation     float_pixels = utils.convert_int_to_float( AttributeError: module 'android_env.components.utils' has no attribute 'convert_int_to_float'

Tested current version https://github.com/deepmind/android_env/commit/cf5f6318c4507d350c4b90aeffb6950d5b7bd9dc
All problems fixed. Game with acme support is starting correctly.
After 10-20 seconds though the app crashes (System UI isn't responding)

Right, I'm not sure exactly what's going on if it's an internal Android crash (i.e. not within AndroidEnv's code). Can you try other tasks? We have used 2048, vokram quite extensively internally, so they should be working well (maybe also try other AVDs with different configurations such as smaller resolution screens or higher memory).
If the script is running, I think this bug is resolved. Other problems such as Reverb's error are probably out of the scope from this particular issue.
Cheers!

@kenjitoyama
Thank you very much. Yes increasing RAM for the AVD and reducing the screen dimensions helped to get it running. A standard Ram of 512 MB for the AVD and device resolution of about 2000x1000 does not seem to work.
Issue closed

Cool, glad it worked!

I tried installing android_env via pip and followed along this thread. The game is starting but i am getting the following error. Any suggestions is highly appreciated.

Traceback (most recent call last):
File "/home/cupgreek/Projects/Virtusa/Automation-in-Game-Testing-main/Battle_Star/classic_2048/run_acme_agent.py", line 87, in
app.run(main)
File "/home/cupgreek/Projects/Virtusa/Automation-in-Game-Testing-main/Battle_Star/acme/lib/python3.9/site-packages/absl/app.py", line 312, in run
_run_main(main, args)
File "/home/cupgreek/Projects/Virtusa/Automation-in-Game-Testing-main/Battle_Star/acme/lib/python3.9/site-packages/absl/app.py", line 258, in _run_main
sys.exit(main(argv))
File "/home/cupgreek/Projects/Virtusa/Automation-in-Game-Testing-main/Battle_Star/classic_2048/run_acme_agent.py", line 80, in main
loop.run(num_episodes=FLAGS.num_episodes)
File "/home/cupgreek/Projects/Virtusa/Automation-in-Game-Testing-main/Battle_Star/acme/lib/python3.9/site-packages/acme/environment_loop.py", line 176, in run
result = self.run_episode()
File "/home/cupgreek/Projects/Virtusa/Automation-in-Game-Testing-main/Battle_Star/acme/lib/python3.9/site-packages/acme/environment_loop.py", line 109, in run_episode
self._actor.observe(action, next_timestep=timestep)
File "/home/cupgreek/Projects/Virtusa/Automation-in-Game-Testing-main/Battle_Star/acme/lib/python3.9/site-packages/acme/agents/agent.py", line 77, in observe
self._actor.observe(action, next_timestep)
File "/home/cupgreek/Projects/Virtusa/Automation-in-Game-Testing-main/Battle_Star/acme/lib/python3.9/site-packages/acme/agents/tf/actors.py", line 90, in observe
self._adder.add(action, next_timestep)
File "/home/cupgreek/Projects/Virtusa/Automation-in-Game-Testing-main/Battle_Star/acme/lib/python3.9/site-packages/acme/adders/reverb/transition.py", line 133, in add
super().add(*args, **kwargs)
File "/home/cupgreek/Projects/Virtusa/Automation-in-Game-Testing-main/Battle_Star/acme/lib/python3.9/site-packages/acme/adders/reverb/base.py", line 207, in add
self._write()
File "/home/cupgreek/Projects/Virtusa/Automation-in-Game-Testing-main/Battle_Star/acme/lib/python3.9/site-packages/acme/adders/reverb/transition.py", line 205, in _write
self._writer.create_item(
File "/home/cupgreek/Projects/Virtusa/Automation-in-Game-Testing-main/Battle_Star/acme/lib/python3.9/site-packages/reverb/trajectory_writer.py", line 344, in create_item
self._writer.CreateItem(table, priority,
ValueError: Unable to create item in table 'priority_table' since the provided trajectory is inconsistent with the table signature. The table expects column 2 to be a double [] tensor but got a float [] tensor.
The table signature is:
0: Tensor<name: 'observation/observation', dtype: float, shape: [480,270,3]>, 1: Tensor<name: 'action/action', dtype: int32, shape: []>, 2: Tensor<name: 'reward/reward', dtype: double, shape: []>, 3: Tensor<name: 'discount/discount', dtype: double, shape: []>, 4: Tensor<name: 'next_observation/next_observation', dtype: float, shape: [480,270,3]>
The provided trajectory signature is:
0: Tensor<name: '0', dtype: float, shape: [480,270,3]>, 1: Tensor<name: '1', dtype: int32, shape: []>, 2: Tensor<name: '2', dtype: float, shape: []>, 3: Tensor<name: '3', dtype: float, shape: []>, 4: Tensor<name: '4', dtype: float, shape: [480,270,3]>.
[reverb/cc/platform/default/server.cc:84] Shutting down replay server
I0303 13:22:19.591461<PHONE_NUMBER>26624 environment.py:127] Cleaning up AndroidEnv...
I0303 13:22:19.592031<PHONE_NUMBER>26624 thread_function.py:88] Killing logcat thread
I0303 13:22:19.592403<PHONE_NUMBER>26624 thread_function.py:88] Killing dumpsys thread
I0303 13:22:19.592731<PHONE_NUMBER>26624 adb_controller.py:101] Closing ADB controller...
I0303 13:22:19.592979<PHONE_NUMBER>26624 adb_controller.py:107] Done closing ADB controller.
I0303 13:22:19.593255<PHONE_NUMBER>26624 environment.py:130] Done cleaning up AndroidEnv.

Hi @cupGreek, this error seems unrelated to AndroidEnv. It's crashing in Reverb.
From the little I see from the stack trace, it looks like there is a mismatch with the names of the tensors. Reverb is expecting named tensors like "observation" and "action", but it's getting names like "0" and "1". I'm not sure if they changed something in Acme that could be causing this.
On our side, we should probably use their JAX agents instead of TF, since JAX has received more love in the last few years.

I created #23 to track the migration from TF to JAX.


class 'Hitbox' used before its declaration

After cloning foster I ran into a snag where tsconfig.json's outFile should be pointed at bin/foster.js instead of foster.js, so I changed that. Then I did npm install && gulp``, but I got an error message: class 'Hitbox' used before its declaration`. Is there an obvious Typescript thing I'm missing here?
diff --git a/tsconfig.json b/tsconfig.json
index 90252e1..16ef4b9 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -3,7 +3,7 @@
        {
                "target": "es6",
                "sourceMap": false,
-               "outFile": "foster.js",
+               "outFile": "bin/foster.js",
                "declaration": true
        },
        "exclude": [

C:\Users\kevin\src\foster>tsc --version
Version 2.3.4

C:\Users\kevin\src\foster>npm install && gulp
[12:16:13] Using gulpfile ~\src\foster\gulpfile.js
[12:16:13] Starting 'clean'...
[12:16:13] Finished 'clean' after 5.41 ms
[12:16:13] Starting 'default'...
[12:16:13] Starting 'ts'...
[12:16:13] Finished 'default' after 58 ms
src\components\physics.ts(1,23): error TS2449: Class 'Hitbox' used before its declaration.
[12:16:15] TypeScript: 1 semantic error
[12:16:15] TypeScript: emit succeeded (with errors)
[12:16:15] Finished 'ts' after 2.06 s

I pushed a fix for the wrong outFile and also added typescript <reference path=""> to the necessary files  which should force the order to be correct. I'm surprised the order was never wrong for me - I must have just been lucky.

Your fix looks great and worked for me. Thanks!


Support requesting ties

I believe the agreed-upon name was /offerdraw

There's also no real reason for /offerdraw and /acceptdraw to be different commands. They should be aliases; the implementation should be exactly the same whether you're first or second to offer the draw, though.

Also, the draw state should actually be on the battle object. Don't take advantage of the lack of TypeScript in commands to do this... :/
Actually @scheibo we should probably migrate chat commands directly to TypeScript...

Honestly, I wonder if players and users should be more separated. Currently a RoomGamePlayer will only exist if a corresponding user exists, but maybe they should be disassociated so player state can be kept around in a consistent location, instead of strewn around the RoomGame as is currently done.
(None of this should probably be done in your PR, though – I'm just musing.)

There's also no real reason for /offerdraw and /acceptdraw to be different commands. They should be aliases; the implementation should be exactly the same whether you're first or second to offer the draw, though.

I mean, it doesn't really makes sense to accept a draw by using /offerdraw.

Travis tests have failed
Hey @TheJetOU,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.
TravisBuddy Request Identifier: 71927500-6112-11e9-872d-3ffbb4cd282a

Not sure why my VS Code isn't reporting these errors like it used to :(

Draw offers should reset every turn.

We should probably initialize draw offers to null rather than ['', '']

Weird, VS Code didn't complain.

I mean, it doesn't really makes sense to accept a draw by using /offerdraw.

I would say it's reasonable. If you want to offer a draw, then chances are you want a draw. If an opponent offered a draw already, it's reasonable to assume you accept it.

Yeah, that makes sense now @xfix.
@Zarel, should be ready for review now.

@xfix, if you use the right premises in Temporal logic, the equivalence of those aliases won't hold.
In simpler terms, we need to implement a mechanism to avoid race conditions in which accepting a draw in turn n translates in offering a draw in turn n+1 after the opponent changes their mind and decides to make a choice.

In simpler terms, we need to implement a mechanism to avoid race conditions in which accepting a draw in turn n translates in offering a draw in turn n+1 after the opponent changes their mind and decides to make a choice.

@Slayer95, Isn't that what already happens because of this commit?
If Player X and Player Y are playing, In turn 2 Player X offers a draw, Player Y attempts to accept the draw in turn 3, It wouldn't tie the battle, It would just show Player Y offering a draw once again.

@Slayer95, Isn't that what already happens because of this commit?
If Player X and Player Y are playing, In turn 2 Player X offers a draw, Player Y attempts to accept the draw in turn 3, It wouldn't tie the battle, It would just show Player Y offering a draw once again.

Indeed, but that's not desirable! The scenario I am considering is as follows:
08:00:01.00 Player Y sends /choose move closecombat
08:00:08.00 Player X sends /offerdraw
08:00:10.00 Player X sends /choose switch chansey (Player X changed his mind)
08:00:10.05 Player Y sends /acceptdraw (Player Y believes the turn is the same)
Assuming Player X and Player Y have the same latency, the turn proceeded, and Chansey fainted. And Player Y is now allowing a tie! So Player X lost their dear Chansey and arguably might have lost any chances to win the game, but then he could just do /acceptdraw and end the battle as a tie!

Hm, that's a good point. I'm not sure that requires a workaround, though.

Well, with a proper GUI, offering and accepting draws would send the rqid.
However, if that's not planned for the near future, the simplest solution would be removing the equivalence between /acceptdraw and /offerdraw. Then the scenario above would just result in an error: "No draw offer available. It might have been automatically withdraw as the current turn started."

Interestingly enough, we could also make /offerdraw accept draws, but make it so that /acceptdraw doesn't offer draws, and that would be best imo.

I'm more leaning towards the first solution which is removing the equivalency between /offerdraw and /acceptdraw.
What do you think, @Zarel?

If the code isn't closely related, that means you're writing it wrong.

Okay, the code is much better now, I think. But the race condition is still present :|

Race condition is fixed!

Bumping @Zarel.

@Zarel, the Smogon Tournament Directors have stated they don't want /offerdraw and /acceptdraw in their server, so set allowRequestingTies to false when updating Smogtours.

(This is pending my refactor of BattlePlayer)

This Pull Request is in the same situation as #5456, because since players don't have the player rank, they can't support ties.

(Tagging @scheibo to add the 'Do Not Merge' label)

Bumping this.

You're using both tie and draw in the UI. I would suggest picking one that remains constant thru the UI (not necessarily the commands, but the prompts the users get etc)

I'd prefer "tie", since I think it's the more common word. /requesttie and /accepttie. I'm amenable to using "draw" in the command aliases.

I'd prefer "tie", since I think it's the more common word. /requesttie and /accepttie. I'm amenable to using "draw" in the command aliases.

It was called `/accepttie`` in the beginning but you said..

I believe the agreed-upon name was /offerdraw

Yeah, that's my bad. "Offer draw" is way more common than "request tie", but "tie" by itself is more common than "draw". We should definitely support both /offerdraw and /requesttie as aliases, but the text should probably consistently use "tie".

This pull request introduces 1 alert and fixes 3 when merging ab9243e15d84bccc3afba3f3df90823d1fd7984f into<PHONE_NUMBER>3b62a88154dc08b0e5e59865e34cbd - view on LGTM.com
new alerts:

1 for Syntax error

fixed alerts:

2 for Useless assignment to local variable
1 for Incomplete URL substring sanitization

Comment posted by LGTM.com

This is looking good; I approve of everything except the minor things I commented.

Okay, just some grammar fixes and we should be done!


Identifiers that don't implement to_global_id

Hi everyone,
I was working on replacing polling with ActionCable in an app. It's been good so far and things are working mostly as expected. Thanks everyone who worked on this. I've been anticipating this kind of feature for a long time.
I ran into a small issue when using a uuid string as the identifier for a connection. (The scenario is that this uuid string is a unique identifier for a session and the user is not logged in, so current_user is nil)
An error was raised in lib/connection/identification.rb#connection_gid saying:
undefined method `to_global_id' for "121cce49-3f9a-4871-904f-5b6d0e0f5d25":String

So, it seems like there's a requirement that the identifier should be something that implements to_global_id. Currently, I'm working around it by using a hand-rolled class that implements to_global_id.
My question is, should the identifier be able to handle objects that don't implement to_global_id?
If so, then this leads to the next question on how a particular object can be converted to a string to be used as the connection_identifier. to_global_id is fine for ActiveRecord models. But, for other kinds of objects, I'm not sure.
Any thoughts?

Yeah, we should probably just try(:to_global_id) and then do try(:to_s) if that doesn't work 👍

Thanks. That sounds good. I'll work on implementing that.

Fixed by https://github.com/rails/actioncable/pull/65


After submit data remoove styling

Hi
When i submit data after that styling of success is remains.

Reset the form


Determining the durations of segmentation operators (|)

The MFA outputs don't really provide the durations/frames between the words, and I checked that this project uses the duration of the SEG token (word separator). It is many times 0 and other times not, so I wanted to ask how did you get that on preprocessing step?

"0" means there is no interval between the words.
The durations of segmentation operators are determined by MFA...
The .lab file for mfa is like:
SIL P_R_IH1_N_T_IH0_NG SIL IH0_N DH_AH0 OW1_N_L_IY0 S_EH1_N_S W_IH1_DH W_IH1_CH W_IY1 AA1_R AE1_T P_R_EH1_Z_AH0_N_T K_AH0_N_S_ER1_N_D SIL D_IH1_F_ER0_Z F_R_AH1_M M_OW1_S_T IH1_F N_AA1_T F_R_AH1_M AO1_L DH_AH0 AA1_R_T_S AH0_N_D K_R_AE1_F_T_S R_EH2_P_R_AH0_Z_EH1_N_T_AH0_D IH0_N DH_AH0 EH2_K_S_AH0_B_IH1_SH_AH0_N SIL
corresponding to "printing , in the only sense with which we are at present concerned , differs from most if not from all the arts and crafts represented in the exhibition"
And "LJ001-0001.TextGrid" is the output of MFA. MFA determines whether there's an sp between the words.

Did you use pretrained english model for MFA, or something else, cause I think SIL token is not available in that particular model?

No, re-train MFA


Remove automatic building from npm install?

I propose we keep building the project strictly under gulp build (optionally adding an npm script npm build).
The Travis builds take longer than they should, and it doesn't make sense to have npm install fail in case tests fail.

Agreed.


[Nucleo_F446RE] adding target

Adding target incl. RTOS support and exporters to gcc_arm and coide
singletest.py run is OK:
+--------+---------------+-----------+-------------+---------------------------------------+--------------------+---------------+-------+
| Result | Target        | Toolchain | Test ID     | Test Description                      | Elapsed Time (sec) | Timeout (sec) | Loops |
+--------+---------------+-----------+-------------+---------------------------------------+--------------------+---------------+-------+
| OK     | NUCLEO_F446RE | GCC_ARM   | DTCT_1      | Simple detect test                    |        0.52        |       10      |  1/1  |
| OK     | NUCLEO_F446RE | GCC_ARM   | EXAMPLE_1   | /dev/null                             |        3.45        |       20      |  1/1  |
| OK     | NUCLEO_F446RE | GCC_ARM   | MBED_10     | Hello World                           |        0.36        |       5       |  1/1  |
| OK     | NUCLEO_F446RE | GCC_ARM   | MBED_11     | Ticker Int                            |       11.36        |       15      |  1/1  |
| OK     | NUCLEO_F446RE | GCC_ARM   | MBED_12     | C++                                   |        1.38        |       10      |  1/1  |
| OK     | NUCLEO_F446RE | GCC_ARM   | MBED_16     | RTC                                   |        4.73        |       20      |  1/1  |
| OK     | NUCLEO_F446RE | GCC_ARM   | MBED_2      | stdio                                 |        0.8         |       20      |  1/1  |
| OK     | NUCLEO_F446RE | GCC_ARM   | MBED_23     | Ticker Int us                         |       11.37        |       15      |  1/1  |
| OK     | NUCLEO_F446RE | GCC_ARM   | MBED_24     | Timeout Int us                        |       11.37        |       15      |  1/1  |
| OK     | NUCLEO_F446RE | GCC_ARM   | MBED_25     | Time us                               |       11.35        |       15      |  1/1  |
| OK     | NUCLEO_F446RE | GCC_ARM   | MBED_26     | Integer constant division             |        1.4         |       20      |  1/1  |
| OK     | NUCLEO_F446RE | GCC_ARM   | MBED_34     | Ticker Two callbacks                  |       11.38        |       15      |  1/1  |
| OK     | NUCLEO_F446RE | GCC_ARM   | MBED_A1     | Basic                                 |        1.37        |       20      |  1/1  |
| OK     | NUCLEO_F446RE | GCC_ARM   | MBED_A21    | Call function before main (mbed_main) |        1.41        |       20      |  1/1  |
| OK     | NUCLEO_F446RE | GCC_ARM   | MBED_A5     | DigitalIn DigitalOut                  |        1.37        |       10      |  1/1  |
| OK     | NUCLEO_F446RE | GCC_ARM   | MBED_A6     | DigitalInOut                          |        1.37        |       10      |  1/1  |
| OK     | NUCLEO_F446RE | GCC_ARM   | MBED_A7     | InterruptIn                           |        9.37        |       15      |  1/1  |
| OK     | NUCLEO_F446RE | GCC_ARM   | MBED_A9     | Serial Echo at 115200                 |        6.52        |       20      |  1/1  |
| OK     | NUCLEO_F446RE | GCC_ARM   | MBED_BUSOUT | BusOut                                |        2.27        |       15      |  1/1  |
| OK     | NUCLEO_F446RE | GCC_ARM   | RTOS_1      | Basic thread                          |       11.36        |       15      |  1/1  |
| OK     | NUCLEO_F446RE | GCC_ARM   | RTOS_2      | Mutex resource lock                   |       11.35        |       20      |  1/1  |
| OK     | NUCLEO_F446RE | GCC_ARM   | RTOS_3      | Semaphore resource lock               |        8.36        |       20      |  1/1  |
| OK     | NUCLEO_F446RE | GCC_ARM   | RTOS_4      | Signals messaging                     |        6.37        |       20      |  1/1  |
| OK     | NUCLEO_F446RE | GCC_ARM   | RTOS_5      | Queue messaging                       |        2.38        |       20      |  1/1  |
| OK     | NUCLEO_F446RE | GCC_ARM   | RTOS_6      | Mail messaging                        |        2.37        |       20      |  1/1  |
| OK     | NUCLEO_F446RE | GCC_ARM   | RTOS_7      | Timer                                 |       11.36        |       15      |  1/1  |
| OK     | NUCLEO_F446RE | GCC_ARM   | RTOS_8      | ISR (Queue)                           |        6.38        |       20      |  1/1  |
+--------+---------------+-----------+-------------+---------------------------------------+--------------------+---------------+-------+

Can you rebase on the top of master please?

It's rebased. And singletest.py is still OK.
What can be done against the ci/circleci test failures?

To be honest, I personally don't know who enabled that circleci, as there seems to be no tests defined.

Yes, please ignore Circle CI :)
This is only useful if you run tests without hardware instrumentation.
In the future I will add Python UT tests for workspace_tools so we can call python setup.py test or pyTest for workspace_tools but for now it is useless for mbed SDK ports.


[discussion] Why use randomized H matrix? not just normal H matrix?

Can someone help to explain this point?

@qijiaxing
Thanks for your issue.
We have done it because we found that this improves the results. Also, this follows the intuition from previous work (like QuIP). I did some experiments with exact Hadamard and I got lower accuracy in all benchmarks


Will wakaama client work for non debug builds ?

I was trying a non debug (cmake ../client) build of wakaama client. The debug build(cmake ../client -DCMAKE_BUILD_TYPE=Debug) of wakaama client registers successfully with device management server( leshan server). But the non debug client registration fails. Attaching logs
Build system: Ubuntu14.04 LTS, cmake 3.5.2, gcc 4.8.4, GNU Make 3.81)
I also tried the same on mac os x with same results.
Build system: OSX 10.11, cmake 3.5.2, Apple LLVM version 7.3.0, GNU Make 3.81)
Is the release build a work in progress ? Or am I doing any thing wrong with the build process ? I could add add any missing information on need.

Hi,
As of today I can not reproduce your issue with the current master branch.
In your logs, I can see that leshan is sending your client a registration location, meaning your client is registered. Have you check on the leshan web UI ?
Note that the release version does not display the "=> REGISTERED" message.
Regards

I am in front of a work PC right now. But I remember checking leshan UI and didn't see the client registered for release builds( both on mac and ubunutu). Is there any thing else I can do to enable more logs( on release builds ) or any thing that will help ?

@dnav Really sorry about wasting your time. As you said, client was getting registered and it was just that it didn't show the registered message.

No problem


Cannot download .NET Core Debugger

Issue Description
While opening a C# project for the first time this plugin tries to download the debugger, which it cannot find because it's received a slightly differnt URL.
It has been renamed, from netcoredbg-linux-bionic-amd64.tar.gz to netcoredbg-linux-amd64.tar.gz.
Steps to Reproduce

Install vscode (vscodium)
Enable C# plugin
Open a C# project

Expected Behavior

It downloads the debugger (from https://github.com/Samsung/netcoredbg/releases/download/2.0.0-859/netcoredbg-linux-amd64.tar.gz)
(currently the latest version is 2.0.0-849)

Actual Behavior

It attempts to download from https://github.com/Samsung/netcoredbg/releases/download/2.0.0-859/netcoredbg-linux-bionic-amd64.tar.gz, which doesnt exist and thus gives a 404.

Logs
OmniSharp log

Installing C# dependencies...
Platform: linux, x86_64, name=ubuntu, version=20.04
Downloading package '.NET Core Debugger (linux / x64)' Failed to download from https://github.com/Samsung/netcoredbg/releases/download/2.0.0-859/netcoredbg-linux-bionic-amd64.tar.gz. Error code '404')
Retrying from 'https://web.archive.org/web/20201125201611/https://github-production-release-asset-2e65be.s3.amazonaws.com/113926796/2a979180-2f1f-11eb-8254-5746e29dc86d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20201125%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20201125T201611Z&X-Amz-Expires=300&X-Amz-Signature=16e82fadc53b2c8965a4921f7b4241df4b7d8ec1366d08a2e47d5ad840c80444&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=113926796&response-content-disposition=attachment%3B filename%3Dnetcoredbg-linux-bionic-amd64.tar.gz&response-content-type=application%2Foctet-stream' (NaN KB) Done!
Installing package '.NET Core Debugger (linux / x64)'
Failed at stage: installPackage
C# Extension was unable to install its dependencies. Please check your internet connection. If you use a proxy server, please visit https://aka.ms/VsCodeCsharpNetworking

C# log
Post the output from Output-->C# here
Environment information
VSCode version: 1.56.0
C# Extension: 1.23.12
Mono Information
        OmniSharp using built-in mono
Dotnet Information
.NET SDK (reflecting any global.json):
 Version:   5.0.402
 Commit:    e9d3381880
Runtime Environment:
OS Name:     ubuntu
OS Version:  20.04
OS Platform: Linux
RID:         ubuntu.20.04-x64
Base Path:   /usr/share/dotnet/sdk/5.0.402/
Host (useful for support):
Version: 5.0.11
Commit:  f431858f8b
.NET SDKs installed:
3.1.414 [/usr/share/dotnet/sdk]
5.0.402 [/usr/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 3.1.20 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.11 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.20 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.11 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download

Visual Studio Code Extensions

Extension
Author
Version

csharp
muhammad-sammy
1.23.12

rust
rust-lang
0.7.8

vim
vscodevim
1.21.5

vscode-nuget-gallery
patcx
0.0.24

Hi @MattiasBeimers, Sorry you are running into issues. This extension is for the ms-dotnettools.chsarp extensions and I can see that you are using the muhammad-sammy.csharp extension. I believe the you can log issues against your extension at https://github.com/muhammadsammy/free-omnisharp-vscode/issues. Going to close this out.

Ah ok, sorry, my bad. Thank you for pointing me in the right direction.


Add JSON extensions to DictionaryExtensions

These extensions were previously available for NSDictionary. Now we need to port them to the Swift Dictionary:
    /// EZSE: Unserialize JSON string into NSDictionary
    @available(*, deprecated: 1.8)
    public convenience init ? (json: String) {
        if let data = (try? JSONSerialization.jsonObject(with: json.data(using: String.Encoding.utf8, allowLossyConversion: true)!, options: JSONSerialization.ReadingOptions.mutableContainers)) as? NSDictionary {
            self.init(dictionary: data)
        } else {
            self.init()
            return nil
        }
    }

    /// EZSE: Serialize NSDictionary into JSON string
    @available(*, deprecated: 1.8)
    public func formatJSON() -> String? {
        if let jsonData = try? JSONSerialization.data(withJSONObject: self, options: JSONSerialization.WritingOptions()) {
            let jsonStr = NSString(data: jsonData, encoding: String.Encoding.utf8.rawValue)
            return String(jsonStr ?? "")
        }
        return nil
    }

related to #333

https://github.com/goktugyil/EZSwiftExtensions/pull/335

GIven that Dictionary is a struct, I had to rethink the design of the methods a little bit. So its not a one to one translation of the methods.


Uncaught Error: Unable to display threads: "Cannot find Delve debugger at dlv. Ensure it is in your "GOPATH/bin" or "PATH"."

Issue Id: f08e574a-e42f-ea9b-7834-fc92553f0c05Versions - 1.8.1Stack Error: Unable to display threads: "Cannot find Delve debugger at dlv. Ensure it is in your "GOPATH/bin" or "PATH"."/vs/workbench/parts/debug/electron-browser/rawDebugSession.ts#L181:30vs/workbench/electron-browser/vs/base/common/winjs.base.raw.js#L1209:0 (onError)vs/workbench/electron-browser/vs/base/common/winjs.base.raw.js#L901:0 (_notify)vs/workbench/electron-browser/vs/base/common/winjs.base.raw.js#L1068:0 (enter)vs/workbench/electron-browser/vs/base/common/winjs.base.raw.js#L1041:0 (_run)/vs/workbench/parts/debug/node/v8Protocol.ts#L53:5 (errorDispatch)/vs/workbench/parts/debug/node/v8Protocol.ts#L136:6 (clb)/vs/workbench/parts/debug/node/v8Protocol.ts#L104:11 (dispatch)/vs/workbench/parts/debug/node/v8Protocol.ts#L41:8 (handleData)    at emitOne (events.js:96:13)

This error from the debug adapter for the Go extension need not bubble up all the way to the core code.

Is fixed with https://github.com/Microsoft/vscode-go/commit/794b579663c88ed1d478917df4c530ca0b0a821a


kola/kubeadm: fix CNI selection

register action was keeping the latest occurence of CNI so it was
basically always testing the cilium CNI.
... it happens.
The issue was already being fixed into #196 but it's better to be merged now to confirm that https://github.com/kinvolk/coreos-overlay/pull/1181 is solving the actual flannel issue raised in https://github.com/kinvolk/mantle/pull/196#issuecomment-895358491

@krnowak yes.. Github does not handle yet the --autosquash when it detects --fixup commits. :/


"Report Format" options do not list a valid option, HTML.

The parameter for Format of type ReportFormat lists the following valid formats: Pdf, Excel, Word, and XML. However, it does not list another valid format, HTML. The type HTML is listed on the ReportFormat option type documentation, but needs to be updated in the Report.SaveAs description.

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

ID: 603417a5-e264-835c-6f47-fb1f643e5755
Version Independent ID: d751df67-69f9-68e8-0ae1-a55ef592939c
Content: Report.SaveAs(Integer, Text, ReportFormat, var OutStream [, RecordRef]) Method - Business Central
Content Source: dev-itpro/developer/methods-auto/report/report-saveas-method.md
Service: dynamics365-business-central
GitHub Login: @SusanneWindfeldPedersen
Microsoft Alias: solsen

dupe of https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb/issues/1389 and thus https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb/issues/2008 :-)


expand cardview for ExpandableItem

how can i expand a item inside a parent cardview ?
can you give me a sample please ?
thanks

Could you please give more information?

i want to have a ExpandableItem with cardView, when this item expanded, more items add inside this cardview
( sorry for my bad english )

@DJafari That's nothing the FastAdapter can handle for you. This is just about the way your cardview is configured. Please see here:
http://stackoverflow.com/questions/31273203/what-is-the-best-practice-to-group-items-into-cardview
When you expand you just have to change the margin of the parent CardView so it will "group" with the sub items.

@mikepenz no , my main question is : how can i add sub items inside in cardview of expandable item ?
my subitems not having cardview, just simple, but i want subitems adds inside the cardview, not outer

@DJafari you can add another recyclerview inside your item, but subitems are below the parent items.

@DJafari please look again at the link I posted above. It will group together the CardView so you can get the same effect and make it look as it is "inside" the CardView
Otherwhise you will have to handle this on your own. You will have to listen for the click event and then call notifyItemChanged() and add the new views to your item inside the bindView() method

@mikepenz @FabianTerhorst  ok thanks for your helps


Display utility TOC fix

The display utility associations samples differed between C++ and QML (see below). This updates the colors in the QML sample to be consistent with those of the C++ sample.

The swatches were backwards. It looks like this is resolved for now.


[Website] add project shield case-study

add project shield case-study with related files

before:

after:

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

R: @pabloem R: @sysede Please review the Project Shield case study

this looks great to me! Thanks!


set uuid column to null

I'm submitting a ...

[ ] bug report
[ ] feature request
[x] question

PostGraphQL version:
3.5.0
Is it possible to set a "Uuid" column to null? When I try to set the value to null I get, "Variable "$primaryAddressId" got invalid value null.\nExpected "Uuid!", found null."...
mutation Update($id: Uuid!, $primaryAddressId: Uuid!) {
  updateCustomerById(input: {
    id: $id,
    clientMutationId: "123",
    customerPatch: {
      id: $id,
      primaryAddressId: $primaryAddressId
    }
  }) {
    customer {
      id
    }
  }
}

Variables
{
  "id": "00488484-a0a3-434d-952b-300935460f82",
  "primaryAddressId": null
}

Result:
{
  "errors": [
    {
      "message": "Variable \"$primaryAddressId\" got invalid value null.\nExpected \"Uuid!\", found null.",
      "locations": [
        {
          "line": 1,
          "column": 29
        }
      ],
      "stack": "GraphQLError\n    at getVariableValues (/Users/doorway/Projects/fleetgrid/backend/node_modules/graphql/execution/values.js:78:15)\n    at buildExecutionContext (/Users/doorway/Projects/fleetgrid/backend/node_modules/graphql/execution/execute.js:186:54)\n    at Object.execute (/Users/doorway/Projects/fleetgrid/backend/node_modules/graphql/execution/execute.js:109:17)\n    at /Users/doorway/Projects/fleetgrid/backend/node_modules/postgraphql/src/postgraphql/http/createPostGraphQLHttpRequestHandler.js:407:16\n    at /Users/doorway/Projects/fleetgrid/backend/node_modules/postgraphql/src/postgraphql/withPostGraphQLContext.ts:74:18\n    at step (/Users/doorway/Projects/fleetgrid/backend/node_modules/tslib/tslib.js:122:27)\n    at Object.next (/Users/doorway/Projects/fleetgrid/backend/node_modules/tslib/tslib.js:103:57)\n    at fulfilled (/Users/doorway/Projects/fleetgrid/backend/node_modules/tslib/tslib.js:93:62)\n    at <anonymous>\n    at process._tickDomainCallback (internal/process/next_tick.js:208:7)"
    }
  ]
}

It seams like my only option is to set it to "00000000-0000-0000-0000-000000000000" then run flags in my application to account for this.

Your query explicitly states that the variable $primaryAddressId must be a non-null Uuid:
mutation Update($id: Uuid!, $primaryAddressId: Uuid!) {

If you remove that ! then the query will accept a null Uuid (assuming the variable is only used where a nullable ID is valid).

[semi-automated message] To keep things manageable I'm going to close this issue as I think it's solved; but if not or you require further help please re-open it.


Character imports from Armory/Wowhead

Allow character imports from the WoW armory as well as Wowhead.
Sample character URL: https://worldofwarcraft.blizzard.com/en-gb/character/eu/argent-dawn/marlamin
Data can be retrieved through the appearances/item equipment APIs: https://develop.battle.net/documentation/world-of-warcraft/profile-apis

Was this ever added/implemented?

Was this ever added/implemented?

Only from the armory, not Wowhead. Character appearance can be imported for characters on Retail servers (not armor/weapons etc, which we don't support yet).

Yet being it will be soon?
On Wed, Oct 9, 2024 at 12:00 PM Martin Benjamins @.***>
wrote:

Was this ever added/implemented?
Only from the armory, not Wowhead. Character appearance can be imported
for characters on Retail servers (not armor/weapons etc, which we don't
support yet).
—
Reply to this email directly, view it on GitHub
https://github.com/Kruithne/wow.export/issues/366#issuecomment-2402847650,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGYW76U2NFLXYCNNTC6QOE3Z2VOMNAVCNFSM6AAAAABPU5Y63CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBSHA2DONRVGA
.
You are receiving this because you commented.Message ID: <Kruithne/wow.
@.***>

Yet being it will be soon?
Nope.


Alias for .apps fail to add to dock

Pretty sure i mean Alias here but correct me if i'm worng, .app is "re-labelled" to a friendly name, this fails to add via this alias, when you drag the app to terminal it shows the actual name of the .app.
UI methods of adding to the dock retain the friendly alias name.

It has been a long time.  Sorry for not replying at the time this was opened.  I must have been busy at the time.
In my testing in dockutil 3, adding an alias keeps the alias name.


Backport of aio-pika implementation to 1.10.X

Proposed changes:

Backport of aio-pika implementation to 1.10.X

Status (please check what you already did):

[x] added some tests for the functionality
[ ] updated the documentation
[ ] updated the changelog (please check changelog for instructions)
[x] reformat files using black (please check Readme for instructions)

@wochinge That makes sense, @alwx do you know if you'll be able to take a look at the old implementation's multi-processing issue? It's on the high priority side for a customer's current production deployment.

@wochinge That makes sense, @alwx do you know if you'll be able to take a look at the old implementation's multi-processing issue? It's on the high priority side for a customer's current production deployment.

We were discussing this issue and this PR and decided to reopen it. On one hand, we think that backporting features is what we shouldn't be doing, but in this case it's clear that actually approving this change would save us a lot of time and will allow customers to have a better and more stable implementation of Pika blocker.

Sounds good, let me know about the status when you get a chance to review 🙏

Do you have time to do a release tomorrow or should I take over some steps @b-quachtran ?

Hey @wochinge, I won't have a chance to review for a release tomorrow so if you could take over some steps that'd be a big help. As far as testing, I updated some of the Pika test cases and verified that it was working with Homebrew's RabbitMQ server, but nothing beyond that.

Ok, I'll give it a quick test run as well and then merge + prepare the release 👍🏻

🙏  thanks!

seems the poetry.lock file was incorrect. Fixed it. Seems the testing was actually important 😆


Add Windows 7 Install Guide

A general guide for installing windows 7 (not Booz specific).

Sorry guys. Wrong repo.


Logseq 0.9.6 block/numbered list changes affecting bullet threading appearance

I love your bullet threading plugin, thanks for creating it!
After updating to the new version of Logseq and it looks like the changes to blocks is causing visual issues with bullet threading now.

Come here just to report that ¿Is easy to repair?

PR to fix https://github.com/pengx17/logseq-dev-theme/pull/93


[Docs] Duplicate contents

Describe the bug, including details regarding any error messages, version, and platform.
Duplicate content was found.
I did not find all the content, but there is duplicate content in the document as follows:

API Reference

Compute Functions

pyarrow.compute.CountOptions
pyarrow.compute.ScalarAggregateOptions
pyarrow.compute.TDigestOptions

Component(s)
Documentation

Issue resolved by pull request 41588
https://github.com/apache/arrow/pull/41588


ProtobufSerializer has a race condition in RegisterOrGetReferences method

Description
The bug is in RegisterOrGetReferences method from the ProtobufSerializer class.
Several asynchronous tasks update result variable simultaneously. Where result is variable of type List<SchemaReference> which is not thread safe.
I would suggest to use pure function to avoid side effects and race condition.
Confluent.SchemaRegistry.Serdes.Protobuf - 1.5.3
How to reproduce
If I simplify the function RegisterOrGetReferences just for showing the problem it may look like this:
[Fact]
public async Task Test()
{
    var results = await GetAsync().ConfigureAwait(false);
    Assert.Equal(3, results.Count);
}

public static async Task<List<int>> GetAsync()
{
    List<int> result = new List<int>();

    var tasks = new Task[3];
    for (int i = 0; i < 3; ++i)
    {
        int dependency = i;
        Func<Task> t = async () =>
        {
            await Task.Delay(100).ConfigureAwait(false);
            result.Add(dependency);
        };
        tasks[i] = t();
    }

    await Task.WhenAll(tasks.ToArray()).ConfigureAwait(false);
    return result;
}

Checklist
Please provide the following information:

[x] A complete (i.e. we can run it), minimal program demonstrating the problem. No need to supply a project file.
[x] Confluent.Kafka nuget version.
[ ] Apache Kafka version.
[ ] Client configuration.
[ ] Operating system.
[ ] Provide logs (with "debug" : "..." as necessary in configuration).
[ ] Provide broker log excerpts.
[x] Critical issue.

Hi @mhowlett !
Could you please look at this issue and PR whenever you able?
That is really critical issue for clients that use Protobuf
Thank you in advance!

good point, well spotted.

Fixed in v1.6.2


Bug in date validation

This date should not get validated since there is only 30 days in April
moment('2015-04-31', 'YYYY-MM-DD').isValid() //--> true

False alert, The mistake comes from me. Sorry.
It appears that I wasn't using correctly moment in my tests.
I'm closing this.


New version: Unity.UnityHub version 3.4.1

Result: Installation Successful

Manifest
Add/Remove Programs

Name
Unity Hub
Unity Hub 2.4.4, Unity Hub 3.4.1

Version
3.4.1
2.4.4, 3.4.1

Publisher
Unity Technologies Inc.
Unity Technologies Inc., Unity Technologies Inc.

ProductCode

{Unity Technologies - Hub}, Unity Technologies - Hub

Auto-updated by vedantmgoyal2009/winget-pkgs-automation in workflow run 4571
Microsoft Reviewers: Open in CodeFlow

Duplicate of #91491


feat(alerting): add timezone for maintenance

Summary
Add a "Timezone" field to the configuration in the maintenance zone to specify the timezone for the maintenance window. Also, include tests for various timezones and cases.
Fixes #327
Checklist

[X] Tested and/or added tests to validate that the changes work as intended, if applicable.
[X] Updated documentation in README.md, if applicable.

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

Comparison is base (f76be6d) 78.49% compared to head (f2d5e48) 78.53%.

:exclamation: Current head f2d5e48 differs from pull request most recent head 727ee22. Consider uploading reports for the commit 727ee22 to get more accurate results

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #653      +/-   ##
==========================================
+ Coverage   78.49%   78.53%   +0.04%
==========================================
  Files          58       58
  Lines        4705     4714       +9
==========================================
+ Hits         3693     3702       +9
  Misses        827      827
  Partials      185      185

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

@TwiN Can you review his PR? I've made some changes that you are asked

@lefes Thank you for your contribution! 🙇


sub folder in livewire and create layout

how to use sub folder in livewire?
like this?
php artisan make:livewire users.category-index
node ace make:livewire  users.category-index
and this also doesn't work
node ace livewire:layout app
node ace livewire:layout guest

@ramabie both commands has been fixed https://github.com/KABBOUCHI/adonisjsv6-livewire-demo/commit/4a80abeee45704943865c6576ec6dcc72c3336d1


Implement Requests for Type Information

Summary
With type information already able to be queried from the interpreter, all that remains is to integrate it with the language server so that requests can be serviced properly.
Value
The language server can provide type information to its clients, allowing Enso Studio's graph to display type information using the colours of nodes and connections.
Specification
The language server needs to be able to provide type information for given symbols in the program.

This type information should be the human readable type of the value.
It should be able to be requested as a one-shot request.
It should also be able to be subscribed to as a stream, where an update should be sent every time the type changes.

Acceptance Criteria & Test Cases

The language server is capable of responding to requests for type information with real data.

Superseded by a new plan.


Add accessible teal colour

Add a new accessible colour to be used for:

inputs (input fields, radio, checkbox, dropdown)
scrollable area
progress bar
brand card
icons
carousel icons
brand alert icon
spinner

Rename:
old brand => brandDecorative
Decorative elements (e.g. decorative icons) will also use new brand colour
Navbar and logo will use decorativeBrand colour

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Gym , Stable-baselines3 and Entry points dependencies compilation bug once executing script.

Hi there,
once I execute the https://github.com/eleurent/highway-env/blob/master/scripts/sb3_highway_dqn.ipynb and executing https://github.com/eleurent/highway-env/blob/master/scripts/sb3_highway_dqn.py, I got the following error.
Some dependency upgrades introduce the error below.

gym dependency version leads to conflict.

stable-baselines3 1.6.2a0 requires gym==0.21 but we install gym 0.26.2
highway-env 1.6 requires gym>=0.25, but you have gym 0.21.0 which is incompatible.

  Attempting uninstall: gym
    Found existing installation: gym 0.21.0
    Uninstalling gym-0.21.0:
      Successfully uninstalled gym-0.21.0
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
stable-baselines3 1.6.2a0 requires gym==0.21, but you have gym 0.26.2 which is incompatible.

metadata.entry_points() bug.
Since importlib-metadata releases v5.0.0 yesterday. it removes the deprecated endpoint. That is why errors raise.
ref: https://stackoverflow.com/questions/73929564/entrypoints-object-has-no-attribute-get-digital-ocean

AttributeError                            Traceback (most recent call last)
[<ipython-input-5-30f89a9e5fae>](https://localhost:8080/#) in <module>
----> 1 import gym
      2 from gym. Wrappers import RecordVideo
      3 from stable_baselines3 import DQN
      4
      5 import highway_env

2 frames
[/usr/local/lib/python3.7/dist-packages/gym/envs/registration.py](https://localhost:8080/#) in load_env_plugins(entry_point)
    248 def load_env_plugins(entry_point="gym.envs"):
    249     # Load third-party environments
--> 250     for plugin in metadata.entry_points().get(entry_point, []):
    251         # Python 3.8 doesn't support plugin.module, plugin.attr
    252         # So we'll have to try and parse this ourselves

AttributeError: 'EntryPoints' object has no attribute 'get'

Proposed solution: fix the dependency version if necessary.
Much appreciate your help in advance.

Yes absolutely, stable-baselines3 does not currently support gym0.26 (I believe they have an ongoing PR for that, its WIP). So if you want to use stable-baselines3, you need to use a version of highway-env compatible with the previous interface, so you can just install the latest stable version (release) instead of the development version.
Thanks for flagging that, I'll look into it

Thanks @eleurent,
Here is the temporary fix I am done with for the script. I manually configure the dependencies with specific versions as below.
The script works normally but it can not compatible with highway-env==1.6.
!pip install gym==0.21.0
!pip install highway-env==1.5
!pip install sb3-contrib==1.5.0
!pip install importlib-metadata==4.8.1


Create OperatingReport

Closes #102
In progress
Adds Object: OperatingReport

@jrippingale should we inherit Scope or attach Scope? I think we could inherit. The difference:
Inherit:
OperatingReport.Description, .ScopeType, .ScopeID, etc.
Attach:
OperatingReport.Scope.Description, .ScopeType, .ScopeID, etc.

Let's make sure we are consistent with how this is done everywhere else.  Also, if we inherit, then "Description" could be ambiguous...  We may need to attach due to that field...

Add EnergyACOutage

Add PerformanceIndex, Availability, Yield (requires new unit kWhr_per_kW)


On reconnect: recive only new message

I have the same problem that I had with mosca
The problem is:
On reconnect, client recive all message, also message that was already recived when client was online.
Example
CLIENT A & CLIENT B ONLINE
CLIENT A --> SEND MESSAGE 1--> CLIENT A/B REVICE MESSAGE 1
CLIENT B --> DISCONNECT
CLIENT A--> SEND MESSAGE 2--> CLIENT A REVICE MESSAGE 2
CLIENT B --> RE CONNECT --> CLIENT B RECIVE MESSAGE 1/2
But client B should recive only MESSAGE 2: correct?
This is broker Aedes code

Can you please add the client you are using for this?

I use xamarin forms with package Mqtt from xamarin.
https://pastebin.com/xDR1RNfM

This does not publish the message.
Can you create a test case with MQTT.js or mqtt-packet? thanks.

I'm not able to set a CLIENT ID so everytime I restart Subscription.js CLIEND ID change and I can't understand if function or not

I try with this 2 simple Publisher.js and Subcriber.js and if
Subscriber is not launched and Publisher send messages, when Subscriber run I recive only the last message
Publisher
var mqtt    = require('mqtt');
var client  = mqtt.connect({port: 1883, host: "localhost", clientId : "pluto"})

client.on('connect', function () {
    client.publish('presence', 'message5!', {retain: true, qa: 1});
    client.end();
});

Subscriber
var mqtt    = require('mqtt');
var client  = mqtt.connect({port: 1883, host: "localhost", clientId : "ciccio"})

client.on('connect', function () {
    client.subscribe('presence');

    client.on('message', function (topic, message) {
        console.log(message.toString());
    });
});

I don't know how to set persistance to subscription from MQTT.js so I need to subscribe client at every run

If you publish with retain, you will get the data at every subscription.
Il giorno ven 15 dic 2017 alle 12:43 Pierluigi Summo <
<EMAIL_ADDRESS>ha scritto:

I try with this 2 simple Publisher.js and Subcriber.js and if
Subscriber is not launched and Publisher send messages, when Subscriber
run I recive only the last message
Publisher
var mqtt    = require('mqtt');
var client  = mqtt.connect({port: 1883, host: "localhost", clientId : "pluto"})
client.on('connect', function () {
client.publish('presence', 'message5!', {retain: true, qa: 1});
client.end();
});
Subscriber
var mqtt    = require('mqtt');
var client  = mqtt.connect({port: 1883, host: "localhost", clientId : "ciccio"})
client.on('connect', function () {
client.subscribe('presence');
client.on('message', function (topic, message) {
    console.log(message.toString());
});

});
I don't know how to set persistance to subscription from MQTT.js so I need
to subscribe client at every run
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/mcollina/aedes/issues/175#issuecomment-351986087, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AADL468cfh_TChSFFyaD4YS1OZrQ13Klks5tAlt8gaJpZM4RCSSs
.

Retain is used for save the message in db?
But this MQTT.js situation is different.
On xamarin I do a persistent subscription and I don't do the subscription to the same topic. And I recive ALL topic message.
Here I try with

persistance TRUE --> Recive only last message  when Subscriber turn online
persistance FALSE --> Recive only last PERSISTANT message if there's any
In my case, in xamarin
subscribe with qos = 0
publish message with qos = 1 and retain = true

publish with retain false, and set the clientId to the same value

clientID?
I have only this 3 string
Connection to broker
 await emitter.ConnectAsync(new MqttClientCredentials(NickNameEntry.Text), null, false);
First value) MqttClientCredentials(NickNameEntry.Text) is ClientID
Second value) MqttLastWill=null
Third value) cleanSession = false
Subscribe to topic
await emitter.SubscribeAsync(RoomName.Text, MqttQualityOfService.AtMostOnce);
First value) topic name
Second value) QOS = 0
Send message
await emitter.PublishAsync(MessageToSend, MqttQualityOfService.AtLeastOnce, true);
First value) message in byte[ ]
Second value) QoS = 1
Third value) Retain = true
Ok, I will change retain to "false", but clientID? to false where?

clientId should be NickNameEntry.Text, but it should not change between connects.

Ok, I try always with same nickname. I use and EditorText only for test on different device, but nickname not change. So I try only change retain to false.

Now at reconnect any message will publish. It's a Qos Problem?

what do you mean?

I subscribe client with QoS = 0 and Publish with QoS = 1

You should be doing QoS 1 on both sides.

Now with retain false, QoS = 1 publish/subscribe come again all message also if I have read it when I was online

is this happening without MongoDB?

Nono mongodb is working, I search in it and subscription/outgoing/emitters exist and there are all data.

Try a) without MongoDB and b) with MQTT.js.

without mongo on xamarin and on MQTT.js doesn't recive all message, doesn't recive any message.

Very likely you are doing something wrong. I would recommend you to read about the MQTT protocol and its configuration.
https://www.hivemq.com/mqtt-client-library-encyclopedia

I have already read different thread (hivemq include). I don't think that was different
Server Aedes
var aedes = require('aedes')()
var server = require('net').createServer(aedes.handle)

var port = 1883

server.listen(port, function () {
    console.log('server listening on port', port)
})

aedes.on('clientError', function (client, err) {
    console.log('client error', client.id, err.message, err.stack)
})

aedes.on('publish', function (packet, client) {
    if (client) {
        console.log('message from client', client.id)
    }
})

aedes.on('subscribe', function (subscriptions, client) {
    if (client) {
        console.log('subscribe from client', subscriptions[0].topic, client.id);
    }
})

aedes.on('client', function (client) {
    console.log('new client', client.id)
})

Publish Client
var mqtt    = require('mqtt');
var client  = mqtt.connect({
    port: 1883,
    host: "localhost",
    clientId : "PUBLISHER",
    protocolId: 'MQIsdp',
    protocolVersion: 3})

client.on('connect', function () {
       client.publish('Chat', "Ciccio", {retain: false, qos: 1});
       client.end();
});

Subscriber
var mqtt    = require('mqtt');
var client  = mqtt.connect({
    port: 1883,
    host: "localhost",
    clientId : "SUBSCRIBER",
    protocolId: 'MQIsdp',
    protocolVersion: 3})

client.on('connect', function () {
    client.subscribe('Chat', {qos : 1});

    client.on('message', function (topic, message) {
        console.log(message.toString());
    });
});

If subscriber is online recive message without problem from publisher. If subscriber is offline and publisher publish something, on reconnect nothing will recive

you must pass clean: false to connect()
Il giorno ven 15 dic 2017 alle 19:45 Pierluigi Summo <
<EMAIL_ADDRESS>ha scritto:

I have already read different thread (hivemq include). I don't think that
was different
Server Aedes
var aedes = require('aedes')()
var server = require('net').createServer(aedes.handle)
var port = 1883
server.listen(port, function () {
console.log('server listening on port', port)
})
aedes.on('clientError', function (client, err) {
console.log('client error', client.id, err.message, err.stack)
})
aedes.on('publish', function (packet, client) {
if (client) {
console.log('message from client', client.id)
}
})
aedes.on('subscribe', function (subscriptions, client) {
if (client) {
console.log('subscribe from client', subscriptions[0].topic, client.id);
}
})
aedes.on('client', function (client) {
console.log('new client', client.id)
})
Publish Client
var mqtt    = require('mqtt');
var client  = mqtt.connect({
port: 1883,
host: "localhost",
clientId : "PUBLISHER",
protocolId: 'MQIsdp',
protocolVersion: 3})
client.on('connect', function () {
client.publish('Chat', "Ciccio", {retain: false, qos: 1});
client.end();
});
Subscriber
var mqtt    = require('mqtt');
var client  = mqtt.connect({
port: 1883,
host: "localhost",
clientId : "SUBSCRIBER",
protocolId: 'MQIsdp',
protocolVersion: 3})
client.on('connect', function () {
client.subscribe('Chat', {qos : 1});
client.on('message', function (topic, message) {
    console.log(message.toString());
});

});
If subscriber is online recive message without problem from publisher. If
subscriber is offline and publisher publish something, on reconnect nothing
will recive
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/mcollina/aedes/issues/175#issuecomment-352081693, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AADL47IhJiJOOjQ_AY_Lw3fLWJN8nspgks5tAr5cgaJpZM4RCSSs
.

Ok now work. I think is a problem of client xamarin? Possible? I try with M2MTTQ that was described in hivemq and write here :) Thanks a lot @mcollina


Load statics from md using angular serve

This is more a enhancement
When the app is running with the angular serve does not load the static content, only after runing with scully it works fine.
I think this is expected in alpha, but to improve the development of a blog or any content page based on MD it would be good to also load the statics from Angular.
Running the up with

npm run scully serve

works fine

But runing with angular

ng serve

dosn't show the static content in the markdown

I'm going to close this for now.
ng serve is using its own virtual, in-memory, file-system to serve the files for your app in development.
There is no way to access that we know of.
Then there is this issue that Scully is designed to work with actual files.
Still, we have a planned feature, where Scully watches, a single blog file, and updates it in the browser as soon as you update the markdown, (or as you rebuild the angular app)
This is planned after the first beta drop for now.

I also faced this issue now, rebuilding takes a bad development experience. The <scully-content></scully-content> will render page through location.href, maybe could generate the blog static files also in Angular assets in some way? Then it will be rendered during ng serve. Finally, thank you for building this library!


Updated 'Apoc Runner' port to aarch64, ready-to-run.

New Port for Apoc Runner
Game Information

Title: Apoc Runner
URL: https://omnitron-studios.itch.io/apoc-runner

Submission Requirements
CFW Tests
Ensure your game has been tested on all major CFWs:

[X] AmberELEC
[X] ArkOS
[X] ROCKNIX
[X] muOS
[X] Knulli

Resolution Tests
Test all major resolutions:

[X] 480x320
[X] 640x480
[X] 720x720 (RGB30)
[X] Higher resolutions (e.g., 1280x720)

File Structure

Your port should have the following structure:

apocrunner/

port.json
README.md
screenshot.jpg
cover.jpg
gameinfo.xml
Apoc Runner.sh
apocrunner/

lib/
license/
tools/
apocrunner.port
gmloader.aarch64
gmloader.json
splash.png

Additional Resources
Credit for the original port goes to mattyj513!!!
Updated Game / Port
Due to the fostering of a relationship with the developer, we have been granted permission to include the game files with this port. Developer has also created a new build (VM version, non-YYC) in the latest GM (2<IP_ADDRESS>) so this port has been updated appropriately.
Additional Game Information
https://omnitron-studios.itch.io/apoc-runner
https://justinbohemier.wixsite.com/portfolio/game-design

I guess I jumped the gun too soon on the PR. I should have waited for testing results to come in first probably. 🙃

New Binaries and overhaul to gmloader next warrants testing on the rest of the testing matrix

Everything's been tested except for 480*320 on AmberELEC.

I don't know if I have missed some stuffs in my previous review, but here are few additional change requests ;)

Not a problem what-so-ever. I am glad we are being this thorough, as it will give me a standard to use, going forward. Thanks for your attention.

I don't know if I have missed some stuffs in my previous review, but here are few additional change requests ;)

Not a problem what-so-ever. I am glad we are being this thorough, as it will give me a standard to use, going forward. Thanks for your attention.

Always happy to help :)
I think you went too far in optimizing the library folder. lib/arm64-v8a must exist and must contain libc++_shared.so, libcompiler_rt.so and libm.so
These library are provided with gmloader (https://github.com/PortsMaster/gmloader-next/tree/master/lib/arm64-v8a) and are hard linked in the load_module function. If you change the folder structure you need to rebuild gmloader ;)

So, I think I know what's going on. When I changed the libraries directory from lib to libs.aarch64 the port would no longer launch. Somehow, when I put it into the subdirectory within the APK, it somehow worked again. Reading the docs, I see it's wrong so reverted those changes back. The binaries were now back in libs.aarch64/arm64-v8a but I started getting errors again.
I have attached the log file, but I think these two lines say it all:
loader/io_util.cpp:13: Failed to stat file 'lib/arm64-v8a/libm.so'.
gmloader/main.cpp:73: Failed initializing module 'libm.so'.

I think this version of the loader is expecting them to be in lib/arm8va rather than libs.aarch64/arm8va. What am I missing here?

I believe I've addressed all of the outstanding issues.

I've  made the final two changes as indicated by Cebion.


Ready to support kotlin script parsing, parser to be implemented

I found that there is no configuration change required, just change the file suffix to .kts and the Kotlin compiler supports it.
Given the Kitlin script code like this
println("Hello, World!")

Print ktFile output from the Kotlin compiler

If parse it as a *.kt file, we can see a lot of ERROR_ELEMENT in both FIR and PSI.

------------
PSI Tree All
\---(0,24) | kotlin.FILE | KtFile | Text: "println("Hello, World!")"
    |---(0,0) | PACKAGE_DIRECTIVE | KtPackageDirective | Text: ""
    |---(0,0) | IMPORT_LIST | KtImportList | Text: ""
    |---(0,7) | ERROR_ELEMENT | PsiErrorElementImpl | Text: "println"
    |   \---(0,7) | IDENTIFIER | LeafPsiElement | Text: "println"
    |---(7,8) | ERROR_ELEMENT | PsiErrorElementImpl | Text: "("
    |   \---(7,8) | LPAR | LeafPsiElement | Text: "("
    |---(8,9) | ERROR_ELEMENT | PsiErrorElementImpl | Text: """
    |   \---(8,9) | OPEN_QUOTE | LeafPsiElement | Text: """
    |---(9,22) | ERROR_ELEMENT | PsiErrorElementImpl | Text: "Hello, World!"
    |   \---(9,22) | REGULAR_STRING_PART | LeafPsiElement | Text: "Hello, World!"
    |---(22,23) | ERROR_ELEMENT | PsiErrorElementImpl | Text: """
    |   \---(22,23) | CLOSING_QUOTE | LeafPsiElement | Text: """
    \---(23,24) | ERROR_ELEMENT | PsiErrorElementImpl | Text: ")"
        \---(23,24) | RPAR | LeafPsiElement | Text: ")"

If parse it as a *.kts file. both FIR and PSI looks good to me

------------
PSI Tree All
\---(0,24) | kotlin.FILE | KtFile | Text: "println("Hello, World!")"
    |---(0,0) | PACKAGE_DIRECTIVE | KtPackageDirective | Text: ""
    |---(0,0) | IMPORT_LIST | KtImportList | Text: ""
    \---(0,24) | SCRIPT | KtScript | Text: "println("Hello, World!")"
        \---(0,24) | BLOCK | KtBlockExpression | Text: "println("Hello, World!")"
            \---(0,24) | SCRIPT_INITIALIZER | KtScriptInitializer | Text: "println("Hello, World!")"
                \---(0,24) | CALL_EXPRESSION | KtCallExpression | Text: "println("Hello, World!")"
                    |---(0,7) | REFERENCE_EXPRESSION | KtNameReferenceExpression | Text: "println"
                    |   \---(0,7) | IDENTIFIER | LeafPsiElement | Text: "println"
                    \---(7,24) | VALUE_ARGUMENT_LIST | KtValueArgumentList | Text: "("Hello, World!")"
                        |---(7,8) | LPAR | LeafPsiElement | Text: "("
                        |---(8,23) | VALUE_ARGUMENT | KtValueArgument | Text: ""Hello, World!""
                        |   \---(8,23) | STRING_TEMPLATE | KtStringTemplateExpression | Text: ""Hello, World!""
                        |       |---(8,9) | OPEN_QUOTE | LeafPsiElement | Text: """
                        |       |---(9,22) | LITERAL_STRING_TEMPLATE_ENTRY | KtLiteralStringTemplateEntry | Text: "Hello, World!"
                        |       |   \---(9,22) | REGULAR_STRING_PART | LeafPsiElement | Text: "Hello, World!"
                        |       \---(22,23) | CLOSING_QUOTE | LeafPsiElement | Text: """
                        \---(23,24) | RPAR | LeafPsiElement | Text: ")"

following up commit to support kts parsing, https://github.com/openrewrite/rewrite-kotlin/commit/5c469e3e8f94662c5a8baf61d80008352b931589