cargo.rs problem

Hi,
i try to compile cargo.rs (from examples dir) - everything is ok, but on attempt to run app without any argument i see error
Could not match '' with any of the allowed variants: ["Build", "Clean", "Doc", "New", "Run", "Test", "Bench", "Update"]

Whats wrong?  It will tell you what parameters you can pass:
[andrew@Liger docopt] cargo clean
# output elided
[andrew@Liger docopt] cargo test
# output elided
[andrew@Liger docopt] ./target/examples/
cargo             cp                decode            hashmap           verbose_multiple
[andrew@Liger docopt] ./target/examples/cargo
Could not match '' with any of the allowed variants: ["Build", "Clean", "Doc", "New", "Run", "Test", "Bench", "Update"]
[andrew@Liger docopt] ./target/examples/cargo -h
Rust's package manager

Usage:
    cargo <command> [<args>...]
    cargo [options]

Options:
    -h, --help       Display this message
    -V, --version    Print version info and exit
    --list           List installed commands
    -v, --verbose    Use verbose output

Some common cargo commands are:
    build       Compile the current project
    clean       Remove the target directory
    doc         Build this project's and its dependencies' documentation
    new         Create a new cargo project
    run         Build and execute src/main.rs
    test        Run the tests
    bench       Run the benchmarks
    update      Update dependencies listed in Cargo.lock

See 'cargo help <command>' for more information on a specific command.
[andrew@Liger docopt] ./target/examples/cargo build
Args { arg_command: Build, arg_args: [], flag_list: false, flag_verbose: false }

The issue is that the example requires you to pass a command. The error message is unfortunately a bit cryptic.

yep, but what about to display usage text when no any command submitted?

If you make this an Option<Command>, then you can detect if it's None and print the usage. But I don't think that's Docopt's job. From Docopt's perspective, if you don't match the Command, then it's a decoding error. If you want "no command" to be valid then you need to use Option<Command>.

Thanks a lot!!!


Twitter Hashtag only Shows 1 Tweet

Im entering this #kaokajai hashtag, last month it was showing the tweets from twitter but now it is showing only one tweet, but there are many tweets on twitter with this hashtag, please help

Please check the jQuery version you are using. Please revert back to the orginal jQuery version in this pack and check.


I can't donate Russian rubles via PayPal

Google Translate (I think it good enough):

The payment initiated by you is blocked, as payments with PayPal between residents of Russia can be made only in Russian rubles. Return to the seller's website and select a payment option in Russian rubles or use a different payment method.

I've tried work-around: credit card instead of PayPal account, but I can't find Russian Federation in the countries selection:

https://www.paypal.me/etomne ok :).


[ALLUXIO-2649] add double quote. Correctly dereference JAVA and JAVA_HOME

https://alluxio.atlassian.net/browse/ALLUXIO-2649
If there is a space in JAVA_HOME, bin/alluxio and bin/alluxio-start.sh will not work.
For example, many Mac users' JAVA_HOME is:
/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home
This is usually caused by running Oracle's official upgrade patch, for example from 1.6 to 1.8. Then your JAVA_HOME will be set like that.
This is not a unusually problem.For example, elasticsearch has this issue as well:
elastic/elasticsearch#6942
changed ${JAVA} to "${JAVA}" in some scripts to correctly dereference the variable

alluxio-bot, check this please

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/14033/
Test PASSed.

Merged build finished. Test PASSed.

@jsimsa  good suggestion. Thanks for quick approval.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/14053/
Test PASSed.


feat: add undefined keyword

Great! Can you add a few tests? The ones I suggested are by no means sufficient. You should at least have tests for writing and using some basic undefined and null expressions!


fix(core): compile with module: 'Node16' to have real dynamic imports

This should still preserve compatibility with node 14, we just get a dynamic import in the compiled version, instead of the hack with eval.

Hey! I think that something is not compatible with Node14 because when I use the cli and the config loads 'async_hooks', like this:
import { AsyncLocalStorage } from 'async_hooks';
it gives error:
 Module '"async_hooks"' has no exported member 'AsyncLocalStorage'


Improve SDK detection method

The SDK detection method will now only check for the library file relevant
for the architecture of the current system.
SDK detection method will now also check the registry to see if the SDK
has been enabled (fallback to enabled state if registry access is denied).
Fixes #83

Thinking as a front-facing developer, I'd like to see the values of the registry and installation separately.  This would help with easier debugging, where with this implementation, I only get a generalised true or false.
One might argue that the SDK is only available once both of the two checks have been verified and I am assuming you have implemented it on that basis.  Regardless, the registry check may well be absorbed in the future anyway, so I am happy with this approach.

My understanding of the IsAvailable is that the method should simply inform about whether the SDK is available for use, which is true if and only if both the library exists on the system and the registry has been updated to "Enable" the SDK.

:+1:


SLF4J ClassCastException when testing with Java Jigsaw 9+

Related to Issue #2657, using the latest SLF4j with any logging implementation makes the latest stable Gradle hang.
Expected Behavior
gradle test should finish without an exception and logging one line to the console via logback/slf4j logger. If this exception is not related to Gradle and the problem lies within SLF4j, Gradle at least should not hang.
Current Behavior
gradle test fails with following exception (No-op logger and logback logger):
> Task :gl-core:test FAILED
java.lang.ClassCastException: class ch.qos.logback.classic.LoggerContext cannot be cast to class org.gradle.internal.logging.slf4j.OutputEventListenerBackedLoggerContext (ch.qos.logback.classic.LoggerContext is in module ch.qos.logback.classic of loader 'app'; org.gradle.internal.logging.slf4j.OutputEventListenerBackedLoggerContext is in unnamed module of loader java.net.URLClassLoader @42dafa95)
        at org.gradle.internal.logging.slf4j.Slf4jLoggingConfigurer.configure(Slf4jLoggingConfigurer.java:42)
        at org.gradle.internal.logging.config.LoggingSystemAdapter.startCapture(LoggingSystemAdapter.java:54)
        at org.gradle.internal.logging.services.DefaultLoggingManager$StartableLoggingSystem.start(DefaultLoggingManager.java:331)
        at org.gradle.internal.logging.services.DefaultLoggingManager.start(DefaultLoggingManager.java:80)
        at org.gradle.internal.logging.services.DefaultLoggingManager.start(DefaultLoggingManager.java:39)
        at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:83)
        at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:64)
        at worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:62)
        at worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:67)

Context
I'm trying to get unit tests to work. Running test manually in Intellij Idea works fine.
Steps to Reproduce
A sample project where gradle test fails can be found here: https://github.com/albsch/gradle-jigsaw-logging-bug
Your Environment
JDK 11 (11.ea.28-open), gradle 4.10.2, Ubuntu 18.04

Build scan URL: gradle build --scan hangs and does not finish

It works with the latest nightly build of Gradle. Didn't get that this is fixed from the referenced thread. Thanks.


🌐 Started translating to german

Description
Started translating the page to German. Only basic fields for now, more will come.
Type of Change

[ ] ✨ New feature (non-breaking change which adds functionality)
[ ] 🛠 Bug fix (non-breaking change which fixes an issue)
[ ] ❌ Breaking change (fix or feature that would cause existing functionality to change)
[ ] 🧹 Code refactor
[ ] ✅ Build configuration change
[ ] 📝 Documentation
[X] 🇺🇸 Translation
[ ] 🗑 Chore

Thank you for your help!


vm.check_and_refresh_token() suddenly throws constantly exception: {KeyError} 'intUserId'

Hyundai / Kia Connect version: newest
Python version: 3.11
Operating System: Ubuntu

vm.check_and_refresh_token() started suddenly to throw exception {KeyError} 'intUserId'
Anybody else experiencing the same?

yes, did a reinstallation but cannot logon now!

I have a similar problem since 2023-04-02 it reports: KeyError: 'redirectUrl', followed immediately with {KeyError} 'intUserId':
Traceback (most recent call last):   File "/home/pi/miniconda3/envs/kia/lib/python3.9/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 103, in login     authorization_code = self._get_authorization_code_with_redirect_url(   File "/home/pi/miniconda3/envs/kia/lib/python3.9/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 563, in _get_authorization_code_with_redirect_url     parsed_url = urlparse(response["redirectUrl"]) KeyError: 'redirectUrl'
My code has been running fine for over a year; this must originate from a change made by Kia.

additional information:
api-call https://prd.eu-ccapi.kia.com:8080/api/v1/user/signin
returns:
{
"errId": "b54cecdd-38b3-4c6f-917b-3271f6c107ac",
"errCode": "4002",
"errMsg": "Invalid parameters"
}
instead of resultset with 'redirectUrl'.

There was an update to the Kia & Hyundai app one day ago. Seems that they have changed something in the authentication process. Please wait until the maintainers of this repository will publish a fix.

Also reported here: https://github.com/Hyundai-Kia-Connect/kia_uvo/issues/618

Having the same error:
Traceback (most recent call last):
  File "/config/custom_components/kia_uvo/config_flow.py", line 159, in async_step_user
    await validate_input(self.hass, user_input)
  File "/config/custom_components/kia_uvo/config_flow.py", line 63, in validate_input
    token: Token = await hass.async_add_executor_job(
  File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.10/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 208, in login
    authorization_code = self._get_authorization_code_with_form(
  File "/usr/local/lib/python3.10/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 1242, in _get_authorization_code_with_form
    intUserId = "".join(parse_qs(parsed_url.query)["intUserId"])
KeyError: 'intUserId'

+1

Does everyone's native app work?

Yes, it works on my native app.
@cdnninja I can take a look right now, unless you want to?

My native app is working as well (EU). Same issue when reloading the integration.

Same here. Kia Connect app works fine, Home Assistant errors with "Retrying setup: Config Not Ready: 'intUserId'". EU region.

App still work but api no more :-(
Looking forward to getting news

Yes, it works on my native app.
@cdnninja I can take a look right now, unless you want to?

Go for it.  I don't have an easy way to test fixes.
@fuatakgun was also looking at this.
We think this may be the v1 apis being discontinued. This api hasn't been cutover.

For context, there are 2 ways to login:

"redirect url" / API: default, not working, not sure for how long it's been broken
form: fallback, most likely what broke today.
The form method works up to /auth/realms/eukiaidm/login-actions/required-action.
After that I'm not sure what to do.
I dumped the mobile app traffic and while it does visit this URL, it is redirected immediately to the next phase. It's not the case with the library.
Sorry, that's all I can do for today.

The initial method is working for me and some specific set uf users (long story about uvo, kia connect, account migration...). When account migration came up for some users (accounts created before 2021 - not sure about exact time) fallback option is created which is redirecting between multiple UVO servers.
I am not able to replicate the issue locally until i have access to account credentials having the problem.
Until then, please share full debug logs over email<EMAIL_ADDRESS>after redacting any sensitive information.

@fuatakgun I have now some debug logs. Will need to check what I need to strip from them before sending to you.
I looked at it a little bit, it seems like https://github.com/Hyundai-Kia-Connect/hyundai_kia_connect_api/blob/cf49b76991e65bc3285f3c8550440bb0ff2d7cf3/hyundai_kia_connect_api/KiaUvoApiEU.py#L1202 here, the response.url no longer contains intUserId.
I do not know what that page used to contain, but now it is a minified JS page.
The full response.url returned is:  https://prd.eu-ccapi.hyundai.com:8080/web/v1/user/integration/auth?&locale=en

Until then, please share full debug logs over email<EMAIL_ADDRESS>after redacting any sensitive information.

Logs sent

+1

Is it possible, that only after using the newest Hyundai Bluelink or Kia Uvo Connect App, the new API becomes activated? Because I updated the Bluelink App this weekend on an Android phone (version 2.0.9), but I did not use it yet, did no refresh and no login/logout and for me the API is still working. So now I am afraid using the Bluelink App ;-)

Is it possible, that only after using the newest Hyundai Bluelink or Kia Uvo Connect App, the new API becomes activated? Because I updated the Bluelink App this weekend on an Android phone (version 2.0.9), but I did not use it yet, did no refresh and no login/logout and for me the API is still working. So now I am afraid using the Bluelink App ;-)

Could be and I don't think so because I'm still using app version 2.0.8 (iOS) and my integrations (on HA and via bluelinky) both stopped working yesterday. App version 2.0.9 came out 2 days ago and isn't installed yet.
What struck me:

Bluelinky was able to update at 3:30 AM (4/4/2023) at the latest
HA was able to update at 20:38 (4-4-2023) at the latest

Error message from Bluelinky is as followed (removed 'client_id' and 'errId' out of precaution):
[2023-04-05 11:24:59] warn: @EuropeanBrandAuthStrategy.login: Cannot find the argument userId, please use the following url and connect from a browser. [2023-04-05 11:24:59] warn: https://prd.eu-ccapi.hyundai.com:8080/api/v1/user/oauth2/authorize?response_type=code&state=test&client_id=****&redirect_uri=https://prd.eu-ccapi.hyundai.com:8080/api/v1/user/oauth2/redirect [2023-04-05 11:24:59] error: @EuropeController.login: sign in with EuropeanBrandAuthStrategy failed with error Error: @EuropeanBrandAuthStrategy.login: Cannot find the argument userId in https://prd.eu-ccapi.hyundai.com:8080/web/v1/user/integration/auth?&locale=en.         Please use the following url and connect from a browser, it may probably ask you to "Change your password" or "Accept the new conditions"         Once done, try again.         https://prd.eu-ccapi.hyundai.com:8080/api/v1/user/oauth2/authorize?response_type=code&state=test&client_id=****&redirect_uri=https://prd.eu-ccapi.hyundai.com:8080/api/v1/user/oauth2/redirect (node:519162) UnhandledPromiseRejectionWarning: ManagedBluelinkyError: @EuropeController.login: [400] Bad Request on [POST] https://prd.eu-ccapi.hyundai.com:8080/api/v1/user/signin - {"errId":"***","errCode":"4003","errMsg":"Invalid values"}     at U (/home/pi/node_modules/bluelinky/dist/index.js:17:11700)     at ne.<anonymous> (/home/pi/node_modules/bluelinky/dist/index.js:17:39834)     at Generator.throw (<anonymous>)     at a (/home/pi/node_modules/bluelinky/dist/index.js:17:136)     at processTicksAndRejections (internal/process/task_queues.js:97:5) (node:519162) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:519162) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

@cdnninja do you remember the two posts from the guy that leaked the plans from Kia/Hyundai to change the API authentication behaviour in order to block 'non-regular' requests for the EUcc API? Could that be related?
I still have both mail notifications from his posts.
cc @fuatakgun

If someone has the fix please feel free to send a PR for bluelinky 🙏

Submitting the Login-Form now returns a 302 redirect to an url containing "user_id" and "code". I tried to use those as a replacement for the intUserId and Authcode, but both failed, so there must be some changes to the endpoints for creating the AuthCode and/or Oauth-Token.
Existing Tokens continue to work and can also be refreshed, so seems no changes there. Also Stamps still work fine and receiving ControlTokens as well.

They are removing functionality. Not sure they legally can do that here in Denmark.
Guess I have to use fiddler again to reverse engineer new logon

Could you do that? Sounds promising.
Greetings from a fellow countryman.
Lyder spændende. Håber det lykkes
/Lars

I see there's a V3.4 out, which should resolve the issue.
Executing pip install hyundai_kia_connect_api, only installs V3.3.
Any suggestion would be much appreciated.

@Danielhiversen dropped a PR that should resolve this.  Try the latest of 3.1.6.    As a note 3.3 and 3.4 never existed from what I can tell.

Any suggestion would be much appreciated.

In the mean time you can find the file KiaUvoApiEU.py on your system and replace it with the current one on Github: https://raw.githubusercontent.com/Hyundai-Kia-Connect/hyundai_kia_connect_api/master/hyundai_kia_connect_api/KiaUvoApiEU.py

I installed again the integration using the master version and I'm again able to access the car's info in home assistant. For info, I have an ioniq 5 in BE

@Danielhiversen dropped a PR that should resolve this. Try the latest of 3.1.6. As a note 3.3 and 3.4 never existed from what I can tell.

thanks, worked now, pip got me V3.1.6

@cdnninja and all other who helped to solve this bug: THANK YOU - awesome work!

Upgraded my server with latest version 3.1.6 and works again.
Thanks a lot for your prompt action.
Greatings from France.

Thanks to everyone involved.
I upgraded to 3.1.6 / latest commit, and unless I missed something, I'm still having issues.
Kia EU - account created late 2022 (I believe the creation date matters)
Method 1 (redirect URI) fails:
2023-04-08 18:00:06 laptop urllib3.connectionpool[59488] DEBUG https://prd.eu-ccapi.kia.com:8080 "POST /api/v1/user/silentsignin HTTP/1.1" 401 100
2023-04-08 18:00:06 laptop hyundai_kia_connect_api.KiaUvoApiEU[59488] DEBUG hyundai_kia_connect_api - silentsignin Response {'errId': '8dba1a60-4941-4dbd-8c45-5b3264c384be', 'errCode': '4010', 'errMsg': 'Require authentication'}
2023-04-08 18:00:06 laptop __main__[59488] ERROR generic error:
Traceback (most recent call last):
  File "/dev/python/kia_eniro_uvo/hyundai_kia_connect_api/hyundai_kia_connect_api/KiaUvoApiEU.py", line 203, in login
    authorization_code = self._get_authorization_code_with_redirect_url(
  File "/dev/python/kia_eniro_uvo/hyundai_kia_connect_api/hyundai_kia_connect_api/KiaUvoApiEU.py", line 1147, in _get_authorization_code_with_redirect_url
    parsed_url = urlparse(response["redirectUrl"])
KeyError: 'redirectUrl'

Request response:
{"errId": "594485ce-145d-4c1b-852a-3f8020cc0518", "errCode": "4003", "errMsg": "Invalid values"}

Method 2 / fallback (login form) fails with the same error:
Traceback (most recent call last):
  File "/dev/python/kia_eniro_uvo/VehicleClient.py", line 251, in loop
    self.vm.check_and_refresh_token()
  File "/dev/python/kia_eniro_uvo/hyundai_kia_connect_api/hyundai_kia_connect_api/VehicleManager.py", line 118, in check_and_refresh_token
    self.initialize()
  File "/dev/python/kia_eniro_uvo/hyundai_kia_connect_api/hyundai_kia_connect_api/VehicleManager.py", line 62, in initialize
    self.token: Token = self.api.login(self.username, self.password)
  File "/dev/python/kia_eniro_uvo/hyundai_kia_connect_api/hyundai_kia_connect_api/KiaUvoApiEU.py", line 208, in login
    authorization_code = self._get_authorization_code_with_form(
  File "/dev/python/kia_eniro_uvo/hyundai_kia_connect_api/hyundai_kia_connect_api/KiaUvoApiEU.py", line 1245, in _get_authorization_code_with_form
    parsed_url = urlparse(response["redirectUrl"])
KeyError: 'redirectUrl'

request response:
{"errId": "9fad6803-0e68-4de0-a930-9cb4d52156cd", "errCode": "4010", "errMsg": "Require authentication"}

Maybe my account is a specific case?

Can anyone with an "old" UVO account (created before 2020) test the PR above and report back?

Can anyone with an "old" UVO account (created before 2020) test the PR above and report back?
I've never used this API directly, but the main code inside the  ./tests/eu_login_test.py file runs successfully when my login details are correct and errors when they are not, so I think that means it's now working. :)

Release 3.1.7 is up! Should fix the last known bugs.

Updated to 3.1.7 buts till not working. A new error this time in code that has previously worked for over a year:
Traceback (most recent call last):
  File "/home/pi/live/kia.py", line 819, in <module>
    main()
  File "/home/pi/live/kia.py", line 806, in main
    fetch_kia('SNAPSHOT')
  File "/home/pi/live/kia.py", line 567, in fetch_kia
    fetch_kia_and_store(session_mode)
  File "/home/pi/live/kia.py", line 541, in fetch_kia_and_store
    my_vehicle = fetch_vehicle()
  File "/home/pi/live/kia.py", line 164, in fetch_vehicle
    vm.force_refresh_vehicle_state(my_vehicle)
  File "/home/pi/miniconda3/envs/kia/lib/python3.9/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 110, in force_refresh_vehicle_state
    vehicle = self.get_vehicle(vehicle_id)
  File "/home/pi/miniconda3/envs/kia/lib/python3.9/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 69, in get_vehicle
    return self.vehicles[vehicle_id]
TypeError: unhashable type: 'Vehicle'

Thank you @zulufoxtrot for your work to fix that one! This thread and the kia_uvo thread speaks to the awesome community we have here.  Great work all!

Thanks for all the great work!
It's working for me in HA (IONIQ 5, NL)
It worked after I downloaded manually the file
curl https://raw.githubusercontent.com/Hyundai-Kia-Connect/kia_uvo/master/custom_components/kia_uvo/manifest.json > manifest.json
And did a restart of HA.

Thanks for all the great work!
The (non-force) update is now working in HA after I manually downloaded the file and did a restart.
curl https://raw.githubusercontent.com/Hyundai-Kia-Connect/kia_uvo/master/custom_components/kia_uvo/manifest.json > homeassistant/custom_components/kia_uvo/manifest.json
I've got the same error as ot3 mentoined when I do a force update.
`This error originated from a custom integration.
Logger: homeassistant.core
Source: custom_components/kia_uvo/coordinator.py:159
Integration: Hyundai / Kia Connect (documentation, issues)
First occurred: 10:25:19 PM (1 occurrences)
Last logged: 10:25:19 PM
Error executing service: <ServiceCall kia_uvo.force_update (c:***)>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 1826, in catch_exceptions
await coro_or_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1845, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/config/custom_components/kia_uvo/services.py", line 49, in async_handle_force_update
await coordinator.async_force_update_all()
File "/config/custom_components/kia_uvo/coordinator.py", line 159, in async_force_update_all
await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.10/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 107, in force_refresh_all_vehicles_states
self.force_refresh_vehicle_state(vehicle_id)
File "/usr/local/lib/python3.10/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 112, in force_refresh_vehicle_state
self.api.force_refresh_vehicle_state(self.token, vehicle)
File "/usr/local/lib/python3.10/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 318, in force_refresh_vehicle_state
state = self._get_forced_vehicle_state(token, vehicle)
File "/usr/local/lib/python3.10/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 735, in _get_forced_vehicle_state
_check_response_for_errors(response)
File "/usr/local/lib/python3.10/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 108, in _check_response_for_errors
raise error_code_mappingresponse["resCode"]
hyundai_kia_connect_api.exceptions.RequestTimeoutError: Request timeout. - Request timeout.
`

Thanks for all the great work!
The (non-force) update is now working in HA after I manually downloaded the file and did a restart. curl https://raw.githubusercontent.com/Hyundai-Kia-Connect/kia_uvo/master/custom_components/kia_uvo/manifest.json > homeassistant/custom_components/kia_uvo/manifest.json
I've got the a similar error as ot3 mentioned when I do a force update.

Logger: homeassistant.core
Source: custom_components/kia_uvo/coordinator.py:159
Integration: Hyundai / Kia Connect (documentation, issues)
First occurred: 10:25:19 PM (1 occurrences)
Last logged: 10:25:19 PM

Error executing service: <ServiceCall kia_uvo.force_update (c:***)>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/core.py", line 1826, in catch_exceptions
    await coro_or_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 1845, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/config/custom_components/kia_uvo/services.py", line 49, in async_handle_force_update
    await coordinator.async_force_update_all()
  File "/config/custom_components/kia_uvo/coordinator.py", line 159, in async_force_update_all
    await self.hass.async_add_executor_job(
  File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.10/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 107, in force_refresh_all_vehicles_states
    self.force_refresh_vehicle_state(vehicle_id)
  File "/usr/local/lib/python3.10/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 112, in force_refresh_vehicle_state
    self.api.force_refresh_vehicle_state(self.token, vehicle)
  File "/usr/local/lib/python3.10/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 318, in force_refresh_vehicle_state
    state = self._get_forced_vehicle_state(token, vehicle)
  File "/usr/local/lib/python3.10/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 735, in _get_forced_vehicle_state
    _check_response_for_errors(response)
  File "/usr/local/lib/python3.10/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 108, in _check_response_for_errors
    raise error_code_mapping[response["resCode"]](response["resMsg"])
hyundai_kia_connect_api.exceptions.RequestTimeoutError: Request timeout. - Request timeout.

Others are reporting no issue on forced up on the home assistant side could you retry?  Timeout makes it look temporary.

@ot3
vm.force_refresh_vehicle_state(my_vehicle) expects a string with the vehicle ID.
Looking at the commit history, this function used to expect a Vehicle object, but was changed in January 2023.
You were probably using an older version of the library, which would explain why it worked until you upgraded.
Just replace my_vehicle with my_vehicle.id and you should be good.
@paulschermers yup that sounds like a communication issue between the server and the car. Happens from time to time. Just try again later.
Closing this issue since all login problems seem fixed. :)

@zulufoxtrot: Spot on; that fixed it. Many thanks to you and others in the community to release a fix.


Improve versatility of Contours

Currently, Contour elements accept a single level value, assigning all the contained contour paths to that level. For multiple levels, you need to overlay multiple contours.
The suggestion here is to allow Contours to support a value dimension such that each point along a contour is associated with a value. As setting a value for each point is awkward and memory efficient in the case of iso-contours, there will be two ways of specifying contours:

Explicit values using  a collection of (x,y,value) triples.
By a single value and a path of (x,y) points. This specifies that all the points have the one specified value. This is similar to the current behavior and avoids wasting memory with redundant values compared to the equivalent in the first format.

There are a few more possible niceties that we have discussed:

Contours could be used even without specifying values by automatically assigning a value if not supplied. The simplest approach is a simple integer counter - the first path added could have a level value of 0, the second could have a value of 1 etc. This would allow a collection of (x,y) paths to be passed to Contours where they will render with different colors (see #100).
The explicit format of a value per point would allow some nice visualizations we cannot do now, namely the ability to change color along a path. See this matplotlib page for examples of the sort of effect that would become possible.

Note that for now, I am only considering a single value dimension but you can imagine support multi-dimensional values along a contour as well (a possible future extension).
One other thing to note is that in the explicit format, we relax the notion of a contour from necessarily being an iso contour but I think this is ok as iso-contours will still be the common and easy case.

In https://github.com/ioam/holoviews/issues/100 I asked for the behaviour that is now implemented in hv.Path((x,y)) and I happily changed all my Contour plots to Path's.
Although now I discovered why I was using Contour instead of Path. I use an Overlay of an Image and Contour, such that I can use .select(), unfortunately Path doesn't have the same number of key_dimensions as Image.
Considering the speeds with which you guys implemented the multiple curve plotting with hv.Path((x,y)), could you also do this for Contours?

unfortunately Path doesn't have the same number of key_dimensions as Image.

How did you get that idea? Path and Contours are largely identical, both have two key_dimensions and both should accept the new (x, y) signature. In this issue we're proposing changing the behavior of Contours to allow more complex behaviors, so it's probably not what you want to use. What happens if you just use Path? It should just work!

Ah, my bad, I did something stupid... All works fine.

Great, thanks.

There are a few more notes I want to make about Contours, namely that even with this proposal, Contours aren't easily interchanged with other elements (including Tables).
The main issue is that if you tabulate a contours object, there is no way to recover the original contour lines. This is because

Tables columns are lexically sorted.
You have no idea what the point ordering is along a path.
Even then, you don't know if points are connected along the same continuous path or not.

This means Contours actually need four key dimensions and one value dimension!
contours[<path numbers>, <point numbers>, <x-range>, <y-range>]

This would then be an example of an Element with key-dimensions that aren't completely independent: if you select a particular point, that constrains the x and y positions completely. Although unusual, I think everything would still work.
The path numbers and point numbers would not need to be store explicitly as they can be easily computed from the data supplied in the constructor. The .data attribute would then be a property to compute all the necessary information which would then allow conversion to a tabular format.
This approach also suggests Path could be like Points with only four key dimensions instead of two (and no value dimensions) whereas Contours would be the same with a value dimension. The .data of Path would be an Nx4 array and the .data of Contours should have a shape of Nx5.

So this was a long time coming but this is finally done.


Thanks

Nice. Thanks

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

ID: 69c7a5b0-75bd-3ba7-1fac-7557b790d511
Version Independent ID: b89aefeb-6cc8-4874-e514-7a1428611c8c
Content: Getting data - Power BI
Content Source: powerbi-docs/guided-learning/gettingdata.yml
Service: powerbi
GitHub Login: @davidiseminger
Microsoft Alias: davidi

@jeetsharma78 Thanks so much for contacting us! We appreciate the feedback. The author of this article is away on vacation. When he returns, he should respond to this thread. Thanks!


Downlink packet scheduled at 915 Frequency while configured for EU868

When a confirmed uplink packet from a device in the production console is received by the light-gateway the downlink packet is dropped by the gateway. ERROR: Packet REJECTED, unsupported frequency - 920900024 (min:863000000,max:870000000).
As a result, OTAA and downlink messages fail when the light-gateway is on.
Hard- and software

RAK7258
helium-gateway-v1.0.0-alpha.13-ramips_24kec.ipk

log
Thu Aug  5 10:29:16 2021 daemon.info helium_gateway[28881]:  INFO ignoring raw packet PullData(Packet { random_token: 12249, gateway_mac: MacAddress { bytes: [172, 31, 9, 255, 254, 4, 103, 135] } }), module: gateway
Thu Aug  5 10:29:21 2021 daemon.info helium_gateway[28881]:  INFO ignoring raw packet PushData(Packet { random_token: 1817, gateway_mac: MacAddress { bytes: [172, 31, 9, 255, 254, 4, 103, 135] }, data: Data { rxpk: Some([V1(RxPkV1 { chan: 7, codr: _4_5, data: [128, 92, 0, 0, 72, 0, 3, 0, 1, 186, 89, 113, 191, 214, 109, 249, 85, 170, 240, 205, 196, 90], datr: DataRate(SF7, BW125), freq: 867.9, lsnr: 9.0, modu: LORA, rfch: 0, rssi: -33, rssis: None, size: 22, stat: OK, tmst:<PHONE_NUMBER> })]), stat: None } }),Thu Aug  5 10:29:21 2021 daemon.info helium_gateway[28881]:  INFO routing packet to: http://<IP_ADDRESS>:8080/, module: router
Thu Aug  5 10:29:21 2021 daemon.info helium_gateway[28881]:  INFO ignoring raw packet PullData(Packet { random_token: 54575, gateway_mac: MacAddress { bytes: [172, 31, 9, 255, 254, 4, 103, 135] } }), module: gateway
Thu Aug  5 10:29:22 2021 user.err lora_pkt_fwd[29685]: ERROR: Packet REJECTED, unsupported frequency - 920900024 (min:863000000,max:870000000)
Thu Aug  5 10:29:22 2021 daemon.info helium_gateway[28881]:  INFO sending rx1 downlink Some(TxPk { imme: false, tmst: N(2544900188), tmms: None, freq:<PHONE_NUMBER>140625, rfch: 0, powe: 27, modu: LORA, datr: DataRate(SF7, BW500), codr: _4_5, fdev: None, ipol: true, prea: None, size: 12, data: [96, 92, 0, 0, 72, 32, 3, 0, 53, 90, 218, 12], ncrc: None }), module: gateway
Thu Aug  5 10:29:22 2021 daemon.info helium_gateway[28881]:  WARN ignoring rx1 downlink error: Ack(TX_FREQ), module: gateway
Thu Aug  5 10:29:22 2021 daemon.info helium_gateway[28881]:  INFO ignoring raw packet TxAck(Packet { random_token: 40611, gateway_mac: MacAddress { bytes: [172, 31, 9, 255, 254, 4, 103, 135] }, data: Some(TxPkNack { txpk_ack: SubTxPkAck { error: TX_FREQ } }) }), module: gateway

What do you have your frequency set to in:

settings.toml
your packetforwarder config json

Settings.toml:
[log]
method = "stdio"
level = "info"
timestamp = false

[update]
platform = "ramips_24kec"

region = "EU868"

packetforwarder config.json is not yet found on the RAK but here is the config file from RAK that expresses the current settings:
/etc/config/lora_pkt_fwd
config freq_plan 'freq_plan'
        option region 'EU868'
        list freq '867.1MHz'
        list freq '867.3MHz'
        list freq '867.5MHz'
        list freq '867.7MHz'
        list freq '867.9MHz'
        list freq '868.1MHz'
        list freq '868.3MHz'
        list freq '868.5MHz'
        list lora_std '868.3MHz SF7 BW250'
        list fsk '868.8MHz 50Kbps'

I'll try to find the real json now.

I had to dig for it:
var/etc/global_conf.json
{ "gateway_conf": { "gateway_ID": "ac1f09fffe046787", "server_address": "<IP_ADDRESS>", "serv_port_up": 1680, "serv_port_down": 1680, "forward_crc_disabled": false, "forward_crc_error": false, "forward_crc_valid": true, "lorawan": 1, "data_recovery": false, "data_recovery_path": "\/mnt\/mmcblk0p1\/packet_forwarder\/data_recovery", "keepalive_interval": 5, "stat_interval": 30, "push_timeout_ms": 200, "fake_gps": false, "autoquit_threshold": 30, "dgram_mtu": 1400, "region": "EU868", "beacon_freq_hz": 869525000, "beacon_freq_nb": 1, "beacon_datarate": 9, "beacon_bw_hz": 125000, "beacon_power": 14, "beacon_period": 128 }, "SX1301_conf": [ { "spi_type": "spi", "reset_pin": 11, "lorawan_public": true, "clksrc": 1, "antenna_gain": 0, "radio_0": { "enable": true, "type": "SX1257", "freq": 867500000, "rssi_offset": -158, "tx_enable": true, "tx_freq_min": 863000000, "tx_freq_max": 870000000 }, "radio_1": { "enable": true, "type": "SX1257", "freq": 868500000, "rssi_offset": -158, "tx_enable": false }, "chan_multiSF_0": { "enable": true, "radio": 1, "if": -400000 }, "chan_multiSF_1": { "enable": true, "radio": 1, "if": -200000 }, "chan_multiSF_2": { "enable": true, "radio": 1, "if": 0 }, "chan_multiSF_3": { "enable": true, "radio": 0, "if": -400000 }, "chan_multiSF_4": { "enable": true, "radio": 0, "if": -200000 }, "chan_multiSF_5": { "enable": true, "radio": 0, "if": 0 }, "chan_multiSF_6": { "enable": true, "radio": 0, "if": 200000 }, "chan_multiSF_7": { "enable": true, "radio": 0, "if": 400000 }, "chan_Lora_std": { "enable": true, "radio": 1, "if": -200000, "bandwidth": 250000, "spread_factor": 7 }, "chan_FSK": { "enable": true, "radio": 1, "if": 300000, "bandwidth": 125000, "datarate": 50000 }, "tx_lut_0": { "pa_gain": 0, "mix_gain": 13, "rf_power": -6, "dig_gain": 0 }, "tx_lut_1": { "pa_gain": 0, "mix_gain": 15, "rf_power": -3, "dig_gain": 0 }, "tx_lut_2": { "pa_gain": 1, "mix_gain": 8, "rf_power": 0, "dig_gain": 0 }, "tx_lut_3": { "pa_gain": 1, "mix_gain": 9, "rf_power": 3, "dig_gain": 0 }, "tx_lut_4": { "pa_gain": 1, "mix_gain": 11, "rf_power": 6, "dig_gain": 0 }, "tx_lut_5": { "pa_gain": 1, "mix_gain": 13, "rf_power": 10, "dig_gain": 0 }, "tx_lut_6": { "pa_gain": 1, "mix_gain": 14, "rf_power": 11, "dig_gain": 0 }, "tx_lut_7": { "pa_gain": 1, "mix_gain": 15, "rf_power": 12, "dig_gain": 0 }, "tx_lut_8": { "pa_gain": 2, "mix_gain": 13, "rf_power": 13, "dig_gain": 0 }, "tx_lut_9": { "pa_gain": 2, "mix_gain": 14, "rf_power": 14, "dig_gain": 0 }, "tx_lut_10": { "pa_gain": 3, "mix_gain": 9, "rf_power": 16, "dig_gain": 0 }, "tx_lut_11": { "pa_gain": 3, "mix_gain": 11, "rf_power": 20, "dig_gain": 0 }, "tx_lut_12": { "pa_gain": 3, "mix_gain": 13, "rf_power": 23, "dig_gain": 0 }, "tx_lut_13": { "pa_gain": 3, "mix_gain": 14, "rf_power": 25, "dig_gain": 0 }, "tx_lut_14": { "pa_gain": 3, "mix_gain": 15, "rf_power": 26, "dig_gain": 0 }, "tx_lut_15": { "pa_gain": 3, "mix_gain": 15, "rf_power": 27, "dig_gain": 0 } } ], "SX1302_conf": [ ], "SX1276_conf": [ ] }

@pe1mew if you add the region call to the top of the file instead of the bottom of the file it works.
Like:
region = "EU868"

[log]
method = "stdio"
level = "info"
timestamp = false

[update]
platform = "ramips_24kec"

This was using a pi 4 with a rak 2287 but if I put it at the bottom the same error occurs but at the top it works.

If that’s the fix please let me know. Putting the region at the bottom of the file effectively places it in the update section which would explain this issue

@shawaj @madninja I can confirm that the suggestion by @shawaj solved the issue.

One last word: Ik might be good to be more directive in the instructions. I would suggest the following phrase:
The default region of the gateway is US915, if your region is different you can set the right one in /etc/helium_gateway/settings.toml. Just add the following line at the beginning of the file or before before any section :
region = "<region>"

@pe1mew would you like to submit a docs or guide PR?


OneDrive on the roadmap?

From @SQL-MisterMagoo on Tuesday, October 13, 2015 2:54:28 AM
Hi, Just wondering if anyone is planning on implementing OneDrive webhooks into this project?
Thanks
Copied from original issue: aspnet/WebHooks#15

From @garora on Saturday, October 17, 2015 12:21:59 PM
Earlier, I supposed to give a try with reference to onedrive. But, due to other priorities, I wouldn't able to start. I can give a try but not sure when. @HenrikFrystykNielsen - do you have any plans? I would love to take this initiative. Unfortunately, currently I have other priorities.

From @HenrikFrystykNielsen on Tuesday, October 27, 2015 7:47:18 AM
Does OneDrive support WebHooks?

From @garora on Tuesday, October 27, 2015 7:55:35 AM
After visiting documentation of OneDrive, did not find relevant information.

From @SQL-MisterMagoo on Tuesday, October 27, 2015 8:45:20 AM
It's in preview still, but the details are available here : Service-to-service notifications (preview)
I was just wondering if it would be on the roadmap, as I would like to try it out, and this seems like the right tool for the job.
If it's not on the roadmap, that's all I need to know.

From @HenrikFrystykNielsen on Saturday, October 31, 2015 8:34:32 AM
We'd definitely be happy to have support for it! if you'd like to help submitting a PR then it will likely go faster ;)

From @garora on Friday, June 3, 2016 2:15:00 AM
Documentation is moved here WebHooks.
@SQL-MisterMagoo , @HenrikFrystykNielsen  - is anyone working on this?

From @HenrikFrystykNielsen on Saturday, June 4, 2016 12:46:45 PM
Not at the moment...

From @garora on Saturday, June 4, 2016 11:14:01 PM
I'd try it after completing one, I am working on.

From @garora on Monday, August 1, 2016 3:42:12 PM
I'm going to pick this one!

From @HenrikFrystykNielsen on Tuesday, August 2, 2016 2:00:38 PM
awesome!

From @garora on Monday, January 16, 2017 1:42:07 AM
Putting it on hold due to Issue#92

From @garora on Monday, August 21, 2017 4:44:22 AM
Still waiting for a solution for #92

Bad bot. Ignore.

This issue has been moved here from #15. Are we planning to move webhook repository here or what is the plan?

Nope, the bot was misbehaving. The bot was reprimanded and is now behaving correctly 😄


go/types: expose an API for normalized interface terms

This is a placeholder for planning purposes, to be exchanged for a proper proposal at a future date.
As discussed in #60994, there are some missing go/types APIs that are currently papered over with the x/exp/typeparams package.
In particular, we should propose a go/types API that serves the purpose of the NormalTerms function -- some way to traverse a normalized representation of the terms of an interface types.
We could expose an equivalent API to NormalTerms, or do something simpler. Let's decide early in the go1.22 cycle.
CC @griesemer @adonovan @timothy-king @mdempsky

Might be helpful to go over what x/tools/go/ssa uses. The heaviest usage of NormalTerms is indirect via x/tools/internal/typeparams.CoreType. If we only release NormalTerms, CoreType will be the performance sensitive path. Other uses of NormalTerm go through the function x/tools/go/ssa.typeSetOf. The use of this is somewhat varied. FWIW all uses only pay attention to the underlying types in the list.

Unfortunately, this isn't going to happen for 1.22, which is perhaps not unreasonable given #63940. Let's wait another cycle to see if the correct API emerges.

I still think we should do this, but it's been an unfortunately low priority as most users have access to terms via x/tools/internal or x/exp/typeparams.
Moving to the backlog, as it seems unlikely that we'll take this on before there is more demand. As mentioned above, #63940 is a higher priority for the team, and may affect the design of this API.

@timothy-king as you are working on go/types and have a lot of experience with core types / normalized interface terms from your work on go/ssa, you seem like the perfect person to design a nice API here :)
Tentatively reassigning, though I will leave it to you to prioritize.


Adding a new selector tool for user to select background color

The background color is fixed.
To make the website more responsive, a selector tool must be added for user so that they can adjust the background as per their wish.
This will make the website more user friendly.

Please assign me this issue as per GSSOCEXTD and hactoberfest

Hi @YadavAkhileshh, I would like to work on this issue of adding different backgrounds, could you please assign me this issue

I would like to work on this issue pls assign me this under GSSoC'24 Extd @YadavAkhileshh


Language contibution [Bahasa Indonesia (id-ID)]

Attach the file here
TextStrings_id.cs.txt
I would like to add a translation for Bahasa Indonesia (Indonesian).
However, this translation doesn't follow KBBI (Kamus Besar Bahasa Indonesia) or Indonesian Dictionary Standard but hope it's still acceptable.

There are lines that could be redone, imo this looks more "natural" or "how it is supposed to be":
TextStrings.Add("button_options", "Pengaturan"); TextStrings.Add("label_pre_install", "Pra-instal Game"); TextStrings.Add("label_paused", "Dijeda");

Need this translated!
The entire game cache will be checked and can be downloaded if needed. It can take a while.\nHi3Mirror is a project courtesy of {0}.\nContinue?

Seluruh cache pada game akan diperiksa dan dapat diunduh apabila diperlukan. Ini akan memakan waktu.\nHi3Mirror adalah project oleh {0}.\nLanjutkan?

A couple of new ones.
"label_merging": "Merging",
"label_merged": "Merged {0}%",
"label_merge_speed": "Merge speed:",
"announcementbox_do_not_show": "Do not show me this next time",

I have changed msgbox_download_type_1_msg from
This will reset game's resource download type in an attempt to fix the infamous update loop which does not let you enter the game.\nContinue?

to
This will reset game's resource download type and allow you to reselect which assets to download.\nContinue?

Can you please retranslate that?

Ini akan mengatur ulang tipe download untuk resource game dan memungkinkan untuk memilih ulang asset yang ingin diunduh.\nLanjutkan?

Two new strings:
"contextmenu_open_screenshots_dir": "Open screenshots directory"
"msgbox_no_screenshot_dir_msg": "There are no screenshots. Go take some!"

"contextmenu_open_screenshots_dir": "Buka direktori screenshot"
"msgbox_no_screenshot_dir_msg": "Tidak ada screenshot. Silahkan ambil beberapa."


Update ARM64 ISO config with new EULA paths

Merge Checklist

All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)

[x] The toolchain has been rebuilt successfully (or no changes were made to it)
[x] The toolchain/worker package manifests are up-to-date
[x] Any updated packages successfully build (or no packages were changed)
[x] All package sources are available
[x] cgmanifest files are up-to-date and sorted (./cgmanifest.json, ./toolkit/tools/cgmanifest.json, ./toolkit/scripts/toolchain/cgmanifest.json)
[x] LICENSE-MAP files are up-to-date (./SPECS/LICENSES-AND-NOTICES/LICENSES-MAP.md, ./SPECS/LICENSES-AND-NOTICES/LICENSE-EXCEPTIONS.PHOTON)
[x] All source files have up-to-date hashes in the *.signatures.json files
[x] sudo make go-tidy-all and sudo make go-test-coverage pass
[x] Documentation has been updated to match any changes to the build system
[x] Ready to merge

Summary

Updates the EULA paths in the ARM64 ISO imageconfig. They were updated in the AMD64 ISO in #672.
Change Log

Separate calamares/terminal EULA for ARM64 ISO

Does this affect the toolchain?

NO
Test Methodology

Local config check

Merging now to fix build breaks.


React to HttpResponse.Challenge API changes

https://github.com/aspnet/HttpAbstractions/pull/254

Updated with PR feedback

:shipit:

bee20973c770c0bf6af27f8aa50c45206e89111e


Improve naming

fixes #18

Attempted to please codecov, given the coverage suddenly drops for a simple var rename. Maybe there's a bug for partial line coverage.

!merge


There's a new delete procedure in town

Work in progress.

@analou-cone Check out the paper, it was updated recently. I made a new GarbageCollect function to match it, and I will continue iterating/testing and write up README bits next.


joyshockmapper: Add version 1.6.0

Going forward, the Electronicks fork is the official home of JoyShockMapper. You can find the latest builds and updates there. Just as he has been a huge contributor to JSM while it was mine, I will continue to be involved now that it's his. You can read more about this decision on GyroWiki here.

Could you create a new PR for the same?


[WIP] [hotfix] Optimize v2 NodeContributorList endpoint

Purpose

Improve response times for requests made on the project overview page.
Changes

Use .include('user__guids') to prefetch user guids
Use sparse fieldssets when getting the list of contribs for @mentions

Side effects

Results from local testing:
Requesting http://localhost:8000/v2/nodes/jtcu9/contributors/?page[size]=50 (SIPS project)
Before: 100 queries, ~3 seconds
After: 10 queries, ~270 ms
Ticket

https://openscience.atlassian.net/browse/OSF-8370
as a part of https://openscience.atlassian.net/browse/OSF-8356

Going to add a few more optimizations to this.


URL AccessDenied

I am ready download newly master branch,but have this error:
OSError: Couldn't reach server at 'https://nlp-architect-data.s3-us-west-2.amazonaws.com/models/transformers/bert-base-uncased.json' to download pretrained model configuration file.

Thanks for letting me know, we've misses that one URL.
Fixed in master branch.


the file stops responding when assigning a variable

Bug Description
i was working on this code:
#[derive(Debug, Clone)]
#[pyclass]
pub enum CodeType{
    Variable,
    Executable,
    Unknown,
    Statement,
}

#[derive(Debug, Clone)]
#[pyclass]
pub struct ShallowParsedLine{
    pub line_code_type: CodeType,
    pub actual_line: String,
    pub all_spaces: i32,
    pub placement: Option<i32>,
}

#[pymethods]
impl ShallowParsedLine {
    pub fn line_code_type(&self) -> CodeType {self.line_code_type.clone()}
    pub fn actual_line(&self) -> String {self.actual_line.clone()}
    pub fn all_spaces(&self) -> i32 {self.all_spaces.clone()}
    pub fn placement(&self) -> Option<i32> {self.placement.clone()}
}

async fn from_parse(i: usize, line: String) -> ShallowParsedLine {
    let mut line_type = CodeType::Unknown;
    if line.ends_with(")") { line_type = CodeType::Executable; }
    let first_word = line.clone().split_whitespace().next().unwrap_or("").replace(":", "");

    if STATEMENTS.contains(&first_word.as_str().clone()) {line_type = CodeType::Statement;}

    if line.contains("=") {
        let first_equation: usize = line.find("=").unwrap();
        if line.chars().nth(first_equation + 1).unwrap() != '=' {
            if !OPERATORS.contains(&line.chars().nth(first_equation - 1).unwrap()) {
                line_type = CodeType::Variable;
            };
        }
    }

    let mut spaces_found: i32 = 0;
    for letter in line.chars() {
        if letter == ' ' { spaces_found += 1; } else { break }
    }
    return ShallowParsedLine {
        line_code_type: line_type.clone(),
        actual_line: line.to_string(),
        all_spaces: spaces_found,
        placement: Some(i as i32),
    };
}

(there is more, but it shouldn't matter)
and for some reason, the code stoped responding, not giving an error or something, it just acted like it's processing something, despite the code taking 0.1 seconds in every other test. it debugged it a bit an  found that on line 32, when i remove line_type = CodeType::Statement the code returns to work like normal, i don't think this is an issue with any other parts of my code, so i think this is an error with pyo3
Your maturin version (maturin --version)
1.1.0
Your Python version (python -V)
3.11.3
Your pip version (pip -V)
23.1.2
What bindings you're using
pyo3
Does cargo build work?

[ ] Yes, it works

If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash /)?

[X] Yes

Steps to Reproduce
just copy my code and use maturin develop, that should be enough since this is a minimal working example

just copy my code and use maturin develop, that should be enough since this is a minimal working example

This does not look like a runnable example. Please provide one with a Cargo.toml and src/main.rs defining an entry point fn main() { .. }.

first thing  off, i sent the wrong version so please ignore it.
secondly, it seems that the reason was actually that i got an error inside of a tokio thread (which only happend if the line_code_type was CodeType::Statement) so when i used .await on the thread, it just kept on waiting over a thread that had crashed.


¿How change default options?

Hi! I deploy the containers using the upgrade command but I would be interested in using the option  --start-before-stopping, that I see is set false by default. I run the upgrade like this:
upgrade --stack MyStack --service phpfpm --finish-upgrade --sidekicks --new-sidekick-image phpfpm-app $CONTAINER_RELEASE_IMAGE
If I add the option in there I got this and fails:

$ upgrade --stack MyStack --service phpfpm --finish-upgrade --sidekicks --new-sidekick-image --start-before-stopping phpfpm-app $CONTAINER_RELEASE_IMAGE
Usage: upgrade [OPTIONS]

How can I change that option?

--new-sidekick-image takes arguments but you haven't specified any

Thank you now it works fine!


Maintained?

@sasadjolic just checking if you're accepting issues/PRs for this repo. It's been a while since last commit, but I see that you closed an empty issue last year.

Yes, I will accept issues and PRs
On Sat, Apr 1, 2017 at 9:15 AM Travis A. Everett<EMAIL_ADDRESS>wrote:

@sasadjolic https://github.com/sasadjolic just checking if you're
accepting issues/PRs for this repo. It's been a while since last commit,
but I see that you closed an empty issue last year.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/SDA/terminal/issues/2, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAVxVjcWavZ4Jz-z_siclHHpMjHbse2hks5rrng1gaJpZM4MwiL2
.

--
Sasha Jolich / CEO aka Chief Experience Officer
<EMAIL_ADDRESS> 1-604-998-2260
SDA Software Associates Inc.
#260-625 Howe St, Vancouver, BC V6C 2T6
www.sda.com
Experience is Everything - We help entrepreneurs create amazing apps by
focusing on experience-first app design and development
Find us on LinkedIn
https://www.linkedin.com/company/sda-software-associates-inc


More features needed!

I don’t mean to come across as entitled in any way but would it be possible to release a more polished, feature full and powerful version of this? It’s ok if it consumes twice the CPU time.
It could be called something like: Automated Unit Detection Integration. Or any abbreviation you could possibly come up with.

Or Audi

Powerful operator-removed suite of controlled heuristics enhancements

System Enhancer for Automatic Testing, or SEAT 🤣


[Fix-4839][Server] Process cannot stop when killed with retry

Tips

Thanks very much for contributing to Apache DolphinScheduler.
Please review https://dolphinscheduler.apache.org/en-us/community/index.html before opening a pull request.

What is the purpose of the pull request
fix #4839
Brief change log
remove KILL status in typeIsFailure
Verify this pull request
(Please pick either of the following options)
This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)

Added dolphinscheduler-dao tests for end-to-end.
Added CronUtilsTest to verify the change.
Manually verified the change by testing locally.

Codecov Report

Merging #4841 (66140c9) into dev (ffcb1c2) will decrease coverage by 0.21%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##                dev    #4841      +/-   ##
============================================
- Coverage     45.56%   45.34%   -0.22%
+ Complexity     3427     3409      -18
============================================
  Files           539      539
  Lines         23090    23090
  Branches       2688     2688
============================================
- Hits          10521    10471      -50
- Misses        11629    11684      +55
+ Partials        940      935       -5

Impacted Files
Coverage Δ
Complexity Δ

...dolphinscheduler/common/enums/ExecutionStatus.java
62.16% <0.00%> (ø)
6.00 <0.00> (ø)

.../server/master/runner/DependentTaskExecThread.java
51.57% <0.00%> (-16.85%)
10.00% <0.00%> (-5.00%)

...ver/master/consumer/TaskPriorityQueueConsumer.java
43.33% <0.00%> (-10.00%)
16.00% <0.00%> (-4.00%)

...olphinscheduler/server/utils/DependentExecute.java
61.84% <0.00%> (-9.22%)
17.00% <0.00%> (-4.00%)

...er/master/dispatch/host/assign/RandomSelector.java
77.77% <0.00%> (-5.56%)
3.00% <0.00%> (-1.00%)

...eduler/server/worker/runner/TaskExecuteThread.java
58.19% <0.00%> (-4.92%)
13.00% <0.00%> (-1.00%)

...inscheduler/service/zk/CuratorZookeeperClient.java
60.97% <0.00%> (-4.88%)
7.00% <0.00%> (-1.00%)

...olphinscheduler/plugin/alert/email/ExcelUtils.java
78.18% <0.00%> (-3.64%)
8.00% <0.00%> (-1.00%)

...inscheduler/server/master/config/MasterConfig.java
42.42% <0.00%> (-3.04%)
11.00% <0.00%> (-1.00%)

Continue to review full report at Codecov.

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


Test extraction of vectors from PDF

Extract floorplans and drawings as SVG files

Some test were done with Cairographics. The tool was successful in converting content to SVGs. However, the tool is not selective, all context ina page (text, images, floorplans, etc.) is converted to SVG.
We decided to postpone the implementation of this feature.

We will not pursue the extraction of vectors for now


Add methods update parameters PoS

What does this implement/fix? Explain your changes.
Feat: #1018
Update parameters PoS.
Does this close any currently open issues?
Issue #1018
What commands can I run to test the change?
npm run test-administrator
Any other comments?
No

Can you update the doc/ folder to reflect the changes to the proposer?

Yes, of course. I'll do these changes. Thanks.


Unable to update conda

I can't update my conda for no premission

@ATEDUST , thank you for let us know your issue. As /opt/conda  (read only) suggests, we can not update conda. conda update --name base conda raise a EnvironmentNotWritableError.
(studiolab) studio-lab-user@default:~$ conda info

     active environment : studiolab
    active env location : /home/studio-lab-user/.conda/envs/studiolab
            shell level : 1
       user config file : /home/studio-lab-user/.condarc
 populated config files : /etc/conda/.condarc
                          /opt/conda/.condarc
          conda version : 4.10.3
    conda-build version : not installed
         python version : 3.9.7.final.0
       virtual packages : __linux=4.14.294=0
                          __glibc=2.31=0
                          __unix=0=0
                          __archspec=1=x86_64
       base environment : /opt/conda  (read only)
      conda av data dir : /opt/conda/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : /home/studio-lab-user/.conda/pkgs
                          /opt/conda/pkgs
       envs directories : /home/studio-lab-user/.conda/envs
                          /opt/conda/envs
                          /opt/amazon/sagemaker/safemode-home/.conda/envs
               platform : linux-64
             user-agent : conda/4.10.3 requests/2.26.0 CPython/3.9.7 Linux/4.14.294-220.533.amzn2.x86_64 ubuntu/20.04.3 glibc/2.31
                UID:GID : 1000:100
             netrc file : None
           offline mode : False

Could you please share with us the background that why you need to update the conda?

I'm going to jump in and answer that question, if you don't mind, as I have come across a similar issue updating conda within a AWS Sagemaker Notebook Instance - I was trying to update Conda as 4.10.3 was released on 2021-06-29, whereas the latest version 23.1.0 was released on 2023-01-17.
According to the release notes there are quite a few changes between these versions, and so I would quite like to run the most up to date version, so as to avoid unnecessarily being affected by any bugs. Furthermore, I believe it to be good practice from a security perspective to be running the latest version of software, so as to benefit from any security patches that may have been implemented.

Are there any future plans from the AWS team regarding this issue? Having the default install of conda be almost 2 years out of date is pretty bad but also installing it under the root user (which goes against anacondas recommendation btw) so there is no option for us to update it ourselves if needed makes it a bit worse.
While you're at it, it doesn't look like there is any support for AWS-CLI v2 (please correct me if I'm wrong) yet. Not sure why it isn't the standard in this relatively new platform considering it was released 3 years ago today...

Related: https://github.com/aws/studio-lab-examples/issues/210

yes many years issue is too bad
can you fix it asap ?

Hi all, thank you for raising these issues. We will look into this ASAP.

I also hope for an update possibly with libmamba support and a more up-to-date TensorFlow

(lib)mamba support would be awesome

Hi all.  We recently released a new 'Distribution Env' that should solve several of the problems in this thread.  See notification here: https://aws.amazon.com/about-aws/whats-new/2023/08/amazon-sagemaker-studio-lab-supports-sagemaker-distribution/.
This new env comes with the new version of Conda.
And the documentation for this can be found here: https://docs.aws.amazon.com/sagemaker/latest/dg/studio-lab-environments.html


Improve build process

There are some ways we can improve the build process in build.sh.

Check if brew is already installed rather than downloading the binary
Install the recipe without upgrading other brew packages to speed up the installation process (setting HOMEBREW_NO_AUTO_UPDATE)
Remove cmake build cache after installing formula

cc @AkechiShiro @viferga

@FirePing32 cool, feel free to create a PR for solving this.


v5: Stuck in infinite loop in some cases

Before you open this issue, please complete the following tasks:

[x] use the search bar at the top of the page to search this repository for similar issues or discussions that have already been opened.
[x] if you are looking for help from the gulp team or community, open a discussion.
[x] if you think there is a problem with the plugin you're using, open a discussion.
[x] if you think there is a bug in our code, open this issue.

What were you expecting to happen?
Works like v4
What actually happened?
Stuck in an infinite loop until OOM.
Please give us a sample of your gulpfile

I tried to find a minimal reproduction but failed.
So this example needs to be run in the https://github.com/babel/babel repository.
Clone https://github.com/babel/babel and run yarn.
Then replace Gulpfile.mjs with the following code and run yarn gulp to reproduce.
import gulp from "gulp";

const defaultPackagesGlob = "./@(codemods|packages|eslint)/*";

gulp.task("default", function () {
  return gulp
    .src(`${defaultPackagesGlob}/src/**/*.d.ts`)
    .pipe(gulp.dest("./test"));
});

Terminal output / screenshots

$ gulp

<--- Last few GCs --->

[2080:0x5fe0360]  2292081 ms: Scavenge 3997.4 (4127.4) -> 3985.4 (4127.7) MB, 5.89 / 0.00 ms  (average mu = 0.249, current mu = 0.057) task;
[2080:0x5fe0360]  2292139 ms: Scavenge 3998.0 (4127.9) -> 3986.0 (4128.2) MB, 5.23 / 0.00 ms  (average mu = 0.249, current mu = 0.057) task;
[2080:0x5fe0360]  2295987 ms: Mark-Compact 3999.0 (4128.7) -> 3979.8 (4129.2) MB, 3794.78 / 0.00 ms  (average mu = 0.263, current mu = 0.274) task; scavenge might not succeed

<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----

 1: 0xcd8bd6 node::OOMErrorHandler(char const*, v8::OOMDetails const&) [gulp bundle-dts]
 2: 0x10aed20 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [gulp bundle-dts]
 3: 0x10af007 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [gulp bundle-dts]
 4: 0x12cdfe5  [gulp bundle-dts]
 5: 0x12ce4be  [gulp bundle-dts]
 6: 0x12e36e6 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::internal::GarbageCollectionReason, char const*) [gulp bundle-dts]
 7: 0x12e4209  [gulp bundle-dts]
 8: 0x12e4818  [gulp bundle-dts]
 9: 0x1a[34](https://github.com/babel/babel/actions/runs/8594917993/job/23548824406?pr=16413#step:7:35)081  [gulp bundle-dts]

Please provide the following information:

OS & version [e.g. MacOS Catalina 10.15.4]: Windows 11
node version (run node -v): v21.7.3
npm version (run npm -v): 10.5.0
gulp version (run gulp -v): 5.0.0

Additional information

Thanks for the report. I made a fix in glob-stream that only traverses the glob parent directory, but you are using a glob in the first segment so it will still traverse the node_modules and other directories.
I'm not sure how to fix this easily in our new glob-stream implement, but I believe a workaround would be to separate the glob parts in parens into 3 separate globs.

Thank you for your quick reply!
I tried splitting it, unfortunately the issue still exists.🤔
import gulp from "gulp";

const defaultPackagesGlob = function (path) {
  return ["./codemods/*", "./packages/*", "./eslint/*"].map(p => p + path);
};

gulp.task("default", function () {
  return gulp
    .src(defaultPackagesGlob("/src/**/*.d.ts"))
    .pipe(gulp.dest("./test"));
});

we met this problem. our code:
function copyLocalesJSON() {
    return src('**/locales/*.json', {
        cwd: fileURLToPath(PKG_PATH),
        ignore: ['**/node_modules/**', '**/dist/**'],
    }).pipe(dest(fileURLToPath(DIST_PATH)))
}

and we have a lot of recursively linked node_modules.
I workaround this by force "glob-stream" to be "7.0.0" not "8.2.0"


Handle duplicate target machine on native components

Expected Behavior

Gradle shouldn't crash with elements already exists exception.
Current Behavior

Using the same target machine twice on any native platform cause Gradle to crash with duplicated elements exception.
Context

Steps to Reproduce (for bugs)

Your Environment

Build scan URL:

PR https://github.com/gradle/gradle/pull/7820 ready for review.


Nanopolish index not valid command?

Hello,
I am following the instructions to polish a draft genome assembly. First step I am doing as shown in the read the docs v0.8.4:
nanopolish index -d ../../data/ICP181/181_fast5/all/ 181_reads.fa
just gives me the usage options where it doesn't show index as a valid command?
usage: nanopolish [command] [options]
valid commands:
--help
--version
call-methylation
consensus
eventalign
extract
getmodel
help
methyltrain
phase-reads
scorereads
train-poremodel-from-basecalls
variants
for help on given command, type nanopolish command --help
Am I being really dim here?
I have just checked nanopolish --version and I have v0.7.2 however I did do git checkout for what I assume is the latest version?

The problem is definitely that your version is out of date. Please follow these instructions to get the latest version:
https://github.com/jts/nanopolish/#installing-the-latest-code-from-github-recommended

Hi,
I have followed the instructions as advised and nanopolish --version is still showing 0.7.2
git clone --recursive https://github.com/jts/nanopolish.git
and
git clone --recursive https://github.com/jts/nanopolish.git
git checkout v0.9.0
are giving the same 0.7.2 version.

check which nanopolish

Ok - think I've figured out the problem. many thanks

Ok, glad to hear it.


[YUNIKORN-1980] Return 410 gone in deprecated log REST calls

What is this PR for?
return 410 in deprecated REST APIs PUT /ws/v1/loglevel/{level} and GET /ws/v1/loglevel
What type of PR is it?

[x] - Bug Fix

What is the Jira issue?
https://issues.apache.org/jira/browse/YUNIKORN-1980
How should this be tested?
Covered by unit tests.

gentle ping @wilfred-s , could you take a look ?

Thanks for the comment

If we're going to break compatibility in 1.4, let's go all the way and get rid of the dead code. A 404 (the default) is just as good as a 410.
This sounds reasonable, I'll remove these two deprecated apis in the next commit, many thanks !


Enable Azure Blob Storage

Enable Azure blob storage (which doesn't support the S3 API) as an option.

This is enabled using this driver: https://github.com/HDFGroup/hsds/blob/master/hsds/util/azureBlobClient.py.
Note all storage operations now go through https://github.com/HDFGroup/hsds/blob/master/hsds/util/storUtil.py, which calls methods in s3Client.py or azureBlobClient.py or fileClient.py based on config options.
The docs directory has instructions for installing on HSDS on Azure (either with Docker or AKS).


Leaderboard: hit the API

In this milestone I did the following 👎🏼

Use API documentation.
Create a new game with the name of my choice by using the API.
Save the ID of my game that will be returned by API.
Implement the "Refresh" button that will get all scores for the game created by me from the API (receiving data from the API and parsing the JSON).
Implement the form "Submit" button that will save a score for a game created by you (sending data to the API).
Use arrow functions instead of the function keyword.
Use async and await JavaScript features to consume the API.

Thank you, @ShadyShawkat for the review.


Add more clickable struct names in comments

Replaced all instances found through the following regex:
([^[])(`(?!Arc)(?!Rc)(?!PartialEq)(?!Clone)(?!Some)(?!None)(?!MacOS)(?!EasyMark)(?!Err)(?!Home)(?!End)(?!Trackpad)[A-Z][a-z]{1}\w*`)

Tried to keep it conservative as to not make false positives, haven't found any wrong replacements myself.
Example of a clickable struct name:

Thank you for this!
Unfortunately it is not enough to just enclose in [], they also need to be in scope, or have a qualified path to them.
You can see the problem by running
cargo doc -p emath -p epaint -p egui -p eframe -p epi -p egui_web -p egui-winit -p egui_glium -p egui_glow --lib --no-deps --all-features
…
warning: unresolved link to `PathShapes`
  --> epaint/src/bezier.rs:57:56
   |
57 |     /// Convert the cubic Bézier curve to one or two [`PathShapes`].
   |                                                        ^^^^^^^^^^ no item named `PathShapes` in scope
   |
   = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default
   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`

(unfortunately I haven't figured out how to get cargo doc to fail on warnings to that the CI can catch this)

Thank you for this!
Unfortunately it is not enough to just enclose in [], they also need to be in scope, or have a qualified path to them.
You can see the problem by running
cargo doc -p emath -p epaint -p egui -p eframe -p epi -p egui_web -p egui-winit -p egui_glium -p egui_glow --lib --no-deps --all-features
…
warning: unresolved link to `PathShapes`
  --> epaint/src/bezier.rs:57:56
   |
57 |     /// Convert the cubic Bézier curve to one or two [`PathShapes`].
   |                                                        ^^^^^^^^^^ no item named `PathShapes` in scope
   |
   = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default
   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`

(unfortunately I haven't figured out how to get cargo doc to fail on warnings to that the CI can catch this)

Whoops, I assumed they were working as VSCode did correctly place links on them. Will fix it.

(unfortunately I haven't figured out how to get cargo doc to fail on warnings to that the CI can catch this)

Maybe adding #![deny(rustdoc::broken_intra_doc_links)] at the crate root solve this?

One fight with github's merging later this should be ready for merging with no more broken links.

Spoke too soon, that one does not show on my machine but it does on CI. Maybe caused by #1125 stopping the build from completing.

Wow, you are amazing for doing all this work! There are still 12 broken links with cargo doc --document-private-items --no-deps --all-features though:
warning: unresolved link to `Ui`
  --> egui/src/layout.rs:10:43
   |
10 |     /// This is the minimal size of the [`Ui`].
   |                                           ^^ no item named `Ui` in scope
   |
   = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default
   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
…

Thanks ❤


fix open pmd transform and include beam generator

@roussel-ryan

In the environment file: instead of installing torch via pip, you can add the pytorch channel and install torch using conda

@roussel-ryan  done

I would suggest a flag in plot_projections that allows the user to force all of the 2d phase space plots (and x-axes of histograms) to have the same limits, also have the function return the figure for further processing/customization/saving etc

@roussel-ryan  done!