RX_TIMEOUT error when running the Linux demo

Hi it has been a while that I am trying to connect the gimbal to a linux x86 machine running ubuntu 22.04 without success.
When I try to execute the demo code I get the following error and nothing happen:
Board Info: Receive Error: RX_TIMEOUT_ERROR
Board Info: Receive Error: RX_TIMEOUT_ERROR

******************************
Communication Error!
******************************

Board Info: Receive Error: RX_TIMEOUT_ERROR
Board Info 3: Receive Error: RX_TIMEOUT_ERROR
Main Parameters 3: Receive Error: RX_TIMEOUT_ERROR
Main Parameters Ext: Receive Error: RX_TIMEOUT_ERROR
Main Parameters Ext 2: Receive Error: RX_TIMEOUT_ERROR
Main Parameters Ext 3: Receive Error: RX_TIMEOUT_ERROR
Real-Time Data 4: Receive Error: RX_TIMEOUT_ERROR
Board Version: 0.0
Firmware Version: 0.0
Flash Size = 0
Current profile # 0
Roll P = 0
Roll I = 0
Roll D = 0
Pitch P = 0
Pitch I = 0
Pitch D = 0
Yaw P = 0
Yaw I = 0
Yaw D = 0
Acc Limiter All =  0
RC Max Angle = 0
RC Min Angle = 0
RC Map Roll = 0
RC Map Pitch = 0
RC Map Yaw = 0
RC Map Cmd = 0
RC Map FC Roll = 0
RC Map FC Pitch = 0
LPF Frequency Roll = 0
LPF Frequency Pitch = 0
LPF Frequency Yaw = 0
Frame IMU LPF Freq = 0
Timelapse Time = 0
Motor Startup Delay = 0

ACC Roll = 0
ACC Pitch = 0
ACC Yaw = 0
Roll Current Angle = 0
Pitch Current Angle = 0
Yaw Current Angle = 0
IMU Temperature = 0
CONFIRM_TIMEOUT_ERROR!
Adj Var Values vol. 1: Receive Error: RX_TIMEOUT_ERROR
ADJ_VAL_ACC_LIMITER_ROLL 0
ADJ_VAL_ACC_LIMITER_PITCH 0
ADJ_VAL_ACC_LIMITER_YAW 0

I have setted given the permission to the user to gain the access to the port so it shouldn't be  problem of permission.
Also when I try to connect to the gimbal trought GUI it is stuck in a loop :
GUI : 09:46:26,865 INFO Opened /dev/ttyUSB0 / EDT
09:46:26,968 DEBUG Protocol version set to AUTO(in), V1(out) / EDT
09:46:26,969 INFO Starting board connection.. / ConnectThread
09:46:26,969 DEBUG BoardInfo is set to null / ConnectThread
09:46:26,969 DEBUG Setting parity: 0 / ConnectThread
09:46:26,969 DEBUG OUT:[1,0] [] 0 / ConnectThread
09:46:26,980 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
09:46:27,288 DEBUG OUT:[1,0] [] 0 / ConnectThread
09:46:27,296 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
09:46:27,605 DEBUG Setting parity: 2 / ConnectThread
09:46:27,605 DEBUG OUT:[1,0] [] 0 / ConnectThread
09:46:27,612 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
09:46:27,920 DEBUG OUT:[1,0] [] 0 / ConnectThread
09:46:27,928 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
09:46:28,240 DEBUG Setting baudrate: 57600 / ConnectThread
09:46:28,241 DEBUG Setting parity: 0 / ConnectThread
09:46:28,242 DEBUG OUT:[1,0] [] 0 / ConnectThread
09:46:28,248 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
09:46:28,556 DEBUG OUT:[1,0] [] 0 / ConnectThread
09:46:28,564 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
09:46:28,876 DEBUG Setting parity: 2 / ConnectThread
09:46:28,877 DEBUG OUT:[1,0] [] 0 / ConnectThread
09:46:28,884 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
09:46:29,192 DEBUG OUT:[1,0] [] 0 / ConnectThread
......
09:46:31,405 DEBUG OUT:[1,0] [] 0 / ConnectThread
09:46:31,412 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
09:46:31,720 DEBUG OUT:[1,0] [] 0 / ConnectThread
09:46:31,728 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
09:46:32,036 DEBUG Setting baudrate: 9600 / ConnectThread
09:46:32,037 DEBUG Setting parity: 0 / ConnectThread
09:46:32,038 DEBUG OUT:[1,0] [] 0 / ConnectThread
09:46:32,044 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
09:46:32,352 DEBUG OUT:[1,0] [] 0 / ConnectThread
09:46:32,360 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
09:46:32,676 DEBUG Setting parity: 2 / ConnectThread
09:46:32,677 DEBUG OUT:[1,0] [] 0 / ConnectThread
09:46:32,684 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
09:46:32,992 DEBUG OUT:[1,0] [] 0 / ConnectThread
09:46:33,000 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
09:46:33,316 DEBUG Setting baudrate: 256000 / ConnectThread
09:46:33,317 ERROR Error configuring serial port: gnu.io.UnsupportedCommOperationException: Invalid Parameter / ConnectThread

where if I check
dmesg --follow

I get
[99483.839532] tty_set_serial: 'ConnectThread' is using deprecated serial flags (with no effect): 00008200

The gimbal should be fine as it runs properly and under Windows I can connect trought the app and see and set all the different parameters.
Any help is very welcome :)

Hello!
I haven't encountered a similar issue before. If you are confident that you have correctly assigned permissions and configured the library properly, you can try accessing the controller using raw SerialAPI commands through the terminal.
For examle try to ping a SBGC32 with the next command:
0x24, 0x45, 0x01, 0x46, 0x00, 0x35, 0x6E, 0x07
However, I still suspect that the issue lies within the port connection itself. It might be something within Linux software.

Hi, thank you very much for your time.
If I run the command from the bash
ls -l /dev/ttyUSB0 | grep "/dev/ttyUSB0"

I get the following
crwxrwxrwx 1 root dialout 188, 0 jul 17 09:20 /dev/ttyUSB0

while if I check the dialout group
getent group dialout

I get<EMAIL_ADDRESS>is my username)
<EMAIL_ADDRESS>
I then tried to create a tiny python script for sending the command you suggested
import serial
import time

# Configure the serial port
ser = serial.Serial(
    port='/dev/ttyUSB0',
    baudrate=115200
)

# Ensure the port is open
if ser.is_open:
    print("Serial port is open")

# Send the bytes
command = b'\x24\x45\x01\x46\x00\x35\x6E\x07'
ser.write(command)
print(f"Sent: {command}")

# Give the device some time to respond
time.sleep(1)

# Read the response
response = ser.read(ser.in_waiting)  # Read all available data
print(f"Response: {response}")

# Close the serial port
ser.close()

and the output from the program is and in the meanwhile nothing happen:
Serial port is open
Sent: b'$E\x01F\x005n\x07'
Response: b''

I have also tried the same code on a jetson orin nano running ubuntu 22.04, and the problem is exactly the same.
Any idea? do you think it is a linux generic problem or a might be a gimblal problem? (the weird thing is that the board works and correctly stabilize, and on windows I can connect with the SBG UI)

Hello!
Let's try to solve your problem as a regular support ticket.
Can I communicate with you via this email?
<EMAIL_ADDRESS>

Hi yes, but probably is better using<EMAIL_ADDRESS>


organize ourverse related components

purpose is we learn how we can work together and help the metaverse team if needed to use github well in proper way

where is code of the metaverse (prob on their own account)
how to build (make sure we have good build instructions)
what is there? whats not?
gather all architecture info, ...
understand what is what and what does it do
where are prio's managed? are things on github, is there account, ...
document all in a new repo called ourverse (use mdbook see books in foundation account)
make team for the ourverse (metaverse) team, give them access to this private repo and this account
we need to have admin access to their github account too

I'll update their repo today with the information needed


.cia isn't reproducing sound

For some reason, after I installed the .cia for a test play and with my max sound opened and just there was no sound, but the sounds work just fine in the 3dsx version

You need to obtain a DSP firmware binary through whatever method suits you, and put it on your SD card at the path "/3ds/dspfirm.cdc". A more automated solution may be worked out later, but for now, that's pretty much your only option.


Parse: Save and restore InFreestandingMacroArgument when delayed parsing

Closures appearing in freestanding macro arguments don't have discriminators assigned, since we don't actually emit them.
Similarly we skip recording opaque return types that appear in macro arguments, since they don't get emitted.
However this logic didn't take delayed parsing into account, which must save and restore the InFreestandingMacroArgument bit correctly.
As a result, if the freestanding macro argument contained a closure which contained a local function with a declaration that has an opaque return type, we would crash in serialization from attempting to mangle an opaque return type nested inside of a closure without a discriminator.
Fixes rdar://135445004

@swift-ci Please smoke test


Don't emit timestamps when packaging to jar

This makes the build more deterministic.
This is a continuation of the work in https://github.com/sbt/io/pull/58 , which I decided to get back into partly because Maven has been adding features to the core plugins, and it would be good to be on par :).
As discussed in https://github.com/sbt/io/pull/58, we should be careful about the risk of breaking incremental builds - I haven't found any such issues yet though. Note that this PR only affects the timestamps of entries in jars: timestamps of classes on the filesystem and the filesystem timestamp of the jar itself are not affected.
Discussing this with @eed3si9n, there could be special-purposes build configurations that (for example in order to avoid deleting/creating many files) compile classes directly into a jar rather than first to individual files. I haven't seen this configuration yet, but I suspect it wouldn't use Defaults.packageTask, but a custom Package/IO invocation. Any custom build configuration that requires non-static timestamps can pass None as the time parameter to keep the original behavior.
This PR requires https://github.com/sbt/io/pull/279

A validation involving this pull request is in progress...

The validator has checked the following projects, tested using dbuild, projects built on top of each other.

Project
Reference
Commit

sbt
pull/5233/head
sbt/sbt@c53b2b0f7472ebea21cd28d23a457a2f7e17afdf

zinc
develop
sbt/zinc@37665fc007614ec7261588fde914bc477a1b0907

io
pull/280/head
sbt/io@07c2c3017cf7cd23cd47968be79a8f8fa1fb0e2f

librarymanagement
develop
sbt/librarymanagement@574be6fb792e5dca0c7ff3668902776148584eaf

util
develop
sbt/util@098796cdff7305a4aaadea9fdbba7fb6c23ff3ed

:x: The result is: FAILED
(restart)

A validation involving this pull request is in progress...

The validator has checked the following projects, tested using dbuild, projects built on top of each other.

Project
Reference
Commit

sbt
pull/5233/head
sbt/sbt@c53b2b0f7472ebea21cd28d23a457a2f7e17afdf

zinc
develop
sbt/zinc@37665fc007614ec7261588fde914bc477a1b0907

io
develop
sbt/io@1abf2c659d79174b13db805b3baf2b497ee27643

librarymanagement
develop
sbt/librarymanagement@574be6fb792e5dca0c7ff3668902776148584eaf

util
develop
sbt/util@098796cdff7305a4aaadea9fdbba7fb6c23ff3ed

:x: The result is: FAILED
(restart)

The failure reminds of #3893 - should we reopen that one or is this different?

The failure looks unrelated. Let me restart the job.

A validation involving this pull request is in progress...

btw test test failure shows a case where one has a subproject named a and pp and a task also named pp, and suppose the cursor on the subproject a, then the task-scoped task pp / pp could parse as pp task scoped to pp subproject, and thus violating "An unspecified project axis resolves to the current project" property.

The validator has checked the following projects, tested using dbuild, projects built on top of each other.

Project
Reference
Commit

sbt
pull/5233/head
sbt/sbt@c53b2b0f7472ebea21cd28d23a457a2f7e17afdf

zinc
develop
sbt/zinc@37665fc007614ec7261588fde914bc477a1b0907

io
develop
sbt/io@1abf2c659d79174b13db805b3baf2b497ee27643

librarymanagement
develop
sbt/librarymanagement@574be6fb792e5dca0c7ff3668902776148584eaf

util
develop
sbt/util@098796cdff7305a4aaadea9fdbba7fb6c23ff3ed

:white_check_mark: The result is: SUCCESS
(restart)

A validation involving this pull request is in progress...

The validator has checked the following projects, tested using dbuild, projects built on top of each other.

Project
Reference
Commit

sbt
pull/5233/head
sbt/sbt@e1d0734dd24c6fd601bcb03ba5eeab27b03135c1

zinc
develop
sbt/zinc@37665fc007614ec7261588fde914bc477a1b0907

io
develop
sbt/io@1abf2c659d79174b13db805b3baf2b497ee27643

librarymanagement
develop
sbt/librarymanagement@574be6fb792e5dca0c7ff3668902776148584eaf

util
develop
sbt/util@098796cdff7305a4aaadea9fdbba7fb6c23ff3ed

:x: The result is: FAILED
(restart)

Any update on this?  Deterministic & reproducible build output would be highly useful, and make things like "nixification and caching of sbt projects' outputs" much simpler.

I think it just needs a new release of IO.

I forgot to mention that I published IO 1.4.0-M1 a while back - https://repo1.maven.org/maven2/org/scala-sbt/io_2.12/1.4.0-M1/

Interesting, that travis failure looks legitimate, looking into it

A validation involving this pull request is in progress...

The validator has checked the following projects, tested using dbuild, projects built on top of each other.

Project
Reference
Commit

sbt
pull/5233/head
sbt/sbt@dfa204fb2c14d3719db21fc60f378503c55fca22

zinc
develop
sbt/zinc@adc5079b90f2b432804faced0127154370d55533

io
develop
sbt/io@d3297b56297a524baf5982661170edfdb8a6823e

librarymanagement
develop
sbt/librarymanagement@574be6fb792e5dca0c7ff3668902776148584eaf

util
develop
sbt/util@098796cdff7305a4aaadea9fdbba7fb6c23ff3ed

:x: The result is: FAILED
(restart)

Closing this in favor of https://github.com/sbt/sbt/pull/5344

Thanks!


[BEAM-1441] Remove deprecated ChannelFactory

Be sure to do all of the following to help us incorporate your contribution
quickly and easily:

[ ] Make sure the PR title is formatted like:
[BEAM-<Jira issue #>] Description of pull request
[ ] Make sure tests pass via mvn clean verify. (Even better, enable
Travis-CI on your fork and ensure the whole test matrix passes).
[ ] Replace <Jira issue #> in the title with the actual Jira issue
number, if there is one.
[ ] If this contribution is large, please file an Apache
Individual Contributor License Agreement.

R: @chamikaramj PTAL

Coverage decreased (-0.01%) to 70.457% when pulling 35de3f34ee4239505a09d2d7fc5454aa12d42f0c on sb2nov:BEAM-1441-remove-iochannelfactory into f30d5b9e9db80e35c9fae4c05d2a76655922db1c on apache:master.

R: @chamikaramj PTAL

LGTM


Provide the option to Rename Column names.

This is not an issue. It's an suggestion for add as feature list for MySql module. In most of the Restful service the developer think not to return the actual table column names.
At present For this the returned object need to be Restructure with custom column names and sent as response. so, That I am posting this.

Hi! Are you not able to use the SQL "AS" operator to rename the columns? As this is a low-level driver only, you have two options to rename the columns in the resulting object:

Use your SQL to return the column names you want. This is the "AS" operator in SQL (not documented here, because documenting SQL it outside the scope of the driver).
Create a wrapper around this driver that provides the renaming functionality in JavaScript.


NavigationController has no shadow or elevation

I am using my class as NavigationController which has navigationItem.title and navigationItem.leftViews or navigationItem.rightViews. But navigationController seems like no shadow or elevation.
If i set background color of navigationController to white and if my view backgroundColor also white too then i will not able to see anything just title of navigationController only....

Try to set shadow on navigation bar of navigation controller.
class AppNavigationController: NavigationController {
  override func prepare() {
    super.prepare()
    guard let v = navigationBar as? NavigationBar else {
      return
    }

    v.depthPreset = .depth5
  }
}

@OrkhanAlikhanov thank you, that is correct. I will close this, and @SamboVisal if you have any further questions, please reopen or create a new issue.

Thank you and it works for me.. I will ask future questions soon.....


⚠ AGEG website (prod) has degraded performance

In 2afc87d, AGEG website (prod) (https://www.ageg.ca/) experienced degraded performance:

HTTP code: 200
Response time: 1857 ms

Resolved: AGEG website (prod) performance has improved in 040104a.


EIP-3770: Don't use prefix for tx and safe hash

Description
EIP-3770: Don't use prefix for tx and safe hash
Environment

Browser: Chrome
Wallet: MetaMask
Safe: matic:0xb412684F4F0B5d27cC4A4D287F42595aB3ae124D
Environment:

https://pr3015--safereact.review-safe.gnosisdev.com/(polygon)

Steps to reproduce

Add any safe
go to the history
Open tx details
Current result: The prefix is added for tx and safe hash

Expected result
EIP-3770 should be used only for addresses , not for hash
Screenshots

This was already tackled. Any reason to be back in Todo ?

I've tested and confirm that the prefix is no longer displayed in tx details. ✅


[CELEBORN-1574] Speed up unregister shuffle by batch processing

What changes were proposed in this pull request?
In order to speed up the resource releasing，this PR Unregister shuffle in batch;
Does this PR introduce any user-facing change?
No
How was this patch tested?
UT & Local cluster testing

Please take a look at this PR. Thanks!
cc @RexXiong @FMX

Thanks, merge to main(v0.6.0)


openstack neutron-server (caracal release) using calico as core_plugin returns error when creating security group rules

When using calico in neutron-server (caracal release) as a core plugin:
neutron.conf
[DEFAULT]
core_plugin = calico

there seems to be a problem when creating security group rules.
neutron-server.log
2024-09-17 10:58:05.713 1599056 INFO networking_calico.plugins.ml2.drivers.calico.mech_calico [None req-b0e2eb50-8743-43b9-a3d9-1f92938c0d1c 7d78172f8f9246d580bdc89bef2fc60b e4bd7bfd012e4bf99da4b0413e5198fe - - 4d372d87fc404b40a63e2b4d175b76db 4d372d87fc404b40a63e2b4d175b76db] security_groups_rule_updated: <neutron_lib.context.Context object at 0x7c8d10a5b430> ['3afec1e5-116e-4966-8271-02de2ceca667']
2024-09-17 10:58:05.713 1599056 INFO networking_calico.plugins.ml2.drivers.calico.mech_calico [None req-b0e2eb50-8743-43b9-a3d9-1f92938c0d1c 7d78172f8f9246d580bdc89bef2fc60b e4bd7bfd012e4bf99da4b0413e5198fe - - 4d372d87fc404b40a63e2b4d175b76db 4d372d87fc404b40a63e2b4d175b76db] Calico state already initialised for PID 1599056
2024-09-17 10:58:05.714 1599056 INFO networking_calico.plugins.ml2.drivers.calico.mech_calico [None req-b0e2eb50-8743-43b9-a3d9-1f92938c0d1c 7d78172f8f9246d580bdc89bef2fc60b e4bd7bfd012e4bf99da4b0413e5198fe - - 4d372d87fc404b40a63e2b4d175b76db 4d372d87fc404b40a63e2b4d175b76db] Updating security group IDs ['3afec1e5-116e-4966-8271-02de2ceca667']
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource [None req-b0e2eb50-8743-43b9-a3d9-1f92938c0d1c 7d78172f8f9246d580bdc89bef2fc60b e4bd7bfd012e4bf99da4b0413e5198fe - - 4d372d87fc404b40a63e2b4d175b76db 4d372d87fc404b40a63e2b4d175b76db] create failed: No details.: RuntimeError: Method <function remove_reservation at 0x7c8d125953f0> cannot be called within a transaction.
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource Traceback (most recent call last):
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource   File "/usr/lib/python3/dist-packages/neutron/api/v2/resource.py", line 98, in resource
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource     result = method(request=request, **args)
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource   File "/usr/lib/python3/dist-packages/neutron/api/v2/base.py", line 440, in create
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource     return self._create(request, body, **kwargs)
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource   File "/usr/lib/python3/dist-packages/neutron_lib/db/api.py", line 137, in wrapped
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource     with excutils.save_and_reraise_exception():
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource   File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 227, in __exit__
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource     self.force_reraise()
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource   File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 200, in force_reraise
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource     raise self.value
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource   File "/usr/lib/python3/dist-packages/neutron_lib/db/api.py", line 135, in wrapped
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource     return f(*args, **kwargs)
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource   File "/usr/lib/python3/dist-packages/oslo_db/api.py", line 144, in wrapper
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource     with excutils.save_and_reraise_exception() as ectxt:
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource   File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 227, in __exit__
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource     self.force_reraise()
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource   File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 200, in force_reraise
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource     raise self.value
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource   File "/usr/lib/python3/dist-packages/oslo_db/api.py", line 142, in wrapper
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource     return f(*args, **kwargs)
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource   File "/usr/lib/python3/dist-packages/neutron_lib/db/api.py", line 183, in wrapped
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource     with excutils.save_and_reraise_exception():
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource   File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 227, in __exit__
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource     self.force_reraise()
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource   File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 200, in force_reraise
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource     raise self.value
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource   File "/usr/lib/python3/dist-packages/neutron_lib/db/api.py", line 181, in wrapped
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource     return f(*dup_args, **dup_kwargs)
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource   File "/usr/lib/python3/dist-packages/neutron/api/v2/base.py", line 567, in _create
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource     return notify({self._resource: self._view(request.context,
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource   File "/usr/lib/python3/dist-packages/neutron/api/v2/base.py", line 507, in notify
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource     quota.QUOTAS.commit_reservation(
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource   File "/usr/lib/python3/dist-packages/neutron/quota/__init__.py", line 103, in commit_reservation
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource     self.get_driver().commit_reservation(context, reservation_id)
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource   File "/usr/lib/python3/dist-packages/neutron/db/quota/driver.py", line 271, in commit_reservation
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource     quota_api.remove_reservation(context, reservation_id,
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource   File "/usr/lib/python3/dist-packages/neutron/common/utils.py", line 724, in inner
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource     raise RuntimeError(_("Method %s cannot be called within a "
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource RuntimeError: Method <function remove_reservation at 0x7c8d125953f0> cannot be called within a transaction.
2024-09-17 10:58:05.786 1599056 ERROR neutron.api.v2.resource
2024-09-17 10:58:05.788 1599056 INFO neutron.wsgi [None req-b0e2eb50-8743-43b9-a3d9-1f92938c0d1c 7d78172f8f9246d580bdc89bef2fc60b e4bd7bfd012e4bf99da4b0413e5198fe - - 4d372d87fc404b40a63e2b4d175b76db 4d372d87fc404b40a63e2b4d175b76db] <IP_ADDRESS>,<IP_ADDRESS> "POST /v2.0/security-group-rules HTTP/1.1" status: 500  len: 344 time: 0.2229519

+--------------------------------------+-------------+-----------+-----------+------------+-----------+-----------------------+----------------------+
| ID                                   | IP Protocol | Ethertype | IP Range  | Port Range | Direction | Remote Security Group | Remote Address Group |
+--------------------------------------+-------------+-----------+-----------+------------+-----------+-----------------------+----------------------+
| 8fb5aa7a-a1e4-4f46-927e-8e5729437350 | None        | IPv4      | <IP_ADDRESS>/0 |            | egress    | None                  | None                 |
| b09b1bdc-ee3d-4086-8b70-8df02696d760 | None        | IPv6      | ::/0      |            | egress    | None                  | None                 |
+--------------------------------------+-------------+-----------+-----------+------------+-----------+-----------------------+----------------------+
root@c1:/var/log/neutron# openstack security group rule create --ingress --remote-ip <IP_ADDRESS>/0 --protocol tcp --dst-port 55 specik-test
Error while executing command: HttpException: 500, Request Failed: internal server error while processing your request.
root@c1:/var/log/neutron# openstack security group rule list specik-test
+--------------------------------------+-------------+-----------+-----------+------------+-----------+-----------------------+----------------------+
| ID                                   | IP Protocol | Ethertype | IP Range  | Port Range | Direction | Remote Security Group | Remote Address Group |
+--------------------------------------+-------------+-----------+-----------+------------+-----------+-----------------------+----------------------+
| 8fb5aa7a-a1e4-4f46-927e-8e5729437350 | None        | IPv4      | <IP_ADDRESS>/0 |            | egress    | None                  | None                 |
| a5afa681-72fa-4df3-a502-d719699d7a83 | tcp         | IPv4      | <IP_ADDRESS>/0 | 55:55      | ingress   | None                  | None                 |
| b09b1bdc-ee3d-4086-8b70-8df02696d760 | None        | IPv6      | ::/0      |            | egress    | None                  | None                 |
+--------------------------------------+-------------+-----------+-----------+------------+-----------+-----------------------+----------------------+

Although the API returns HTTP 500, the rule is created.
Expected Behavior
The security group rule should be created without an error.
Current Behavior
When creating a security group rule, the HTTP 500 is returned, but the rule is created anyway.
This behavior seems to be caused by multiple factors (changes in oslo_db, neutron, neutron_lib) in regards how it creates sessions, how the context with the session is propagated throughout the application and changes regarding the preparation for the sqlalchemy 2.0.
Openstack devstack on caracal release do not have this kind of issue with native networking. When calico is used as a core plugin, we encounter this issue.
Possible Solution
The problem seems to be coming from:
https://github.com/projectcalico/calico/blob/4ad72b7c787a714403febb2ad72c5947b94d3647/networking-calico/networking_calico/plugins/ml2/drivers/calico/mech_calico.py#L886-L896
conn_url = str(session.connection().engine.url).lower() creates a new connection with the session just to get the engine url so it can be used in this part of the code:
https://github.com/projectcalico/calico/blob/4ad72b7c787a714403febb2ad72c5947b94d3647/networking-calico/networking_calico/plugins/ml2/drivers/calico/mech_calico.py#L895-L909
However that seems to be a problem later in neutron where the is_session_active method moved from neutron to neutron_lib:

old: https://github.com/openstack/neutron/blob/19ab990dc20aaa7d4fd91fc3aad8aff9407677fb/neutron/common/utils.py#L1034-L1051
new: https://github.com/openstack/neutron-lib/blob/970c2bdebaa19c5ae63e616ba0648c8edaae2b2f/neutron_lib/db/api.py#L465-L483

With the Yoga release, where we do not see this problem, it exits this method via
    if session.autocommit:  # old behaviour, to be removed with sqlalchemy 2.0
        return session.is_active

meaning the autocommit = True and is_active = False, at least that is what I am seeing in the debugger.
With the Caracal release, situation is different, is_session_active returns True
    if getattr(session, 'autocommit', None):
        # old behaviour, to be removed with sqlalchemy 2.0
        return session.is_active
    if not session.get_transaction():
        return False
    if not session.get_transaction()._connections:
        return False
    return True

autocommit = False (seems to be related to changes in oslo_db)
is_active = True (it looks like it does not matter as long as autocommit is not True)
session.get_transaction() returns True, because there are transactions inside a session
session.get_transaction()._connections also returns True as there are connections inside of the transaction (from the calico opening a connection as mentioned earlier - it probably did not matter to this point, because it always exited the is_session_active check via the if session.autocommit: as written above).

what helped me to resolve this issue
I fixed this behavior with this in networking_calico/plugins/ml2/drivers/calico/mech_calico.py:_txn_from_context():
        if getattr(session, 'bind', None):
            conn_url = str(session.bind.url).lower()
        else:
            conn_url = str(session.connection().engine.url).lower()

Connection url can be obtained (as observed on my side in debugger) from session.bind.
        # sqlalchemy/orm/session.py
        # :param bind: An optional :class:`_engine.Engine` or
        #    :class:`_engine.Connection` to
        #    which this ``Session`` should be bound. When specified, all SQL
        #    operations performed by this session will execute via this
        #    connectable.

That means if the session already has an established bind/connection to database, we can use that instead of creating a new connection just to get the conn_url.
The fix also keeps the fallback to the old behavior in case the session.bind = None, in that case, it fallbacks and creates a new
session.connection() to get the url.
Steps to Reproduce (for bugs)

Setup Openstack Caracal release
Use calico as core_plugin for neutron-server
create new security group
create a new security group rule to the created security group

Context
This issue was found after upgrading an Openstack cluster from Yoga release to Caracal.
The security group rule is created successfully, but Neutron API returns HTTP 500. So far only encountered this issue when creating new security group rules and always when neutron tries to remove the quota reservation as seen in the log at the top of this issue.
Your Environment

Calico version: 3.28.1
Operating System and version: Ubuntu 22.04.4 LTS
Openstack version: 2024.1 (Caracal)

@nelljerram Can you please take a look?

@sp3c1k As you probably know, we don't officially support Caracal yet.  I think it will be more efficient for us to investigate this kind of issue when we take on the job as a whole of supporting Caracal.
FYI I've kicked off a PR at https://github.com/projectcalico/calico/pull/9278 to start looking at Caracal - but I can't make any promises about how quickly that will progress.


Pimp HTTP example in README

I wanted to load a sound file from an URL and had a look at the example in the README:
from io import BytesIO
import soundfile as sf
import requests

f = BytesIO()
response = requests.get('http://www.example.com/my.flac', stream=True)
for data in response.iter_content(4096):
    if data:
        f.write(data)
f.seek(0)
data, samplerate = sf.read(f)

I found out that this has a lot of shortcomings:

the URL doesn't exist
there is no meaningful exception message if the URL doesn't exist
it needs an external library (requests)
the for-loop looks very complicated for such a simple task
the if-clause within looks strange
the "stream" stuff gives false hope that PySoundFile might support streaming from file objects, which it doesn't

Point 1: I don't know a good example URL. The closest I could find are the WAV files here http://www.cs.bath.ac.uk/~rwd/cardattrit.html
Does anyone know a publicly available sound file with a nice URL?
Point 2 and 3 would be solved if we switch to the Python standard library.
The disadvantage would be that we have to take special care because the imports for Python 2 and 3 are different.
For me it would also be OK if we make the example Python-3-only.
Point 4, 5 and 6 can be avoided if we simply get the whole content (as bytes) from the HTTP library and shove it into a BytesIO.
Starting with CPython 3.5, there will be even one less copy because of an optimization in BytesIO (http://bugs.python.org/issue22003).
Here is my suggestion:
import io
import soundfile as sf
try:
    # Python 3.x
    from urllib.request import urlopen
except ImportError:
    # Python 2.x
    from urllib2 import urlopen

url = "http://www.cs.bath.ac.uk/~rwd/stereol.wav"
data, samplerate = sf.read(io.BytesIO(urlopen(url).read()))

I don't see a reason why we should need an external library for such a simple task, but just for completeness' sake, while still using requests, points 4, 5 and 6 could be avoided like this:
import requests
data, samplerate = sf.read(io.BytesIO(requests.get(url).content))

looks good.

I think I would go for the Python-3-only example ...
import io
import soundfile as sf
from urllib.request import urlopen

url = "http://www.cs.bath.ac.uk/~rwd/stereol.wav"
data, samplerate = sf.read(io.BytesIO(urlopen(url).read()))

... and add a note like "Note that this example only works with Python 3.x; for Python 2.x support, replace the third line with from urllib2 import urlopen."
I think that's nicer, right?
Any suggestions for a nice URL?

I don't think the URL matters. I like doing Python 3 only.

I added a commit (b1a58efa87df8531a615f2917d2a65dfc2853eac).
Because I couldn't find a good URL, I created one.
Any objections?
If not, let's merge!


PA_62: By clicking switch language, some labels are not localized. Done

Done #282

Please verify translation to Swedish


Property as NilClass in before_validation callback

I'm writting a simple callback to downcase a property and substitute blank spaces with underscores
class Plan < ActiveRecord::Base
  before_validation :generate_slug

 private

    def generate_slug
      self.slug = name.gsub(/ /, '_').downcase
    end
end

Weirdly enough, this throws a NoMethodError for NilClass:
NoMethodError: undefined method gsub' for nil:NilClass`
However, calling to_s fixes the issue:
def generate_slug
  self.slug = name.to_s.gsub(/ /, '_').downcase
end

Doing exactly the same in regular Rails doesn't throw this error. At this point, I haven't figured out yet what might be causing this.

I'm closing this as stale, please verify again latest versions and in case you still have issues comment back.


AnalyzeDex/ODex documentation discrepancies

In release 3.2.1 the AnalyzeDex documentation states the function returns two objects (DalvikVMFormat and Analysis), but actually it returns a (sha256 string, DalvikVMFormat, and Analysis) since it is calling down the addDex function in session.py
The same discrepancy occurs with the AnalyzeODex and addDEY.

Yes thats true. Thanks for reporting!
There were a lot of changes on many functions, which are, unfortunately, not documented correctly.


Feature/getdata by devicetype

@Tubyhes reminder for you to check when you get back
@yulrizka if you have some time to review this PR would be great, otherwise I will wait for Freek to get back

@jorishjanssen ugh, this is ugly... probably you should have just rebased your branch on develop, instead of merging develop into this one. It seems all those commit from develop have another hash, which will pollute the history...

@jorishjanssen tried to fix this, but ran into a conflict, think you should probably fix this before I review. Suggestion:

checkout develop
create new branch from develop
cherry-pick the one commit that contains your changes into the new branch (git cherry-pick 23b85e0c484c948a9e877ca404fba795f4b93e1f) (the sha-1 of your commit)
fix conflicts
push branch to github
create pull request
delete old pull request and branch


tier0 not loaded when attempting to generate Deadlock SDK.

Full disclosure: it's 1:10AM and my adhd meds are completely worn off. I wanna mod Deadlock because I think that sounds funny and my autism caused me to spend hours going down rabbit holes related to Source 2. Long story short: I built the binaries, used the DEADLOCK flag, ran source2gen-loader.exe and got a folder named 'sdk', and I didn't know what to do with it, so I tried running source2gen.exe. When I did, it told me it couldn't load the module "tier0" and aborted. I dug through the source code but, frankly, I don't know enough C++ yet to fully understand what I'm even trying to do. Hell, I don't even know what I'm trying to get here. Something to be able to use the janky HL:A tools to make a crappy Deadlock mod or something, I guess. Anyways, feel free to chuck this out if it's a total bone-headed non-issue. Just thought I'd say something rather than nothing. Y'all do God's work. (oh, also.... i have no clue how to even use a generated sdk. My dumbass thinks it'll just compile magically into an exe. I highly doubt that's the intended use of this tool, now that I'm thinking about it. You know, submitting this is probably gonna be embarrassing for me in hindsight but it's better than same old same old. Yeesh, I'm gonna go to bed)

Since deadlock is still not released yet, there may be situations where it will not be added by steam to the Steam\steamapps\libraryfolders.vdf file on Windows. So you need to open it with any editor and add to it manually

As shown in the screenshot (this is just an example).
What you need to add is ‘1422450’ ‘1334’, 1334 you can change to any variable you already have, for example copy it from 730 or any other game.

Ha, what a fun story.
You don't need to launch source2gen.exe, all you need to launch is source2gen-loader and it will generate the SDK in the sdk folder, just as you said. The comment below is wrong.
As for what to do with the generated SDK - I think it's up to you as we're only providing tool for generating these SDKs.
I would recommend you first get some sleep, then take your adhd meds, and then figure out what do you want to mod exactly. Please reopen this issue if you need any further help and make sure to include what's wrong exactly.

Although I must admit that, judging by the way this issue was written, I believe your adhd meds might've still been working at that time

Actually quite the other way around: those meds simply make dopamine stay in the brain for longer, increasing attention/concentration...


staged rollouts

Is your feature request related to a problem? Please describe.
I want to release a codepush to my app but I want to also control the blast radius of introducing a bug. It can be challenging as someone who's responsible for managing this process to remember to increment manually.
Describe the solution you'd like
The ability to, for example, release 10% at 8pm PST today, 50% at 8pm PST tomorrow, and 100% at 8pm the day following
Describe alternatives you've considered
I can...

manually increment via appcenter website
manually increment via cli
create a cron job that uses the cli and run this either on my server or locally
create a github action that runs to increment at appropriate times

Additional context
I will try to do this using an automated github action as that seems most sustainable, but it would be very nice (and likely more reliable) if this logic were backed into appcenter-cli.

Hi @alita-moore
Thank you for reporting this feature request and the usage details!
We will prioritize this feature according to our load and the Roadmap.
Meanwhile, let's see if anyone else is interested in this feature.

As we do not have plans to add support for this feature in the next year, I'm closing the issue.


Use os_user variable in development_environment role

For the HA RHEV env, we are using a non-root user for accessing the source cloud.

recheck

/lgtm

/lgtm

recheck

recheck


Update Website Redesign Champions

Updates champions per private session discussion in last Website Redesign meeting and Olivia's move to CommComm Emeriti (https://github.com/nodejs/community-committee/pull/290).

Merging ❤


Redefine memory layout in a future-compatible way

Memory address space should be defined such that region and CORE_ID will be in the MSBs. This definition fits all possible memory sizes without the need to redefine and it is easier for software to work with a contiguous memory space.
Possible structure:
31:30 (region) | 29:22 (CORE_ID) | 21:0 (memory offset) |

Notes:

The order between region doesn't have to be as described (e.g. replacing between region and CORE_ID is acceptable)
The number of bits in CORE_ID should be discussed (balance between number of cores and possible amount of memory)
This proposed layout assumes I and D memories are of equal size and are a power-of-2. Removing this requirement may slightly complicate software interface

New CRs for software:

MEMORY_OFFSET_BITS - number of valid bits in the memory offset (e.g. 12 in case of I+D==4K)
CORE_ID_BITS - number of bits in CORE_ID (can be hardcoded in current releases)

Are there "standard" addresses that are reserved for that we should take into consideration?
For example the global variables?
Are there standard reserved memory spaces we should try to avoid?
using the MSB [31:30]  might be ok - but I'm not sure if it has other effects and impacts I'm not aware of.
Maybe we should keep them reserve and move the "region" bits down to [21:20]?

Not really: the hardware should provide the memory space and it's up to software to partition it.
Regarding bits [31:30], I think it's better to use them if there are no problems and not waste precious address bits. One concern I can think of is how it will work with 64 bits, but that's far away.
Regarding the actual layout, it may be better to put CORE_ID in the MSBs because it's more intuitive, but on the other hand it may be more difficult to extend when we add more cores.

This makes me think maybe we should return to the original Address core location.
This is my rationale:

the "local memory" that is located physically next to the core (direct access without ring, "0" latency)
having "local offset" bits [13:0]  + [15:14] region  is the maximum expected "on-die" local memory for each core.  15/16 bits D_MEM+I_MEM -> aka 64 KB of memory. that is the maximum I can imagine we may have. (in many-core architecture  this may be close to 2-8KB)
This way when we want to add more memory space - it won't be the cores "local memory" it will be a "shared" bigger memory on the Fabric (similar to Cache L3 -> but there is no HW cache-control - its all done using SW)
having the bits [23:16] as core ID and bits [31:24] as Reserved will allow us to add more cores in the future (more than 256) and allocate as much "non-local memory" (on-die like cache L3 or even external DDR memory)

Having the core/CR region bits in the MSB - will make a lot of memory interleave which in my opinion will be confusing.

If we want to add more cores, a layout like this is what I have in mind:
REGION [31:30] | CORE_ID [29:29-C+1] | reserved | memory offset [M:0] |
Where:

C - number of bits in CORE_ID (currently 8 => 29:22)
M - number of bits in memory offset
M and C should be exposed to software via CR. They may be hardwired, of course.

Regarding shared memory, we have two bits of region but only 3 are occupied. Perhaps we can take the reserved region type and use it for shared memory access (let's call it SHARED_MEM). If I understand correctly, CORE_ID is irrelevant when we access shared memory, so we can use it as address offset bits to have a bigger address space:
[31:30] == SHARED_MEM | TYPE [29] | reserved | shared memory offset [SH_M:0]
SH_M is the number of bits in shared memory offset and should also be exposed via CR.
The TYPE bit is used to indicate whether it is memory or MMIO space. This is an optional addition if we want to have shared CR space.

This is what I had in mind:
(my origin proposal with some tweaks)
Each core has “continues” memory Space – very simple to take a core as an Embedded HW  and use it as is without spreading it to the entire memory space.

Having shared memory outside the core region can be distinguished with a bit higher from MSB. (similar to your latest proposal )
The “reserved” memory (bits [15:14]==10) may be the second layer of cores memory in the “fabric” – may be used as cores local memory but not within the cores “local-memory” in the “lotr_tile”. Accessing this memory will have a latency penalty (which we don’t have in the D_MEM region).

I see you as the SW expert – so if you think my layout is less scalable – and your latest suggestion makes more sense from the SW point of view – I’m willing to “fold” and agree with you.
But let's talk about it.


engage77-Show user organization in list

Under "Select a user" on model share page, this PR enables to show user organization.

FYI. @hannamocha  I clicked the merge button accidentally.


[Tooltip][Joy] Interactive doesn't work

fixes: https://github.com/mui/material-ui/issues/37132
Took me way too long, hopefully this is it.
The culprit is pointer-events: none;, so I delete the 2 locations where this is set. In Material UI's implementation, the tooltip is 2 layers of div, so adding pointer-events: none; to the child div is okay. mouseenter event will still be called by the parent div when mouse comes to the tooltip. In Joy UI, however, the tooltip is only a div. Adding pointer-events: none; here causes mouseenter event to not be called when the mouse enter the tooltip.

[x] I have followed (at least) the PR section of the contributing guide.

@hbjORbj please review :)

will add codesandbox in about 8 hours

@siriwatknp I've changed the code based on your feedback and have prepared a codesandbox: here


No module named 'PIL'

Following the lecture, when I uploaded an image to s3 bucket using the CLI, I check the cloudwatch for the logs and noticed that there was a runtime error related to PIL module not being found:
[ERROR] Runtime.ImportModuleError: Unable to import module 'index': No module named 'PIL'
and scanning the dynamodb did not return any item.

As mentioned in the stream, you had to get the Pillow library for the reklayer to work. The instructions are also in the README doc.

@SanazME you can use this zip file.
pillow.zip

Hey @piedpiper-ff4084 I included the extracted zip of your pillow attachment, thanks for including that here.
After a fresh "cdk snyth"and "cdk deploy" I still get "Unable to import module 'index': No module named 'PIL'.
Is there still something I'm perhaps missing?

Hi @IAM-DBro,
hmm... I have the same reklayer file structure.
Can you try doing a clean up and then redeploying the app?
aws s3 rm --recursive s3://{imageBucket} cdk destroy
npm install cdk deploy

Hey @piedpiper-ff4084 thanks for getting back to me so quickly.
The output is quite large from cdk synth is there a suitable way to show you its results?
I'm running through cleanup and re-deploy now but have done so a few times.
Do I need the re-sized bucket component in place or the service lambda in place yet? I see them in the main codebase but I know week 1 hasn't gone over it yet.

Hey @IAM-DBro,
The re-sized bucket component should be created as part of the stack during the deployment.

I've my own github which has all latest changes if that's easier.
https://github.com/DarrenBro/modernApp-AWS-CDK
I don't see the re-size bucket after cdk deploy.
One 1 bucket that takes the image and 1 dynamo db.

Hey @IAM-DBro,
I checked out your code and you are missing the creation of the lambda layer. This is why you are unable to import the PIL library when your rekognitionlambda is executed.
See here:
https://github.com/aws-samples/aws-dev-hour-backend/blob/main/lib/awsdevhour-stack.ts#L46
Also you need to add the lambda layer to your rekognitionlambda.
See here:
https://github.com/aws-samples/aws-dev-hour-backend/blob/main/lib/awsdevhour-stack.ts#L62
After you make these changes to your CdkMainStack.ts file then try redeploying again.

Worked a treat thanks so much!

I've honoured you in my comments and soon commit message.

Thanks! Glad I could help @IAM-DBro.


Honor A Nurse Email

Digital component to print mailing for CU Anschutz Annual Giving on behalf of College of Nursing.

[ ] Build email
[ ] Get Approval for V1
[ ] Approval for V2
[ ] Build out campaign & report
[ ] Create and run data extension
[ ] Final approval from Anschutz and Georgia
[ ] OCT 17th: Official send date


Lifting error when an intrinsic returns two values and both get used later

Version and Platform (required):

Binary Ninja Version: 4.3.6594-dev Personal (c7f7c5e4)
OS: macOS Sonoma
OS Version: 14.6.1
CPU Architecture: M1

Bug Description:
For x86/x64 binaries, the rdtsc instruction isn't lifted very nicely, and produces hard to read HLIL.
For this assembly:
00000000  0f31               rdtsc
00000002  89c7               mov     edi, eax
00000004  48c1e220           shl     rdx, 0x20
00000008  4809d7             or      rdi, rdx
0000000b  4889f8             mov     rax, rdi
0000000e  c3                 retn     {__return_addr}

This HLIL is produced:
00000000        int0_t tsc
00000000        int32_t temp0
00000000        temp0, temp0 = _rdtsc(tsc)
0000000e        int32_t temp1
0000000e        return zx.q(temp0) | zx.q(temp1) << 0x20

I would say there are 3 issues with this code:

Unnecessary tsc variable/argument, adds a line that just clutters output. This issue is already reported in #4032.
temp0/temp1 are meant to represent eax/edx, but output makes it seem like only temp0 is assigned to by the rdtsc call and temp1 is just some uninitialized variable. Should probably be temp0, temp1 = _rdtsc()
The output is overly verbose, it would be nicer if the output of _rdtsc was just a single 64-bit variable and the HLIL was simply return _rdtsc()

For comparison, here is the IDA pseudo-code for the same function:
unsigned __int64 sub_0()
{
  return __rdtsc();
}

Steps To Reproduce:

Create new empty window in Binary Ninja using Ctrl+N
Paste following assembly from raw hex: 0f3189c748c1e2204809d74889f8c3
Create x64 function
Observe HLIL

Expected Behavior:
Ideally, the HLIL would just be return _rdtsc().

I am repurposing this issue specifically to track the analysis issue in the second bulletin. 1) already has its own issue, and 3) would not be possible before we have the infrastructure for https://github.com/Vector35/binaryninja-api/issues/3349. I have also added a comment there suggesting the case of rdtsc in addition to functions like strcmp

Looking at the LLIL and LLIL (SSA), it seems that we somehow screw it up when we do the LLIL SSA:

MLIL for completeness:

I made a local fix that produces the following output:
sub_0:
   0 @ 00000000  int0_t tsc
   1 @ 00000000  int32_t temp0
   2 @ 00000000  int32_t temp1
   3 @ 00000000  temp0, temp1 = _rdtsc(tsc)
   4 @ 0000000e  return zx.q(temp0) | zx.q(temp1) << 0x20

While this is semantically correct and serves as an acceptable fix. Though I am not sure the usage of the temporary variables is the best. Currently, for the rdtsc instruction, we generate the following LLIL(SSA):
   0 @ 00000000  temp0#1, temp1#1 = _rdtsc(tsc#0)
   1 @ 00000000  rax#1 = zx.q(temp0#1.d)
   2 @ 00000000  rdx#1 = zx.q(temp1#1.d)

I am wondering if it can be changed to something like:
   0 @ 00000000  rax#1.eax, rdx#1.edx = _rdtsc(tsc#0)
   1 @ 00000000  rax#2 = zx.q(rax#1.eax)
   2 @ 00000000  rdx#2 = zx.q(rdx#1.edx)

Unfortunately, the no. 1 and 2 instruction are necessary, otherwise, the semantic of the lifting is wrong (it only rights the low bits of rax, but do not clear the high bits)


Power Apps

[Enter feedback here]

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

ID: 5620a24a-1a1d-979e-f585-c50bfb688d46
Version Independent ID: f4d80828-ebab-abfe-7067-d17809eb9ed5
Content: Create a canvas app from scratch using Common Data Service - Power Apps
Content Source: powerapps-docs/maker/canvas-apps/data-platform-create-app-scratch.md
Service: powerapps
GitHub Login: @tapanm-MSFT
Microsoft Alias: tapanm

Microsoft PowerApps documentation

Low code platform


DestinationRule to Kubernetes API Service is not respected

Bug description
I have a cluster where mTLS is turned on globally using the following PeerAuthentication rule.
apiVersion: "security.istio.io/v1beta1"
kind: "PeerAuthentication"
metadata:
  name: "default"
  namespace: "istio-system"
spec:
  mtls:
    mode: STRICT

When I deploy the Prometheus setup (detailed in "Steps to reproduce the bug" below) along with the DISABLE DestinationRule for kubernetes.default.svc.cluster.local, I keep getting the connection refused error when Prometheus tries to talk to the Kubernetes API server.
Affected product area (please put an X in all that apply)
[x] Docs
[ ] Installation
[x] Networking
[ ] Performance and Scalability
[ ] Extensions and Telemetry
[x] Security
[ ] Test and Release
[x] User Experience
[ ] Developer Infrastructure
[ ] Upgrade
Expected behavior
Calls to https://kubernetes.default.svc.cluster.local / https://<IP_ADDRESS>:443 should succeed.
Steps to reproduce the bug
Deploy the following setup.
apiVersion: v1
kind: Namespace
metadata:
  name: faas
  labels:
    role: faas-system
    access: faas-system
    istio-injection: enabled
---
apiVersion: v1
kind: Namespace
metadata:
  name: faas-fn
  labels:
    istio-injection: enabled
    role: faas-fn
---
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
  name: faas-psp
  annotations:
    seccomp.security.alpha.kubernetes.io/allowedProfileNames: '*'
spec:
  privileged: false
  hostIPC: false
  hostNetwork: false
  hostPID: false
  readOnlyRootFilesystem: false
  allowPrivilegeEscalation: false
  allowedCapabilities:
    - NET_ADMIN
    - NET_RAW
  fsGroup:
    rule: RunAsAny
  hostPorts:
    - max: 65535
      min: 1
  runAsUser:
    rule: RunAsAny
  seLinux:
    rule: RunAsAny
  supplementalGroups:
    rule: RunAsAny
  volumes:
    - '*'
---
apiVersion: v1
kind: ServiceAccount
metadata:
  name: faas-prometheus
  namespace: "faas"
---
kind: ConfigMap
apiVersion: v1
metadata:
  name: alertmanager-config
  namespace: "faas"
data:
  alertmanager.yml: |
    route:
      group_by: ['alertname', 'cluster', 'service']
      group_wait: 5s
      group_interval: 10s
      repeat_interval: 30s
      receiver: scale-up
      routes:
      - match:
          service: gateway
          receiver: scale-up
          severity: major

    inhibit_rules:
    - source_match:
        severity: 'critical'
      target_match:
        severity: 'warning'
      equal: ['alertname', 'cluster', 'service']

    receivers:
    - name: 'scale-up'
      webhook_configs:
        - url: http://gateway.faas:8080/system/alert
          send_resolved: true
          http_config:
            basic_auth:
              username: admin
              password_file: /var/secrets/basic-auth-password
---
kind: ConfigMap
apiVersion: v1
metadata:
  name: prometheus-config
  namespace: "faas"
data:
  prometheus.yml: |
    global:
      scrape_interval:     15s
      evaluation_interval: 15s
      external_labels:
          monitor: 'faas-monitor'

    rule_files:
        - 'alert.rules.yml'

    scrape_configs:
      - job_name: 'prometheus'
        scrape_interval: 5s
        static_configs:
          - targets: ['localhost:9090']

      - job_name: 'kubernetes-pods'
        scrape_interval: 5s
        honor_labels: false
        kubernetes_sd_configs:
          - role: pod
            namespaces:
              names:
                - faas
                - faas-fn
        relabel_configs:
        - action: labelmap
          regex: __meta_kubernetes_pod_label_(.+)
        - source_labels: [__meta_kubernetes_namespace]
          action: replace
          target_label: kubernetes_namespace
        - source_labels: [__meta_kubernetes_pod_name]
          action: replace
          target_label: kubernetes_pod_name
        - source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape]
          action: keep
          regex: true
        - source_labels: [__address__, __meta_kubernetes_pod_annotation_prometheus_io_port]
          action: replace
          regex: ([^:]+)(?::\d+)?;(\d+)
          replacement: $1:$2
          target_label: __address__

    alerting:
      alertmanagers:
      - static_configs:
        - targets:
          - alertmanager:9093

  alert.rules.yml: |
    groups:
      - name: faas
        rules:
        - alert: service_down
          expr: up == 0
        - alert: APIHighInvocationRate
          expr: sum(rate(gateway_function_invocation_total{code="200"}[10s])) BY (function_name) > 5
          for: 5s
          labels:
            service: gateway
            severity: major
          annotations:
            description: High invocation total on "{{$labels.function_name}}"
            summary: High invocation total on "{{$labels.function_name}}"
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: faas-prometheus
rules:
- apiGroups: [""]
  resources:
    - services
    - endpoints
    - pods
  verbs: ["get", "list", "watch"]
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: faas-psp
rules:
  - apiGroups: ['policy']
    resources: ['podsecuritypolicies']
    verbs:     ['use']
    resourceNames:
      - faas-psp
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
  name: faas-prometheus
  namespace: "faas"
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: faas-prometheus
subjects:
- kind: ServiceAccount
  name: faas-prometheus
  namespace: "faas"
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
  name: faas-prometheus
  namespace: "faas-fn"
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: faas-prometheus
subjects:
- kind: ServiceAccount
  name: faas-prometheus
  namespace: "faas"
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
  name: faas-psp
  namespace: "faas"
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: faas-psp
subjects:
  - apiGroup: rbac.authorization.k8s.io
    kind: Group
    name: system:serviceaccounts:faas
    namespace: faas
---
apiVersion: v1
kind: Service
metadata:
  name: prometheus
  namespace: "faas"
spec:
  type: ClusterIP
  ports:
    - port: 9090
      protocol: TCP
  selector:
    app: prometheus
---
apiVersion: v1
kind: Service
metadata:
  name: alertmanager
  namespace: "faas"
spec:
  type: ClusterIP
  ports:
    - port: 9093
      protocol: TCP
  selector:
    app: alertmanager
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: prometheus
  namespace: "faas"
spec:
  replicas: 1
  selector:
    matchLabels:
      app: prometheus
  template:
    metadata:
      labels:
        app: prometheus
      annotations:
        checksum/prometheus-config: "833784fe79824d5a9adfaf93561abc4dabbf746669235c5ac020e85a9a563510"
    spec:
      serviceAccountName: faas-prometheus
      containers:
      - name: prometheus
        image: prom/prometheus:v2.11.0
        command:
          - "prometheus"
          - "--config.file=/etc/prometheus/prometheus.yml"
        imagePullPolicy: Always
        livenessProbe:
          httpGet:
            path: /-/healthy
            port: 9090
          timeoutSeconds: 30
        readinessProbe:
          httpGet:
            path: /-/healthy
            port: 9090
          timeoutSeconds: 30
        ports:
        - containerPort: 9090
          protocol: TCP
        volumeMounts:
        - mountPath: /etc/prometheus/prometheus.yml
          name: prometheus-config
          subPath: prometheus.yml
        - mountPath: /etc/prometheus/alert.rules.yml
          name: prometheus-config
          subPath: alert.rules.yml
        - mountPath: /prometheus/data
          name: prom-data
      volumes:
        - name: prometheus-config
          configMap:
            name: prometheus-config
            items:
              - key: prometheus.yml
                path: prometheus.yml
                mode: 0644
              - key: alert.rules.yml
                path: alert.rules.yml
                mode: 0644
        - name: prom-data
          emptyDir: {}
      tolerations:
        - effect: NoSchedule
          key: kubernetes.azure.com/scalesetpriority
          operator: Equal
          value: spot
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: alertmanager
  namespace: "faas"
spec:
  replicas: 1
  selector:
    matchLabels:
      app: alertmanager
  template:
    metadata:
      labels:
        app: alertmanager
      annotations:
        checksum/alertmanager-config: "d11068803eeb977273e116dc044c25fb39b03295446b1251b7f1fbc26104ed04"
    spec:
      containers:
      - name: alertmanager
        image: prom/alertmanager:v0.18.0
        imagePullPolicy: Always
        command:
          - "alertmanager"
          - "--config.file=/alertmanager.yml"
          - "--storage.path=/alertmanager"
          - "--cluster.listen-address="
        livenessProbe:
          httpGet:
            path: /-/ready
            port: 9093
          timeoutSeconds: 30
        readinessProbe:
          httpGet:
            path: /-/ready
            port: 9093
          timeoutSeconds: 30
        ports:
        - containerPort: 9093
          protocol: TCP
        volumeMounts:
        - mountPath: /alertmanager.yml
          name: alertmanager-config
          subPath: alertmanager.yml
        - name: auth
          readOnly: true
          mountPath: "/var/secrets"
      volumes:
        - name: alertmanager-config
          configMap:
            name: alertmanager-config
            items:
              - key: alertmanager.yml
                path: alertmanager.yml
                mode: 0644
        - name: auth
          secret:
            secretName: basic-auth
      tolerations:
        - effect: NoSchedule
          key: kubernetes.azure.com/scalesetpriority
          operator: Equal
          value: spot
---
apiVersion: v1
kind: Secret
metadata:
  name: basic-auth
  namespace: "faas"
data:
  basic-auth-user: "YWRtaW4="
  basic-auth-password: "dEtuRzQ5cVNqYzFP"
---
apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
  name: default
  namespace: faas
spec:
  host: "*.faas.svc.cluster.local"
  trafficPolicy:
    tls:
      mode: ISTIO_MUTUAL
---
apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
  name: default
  namespace: "faas-fn"
spec:
  host: "*.faas-fn.svc.cluster.local"
  trafficPolicy:
    tls:
      mode: ISTIO_MUTUAL
---
apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
 name: "api-server"
spec:
 host: "kubernetes.default.svc.cluster.local"
 trafficPolicy:
   tls:
     mode: DISABLE

**Version **
istioctl version --remote
client version: 1.7.4
control plane version: 1.7.1
data plane version: 1.7.1 (12 proxies)

kubectl version --short
Client Version: v1.19.2
Server Version: v1.17.11

How was Istio installed?
Rancher Istio

Do you see this continuously? I applied the config (thanks for the super easy reproducer!) and seem to get it only at immediate startup. This is looking, at least in my reproduction, like https://github.com/istio/istio/issues/11130

Thanks for the quick reply @howardjohn. I get these log entries when the POD starts up as well.
However, I am not sure how to verify if its only a transient issue and gets resolved after a while.

you can try
https://discuss.istio.io/t/how-to-hold-a-application-until-proxy-starts/8346/4?u=howardjohn
But if its just at the startup I think its likely its resolved after the
initial start?
On Mon, Nov 9, 2020 at 7:31 PM Munjal A Patel<EMAIL_ADDRESS>wrote:

Thanks for the quick reply @howardjohn https://github.com/howardjohn. I
get these log entries when the POD starts up as well.
However, I am not sure how to verify if its only a transient issue and
gets resolved after a while.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/istio/istio/issues/28727#issuecomment-724427208, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAEYGXOAWDZ4WPT4SKSXIKDSPCXZXANCNFSM4TP6ZY2A
.

Thanks, @howardjohn I did verify. It does seem like a start-up issue. I'll close this issue for now.


Feat(eos_cli_config_gen): add support for BGP asdot/asplain notation

Enhancement summary
AVD renders the BGP ASN today in the format input by the user.
If the ASN 65000.65000 is used, AVD renders:
router bgp 65000.65000

This differs from eos.
router bgp 65000.65000

sho run sec bgp
router bgp<PHONE_NUMBER>

To have the outputs consistent, we need to configure:
router bgp 65000.65000
bgp as notation asdot

router bgp 65000.65000
   bgp asn notation asdot

Which component of AVD is impacted
eos_cli_config_gen
Use case example
context may be provided by the asdot values selected, such as a site or use code, which is lost in the asplain representation.
Describe the solution you would like
Implement a new key:
bgp_asn_notation: < asplain | asdot | default -> asplain >
Implement an asdot and asplain filter.
apply the appropriate filter to the asn based on the value of the new key.
render the bgp asn notation asdot line if so configured.
Describe alternatives you have considered
No response
Additional context
No response
Contributing Guide

[X] I agree to follow this project's Code of Conduct

Good catch! And after implementing this in eos_cli_config_gen we should also auto-detect this in eos_designs under templates/base/router_bgp.

This should better be implemented as a new property of eos_design_facts, do you agree?

It depends a bit. I see two options:

Implement the new eos_designs key bgp_asn_notation which will convert the input ASN into the configured format, and set the structured_config with the converted ASN and the eos_cli_config_gen key bgp_asn_notation as required.

Read the given bgp_as and in structured_config set the eos_cli_config_gen key bgp_asn_notation accordingly.

I was thinking option 2, but re-reading your issue, it seems like you are thinking option 1.
If we convert the fact, we need to also take into account, that this ASN fact is used on remote peers as well. So how should they print out remote_as ?

I would very much like to be able to set the bgp as notation asdot across my fabric.  I find it a much more intuitive way to display the ASN, and also enables me to set the first two bytes as the Site AS, and the second 2 Bytes as the rack AS.  Is there any way to set it presently, or would it require a change?

Implement the new eos_designs key bgp_asn_notation which will convert the input ASN into the configured format, and set the "structured_config" with the converted ASN and the eos_cli_config_gen key bgp_asn_notation as required.
Read the given bgp_as and in "structured_config" set the eos_cli_config_gen key bgp_asn_notation accordingly.

A 3rd option that's a hybrid of the two above would be to implement a key bgp_asn_notation with 3 possible values. asdot and asplain would simply control the presence of bgp asn notation <format> in the config. With no logic to auto-convert ASNs into the specified notation. A 3rd value of auto (which could be the default value) would parse the switches own AS number and use it to determine the notation.
I have a working branch with the bgp_asn_notation key working for the values of asdot and asplain. I'm working on reading through the style and contribution guides to clean it up for a PR. And I don't mind adding the auto option logic or changing how it's done. I am hesitant to get into too much logic trying to parse or convert ASNs beyond the switches own AS number in the config though. There is too much potential for there to be mixed notation making it hard to be consistent.

Hi Nathan
Thank you for working on this. Can I assign this issue to you?
Feel free to submit the PR as draft as-is, so we have something to discuss from. We can help you get it to the finish line, since we are aware our contribution guide is not up to date.
Maybe you are already aware, but if our PR is for eos_cli_config_gen we will not do any auto option or any logic at all. eos_cli_config_gen should just be "translating" from the "structured config" into EOS CLI with no abstraction or logic.
Any logic like auto converting or even auto identifying the ASN should be done in eos_designs. To avoid the change being "breaking" for existing deployments, I think we need to keep the default setting "unset" (None), where we won't do anything.
Loooking forward to seeing your contribution!
BR
Claus

Thanks for the comments Claus. I'll push a draft PR this afternoon and we can go from there. I'm sure it'll need some work to bring it inline with the codebase methodology. Feel free to assign this to me as well.

For the initial implementation, I'm thinking asdot or asplain, and worry about auto assignment later


Replace Google Moderator for feature suggestions

Heads up that Google Moderator is shutting down on June 30, 2015, so the "why not suggest this feature be added" link will need some other approach.
Given the relatively-technical audience, maybe GitHub issues are sufficient? (If you're comfortable with voting being expressed as "+1" comments.)

Yeah, I'm looking into finding an alternative, will make sure I do before June 30. I don't think GitHub issues are sufficient unless there's some easy way to sort issues by amounts of +1s?

While I don't see an easy way to do what I mentioned, it does look like the github API would allow that. So with a bit of work I think this may be a pretty good solution.

A few other possibilities:

Bitbucket has issue voting. You could create a "requests-only" repository there solely for voting, just to replace Google Moderator. (Or depending on your opinion of Bitbucket, it might not be crazy to move there.)

Sort GitHub issues by most-commented might be good enough -- and requires no implementation. Sure, it would miscount "-1" as an upvote, but as a general guide for what requests have the most interest, it's pretty easy.

(There's some unofficial discussion of GitHub issue voting here -- apparently GitHub had that feature long ago. There are some options like GitPoll or ZenHub, but they're not really direct replacements for what you were doing with Moderator -- and some of them require the voters to install Chrome extensions, which seems like a non-starter.)
That said, if you're still thinking GitHub API and looking for help, I'd be happy to pitch in.

I just stumpled over http://feathub.com/
Looks nice. But maybe a bit to simplistic?

So I was able to successfully import moderator data and made http://caniuse.com/issue-list to show issues in order of votes, so closing this now. Thanks @medmunds for suggesting GitHub as a solution here, I think it should work out pretty well. :)

Nice!


batch-select

use https://github.com/pablofierro/react-drag-select/

used https://github.com/simonwep/selection


Inconsistent state in Unpark Mutex

So I'm observing crashes at runtime where FutureResult and Map will be polled multiple times, crashing.
This is occurring under moderate connection load,
But I don't see how in a multi-threaded environment you can guarantee
https://github.com/alexcrichton/futures-rs/blob/master/src/task_impl/std/unpark_mutex.rs#L127-#L129
The protocol can transition from POLLING -> REPOLLING | WAITING | COMPLETE, yet in cases where WAITING|COMPLETE happen, those errors appear to be suppressed.

I do not understand the issue you are reporting. Could you provide a repro or a clearer explanation of the issue?

Will re-open with PoC


Add previews to your readme.

Maybe screenshots or something.

@gwuah still early in development, haven't even built most of the screens yet...but will surely add the readme with detailed info soon.


ROPE supports auto deducing position_ids

Rope supports automatically inferring position ids if this parameter is not provided.

please format your code using pre-commit


Wrong Theme in Java Project Manager Setting Page

Hello Drkryz,
I discovered a problem with your theme color.
I work with VSCode on Java projects and when I launch "Configure Java Runtime" from command palette, I can't see the setting page correctly. If I restore VSCode Default Theme or set another theme VSCode work properly.
I've attached my screens below.
You can reproduce it installing Java Project Manager extension and then launching "Configure Java Runtime" in command palette meanwhile your theme color is applied:

Name: Project Manager for Java
Id: vscjava.vscode-java-dependency
Description: Manage Java projects in Visual Studio Code
Version: 0.18.8
Publisher: Microsoft
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-dependency

Thanks for your theme color!!
Good luck

Hi, thanks for your report and we apologize for the delay in responding, we are already working on a fix for this bug, and thanks again.

Hello Drkryz,
I discovered a problem with your theme color. I work with VSCode on Java projects and when I launch "Configure Java Runtime" from command palette, I can't see the setting page correctly. If I restore VSCode Default Theme or set another theme VSCode work properly. I've attached my screens below. You can reproduce it installing Java Project Manager extension and then launching "Configure Java Runtime" in command palette meanwhile your theme color is applied:

Name: Project Manager for Java
Id: vscjava.vscode-java-dependency
Description: Manage Java projects in Visual Studio Code
Version: 0.18.8
Publisher: Microsoft
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-dependency

Thanks for your theme color!! Good luck

Hello, we analyzed and corrected some things in the theme, and apparently the problem was fixed, we did all the necessary tests and there was no more problem with the extension. Thanks for the report! 🤗


Minor HL7v2IO improvements

Fix comments, HL7v2 import is supported & in GA, but not supported by HL7v2IO.
Fix unused counter.

A little bit of noisy diffs due to running spotlessApply.

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

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] 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.

GitHub Actions Tests Status (on master branch)

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

R: @pabloem


A small article about installing this project.

I installed it several days ago, met several problems. Finally I overcome them, and hope this article can help others.Besides, it is awesome!
https://zhuanlan.zhihu.com/p/88607694

Thanks @wuyudi . Hope you enjoy this plugin.
Let's add this to wiki so that I can close the issue. Seems that the main reason of failure is the dependency issue. I will elaborate on that in the wiki.


Cannot use the context manager on Lo.Loader twice?

Got an interesing case today:
from ooodev.loader.lo import Lo

def b():
    with Lo.Loader(Lo.ConnectSocket(headless=True)) as loader1:
        pass
    with Lo.Loader(Lo.ConnectSocket(headless=True)) as loader2:
        print(youpi)

b()

notice the NameError on the print line: it should be displayed but it's not. The exception is not "eaten" or magically disapearing, that's just the Python process being kind of killed around the __enter__ of loader2, so I think the NameError does not even occur.
Digging a bit, please hold the line [...]
Ohh found it, loader/lo.py:706 a raise SystemExit(1), it happens because of another exception:
ooodev/loader/lo.py(695)load_office()
-> cls._lo_inst.global_event_broadcaster.add_event_document_event_occurred(_on_global_document_event)
(Pdb)
AttributeError: 'NoneType' object has no attribute 'global_event_broadcaster'

A more verbose one could be:
def b():
    options = LoOptions(log_level=logging.DEBUG)
    with Lo.Loader(Lo.ConnectSocket(headless=True), opt=options) as loader1:
        pass
    print("-" * 80)
    with Lo.Loader(Lo.ConnectSocket(headless=True), opt=options) as loader2:
        print(youpi)

this gives:
05/10/2024 00:07:25 - DEBUG - LoInst - Root: LoInst Init
05/10/2024 00:07:25 - DEBUG - LoInst - Root: LoInst created
05/10/2024 00:07:25 - DEBUG - LoInst - Root: load_office()
05/10/2024 00:07:25 - DEBUG - LoInst - Root: on_reset() Triggering RESET
05/10/2024 00:07:25 - DEBUG - LoInst - Root: on_reset() RESET Triggered. Current Doc is None
05/10/2024 00:07:25 - DEBUG - LoInst - Root: on_office_loading() Triggering OFFICE_LOADING
05/10/2024 00:07:25 - DEBUG - LoInst - Root: on_office_loading() Triggered OFFICE_LOADING.
05/10/2024 00:07:25 - DEBUG - LoInst - Root: on_office_loaded() Triggering OFFICE_LOADED
05/10/2024 00:07:25 - DEBUG - LoInst - Root: on_office_loaded() Triggered OFFICE_LOADED
05/10/2024 00:07:25 - DEBUG - LoInst - Root: load_office() Loaded Office
05/10/2024 00:07:25 - DEBUG - LoInst - Root: Closing Office
05/10/2024 00:07:25 - DEBUG - LoInst - Root: on_office_closing() Triggering OFFICE_CLOSING
05/10/2024 00:07:25 - DEBUG - LoInst - Root: on_office_closing() Triggered OFFICE_CLOSING
05/10/2024 00:07:26 - DEBUG - LoInst - Root: on_office_closed() Triggering OFFICE_CLOSED
05/10/2024 00:07:26 - DEBUG - LoInst - Root: on_office_closed() Triggered OFFICE_CLOSED
05/10/2024 00:07:26 - DEBUG - LoInst - Root: on_reset() Triggering RESET
05/10/2024 00:07:26 - DEBUG - LoInst - Root: on_reset() RESET Triggered. Current Doc is None
--------------------------------------------------------------------------------
05/10/2024 00:07:26 - DEBUG - LoInst - Root: LoInst Init
05/10/2024 00:07:26 - DEBUG - LoInst - Root: LoInst created
05/10/2024 00:07:26 - DEBUG - LoInst - Root: load_office()
05/10/2024 00:07:26 - DEBUG - LoInst - Root: on_reset() Triggering RESET
05/10/2024 00:07:26 - DEBUG - LoInst - Root: on_reset() RESET Triggered. Current Doc is None
05/10/2024 00:07:26 - DEBUG - LoInst - Root: on_office_loading() Triggering OFFICE_LOADING
05/10/2024 00:07:26 - DEBUG - LoInst - Root: on_office_loading() Triggered OFFICE_LOADING.
/usr/lib/python3.12/subprocess.py:1127: ResourceWarning: subprocess 992727 is still running
  _warn("subprocess %s is still running" % self.pid,
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/usr/lib/python3.12/subprocess.py:1127: ResourceWarning: subprocess 992709 is still running
  _warn("subprocess %s is still running" % self.pid,
ResourceWarning: Enable tracemalloc to get the object allocation traceback

See Opening Multiple Documents in the online docs.

When I get a little more time I will try and recreate this.

Since 0.47.18 the output of this reproducer changed a bit:
$ python repro.py
05/10/2024 09:09:27 - DEBUG - LoInst - Root: LoInst Init
05/10/2024 09:09:27 - DEBUG - LoInst - Root: LoInst created
05/10/2024 09:09:27 - DEBUG - LoInst - Root: load_office()
05/10/2024 09:09:27 - DEBUG - LoInst - Root: on_reset() Triggering RESET
05/10/2024 09:09:27 - DEBUG - LoInst - Root: on_reset() RESET Triggered. Current Doc is None
05/10/2024 09:09:27 - DEBUG - LoInst - Root: on_office_loading() Triggering OFFICE_LOADING
05/10/2024 09:09:27 - DEBUG - LoInst - Root: on_office_loading() Triggered OFFICE_LOADING.
05/10/2024 09:09:27 - DEBUG - LoInst - Root: on_office_loaded() Triggering OFFICE_LOADED
05/10/2024 09:09:27 - DEBUG - LoInst - Root: on_office_loaded() Triggered OFFICE_LOADED
05/10/2024 09:09:27 - DEBUG - LoInst - Root: load_office() Loaded Office
05/10/2024 09:09:27 - DEBUG - LoInst - Root: Closing Office
05/10/2024 09:09:27 - DEBUG - LoInst - Root: on_office_closing() Triggering OFFICE_CLOSING
05/10/2024 09:09:27 - DEBUG - LoInst - Root: on_office_closing() Triggered OFFICE_CLOSING
05/10/2024 09:09:27 - DEBUG - LoInst - Root: Office terminated
05/10/2024 09:09:27 - DEBUG - LoInst - Root: Office bridge has gone!!
05/10/2024 09:09:27 - DEBUG - LoInst - Root: on_office_closed() Triggering OFFICE_CLOSED
05/10/2024 09:09:27 - DEBUG - LoInst - Root: on_office_closed() Triggered OFFICE_CLOSED
05/10/2024 09:09:27 - DEBUG - LoInst - Root: on_reset() Triggering RESET
05/10/2024 09:09:27 - DEBUG - LoInst - Root: on_reset() RESET Triggered. Current Doc is None
--------------------------------------------------------------------------------
05/10/2024 09:09:27 - DEBUG - LoInst - Root: LoInst Init
05/10/2024 09:09:27 - DEBUG - LoInst - Root: LoInst created
05/10/2024 09:09:27 - DEBUG - LoInst - Root: load_office()
05/10/2024 09:09:27 - DEBUG - LoInst - Root: on_reset() Triggering RESET
05/10/2024 09:09:27 - DEBUG - LoInst - Root: on_reset() RESET Triggered. Current Doc is None
05/10/2024 09:09:27 - DEBUG - LoInst - Root: on_office_loading() Triggering OFFICE_LOADING
05/10/2024 09:09:27 - DEBUG - LoInst - Root: on_office_loading() Triggered OFFICE_LOADING.
Warning: failed to launch javaldx - java may not function correctly
05/10/2024 09:09:27 - DEBUG - LoInst - Root: on_office_loaded() Triggering OFFICE_LOADED
05/10/2024 09:09:27 - DEBUG - LoInst - Root: Office bridge has gone!!
05/10/2024 09:09:27 - DEBUG - LoInst - Root: Office bridge has gone!!
05/10/2024 09:09:27 - DEBUG - LoInst - Root: on_office_loaded() Triggered OFFICE_LOADED
05/10/2024 09:09:27 - DEBUG - LoInst - Root: load_office() Loaded Office
/usr/lib/python3.12/subprocess.py:1127: ResourceWarning: subprocess 1005694 is still running
  _warn("subprocess %s is still running" % self.pid,
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/usr/lib/python3.12/subprocess.py:1127: ResourceWarning: subprocess 1005717 is still running
  _warn("subprocess %s is still running" % self.pid,
ResourceWarning: Enable tracemalloc to get the object allocation traceback

I am not able to reproduce this. However I did not try until I made changes that take extra steps when terminating LibreOffice. Lets see when you try the next release.


File helper doc

Not an issue with Laravel Mix but with docs.
Here (4cc6c8483f64cd614bc38eeba34f6560501bf4ba) you deleted documentation about File helper (mix-helpers.md).
But I see it's still available but as global.File not as mix.File.
Shouldn't it be in docs or it's deprecated (I hope it's not because it can be very helpful)?

People are free to use that File class if they need it, but I removed it because very few people actually will. And it's not something that I want to include as part of the main API.

Thanks. Though I think number of people that are using this class would be bigger if it was in docs as a small note at least.


Add build/deploy errors to the .powerscripts/log path for sfpowerscripts:orchestrator:build and sfpowerscripts:orchestrator:release

Describe the bug
The affected packages are currently output in the metric, but not the associated error message from the build or deploy job.
To Reproduce
Examples can be found in the metrixes or artifacts.
Expected behavior
The errors in the packages should also be available via metrix or your own log file.
Nice to Have: A json format would be desirable for a new file.
Additional context
Affected commands:
sfpowerscripts:orchestrator:build
sfpowerscripts:orchestrator:release
THX and Regards

Thanks @Rocko1204 for raising this. This is definitely in the plans and will be addressed in a future release

This is being worked upon, there will be an additional outputs folder in .sfpowerscripts which will provide various outputs in markdown which can be integrated with CI systems

Build Errors, Validation and Deployment errors are available in .sfpowerscripts/outputs folder from August23


Faster winget install

How much faster did this make it? Yao mentioned 12-16 minutes before this change.

It went down from 20 minutes to ~30 seconds in my tests.


Configure IG to do authorisation checks for RCS backend

The browser is calling out to the following endpoints:

https://rcs.dbadham-fr.forgerock.financial/api/rcs/consent/details/
https://rcs.dbadham-fr.forgerock.financial/api/rcs/consent/decision/

There is no security on these endpoints, these need to be accessed via IG. Work was done in #793 to protected the RCS UI, the same needs to be done for RCS backend.

The RCS API is only called from the browser.
All calls to it must be authenticated and authorised.
It is the PSU user make calls to the RCS API, therefore the checks are based on AM SSO Token (using the cookie). These checks are the same as the RCS UI access.
Using this method allows us to also protect calls to the RCS API from the functional tests, as these tests have the ability to do headless auth with AM and get a cookie. This removes the need for a testing backdoor (which is never a good idea)


Fix Clippy warnings, adhere Rust 2018 idioms

Includes and supersedes  #117.

Fixed formatting of the last commit.

Rebased on latest master.

I guess, in this case you could stash the commits together...

I guess, in this case you could stash the commits together...

I liked the idea of fixing one clippy lint at a time, having the commit message explain, which lint was triggered.
But if you want me to, I can squash the first 31 commits.

bors r+

@mkroening 👍

I addressed @jounathaen's concern and squashed three commits where I was fixing the same lint for different targets (Linux/macOS).

bors r+

Rebased on latest master.

bors r+


How to send notifications to a single device?

Thank you for your great plugin. Sorry if I have missing some annotations but I have not idea how to add this filter.

You could register every device with a unique tag and then send a message to the notification hub with this tag. Then only that device will receive the message. If you send without a tag every registered device will receive the message

Thank you michelmoorlag, you suggested "You could register every device with a unique tag" but I don't see any method (Register?) or AzurePushNotificationManager.Initialize where I can add the Tag. Sorry for the elementary question

@gmbertolotto After initialization you need to register the device where you can give a string array of tags: await CrossAzurePushNotification.Current.RegisterAsync(new string[]{"crossgeeks","general"});
See the documentation.

thank you again michelmoorlag, now it's all working.


Port to Huggingface

Hey SpeechT5 Team, I've been seeing some activity of speechT5 on Huggingface. But didn't really see Huggingface version of speechT5. Could you please tell me if you guys are working on porting speechT5 to Huggingface , or perhaps it's already done.
As i am planning to pretrain speechT5 and then further use it in Huggingface for other downstream tasks.

Hi, regarding SpeechT5 models, huggingface team is helping to integrate them, please see: https://github.com/huggingface/transformers/pull/18922


Make David badge green for "dependencies: none". Fix #413

This way David badges behave the same as Gemnasium.

+1

Thanks a lot for your contribution!


Allow configurable HTTPS SSL/TLS version (via app.ini)

Issue #4450 (link)
Please let me know your thoughts, best regards

I have the feeling @Unknwon might be on vacation, or otherwise engaged on some time consuming activity. Hang tight, and don’t think he is ignoring your PR. 😄

Thanks @Fastidious - I hope he's having a lovely holiday! Appreciate the update, happy to wait :)

Thank you!


Add one on one to every page in docs.

Besides Get Help, because it's redundant
Change "Next" button to purple to match styling elsewhere.

PR checklist:

[ ] Added changelog entry.


Provide way to install using pypi

Describe the bug
Being able to setup this library using pip install from git is nice, but in most organisations there will be an pypi mirror or proxy which whitelists that enable security checks. It would be really useful to be able to install from pypi and that the documentation in the README describe this use case.
Reproduction steps

pip install vsphere-automation-sdk should work
poetry add vsphere-automation-sdk should work
the README should point to that
...

Expected behavior
See above. Will add specific issues for each scenario.
Additional context
I think https://github.com/vmware/vsphere-automation-sdk-python/issues/200 is probably related to this issue

Duplicate of https://github.com/vmware/vsphere-automation-sdk-python/issues/38 and https://github.com/vmware/vsphere-automation-sdk-python/issues/326


BRB1

Use the preview tab to see the example given below. Edit the relevant information and preview the changes before submitting. You may delete these instructions.

Key
Value

ID
BRB1

Source
Vaaran Bhai Gurdas Ji

Page
28

Line
gur isKI dw gwvxw; AMimRq bwxI inJru Jrxw [

Correction
THIS ≠ THAT

PROOF (EDITION)
Image:

Correction:
guru isKI ≠ guruisKI
Proof:
Vaaran Bhai Gurdaas Ji | November 2011 | Shamsher Singh Ashok | SGPC, Sri Amritsar
Image:


Bug with LegendBox

I tried the code below with LegendBox 'on'
clear all;

f = 50;  % frequency
Vm = 10; % peak
phi = 0; % phase

% generate the signal
t = [0:0.0001:3/f];
th = 2*pi*f*t;
v = Vm*sin(th+phi);

figure;
plot(t*1E3, v);

plt = Plot();

plt.Legend={'some'};
plt.LegendBox='on';

Here the LegendBox interferes with the curve of the graph. I think it shouldn't. So for a workaround I added the line below.
plt.BoxDim=[6 5];

Now the upper portion of the figure goes outside of the monitor. So I had to reduce the size of the figure to get a hold. I tried this both with windows 7 & 8.1.

Protik,
Thanks for the bug report. By default the LegendBoxColor was 'none'; meaning, it was transparent. That is why the curve was visible. Now I changed it to white. Please download the development branch to test this. I'll merge the change to master in the next release.
As for the BoxDim problem, I could not reproduce on my Mac. Does it happen in a single monitor system or in a multi monitor system? Which version of MATLAB are you using?

The box is now white. But the legend box is still overlapping with the original curve. Can you set this up in a way so that the legend box stays out of the curve in the figure? Then one doesn't need to manually change the dimension of the box.

For the BoxDim problem I tried it for both single monitor & multi-monitor system in windows 8. It's not that much of a problem in 8. Because even when the top of the image with menus like minimize, maximize or close button is outside, if you hover over the top of the image, whole figure comes down a little bit & the menus become visible.

But for windows 7 it doesn't do that. I tested for  multi-monitor system. I'll test it for single monitor system & let you know. It seems if the BoxDim is changed, the lower left corner of the figure is fixed & Matlab increases the frame to the right & top. That's why this problem is occuring.

The box is now white. But the legend box is still overlapping with the original curve. Can you set this up in a way so that the legend box stays out of the curve in the figure? Then one doesn't need to manually change the dimension of the box.

For the BoxDim problem I tried it for both single monitor & multi-monitor system in windows 8. It's not that much of a problem in 8. Because even when the top of the image with menus like minimize, maximize or close button is outside, if you hover over the top of the image, whole figure comes down a little bit & the menus become visible.

But for windows 7 it doesn't do that. I tested for  multi-monitor system. I'll test it for single monitor system & let you know. It seems if the BoxDim is changed, the lower left corner of the figure is fixed & Matlab increases the frame to the right & top. That's why this problem is occuring.

Now I see what you are asking. One way to get a non-overlapping legend is to increase the XLim from 60. Try this in your plot:
plt.XLim = [0, 80];

Please let me know if the window problem happens in single monitor too.

Okay, I tested it for both single & multi-monitor system. I also figured out why it happens. It seems it's a common problem with Matlab in windows 7 OS. By following this link (http://www.mathworks.com/matlabcentral/answers/101277-is-it-possible-to-force-matlab-to-bring-up-figure-windows-on-the-primary-monitor-or-in-a-specific-po) I found that there is a default value for mouse position. In my case it was in the middle of the monitor. So when I increased the dimension of the box, it expanded the figure from there.
There are two possible workaround for this. One is to change the default position globally (FactoryFigurePosition) or setting it for current session (DefaultFigurePosition) while the Plot() is called. I guess it will be better if it's for only current session.

So, does this happen both in single-monitor and in multi-monitor?

Thanks for the information. It was very useful.
I think, I fixed it. Since I do not have a windows machine, I cannot test. Could you download the hotfix-5 branch and test it in both single-monitor and in multi-monitor?

In my windows 7 it's like this:

I tried the same in my windows 8. It's like below.

The scenarios are same for both single & multi monitor system. For multi monitor system it occurs at the primary monitor. It seems you need to figure out the pixel dimension of the monitor & put some intelligent ratio for positioning the image. For you convenience I'm giving some coordinates while positioning the figure at different positionas. I ran p=get(gcf, 'Position').
In my desktop having windows 7 the value for bottom left corner is (5, 48), top left corner (5, 511), top right corner (238, 284), bottom right corner (707, 47).
In my laptop having windows 8 the value for bottom left corner is (8, 47), top left corner (7, 264), top right corner (803, 264), bottom right corner (802, 46).

Very weird. The code actually gets the monitor size and try to put the figure at the middle of the monitor. Win7 is messed up.
Can you post the output of the following both for Win7 and for Win8?
set(0, 'Units', 'inch');
monitorPos = get(0,'MonitorPositions')

For win7:
monitorPos =

   13.3333         0   13.3333   10.6667
         0         0   13.3333   10.6667

For Win8
monitorPos =

         0         0   14.2292    8.0000
         0    8.0000   13.3333   10.6667

Really weird. Is it showing two monitors?

I changed the code based on the monitorPos. Could you check the hotfix-5 branch one more time?

Now working perfect. Tested both with single & multi-monitor system with Windows 7 OS.

Would you also test in Win8?

Tested for both single & multi-monitor system with Win8. Works great.
Now you can only cause the problem if the BoxDim is too high like [6 5]. I don't think one needs this big figure.

Thanks Protik. The fix is now merged to develop branch and will be available in master in the next release.


Unable to get image : needs log statement.

We see rare instances of 'unable to get image' in perceivers.  Presumealby this happens if an image is deleted after perceiver is told it needs to be annotated.

Lets log those image names (better yet if multiple maybe consider aggregating them into a set over time and reporting so users can see how many unannotatablbe images are in the system)

This is likely because there is no differentiation between openshift images and external images.  For openshift, a not found image is likely an external image and not one openshift knows about.  Looks more like a problem with the metrics than an actual problem.


Update commands.go

removed duplicate code in goSrc/srcvmCaller/iroha/commands.go: 478
Description
The file "goSrc/srcvmCaller/iroha/commands.go" had duplicate code on line 478.

Please do not commit directly to main. I'm closing this PR and instead recommend you open a PR to develop.


Support default storage when creating contracts

Users should be able to specify default values for contract storage when deploying them.
Blockers:

[ ] https://github.com/FuelLabs/fuel-specs/issues/236

add on: #239


Is there a simple way to get title, exerpt , tags etc of a markdown file that we use in github for github blog. Thanks in advance

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I am trying to do ...
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

s there a simple way to get title, exerpt , tags etc of a markdown file that we use in github for github blog. Thanks in advance

@slowbreathing, you parse the source file to get the AST using parser then create a visitor for your nodes of interest and visit the document which will descend into all nodes.
You can collect the information of interest as the nodes are visited.
See VisitorSample.java


remove namespace for meshpolicy.

remove namespace for cluster scoped resource: MeshPolicy.

Wait a minute, when did we end up with a cluster wide resource ? Is it alpha or beta ? Approved ?
This has major implications on new installer - the main point is to be able to make safe upgrades, without a global change that can bring down the entire cluster.

I would rather remove the 2 MeshPolicies from installer - and make it clear users should probably not use them, and if they do it's not installer's fault.
/hold

@costinm The meshPolicy api is still in alpha, not sure if these changes will block upgrade, I can give it a try.

I think the best option is to try to get rid of the MeshPolicy from new installer. If user wants to use them - they can, but the goal is to avoid 'cluster wide' / 'global' changes.

@morvencao: PR needs rebase.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.


Notebooks showing the distribution of white features, and ROC/accuracy curves.

Is it the correct way to send a pull request??

Please resubmit this PR without the intermediate files and hidden files.