Bug: Wrong query being built when in presence of foreign key

Describe the bug
This is the meaningful part of the entity causing trouble:
@Entity()
export class UserTask2 extends BaseEntity<UserTask2, 'id'> {
  @PrimaryKey()
  id!: number;

  @Property({ type: 'jsonb', nullable: true })
  metadata?: Record<string, any>;

  @ManyToOne('App')
  app: App;

  constructor({ metadata, app }: { metadata: Record<string, any>; app: App }) {
    super();
    this.metadata = metadata;
    this.app = app;
  }

  public static async fetchTasks({
    em,
    app,
  }: {
    em: EntityManager;
    app: App;
  }): Promise<UserTask2[]> {
    // const filterQuery: FilterQuery<UserTask> = {
    //   app,
    // };
    // const filterQuery: any = {};
    const filterQuery: any = {
      app,
    };
    filterQuery.metadata = {
      $contains: { vin: '1N6AD0EV8FN737744' },
    };
    const tasks: UserTask2[] = await em.find(UserTask2, filterQuery);
    return tasks;
  }
}

Whenever I try to use the method fetchTasks, I get an error saying the property "vin" does not exist on the model...which I know it doesn't. But it shouldn't be constructing the query that way. If I silence the error and inspect what query is being built, it yields:
  knex:client acquired connection from pool: __knexUid1 +979ms
  knex:client releasing connection to pool: __knexUid1 +2ms
[query] select "e0".* from "user_task2" as "e0" where "e0"."app_id" = 1 and "e0"."metadata" @> '{"e0.vin":"1N6AD0EV8FN737744"}' [took 2 ms]

where we can see that it is actually trying to do something very strange.
When I remove the App part of the filter query, this is the query that is built:
  knex:client acquired connection from pool: __knexUid1 +867ms
  knex:client releasing connection to pool: __knexUid1 +2ms
[query] select "e0".* from "user_task2" as "e0" where "e0"."metadata" @> '{"vin":"1N6AD0EV8FN737744"}' [took 2 ms]

which just works fine!
Stack trace
Trying to query by not existing property UserTask2.vin. Trace
Error: Trying to query by not existing property UserTask2.vin
    at /Users/juan/pact/user-task-service/node_modules/@mikro-orm/knex/query/CriteriaNode.js:27:27
    at Array.forEach (<anonymous>)
    at new CriteriaNode (/Users/juan/pact/user-task-service/node_modules/@mikro-orm/knex/query/CriteriaNode.js:18:48)
    at new ScalarCriteriaNode (/Users/juan/pact/user-task-service/node_modules/@mikro-orm/knex/query/ScalarCriteriaNode.js:6:1)
    at Function.createScalarNode (/Users/juan/pact/user-task-service/node_modules/@mikro-orm/knex/query/CriteriaNodeFactory.js:22:22)
    at Function.createNode (/Users/juan/pact/user-task-service/node_modules/@mikro-orm/knex/query/CriteriaNodeFactory.js:19:21)
    at Function.createObjectItemNode (/Users/juan/pact/user-task-service/node_modules/@mikro-orm/knex/query/CriteriaNodeFactory.js:47:25)
    at /Users/juan/pact/user-task-service/node_modules/@mikro-orm/knex/query/CriteriaNodeFactory.js:38:28
    at Array.reduce (<anonymous>)
    at Function.createObjectNode (/Users/juan/pact/user-task-service/node_modules/@mikro-orm/knex/query/CriteriaNodeFactory.js:37:45)

To Reproduce
Steps to reproduce the behavior:

Create a model called App with an int primary key
Create a model as described in the bug description
Attempt to use the function fetchTasks

Expected behavior
This is the query I would expect to see:
  knex:client acquired connection from pool: __knexUid1 +979ms
  knex:client releasing connection to pool: __knexUid1 +2ms
[query] select "e0".* from "user_task2" as "e0" where "e0"."app_id" = 1 and "e0"."metadata" @> '{"vin":"1N6AD0EV8FN737744"}' [took 2 ms]

Additional context
The models I actually have have a lot more properties, but I was able to reproduce this error with just this submodel.
Versions

Dependency
Version

node
v12.18.4

typescript
4.3.4

mikro-orm
4.5.6

your-driver
pg

You need to use type: 'json' or specify type: JsonType. type is for runtime type, not for the database specific column type (columnType option). type: 'json' maps to jsonb column type in postgres.
  @Property({ type: 'json', nullable: true })
  metadata?: Record<string, any>;

  // or

  @Property({ type: JsonType, nullable: true })
  metadata?: Record<string, any>;

(you can still control the column type via additional columnType option, but as mentioned above, for jsonb this is enough as it is the default in pg)

OMG. I need to change all my (very few) jsonbs now. I believe this was the first time I actually had to use the column for querying, and everything had worked well up to that point. I implemented the first models when v4 wasn't out yet, so I had totally skipped the neat part of the documentation where you talked about JsonType, and I wrongly assumed i had to type it as jsonb for it to be that in Postgres.
Hopefully this closed issue might help someone else who missed that!
I was really confused with the behavior, but I guess it serializes a "jsonb" in a strange way when there is the presence of an FK only
Thanks for quick turn around!

i'll definitely spend some time improving the docs before v5 is out, this should be mentioned/linked in the defining entities page too, and i hope that with the new t type map it will be easier thanks to autocomplete. in the end we can add the jsonb key there as well (resolving to the same JsonType)


[Question] add Marker on tap

Hello, I am creating the map programmatically. I'd like to add a marker on tapped location on the map. I know how to add markers to the map programmatically, but don't understand how to register a tap handler and get tapped coordinates. Can you point me to the solution please?

Hmm, interesting one, I don't think you can currently get the tapped coordinates. We'll need to look in the Mapbox SDK to see if that's possible.

According to official docs it seems to be very possible.
paraphrasing code example:
map.on('mousedown', function (e) {         JSON.stringify(e.lngLat); })
I am willing to help out with the implementation, although I haven't really developed a NativeScript plugin before.

Appreciate you help looking up the code in the official doc, but that's the JS API whereas this plugin uses the native SDK's. Could be there's something similar.

Relevant Android API

The Android implementation is ready to go, check the doc. iOS is not likely to follow quickly as the Mapbox folks didn't expose an easy to use function yet. I hope this will at least offer some value to you.
Available from GitHub, not op npm yet.

Android support landed in 2.2.3.

Hello, i might undertand your problem i had the same, on the mapbox.shox().then() callback, set an on map click listener, that promise never resolve, everything set there is valid for the rest of the instance.
only problem, which is the same as i got, every markers set after the initial .show() call, won't appear on the current session... and so i'm looking for a way to refresh map, anyway basically you'd like to :
 MapModel.prototype.doShow = function() {
mapbox.show({
            accessToken: accessToken,
            style: mapbox.MapStyle.DARK,
            blablabla
}).then(
            function(result) {
                mapbox.setOnMapClickListener(function(point) {
                    listener(point);
               });
           }
)}

iOS support via #153


Handlebars profile calender

need to get the google calander api to function with the profile.handlebars code.

went with calendly, Matt has been spearheading


Data Science with Python : Introduction to Keras

Welcome to 'DSWP' Team, good to see you here
This issue will helps readers in giving all the guidance that one needs to learn about Introduction to Keras. Tutorial to Keras and how it's Implied using sample code
To get assigned to this issue, add your serial numbers mentioned in the spreadsheet of "Data Science with Python", the approach one would follow and choice you prefer (Documentation, Audio, Video). You can go with all three or any number of options you're interested to work on.
If you had referred any resources, add them up in "DS Resources". Similarly if you had used datasets, include them in "DS Datasets".
Domain : Deep Learning
Mentors Assigned : Kareem Negm / Arya Patel
Points to Note :
The issues will be assigned on a first come first serve basis, 1 Issue == 1 PR.
"Issue Title" and "PR Title should be the same. Include issue number along with it.
Changes should be made inside the Datascience_With_Python/ directory & Datascience_With_Python branch.
Follow Contributing Guidelines & Code of Conduct before start Contributing.
This issue is only for 'GWOC' contributors of 'DSWP' domain.
All the best. Enjoy your open source journey ahead. 😎

Name: Freny
serial no: 707
Type: Documentation
Approach: Explaining Keras using sample codes in python

Issue is assigned to @freny24 for documentation

Hello @prathimacode-hub  , Please put me up as an Assignees

@prathimacode-hub , Mam
I am M. Ashish Reddy. I would like to do video on this issue.
Batch number: 5
serial number:174.
Approach: A detailed explanation with examples and real life uses

Hello, I am Deepthi M with serial number:172, Batch-5. I would like to do audio on this issue.
My approach: a detailed explanation

Issue assigned to @deepthi1107 for audio contribution


Component shows cached value due to non-unique react key

Describe the Bug
If you have a component with a placeholder and you add a child component to that placeholder, then the react key is the uid of the rendering:

When these components are configured on a branch template, then every page created based on that branch template has the same components with the same rendering uid.
If you navigate between two pages that were created from the same branch template, then the application uses the cached value of the child component. Only reloading the page shows the correct data.
To Reproduce
Use an XM Cloud based SXA Headless solution:

Create a simple component with a placeholder
Create a child component with a datasource for a custom text that you can add to that placeholder
Configure a branch template with the component and 1 or more child components added
Create two pages based on the branch template with different text in the child components
Use client-side navigation between those two pages
The second page should show the values from the previous page

Expected Behavior
The correct values are shown without having to refresh the page.
Possible Fix
The key of the react component should be unique. Instead of using the uid of the rendering, you might want to use a combination of page item id and rendering id.
Provide environment information

Sitecore Version: XM Cloud (latest as of August 16th, 2023)
JSS Version: 21.2.3
Browser Name and version: Brave (1.57.47)
Operating System and version (desktop or mobile): Windows 11 Desktop
Link to your project (if available):

@studert We couldn't reproduce this issue locally. Can you, please, provide more details of steps to reproduce or you make a recording of the setup, etc? It will help us to investigate the problem

Thank you for investigating this and helping us find the problem.


When I release my app on Google Play Console, current scene does NOT switch to next scene.

Tested versions
Godot Engine v4.2.1.stable.official [b09f793f5]
System information
macOS Sonoma v14.1.2
Issue description
I'm not sure that this is a bug or my coding error, but I couldn't get what happened to me.
When I release my app on Google Play Console, current scene does NOT switch to next scene.
I used get_tree().change_scene_to_file("res://Src/Start/Start.tscn") to  switch scene.
First time to load some scene had no problem, but the second time to load the same scene does NOT work.
Steps to reproduce
Note: My app contains some ads. If it is not nice, please let me know and I will fix it to stop ads temporarily.

Clone my app from my GitHub repository. Export android .apk file and install it to local Android evice.

Download the app from Google Play

Play each game(by tapping the button "Beginner" to start) to the scene shown on the picture below.

Tap any enabled button

App from .apk worked, however app from Google Play does Not work.

Minimal reproduction project (MRP)
My Working GitHub Repository

The code is okay and the presentation is good.
But "result.gd" is really bad. It's just been copy-pasted together with no understanding, there are many errors. Delete it all, verify that change_scene_to_file() works and then start again, do it properly.
# 書き直してください

extends Node2D
var interstitial_ad : InterstitialAd
var interstitial_ad_load_callback := InterstitialAdLoadCallback.new()
var full_screen_content_callback := FullScreenContentCallback.new()

func _ready():
    pass

func _on_button_pressed():
    get_tree().change_scene_to_file("res://Src/Start/Start.tscn")

Thank you so much for your comment!!
I tried the method destroy() but it doesn't work.
When I was researching my error, I found my error occurs when I export my app WITHOUT debug mode. So I wondered what is happening WITH debug mode. I watched my console with Android Studio WITH debug mode my app, and came up with the error
USER ERROR: Condition "!is_inside_tree()" is true. Returning: false
2024-03-28 02:15:10.209 13483-13588 godot                   com.mygame.android.mathing           E     at: can_process (scene/main/node.cpp:762)

With searching the error above, I found the issue( https://github.com/godotengine/godot/issues/48607 ) like this problem. But I couldn't understand how to solve it.
If you know anything else about this problem, I would appreciate your idea.


Should not look under sourcedata/ or derivatives/

sourcedata/ might (or not) contain some BIDS (like) dataset... mriqc should not even look into it AFAIK (or does it do QC of source data as well?)
in our case mriqc fails since sourcedata/ contains a datalad dataset but without content fetched... then mriqc blows with:
chrispycheng@smaug:~/proj/nuisance/data/dbic-deid2-mriqc$ less logs/crash-20201006-034828-chrispycheng-metadata.a000-87b262d4-c9c5-4ead-8ec6-ae9f52979405.txt
Node: workflow_enumerator.anatMRIQCT1w.ComputeIQMs.metadata
Working directory: /home/chrispycheng/proj/nuisance/data/dbic-deid2-mriqc/work/workflow_enumerator/anatMRIQCT1w/ComputeIQMs/_in_file_..home..chrispycheng..proj..nuisance..data..dbic-deid2-mriqc..sourcedata..sub-sid000003..ses-SENSORED..anat..sub-sid000003_ses-SENSORED_T1w.nii.gz/metadata

Node inputs:

bids_dir = None
bids_validate = True
in_file = /home/chrispycheng/proj/nuisance/data/dbic-deid2-mriqc/sourcedata/sub-sid000003/ses-SENSORED/anat/sub-sid000003_ses-SENSORED_T1w.nii.gz

Traceback (most recent call last):
  File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/plugins/multiproc.py", line 69, in run_node
    result['result'] = node.run(updatehash=updatehash)
  File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/nodes.py", line 472, in run
    result = self._run_interface(execute=True)
  File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/nodes.py", line 563, in _run_interface
    return self._run_command(execute)
  File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/nodes.py", line 643, in _run_command
    result = self._interface.run(cwd=outdir)
  File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/interfaces/base/core.py", line 375, in run
    runtime = self._run_interface(runtime)
  File "/usr/local/miniconda/lib/python3.7/site-packages/niworkflows/interfaces/bids.py", line 579, in _run_interface
    self.inputs.bids_validate)
  File "/usr/local/miniconda/lib/python3.7/site-packages/niworkflows/utils/bids.py", line 213, in _init_layout
    layout = BIDSLayout(str(bids_dir), validate=validate)
  File "/usr/local/miniconda/lib/python3.7/site-packages/bids/layout/layout.py", line 212, in __init__
    indexer.index_metadata()
  File "/usr/local/miniconda/lib/python3.7/site-packages/bids/layout/index.py", line 198, in index_metadata
    with open(bf.path, 'r') as handle:
FileNotFoundError: [Errno 2] No such file or directory: '/home/chrispycheng/proj/nuisance/data/dbic-deid2-mriqc/sourcedata/sourcedata/bidsonym/dataset_description_no_deid.json'

@yarikoptic Does this persist with 0.16.0?

@yarikoptic Does this persist with 0.16.0?

yes with 0.16.0 (reproducing instructions + few extra broken symlinks in https://github.com/nipreps/fmriprep/issues/2426#issuecomment-902973401)
$> singularity run -B $PWD:$PWD /home/yoh/proj/repronim/containers/images/bids/bids-mriqc--0.16.0.sing $PWD/ds000001 $PWD/tmp/out participant --participant-label 01 -w $PWD/tmp/
You are using MRIQC v0.16.0, and a newer version is available: 0.16.1.
Traceback (most recent call last):
  File "/usr/local/miniconda/bin/mriqc", line 10, in <module>
    sys.exit(main())
  File "/usr/local/miniconda/lib/python3.7/site-packages/mriqc/cli/run.py", line 15, in main
    parse_args()
  File "/usr/local/miniconda/lib/python3.7/site-packages/mriqc/cli/parser.py", line 358, in parse_args
    config.from_dict(vars(opts))
  File "/usr/local/miniconda/lib/python3.7/site-packages/mriqc/config.py", line 517, in from_dict
    execution.load(settings)
  File "/usr/local/miniconda/lib/python3.7/site-packages/mriqc/config.py", line 185, in load
    cls.init()
  File "/usr/local/miniconda/lib/python3.7/site-packages/mriqc/config.py", line 398, in init
    re.compile(r"^\."),
  File "/usr/local/miniconda/lib/python3.7/site-packages/bids/layout/layout.py", line 155, in __init__
    indexer(self)
  File "/usr/local/miniconda/lib/python3.7/site-packages/bids/layout/index.py", line 111, in __call__
    self._index_metadata()
  File "/usr/local/miniconda/lib/python3.7/site-packages/bids/layout/index.py", line 278, in _index_metadata
    with open(bf.path, 'r', encoding='utf-8') as handle:
FileNotFoundError: [Errno 2] No such file or directory: '/mnt/scrap/tmp/reproducers/ds000001/.git/annex/transfer/download/inferno.json'

and 0.16.1:
smaug:/mnt/scrap/tmp/reproducers
$> singularity run -B $PWD:$PWD /home/yoh/proj/repronim/containers/images/bids/bids-mriqc--0.16.1.sing $PWD/ds000001 $PWD/tmp/out participant --participant-label 01 -w $PWD/tmp/
Traceback (most recent call last):
  File "/usr/local/miniconda/bin/mriqc", line 10, in <module>
    sys.exit(main())
  File "/usr/local/miniconda/lib/python3.7/site-packages/mriqc/cli/run.py", line 16, in main
    parse_args()
  File "/usr/local/miniconda/lib/python3.7/site-packages/mriqc/cli/parser.py", line 374, in parse_args
    config.from_dict(vars(opts))
  File "/usr/local/miniconda/lib/python3.7/site-packages/mriqc/config.py", line 519, in from_dict
    execution.load(settings)
  File "/usr/local/miniconda/lib/python3.7/site-packages/mriqc/config.py", line 185, in load
    cls.init()
  File "/usr/local/miniconda/lib/python3.7/site-packages/mriqc/config.py", line 400, in init
    re.compile(r"^\."),
  File "/usr/local/miniconda/lib/python3.7/site-packages/bids/layout/layout.py", line 155, in __init__
    indexer(self)
  File "/usr/local/miniconda/lib/python3.7/site-packages/bids/layout/index.py", line 111, in __call__
    self._index_metadata()
  File "/usr/local/miniconda/lib/python3.7/site-packages/bids/layout/index.py", line 278, in _index_metadata
    with open(bf.path, 'r', encoding='utf-8') as handle:
FileNotFoundError: [Errno 2] No such file or directory: '/mnt/scrap/tmp/reproducers/ds000001/.git/annex/transfer/download/inferno.json'

yeap -- fmriprep has updated pybids
$> singularity exec -B $PWD:$PWD /home/yoh/proj/repronim/containers/images/bids/bids-fmriprep--20.2.3.sing grep '"version' /usr/local/miniconda/lib/python3.7/site-packages/bids/_version.py
 "version": "0.13.1"

while mriqc
$> singularity exec -B $PWD:$PWD /home/yoh/proj/repronim/containers/images/bids/bids-mriqc--0.16.1.sing grep '"version' /usr/local/miniconda/lib/python3.7/site-packages/bids/_version.py
 "version": "0.12.4"

that might also explain why @dnkennedy  sees mriqc taking long time "to start" in comparison to fmriprep while operating on sizeable HBN dataset.
So -- just a matter of boosting pybids version?

Can give it a shot. Unsure if that'll have knock on dependency effects that need to be addressed in a single pr.

ping on this issue.

I believe Oscar is addressing that in #939.


blocks are not replacing for non op players

please fix players without op can also use it

duplicate #17


Fix Add Errors Should Display Immediately #1172

fixes annoying issue :  https://github.com/Semantic-Org/Semantic-UI/issues/1172

This seems reasonable, sorry for delay

:+1:

in 2.1.4


test: adjust cargo_test_env to unblock rust submodule update

What does this PR try to resolve?
[HOST_TARGET] from $CARGO was not replaced.
See each commit message for the detail.
How should we test and review this PR?

Run cargo t --test testsuite -- cargo_test_env
Apply the change to rust-lang/rust and run ./x.py test src/tools/cargo -- cargo_test_env.

Additional information

This is ready for another round of review. I've removed the switch to with_stderr_data as it caused churn of path normalization and may worth exploring separately.


Allow DNS resolver to skip entry on EmptyLabel

A name like '.example.com' is not a valid name, but should be handled like a non existant name instead of throwing an exception
I was testing using the list from (https://raw.githubusercontent.com/nickspaargaren/no-google/master/categories/youtubeparsed) to attempt to block youtube, but the list would never load.  The first entry is '.youtubeeducation.com', which presumably pihole can deal with but it was causing the following error:
Dec 30 13:22:04 OPNsense /update_tables.py: fetch alias url https://raw.githubusercontent.com/nickspaargaren/no-google/master/cat
egories/youtubeparsed (lines: 1823)
Dec 30 13:22:04 OPNsense /update_tables.py: error fetching alias url https://raw.githubusercontent.com/nickspaargaren/no-google/master/categories/youtubeparsed

did you test this? (and if yes, how?) The python class doesn't seem to have a class named "dns.resolver.EmptyLabel" (https://github.com/rthalley/dnspython/blob/master/dns/resolver.py)
>>> import dns.resolver
>>> dns.resolver.EmptyLabel
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'dns.resolver' has no attribute 'EmptyLabel'

Eeek, sorry about that.  I tested it by going cowboy on my home router but then cloned the branch on another box and typo'd it.

Is there no chance of getting this change merged?

You can open a new PR, but only when it's actually  functional and tested.

It was functional and tested with my last commit to the branch 7c841a8

hmm, can you supply a use case that will trigger this exception?  Apparently your last commit was a bit lost in translation, I'll reopen so we can asses later.

Sorry for the confusion, I should have commented that I fixed the issue with that commit.  I know the flood of github emails can be a bit much.
Using the list: https://raw.githubusercontent.com/nickspaargaren/no-google/master/categories/youtubeparsed
the first (non comment) entry is '.youtubeeducation.com' which causes the Exception to be thrown.

no problem, it's quite a flood indeed, but we're on the same page now. I'll try to test and merge soon.

@jamesgol works like a charm, thanks!


1 test failed. week year:week numbers 2012/2013 (2446.7)

Client info
Date String   : Tue Mar 22 2016 10:26:35 GMT+0800 (中国标准时间)
Locale String : 2016/3/22 上午10:26:35
Offset        : -480
User Agent    : Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36

====
week year:week numbers 2012/2013 (2446.7)
// Expected 53
// Actual   52
52 === 53

Dup #2998

I'm sorry, I see the wrong

No worries.  We are indeed seeing this error, just prefer to track it in one issue.  Thanks for reporting!


chore(main): release sdk 5.9.0

:robot: I have created a release beep boop
5.9.0 (2024-08-12)
Features

Add Select component for selecting assets (850483f)

Bug Fixes

sdk: Fix Mythos transfer & assets (d46f739)

Code Refactoring

sdk: Add types and remove 'any' from TTransfer.ts file 🧩 (3c50ba7)

Continuous Integration

Integrate Codecov PR comments 💬 (220da1b)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

sdk-v5.9.0
:sunflower:


How are the binaries built?

I see there is a .tar.gz of linux things, but how are they made?
Should I make these as part of the build process?
Is there any reason to build 64-bit ones? I've heard from folks having trouble running them on 32-bit machines.
Are the binaries for mac and windows taken from the installers I make?

Currently, @passy is building them manually.
Yes, ideally
I've no idea, probably not
I don't know, @passy?

@evancz If you could provide linux binaries, that would be massively helpful.
Yes, I've built them myself so far and yup, they're 64bit only. Haven't personally come across any 32 bit machines for years, but if there's demand sure.
The Mac binaries are extracted from the pkg, Windows came from a PR. /cc @jvoigtlaender

The Windows binaries I took from the official installer (https://github.com/kevva/elm-bin/pull/24).

Yes, I've built them myself so far and yup, they're 64bit only. Haven't personally come across any 32 bit machines for years, but if there's demand sure.

@passy, me neither, but my experience from imagemin is that it seems there's always some edge case.

Hi everyone, I would mega appreciate if I could install 32bit version via npm. I run Debian (Crunchbang) on my t42 and I spent the last 3 days trying to install the elm-platform. I have tried all the possible recommendations suggested by the others either here on github and on the other sites as well, but they all failed. I have read about what kind of problems do you encounter, but I really hope I will be able to run elm one day on my machine.

@dusky3, I haven't seen you asking questions or reporting problems on https://github.com/elm-lang/elm-platform.

@jvoigtlaender that's true, I haven't asked on https://github.com/elm-lang/elm-platform, beacuse I gave up and I don't want to go through that painfull process anymore. It's 2015 and IMHO no one should install any platform or framework by building it from source.
I demanded an installer here because I think that ELM is great and it should really have an npm installer for 32bit linux and as @passy claimed, if there's a demand he'll build it. @jvoigtlaender please help these guys here if necessary, I think it's worth it.
Anyway thank you everyone for all the hard work you've done so far.

Sorry I'm not in the business of building Linux binaries.
But I feel some responsibility for the build-from-source script. Think of it like that: Some people do need to be able from source. For example developers that contribute to the Elm compiler etc., and people that build installers for different distributions.
So it would have been really good to see your failed attempts. When you say that all methods suggested on elm-platform don't work for you, I'm troubled. Any information from your three days trying this might have helped us to provide a fix for you (it could be a very simple thing, who knows), but also helped us to improve the process for other people.
So it's a lost opportunity for us that you suffered in silence instead of sharing. But of course you are under no obligation to open GitHub issues etc. It's just a pity.

Totally agree with @jvoigtlaender. Unfortunately I'm tied up in too many other things and don't have a lot of time I can dedicate to this. And I have no idea how to cross-compile with GHC, so I won't be able to help out with the 32bit binaries, I'm afraid. :(

I'm planning to build all the binaries for 0.16 and I'll do 32-bit ones for Linux.

@evancz That's excellent news! Thanks! :)

Thank you @evancz, that's the news of the year! I will patiently wait for that.
@jvoigtlaender I know that the developers need to install from source, I was writing about regular users/programmers. Just to let you know - I just followed the newest instructions from here https://github.com/elm-lang/elm-platform/issues/63#issuecomment-145401034 , but again I had no luck. I will rather reply there.

Thanks, I'll take a look.


Does it work with https?

I get that error: "(35) gnutls_handshake() failed: A TLS fatal alert has been received"
Thank you for your feedback. Best regards.

Queston is still pendent...!!

...


Path Details

My best effort at including path details.

Thanks! I added distance, and I currently assume that this is a free-form parameter, so I kept the wording.


add login successful popup

Description
I have added login successful banner on top of the page when login is successful
Related Issues

Closes #817

Type of PR

[X] Feature enhancement

Screenshots / videos (if applicable)
Before:
https://github.com/user-attachments/assets/157d3d22-8b34-455b-b2c4-cac4068056ee
After:
https://github.com/user-attachments/assets/65adfafd-772c-452c-969a-a748867063af
Checklist

[X] I have gone through the contributing guide
[X] I have updated my branch and synced it with project main branch before making this PR
[X] I have performed a self-review of my code
[X] I have tested the changes thoroughly before submitting this pull request.
[X] I have provided relevant issue numbers, screenshots, and videos after making the changes.
[X] I have commented my code, particularly in hard-to-understand areas.

Additional context:
It is looking better and improved UI

@varshith257 Please review my Pr and merge it


Improve the design of the movie cards for Each genres

@QAZIMAAZARSHAD I would like to work on this please assign me

@coding-geek21 use issue number https://github.com/QAZIMAAZARSHAD/Movie-Streaming-Website/issues/3 if you want to work on this issue.


superset 2.1.0rc1 Setup fail

I want to run superset 2.1.0rc1 in my windows machine
I have follow steps from this link https://preset.io/blog/tutorial-contributing-code-to-apache-superset/
when i run npm run dev-server  its runs successfully but it has some error

And when i try to access superset home page it give me error msg

and After that I have also referred some steps given below
#!/bin/bash
Extract new installation
Downloads/apache-superset-2.1.0rc1-source.tar.gz
extract it in  superset2.1 folder
cd superset2.1
Create enviornment and install
python3.10 -m venv venv
. ./venv/bin/activate
pip install --upgrade pip
pip install .
Set up
superset db upgrade
export FLASK_APP=superset
superset fab create-admin
superset init
But still i am getting same error msg
Can anyone suggest to me steps to build superset-frontend and superset-ui and run superset  or steps to run superset2.1.0rc1 completely without missing asset files from static folder in the superset
Environment

browser type and version:
superset version: 2.1.0rc1
python version: 3.8
node.js version: 16.14.2

Thanks in advance

Hi @santoshmallah are you also running npm ci to package the dependencies before running npm run dev-server?

Yes, I have run
cd superset-frontend
npm ci

and then I run npm run npm run dev-server

Since we're now on 3.1, on the verge of 4.0, we're not supporting 2.x  or prior versions actively. If anyone is experiencing this issue in current versions, please file a new issue with updated context and repro steps. We also don't officially support Windows, but welcome any PRs to improve that experience for those who try it. Thank you for understanding :)


Serialization issues

Fix for serialization issue #9, with tests.

Thanks for the patch! Looks perfect too me.

looks good to me too. +1

Oh, I did submit this as a patch against master as there were numerous failing tests in develop.   Should it go to master or develop?

Oups. Should definitely go to develop.

Closing to submit to develop.


[Processing] Add AVX2 VAA routines

https://rbcommons.com/s/OpenH264/r/1587/
https://rbcommons.com/s/OpenH264/r/1588/

Support

On pull request


Enable light/mode dark mode with a preference for user system settings

Dark mode can be really hard on some folks' eyes. Let's give them the option to view the demo however they like.

Using branch https://github.com/platformsh/demo-project/tree/enable-light-dark-mode with shorter name to pass merge request tests


[docs]: Operator repeat is missing documentation, example, and see also

Please check those that apply

[ ] typo
[x] documentation doesn't exist
[ ] documentation needs clarification
[ ] error(s) in example
[x] needs example

Description Of The Issue
This operator needs documentation, example and the see Alos section.
We might want to include it.
For See Also we could include repeatWhen

done by #4681


Modify LetterboxImage error

Hello, thank you very much for your open source, it helped me a lot, I have a question:
When the model input image size is 640640, the accuracy of the prediction result changes and the reasoning time becomes longer; then I modified LetterboxImage (refer to the python version), the model input image size is 640480, but the error is reported as follows:
terminate called after throwing an instance of 'std::runtime_error'
what():  The following operation failed in the TorchScript interpreter.
Traceback of TorchScript, serialized code (most recent call last):
File "code/torch/models/yolo.py", line 45, in forward
_35 = (_4).forward(_34, )
_36 = (_2).forward((_3).forward(_35, ), _29, )
_37 = (_0).forward(_33, _35, (_1).forward(_36, ), )
~~~~~~~~~~~ <--- HERE
_38, _39, _40, _41, = _37
return (_41, [_38, _39, _40])
File "code/torch/models/yolo.py", line 75, in forward
_52 = torch.sub(_51, CONSTANTS.c3, alpha=1)
_53 = torch.to(CONSTANTS.c4, dtype=6, layout=0, device=torch.device("cpu"), pin_memory=None, non_blocking=False, copy=False, memory_format=None)
_54 = torch.mul(torch.add(_52, _53, alpha=1), torch.select(CONSTANTS.c5, 0, 0))
~~~~~~~~~ <--- HERE
_55 = torch.slice(y, 4, 0, 2, 1)
_56 = torch.expand(torch.view(_54, [3, 80, 80, 2]), [1, 3, 80, 80, 2], implicit=True)
Traceback of TorchScript, original code (most recent call last):
/home//PycharmProjects/paper_yolov5/models/yolo.py(57): forward
/home////anaconda3/lib/python3.8/site-packages/torch/nn/modules/module.py(709): _slow_forward
/home////anaconda3/lib/python3.8/site-packages/torch/nn/modules/module.py(725): _call_impl
/home////PycharmProjects/paper_yolov5/models/yolo.py(137): forward_once
/home////PycharmProjects/paper_yolov5/models/yolo.py(121): forward
/home////anaconda3/lib/python3.8/site-packages/torch/nn/modules/module.py(709): _slow_forward
/home////anaconda3/lib/python3.8/site-packages/torch/nn/modules/module.py(725): _call_impl
/home////anaconda3/lib/python3.8/site-packages/torch/jit/_trace.py(934): trace_module
/home////anaconda3/lib/python3.8/site-packages/torch/jit/_trace.py(733): trace
/home////PycharmProjects/paper_yolov5/models/export.py(57):
RuntimeError: The size of tensor a (60) must match the size of tensor b (80) at non-singleton dimension 3
How to solve it, thank you!

Hi,
ultralytics's implementation of Letterbox use a function of OpenCV which cannot be traced or scripted, so I'm curious that how you implement the LetterboxImage?

Made some changes based on your code:
std::vector Detector::LetterboxImage(const cv::Mat& src, cv::Mat& dst, const cv::Size& input_size)
{
auto src_h = static_cast(src.rows);
auto src_w = static_cast(src.cols);
float in_h = input_size.height;
float in_w = input_size.width;

float scale = std::min(in_w / src_w, in_h / src_h);
cout<<"scale:"<<scale<<endl;

int mid_h = static_cast<int>(round(src_h * scale));
int mid_w = static_cast<int>(round(src_w * scale));

int dw=in_w-mid_w;
int dh=in_h-mid_h;

int p_w = dw%32/2;
int p_h = dh%32/2;

cv::resize(src, dst, cv::Size(mid_w, mid_h));

//    int top = (static_cast(in_h) - mid_h) / 2;
//    int bottom = (static_cast(in_h)- mid_h + 1) / 2;
//    int left = (static_cast(in_w)- mid_w) / 2;
//    int right = (static_cast(in_w)- mid_w + 1) / 2;
int top = (int)round(p_h-0.1) ;
int bottom = (int)round(p_h+0.1);
int left = (int)round(p_w-0.1);
int right = (int)round(p_w+0.1);
cout<<"tblr:"<<top<<" "<<bottom<<" "<<left<<" "<<right<<endl;

cv::copyMakeBorder(dst, dst, top, bottom, left, right, cv::BORDER_CONSTANT, cv::Scalar(114, 114, 114));

std::vector<float> pad_info{static_cast<float>(left), static_cast<float>(top), scale};
return pad_info;

}
after modification: img_input.size:640 x 480

Hi @blueskywwc , Ops, I'm not the author of this repo :)
I guess that the questions the caused by the variable input image size.

Yes, I just saw this post: https://github.com/ultralytics/yolov5/issues/1406
Preparing to try

Yep two modifications may be sufficient

Set model.model[-1].export = False
Replace torch.jit.trace to torch.jit.script

model.model[-1].export = False  # set Detect() layer export=True
y = model(img)  # dry run
# TorchScript export
try:
    print('\nStarting TorchScript export with torch %s...' % torch.__version__)
    f = opt.weights.replace('.pt', '.torchscript.pt')  # filename
    # ts = torch.jit.trace(model, img)
    ts = torch.jit.script(model, img)
    ts.save(f)
    print('TorchScript export success, saved as %s' % f)
except Exception as e:
    print('TorchScript export failure: %s' % e)

after modification:
TorchScript export failure:
Tried to access nonexistent attribute or method 'add' of type 'torch.utils.activations.Hardswish'. Did you forget to initialize an attribute in init()?:
File "/home/wangwc/PycharmProjects/paper_yolov5/utils/activations.py", line 19
def forward(x):
# return x * F.hardsigmoid(x)  # for torchscript and CoreML
return x * F.hardtanh(x + 3, 0., 6.) / 6.  # for torchscript, CoreML and ONNX
~~~~~ <--- HERE

I remember this error. torch.jit.trace can be exported successful, but it didn't support variable input image size? (please point it out if I am wrong here)
ultralytics's original implementation cannot be torch.jit.script. And now they don't support this method, there is a third-party implementation in my own repo. I'm not sure this is the "right" implementation.

OK, I'll keep trying and update later
---Original---
From: "Zhiqiang<EMAIL_ADDRESS>Date: Mon, Dec 7, 2020 18:05 PM
To<EMAIL_ADDRESS>Cc: "Mention"<mention<EMAIL_ADDRESS>Subject: Re: [yasenh/libtorch-yolov5] Modify LetterboxImage error (#31)
I remember this error. torch.jit.trace can be exported successful, but it didn't support variable input image size? (please point it out if I am wrong here)
ultralytics's original implementation cannot be torch.jit.script. And now they don't support this method, there is a third-party implementation in my own repo. I'm not sure this is the "right" implementation.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

And let's have more thoughts from @yasenh .

Thanks @zhiqwang
@blueskywwc Like zhiqwang mentioned above, torchscript model exported by torch.jit.trace only recognize determined size, so a workaround could be:
python models/export.py --weights yolov5s.pt --img 640 480 --batch 1

Yes you are right, the problem has been solved.  Thanks @yasenh @zhiqwang
Have you found that the inference time of C++ is longer than that of Python? What is the reason?

One more question here, the output image size of LetterBox is variable, how do you handle this problem?

The size of all my input images is determined, the output image size of LetterBox is determined.
You can adjust LetterBox (python) and LetterBox (c++) to be consistent to ensure the same prediction results，I don't know any good solutions.

The size of all my input images is determined, the output image size of LetterBox is determined.

Got it, thanks.

@blueskywwc I noticed the same issue, but didn't get the root cause yet. Even the inference speed alone (without pre/post-processing) is slower.. let me know if you figure anything interesting

@yasenh  tensor_img = tensor_img.permute({0, 3, 1, 2}).contiguous() is modified to tensor_img = tensor_img.permute({0, 3, 1, 2});
Preprocessing time will be reduced by almost half (just my test, you can refer to whether it is correct)
There are no good findings in the inference process, and it is still trying

@blueskywwc I didn't notice obvious time reduction, did you tested on sync mode? E.g.:
CUDA_LAUNCH_BLOCKING=1 ./libtorch-yolov5 --source ../images/bus.jpg --weights ../weights/yolov5s.torchscript.pt --gpu

The time on the gpu is similar, but the time on the cpu is significantly reduced, you can try


GH-39386: [C++] Add floordiv compute kernel

GitHub Issue: #39386

I don't think the current test failures are related?


iambic import does not update access rules correctly when local identity center files already exists

I did iambic import and it brought all the resources in the local directory. After a couple of updates permission sets and mapping to users(not through iambic). When I ran iambic import again, it did not bring all changes to the file. My guess is it did not write the new changes to the files.

ah, this issue should be move to noqdev/iambic, and its handled by https://github.com/noqdev/iambic/pull/604


Garage door state issues

Describe The Bug:
Garage door state gets stuck.  Also needs to be updated if the state changes.  Same as was done for the locks.
To Reproduce:

Expected behavior:

Logs:
Show the Homebridge logs here, remove any sensitive information.

Plugin Config:
Show your Homebridge config.json here, remove any sensitive information.

Screenshots:

Environment:

Plugin Version:
Homebridge Version:
Node.js Version:
NPM Version:
Operating System:

Fixed by 1.1.11


Keeps installing an old version 0.0.3

Every time I start a new shell (which does  . "$NVM_DIR/nvm.sh") I get this message:
npm WARN deprecated<EMAIL_ADDRESS>This is NOT the correct nvm. Visit http://nvm.sh and use the curl command to install it.
/usr/local/bin/nvm -> /usr/local/lib/node_modules/nvm/bin/nvm
/usr/local/lib
└──<EMAIL_ADDRESS>
From the console, however, I can run .nvm/nvm.sh with no output.
Now, the version I'm running is 0.31.0, that is,
$ nvm --version
0.31.0
$ grep 'version":' ~/.nvm/package.json
  "version": "0.31.0",

As the directions state, I've uninstalled and reinstalled again like this:
sudo npm uninstall -g nvm
rm /usr/local/bin/nvm
rm -Rf /usr/local/lib/node_modules/nvm
rm -Rf ~/.nvm
rm -Rf ~/.npm/nvm
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash

As soon as I run nvm.sh, the bin, the lib/node_modules/nvm and ~/.npm/nvm appaear.  The packages in lib/node_modules and ~/.npm/nvm are both v0.0.3 according to the package.json file.  How does this happen?!?
ps: the first time I installed NVM I used npm.  Also my lib/node_modules used to be root-owned; changed now.

The nvm on npm is the wrong one - you need to uninstall that, and solely use the curl script in the readme.

that's what i've done.  that's the first thing my reinstall stuff does.  Meanwhile it reappears after I install with the curl script and then run npm.sh .

What's in npm.sh and why are you running it? npm usually comes with node so you don't need to install it separately.

I'm talking about this, in my .profile:
export NVM_DIR="/Users/abonadio/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"  # This loads nvm
I also run it by hand and no messages.

try rm -rf $NVM_DIR and then rerun the curl install script in this repo's readme.

done.  Lots of error messages from npm, as usual, mostly missing versions and extraneous.  Same problem, which I illustrate by just typing 'bash'.
Here's the log:
http://tactileint.org/nvm0.0.3problemA.log

@allan-bonadio ok so the problem is that you a) have a system node, b) its global npm modules are messed up, and c) you have the nvm npm module globally installed there.
Run nvm deactivate, and then uninstall node/npm completely from your system - such that which node and which npm report nothing installed.
Then install this nvm fresh, and nvm install node, and you'll be all set.

Well, started removing node-everything to try to narrow it down.  Turned out one of my startup files kept on re-installing it - my bad - using the directions on this page:
https://www.npmjs.com/package/nvm
That's probably where I first got nvm.  That's why it was always version 0.0.3 - that's the latest when you follow the directions.  You realize everybody's installing NVM 0.0.3 from there - curl-method be dammed - you look for a Node module and where else would you go but npmjs.com. Somebody ought to fix that or take it down.

While I plan to replace it with a proper version someday, nvm is a node installer, not a node module, so I don't know why anybody would go to npm for it :-) In addition, it has a deprecation message explicitly instructing users to install from http://nvm.sh instead.
Thanks for following up; glad it's figured out.

all works now!  Tx!


feature(synclist): allow SyncList of primitive types

As it turns out this never really worked:
class SyncListByte : SyncList<byte> {};

You had to write your own serializeItem / deserialize item for native types.
This change lifts the restriction, now you can use a synclist of anything that mirror can serialize/deserialize

can we remove the serializations for the standard sync lists then?

We can,  but we will break any game currently using it.   People will need to define their own lists.

Could we get rid of the override serializer/deserializer functions?

We can,  but we would have to move those lists to a file outside of Runtime that will be weaved.

I meant the serialize/deserialize functions too. should definitely keep the synclistint etc.

I checked,  we are not using them anywhere inside Mirror,  so we can move those lists to some place outside Runtime.
Components does not sound like a good place though.

:tada: This PR is included in version 1.3.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


i get this error today when i was trying to debug my code on Pixel2 emulator

Thank you for taking the time to file an issue!
This tracker is for issues related to:

Analyzer
Common Front End (CFE) and kernel
Dart core libraries ("dart:async", "dart:io", etc.)
Dart VM
dart2js
dartfix
dev_compiler

Some other pieces of the Dart ecosystem are maintained elsewhere. Please
file issues in their repository:

Dart language: https://github.com/dart-lang/language
Dart website: https://github.com/dart-lang/site-www
Flutter: https://github.com/flutter/flutter
Linter: https://github.com/dart-lang/linter
dartfmt: https://github.com/dart-lang/dart_style

If you aren't sure, file the issue here and we'll find the right home for it.
In your issue, please include:

Dart SDK Version (dart --version)
Whether you are using Windows, MacOSX, or Linux (if applicable)
Whether you are using Chrome, Safari, Firefox, Edge (if applicable)

Missing some or all of the above might make the issue take longer or be
impossible to act on.
If you simply have a question, consider starting with Stack Overflow:
https://stackoverflow.com/questions/tagged/dart
For a real-time response, consider our Gitter channel:
https://gitter.im/dart-lang/sdk

Thanks for the report; I don't see any error attached? Closing, but please re-open if you can provide more details and a repro case.


chainparams: Remove llmq_50_60 from regtest

Its just not used anywhere so there is no point in starting the thread
for it imo since it just spams the test logs with tries/failures.

Feels like a helpful fix, added backport label


Pechakucha

[ ]  want it to play all the pictures i've taken these past 4 weeks
[ ] I want to make it css
[ ]  items

be sure to think about what pictures you want and what order


The blank category select screen broke apperantly?

So, I put the Yomi part back into the XML Node (stupid idea lol) and it gave 336295 after a single breakpoint on 800c4370 clears. The odd part is no other breakpoints cleared!. The one on GetNode, the one on GetNodeParent, the one on PostError. It never seemed to work, even after reverting the change. @spotlightishere Can you take a look at this?

Update! Just reverted the commits and it still doesn't work? Could it be a Python 3.9 thing?

Alrighty, my second to last commit there fixed it!


Create Posts “great-nation”

Automatically generated by Netlify CMS

:construction_worker: Deploy Preview for wizardly-edison-391c51 processing.
:hammer: Explore the source changes: 39d91d05824a184b1aea0c76b8ad874a571f58cc
:mag: Inspect the deploy log: https://app.netlify.com/sites/wizardly-edison-391c51/deploys/60ded6658bee80000763bf73


Add GHA workflows (R CMD check, test coverage, build pkgdown website)

Closes #32

Update: original PR name was 'Copy .github folder from pkg-skeleton'.

I fixed GHA workflows for R CMD check (except on Mac and Ubuntu+R-devel), coverage and building pkgdown website.
https://r-hyperspec.github.io/unmixR/

Other workflows are not necessary until a regular R package structure is implemented (so I'll delete those workflows for now).

For R-devel, there is an issue with line seed <- .Random.seed See :

#47

For Mac, XQuartz was missing. I updated the workflow so no GHA setup-related issues should be present. But there are some issues related to vignettes. Details:

    * creating vignettes ... ERROR
    Error: --- re-building ‘ice.Rmd’ using knitr
    Warning in doTryCatch(return(expr), name, parentenv, handler) :
      no font could be found for family "Arial"

Codecov Report

:exclamation: No coverage uploaded for pull request base (develop@16d3bb0). Click here to learn what that means.
The diff coverage is n/a.

:exclamation: Current head 595a129 differs from pull request most recent head acdd3b9. Consider uploading reports for the commit acdd3b9 to get more accurate results

@@            Coverage Diff             @@
##             develop      #38   +/-   ##
==========================================
  Coverage           ?   65.78%
==========================================
  Files              ?       22
  Lines              ?      342
  Branches           ?        0
==========================================
  Hits               ?      225
  Misses             ?      117
  Partials           ?        0

Continue to review full report at Codecov.

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

I think this PR can be merged now. The failures are due to some issues in the package and not in GHA setup. These tests will help to spot what is wrong and to solve #45 quicker.

As I see, Mac issues were solved:

So it is your decision, @rguliev, if you want to merge this branch now. What do you think?


"Itheum Energy Design"  - "Spark" : Initial High Level Design

Outcome should be a Notion Design doc for the initial version design

Solved. Closing.


Update SF to 8.2 CU2

https://github.com/microsoft/service-fabric/blob/master/release_notes/Service_Fabric_ReleaseNotes_82CU2.md

@darinegan Please merge when you have time. Thanks!

Thanks @jberezanski I've approved and merged this PR. I also pushed this version to Chocolatey.org which is pending review.

Thank you!


Scroll on new lines

This addition will make sure that the document scrolls properly when inserting a new line. You might want to make it optional and have a setting for it. I am using this by modifying the installed extension code directly, and it works like a charm, but it's not tested properly as I haven't tried compiling the ts files.

Sweet, I like it :-)
Thanks for the PR

Thanks! Although I just thought of a case where it would break. If you're not on the last line (for example after a go-to) then newlines will make it scroll to the end. Should probably reveal the current line (the one where the cursor is after inserting the new line) instead of the last line.

Hi @DaniGuardiola
This change should fix that issue #12

Great! Thanks


Django 1.9 compatibility

The "{% load url from future %}" in browse.html results in an error in Django 1.9.1.

Merged in your other commit which looks like it includes a fix for this. Thanks again!


Initial prototype of LogDB interface: include code base and associative couchapp

Valentin, could we move this under WMCore/Services? That directory contains external service apis. And rpm dependency is already set for the most applications which will use this.

Seangchan, I moved LogDB under WMCore/Services and added requested roles. Please review.

Thanks Valentin, I will add the deploy script. I can add wmstats deployment script or separate application.
reqmgr2 is not a good place, since tier0 won't install reqmgr2. What do you think?

Yes, I think it should be separate application if we want to have external API
and allow add comments into LogDB from external clients (reqmgr2, data-ops
scripts, plain curl).
On  0, ticoann<EMAIL_ADDRESS>wrote:

Thanks Valentin, I will add the deploy script. I can add wmstats deployment script or separate application.
reqmgr2 is not a good place, since tier0 won't install reqmgr2. What do you think?

Reply to this email directly or view it on GitHub:
https://github.com/dmwm/WMCore/pull/5743#issuecomment-88239885


Embedding a client on another site

Are there any examples of embedding? So that by default it is possible to call a frame with the connection data passed there. For example, to cause the terminal to be drawn in a window that leaves from the side. As I understand it, the drawing takes place inside the <div class="container">. Is there an example of embedding a drawing?

Or maybe someone has already integrated this webssh into their projects?
For example, something like noVNC. To raise the proxy server separately, for example, in a separate container, and the SSH client in another, through embedding?


Popup are not opening with Safari latest version 10.1(116<IP_ADDRESS>.34), It's opening as tab.

I am using xcomponent 2.0.64

I had an issue like this recently in Chrome (not with xcomponent). It turned out that I was doing window.open with location=1 and for some reason Chrome didn't like that. So it might be best to look at the status, toolbar and menubar options here:
https://github.com/krakenjs/xcomponent/blob/master/src/component/parent/drivers.js#L191
Just a hunch though.

Do you see the problem on this test page when you click the button? http://bluesuncorp.co.uk/icv4/popup.htm

I can not see  problem on this test page when i click the button.
http://bluesuncorp.co.uk/icv4/popup.htm

That's strange.
Can you share your xcomponent code? Are you specifying dimensions?

we are specifying dimensions.

Weird. Running out of ideas here -- again would be great to see the xcomponent.create code to try and narrow this down.
Are you by any chance running safari in full-screen mode?

Any updates on this? Are people still seeing this, and if so do you have safari in full screen mode?


Questions about this project

Hi! 👋
I have two questions:

Question 1 Regarding AVRO <---> JSON conversion, what are the major differences with this project if any?
https://github.com/allegro/json-avro-converter

Question 2 How do you think this project is still relevant in the sense of supporting the newest AVRO versions?

Thank you.

Hi @visortelle, thanks for asking.

Both projects are similar. The other one is implemented in Java and not supported ATM. This one is in Scala and you can expect a bug fix from me. Also there're number of outstanding features:

Supported input formats: json, csv, xml
Pluggable StringParsers
Pluggable validations
Renaming of fields that aren't named within avro convention: [A-Za-z0-9_]
Descriptive errors that include path of origin

Unless there's some breaking change in AVRO there should be no problems supporting a newer version

@agolovenko 👍 I'm satisfied with both answers.
Thank you for your work!
I wonder why the "user-friendly" JSON encoding is still not supported in the official AVRO library.


Tile operands and results when creating DispatchWorkgroupsOp

For each resultant tensor, DispatchWorkgroupsOp now can indicate
to which operand it ties to, in order to share the underlying
buffer storage. This can be used for subtensor_insert ops, where
we insert into the target tensor and also return the target
tensor as the result, which can happen as in-place update on
the buffer down the layers.
Addresses https://github.com/google/iree/issues/5042

Could you upload the dump of ir after all for this. I am surprised that it worked out of the box.

For the pad_test in iree/test/e2e/xla_ops/pad.mlir, here is the IR dump before this patch, and here is the IR dump after this patch. I think the interesting part is we are seeing the following before bufferization, with this patch:
  func @pad_test_dispatch_1() {
    %c0 = constant 0 : index
    %0 = hal.interface.binding.subspan @legacy_io::@ro0[%c0] : !flow.dispatch.tensor<readonly:2x3xi32>
    %1 = hal.interface.binding.subspan @legacy_io::@rw1[%c0] : !flow.dispatch.tensor<readwrite:3x9xi32>
    %2 = flow.dispatch.tensor.load %0 : !flow.dispatch.tensor<readonly:2x3xi32> -> tensor<2x3xi32>
    %3 = flow.dispatch.tensor.load %1 : !flow.dispatch.tensor<readwrite:3x9xi32> -> tensor<3x9xi32>
    %4 = subtensor_insert %2 into %3[0, 1] [2, 3] [1, 1] : tensor<2x3xi32> into tensor<3x9xi32>
    flow.dispatch.tensor.store %4, %1 : tensor<3x9xi32> -> !flow.dispatch.tensor<readwrite:3x9xi32>
    return
  }

Given that %3 and %4 are mapped to the same buffer, we won't need a new allocation or copy when handling subtensor_insert's result tensor.


OCM-9954 | fix: set correct default value for replicas in update mp

fix issue: https://issues.redhat.com/browse/OCM-9954

Although it's not directly related to this PR, the getMachinePoolReplicas method is quite lengthy, exceeding 100 lines of code. I recommend splitting the if autoscaling ... else sections into two separate helper functions.

/retest

/approve

@den-rgb @davidleerh this pr needs to be cherry-pick to 1.2.43

/cherrypick release_1.2.43


Intellisense tooltips doesn't show comments

In Visual Studio, when installing Sprache via Nuget, intellisense doesn't display the xml comments. I'm guessing that the xml documentation wasn't enabled when compiling the release. Would be a really nice quality-of-life improvement if this was included :)

Thanks for the note! This was done a while ago but hasn't been released yet; I just created #89 to get the release out.


fix issue #3113 compile avalonia.native.dylib with nuke and fix clean

What does the pull request do?

Improves avalonia build on mac so one can just execute nuke build, same as on windows
What is the current behavior?

One is not able to build run ControlCatalog on mac easy, need to perform some tricky actions like:

build manually libAvalonia.Native.OSX.dylib
rename it to libAvaloniaNative.dylib
copy  libAvaloniaNative.dylib to ControlCatalog bin dir in order to run the app

What is the updated/expected behavior with this PR?

We should be able to just execute nuke Compile and be able tun run ControlCatalog on mac
How was the solution implemented (if it's not obvious)?

added new build Task CompileAvaloniaNative so it compiles the native lib with xcode
configured Avalonia.Native.csproj to copy libAvaloniaNative to output with proper name
fixed nuke Clean to clean up properly obj and bin directories for intemediate build files

Breaking changes
nope
Fixed issues
Fixes #3113

What happens to https://github.com/AvaloniaUI/Avalonia/blob/master/azure-pipelines.yml#L48
Do we have two separate scripts that compile the same binary?

What happens to https://github.com/AvaloniaUI/Avalonia/blob/master/azure-pipelines.yml#L48
Do we have two separate scripts that compile the same binary?

Essentially yes 'nuke CompileNative' and azure mac build will produce the same binary.
This change shouldn't break the mac build.
But i can't help configuring azure as i have zero experience with it.

@kekekeks could you take another look at this?

closing due to inactivity.


extract-solution vs nested substitutions

I tried adding a test similar to the U <: &'a T one in test-subtyping.rkt, for U <: &'a mut T.
It fails with a 'not in my domain' error from known-relations, which I think means its precondition is failing.
The Substitutions returned from logic:prove-top-level-goal/cosld include the following:
  TheTy«44»1 : T
  U          : (rigid-ty (ref mut) (TheLt«43»1 TheTy«44»1))

I think the problem is that the functions in solution.rkt which apply these substitutions run only a single pass, so they don't always cope with a situation where a substitution's Parameter contains a further substitutable variable.
If I bodge solution.rkt up to run apply-substitution-from-env twice in a couple of places, the test passes.
See my 2022-10_ref_mut_subtype branch for the changes I made.

This issue applied to the Redex version of a-mir-formality, which is now gone.


Automatic node re-ordering patch

This issue was originally created at: 2008-07-14 16:50:27.
This issue was reported by: zorbathut.

zorbathut said at 2008-07-14 16:50:27

I've been running into a kind of annoying case lately where SCons could be automatically making my build faster and isn't.
So, a bit of background: I have a ridiculously complicated build project that includes short, medium, and long jobs, where some of the long jobs can be quite long (on the order of half an hour). I'm probably going to split apart and parallelize the longer ones eventually, but I haven't yet, and there's a limit to what I can in this regard - some of them are just intrinsically slow.
SCons seems to, when it has a choice, always choose the "first" available job.  This isn't always the optimal choice, however. Imagine a case with six 2-second jobs and one 12-second job, on a 2-processor system. What SCons does right now is:
[--][--][--][----------------------]
[--][--][--]

taking a full 20 seconds to finish the work. What it should be doing is:
[----------------------]
[--][--][--][--][--][--]

finishing the whole thing in a significantly faster 12 seconds.
Obviously there's some issues involved in SCons knowing how long a job is before it starts the job - while I suppose there could be hint parameters given in the SConstruct file, a simple automatic solution would be to record how long a command takes on each run and average the last N identical commands (where N is, say, 5 or 10.) Even if it's not perfect, even a moderate improvement may improve build times significantly in some nasty cases.
I believe the algorithm to optimize job order is quite simple. For each possible node that it can process next, trace the most expensive path from that node to the goal node. Find the most expensive "next" node and process that one.
Note that the "most expensive next node" is the theoretical minimum time that the entire build will take, the amount of time the build is expected to take with an infinite number of processors, and the next step in the "most expensive chain", so it's definitely the right thing to do next.
As an advantage, I believe all of these costs can be precomputed before targets start being built, as any cost changing would imply that an item had been completed before its dependencies had, which is obviously kind of bad.
I have no idea where I'd start with this in the SCons code, but I'd be willing to take a shot at it. Obviously there's three parts to this - "determine how long a command took", "store and retrieve that data in the database", and "optimize the build based on stored information". Any advice would be appreciated, if this seems like the kind of thing the SCons admins would be interested in adding.
 It needs polish, documentation, a configuration option to disable it, and test cases, but I haven't found a situation where the code actually fails. I'll attach it to this feature request if I can figure out how.

zorbathut said at 2008-07-14 16:51:14

Created an attachment (id=450)
Job priority patch to implement this feature in a somewhat nasty and unpolished, yet functional, way

zorbathut said at 2008-07-14 19:09:05

Adding a note here:
There's some debate about whether it should be automated or hint-based. My feeling is that the automatic data collection is necessary, and the explicit hinting is helpful, but unnecessary. It's also not entirely clear how explicit hinting should work, both in terms of its interaction with automatic collection, and in terms of what format the "hints" should be in.
I agree that adding hinting at some point would definitely be helpful, but I am not sure it's necessary, and it's something I'd rather leave out of the "first patch".

gregnoel said at 2008-07-21 23:55:16

Bug party triage.  It's not a bad idea, but it's still controversial, and core developer time is over-committed.  It could be moved sooner with a really great patch that solves all the difficulties and includes suitable testing.

gregnoel said at 2008-12-26 13:20:18

Adjust triage of issues.

stevenknight said at 2009-11-10 18:00:19

stevenknight => issues@scons

zorbathut attached jobpri.patch at 2008-07-14 16:51:14.

Job priority patch to implement this feature in a somewhat nasty and unpolished, yet functional, way

Tagged this "taskmaster", it seems to relate to other requests to allow priority ordering of tasks, possibly including "profiling" to have build information available when making decisions.  Can't find one in the issue tracker at the moment, but I know it's come up fairly recently.


Replace unmaintained test dependency 'asynctest'

Running the unit test in python3.11 fails with:
ImportError while loading conftest '/home/auke/projects/ocpp/tests/conftest.py'.
tests/conftest.py:2: in <module>
    from asynctest import CoroutineMock
../../.cache/pypoetry/virtualenvs/ocpp--w1P7PD0-py3.11/lib/python3.11/site-packages/asynctest/__init__.py:22: in <module>
    from .case import *
../../.cache/pypoetry/virtualenvs/ocpp--w1P7PD0-py3.11/lib/python3.11/site-packages/asynctest/case.py:54: in <module>
    import asynctest.selector
../../.cache/pypoetry/virtualenvs/ocpp--w1P7PD0-py3.11/lib/python3.11/site-packages/asynctest/selector.py:29: in <module>
    from . import mock
../../.cache/pypoetry/virtualenvs/ocpp--w1P7PD0-py3.11/lib/python3.11/site-packages/asynctest/mock.py:428: in <module>
    class _AwaitEvent:
../../.cache/pypoetry/virtualenvs/ocpp--w1P7PD0-py3.11/lib/python3.11/site-packages/asynctest/mock.py:433: in _AwaitEvent
    ???
E   AttributeError: module 'asyncio' has no attribute 'coroutine'ImportError while loading conftest '/home/auke/projects/ocpp/tests/conftest.py'.
tests/conftest.py:2: in <module>
    from asynctest import CoroutineMock
../../.cache/pypoetry/virtualenvs/ocpp--w1P7PD0-py3.11/lib/python3.11/site-packages/asynctest/__init__.py:22: in <module>
    from .case import *
../../.cache/pypoetry/virtualenvs/ocpp--w1P7PD0-py3.11/lib/python3.11/site-packages/asynctest/case.py:54: in <module>
    import asynctest.selector
../../.cache/pypoetry/virtualenvs/ocpp--w1P7PD0-py3.11/lib/python3.11/site-packages/asynctest/selector.py:29: in <module>
    from . import mock
../../.cache/pypoetry/virtualenvs/ocpp--w1P7PD0-py3.11/lib/python3.11/site-packages/asynctest/mock.py:428: in <module>
    class _AwaitEvent:
../../.cache/pypoetry/virtualenvs/ocpp--w1P7PD0-py3.11/lib/python3.11/site-packages/asynctest/mock.py:433: in _AwaitEvent
    ???
E   AttributeError: module 'asyncio' has no attribute 'coroutine'

It's a known issue of asynctest, see https://github.com/Martiusweb/asynctest/issues/161.
The library is unmaintained and I don't expect a fix. So we should replace the library.

Currently I see:
`
platform linux -- Python 3.11.5, pytest-7.2.0, pluggy-1.0.0
rootdir: /home/jared/PycharmProjects/ocpp/tests
plugins: cov-4.0.0, asyncio-0.20.3
asyncio: mode=Mode.STRICT
collected 96 items
test_charge_point.py ..........                                                                                [ 10%]
test_exceptions.py ....                                                                                [ 14%]
test_messages.py ................FF......                                                                                [ 39%]
test_routing.py .                                                                                [ 40%]
v16/test_v16_charge_point.py ..........                                                                                [ 51%]
v16/test_v16_enums.py ....................................                                                                                [ 88%]
v20/test_v20_charge_point.py ....                                                                                [ 92%]
v201/test_v201_charge_point.py ....                                                                                [ 96%]
v201/test_v201_enums.py ...
___________________________________________________________________________________________________ test_call_representation ___________________________________________________________________________________________________
def test_call_representation():
    call = Call(unique_id="1", action=Action.Heartbeat, payload={})

  assert str(call) == "<Call - unique_id=1, action=Heartbeat, payload={}>"

E       AssertionError: assert '<Call - uniq..., payload={}>' == '<Call - uniq..., payload={}>'
E         - <Call - unique_id=1, action=Heartbeat, payload={}>
E         + <Call - unique_id=1, action=Action.Heartbeat, payload={}>
E         ?                             +++++++
test_messages.py:264: AssertionError
def test_call_result_representation():
    call = CallResult(
        unique_id="1", action=Action.Authorize, payload={"status": "Accepted"}
    )

  assert (

        str(call) == "<CallResult - unique_id=1, action=Authorize, payload={'status': "
        "'Accepted'}>"
    )

E       assert "<CallResult ... 'Accepted'}>" == "<CallResult ... 'Accepted'}>"
E         - <CallResult - unique_id=1, action=Authorize, payload={'status': 'Accepted'}>
E         + <CallResult - unique_id=1, action=Action.Authorize, payload={'status': 'Accepted'}>
E         ?                                   +++++++
test_messages.py:272: AssertionError
'
with
`
from enum import Enum, auto
class Action(str, auto):
"""An Action is a required part of a Call message."""
`
I see now:
`
platform linux -- Python 3.11.5, pytest-7.2.0, pluggy-1.0.0
rootdir: /home/jared/PycharmProjects/ocpp/tests
plugins: cov-4.0.0, asyncio-0.20.3
asyncio: mode=Mode.STRICT
collected 96 items
test_charge_point.py ..........                                                                                [ 10%]
test_exceptions.py ....                                                                                [ 14%]
test_messages.py ........................                                                                                [ 39%]
test_routing.py .                                                                                [ 40%]
v16/test_v16_charge_point.py ..........                                                                                [ 51%]
v16/test_v16_enums.py ....................................                                                                                [ 88%]
v20/test_v20_charge_point.py ....                                                                                [ 92%]
v201/test_v201_charge_point.py ....                                                                                [ 96%]
v201/test_v201_enums.py ...                                                                                [100%]
====================================================================================================== 96 passed in 0.34s ======================================================================================================
platform linux -- Python 3.11.5, pytest-7.2.0, pluggy-1.0.0
rootdir: /home/jared/PycharmProjects/ocpp/tests
plugins: cov-4.0.0, asyncio-0.20.3
asyncio: mode=Mode.STRICT
collected 96 items
test_charge_point.py ..........                                                                                [ 10%]
test_exceptions.py ....                                                                                [ 14%]
test_messages.py ........................                                                                                [ 39%]
test_routing.py .                                                                                [ 40%]
v16/test_v16_charge_point.py ..........                                                                                [ 51%]
v16/test_v16_enums.py ....................................                                                                                [ 88%]
v20/test_v20_charge_point.py ....                                                                                [ 92%]
v201/test_v201_charge_point.py ....                                                                                [ 96%]
v201/test_v201_enums.py ...                                                                                [100%]
====================================================================================================== 96 passed in 0.34s ======================================================================================================
`

#447 and this issue are independent issues that both causes the Python 3.11 build to fail.
We should address them both individually.

What I see when running the tests is only the test failing related to Enum's issue. Once this is corrected then all the test pass. I don't see the asynctest issue shown with the pytest output above. Does it still exist?

Interesting. I've no idea why it works now.
I think it's still a good idea to remove the dependency, since it's unmaintained. And as @mgonzalezperna stated, we can replace it with a type in the stdlib, reducing the list of   dependencies.

I might then change the tag to an enhancement

PR https://github.com/mobilityhouse/ocpp/pull/585 created and approved for inclusion in v1.0.0 - so closing issue

PR https://github.com/mobilityhouse/ocpp/pull/585 created and approved for inclusion in v1.0.0 - so closing issue


Cant start docker image

Hello,
i tried to run your project as docker container with the following command  docker run  -p 3001:3001 louislam/uptime-kuma on an x86_64 Ubuntu 20 server. Unfortunately i can't get it up and running. The following error occurs and the service cant be reached at all:
Connect to Database

Load JWT secret from database.

(node:20) UnhandledPromiseRejectionWarning: Error: SELECT COUNT(*) FROM `user`  limit 1 - SQLITE_CORRUPT: database disk image is malformed

(Use `node --trace-warnings ...` to show where the warning was created)

(node:20) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)

(node:20) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

This error occurs for the latest version as well as version 1. Does anybody else have this issue and can it reproduce it?

Same as #51 .

I am still investigating what possible can causes the sqlite db corrupted. I suspected that I did not implemented graceful shutdown for the current release, but still not sure.
I may try to use another volume, see if the error still occur.

After deleting the kuma.db file it worked and started successfully, thanks 👍 !
I retested it multiple times, the error occurs, at least for me, after every fresh installation. So just using creating a new container with a new volume is not enough :)

added graceful shutdown in 1.0.5, hopefully fixed this problem.

Tested it on my system and works like a charm 👍  Thanks!


Documentation or change logs for react-17.0.0-alpha.0

I was checking my twitter feed and checked react's package.json and found that react now has 17.0.0-alpha.0 version. It is a major release of react and I also know that things are into alpha but still, I am curious to learn about what is changed/changing and want to try things out. Is there any PR/Issues that can help me or any other place to find changelogs about the new version?

I found all the details and changes in React 17 release blog. Closing this issue.


Auto close option

Many date pickers have an autoclose feature that hides the picker once you have chosen a date. I couldn't work out how to do this properly but the following seems to work:
In function DTS defaultConfig add:
autoClose: false
In DTBox.prototype.onDateSelected add this at the end:
if (this.settings.config.autoClose){
var blur = new Event('blur');
this.elem.dispatchEvent(blur);
}
There is probably a better way.  Cheers

I agree with you that would be nice an auto close option. I solved this adding  this.cancelBlur -= 1; inside function onDateSelected, just after line 525.


Revert "[9.x] fix deprecation in is_file function"

Reverts laravel/framework#45216
The docblock clearly states you can only pass a string. Like decided in the past, we won't be typecasting inside methods as this could lead to an exponential list of new PRs similar to this one.

Reverts #45216
The docblock clearly states you can only pass a string. Like decided in the past, we won't be typecasting inside methods as this could lead to an exponential list of new PRs similar to this one.

I understood. Thanks


"What is" a deployment ring

Why not include something, anything, that actually says what a deployment ring actually is???????
[Enter feedback here]

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

ID: 076cd358-0935-41ac-ed07-96ac5ce4c914
Version Independent ID: 17f39a3c-db2f-37d1-05d1-e1387e0297e8
Content: Progressively expose your releases using deployment rings - Azure DevOps
Content Source: docs/migrate/phase-rollout-with-rings.md
Service: azure-devops
Sub-service: azure-devops-migrate
GitHub Login: @chcomley
Microsoft Alias: chcomley

@zissbilloutlook - Thank you for your inquiry and apologies for the lack of clarity. Deployment rings are groups of devices used to initially pilot, and then to broadly deploy, each feature update in an organization.  I'll make sure to update the article with this explanation.  Here are a few more resources:

How Microsoft develops with DevOps
Shift right to test in production
Considerations for updating a multitenant solution


Change build directory name to start with dot to make it "hidden" as per unix convention

Hi! Here is a simple idea.
I like to interact with the file system in a shell as well as a file manager/finder/explorer.
I was thinking that it would be nice if the build directory was "hidden" by default, i e prefixed with a dot as per unix convention.
Then it will not show up by default in the shell (ls, tree, etc), which would be nice, IMO.
BR! /marcus

Yes, that'll do :-)
Sorry Jens, missed that. Thanks for your time!


Skip CLA for pull requests where OSBotify is the author

Details
CLA is failing on automerge PRs, which we think causes them to not be automatically merged.
To fix this, skip CLA for PRs created by OSBotify

Merging to test deploy workflow, no need to wait for e2e tests here

@Jag96 looks like this was merged without passing tests. Please add a note explaining why this was done or remove the Emergency label if this is not an emergency.


Start Fails

Good Morning,
this night the integration (version 0.23) doesn't get new values and after restart of Homeassistant it doesn't even load.
There were no changes in the environment, no updates, no restarts of any service, nothing - very strange.
Before it worked perfectly in Homeassistant 2021.6.6 in Synology Docker . Here's the log concerning the gardena integration when HASS starts, I hope this helps:
Logger: homeassistant.config_entries
Source: custom_components/gardena_smart_system/init.py:88
Integration: Gardena Smart System integration (documentation, issues)
First occurred: 09:54:02 (1 occurrences)
Last logged: 09:54:02
Error setting up entry for gardena_smart_system
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 293, in async_setup
result = await component.async_setup_entry(hass, self)  # type: ignore
File "/config/custom_components/gardena_smart_system/init.py", line 51, in async_setup_entry
await hass.async_add_executor_job(gardena_system.start)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/gardena_smart_system/init.py", line 88, in start
self.smart_system.update_locations()
File "/usr/local/lib/python3.8/site-packages/gardena/smart_system.py", line 209, in update_locations
response_data = self.__call_smart_system_get(f"{self.SMART_HOST}/v1/locations")
File "/usr/local/lib/python3.8/site-packages/gardena/smart_system.py", line 180, in __call_smart_system_get
if self.__response_has_errors(response):
File "/usr/local/lib/python3.8/site-packages/gardena/smart_system.py", line 159, in __response_has_errors
r = response.json()
File "/usr/local/lib/python3.8/site-packages/requests/models.py", line 900, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/local/lib/python3.8/site-packages/simplejson/init.py", line 525, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.8/site-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/usr/local/lib/python3.8/site-packages/simplejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Hello.
I have the same problem.
I have tried to reinstall, but without success.

exact same here.

same here...

I have started to experience this issue.
2021-07-05 23:01:07 DEBUG (SyncWorker_5) [custom_components.gardena_smart_system.config_flow] Trying to connect to Gardena during setup
2021-07-05 23:01:12 ERROR (MainThread) [custom_components.gardena_smart_system.config_flow] Unexpected exception
Traceback (most recent call last):
File "/config/custom_components/gardena_smart_system/config_flow.py", line 66, in async_step_user
await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/gardena_smart_system/config_flow.py", line 133, in try_connection
smart_system.update_locations()
File "/usr/local/lib/python3.9/site-packages/gardena/smart_system.py", line 209, in update_locations
response_data = self.__call_smart_system_get(f"{self.SMART_HOST}/v1/locations")
File "/usr/local/lib/python3.9/site-packages/gardena/smart_system.py", line 180, in __call_smart_system_get
if self.__response_has_errors(response):
File "/usr/local/lib/python3.9/site-packages/gardena/smart_system.py", line 159, in __response_has_errors
r = response.json()
File "/usr/local/lib/python3.9/site-packages/requests/models.py", line 900, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/local/lib/python3.9/site-packages/simplejson/init.py", line 525, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.9/site-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/usr/local/lib/python3.9/site-packages/simplejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

I have also started to experience this issue. I haven't been able to get it working for some weeks now.

Did you get it working before ? when did you start experiencing this issue ?

I have also started to experience this issue. I haven't been able to get it working for some weeks now.

Did you get it working before? when did you start experiencing this issue?

Had it working since earlier this year.  It broke after update 2021.6 I think.

Hi
I have exactly the same error (simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)) since yesterday but still on 2021.5.1 and did not do any updates. Btw also running on Synology Docker.
Jacques

Same here. @grm could this be fixed by a new release? There have been a few commits here and in py-smart-gardena.

Same issue for me as well. Stopped working today.

Hello,
I ll try to have a look into it today !
Jeremie
Le mer. 7 juil. 2021 à 00:34, rasssta @.***> a écrit :

Same issue for me as well. Stopped working today.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/py-smart-gardena/hass-gardena-smart-system/issues/79#issuecomment-875126948,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAARGI5MG5BTD2WSGZTPGDDTWOAILANCNFSM472GPG5A
.

Hey,
could someone paste me some error messages/logs/stack trace from your system ?
I just restarted my instance, and I did not see this issue.
Jérémie

Hi, here's the newest log entry after restart of Homeassistant:
Last logged: 12:43:31
Error setting up entry for gardena_smart_system
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 293, in async_setup
result = await component.async_setup_entry(hass, self)  # type: ignore
File "/config/custom_components/gardena_smart_system/init.py", line 51, in async_setup_entry
await hass.async_add_executor_job(gardena_system.start)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/gardena_smart_system/init.py", line 88, in start
self.smart_system.update_locations()
File "/usr/local/lib/python3.8/site-packages/gardena/smart_system.py", line 209, in update_locations
response_data = self.__call_smart_system_get(f"{self.SMART_HOST}/v1/locations")
File "/usr/local/lib/python3.8/site-packages/gardena/smart_system.py", line 180, in __call_smart_system_get
if self.__response_has_errors(response):
File "/usr/local/lib/python3.8/site-packages/gardena/smart_system.py", line 159, in __response_has_errors
r = response.json()
File "/usr/local/lib/python3.8/site-packages/requests/models.py", line 900, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/local/lib/python3.8/site-packages/simplejson/init.py", line 525, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.8/site-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/usr/local/lib/python3.8/site-packages/simplejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

As i do not have the issue on my side, i'll probably have to make a debug version ..
Or maybe i can ship you some code to update the library in order to have more information about the issue ?
If someone feels confortable modifying the file smart_system.py to update this function __reponse_has_errors with this code  :
    def __response_has_errors(self, response):
        if response.status_code not in (200, 202):
            try:
                r = response.json()
                if 'errors' in r:
                    msg = "{r['errors'][0]['title']} - {r['errors'][0]['detail']}"
                elif 'message' in r:
                    msg = f"{r['message']}"

                    if response.status_code == 403:
                        msg = f"{msg} (hint: did you 'Connect an API' in your Application?)"
                else:
                    msg = f"{r}"
            except JSONDecodeError:
                msg = response.content
            self.logger.error(f"{response.status_code} : {msg}")

            if response.status_code in (401, 403, 429):
                raise Exception(msg)

and paste me the output , it would be great !
Jérémie

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.8/site-packages/gardena/smart_system.py", line 160, in __response_has_errors
    r = response.json()
  File "/srv/homeassistant/lib/python3.8/site-packages/requests/models.py", line 900, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/lib/python3.8/json/__init__.py", line 357, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.8/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/config_entries.py", line 269, in async_setup
    result = await component.async_setup_entry(hass, self)  # type: ignore
  File "/home/homeassistant/.homeassistant/custom_components/gardena_smart_system/__init__.py", line 51, in async_setup_entry
    await hass.async_add_executor_job(gardena_system.start)
  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/homeassistant/.homeassistant/custom_components/gardena_smart_system/__init__.py", line 88, in start
    self.smart_system.update_locations()
  File "/srv/homeassistant/lib/python3.8/site-packages/gardena/smart_system.py", line 209, in update_locations
    response_data = self.__call_smart_system_get(f"{self.SMART_HOST}/v1/locations")
  File "/srv/homeassistant/lib/python3.8/site-packages/gardena/smart_system.py", line 180, in __call_smart_system_get
    if self.__response_has_errors(response):
  File "/srv/homeassistant/lib/python3.8/site-packages/gardena/smart_system.py", line 170, in __response_has_errors
    except JSONDecodeError:
NameError: name 'JSONDecodeError' is not defined

My bad, could you add :
from json.decoder import JSONDecodeError

To the top of the files with the other imports please ?

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/config_entries.py", line 269, in async_setup
    result = await component.async_setup_entry(hass, self)  # type: ignore
  File "/home/homeassistant/.homeassistant/custom_components/gardena_smart_system/__init__.py", line 51, in async_setup_entry
    await hass.async_add_executor_job(gardena_system.start)
  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/homeassistant/.homeassistant/custom_components/gardena_smart_system/__init__.py", line 88, in start
    self.smart_system.update_locations()
  File "/srv/homeassistant/lib/python3.8/site-packages/gardena/smart_system.py", line 212, in update_locations
    response_data = self.__call_smart_system_get(f"{self.SMART_HOST}/v1/locations")
  File "/srv/homeassistant/lib/python3.8/site-packages/gardena/smart_system.py", line 183, in __call_smart_system_get
    if self.__response_has_errors(response):
  File "/srv/homeassistant/lib/python3.8/site-packages/gardena/smart_system.py", line 176, in __response_has_errors
    raise Exception(msg)
Exception: b''

Logger: gardena.smart_system
Source: /srv/homeassistant/lib/python3.8/site-packages/gardena/smart_system.py:173
First occurred: 2:06:11 PM (1 occurrences)
Last logged: 2:06:11 PM

401 : b''

Hum, could you try to make a new application  in the gardena developer portal ( https://developer.husqvarnagroup.cloud/apps ) and reconfigure the integration with the new application credentials ?
The code 401 seems to be related to authentification !
Jérémie

Or at least check your conf in the portal.

I removed it and re-created it - works! 🧐

I think there had been some token invalidation in the gardena system. It already happened in the past.

Recreating a new API seems to have worked for me also.  Thank you.

Recreating the API does not solve the problem for me.
The error I get is Simultaneous logins detected for client:
Logger: homeassistant.config_entries
Source: custom_components/gardena_smart_system/__init__.py:87
Integration: Gardena Smart System integration (documentation, issues)
First occurred: 20:15:24 (2 occurrences)
Last logged: 20:17:42

Error setting up entry for gardena_smart_system
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 293, in async_setup
  result = await component.async_setup_entry(hass, self)  # type: ignore
File "/config/custom_components/gardena_smart_system/__init__.py", line 51, in async_setup_entry
  await hass.async_add_executor_job(gardena_system.start)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
  result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/gardena_smart_system/__init__.py", line 87, in start
  self.smart_system.authenticate()
File "/usr/local/lib/python3.8/site-packages/gardena/smart_system.py", line 113, in authenticate
  self.token = self.oauth_session.fetch_token(
File "/usr/local/lib/python3.8/site-packages/requests_oauthlib/oauth2_session.py", line 360, in fetch_token
  self._client.parse_request_body_response(r.text, scope=self.scope)
File "/usr/local/lib/python3.8/site-packages/oauthlib/oauth2/rfc6749/clients/base.py", line 429, in parse_request_body_response
  self.token = parse_token_response(body, scope=scope)
File "/usr/local/lib/python3.8/site-packages/oauthlib/oauth2/rfc6749/parameters.py", line 425, in parse_token_response
  validate_token_parameters(params)
File "/usr/local/lib/python3.8/site-packages/oauthlib/oauth2/rfc6749/parameters.py", line 432, in validate_token_parameters
  raise_from_error(params.get('error'), params)
File "/usr/local/lib/python3.8/site-packages/oauthlib/oauth2/rfc6749/errors.py", line 402, in raise_from_error
  raise cls(**kwargs)
oauthlib.oauth2.rfc6749.errors.InvalidClientIdError: (invalid_request) Simultaneous logins detected for client[id=3f5a...], user[id=45a6<EMAIL_ADDRESS>
I tried multiple times and there is no other second system that would try a login with the newly created API data.
Side note:
At the same time that HA lost the connection, the Gardena App also asked me to enter my credentials again.
I have a feeling that Husqvarna is fiddling around with their OAuth2 identity provider.

You need to log out with your web browser

Well, I did a restart of HA which also solved it. Strange behaviour. Thanks for your help.

I can also confirm that the following steps worked for me:

Log in to https://developer.husqvarnagroup.cloud/
Delete Home Assistant app
Create a new ID
Edit .storage/core.config_entries and update client_id and id fields in data for the entry that has "domain": "gardena_smart_system".
Logout from developer portal
Retart HA

Maybe the fix here could then be to catch this error and send a HA notification so it pops up prominently with clear instructions.

...catch this error and send a HA notification so it pops up prominently with clear instructions.

This would indeed be very helpful.

I am not sure how to achieve a good long term solution.
I already instrumented the code to be able to know the source of the issue next time in the underlying library, but I need to check how i can send the information to hass for proper display !
Jérémie

(i can easily log at startup the issue, but alerting the front with a toaster, i am not sure)

I think it would be enough to spice up the crash message in the log with a speaking explanation. When the installation of the integration fails, you already get a clearly visible warning in the Integrations page with a direct link to corresponding log entry.

Indeed, there is no easy way to alert the front, i think we wll have to stic to the logs (which is by the way the first thing to do when there is an issue :D )

A new release 0.8.2 should solve the issue by printing a log when there is a token issue !
I cannot detect a wrong token from an expired token, so the message is generic ..
See https://github.com/py-smart-gardena/hass-gardena-smart-system/commit/c964c110e8f7ebe3aefa8178fd2230e31afd1f89 with a typo i will correct !

I was thinking along the lines of a persistent notification. Pretty much like you see new integration discoveries. Can this be sent from the plugin for this error?


[PE-D] Inconsistent flag format throughout the UG

Sometimes the flag requires us to put a "" around the values, but sometimes it does not. If it is standardised, it would be much clearer.

Labels: type.DocumentationBug severity.Medium
original: s7u4rt99/ped#11

Related to #142


WIP: Editing "Admin-Corner/Database_schema" slide with tutorial text - work on progress

Separated update of the tutorial and addition of tool to generate slides automatically from markdown sources.
See new PR:
https://github.com/bgruening/training-material/pull/130


Error after building or running in Docker on Debian 11 Bullseye

I am sure I am doing something wrong here; a little help would be great.  I have high hopes for using entangled daily and would love to capture my installation as instructions or perhaps an apt package.
I followed the build and install directions to the best of my knowledge; and this is the result.

Furthermore, the Docker example command gives this error:

I will start to dig in more myself, but if anyone has some direction I would appreciate it;  I'm well familiar with Docker but Haskell is new to me so any advise is of course welcome.

NM.....  I updated packages and rebuilt.  My apologies jumping the gun on opening the issue.
Excited to start literate programming again!  Thank you!