IRODS ingestion of gantry data (continue 02)

Continuation of https://github.com/AgPipeline/issues-and-projects/issues/82
Task to do
Set up and document an automated process for ingesting gantry data into CyVerse Data Store (IRODS)
Reason

[ ] Ease of access from VICE (for workbench/data exploration)
[ ] Close to CyVerse & UA computational resources

Result

Scripts and configuration necessary for setting this up
Document (as text file in the code repository where the automation & logic end up)
Monitoring & alerting (at least documenting what success/failure looks like)

Steps to take

[ ] Ensure tar file creation & irsync work reliably (or fail noisily)

See https://github.com/az-digitalag/organization/issues/177 - it should take the guess work out of knowing when it's OK to tar up the files for a scan (assuming we also know whether we have all the files for a scan.)

Ask for a 4 TB SSD to be installed DS06

Continued in https://github.com/AgPipeline/issues-and-projects/issues/116


Android TypeError: Cannot read property 'Commands' of undefined

@dominicstop Based on docs, ContextMenuView should render regular View component on Android. My android app crash with an error TypeError: Cannot read property 'Commands' of undefined at the moment of import {ContextMenuView} from 'react-native-ios-context-menu'. I conditionally render the component which contains this import statement only for ios platform.
Any suggestions?

Until it's fixed, you could re-export an empty view inside of your own file, such as: context-menu.android.tsx:
context-menu.tsx
export { ContextMenuView } from 'react-native-ios-context-menu'

context-menu.android.tsx
import { View } from 'react-native'

export const ContextMenuView = View

And then, in any file, just do:
import { ContextMenuView } from './context-menu'

Thanks @nandorojo. Worked like a charm! Just can't find out why its working on android by default (w/o your suggestion) in the example project of this repo. Anyway thanks :)

hi, thanks for creating this issue ✨
sorry it took so long @adorum, but i implemented @nandorojo recommendation in the latest 1.7.1 patch haha
i used to use *.ios.js/*.android.js in an older version of this library (i.e. v1.3.0), but i forgot to add it back during the typescript re-write (due to metro + typescript-related bugs).
hopefully the latest patch fixes this (unfortunately, i don't have enough space to install android studio, so i can't verify if this fixes the bug haha)

hi, thanks for creating this issue ✨
sorry it took so long @adorum, but i implemented @nandorojo recommendation in the latest 1.7.1 patch haha
i used to use *.ios.js/*.android.js in an older version of this library (i.e. v1.3.0), but i forgot to add it back during the typescript re-write (due to metro + typescript-related bugs).
hopefully the latest patch fixes this (unfortunately, i don't have enough space to install android studio, so i can't verify if this fixes the bug haha)

this has now been fixed in v1.7.2 patch ✨

screenshot:

please re-open this issue if this patch doesn't fix the issue haha


python311Packages.boschshcpy: 0.2.72 -> 0.2.73

Diff: https://github.com/tschamm/boschshcpy/compare/0.2.72...0.2.73
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 265623 run on x86_64-linux 1

5 packages built:

home-assistant-component-tests.bosch_shc
python310Packages.boschshcpy
python310Packages.boschshcpy.dist
python311Packages.boschshcpy
python311Packages.boschshcpy.dist


Package frameworks dependencies

The latest (i didn't check previous) package is not showing frameworks dependencies (in package manager and nuget web-site also):

I tried to build for testing purposes using "GeneratePackageOnBuild" setting, and it is looks like:

Is this correct what frameworks dependencies is missing in release package?

Hi @i4004
I'm not an expert on nuget, but I do not think it's a big problem. We could do a PR with those small changes if you like?. What do you think?
Something like
...
    <dependencies>
      <group targetFramework="net461" />
      <group targetFramework="netstandard2.0">
        <dependency id="NHibernate" version="5.1.1" />
      </group>
      <group targetFramework="netcoreapp2.0">
        <dependency id="NHibernate" version="5.1.1" />
      </group>
    </dependencies>
...

I think that's ok! I created a pull request for that :)


Persist Steps: On Refresh

Problem
When you refresh the page, you lose all data in Kaoto. This includes most settings and all steps, including any custom configuration or data mapping.
Proposition
Store the main YAML file in localStorage or through some other persistence mechanism.

+1 for the proposal and addressing this problem.  Just restoring the latest YAML / session would be enough.


k8s scdf2 docker image task-launcher-dataflow 1.0.2-BUILD-SNAPSHOT

Problem description:
As  I user, I am trying to deploy the following stream that exec a simulated "scheduler" using a stream and launching task on cron rules.
We know that scdf team is working on scheduling native on k8s task ... but, we need to scheduling tasks ... a lot of them ....
We are trying 'stream option',  and i've createa a stream :
 triggertask --uri=docker:k8s-master:5000/adobe-analytics-task:3.0.25  --fixed-delay=1 | task-launcher-dataflow
We are running scdf2 on k8s  secured with  uaa/oauth..
We are imported task-launcher-dataflow:1.0.1 , but it doesn't apply because it is need basic auth with scdf2.
We are found that  task-launcher-dataflow:1.0.2.BUILD-SNAPSHOT   got oauth  props.
Solution description:
Looking into docker hub we've not found a task-launcher-dataflow:1.0.2.BUILD-SNAPSHOT docker image.
where can we found it?  is it available?
Release versions:
{
  "versionInfo": {
    "implementation": {
      "name": "spring-cloud-dataflow-server",
      "version": "2.2.1.RELEASE"
    },
    "core": {
      "name": "Spring Cloud Data Flow Core",
      "version": "2.2.1.RELEASE"
    },
    "dashboard": {
      "name": "Spring Cloud Dataflow UI",
      "version": "2.2.2.RELEASE"
    },
    "shell": {
      "name": "Spring Cloud Data Flow Shell",
      "version": "2.2.1.RELEASE",
      "url": "https://repo.spring.io/libs-release/org/springframework/cloud/spring-cloud-dataflow-shell/2.2.1.RELEASE/spring-cloud-dataflow-shell-2.2.1.RELEASE.jar"
    }
  },
  "featureInfo": {
    "streamsEnabled": true,
    "tasksEnabled": true,
    "schedulesEnabled": true,
    "grafanaEnabled": false
  },
  "securityInfo": {
    "isAuthenticationEnabled": true,
    "isAuthenticated": true,
    "username": "admin",
    "roles": [
      "ROLE_DESTROY",
      "ROLE_SCHEDULE",
      "ROLE_DEPLOY",
      "ROLE_CREATE",
      "ROLE_MODIFY",
      "ROLE_VIEW",
      "ROLE_MANAGE"
    ]
  },
  "runtimeEnvironment": {
    "appDeployer": {
      "platformSpecificInfo": {},
      "deployerImplementationVersion": "2.1.2.RELEASE",
      "deployerName": "Spring Cloud Skipper Server",
      "deployerSpiVersion": "2.1.2.RELEASE",
      "javaVersion": "1.8.0_192",
      "platformApiVersion": "",
      "platformClientVersion": "",
      "platformHostVersion": "",
      "platformType": "Skipper Managed",
      "springBootVersion": "2.1.6.RELEASE",
      "springVersion": "5.1.8.RELEASE"
    },
    "taskLaunchers": [
      {
        "platformSpecificInfo": {},
        "deployerImplementationVersion": "2.0.5.RELEASE",
        "deployerName": "KubernetesTaskLauncher",
        "deployerSpiVersion": "2.0.4.RELEASE",
        "javaVersion": "1.8.0_192",
        "platformApiVersion": "v1",
        "platformClientVersion": "unknown",
        "platformHostVersion": "unknown",
        "platformType": "Kubernetes",
        "springBootVersion": "2.1.6.RELEASE",
        "springVersion": "5.1.8.RELEASE"
      }
    ]
  },
  "grafanaInfo": {
    "url": "",
    "token": "",
    "refreshInterval": 15
  }
}

HI, @eskuai. You can pull the latest tag from the public Docker Registry. Also, you can build the app locally, to then build a docker image for your use.
FYI: We are gearing up to release 1.0.2 GA release this week.

Thanks You @sabbyanandan @ghillert
We'll test as soon as possible.
Great job!


'TypeError: undefined is not a function' when trying to look at the inbox

Hi,
this looks like a great project. I installed it, but there seems to be something wrong.
$ wunderline inbox
/usr/local/lib/node_modules/wunderline/util/get-inbox.js:22
    var lists = body.filter(function (item) {
                     ^
TypeError: undefined is not a function
    at Request._callback (/usr/local/lib/node_modules/wunderline/util/get-inbox.js:22:22)
    at Request.self.callback (/usr/local/lib/node_modules/wunderline/node_modules/request/request.js:197:22)
    at Request.emit (events.js:110:17)
    at Request.<anonymous> (/usr/local/lib/node_modules/wunderline/node_modules/request/request.js:1050:14)
    at Request.emit (events.js:129:20)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/wunderline/node_modules/request/request.js:996:12)
    at IncomingMessage.emit (events.js:129:20)
    at _stream_readable.js:908:16

Thanks,
Hans

Hi @i0rek, it looks like an authentication error, have you set up your .wunderlinerc file?

@wayneashleyberry yes.
cat ~/.wunderlinerc
{
  "client_id": "..........................",
  "access_token": "..............................."
}

Just pushed a potential fix, would you mind installing 3.2.2?

Thank you for the fast help! That doesn't fix my issue though:
$ wunderline --version
3.2.2
$ wunderline inbox
/usr/local/lib/node_modules/wunderline/util/get-inbox.js:22
    var lists = body.filter(function (item) {
                     ^
TypeError: undefined is not a function
    at Request._callback (/usr/local/lib/node_modules/wunderline/util/get-inbox.js:22:22)
    at Request.self.callback (/usr/local/lib/node_modules/wunderline/node_modules/request/request.js:197:22)
    at Request.emit (events.js:110:17)
    at Request.<anonymous> (/usr/local/lib/node_modules/wunderline/node_modules/request/request.js:1050:14)
    at Request.emit (events.js:129:20)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/wunderline/node_modules/request/request.js:996:12)
    at IncomingMessage.emit (events.js:129:20)
    at _stream_readable.js:908:16
    at process._tickCallback (node.js:355:11)

Strange... okay, i've added some extra debugging in 3.2.3
If you could run NODE_DEBUG=request wunderline inbox and add the debugging output here that would really help :)
Looks like, for some reason, the API call to /lists is returning an empty body...

With debugging enabled I saw that I was unauthorised. I used the client_secret as access_token. Generating an access token fixed it.
Thanks!

Oh cool - yeah, I need to add better error messages for that, will add it to my todo list :p


'code' documentation is incorrect for OAuth2 constructor config

The OAuth2 constructor config documents it accepts code, which it doesn't.

This has been fixed and released in the v0.7 release.


Documentation link is broken

Seems like the link leading to the project documentation mentioned in README.md is broken

Seems like the project is already dead...


Create PoC of parsing cypher into AST elements.

Paging @Andy2003 FYI

Hey @Andy2003 might fancy a look at CypherDSLParserExamplesTest and RewriteTest? Or the API in general? I tried picking up your example but I am sure you have some more ideas.
The general idea of providing callbacks and filters is to make the need for mutable AST elements obsolete. I'd rather have public builders for the AST elements of Cypher-DSL instead of mutable elements.

@michael-simons
The approach with the callbacks looks quite promising. I'll have to check to what extent I can use this functionality when I get a chance. Ideally, we can use the parser to parse user-supplied queries and integrate them into the AST generated by our library, but the parser must be able to understand all user-defined queries.
The 2nd use case would be to parse our expected test results using the parser and then compare the parsed AST to the generated AST. Currently we "only" compare the generated (normalized) Cypher string..

Thank you, @Andy2003 ! AST comparison is a different beast and not part of this commit fore sure.
I do see a couple of issues here, as the built AST and the generated AST will be different in most cases, but semantically equivalent… Or at least rendered into the same output.
Maybe it will be mitigated a bit by the fact, that I also add a way to turn of enforced quoting.


Minor fix

@alfredmyers,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by .NET Foundation. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/Quickstart/Use-a-Package.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Thanks again--we appreciate your taking the time to fix minor details.


Create module_index once instead of repeatedly

Thanks! I don't know if we wanted to fail silently, that was just a step up from no error catching whatsoever.


Tensorcore errors and it will not run

2023-01-26 19:54:55.306109: E tensorflow/stream_executor/cuda/cuda_blas.cc:2981] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2023-01-26 19:54:56.013115: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer.so.7'; dlerror: libnvinfer.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/lib64-nvidia
2023-01-26 19:54:56.013226: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer_plugin.so.7'; dlerror: libnvinfer_plugin.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/lib64-nvidia
2023-01-26 19:54:56.013246: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
found 0 images.
no metadata / メタデータファイルがありません: /content/drive/MyDrive/fine_tune/meta_clean.json
/content/drive/MyDrive/kohya-trainer/finetune
2023-01-26 20:01:45.449924: E tensorflow/stream_executor/cuda/cuda_blas.cc:2981] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2023-01-26 20:01:46.157549: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer.so.7'; dlerror: libnvinfer.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/lib64-nvidia
2023-01-26 20:01:46.157670: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer_plugin.so.7'; dlerror: libnvinfer_plugin.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/lib64-nvidia
2023-01-26 20:01:46.157697: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
load images from /content/drive/MyDrive/Aliens
found 4 images.
loading BLIP caption: https://storage.googleapis.com/sfr-vision-language-research/BLIP/models/model_large_caption.pth
Downloading (…)solve/main/vocab.txt: 100% 232k/232k [00:00<00:00, 263kB/s]
Downloading (…)okenizer_config.json: 100% 28.0/28.0 [00:00<00:00, 10.9kB/s]
Downloading (…)lve/main/config.json: 100% 570/570 [00:00<00:00, 212kB/s]
100% 1.66G/1.66G [01:14<00:00, 24.0MB/s]
load checkpoint from https://storage.googleapis.com/sfr-vision-language-research/BLIP/models/model_large_caption.pth
BLIP loaded
0% 0/4 [00:00<?, ?it/s]convert image mode RGBA to RGB: /content/drive/MyDrive/Aliens/maxresdefault.png
25% 1/4 [00:00<00:02,  1.03it/s]convert image mode RGBA to RGB: /content/drive/MyDrive/Aliens/newsgeek.png
50% 2/4 [00:01<00:01,  1.03it/s]convert image mode RGBA to RGB: /content/drive/MyDrive/Aliens/FGddysgUYAMQ-sJ.png
100% 4/4 [00:03<00:00,  1.06it/s]
done!
2023-01-26 20:03:42.032881: E tensorflow/stream_executor/cuda/cuda_blas.cc:2981] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2023-01-26 20:03:42.958994: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer.so.7'; dlerror: libnvinfer.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/lib/python3.8/dist-packages/cv2/../../lib64:/usr/lib64-nvidia
2023-01-26 20:03:42.959110: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer_plugin.so.7'; dlerror: libnvinfer_plugin.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/lib/python3.8/dist-packages/cv2/../../lib64:/usr/lib64-nvidia
2023-01-26 20:03:42.959128: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
downloading wd14 tagger model from hf_hub
/usr/local/lib/python3.8/dist-packages/huggingface_hub/file_download.py:1020: FutureWarning: The force_filename parameter is deprecated as a new caching system, which keeps the filenames as they are on the Hub, is now in place.
warnings.warn(
Downloading (…)"keras_metadata.pb";: 100% 328k/328k [00:00<00:00, 25.9MB/s]
Downloading (…)"saved_model.pb";: 100% 3.81M/3.81M [00:00<00:00, 134MB/s]
Downloading (…)in/selected_tags.csv: 100% 174k/174k [00:00<00:00, 259kB/s]
Downloading (…)ata-00000-of-00001";: 100% 365M/365M [00:01<00:00, 280MB/s]
Downloading (…)"variables.index";: 100% 13.8k/13.8k [00:00<00:00, 6.07MB/s]
found 4 images.
loading model and labels
2023-01-26 20:03:53.629195: W tensorflow/core/common_runtime/gpu/gpu_bfc_allocator.cc:42] Overriding orig_value setting because the TF_FORCE_GPU_ALLOW_GROWTH environment variable is set. Original config value was 0.
WARNING:tensorflow:No training configuration found in save file, so the model was not compiled. Compile it manually.
WARNING:tensorflow:No training configuration found in save file, so the model was not compiled. Compile it manually.
100% 4/4 [00:00<00:00, 23.32it/s]
done!
Went on ahead and tried to train to get these:

Looks like something is wrong and possibly using the CPU because this is longer than even a full on Dreambooth training.

no, it runs well, nothing wrong with tensorflow notification, there is a bug in colab where it can't find tensorrt path but it doesn't affect the training. also bitsandbytes notification, it automatically find the path itself. Detected Cuda Version 11.2 means you're running on gpu not cpu
and why it's longer? because you set train_batch_size to 4 and max_train_steps to 5000, it's equal to 20k max train steps. You can try lower your train step or train batch size.
Also try to not set max train step too higher if your images is only 4, your model will overfitted easily

I tried 1 and 1000 but it didn't work either then my daily time limit on colab had expired.  I will try this again tomorrow but so far no luck with colab.
btw, I am used to TI/HN, and DB and I don't have to give them filewords but with this I am forced (DB extension doesn't force that either).  My first really stop the program error was because I didn't blip so it had no filewords (captions).  I hardly ever use captioning, and try not to.

No, there is an issue afterall
modules.devices.NansException: A tensor with all NaNs was produced in Unet. This could be either because there's not enough precision to represent the picture, or because your video card does not support half type. Try setting the "Upcast cross attention layer to float32" option in Settings > Stable Diffusion or using the --no-half commandline argument to fix this. Use --disable-nan-check commandline argument to disable this check.
  What is going on?

batch size 16
colab pro? i think you need to compile new xformers, because mine only support T4, which is limited to colab free
or you can find it at https://github.com/TheLastBen/fast-stable-diffusion/tree/main/precompiled

batch size 16

colab pro? i think you need to compile new xformers, because mine only support T4, which is limited to colab free or you can find it at https://github.com/TheLastBen/fast-stable-diffusion/tree/main/precompiled

No way am I paying for colab so it is free.  Where do I stick the xformers since it redownloads each time?


monstro805/config.yaml

Thank you for contributing! Please confirm this pull request meets the following requirements:

[ ] I followed the contributing guidelines: https://github.com/github/explore/blob/master/CONTRIBUTING.md
[ ] I have no affiliation with the project I am suggesting (as a maintainer, creator, contractor, or employee).

Which change are you proposing?

[ ] Suggesting edits to an existing topic or collection
[ ] Curating a new topic or collection
[ ] Something that does not neatly fit into the binary options above

Editing an existing topic or collection
I'm suggesting these edits to an existing topic or collection:

[ ] Image (and my file is *.png, square, dimensions 288x288)
[ ] Content (and my changes are in index.md)

Please replace this line with an explanation of why you think these changes should be made.

Curating a new topic or collection

[ ] I've formatted my changes as a new folder directory, named for the topic or collection as it appears in the URL on GitHub (e.g. https://github.com/topics/[NAME] or https://github.com/collections/[NAME])
[ ] My folder contains a *.png image (if applicable) and index.md
[ ] All required fields in my index.md conform to the Style Guide and API docs: https://github.com/github/explore/tree/master/docs

Please replace this line with an explanation of why you think this topic or collection should be curated.

Something that does not neatly fit into the binary options above

[ ] My suggested edits are not about an existing topic or collection, or at least not a single one
[ ] My suggested edits are not about curating a new topic or collection, or at least not a single one
[ ] My suggested edits conform to the Style Guide and API docs: https://github.com/github/explore/tree/master/docs

Please replace this line with an explanation of your proposed changes.

Please note: we will close your PR without comment if you do not check the boxes above and provide ALL requested information.

git checkout main
git merge --no-ff github-main
git push origin main

brew install --cask bot-framework-emulator

da8efcfa59d570c94dee4abe056738b1ea36cc31

https://docs.google.com/document/d/1fvaBd9I6zFI7A0E6lAoOuyZc2seh6WO_PhCBtdu5NZc/edit?usp=drivesdk


Docs: Fix "responsible" typo

Super tiny typo fix. Thanks for all the hard work on this library!

I need to learn how to use spell check apparently. :) Thanks!


Search ongoing load circle indication has gone in newest beta (screen record attached)

Steps to reproduce
Search in any extension.
No visual indication until search finishes and then results pop up.
Screen record attached[
https://github.com/user-attachments/assets/24e2dda7-aff6-4566-853c-0e92e63c7f45
](url)
Expected behavior
Visual load circle displays while search is ongoing
Actual behavior
It doesn't show up.
Crash logs
No response
Mihon version
App version: 0.17.0-6990
Android version
A14
Device
Moto G85
Other details
No response
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a short but informative title.
[X] I have gone through the FAQ and troubleshooting guide.
[X] I have updated the app to version 0.17.0.
[X] I have updated all installed extensions.
[X] I will fill out all of the requested information in this form.

can't reproduce


enclient.rb exited abnormally with code 1

Hi, I've installed emacs24 and ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux] I install evernote from melpa but when I try enter in the evernote mode I get this error....
I don't know it the problem can be caused by the ruby version, I don't know much about ruby but when I type whereis ruby I get this
ruby: /usr/bin/ruby /usr/bin/ruby1.8 /usr/lib/ruby /usr/bin/X11/ruby /usr/bin/X11/ruby1.8 /usr/share/man/man1/ruby.1.gz
although when I type ruby -v I get the first ruby version commented before ruby 1.8.7
can you know how fixed it?? thanks!!!
error in process sentinel: enh-command-sentinel: enclient.rb exited abnormally with code 1
/usr/local/lib/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:55:in gem_original_require': no such file to load -- user_store_types (LoadError) 	from /usr/local/lib/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:55:in require'
from /usr/lib/ruby/gems/1.8/gems/evernote-thrift-1.25.1/lib/Evernote/EDAM/user_store.rb:8
from /usr/local/lib/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:55:in gem_original_require' 	from /usr/local/lib/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:55:in require'
from /usr/bin/enclient.rb:43
error in process sentinel: enclient.rb exited abnormally with code 1
/usr/local/lib/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:55:in gem_original_require': no such file to load -- user_store_types (LoadError) 	from /usr/local/lib/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:55:in require'
from /usr/lib/ruby/gems/1.8/gems/evernote-thrift-1.25.1/lib/Evernote/EDAM/user_store.rb:8
from /usr/local/lib/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:55:in gem_original_require' 	from /usr/local/lib/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:55:in require'
from /usr/bin/enclient.rb:43
byte-code: Beginning of buffer

Since we aren't going to support Ruby 1.8, I'm closing this for now. Let me know if it still happens after upgrading to Ruby 1.9.


Integrate exporter registration with OpenTelemetry and opentelemetry-opencensus-shim

Develop and integrate a concept for the exporter registration for traces for the JaegerThriftSpanExporter and for metrics for the Prometheus exporter.
Instead of rebuilding SdkMeterProvider and OpenTelemetrySdk entirely when the configuration of any traces or metrics exporter changes, we want to dynamically register and unregister each exporter service individually, without the need of restarting all other services

2022-01-11-ticket-1269-1279-otel-exporters-otel-upgrade-changenotes.pdf


Should be scenario aware

Every message and message element in Orchestra may be qualified by scenario name. A scenario is use case. This is important because FIX messages and their elements are often overloaded for meaning. For example, an ExecutionReport message is overloaded for booked orders, trades, and rejections, among other use cases. The scenario name disambiguates different use cases of a related message structures.

In the Orchestra schema, the default value of scenario is "base".


Recording/Replay support

Before I go figuring out how to do this myself, is there any known way of recording and replaying responses? Like polly.js.
I'm thinking of trying to give it a bash of writing a polly.js adapter and using this for the replay side of things

http://reactivex.io/ is your friend.

@sechel thanks for the unhelpful opinion.
Not to be ungrateful, but jumping into something like reactivex is no simple task, nor do I think should be undertaken half-heartedly.
An example would have gone a log way to prove the contrary.

Hey @rijnhard, here is an example:
import { Server, WebSocket as MockSocket } from 'mock-socket';
import { ReplaySubject } from 'rxjs/ReplaySubject';

export class MockServer extends Server {

  public queue = new ReplaySubject<string>();

  public constructor(url: string) {
    super(url);
    this.on('connection', this.onConnect.bind(this));
  }

  private onConnect(socket: MockSocket) {
    const subscription = this.queue.subscribe(this.emit.bind(this, 'message'));
    socket.on('message', (message: string) => this.publish(message));
    socket.onclose = () => subscription.unsubscribe();
  }

  public publish(message: string) {
    this.queue.next(message);
  }

}

When a new socket connects it subscribes to the ReplaySubject which in turn dispatches all messages that have been queued so far to the socket. On close we unsubscribe from the socket. A new message can be published by either calling publish or by sending a message via any of the socket connections.


Swift Version

This looks really nice. Have you considered rewriting it in Swift?
I also thought a simpler example would be good where you just specify the number of segments and the color for each in code (and not use the sliders).
Thank you!

Hello.
Thanks for the interest to my project.
Yes, i had a plan to write it in swift too, but now you can use objc code in swift classes.
Sliders it's just an example, you should use delegate methods in your view class.
Have a good coding!
Ask if any question.
Sent from my iPhone

On 13 May 2015, at 06:25, Clifton Labrum<EMAIL_ADDRESS>wrote:
This looks really nice. Have you considered rewriting it in Swift?
I also thought a simpler example would be good where you just specify the number of segments and the color for each in code (and not use the sliders).
Thank you!
—
Reply to this email directly or view it on GitHub.


add code for splitting into individual results and deduplication

WIP

Closing as this was WIP, and no issue assigned to this.

solaf_323


"Network request failed" only when using network shared from iPhone 4G/LTE hotspot

I ran into this problem only when I use network shared from my iPhone 4G/LTE hotspot. This won't be seen when connecting to a WiFi AP. Could anyone help? Here's the detailed error message:
 stack:
  Request.fetch.xhr.onload                                  index.ios.bundle:11123
  XMLHttpRequestBase.$XMLHttpRequestBase_sendLoad           index.ios.bundle:11569
  XMLHttpRequestBase.callback                               index.ios.bundle:11549
  XMLHttpRequest.<anonymous>                                index.ios.bundle:11330
  MessageQueueMixin._invokeCallback                         index.ios.bundle:7446
  Object.ErrorUtils.applyWithGuard                          index.ios.bundle:873
  guardReturn                                               index.ios.bundle:7277
  MessageQueueMixin.invokeCallbackAndReturnFlushedQueue     index.ios.bundle:7459
  messageHandlers.executeJSCall:method:arguments:callback:  debugger-ui:54
  WebSocket.ws.onmessage                                    debugger-ui:80

@josephtsng - does this always happen when using it from your iPhone 4G/LTE hotspot? Could you post the code that caused this as well?

@brentvatne Yes it always happens. The code is mostly from React Native tutorial app with minor editing.
var fetch = require('fetch');
var DetailPage = require('./details')

var REQUEST_URL = 'https://raw.githubusercontent.com/facebook/react-native/master/docs/MoviesExample.json';

  getInitialState: function() {
    return {
      //movies: {},
      dataSource: new ListView.DataSource({
        rowHasChanged: (row1, row2) => row1 !== row2,
      }),
      loaded: false,
    };
  },

  componentDidMount: function() {
    this.fetchData();
  },

  fetchData: function() {
    fetch(REQUEST_URL)
      .then((response) => response.json())
      .then((responseData) => {
        this.setState({
          dataSource: this.state.dataSource.cloneWithRows(responseData.movies),
          loaded: true,
        });
      })
      .done();
  },

  getDataSource: function(movies: Array<any>): ListView.DataSource {
    return this.state.dataSource.cloneWithRows(movies);
  },

  renderLoadingView: function() {
    return (
      <View style={styles.container}>
        <Text>
          Loading movies...
        </Text>
      </View>
    );
  },

  render: function() {
    if (!this.state.loaded) {
      return this.renderLoadingView();
    }
    return (
      <View style={styles.container}>
        <TextInput style={styles.searchbox}
          placeholder="Search a movie..."
        />
        <ListView styles={styles.separator}
          dataSource={this.state.dataSource}
          renderRow={this._renderMovie}
        />
      </View>
    );
  },

  _renderMovie: function(movie){
    return(
      <View>
        <TouchableHighlight onPress={() => this.selectMovie(movie)}>
          <View style={styles.movieRow}>
            <Image
              source={{uri: movie.posters.thumbnail}}
              style={styles.movieImg}
            />
            <View style={styles.rightContainer}>
              <Text style={styles.movieTitle} numberOfLines={2}>
                {movie.title}
              </Text>
            </View>
          </View>
        </TouchableHighlight>
        <View style={styles.cellBorder} />
      </View>
    );
  },

  selectMovie: function(movie){
    this.props.navigator.push({
      title: movie.title,
      component: DetailPage,
      passProps: {movie: movie}
    });
  },
});

@josephtsng what's the error message? You posted just stack trace. Try this simplified example:
var React = require('react-native');
var {
  AppRegistry,
  StyleSheet,
  Text,
  View,
} = React;

var fetch = require('fetch');
var REQUEST_URL = 'https://raw.githubusercontent.com/facebook/react-native/master/docs/MoviesExample.json';

var TestFetch = React.createClass({
  componentDidMount: function() {
    fetch(REQUEST_URL)
      .then((response) => response.json())
      .then((stuff) => console.log(stuff))
      .done();
  },

  render: function() {
    return (
      <View  />
    );
  }
});

@frantic I tried with your simplified example and got the same message as below:
message: Network request failed
ExceptionsManager.js:30 handleException
InitializeJavaScriptAppEngine.js:71 handleErrorWithRedBox
error-guard.js:32 ErrorUtils.applyWithGuard
MessageQueue.js:95 guardReturn
MessageQueue.js:302 MessageQueueMixin.callFunctionReturnFlushedQueue
debugger-ui:54 messageHandlers.executeJSCall:method:arguments:callback:
debugger-ui:80 ws.onmessage

You could try resetting the simulator which sometimes fixes network issues: http://stackoverflow.com/questions/2763733/how-to-reset-iphone-simulator. Could there be something wrong with the URL or your setup (ex: try not using the Chrome debugger, make sure all URLs have hosts publicly accessible from the internet)?

@ide It works! Thanks for giving me a hand. Previously I also encountered another issue that was solved by the same mean. Could you know why it is caused?

@ide Unfortunately after resetting the simulator running either the simple app frantic suggests or the one I posted will freeze. Occasionally I saw the same error messages in the Xcode console, but now I could see the data info (JSON or the ListView) before it hangs. I'll try to switch to the WiFi router to test this and report. However I think it might be some system issue of my own.

Solved after restarting Xcode. It seems there's something wrong with the resource management on my laptop.


Feature Request: Converting nnp -> nnb using c++ libraries

Currently, the conversion of nnp to nnb requires running nnabla_cli convert or python scripts. This is a request to add this functionality to nnabla-cpplib.
I already have a working implementation and am looking to contribute. I am posting this issue and will be creating a fork of the repository for this feature per the contributing guidelines.

Thanks for your interest in our project!
We will review your PR after it is created.
Also, I'll let you know here if our developers have any comments before creating your PR.


support native-image

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

Comparison is base (950bc17) 74.54% compared to head (d07b49d) 74.54%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff            @@
##               main      #46   +/-   ##
=========================================
  Coverage     74.54%   74.54%
  Complexity       77       77
=========================================
  Files            13       13
  Lines          1603     1603
  Branches        126      126
=========================================
  Hits           1195     1195
  Misses          337      337
  Partials         71       71

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


fix(Custom-build-pipeline-dialog): update text for custom build pipeline

Fixes

https://issues.redhat.com/browse/RHTAPBUGS-717
Description

change the text for custom build pipeline dialog
Type of change

[ ] Feature
[ ] Bugfix
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Documentation content changes
[ ] Other (please describe):

Screen shots / Gifs for design review

How to test or reproduce?

Browser conformance:

[ ] Chrome
[ ] Firefox
[ ] Safari
[ ] Edge

/retest

/approve


Add Silabs ZCL8 XML implementation

As discussed in the Software TT meeting of February 2 2021.
Problem
Data Model in XML format lives in the ZAP Github repo as a resource for unit-test. This make the data model unreliable since it could change at anytime.
Summary of Changes
Move the data model xml files in /src/app/zap-templates/zcl/data-model/silabs/. Goal is to remove the silabs subfolder once the CHIP data-model is implemented completely.
Also added the two missing templates. These templates are design to be use within Silabs Zigbee stack. No changes what so ever was made to the templates for CHIP use. These templates are provided as is to serve as a starting point for a CHIP implementation instead of starting from scratch.
Partial Fix of #3637

@saurabhst @jelderton ?


Text layer cannot interpret some words properly.

Attach (recommended) or Link to PDF file here:
Rocket and spacecraft propulsion.pdf
Configuration:

Chrome, firefox, ie latest vesions
Windows 10 Home
PDF.js version: 2.0.489
Is a browser extension: No

Steps to reproduce the problem:

Goto Page 24. See last 6th line. And focus on first word 'fire officer'. See screenshot 1
Inspect in browser on that word to see textLayer div's. See screenshot 2

What is the expected behavior?
Would expect proper text in text layer as 'fire officer'.
What went wrong?
Instead of 'fire officer' it cannot interpret the word and shows "®re ocer".
Screenshot 1:

Screenshot 2:

Can someone point me in right direction to fix it?

I think this has something to do with ligatures, since fi in fire and ff in officer are often combined into one glyph.

@timvandermeij So rendering was fixed in this issue. But in text layer it still cannot interpret it.

There isn't any ToUnicode data to be found anywhere in this PDF file, and the textLayer is thus based on the Encoding data instead (which is not a problem in itself).
However, the issue is that the Encoding data in this PDF file is completely busted[1], and most PDF viewers will not be able to copy anything but total gibberish. For example, neither Adobe Reader (i.e. the reference implementation) or PDFium (in the Chrome browser) can copy any of the text successfully in this file.
This is a bug in the PDF file itself, and please note that the PDF.js library is already doing a much better job here than most other PDF viewers (since the text is mostly copyable).
Unfortunately, with no ToUnicode data available and only incorrect Encoding data, there's simply nothing that can be done here (for ligatures) and this issue is thus invalid.

[1] All Differences arrays have entries of the format Cdd{d}, where d = 1, 2, ..., 9.

@Snuffleupagus I totally with the fact that "PDF.js library is already doing a much better job here than most other PDF viewers".
Thank you so much for the quick answer, now i can further investigate why the PDF file doesn't have required info.

Hi @Snuffleupagus,
I wonder how you checked if a pdf file contains ToUnicode. I want to check if my pdf file is caused by this same issue. thank you.
The word that's not rendered using pdf.js is a ligature (ﬁrst), with pdf.js, ﬁ is removed from the word first. and it is rendered as rst.
Thus, I used gpdf to see what it uncompressed into but not sure how to interpret the output from qpdf.
qpdf --stream-data=uncompress input.pdf output.text is the command I used.
ﬁrst(ligature) becomes (\034rst) in qpdf output below.
BT
/F49 20.6625 Tf 72 605.362 Td [(Chapter)-354(1)]TJ/F50 24.7871 Tf 0 -49.813 Td [(Course)-349(Materials:)-465(Syllabus,)-349(Rubrics,)]TJ 0 -29.888 Td [(Jeopardies)]TJ/F52 14.3462 Tf 0 -57.783 Td [(1.1)-281(Deriv)31(ed)-280(cop)30(y)-280(of)-281(Rubrics)-280(for)-281(Exams)-280(and)-281(Group)-280(Pro)-61(jects)-281(in)-280(Ethics)]TJ/F68 5.9776 Tf 463.85 6.359 Td [(1)]TJ/F77 11.9552 Tf -463.85 -30.17 Td [(1.1.1)-375(Key)-375(to)-375(Links)]TJ/F14 9.9626 Tf 11.624 -18.388 Td [(\017)]TJ/F15 9.9626 Tf 13.283 0 Td [(The)-335(\034rst)-335(link)-335(connects)-335(to)-334(the)-335(Ethics)-335(Bo)28(wl)-335(assignmen)28(t)-335(for)-335(engineering)-335(and)-335(business)-335(studen)28(ts.)-449(It)-335(corre-)]TJ 0 -11.955 Td [(sp)-28(onds)-333(with)-333(the)-334(Ethics)-333(Bo)28(wl)-333(rubric)-333(displa)27(y)28(ed)-333(b)-28(elo)28(w.)]TJ/F14 9.9626 Tf -13.283 -11.955 Td [(\017)]TJ/F15 9.9626 Tf 13.283 0 Td [(The)-354(second)-355(link)-354(connects)-354(to)-355(the)-354(mo)-28(dule)-354(on)-355(dev)28(eloping)-354(rep)-28(orts)-354(on)-355(computing)-354(so)-28(cio-tec)28(hnical)-354(systems.)]TJ 0 -11.955 Td [(It)-272(outlines)-272(an)-272(assignmen)27(t)-272(where)-272(computing)-272(studen)28(ts)-272(carry)-273(out)-272(an)-272(analysis)-272(of)-272(the)-273(i)1(mpact)-273(of)-272(a)-272(computing)]TJ 0 -11.956 Td [(system)-362(on)-363(a)-362(giv)28(en)-362(so)-28(cio-tec)28(hnical)-362(system.)-532(A)-362(rubric)-362(to)-362(this)-363(activit)28(y)-362(used)-362(in)-363(computer)-362(ethics)-362(classes)-362(is)]TJ 0 -11.955 Td [(pro)28(vided)-333(b)-28(elo)28(w.)]TJ/F14 9.9626 Tf -13.283 -11.955 Td [(\017)]TJ/F15 9.9626 Tf 13.283 0 Td [(The)-297(third)-298(link)-297(t)-1(o)-297(the)-297(T)-1(hre)1(e)-298(F)83(ramew)28(orks)-297(mo)-28(dule)-298(corresp)-27(onds)-298(to)-297(a)-298(rubric)-297(b)-28(elo)28(w)-298(that)-297(examines)-298(ho)28(w)-298(w)28(ell)]TJ 0 -11.955 Td [(studen)28(ts)-334(depl)1(o)27(y)-333(the)-333(framew)28(ork)-1(s)-333(on)-333(decision-making)-333(and)-333(problem-solving)-333(outlined)-334(b)28(y)-333(this)-333(mo)-28(dule.)]TJ/F14 9.9626 Tf -13.283 -11.955 Td [(\017)]TJ/F15 9.9626 Tf 13.283 0 Td [(The)-353(\034nal)-352(link)-353(to)-353(Computing)-352(Cases)-353(pro)28(vides)-353(the)-353(reader)-352(with)-353(access)-353(to)-352(Ch)27(uc)28(k)-353(Hu\033)-77('s)-353(helpful)-353(advice)-352(on)]TJ 0 -11.955 Td [(ho)28(w)-333(to)-334(write)-333(and)-333(use)-333(rub)-1(ri)1(cs)-334(in)-333(the)-333(con)28(text)-334(of)-333(teac)28(hing)-333(computer)-333(ethics.)]TJ/F77 11.9552 Tf -24.907 -37.848 Td [(1.1.2)-375(In)31(tro)-31(duction)]TJ/F15 9.9626 Tf 0 -18.388 Td [(This)-305(mo)-28(dule)-305(pro)27(vides)-305(a)-305(range)-306(of)-305(assessmen)28(t)-306(and)-305(study)-306(m)1(aterials)-306(used)-305(in)-305(classes)-306(in)-305(business,)-311(engineering)-305(and)]TJ 0 -11.955 Td [(computer)-322(ethics.)-440(R)-1(ubric)1(s)-323(will)-322(hel)1(p)-323(y)28(ou)-322(understand)-322(the)-322(standards)-322(that)-323(wi)1(ll)-322(b)-28(e)-322(used)-322(to)-322(ass)-1(e)1(s)-1(s)-322(y)28(our)-322(writing)-322(in)]TJ 0 -11.955 Td [(essa)28(y)-361(exams)-360(and)-360(group)-361(pro)-55(jects.)-526(They)-360(also)-360(help)-361(y)28(our)-360(instructor)-361(sta)28(y)-360(fo)-28(cused)-360(on)-361(the)-360(same)-360(set)-361(of)-360(standards)]TJ 0 -11.955 Td [(when)-355(assessing)-354(the)-355(w)28(ork)-354(of)-355(the)-355(c)1(lass.)-509(Jeopardy)-354(exercises)-355(will)-354(help)-355(fo)-27(cus)-355(y)28(our)-355(study)-354(e\033orts)-355(and)-354(help)-355(y)28(ou)-355(to)]TJ 0 -11.956 Td [(iden)28(tify)-387(y)28(our)-386(strengths)-387(and)-386(w)28(eaknesses)-387(as)-386(y)28(ou)-387(prepare)-386(for)-386(class)-387(exams.)-603(A)-387(cop)28(y)-386(of)-387(the)-386(course)-386(syllabus)-387(has)]TJ 0 -11.955 Td [(b)-28(een)-376(included)-376(in)-376(case)-377(y)28(ou)-376(lose)-376(the)-377(cop)28(y)-376(giv)28(en)-377(to)-376(y)28(ou)-376(in)-377(the)-376(\034rst)-376(class.)-574(As)-376(the)-376(semester)-377(progresses,)-387(exp)-27(ect)]TJ 0 -11.955 Td [(this)-340(mo)-28(dule)-340(to)-340(c)28(hange)-340(and)-340(ev)28(en)27(tually)-340(ful\034ll)-340(the)-340(function)-340(of)-340(serving)-340(as)-340(a)-340(p)-28(ortal)-340(to)-340(other)-340(mo)-28(dules)-340(and)-340(online)]TJ 0 -11.955 Td [(materials)-333(relev)56(an)27(t)-333(to)-333(this)-334(and)-333(other)-333(classes.)]TJ/F77 11.9552 Tf 0 -27.885 Td [(1.1.3)-375(Revised)-375(Sc)31(h)1(e)-1(d)1(ule)-375(for)-375(F)93(all)-374(2011)]TJ/F37 9.9626 Tf 0 -18.388 Td [(Revised)-383(Sc)32(hedule)-383(for)-383(F)95(all)-383(2011)]TJ/F78 9.9626 Tf 0 -11.955 Td [([Media)-378(Object])]TJ/F79 6.9738 Tf 76.616 3.615 Td [(2)]TJ
ET


[macOS] Add entitlements config and export template dylib signing to the export.

Same as #46618 for master.

Thanks!


Highlight the replacing entry after Deletion

I noticed the highlight is missing after you delete one entry. I can see the red message about the deleted entry, but green highlight is gone.
It would make sense if the currently selected entry is changed to none after a deletion, but if you press again right away, even no green highlight bar, you can see the one replaces the just-deleted entry's position is deleted. Press again, another takes the place is deleted, and so on.
I think this is a bug for not having the green highlight bar after deletion, if there is still entries to select. I'd like to help fix this, if it's considered as a bug, I only skimming the code, but I think it might an easy fix by @dvorka, then it's better for the author to fix.

Fixed by b769fab.


Use "no-cache" in the buildkit based builds

Changes
We now build three images using buildkit. The first one is
successful, but the 2nd one fails with 401.
I'm not sure why exactly, but the only way to make that work
is to pass the --no-cache flag, which appartently forces
buildkit to obtain a fresh auth token.
Signed-off-by: Andrea Frittoli<EMAIL_ADDRESS>/kind misc
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:

[n/a] Includes tests (if functionality changed/added)
[n/a] Includes docs (if user facing)
[x] Commit messages follow commit message best practices
[x] Release notes block has been filled in or deleted (only if no user facing changes)

See the contribution guide for more details.
Double check this list of stuff that's easy to miss:

If you are adding a new binary/image to the cmd dir, please update
the release Task to build and release this image.

Reviewer Notes
If API changes are included, additive changes must be approved by at least two OWNERS and backwards incompatible changes must be approved by more than 50% of the OWNERS, and they must first be added in a backwards compatible way.


Cloudformation stucks at Neo4jReplicasTask if we set Replica other than 0

Hi @Trane9991 It's me again after I manage to make cluster up and running without any replicas now I've just wanted to add some replicas but after adding replicas using CF, CF fails at Neo4jReplicasTask with status: Property Environment contains duplicate values. I guess there's a syntax error with the template. Would you please take a look at it?

@bkaganyildiz thanks for reporting this, checking...

@bkaganyildiz you were right, there was leftover env variable for Read Replica in the template. Should be fixed with the following commit.
PS: I also updated neo4j to the latest 3.5.11 version, you may want to rebuild your docker image.
Thanks!

Thank you very much 😊


Add profile page with editable username

[x] Add profile page
[x] Add controls for username
[ ] Style page

Heya @KochTobi , This PR was replaced with the #563 due to changes in the design and backend. Thanks for the awesome work though 👍


Error: Cannot find module 'utils' when executing local transform

Hello, trying to use your codeshift-cli, but faced a problem.
I created an example of my codemode repo - https://stackblitz.com/edit/node-uhcfpx?file=index.ts
Here I have a src folder which contains all version transforms. Each has its own motions and so on. Also there is a utils folder with some functions I need across all transformations.
So I'm trying to execute local transform, but getting some errors:

Trying to execute codeshift -t ./src/3.0.0/transform.ts ./tmp/foo.tsx - getting an Error: Cannot find module './src/3.0.0/transform.ts'. Looks like cli cannot find a transform file for some reason. Maybe I'm doing something wrong.
Trying to execute codeshift ./tmp/foo.tsx - it says that "No transforms specified" but then it gives me a prompt where I can choose a transformation (3.0.0) and then it throws an Error: Cannot find module 'utils'. In my project I have a utils folder and I use it in my transformations, but for some reason cli can not resolve it.
Tests with jest works fine, so looks like jest can successfully run my codemode with utils (run jest in console is ok)

Could you please help me to understand and find a problem?

Hey @EliteUser, thanks for raising an issue!
Having a look at the code now and noticed Error: Cannot find module 'utils' is caused by an incorrect import in src/3.0.0/transform.ts & src/3.0.0/motions/test-motion/test-motion.ts.
// src/3.0.0/transform.ts
-import { applyMotions } from 'utils';
+import { applyMotions } from '../../utils';

// src/3.0.0/motions/test-motion/test-motion.ts
-import { renameImportSpecifier } from 'utils';
+import { renameImportSpecifier } from '../../../../utils';

I think you might be expecting this to work via webpack's import alias which isn't setup in this particular repo. To replicate it here, you will have to setup webpack, however IMO the simple relative import approach is best.

Trying to execute codeshift -t ./src/3.0.0/transform.ts ./tmp/foo.tsx - getting an Error: Cannot find module './src/3.0.0/transform.ts'

This is a strange one, this should be working given it passes the transform directly to jscodeshift, I'll have to investigate. However, looks like, as you said, codeshift ./tmp/foo.tsx works in the meantime 🤔. I'll check that and get back to you regardless 😄
Here's a link to a working repro: https://stackblitz.com/edit/node-cufcnk?file=src/3.0.0/motions/test-motion/test-motion.ts
Let me know if you run into any other issues!
Cheers,
Dan.

Hello thank you for the answer!
I think I don't need webpack here, because my repo will be just a cli script. I know, that relative path to utils works, but it is not good approach, because I'm using it in other places, so it will end writing ../../../../utils which is a good candidate for tsconfig's paths. But as I said, it looks like paths works only for checking an resolving in my ide, but when I'm trying to execute transform it says "sorry, I don't undermstand 😢".
I think that tsconfig-paths may help, but I don't understand how to make this thing work, and not sure it will help at all 😄. By the way, tests works fine, so it seems that jest can recognize paths, why node cant?

Oohh now I understand, this is actually because jscodeshift has an internal tsconfig for parsing typescript files which can be found here: https://github.com/facebook/jscodeshift/blob/main/parser/tsOptions.js . Making it really hard to customise from the outside.
One way you can work around this is to transpile your TS files into javascript, similar to what we do with more typical web applications.
For example:

Create a tsconfig.json
Add necessary configuration, including your custom paths
Configure ts to output built codemods into a /dist folder as per normal
Update codeshift.config.js to point to the transpiled transforms in the /dist folder (should be js files instead of ts files)
Done 🎉

For what it's worth, @codeshift/cli does this for you already (except for the custom paths).
All you need to do is run:
npx @codeshift/cli init <project-dir>
Optionally you can then run the following to create a transform automatically 😄
npx @codeshift/cli init <project-dir> --transform 1.0.0

That being said, I think the dist that is currently output isn't exactly right, so I'll need to create a ticket to update it make this automatic in the future.

Adding my stone.
Given the following:

codeshift.config.js
module.exports = {
  maintainers: [],
  targets: [],
  description: '',
  transforms: {
    'legacy-avatar': require.resolve('./dist/legacy-avatar'),
    'legacy-checkbox': require.resolve('./dist/legacy-checkbox'),
    'legacy-icon': require.resolve('./dist/legacy-icon'),
  },
  presets: {},
};

This command fails:
❯ pwd
/Users/benjamin/Dev/search/packages/codemods

❯ codeshift -t ./dist/legacy-checkbox/index.js  ../shared/components/MyFile.js -p babel
Running transform: ./dist/legacy-checkbox/index.js
Processing 1 files...
Spawning 1 workers...
Sending 1 files to free worker...
node:internal/modules/cjs/loader:998
  throw err;
  ^

Error: Cannot find module './dist/legacy-checkbox/index.js'
Require stack:
- /Users/xxxxx/.config/yarn/global/node_modules/jscodeshift/src/Worker.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
    at Module._load (node:internal/modules/cjs/loader:841:27)
    at Module.require (node:internal/modules/cjs/loader:1061:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at setup (/Users/xxxxx/.config/yarn/global/node_modules/jscodeshift/src/Worker.js:91:18)
    at Object.<anonymous> (/Users/xxxxx/.config/yarn/global/node_modules/jscodeshift/src/Worker.js:45:3)
    at Module._compile (node:internal/modules/cjs/loader:1159:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
    at Module.load (node:internal/modules/cjs/loader:1037:32)
    at Module._load (node:internal/modules/cjs/loader:878:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/xxxxx/.config/yarn/global/node_modules/jscodeshift/src/Worker.js'
  ]
}

Node.js v18.12.1
All done.
Results:
0 errors
0 unmodified
0 skipped
0 ok
Time elapsed: 0.257seconds

While this succeeds:
codeshift  ../shared/components/MyFile.js -p babel


Grails 7

Addresses #1014.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Brian Koehmstedt seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


D&D 5e Sheet based on the paper sheet

Notable changes from Actoba's version are in the ReadMe.md.
See the screenshot to see the visual changes.
I plan to expand probably to NPCs from here.

Messed up.


How should we suggest updating data in a readonly namespace?

I would like to start proposing improvements to the NVD data from the nvd.nist.gov namespace on GSD entries in the hope that someday we can find a way to provide those updates back to the source.  The nvd.nist.gov namespace is readonly and populated by the GSD bot, so editing it directly is not supported.  I know at some point @kurtseifried had provided a correction to a CPE and I think that was done by copying the affected property into a namespace nvd.nist.gov under the GSD namespace, but I'd like to understand if that is really how we want this to work moving forward.
I do have an example of a small proposed GSD entry change at https://github.com/cloudsecurityalliance/gsd-database/pull/2400

So several questions/comments:

we want to import the data automatically from various sources as much as possible (scaling/efficiency, etc)
what do we do when that data is broken or incorrect? do we fix it? where?
what happens when (if?) the original source changes it, was that a fix? (or is it more brokan?) do we want someone to review it? do we flag it?
as for where we fix the data, if we write the NVD data in, then fix it, we have that trail in git, e.g. we still have the original data (if anyone cares to go look for it)
if we are fixing it by overwritting it, how do we indicate we changed it from the original? "hey GSD, you have a typo, NVD says CVSS score of X, you say Y"
how do we indicate WHY we changed it, e.g. what evidence caused us to change this data?
if we fix the data outside the namespace where it exists, and then for example have the API overlay our improved data when serving the file, do we put the overlay data in the root namespace, or what?

Also your commit seems to assume the NVD namespace is empty, which it isn't, so the commit needs to be reworked to overwrite (merge? overlay? some word like that) the data into the existing "nvd.nist.gov" space (or else the json breaks, can't have multiple identically named keys).
This also all assumes we want to overwrite the "broken" entry and not just insert a more correct one.

More thinking outloud:
this is why we picked git initially. We can do things like have a random person overwrite a "Read only" namespace and 1) we can revert it easily and 2) we can know exactly who did what when, and with a good commit message why.
So I'm inclined, for now, to allow overwrites of these "Read only" spaces, and we see where this goes and how to best deal with it, worst case we clean it up by overwriting it with the NVD data and we move the altered data somewhere else.

I was basing it off of what you'd done at https://github.com/cloudsecurityalliance/gsd-database/commit/1efab96492253103a6491267aa5517ef44789b40, though once it was fixed in NVD someone else reverted that change.  The bot that runs to populate the nvd.nist.gov is definitely going to clobber anything we put there, so it doesn't really make sense to suggest changes at all.

The whole point to a namespace is keeping it off limits to others. I like that we can't monkey with the NVD or CVE data. What we have is what they have. If they update something, we pick up that update quickly.
We know we want to be able to add enrichment data, that's basically the whole point right now. There's no good way to enrich the existing data without a lot of pain
I think there are two types of enrichment (let's just think about this in the context of NVD for the moment, it will help keep the scope sane)

Correcting an existing read only namespace
Adding new data

For adding new data, I think either adding something the GSD namespace or your own namespace would be fine.
For corrections there isn't a great way I'm aware of that can correct portions of the NVD data

Ok so adding data is easy if you use your own namespace, the trick becomes knowing when/how to overlay it, e.g. let's assume I use seifried.org, and people trust/want to use my data in my namespace. If I have something like (again for the sake of argument):
overlay: { namespaces: { cve.org: [some CVE data like an affects set of data]
are we adding my data to the cve.org data? replacing it entirely?  Because two very common cases are "they got it wrong, here's the correct one" and "they are incomplete, here's more data". When you can only have one item, like a description it's easy, it overwrites the existing one, but when you have lists (e.g. affects, or references) then what?
So we may also need a way to indicate that this data is "in addition to" or "replaces" whatever keys are in the same space. We also need a way to specify what we're adding or overwriting (originally I used the term "overlay", I still can't think of a better one).
One option would be:
overlay: { replace: { namespaces: { cve.org: [some CVE data like an affects set of data]
overlay: { addto: { namespaces: { cve.org: [some CVE data like CVSS environmental data]
Now having said this all, there may be a better solution:
We populate the root osv:{} based on data in the root and in namespaces (e.g. CVE,. NVD, etc.). We can basically just sort it out and write "the best truth" in osv:{}, if people don't l;ike it, they can choose to have their own parsing rules (e.g. "do we trust seifried.org namepsace to overlay for cve.org?") and so on.
My vote, for now:
People write stuff to their namespaces. We parse it and write it to the root osv:{}. This will be a natural extension of the GSD to osv:{} conversion I'm working on (it already has this mindset).

I've been putting some thought into this, and I think I have some ideas.
The GSD namespace is really what we want to be THE source of information. If we want to see updates and/or corrections, that's really what we want. I think we should figure out how to turn existing NVD entries into GSD (OSV) format.
If we want to modify the data, that's the place to do it. There will be some issues with keeping NVD changes current is a different discussion, so let's just ignore that point for the moment.
If someone wants to add their own data, that's where a namespace makes sense I think. Some namespaces will be merged into GSD, some won't. It'll just depend, but the point is your namespace is for whatever you want.

To describes changes to JSON there is JSON Patch defined in RFC 6902.

The challenge here is we then... store the original JSON files and a series of patches and the final file (e.g. so we don't make everyone apply the series to get up to date), or.. something else? For now, the solution is git, this gives us the history, and the ability to roll back, the hosting is easy (github), and distribution (git clone/git pull) all in one tidy bundle.

Fist let me clarify I am not proposing that JSON patch should be used or other forms of diffs. But the question was raised how this could be encoded and before a new format is defined I wanted to mention that others already worked on this problem.
It is also possible to include a JSON patch inside the object that should be changed.
{
  "foo":  1,
  "patch": [
    { "op": "replace", "path": "/foo", "value": 2 }
  ]
}

So the patch could be put into a namespace and there is no need to manage multiple files for one GSD entry.
But this is only a viable solution if you want to store changes to the read only data. Maybe to highlight false data in CVE and co or to clarify contradicting data with GSD and CVE.
I agree with @joshbressers the approach to improve the GSD namespace is the most sensible.


Videos don't get added correctly to the Downloaded Table

When downloading a playlist, because of how I decided to download videos, videos don't get added to the Downloaded Table. One Fix I'm thinking of trying is to put the mark_video_downloaded into finished of the post-processor hooks so that It writes to it properly with all the correct data.

Now it writes to the database, only now it writes each item multiple times.

I'm Thinking of fixing it by just making title unique


Push notification not triggering when app is in background mode or closed IOS

Push notification triggering when the app in the foreground for IOS but unable to get the notification when app closed or goes into the background. I am using the firebase plugin in ionic. Can someone guide me to the right path?
We are using AWS push notification for our backend.
Thanks

I am also having same problem, I face this problem in both IOS and my Huawei android mobile also. Any solution is welcome.

@umarrasheedmebest, have you find the solution?

Still not found any solution

I am having same problem..
I try below url. but I have not solve..
https://github.com/arnesson/cordova-plugin-firebase/issues/888

I have finally found the solution after days of experimentation.
Fortunately, the issue is not with this library.
When construction the payload to Firebase, do not sent a Notification object, you must only send the data object.
If you send notification object then the notification is handled by google server process.
If you only send data object, without notification, then it will be handled by your application's NotificationService as expected.
Instead of
"notification":{
"title": "New Notification!",
"body": "Test"
}
Just send
"data":{
"title": "New Notification!",
"body": "Test"
},


Show preview popup outside of library

Background
The preview popup is clipped by the library window:

Solution
Show preview popup over all other elements on screen

Preview can be shown above all elements inside Liba + canvas, but do not overlap Basic UI of Ketcher

Few fixes to achieve design-implementation consistency:
Card:

[ ] remove width
[ ] remove margin
[ ] set height: 44px;

Card grid (parent div):

[ ] remove width
[ ] set grid-template-columns: repeat(auto-fill, minmax(54px, 1fr));
[ ] add grid-gap: 8px;

Main Library Component:

[ ] set width: 240px;

Please don't forget to run a quick sync with design before final merge :)


Remove the 'dependencies' items

In the new version a new item was added: [dependencies]. Can it be removed somehow? At least by a flag.

+1 [dependencies] increases the size by a third, people assume they're dependencies, if we could just mention the exceptions that would be great. Maybe call out the dev dependencies as a postfix on the line - that way it uses less console rows?


Variable Name Conflicts

Bug Report 🐛
In some cases, editing one variable within web-components will edit another variable making it impossible to distinguish them
Expected Behavior
Update to a variable should be propagated to the same variable in other places in the document, but not to different variables
Current Behavior
Example with the copyright license template:

Both licensor and licensee variables have type AccordParty which seems to confuse the algorithm responsible for propagating variable changes. TemplateMark holds on to the licensee and licensor variables, but those are expanded (since they are complex types) before generating the CiceroMark.
CiceroMark, TemplateMark, and Model

Model
asset CopyrightLicenseContract extends AccordContract {
  /* the effective date */
  o DateTime effectiveDate

  /* licensee */
  o AccordParty licensee
  o String licenseeState
  o String licenseeEntityType
  o String licenseeAddress

  /* licensor */
  o AccordParty licensor
  o String licensorState
  o String licensorEntityType
  o String licensorAddress
...

CiceroMark
        {
          "$class": "org.accordproject.ciceromark.Variable",
          "value": ""Me"",
          "name": "partyId",
          "elementType": "String"
        },
        {
          "$class": "org.accordproject.commonmark.Text",
          "text": " ("Licensee"), a "
        },
        {
          "$class": "org.accordproject.ciceromark.Variable",
          "value": ""NY"",
          "name": "licenseeState",
          "elementType": "String"
        },
        {
          "$class": "org.accordproject.commonmark.Text",
          "text": " "
        },
        {
          "$class": "org.accordproject.ciceromark.Variable",
          "value": ""Company"",
          "name": "licenseeEntityType",
          "elementType": "String"
        },
        {
          "$class": "org.accordproject.commonmark.Text",
          "text": " with offices located at "
        },
        {
          "$class": "org.accordproject.ciceromark.Variable",
          "value": ""1 Broadway"",
          "name": "licenseeAddress",
          "elementType": "String"
        },
        {
          "$class": "org.accordproject.commonmark.Text",
          "text": ", and "
        },
        {
          "$class": "org.accordproject.ciceromark.Variable",
          "value": ""Myself"",
          "name": "partyId",
          "elementType": "String"
        },

TemplateMark
            {
              "$class": "org.accordproject.templatemark.VariableDefinition",
              "name": "licensee",
              "elementType": "org.accordproject.cicero.contract.AccordParty"
            },
            {
              "$class": "org.accordproject.commonmark.Text",
              "text": " ("Licensee"), a "
            },
            {
              "$class": "org.accordproject.templatemark.VariableDefinition",
              "name": "licenseeState",
              "elementType": "String"
            },
            {
              "$class": "org.accordproject.commonmark.Text",
              "text": " "
            },
            {
              "$class": "org.accordproject.templatemark.VariableDefinition",
              "name": "licenseeEntityType",
              "elementType": "String"
            },
            {
              "$class": "org.accordproject.commonmark.Text",
              "text": " with offices located at "
            },
            {
              "$class": "org.accordproject.templatemark.VariableDefinition",
              "name": "licenseeAddress",
              "elementType": "String"
            },
            {
              "$class": "org.accordproject.commonmark.Text",
              "text": ", and "
            },
            {
              "$class": "org.accordproject.templatemark.VariableDefinition",
              "name": "licensor",
              "elementType": "org.accordproject.cicero.contract.AccordParty"
            },

Possible Solution
We need to distinguish between the name of the field to be updated when editing, and the name of the variable in the model (field name in the owning type). For complex types, those are two different things.
Perhaps we should set elementType in the CiceroMark for this example to AccordParty and the name should be licensee -- it is then up to the editor/transformation to decide on the best way to edit or render the complex type (e.g. we could use a popup with Concerto form for some complex types). In the default case that means editing or rendering the identifier (String).
We will need to distinguish between --> AccordParty and AccordParty because we would use different editors for those.
However, the variable partyId is of type String. This could make pop ups difficult to handle.
Also, how would that work when a type has multiple variables (e.g., an Address)?
The bottom line is that you need more context (how did you get to that one variable).
Context
Please see https://github.com/accordproject/web-components/issues/197 for complete context

@jeromesimeon and @dselman can provide more context on this Issue.

@jeromesimeon and @dselman can provide more context on this Issue.

I want to bounce this back to web-components 😛

I would like to refer you to your own comment here https://github.com/accordproject/web-components/issues/197#issuecomment-694903715 😛


PR title modification for a better look

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?
[ ] Have you validated your manifest locally with winget validate --manifest <path>?
[ ] Have you tested your manifest locally with winget install --manifest <path>?
[ ] Does your manifest conform to the 1.0 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

@denelon A minor fix. Please approve.
Microsoft Reviewers: Open in CodeFlow

@OfficialEsco I'll wait to review/approve/merge until after you validate and approve.

Well... This is why i had $CommitType : $PackageIdentifier
PS C:\Users\Esco\GitHub\winget-pkgs> .\Tools\YamlCreate.ps1
ParserError: C:\Users\Esco\GitHub\winget-pkgs\Tools\YamlCreate.ps1:944
Line |
 944 |          git commit -m "$CommitType: `$PackageIdentifier` version $Pac …
     |                         ~~~~~~~~~~~~
     | Variable reference is not valid. ':' was not followed by a valid variable name character. Consider
     | using ${} to delimit the name.

Fixed with git commit -m "$CommitType: $PackageIdentifier version $PackageVersion"
but then this happened #21220
Not sure if this is on my end

I am sorry, it should be: git commit -m "$CommitType`: ``$PackageIdentifier`` version $PackageVersion
This one is tried and tested, so I am very much sure, it will work without throwing any error. Here, it writes

... what should be entered here...


TelemetryClient should be reused, not re-created every time

Hi @SergeyKanzhelev, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no contribution license agreement is required at this point. Real humans will now evaluate your PR.

TTYL, AZPRBOT;


Admin Panel Size Input Method in Add Product Form

Description:
In the “Add Product” form, the size attributes are currently inputted via a text input field. This method is prone to user error and does not provide a clear, standardized way to select size options. Instead, a dropdown menu should be used to allow users to select from predefined sizes such as S, M, L, XL, XXL.
Steps to Reproduce:
1.	Navigate to the “Add Product” form.
2.	Locate the input field for size attributes.
3.	Attempt to enter size values manually.

Expected Behavior:
A dropdown menu should be present instead of a text input field, allowing users to select sizes from a predefined list (e.g., S, M, L, XL, XXL).
Suggested Fix:
•	Replace the current text input field for sizes with a dropdown menu.
•	Populate the dropdown with predefined size options (S, M, L, XL, XXL).

Additional Information:
•	Using a dropdown menu for size selection will improve form usability and reduce errors related to inconsistent size entries.
•	Ensure that the dropdown menu integrates well with the existing form layout and functionality.

Fixed


Odd behavior with set charge limit on PHEV

US region
2021 Kia Niro PHEV
Integration 2.5.5
This car only has AC charging.  It does send an accurate SOC for the HV battery, no problem there.   I'd like to set the charging limit to something other than the default of 100%.   Seems like when I don't check the DC box too, it doesn't show anything in the log.  When I do also check DC and set it to some number - here DC 50, AC 90, this is what happens:
2023-01-25 17:44:21.202 DEBUG (SyncWorker_0) [hyundai_kia_connect_api.KiaUvoAPIUSA] hyundai_kia_connect_api - sending https://api.owners.kia.com/apigw/v1/evc/sts request with {'targetSOClist': [{'plugType': 0, 'targetSOClevel': 50}, {'plugType': 1, 'targetSOClevel': 90}]}
2023-01-25 17:45:05.063 DEBUG (SyncWorker_0) [hyundai_kia_connect_api.KiaUvoAPIUSA] hyundai_kia_connect_api got response {"status":{"statusCode":1,"errorType":1,"errorCode":554,"errorMessage":"Invalid Status Response"}}
2023-01-25 17:45:05.063 ERROR (SyncWorker_0) [hyundai_kia_connect_api.KiaUvoAPIUSA] hyundai_kia_connect_api - Error: unknown error response {"status":{"statusCode":1,"errorType":1,"errorCode":554,"errorMessage":"Invalid Status Response"}}
2023-01-25 17:45:05.073 ERROR (MainThread) [homeassistant.core] Error executing service: <ServiceCall kia_uvo.set_charge_limits (c:01GQNHN0JDXS9TE5PWDKRYHZXP): device_id=89c7027a094fdc54854e0d43d83b1aeb, ac_limit=90, dc_limit=50>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 1773, in catch_exceptions
await coro_or_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1792, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/config/custom_components/kia_uvo/services.py", line 114, in async_handle_set_charge_limit
await coordinator.set_charge_limits(vehicle_id, int(ac), int(dc))
File "/config/custom_components/kia_uvo/coordinator.py", line 226, in set_charge_limits
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 149, in set_charge_limits
return self.api.set_charge_limits(
File "/usr/local/lib/python3.10/site-packages/hyundai_kia_connect_api/KiaUvoAPIUSA.py", line 651, in set_charge_limits
response = self.post_request_with_logging_and_active_session(
File "/usr/local/lib/python3.10/site-packages/hyundai_kia_connect_api/KiaUvoAPIUSA.py", line 36, in request_with_active_session_wrapper
return func(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/hyundai_kia_connect_api/KiaUvoAPIUSA.py", line 81, in request_with_logging_wrapper
raise RequestException
...and...
023-01-25 17:50:12.004 DEBUG (SyncWorker_4) [hyundai_kia_connect_api.KiaUvoAPIUSA] hyundai_kia_connect_api - last_updated_at - before<PHONE_NUMBER>4746
2023-01-25 17:50:12.004 DEBUG (SyncWorker_4) [hyundai_kia_connect_api.KiaUvoAPIUSA] hyundai_kia_connect_api - last_updated_at - after 2023-01-25 22:47:46+00:00
2023-01-25 17:50:12.005 DEBUG (SyncWorker_4) [hyundai_kia_connect_api.KiaUvoAPIUSA] hyundai_kia_connect_api - SOC Levels couldn't be found. May not be an EV.
2023-01-25 17:50:12.411 DEBUG (MainThread) [custom_components.kia_uvo.coordinator] Finished fetching kia_uvo data in 3.727 seconds (success: True)
2023-01-25 17:50:12.476 DEBUG (SyncWorker_1) [hyundai_kia_connect_api.VehicleManager] hyundai_kia_connect_api - Time differential in seconds: 146.476049
2023-01-25 17:50:12.476 DEBUG (SyncWorker_1) [hyundai_kia_connect_api.KiaUvoAPIUSA] hyundai_kia_connect_api - sending https://api.owners.kia.com/apigw/v1/cmm/gvi request with {'vehicleConfigReq': {'airTempRange': '0', 'maintenance': '1', 'seatHeatCoolOption': '0', 'vehicle': '1', 'vehicleFeature': '0'}, 'vehicleInfoReq': {'drivingActivty': '0', 'dtc': '1', 'enrollment': '1', 'functionalCards': '0', 'location': '1', 'vehicleStatus': '1', 'weather': '0'}, 'vinKey': ['REMOVED']}
and later:
2023-01-25 17:53:25.052 DEBUG (MainThread) [custom_components.kia_uvo.coordinator] Finished fetching kia_uvo data in 1.986 seconds (success: True)
2023-01-25 17:53:25.071 ERROR (MainThread) [homeassistant.core] Error executing service: <ServiceCall number.set_value (c:01GQNJ49J33YCTYHT0BD4BCW09): value=90.0, entity_id=['number.evie_ac_charging_limit']>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 1773, in catch_exceptions
await coro_or_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1792, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 678, in entity_service_call
future.result()  # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 958, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 715, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/number/init.py", line 388, in async_set_value
await entity.async_set_native_value(native_value)
File "/config/custom_components/kia_uvo/number.py", line 114, in async_set_native_value
await self.coordinator.set_charge_limits(self.vehicle.id, ac, dc)
File "/config/custom_components/kia_uvo/coordinator.py", line 226, in set_charge_limits
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 149, in set_charge_limits
return self.api.set_charge_limits(
File "/usr/local/lib/python3.10/site-packages/hyundai_kia_connect_api/KiaUvoAPIUSA.py", line 643, in set_charge_limits
"targetSOClevel": int(dc),
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
Let me know if there's more info you need.  These are clips from the full debug log.  It's otherwise full of of info I'd have to scrub to be comfortable posting publicly.

Our code currently expects both values.   I can update to only send a single and we can see if that works?

Yes, I'm happy to test.  I'm not sure the function even works with my car, though feel it's worth the time to try.
FYI my Kia Connect Android app also has this apparent function, both DC and AC limits - again noting DC is N/A for the PHEV.    When I similarly attempt to set a charge limit in the app, it churns for about 30 seconds then returns "Invalid Status Response."

Does any value work in the Kia app?

I haven't tried all values but know at least 80 and 90 don't.   The DC percent slider also being there (and shouldn't be) is strange for a supposed production-quality app.   My two guesses:

It does work with the PHEV, but only if the DC percent isn't passed.  This would also mean the Kia Connect app just has a bug - what I'm hoping.  That app does a few other strange things, so it's possible.

It actually works only for the EV, and the API is mistakenly presenting SOC limit info for my PHEV.   However, the car does know its HV battery SOC, and can stop and start the charge on a schedule and/or manually via the app/API.  That is, the charging system, albeit lacking a DC connection and with a smaller HV battery, seems to work basically the same as the EV.

Today we request both values.  So it sounds like if we check if no AC is passed we just send the DC it should work?

From the vehicle info you should get for targetSOC both AC and DC from a current EV, or from a PHEV, just AC.    At some point Kia/Hyundai PHEVs may also get DC fast charging.  None I'm aware of have it today.
If vehicle info only returns a targetSOClevel for plugType 1 (AC) then I believe a max charge level request should also contain only a reference to plugType 1, and not one for plugType 0.  The proper form of the request - assuming the API will accept something for it, could be:
'targetSOC":[{'plugType':1,'targetSOClevel':90}] - as seen in info, or maybe
'targetSOClist':[{'plugType':1,'targetSOClevel': 90}] - request without DC plugType 0
Happy to test either/both.

Since this doesn't work in the native app I'm not sure we fight with it?  Would be quick to test in python though if you are willing to do that.  I'm not comfortable putting it into this release though.
I can walk you through testing it with our library if interested.

If you could tell me how to test it myself - yes, thank you.   Understood you don't want to put an experiment into the release.

Head over here and download the files either with github desktop or manually: https://github.com/Hyundai-Kia-Connect/hyundai_kia_connect_api
Then create a text file that contains this.   Edit the file to put your username password and regions in based on the link above.  Region and brand need to be set to the correct number for you.  You will also need to input your vehicle ID into the last line.  You can get that from your home assistant logs.  Or running print(vm.vehicles) where the set charge limits command is.
`from pathlib import Path
import logging
import sys
import os
path_root = r"C:\Users\jayde\OneDrive\Documents\GitHub\main\hyundai_kia_connect_api"
sys.path.append(str(path_root))
from hyundai_kia_connect_api import *
from hyundai_kia_connect_api.exceptions import *
logging.basicConfig(stream=sys.stdout, level=logging.DEBUG, format='%(asctime)s %(name)s %(levelname)s:%(message)s')
logger = logging.getLogger(name)
vm = VehicleManager(region=2, brand=1, username="email", password="password", pin="pin")
vm.update_all_vehicles_with_cached_state()
vm.set_charge_limits("vehicleID", 80, 80)
`
Once you have the above working report back.  I will need to edit and provide you a modified version of this: https://github.com/Hyundai-Kia-Connect/hyundai_kia_connect_api/blob/817de72b47bcf9c3f1fc7e1d1ccb65b8f629bfea/hyundai_kia_connect_api/KiaUvoAPIUSA.py#L639-L650
Essentially removing the lines for DC.

Do you mean VIN for vehicleID below? I'm in region 3 (USA) and put my email, password and left PIN a null string since it's unset.
Here's what I see:
./test.py
Traceback (most recent call last):
File "/rebo/tmp/hyundai_kia_connect_api/./test.py", line 19, in
vm.set_charge_limits(" my_VIN ", 80, 80)
File "/rebo/tmp/hyundai_kia_connect_api/hyundai_kia_connect_api/VehicleManager.py", line 150, in
set_charge_limits
self.token, self.get_vehicle(vehicle_id), ac, dc
File "/rebo/tmp/hyundai_kia_connect_api/hyundai_kia_connect_api/VehicleManager.py", line 67, in
get_vehicle
return self.vehicles[vehicle_id]
KeyError: ' my_VIN '
From: "cdnninja" @.>
To: "Hyundai-Kia-Connect/kia_uvo" @.>
Cc: "dblacknc" @.>, "Author" @.>
Sent: Sunday, January 29, 2023 8:43:17 PM
Subject: Re: [Hyundai-Kia-Connect/kia_uvo] Odd behavior with set charge limit on PHEV (Issue #580)
Head over here and download the files either with github desktop or manually: [ https://github.com/Hyundai-Kia-Connect/hyundai_kia_connect_api | https://github.com/Hyundai-Kia-Connect/hyundai_kia_connect_api ]
Then create a text file that contains this. Edit the file to put your username password and regions in based on the link above. Region and brand need to be set to the correct number for you. You will also need to input your vehicle ID into the last line. You can get that from your home assistant logs. Or running print(vm.vehicles) where the set charge limits command is.
`from pathlib import Path
import logging
import sys
import os
path_root = r"C:\Users\jayde\OneDrive\Documents\GitHub\main\hyundai_kia_connect_api"
sys.path.append(str(path_root))
from hyundai_kia_connect_api import *
from hyundai_kia_connect_api.exceptions import *
logging.basicConfig(stream=sys.stdout, level=logging.DEBUG, format='%(asctime)s %(name)s %(levelname)s:%(message)s')
logger = logging.getLogger( name )
vm = VehicleManager(region=2, brand=1, username="email", password="password", pin="pin")
vm.update_all_vehicles_with_cached_state()
vm.set_charge_limits("vehicleID", 80, 80)
`
Once you have the above working report back. I will need to edit and provide you a modified version of this: [ https://github.com/Hyundai-Kia-Connect/hyundai_kia_connect_api/blob/817de72b47bcf9c3f1fc7e1d1ccb65b8f629bfea/hyundai_kia_connect_api/KiaUvoAPIUSA.py#L639-L650 | https://github.com/Hyundai-Kia-Connect/hyundai_kia_connect_api/blob/817de72b47bcf9c3f1fc7e1d1ccb65b8f629bfea/hyundai_kia_connect_api/KiaUvoAPIUSA.py#L639-L650 ]
Essentially removing the lines for DC.
—
Reply to this email directly, [ https://github.com/Hyundai-Kia-Connect/kia_uvo/issues/580#issuecomment-1407863304 | view it on GitHub ] , or [ https://github.com/notifications/unsubscribe-auth/AAI4XA5AZXVLEW4CFNGZNKTWU4MDLANCNFSM6AAAAAAUG4LO6Y | unsubscribe ] .
You are receiving this because you authored the thread. Message ID: @.***>
--
That men do not learn very much from the lessons of history is the most important of all the lessons of history.
-Aldous Huxley

Looks like I needed to add:
vm.check_and_refresh_token()
Starting to get some output now, will update within the next few hours.

Let me know if you need lines prior to this.
2023-01-30 16:56:37,205 hyundai_kia_connect_api.KiaUvoAPIUSA DEBUG:hyundai_kia_connect_api - SOC Levels couldn't be found. May not be an EV.
2023-01-30 16:56:37,205 hyundai_kia_connect_api.KiaUvoAPIUSA DEBUG:hyundai_kia_connect_api - sending https://api.owners.kia.com/apigw/v1/evc/sts request with {'targetSOClist': [{'plugType': 0, 'targetSOClevel': 80}, {'plugType': 1, 'targetSOClevel': 80}]}
2023-01-30 16:56:37,206 urllib3.connectionpool DEBUG:Starting new HTTPS connection (1): api.owners.kia.com:443
2023-01-30 16:57:21,712 urllib3.connectionpool DEBUG:https://api.owners.kia.com:443 "POST /apigw/v1/evc/sts HTTP/1.1" 200 98
2023-01-30 16:57:21,715 hyundai_kia_connect_api.KiaUvoAPIUSA DEBUG:hyundai_kia_connect_api got response {"status":{"statusCode":1,"errorType":1,"errorCode":554,"errorMessage":"Invalid Status Response"}}
2023-01-30 16:57:21,716 hyundai_kia_connect_api.KiaUvoAPIUSA ERROR:hyundai_kia_connect_api - Error: unknown error response {"status":{"statusCode":1,"errorType":1,"errorCode":554,"errorMessage":"Invalid Status Response"}}
Traceback (most recent call last):
File "/rebo/tmp/hyundai_kia_connect_api/./test.py", line 20, in
vm.set_charge_limits("463355", 80, 80)
File "/rebo/tmp/hyundai_kia_connect_api/hyundai_kia_connect_api/VehicleManager.py", line 148, in set_charge_limits
return self.api.set_charge_limits(
File "/rebo/tmp/hyundai_kia_connect_api/hyundai_kia_connect_api/KiaUvoAPIUSA.py", line 651, in set_charge_limits
response = self.post_request_with_logging_and_active_session(
File "/rebo/tmp/hyundai_kia_connect_api/hyundai_kia_connect_api/KiaUvoAPIUSA.py", line 36, in request_with_active_session_wrapper
return func(*args, **kwargs)
File "/rebo/tmp/hyundai_kia_connect_api/hyundai_kia_connect_api/KiaUvoAPIUSA.py", line 81, in request_with_logging_wrapper
raise RequestException
requests.exceptions.RequestException

Looks like it doesn't like not having DC.  Could try sending blank DC value.

For DC:
10-99, 100: 554 Invalid status response
1, 0, -1, '': 9001 Incorrect request payload format
For the invalid status response - looks like it's talking the car, because there's a 30 sec or so pause.   The payload error comes back right away.

My gut is this won't work, Since the native app doesn't work either.

Thanks for the help in how to directly use the API.   I'll likely continue to experiment and pursue this on my own.   The "feature" being there in the app yet not working is strange.   Perhaps for the PHEV it's a different call than evc/sts (just speculating).
Closing for now then.  I'll reopen and share details if I discover there's a way to make it work.


python310Packages.sgp4: remove tox

Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

@ofborg eval

When building:
python3.10-sgp4> running test
python3.10-sgp4> WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox.

Probably better to switch the check to use tox instead.

We should write into the checkPhase what tox is doing especially when it executes pytest and instead use pytestCheckHook but thats fine for now.


"name.short", "name.full", "description.short", "description.full" fields are required in localizaion file

If we don't enter any value under properties "name.short", "name.full", "description.short", "description.full" in localization file, the app is not getting installed throwing error.
Error while reading manifest.json: root | Required properties are missing from object: ["name.short","name.full"]
Error while reading manifest.json: root | Required properties are missing from object: ["description.short","description.full"]
so, it would be great to highlight in this doc mentioning "name.short", "name.full", "description.short", "description.full" are required properties in localization file

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

ID: 2a8d718e-46c9-d26b-0483-635832903842
Version Independent ID: 32be5df3-2749-3854-fa01-a03e72e96696
Content: Localize JSON schema reference - Teams
Content Source: msteams-platform/resources/schema/localization-schema.md
Service: msteams
GitHub Login: @surbhigupta
Microsoft Alias: lajanuar

Hi @surbhigupta12 - Please help here to update the doc accordingly.


Docker reporting 'bad certificate' with docker commands

Hi,
I am getting following error with any docker command that I run:
docker run hello-world
The server probably has client authentication (--tlsverify) enabled. Please check your TLS client certification settings: Post https://<IP_ADDRESS>:2376/v1.20/containers/create: remote error: bad certificate

Even with simple docker version command.
My system info:
OS : Mac OS X Yosemite (10.10.5)
docker version:
1.8.3

docker info:
Client:
 Version:      1.8.3
 API version:  1.20
 Go version:   go1.4.2
 Git commit:   f4bf5c7
 Built:        Mon Oct 12 18:01:15 UTC 2015
 OS/Arch:      darwin/amd64

uname -a:
Darwin ravishk.local 14.5.0 Darwin Kernel Version 14.5.0: Tue Sep  1 21:23:09 PDT 2015; root:xnu-2782.50.1~1/RELEASE_X86_64 x86_64

Steps to reproduce

Install docker package from docker.com, using following guide http://docs.docker.com/mac/step_one/
Go to Terminal and do docker run hello-world

You'll the TLS verify error, instead output stated in the getting started guide. I've used Docker on Ubuntu earlier, but, never faced this issue before.
Ravish

Hello, seems like this ought to go in github.com/docker/toolbox.

@cpuguy83 thanks. If this belongs to toolbox, let me close this and raise a it there.


AttributeError: type object 'User' has no attribute 'objects'

Im trying to migrate app and getting following error-
File "/opt/myvirtual/proj_virtualenv/lib/python3.5/site-packages/helpdesk/migrations/0002_populate_usersettings.py", line 35, in populate_usersettings
for u in User.objects.all():
AttributeError: type object 'User' has no attribute 'objects'
because apps.get_model() in that file returning <class 'fake.User'>

Are you starting a completely new instance, or migrating from an older release of django-helpdesk?
Offhand it sounds like you might not have any users created. Please note that django-helpdesk requires an already working instance of django to get started. More details are in the installation documentation (check the doc/ folder).
Also I see you're using Python3. Be aware the current release (0.1.18) doesn't officially support py3. You can use the master branch as it is beta for upcoming 0.2 release.

Now I am using 0.1.18
When will you release 0.2?

I don't think there's a firm date yet but I expect it fairly soon (on the order of a few weeks maybe?). We're expanding our test coverage to try to ensure there's no regressions and iron out Py2->Py3 bugs.

Were you able to migrate successfully to 0.2? I'm going to close this for now as part of prep for 0.3 release but please reopen if you have trouble and I can try to help. Thanks!


Fix reply timeout

Hi! You are right that current timeout handling is broken. It is effectively disabled since we never call setTimeout.
But I think your fix needs a bit more to be ideal:

Please add setTimeout(None) to connectionLost. Your test_connection_lost doesn't fails with Reactor was unclean only because you monkey-patch callLater. In real life setTimeout will leak delayed call if it is not cancelled in connectionLost

resetTimeout doesn't cancels watchdog timer, it only reschedules it to timeOut seconds from now. So if we issue a command, receive a reply and then connection will be idle for timeOut seconds, watchdog timer will fire and will close the connection. I don't think this is what we want. Timeout should be disabled if we received responses to all commands that we issued. This can be done by adding something like this to the end of replyReceived:

if not self.replyQueue.waiting:
    self.setTimeout(None)

calling setTimeout multiple times with same argument is effectively the same than calling resetTimeout: it just calls self.__timeoutCall.reset(period). So, each command we send thru connection will reschedule watchdog timer and if we send commands regularly, timeout will never fire even we are not receiving any replies from Redis.

Yes you are right, TimeoutMixin is intended for server side protocol handling. And this whole timeout handling is much more complicated than it first looked. I'm afraid I don't have time nor deep enough knowledge of the code (or Twisted itself) at this time to have proper fix for it. I'll close this PR and create an issue instead.

Created #101

Thanks!


Preference Sheet

[ ] In Navigation Bar, instead of back icon, there should be "back" text.
[ ] Should be in Cupertino style.
[ ] Compatible with dark mode .

What is this issue? Explain in detail.

I have fixed this issue, adding it directly to my master, you can review this and merge if you find it correct.