"error: no cast devices found on network" after upgrade from windows 10 to windows 11

after i've upgraded my windows 10 to 11, go-chromecast does not see anymore my chromecast in my network.
and return "error: no cast devices found on network".
i've disable firewall but not working...

i found... when windows update, they disabled ipv6 on my pc... after reactivated, they reworked...

@mcarbonneaux thanks for posting your fix :)

The problem is that the Google Homes use mDNS to discover devices, so a multicast discovery message is sent out and we just listen for any responses. I'm not sure how we could surface any errors here, but I'm open to suggestions?


Replace AbstractMinecartEntity$Type ASM with enum mixin

This PR replaces the Fabric-ASM "early riser" with a mixin targetting AbstractMinecartEntity$Type, using some interesting hacks to accomplish the same thing. This allows the mod to run on Forge via Sinytra Connector (previously the game would crash during startup in such a case).

I am yet to test this code, I will assume it works fine and functionally works.
I do find the PR a bit unsatisfying though. If I merge this hack would ASM not be redundant? Since the type field is created in the Mixin class, the rest of the ASM code should probably just be removed/replaced using it.

The only other use of Fabric-ASM in the mod is the following line in MythicMetals.java:
https://github.com/Noaaan/MythicMetals/blob/237d4c29ee820470308a38017f0c937c42b8b4c9/src/main/java/nourl/mythicmetals/MythicMetals.java#L60
...which can technically be replaced with something like:
public static final AbstractMinecartEntity.Type BANGLUM_TNT = Arrays.stream(AbstractMinecartEntity.Type.class.getEnumConstants()).filter(constant -> constant.name().equals("BANGLUM_TNT")).toList().get(0);

...since that's just about what ClassTinkerers#getEnum does anyway.


Showing Extension package version on the footer

Notes for Reviewers
This PR fixes #

Currently the version is showed on the footer on entire Meshery, Need to figure out a method to show the version only when a user is in the MeshMap Page
Signed commits

[x] Yes, I signed my commits.

Need to figure out a method to show the version only when a user is in the MeshMap Page

to check if the user is on MeshMap page, check the path param.

https://github.com/meshery/meshery/assets/51183483/4cf139ab-25e9-4ba6-bad6-c14bd0c498bb

Isn't it misaligned?

Isn't it misaligned?

It's centered, with some spaces between the version and the text

One more place we could add this is on the extensions card on the extensions page in Meshery UI.


How to include RDF/XML parser

Hi,
we are currently using this great library into one of our academical projects. However, I am working with backend (NodeJS) and I would like to upload also rdf/xml files.
The problem is that I don't know where this parser is so I downloaded this file https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/a894cd7d5aa68de569b4dfd65b18b0ed583a50c7/src/js-communication/src/rdfxml_parser.js
Now - how do I load it into rdfstore so that I can upload an rdf/xml file?
What I am looking for is something like:
store.load("application/rdf+xml" , ontology, "graph", function(err, results)

where ontology = local file
Anticipately thanks and thanks for everyone's efforts so far on this project!
i.

Hi.
To add a parser for a particular media-type, you need to pass the information during the instantiation of the store.
An example can be found in the frontend directory, where a RDFa parser is registered.
This is an example of how to register the parser:
rdfstore.create({"communication": {
                     "parsers": {
                       "text/html" :           rdfstore_frontend.rdfaParser,
                       "application/rdf+xml":  rdfstore_frontend.rdfParser
                     },
                   "precedences": ["text/n3", "text/turtle", "application/rdf+xml", "text/html", "application/json"] }
                  }, callback);

The 'communication' argument receives an object with two properties:

'parsers': a map of media types to parsers for each of this media types.
'precedences': a list of media types indicating which format is preferred during content negotiation when loading a remote resource.

The other important thing to take into account is the interface for the parser.
The parser object must implement a 'parse' function accepting the raw data of the serialised RDF graph, a graph object for the named graph where the RDF data will be inserted, an options argument that can be ignored and a callback function that must be invoked with the parsed data or indicating an error.
Again, an example from the frontend:
RDFaParser.parse = function(data, graph, options, callback) {
  // parsing logic here

  callback(null, quads);
}

The 'quads' objects returned in the parser callback must meet the format expected by the store:
// named node
{'uri': uri}

// blank node
{'blank' : '_:'+counter}

// literal
{'literal': literalLexicalForm}

Take a look at the files in the frontend for a working example:

For the registration of the parser: https://github.com/antoniogarrote/rdfstore-js/blob/master/frontend/index.html
For the implementation of the parser wrapper: https://github.com/antoniogarrote/rdfstore-js/blob/master/frontend/js/rdfstore_frontend.js

Cheers.

Thanks so much for the answer :+1:


fix typo and russianx string in en locale

typo fixed
there was a russian word left in a string which also has the time duration in it instead of only the macro as it seems to be in russian locale

Thank you for PR! :+1:


Development nginx default page

Description
Update our Nginx configuration to load our default HTML page
Changes

added sals/nginx/static directory
Updated nginx.conf template
Updated sals/nginx.pu

Related Issues
https://github.com/threefoldtech/js-sdk/issues/505

Tested against development_capacitypool
start --local
install marketplace package
go to https://localhost:8443/marketplace
you will find 404

@waleedhammam It's the config of marketplace:
name = "marketplace"
ports = [ 80, 443]

That's why it does not work on 8443.


minute update to responses.md

indent
give > given

@<PHONE_NUMBER>Z
:rocket: $XLM
++ :heart_decoration: ;

Can you sign the Contributor License Agreement?

Can you sign the Contributor License Agreement?

:ballot_box_with_check:

Heya!
Been reading 💡lately! Is it a better approach to have a fork and push minor changes with myself, and have it later pulled into mains, or shall I keep puffing up PRs (non-technical) ?
I favor the former, though request some time range (1 week vs 1 month?).. Tysm @tomerweller ✌


different results between HF demo and inference result for virtual try-on

Huggingface

inference:

Hi, I have run the inference code and the huggingface demo using the same parameters. However, the huggingface demo seems to produce better results. I do understand that the masks are different as one needs to draw the mask by hand on HF. I was wondering if the model weights you released and the model used on HF are the same? What would contribute to the difference?

The weights are the same.
The difference is that, when you use the validation code, the target masks are extracted by the GT masks, like the vest in this case. This causes the problem that the mask for the vest is not suitable for a T-shirt.  However, when you use the HF demo, you would manually draw the suitable mask for the T-shirt

The weights are the same. The difference is that, when you use the validation code, the target masks are extracted by the GT masks, like the vest in this case. This causes the problem that the mask for the vest is not suitable for a T-shirt. However, when you use the HF demo, you would manually draw the suitable mask for the T-shirt

Thank you. I was wondering how to enable shape control as well in the code, there is that option on HF.

You could refer to some snippets at
https://huggingface.co/spaces/xichenhku/AnyDoor-online/blob/fdd218f324c1a0150611892497acc382d5ca852a/app.py#L191-L194


Update sewer-cli.md

Fix a link
Thank you for contributing to sewer.
Every contribution to sewer is important to us.
You may not know it, but you have just contributed to making the world a more safer and secure place.
Contributor offers to license certain software (a “Contribution” or multiple
“Contributions”) to sewer, and sewer agrees to accept said Contributions,
under the terms of the MIT License.
Contributor understands and agrees that sewer shall have the irrevocable and perpetual right to make
and distribute copies of any Contribution, as well as to create and distribute collective works and
derivative works of any Contribution, under the MIT License.
Now,
What(What have you changed?)
I fixed a link.
Why(Why did you change it?)
Github 404.

Thank you mamadshr

Thank you mamadshr


Quite different outputs between actuator 0,1 and 2,3

Hi,
I used px4flow and EKF2 for my quad to hold the position. When I switched to POSCTRL, the vehicle could keep stable for several seconds and then it began to vibrated and rotate in yaw. I found from the log that the actuator outputs 0,1 were smaller than 2,3, and motor 3,4 were overheated.
I have already calibrated the ESC and I don't know why it coming.
https://logs.px4.io/plot_app?log=57ad5a44-4bf8-43f2-9cac-534c595580fa

Make sure that all motors are level on the frame and make sure your center of gravity is correct. You have a problem with your mechanical layout.
https://logs.px4.io/plot_app?log=57ad5a44-4bf8-43f2-9cac-534c595580fa#Nav-Actuator-Outputs-Main


Allow kubeletPort to be set separately for metrics and metrics-agg

<
What would you like to be added:
I would like to be able to set the kubelet port for metrics and metrics-agg separately in the helm deploy, similar to how the buffers are handled.
https://github.com/splunk/splunk-connect-for-kubernetes/blob/ddba2d21dc5c6af87243fd71b51d5afec963bff4/helm-chart/splunk-connect-for-kubernetes/values.yaml#L867
Why is this needed:
MicroK8s serves the kubelet metrics on 10255 but the agg metrics on the 10250. I'd imagine it is possible to see this in other k8s distros as well. Today i workaround this by editing the rendered helm charts directly

Why isnt 10250 working for you for metrics? Is it because of self signed certificates?

Not sure i get 400 bad request, I can show ya later today if you are free
On May 8, 2020, at 13:42, Chaitanya Phalak<EMAIL_ADDRESS>wrote:
[ External sender. Exercise caution. ]
Why isnt 10250 working for you for metrics? Is it because of self signed certificates?
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHubhttps://github.com/splunk/splunk-connect-for-kubernetes/issues/384#issuecomment-625934158, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHQWOGJQRCPDCSELGYX66TTRQRABVANCNFSM4M3IYCLQ.

Fixed as part of https://github.com/splunk/splunk-connect-for-kubernetes/pull/395


Remove direct render include in ExternalTexture

This include introduces windows/platform_gl.h into the include hierarchy which adds defines which break building on MSVC
See:

https://github.com/godotengine/godot/pull/96982#issuecomment-2365172598

Related to:

https://github.com/godotengine/godot/pull/96525

I think this and previous incidents implies we should do an SCU build for MSVC (can't confirm if it happens on clang-cl) since these do crop up from time to time

Thank you!

Thank you!


⚠ Secret Website 3 has degraded performance

In 16f25be, Secret Website 3 ($SECRET_WEBSITE_3) experienced degraded performance:

HTTP code: 200
Response time: 3408 ms

Resolved: Secret Website 3 performance has improved in be90ae9.


Trying to scrape all data

Hi there,
I'm trying to scrape, on a daily basis, the summary for each coin using this function:
coinmarketcap.coin_summary('bitcoin')
However i'm struggling to find a way to get all the coin names. Do you happen to have a list ?
Kind Regards,

Hi,
I don't have a list of all the coins but you could come up with a way to get all coin IDs in a couple of LOC.
Have a look at this for a way to get a coin ID

Hey, thanks for the reply.
Hm I can only code basic programs in python, could you kindly give further instructions on what code i would need to write in scrape the ID in each element for each coin ?
Regards

Hi,
you will indeed need to scrape the coinmarketcap HTML. You coul adapt the coin_info()function in coinmarketcap/utils.py to suit your needs.
Cheers.

I have scrapped the HTML and have a csv of coins and their codes, would you like me to send it and the code over to you encase someone requires it ? ..... just a thought

Hi there,
you could always create a PR an add the CSV file to the docdirectory. :smile:
I'm closing this as you've resolved the issue.
Much appreciated.
Cheers.


Support arm64 runners

This is implemented on top of the earlier https://github.com/tailscale/github-action/pull/71, which added OAuth client support. To review this PR please select the second commit. This PR will be rebased on top of the earlier PR after it merges to main, and then be tagged as the v2 of this GitHub Action.


[Governance] BAMM and SAMM

It's been a couple of months since the meta-model was renamed from bamm to samm. Yet, the old name is still present in all models. Have we made a conscious decision to keep it this way? Or should we discuss this as it will lead to ever-increasing confusion?

Hi @arnoweiss , I just found this issue, also FYI @bs-jokri
I can see that this issue has been created in April. If you need help from us ESMF maintainers to discuss/proceed, please contact us (email  mailinglist https://accounts.eclipse.org/mailing-list/esmf-dev / forum https://www.eclipse.org/forums/index.php/f/617/ / github issue (for bugs/feature requests)

Decision to make SAMM mandatory meta model from July, 7th onwards. Old BAMM models remain valid but need to be updated as soon as they are updated (incremental migration approach)


Remove [prefix] from issue template titles

What does this PR do and why?
As per title based on Discord discussion.

cc @peripheralist @johnnyd-eth , going to merge this w/o approval given our Discord discussion.


do_server_auth is removed in worker.py in the latest spark 2.3.2

do_server_auth is removed from spark 2.3.2 Detail
local_connect_and_auth in spark 2.3.2

do_server_auth in spark 2.3.1

do_server_auth in spark 2.2.2

there is no auth function in spark 2.2.1

It seems that in spark 2.2.2 and spark 2.3.1 the current do_server_auth is being used,
but in newer version 2.3.2 and 2.4 this method is removed and start using local_connect_and_auth method. In I earlier version 2.2.1 there is no authorization.
This will cause the streamingpro predictAPI of pythonAlg running unsuccessfully
So to modify the default worker.py makes no sense to some extend

You are right.  We have fixed this issue the lasted commit.

Please try it again and if there are any problems, please let me know.


Host field should be mandatory in SSL section of Add ingress page

Select cluster, project, namespace
Add an Ingress
In SSL section, there is a Host field. If I use a STAR/Wildcard certificate, the Host needs to be specified. This field should be made mandatory.

Without this, the ingress wouldn't work. And it becomes very difficult to debug as well.

Version - 2.2 master 11/14
Verified fixed


Question about the DCR privacy metric

Hello! Firstly, thank you for creating this wonderful library!
I had a question regarding the DCR privacy metric implementation.
In your paper and code, you compare the median DCR of (synthetic, train) and (train, train) distances.
I was wondering if you considered comparing the median DCR of (synthetic, train) and (holdout, train)? I have usually seen this version (page 4 in ref), and I was wondering if you had any insights into why (train, train) was used.
I am using the DCR metric in a project and wanted to know if a holdout dataset should be used or not.

Hi! Thank you for your appreciation of what we are doing!
Yes. As we mention in our paper the metric has a wealth of slightly different implementations in the literature, e.g. Fan et al., use avg(dist(train, synth)) - and Ooko et al. use some form of 5th percentile dist(test, train) compared with dist(synth, train). The paper you mention uses a similar comparison but with 5th percentile of dist(train, synth) vs. dist(train, test).
In the version currently implemented in our code we use median(dist(synth, train))/median(dist(train,train)), which is not something we have seen elsewhere in the literature. Back when we implemented this metric we experimented with the different ideas mentioned above but encountered some drawbacks that ultimately landed us on this version.
In particular:

Using avg(dist(train, synth)) even on normalised data returns an unbounded number which does not carry a lot of information. I.e. it does not tell you if the violation is serious or not, because we have nothing to compare with.
Turning the above number into a fraction of the avg(dist(train, synth))/avg(dist(train,train)) or avg(dist(train, synth)/dist(train,train)) sometimes causes the DCR value to explode or vanish (e.g. if training samples are too similar).
Putting a hard pass criterion like the 5th percentile of dist(train, synth) vs. dist(train, test), is something we wished to avoid since privacy is not an absolute property of synthetic data. Consider what happens up until, and crossing the criterion: would you say that the data goes from totally unsafe to totally safe at any particular point near this threshold?

The reason we end up using dist(train,train) in the denominator is to assess how the dist(synth,train) is in comparison to the real data's inherent compactness. If synthetic samples are further away from the real records than the records are amongst themselves we get a number above one - and on the converse a number below one.
That said, we wouldn't recommend relying on metrics such as DCR or NNDR, as the paper you mentioned demonstrates these metrics tend to underestimate privacy risks. We include them in the current version of SynthEval because they are widely used, not because they are the best metrics out there.

Thank you so much for the detailed response!


500 internal server error

evereux edit:
Missing details from details provided in posts below.
Server message:
500 Internal Server Error: The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

System versions:

python 3.12.3
CATIA V5 R2016.

My first thought is that you don't have CATIA V5 running, which if this was the case, is what it would say on the 500 error page:
500 Internal Server Error: Could not access COM object. Is CATIA V5 running?

Can you provide more information please.

I run my catia application at first,the run pycatia tool ,at this moment,“cmd” pop out,and I got this link(http://<IP_ADDRESS>:5578 and I click the link combined with control key and the web shows this notice

As this picture

Bro,do you have any idea?

Hmm. Can't think what would have caused that. Can you provide the full traceback (error log) from the terminal window.
Also, what version of python are you using and what version of CATIA V5?
Should be able to figure it out with this information.

Please don't post pictures when text will suffice. 😃
I suspect the problem here is that the COM server hasn't been registered. This can happen due to the installation process missing this step (no idea why, but I have seen this happen) or you're using a portable version that doesn't do this.
To fix this you can either:

Reinstall CATIA V5
Manually register the com server. See the bottom of this page with regards to steps on how to do this: https://pycatia.readthedocs.io/en/latest/installation.html. I think you only need do cnext.exe /regserver though. No need to specify -env <env_file> -direnv <path_to_env_file> (I need to update that page).

Okay，next time i would try only texts ,and I will check the method you mentioned later and I will let you know result,thx for replying!

Hey Bro,after i did this
Suggestion [3,General]: 找不到命令 cnext.exe，但它确实存在于当前位置。默认情况下，Windows PowerShell 不会从当前位置加载 命令。如果信任此命令，请改为键入“.\cnext.exe”。有关详细信息，请参阅 "get-help about_Command_Precedence"。
PS D:\Program Files\Dassault Systemes\B26\win_b64\code\bin> .\cnext.exe /regserver
PS D:\Program Files\Dassault Systemes\B26\win_b64\code\bin>
and i tried to open pycaita-tool ,yet it still not work ,by the way ,i didn`t clear how to specify this step
"2. run the following command after replacing <env_file> and <path_to_env_file> with the appropriate values:
cnext.exe /regserver -env <env_file> -direnv <path_to_env_file>"
could you give me a example what the exactly command that i should type into the "cmd" window is
[2024-09-05 21:29:56,977] ERROR in app: Exception on /htmx/document/object [GET]
Traceback (most recent call last):
File "C:\Users\Jaqen\Desktop\PYCATI~1.1DE\PYCATI~1.1DE\win32com\client\dynamic.py", line 84, in _GetGoodDispatch
pywintypes.com_error: (-2147221005, '无效的类字符串', None, None)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Jaqen\Desktop\PYCATI~1.1DE\PYCATI~1.1DE\flask\app.py", line 1473, in wsgi_app
File "C:\Users\Jaqen\Desktop\PYCATI~1.1DE\PYCATI~1.1DE\flask\app.py", line 882, in full_dispatch_request
File "C:\Users\Jaqen\Desktop\PYCATI~1.1DE\PYCATI~1.1DE\flask\app.py", line 0, in handle_user_exception
File "C:\Users\Jaqen\Desktop\PYCATI~1.1DE\PYCATI~1.1DE\flask\app.py", line 880, in full_dispatch_request
File "C:\Users\Jaqen\Desktop\PYCATI~1.1DE\PYCATI~1.1DE\flask\app.py", line 865, in dispatch_request
File "C:\Users\Jaqen\Desktop\PYCATI~1.1DE\PYCATI~1.1DE\application\views\htmx\document_queries.py", line 19, in htmx_document_object
File "C:\Users\Jaqen\Desktop\PYCATI~1.1DE\PYCATI~1.1DE\application\pycatia_scripts\the_document.py", line 22, in init
File "C:\Users\Jaqen\Desktop\PYCATI~1.1DE\PYCATI~1.1DE\application\pycatia_scripts\com_objects.py", line 32, in get_app_object
File "C:\Users\Jaqen\Desktop\PYCATI~1.1DE\PYCATI~1.1DE\pycatia\base_interfaces\base_application.py", line 12, in catia_application
File "C:\Users\Jaqen\Desktop\PYCATI~1.1DE\PYCATI~1.1DE\win32com\client_init_.py", line 118, in Dispatch
File "C:\Users\Jaqen\Desktop\PYCATI~1.1DE\PYCATI~1.1DE\win32com\client\dynamic.py", line 104, in _GetGoodDispatchAndUserName
File "C:\Users\Jaqen\Desktop\PYCATI~1.1DE\PYCATI~1.1DE\win32com\client\dynamic.py", line 86, in _GetGoodDispatch
pywintypes.com_error: (-2147221005, '无效的类字符串', None, None)
<IP_ADDRESS> - - [05/Sep/2024 21:29:56] "GET /htmx/document/object HTTP/1.1" 500 -

PS D:\Program Files\Dassault Systemes\B26\win_b64\code\bin> .\cnext.exe /regserver

This is correct.
Might be worth rebooting the PC so Windows properly reloads the registry changes.
Also, search your registry for the string 'CATIA.Application' to make sure it exists. Should do now though.

The error you're getting is related to pycatia trying to initialise the COM interface, not with pycatia-tools itself.
Try the following to prove this:
PS C:\Users\evereux\github\pycatia-tools> .\env\Scripts\activate
(env) PS C:\Users\evereux\github\pycatia-tools> python
Python 3.11.8 (tags/v3.11.8:db85d51, Feb  6 2024, 22:03:32) [MSC v.1937 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from pycatia import catia
>>> caa = catia()
>>>

This should throw the same base error. I don't know why though. 🤷 Might be worth posting to the pycatia github repository if this is the case as it'll get more visibility there.


Load empty space menu dynamically

Fixes issues

Fixes #5481

Details of Changes
Add details of changes here.

Change the "empty space" context menu to load shell menu items asynchronously (same as items menu)

Validation
How did you test these changes?

[x] Built and ran the app

PS: great job with #5358 btw. Hope you were not already working on this.

Uff latest commit broke something

@gave92 thank you!


no errors are caught

electron-gh-releases needs to use autoUpdater.on('error', cb) to catch update errors.

I don't see the point of catching these errors in electron-gh-releases.
You should catch these errors yourself, in your app.
var updater = new GhReleases(opts)
updater.autoUpdater.on('error', cb)

Perfect, I didn't realize autoUpdater was exposed.


Send props to tabicons?

Is it possible to send down props to tabicons?

You can send props by adding them to the Scene component. e.g.:
<Scene key="root" component={MainComponent} title="Friends" icon={TabIcon} customTabProp={'users'} />

Yes, I totally missed that! thanks. closing this


MXML_MINOR_VERSION is still set to 1

Hi,
I just noticed that the minor version define is still set to 1 instead of 2.
Regards

Oops, fixed:
[master c44aa25] Fix minor version in header (Issue #285)

@michaelrsweet , it is again out of sync.  Per CHANGES.md's latest entry # Changes in Mini-XML 3.3.2, the most current version is 3.3.2 whereas .h file still reflects it as 3.2.
In fact, it's kinda a bit funny how this issue's fix of updating it to 3.2 is referenced as fix released in 3.3 release 😆, making it already outdated on release.


Error in train.py about builtins.print

Hello, i meet an error on train.py on line 51
and the error message is: builtins.print = print_pass SyntaxError: invalid syntax. Can someone help me with this problem? Thanks a lot!

hi, I have met the same error. How do you solve it? Thanks a lot!

just install builtins
---Original---
From<EMAIL_ADDRESS>Date: Mon, Feb 1, 2021 16:15 PM
To<EMAIL_ADDRESS>Cc: "bigAndSmall"<292302960@qq.com>;"State<EMAIL_ADDRESS>Subject: Re: [HuangYG123/CurricularFace] Error in train.py about builtins.print (#27)
hi, I have met the same error. How do you solve it? Thanks a lot!
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or unsubscribe.

Thank you! The problem was solved by your solution!


Improve update_device_firmware

Codecov Report

Merging #1060 (1af366d) into devel (60fa48f) will decrease coverage by 0.10%.
The diff coverage is 40.00%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@            Coverage Diff             @@
##            devel    #1060      +/-   ##
==========================================
- Coverage   91.15%   91.06%   -0.10%
==========================================
  Files          48       48
  Lines        5407     5414       +7
==========================================
+ Hits         4929     4930       +1
- Misses        478      484       +6

Impacted Files
Coverage Δ

hahomematic/platforms/device.py
83.49% <14.28%> (-1.12%)
:arrow_down:

hahomematic/central_unit.py
86.47% <33.33%> (-0.25%)
:arrow_down:

hahomematic/platforms/update.py
73.68% <50.00%> (ø)

hahomematic/const.py
100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Uncaught TypeError: Cannot read property 'cssRules' of null

Trying to use inlineStyle(iFrameDocument), throwing the folowing error:
Uncaught TypeError: Cannot read property 'cssRules' of null          inline-styles.js:66
Editor.setContent	@	tinymce.js:32422
Editor.load	@	tinymce.js:32284
Editor.initContentBody	@	tinymce.js:31695
Editor.init	@	tinymce.js:31428
(anonymous function)	@	tinymce.js:31175
(anonymous function)	@	tinymce.js:8830
each	@	tinymce.js:2925
callback.loadScripts.loadScripts	@	tinymce.js:8829
(anonymous function)	@	tinymce.js:8822
done	@	tinymce.js:8664

cf. code :
function inlineStyle(elStyle){
  //console.log('elStyle', elStyle)
  var doc = elStyle.ownerDocument;
  var rules = elStyle.sheet.cssRules;       // Line 66
  if(!rules){
    console.error('stylesheet rules cannot be read from ', elStyle.href);
    return;
  }

Is your css file served from a different domain?
From an mdn document

In some browsers, if a stylesheet is loaded from a different domain, calling cssRules result in SecurityError.

Not at all, its a iframe that contain local or same domain stylesheets.
As you can see, the line
    console.error('stylesheet rules cannot be read from ', elStyle.href);

is not reached, and the exeption is thrown from line 66:
  var rules = elStyle.sheet.cssRules;       // Line 66

I presume your using the iframe.contentDocument like in the demo:
https://github.com/twalker/inline-styles/blob/master/demo/demo.js#L28
Can you provide a way to reproduce the error for troubleshooting?
If not, try running the /demo folder and modifying the example to match your circumstances.


Unify formatting in README.md

Feel free to cherry-pick the commits that make the most sense and squash the rest.

Wow, thank you so much for the refactor which make the code seem update. LGTM


[$500] PDF receipt doesn't load in the receipt modal

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

This was fixed here, but broke again as per here.
As for the PDF receipt thumbnails, that's being worked on in this issue.
Version Number: v1.4.15-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @trjExpensify
Slack conversation:
Action Performed:

Request Money > Scan
Upload a PDF receipt > confirm
Click the report preview component to navigate to the expense report
Click the request preview component to navigate to the transaction thread
Click the thumbnail of the receipt to access the receipt modal

Expected Result:
PDF image should load
Actual Result:
We get a "failed to load" error
Workaround:
None (well, go to OldDot and you can see it if it's an expenseReport
Platforms:

Which of our officially supported platforms is this issue occurring on?

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~015df189659b56a1d4
Upwork Job ID:<PHONE_NUMBER>739762176
Last Price Increase: 2023-12-21
Automatic offers:

namhihi237 | Contributor | 28070111

CC: @Talha345 from here: https://github.com/Expensify/App/issues/27680#issuecomment-1866181239

@trjExpensify Should I open a PR?

@trjExpensify Sure! I will do that in a few hours.
Can you please assign the issue to me in the meantime?

We'll need to see the proposal first before assigning out the issue sorry!

Proposal
Please re-state the problem that we are trying to solve in this issue.
PDF image should load when open the receipt modal
What is the root cause of that problem?
Currently we isLocalFile has true while we load the receipt from the S3, so the isAuthTokenRequired is false
https://github.com/Expensify/App/blob/b966bd43e690a17c09adcfec15d5c98ebdbf7559/src/components/ReportActionItem/ReportActionItemImage.js#L87
https://github.com/Expensify/App/blob/b966bd43e690a17c09adcfec15d5c98ebdbf7559/src/libs/ReceiptUtils.ts#L69
What changes do you think we should make in order to solve the problem?
We should update to
return {thumbnail: image, image: path, isLocalFile: url.startsWith('file://')};

What alternative solutions did you explore? (Optional)

@namhihi237 I don't think the change you proposed will be enough. Instead of thumbnail, loading Indicator is displayed.

Proposal
Please re-state the problem that we are trying to solve in this issue.
PDF image is not loading in the receipt modal.
What is the root cause of that problem?
In getThumbnailAndImageURIs method, we are passing isLocalFile: true always.
https://github.com/Expensify/App/blob/880254c55ea2c210f11d77974cc29e4c446f47bd/src/libs/ReceiptUtils.ts#L69
While this works till the time the PDF file is being uploaded to the server, once uploaded the file is no longer a local file and therefore requires authentication to get the file from the server which can be seen as follows:
https://github.com/Expensify/App/blob/880254c55ea2c210f11d77974cc29e4c446f47bd/src/components/ReportActionItem/ReportActionItemImage.js#L87
What changes do you think we should make in order to solve the problem?
We can simply check if a file is local or not by making the following change:
    return {thumbnail: image, image: path, isLocalFile: path.startsWith('blob:') || path.startsWith('file:')};
What alternative solutions did you explore? (Optional)
N/A

@sobitneupane what do you mean, currently, the thumbnail always shows with PDF

@Talha345 Your proposal is not much different from initial proposal (before edit) by @namhihi237.
@namhihi237 Please add a comment following the guideline after updating proposal.
Sorry for the confusion here. Loading Indicator was being displayed instead of Thumbnail, previously. But, after clearing the cache, the issue is not reproducible any longer.
Proposal from @namhihi237 looks good to me.
🎀 👀 🎀 C+ reviewed

@sobitneupane During the proposal review for https://github.com/Expensify/App/issues/27680, I had the same exact proposal as the one that was chosen but you told me that you chose the other proposal because I incorporated a fix later on in my proposal (which was kind of like a small regression fix that occurred after implementing the proposed solution) and therefore my proposal even though it came early was incomplete.
Now, here you mention that my proposal is not much different from @namhihi237's original proposal but obviously when that proposal was posted it was incomplete and that's why I posted a complete solution to avoid any missing case.
There should be some standardisation in this process TBH. Also, I think in this case I volunteered earlier to work on this issue because as I was already familiar with these changes.

During the proposal review for https://github.com/Expensify/App/issues/27680, I had the same exact proposal as the one that was chosen but you told me that you chose the other proposal because I incorporated a fix later on in my proposal (which was kind of like a small regression fix that occurred after implementing the proposed solution) and therefore my proposal even though it came early was incomplete.

@Talha345 Regarding previous issue, the difference between the two proposals was significant enough to go with the other.

Now, here you mention that my proposal is not much different from @namhihi237's original proposal but obviously when that proposal was posted it was incomplete and that's why I posted a complete solution to avoid any missing case.

Regarding this issue, two proposals doesn't look significantly different to me. If @MonilBhavsar thinks other wise, I am happy to go with your proposal.

Also, apologies for being a bit blunt but the selected proposal was edited multiple (6) times so I do not understand to which version my proposal is not much different from. If it was not much different, there should not have the need for such multiple edits.

This was the proposal I initially reviewed

@sobitneupane Okay, I would be happy to accept what @MonilBhavsar's judgement here, but it is also important to note that the Expensify docs mention that you are supposed to put an "Updated Proposal" comment whenever you make a change to an existing proposal which was also not followed in this case.

I would like to select @namhihi237's proposal here because their complete proposal was posted around 30 minutes before other proposal(Looking at the edit history).

@namhihi237 when you're updating logic in proposal, please comment on the issue as per the guidelines https://github.com/Expensify/App/blob/main/contributingGuides/CONTRIBUTING.md#posting-ideas

PR already review, seem boot assign incorrect reviewer @sobitneupane @MonilBhavsar

@0xmiroslav Oh, thanks for the help.

@sobitneupane could you please take a look at the PR?

@sobitneupane this is a HIGH priority issue in wave5, please can you prioritise the review today? In the meantime, @namhihi237 you have a conflict to resolve. Thanks!

Sure @trjExpensify. I will review it shortly.

Fixed conflict

Awesome, thanks!

PR merged!

Noting that regression was caused https://github.com/Expensify/App/pull/33586#discussion_r1441313749

@MonilBhavsar This PR fix regression

@namhihi237 If you are around, can you please handle above cases?

Sure I will raise this PR

Let's make sure to add tests covering all the Attachment Views.

Ah, is it the same root being fixed here?

Yup @trjExpensify. The issue has been addressed in https://github.com/Expensify/App/pull/34030.

Cool, so we'll count that as the one then!

Nice, should we close this?

Going to close, if someone wants to let me know otherwise -- great!

@trjExpensify seem we missing payment

Oh sorry, I totally thought there was another issue for this one!

Okay, so payments..
1 regression to account for, as the second regression had the same root cause.

@sobitneupane $250 for the C+ review
@namhihi237 $250 for the fix

Correct?

Looks good! Let's pay

Cool, thanks for confirming!

@namhihi237 $250 for the fix - paid!

@sobitneupane you're free to request $250 as per here. Closing!

$250 approved for @sobitneupane based on summary above.


allow median-vaf-purity with patients having no variants

Small fix so that median_vaf_purity doesn't error out when analyzing a cohort where only a subset of the patients have variants (or, some actually have zero variants).

Coverage decreased (-0.1%) to 53.157% when pulling 735b0aff15be45909223156d261b5f3ddf0a0baa on median-vaf-missing into c00291a06a3d60d6492c7af799135cc5003ffa42 on master.


[wiki] Typo on wiki page "Chat"

Hi,
At https://github.com/flutter/flutter/wiki/Chat In the list of discord chanels there is a typo at #hackes-devexp. Expecting hackers-devexp

Hi @gsouf.
Thanks for filling this issue, I just fixed it!


test PR comment netlify bot

this is a test for https://docs.netlify.com/site-deploys/notifications/#github-pull-request-comments
Setting available in https://app.netlify.com/sites/prisma2-docs/settings/deploys#deploy-notifications

First looks like this

then updates the same comment to failed or success:


Need a way to set the flavor

Hello. Thanks for making this! Is there a way we can set flavors?

If anything, you can set the flavor with ShowdownConverter since it extends Showdown's Converter class
https://github.com/yisraelx/ngx-showdown/blob/master/src/showdown-converter.provider.ts#L17
https://github.com/yisraelx/ngx-showdown/blob/master/src/base-converter.class.ts#L45

Since {ShowdownDirective, ShowdownPipe, ShowdownConverter} inherits from ShowdownConverter you can use the setFlavor method...
examples
set flavor to convertor provider.
import { ShowdownConverter } from 'ngx-showdown';

export class SomeApp {
    constructor(showdownConverter: ShowdownConverter){
        showdownConverter.setFlavor('github');
    }
}

set flavor to the convertor directive.
 import { Component, ViewChild } from '@angular/core';
 import { ShowdownDirective } from 'ngx-showdown';

 @Component({
   selector: 'some-component ',
   template: `
     <showdown [value]="text"></showdown>
   `,
 })
 export class SomeComponent {
     text = '# Github Flavor';
     @ViewChild(ShowdownDirective) _showdownDirective: ShowdownDirective;
     ngOnInit() {
      this._showdownDirective.setFlavor('github');
     }
 }

Although it seems to me quite simple the available way to set flavor,
I will add in the next release a new way to set a flavor options through the 'ConverterOptions'.
https://github.com/yisraelx/ngx-showdown/blob/681c175d75dcbca674394337a5c7967917d434e2/src/base-converter-options.provider.ts#L40
new ConverterOptions(options?: IConverterOptions | IFlavor)
https://github.com/yisraelx/ngx-showdown/blob/681c175d75dcbca674394337a5c7967917d434e2/src/base-converter-options.provider.ts#L44
ConverterOptions.prototype.marge(options?: IConverterOptions | IFlavor)

example
 import { ConverterOptions } from 'ngx-showdown';

 let converterOptions: ConverterOptions = new ConverterOptions('vanilla');
 converterOptions.merge({
 noHeaderId: false,
 // ...
 });
 converterOptions.merge('github');
// ...

Or if you have a better idea, feel free to offer or to send pull request...

:tada: This issue has been resolved in version 5.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Import / Export

Making it easier to import .md notes would be sweet, whether by drag and drop or import/upload menu option.
I know you can just add notes to the folder but an import option is quicker (unless I'm forgetting some tricks).

I like this. I'd like to add the ability to export (download) a note (or multiple) so I'll group this with that.


The callback function passed as args to show() and dismiss() are never called

The callback function in show() and dismiss() are never called.
Only the onShown and onDismissed callbacks passed in as props are called.

@hboon I've removed callback support for show & dismiss method. But, forgot to update example code. Sorry.


Update logback-classic, logback-core to 1.4.7

About this PR
📦 Updates

ch.qos.logback:logback-classic
ch.qos.logback:logback-core

from 1.4.4 to 1.4.7
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "ch.qos.logback" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "ch.qos.logback" }
}]

labels: library-update, early-semver-patch, semver-spec-patch, commit-count:1

Superseded by #377.


Errors not properly shown in Visual Studio Code

When editing code in Visual Studio Code, errors show as three small dots, instead of a red block at the right as usual. This is quite hard to read and recognize; there's no quick way of seeing if there are any problems in the code.

I've seen this as well, related to https://github.com/UnwrittenFun/svelte-vscode/issues/65

Typically these three dots aren't explicitly errors, so much as suggestions. For example, on the export it likely says something like name implicitly has any type. This is a typescript error being but as you're not using typescript it can't really be sure/enforce anything there so it appears as three dots.
Hope this helps. Closing this as working as intended


bump versions. use fabric-pure-browser

replace fabric with fabric-pure-browser = no more dependency on node-canvas and jsdom
bump versions
bump es5 to es6
remove unused jest
solve deprecation warnings
minify only the *.min.js output file

one warning is left:

WARN  deprecated<EMAIL_ADDRESS>We recommend to use Travis Build Stages instead

yarn crying about its lockfile .. too bad i dont use yarn but pnpm


Define arguments implicitly in scopes

Current behavior
Currently, Arguments objects are always created using a helper function and included as scope vars like any other var.
Input:
function f( x, y ) {
  return () => ( { x, y, arguments } );
}
export default f( 1, 2, 3 );

Current output:
export default (
  ( x, y, arguments$0 ) => () => ( { x, y, arguments: arguments$0 } )
)(
  1, 2,
  function () { return arguments; }( 1, 2, 3 )
);

Better solution
The Arguments object could instead be created implicitly as part of the scope:
export default function( x, y ) {
  return () => ( { x, y, arguments } );
}( 1, 2, 3 );

This output is shorter - identical to the input except that function is inlined and has it's name removed.
It will also be more performant, as using Arguments objects outside of the function in which they were created is an optimization killer.
Further advantage: it will behave correctly for sloppy mode where x and arguments[0] are linked. x = 4 would also set arguments[0], and vice-versa.
Complications
There are a lot of weird edge cases with arguments, especially in sloppy mode. I can see solutions to all of them, but it's a major complication.
1. Arguments is from another function
function create( x ) {
  return {
    getX: () => x,
    setX: newX => x = newX,
    args: arguments
  };
}

const { getVars, setX, args } = create( 1 );
const getArgs = () => args;
module.exports = { getX, setX, getArgs };

If this is sloppy mode code, the arguments object in scope of getArgs() is linked to value of x in getX() and setX(). So setX(2) would change the value of arguments[0]. To maintain this linkage, would need to either:
A. return arguments from the scope function containing getX() and setX() and use it as value in scope function containing getArgs():
const scopeCreate = ( ( x ) => [
  () => x,
  newX => x = newX,
  arguments
] )( 1 );

module.exports = {
  getX: scopeCreate[0],
  setX: scopeCreate[1],
  getArgs: ( args => () => args )( scopeCreate[2] )
};

or:
B. move getArgs() into same scope function as getX() and setX().
const scopeCreate = ( ( x ) => [
  () => x,
  newX => x = newX,
  () => arguments
] )( 1 );

module.exports = {
  getX: scopeCreate[0],
  setX: scopeCreate[1],
  getArgs: scopeCreate[2]
};

This will not always be possible if the two functions have clashing scope chains.
Matching Arguments objects to functions
The trickiest part is, when serializer encounters an Arguments object, it needs to identify which function it came from in order to link them up.
Solution:
Every function where:

Function is not an arrow function
Its arguments is accessed
Function has named params which are accessed

...would be instrumented by Babel plugin to store the value of arguments along with filename, block ID and scope ID in a WeakMap.
When an Arguments object is encountered, it can be compared to the keys of this WeakMap to determine what function was the source of the Arguments object, and whether that same function's parameters are referenced in another function.
// Input
function f( x ) {
  return [ arguments, () => x ];
}
module.exports = f( 1 );

// Babelized code
function f( x ) {
  livepack_tracker( /* livepack_track:{"id":2,"scopes":[]} */ () => [] );
  const livepack_scopeId_2 = livepack_getScopeId();
  livepack_recordArguments( arguments, 2 /* blockId */, livepack_scopeId_2 );
  /* ... */
}

Or fold this functionality into livepack_getScopeId() - call with (arguments, blockId) if arguments is to be recorded.
This is a lot of trouble for a very uncommon case. Maybe best to only do it for sloppy-mode functions, which are only ones where the linkage between arguments and function params is necessary to maintain.
2. Difference between vars and arguments
// Input
module.exports = ( function( x, y ) {
  x = 2;
  return {
    getParams: () => [ x, y ],
    getArg: () => arguments[0]
  };
} )( 1 );

In sloppy mode, x = 2 also sets arguments[0], but in strict mode they are not linked. The strict mode case would need to be output as:
const scope = ( ( x, y ) => [
  () => [ x, y ],
  () => arguments[0],
  v => x = v
] )( 1 ); // Value of `arguments[0]`
scope[2](2); // Inject value of `x`
module.exports = { getParams: scope[0], getArg: scope[1] };

NB Better to start with the value as in arguments initially and then inject a new value for x rather than starting with current value of x, returning arguments from the scope function, and altering it - that would be slower as probably causes a deoptimization.
3. Modifications to arguments object
Arguments objects can have properties added, descriptors altered, getters/setters added or be Object.freeze()-ed, same as any other object.
In such cases, would need to return the arguments object from the scope function, and alter it in top scope.
4. Unlinking of vars and arguments
In sloppy mode, the link between a parameter and corresponding property of arguments can be broken by deleting the property of arguments or setting the property's .writable descriptor to false. NB In Node 16 at least, setting .writable to false and then back to true does not restore the link - it's irretrievably broken.
// Sloppy mode
module.exports = ( function( x ) {
  // Break the link but keep same value
  delete arguments[0];
  arguments[0] = x;

  return {
    getX: () => x,
    setX: newX => x = newX,
    getArg: () => arguments[0]
  };
} )( 1 );

arguments[0] and x would appear to be linked, so calling setX(2) should alter the return value of getArg(). But actually they've been unlinked. It's not possible to statically determine this, so only way to detect it would be to set properties of arguments and see if value of params changes too.
This would require also including getters for all parameters in call to livepack_recordArguments() (see above):
livepack_recordArguments( arguments, 2 /* blockId */, livepack_scopeId_2, () => x, () => y );

It will be difficult to figure out if arguments and params have diverged in cases like this:
function f( { [ getKey() ]: x } ) {
  return {
    getX: () => x,
    setX: v => x = v,
    getArg: () => arguments[0]
  };
}

When serializing getX and getArg, how would you tell if x has been altered since it was originally defined?

Actually I don't think livepack_recordArguments() and keeping a WeakMap of all arguments objects is required.
When a function is serialized Livepack can tell from the existing information in tracker comments whether arguments here is normal var or a real arguments object at the place of it's creation. If the latter argNames will be set in the tracker comments, and block ID and scope ID are also both known.
At that point the arguments object can be recorded along with its "origin" information (i.e. what block and scope it was created in) and can go from there.
NB arguments object may be encountered and serialized prior to the function where arguments is used "natively" is serialized, so it may be necessary to go back and alter the output for the first time it's countered after it's initially serialized.
e.g.:
export default (function() {
  return [arguments, () => arguments];
})(1, 2, 3);


Practical use of ESRGAN in video game upscaling

@xinntao Sorry for creating a new issue, but it is completely different topic I want to address now.
I am not sure if you are aware or not, but during last 2-3 month your ESRGAN / BasicSR projects became HUGELY popular in video gaming communities. There are literally thousands of people, maybe hundreds of thousand who are using ESRGAN to make or/and enjoy old video games textures, sprites and other images look HD and new, with varying degree of success. There is a whole Reddit subforum dedicated for this cause, particulary this and this threads dedicated to ESRGAN running and training. And, by the way, there are many people there with 0 to little knowledge of python and machine learning, so that's not so easy for us to get our head into.
But since the start we encountered some problem, which I will quote:

The problem with most game sprite upscaling is that the AI system assumes that the images it gets are downscaled and it needs to recover detail that used to be there. Of course, on lots of game sprites this doesn't work since they were simply made at that size. The small hints of remainders of details that it looks for in downscaled photos simply don't exist there.

Actually I can translate it as "We don't have downscaled crops from images that we need to recover information, we have complete non-downscaled images we need to upscale with the best quality possible".
So I want to ask you directly, as the author and the person who knows ESRGAN the best in the world: How can we achieve what we want? Maybe we need to tweak specific options, maybe there are some secrets for preparing training datasets, or something else?
Regarding this I had an idea, which is making or HR images are as big as 512x512 or even bigger, taking the full-sized textures with no crop/tiling, by that we can use LR at least 128x128 with lots of pixel information or even bigger in a case of 2x-3x models, but with low batch_size, maybe set to 2 or even 1!
Could this work for us, game modders? As far as I understand, we will need to not only hr_size to 512, but also set up custom "which_model_D": "discriminator_vgg_128" for there are only 128 and 192 options in the code, not sure if it's possible to add more options.
P.S. regarding discriminator: there is a Discriminator_VGG_128_SN which uses Spectral Normalization, but no 192_SN for some reason. Is it usable, and what's the difference?
Or maybe you have ability to point us to direction where to work with all that texture/sprite upscaling? Currently among the hundreds of tries to train a model we have only a SINGLE ONE based of Manga109 which is used for all the work people to. And noone has an idea how and why it works when others does not!
And once again, thanks a lot from me and many many many other people for your work!

Hi @SirIzumi ,
Thank you very much for creating this "issue". It gives much information about Super-Resolution (SR) in the video gaming community. And I am very pleased to see that some of our work can be applied to real-world applications. But as you said, there are still some differences between the research problem and the real-world problem (like upsampling the game textures).
ESRGAN and other models in BasicSR are actually trained for a known kernel (having the high resolution image and down-sampling it with a known kernel). So, if directly applying to other images with different kernels or even images whose high-resolution counterpart is not available (as the problem in the video gaming), the results may have noisy artifacts.
Usually, for this case, using some related dataset to fine-tuning the ESRGAN models will help a bit.
For example, you can collect the images from games or similar images (like, anime style imagery).
And then you downsample them with known kernels (usually we use bicubic kernel with anti-aliasing). Fine-tuning the model with these image pairs are helpful. Because i) the statistics for natural images and gaming images are different; 2) the ESRGAN is now trained with natural images; 3) if ESRGAN can capture the statistics of gaming images, it will help to improve. (I think this is why the Manga109 model could work but the original ESRGAN failed.)
Another problem may arise from the noise. ESRGAN actually has no ability to denoise. But the fantastic tool Waifu2x also has the denoising ability, which is very useful for anime style imagery (but may hurt the textures). Maybe we can add denosing component to ESRGAN. (BTW, you can adjust the model with network interopolation (see ESRGAN repo))
As for using large patches to training, from my experiences, training with 128 for natural images seems OK enough. Larger training patches may cause more training time (especially for training D). Discriminator_VGG_128_SN does not improve the performance so I do no use it.
I am very new to video gaming and SR for video gaming. But I am very glad to see that our work can help video gaming. If you have any problem, do not hesitate to ask here and I will try my best to give my opinions. (I will try my best to reply in time. But I am a bit busy in Feburary +_+||)
I will look the SR problem in video gaming deeper after I finish my project.

Wow, thanks for the complete answer! If you are really will be interested for real-world apps (games) using your tool, that'd be awesome! BTW, ERSGAN combined with modified Manga109 dataset by kingdomakrillic (double JPG conversion for HR, triple JPG for LR) provides consistent better results that ANY free or paid software, including Topaz AI Gigapixel, waifu2x, letsenhance.io and many others. Except maybe Nvidia GMT, which is in closed beta and unavailable for people to compare except big developers. Actually just googling "ESRGAN" you will have a lot of links, news and threads which says for itself how effective it is.
Some more questions if you don't mind:

Does your statement mean that any method or creating LR images except bicubic downsampling will be useless even if training from scratch? Some games have low-res textures with high-res "original" ones, and low-res look like they were downsampled with nearest neighbor, that means they can't be used as LR and high-res as HR?

Is even worth it to fine-tune PSNR/ESRGAN default models with images/textures/art being so different from those 100 images you used for initial training, instead of going to full restart?

You are right, some images can become noisy, especially if they had compression artifacts. But there are quite a lot 3-rd party software to deal with the noise. But if you will be able to make self-learning denoiser built in the models, that be just very cool.

Maybe you could provide for us some insight about different options? kingdomakrillic shared some ideas like "increasing pixel_weight give images mosaic look, tune it down", but there is a lot more:  how to prepare dataset, gan_weight and l1 and l2 criterions, and general ideas how to set lr_D and lr_G for different situations.

P.S. Tried to train a model with _SN discriminator, it really did not help much.

Thanks for your information.

No. What I mean is that the pre-trained ESRGAN model (provided in the ESRGAN GitHub repo) is trained for bicubic downsampling kernel. If we want to upsample images with some other kernels, we'd better train/fine-tune another model specifically for the corresponding kernel, to achieve better visual results. For gaming, if we could collect some LR and HR pairs for training/fine-tuning, it would improve the results.

Fine-tuning is a useful technique in deep learning. Many other tasks use pre-trained models to improve the performance, even they are for different tasks. Fine-tuning from pretrained ESRGAN will shorten the training time (you can decrease the training iteration (modifing the learning scheme)) and get better results, than training from scratch. [You can use both the provide G and D for ESRGAN to have a try.]

Later, I think I can write some simple instructions.

Model with Dataset where LR were made with Nearest Neighbor downsampling is producing very blurry results compared to the same Dataset with LR made with Bicubic.  I thought it's because of coding implementation of upscaling algorithms.

2-3. We will wait and be patient then! I think there will be no readme/FAQ from anyone else.

@SirIzumi  Can you share the running speed in your "Practical use of ESRGAN in video game upscaling"?
In my experiment, transferring a 1024 * 576 image to 4096 * 2304 image takes 3s in a Tesla P40 GPU.


feat: dotnet enhancement

Summary
Add some enhancement to dotnet codegen system
Tests
Local & pipeline tests.
Dependency changes
None.
AB#1838818

/azp run

Codecov Report

Merging #1539 (1f6aa50) into master (9204586) will decrease coverage by 79.34%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master   #1539       +/-   ##
==========================================
- Coverage   83.71%   4.36%   -79.35%
==========================================
  Files         301     272       -29
  Lines       15337   14051     -1286
  Branches      707     707
==========================================
- Hits        12839     614    -12225
- Misses       2498   13437    +10939

Impacted Files
Coverage Δ

...osoft/azure/synapse/ml/codegen/DotnetCodegen.scala
0.00% <ø> (-82.61%)
:arrow_down:

...m/src/main/scala/com/microsoft/lightgbm/SWIG.scala
0.00% <0.00%> (-100.00%)
:arrow_down:

...a/com/microsoft/azure/synapse/ml/stages/udfs.scala
0.00% <0.00%> (-100.00%)
:arrow_down:

.../org/apache/spark/ml/LimeNamespaceInjections.scala
0.00% <0.00%> (-100.00%)
:arrow_down:

...m/microsoft/azure/synapse/ml/vw/VectorZipper.scala
0.00% <0.00%> (-100.00%)
:arrow_down:

...rg/apache/spark/injections/BlockManagerUtils.scala
0.00% <0.00%> (-100.00%)
:arrow_down:

.../microsoft/azure/synapse/ml/io/binary/Binary.scala
0.00% <0.00%> (-100.00%)
:arrow_down:

.../microsoft/azure/synapse/ml/lime/BreezeUtils.scala
0.00% <0.00%> (-100.00%)
:arrow_down:

.../microsoft/azure/synapse/ml/param/ModelParam.scala
0.00% <0.00%> (-100.00%)
:arrow_down:

.../microsoft/azure/synapse/ml/param/UDPyFParam.scala
0.00% <0.00%> (-100.00%)
:arrow_down:

... and 283 more

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 9204586...1f6aa50.


Device data receiving format

Hey there,
I hope you are doing well, and sorry for disturbing you. Can you please share me the documentation of GVH5075 or the format in which you are writing data to the device for reading past recorded data?
I'll be very thankful to you.
Regards

@am-i-abdullah Pls. take a look at https://github.com/Heckie75/govee-h5075-thermo-hygrometer/blob/main/API.md
On Linux systems you can try these commands 1:1 using the shell tool gatttool.

Hey thanks a lot, actually I'm using windows and developing an application in flutter (dart).
Can you please let me know about these handles? as I can't see these in the Characteristics UUIDs.

@am-i-abdullah  Then take a look at https://github.com/Heckie75/govee-h5075-thermo-hygrometer/blob/main/govee-h5075.py line 127ff. There is a static variable called _COMMANDS which is a json object.
The uuids are:
    _COMMANDS = {
        "NAME": {
            "UUID": "00002a00-0000-1000-8000-00805f9b34fb",
        },
        "FIRMWARE": {
            "UUID": "494e5445-4c4c-495f-524f-434b535f2011",
            "SEQUENCE": [0xaa, 0x0e] + [0] * 17 + [0xa4]
        },
        "HARDWARE": {
            "UUID": "494e5445-4c4c-495f-524f-434b535f2011",
            "SEQUENCE": [0xaa, 0x0d] + [0] * 17 + [0xa7]
        },
        "DATA_CONTROL": {
            "UUID": "494e5445-4c4c-495f-524f-434b535f2012",
            "SEQUENCE": [0x33, 0x01]
        },
        "DATA": {
            "UUID": "494e5445-4c4c-495f-524f-434b535f2013"
        }
    }

yeah, I've seen these. Can you explain me what do you mean by the sequence here?

@am-i-abdullah The sequence is the payload that is sent, e.g.:
        "FIRMWARE": {
            "UUID": "494e5445-4c4c-495f-524f-434b535f2011",
            "SEQUENCE": [0xaa, 0x0e] + [0] * 17 + [0xa4]
        },

is this command:
char-write-req 0x11 aa0e0000000000000000000000000000000000a4

Of course the handle 0x11 is related to the uuid 494e5445-4c4c-495f-524f-434b535f2011.

Thanks, can I get GVH5075's official documentation? as I'm receiving these values for a month :) after writing at uuid: 494e5445-4c4c-495f-524f-434b535f2012
I/flutter ( 7482): [238, 1, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 234]
I/flutter ( 7482): ee105000000000000000ea
does it indicates some error?

always same responses:

Maybe check the request again. Keep in mind that the thermometer does not keep recorded data if batteries have been removed in the meantime ;-)

Yes, this is correct as you can see in the example:
[A4:C1:38:68:41:23][LE]> char-write-req 0x15<PHONE_NUMBER>020000000000000000000000000035
                                             |   |   |   |                         + Byte 20: checksum XORed all bytes from 1 to byte 19
                                             |   |   |   + Byte 7 - 19: static zeros
                                             |   |   + Byte 5 - 6 (2 bytes): minutes back in the past when to end
                                             |   + Byte 3 - 4 (2 bytes): minutes back in the past when to start
                                             ^ Byte 1 - 2: Command 0x3301

Notification handle = 0x0015 value: 33 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 32
                                    |                                                        + Byte 20: checksum XORed all bytes from 1 to byte 19
                                    ^ Byte 1 - 2: notification on handle 0x15 that request was successful and data transfer will start
Characteristic value was written successfully

Notification handle = 0x0019 value: 00 15 03 71 e7 03 75 cf 03 71 e7 03 75 cf 03 71 e6 03 75 ce
                                    |     + Byte 3 - 5, 6 - 8, 9 - 11, 12 - 14, 15 - 17, 18 - 20 (6 records each 3 bytes): encoded temperature and humidity (see 'decode temperature and humitity')
                                    + Byte 1 - 2: minute back of first record, here now - 21m

Notification handle = 0x0019 value: 00 0f 03 75 cf 03 75 cf 03 75 ce 03 75 cf 03 75 ce 03 75 cf
Notification handle = 0x0019 value: 00 09 03 75 cf 03 75 cf 03 75 d1 03 75 d0 03 75 d0 03 75 cf
Notification handle = 0x0019 value: 00 03 03 75 cf 03 75 cf 03 75 ce ff ff ff ff ff ff ff ff ff

Notification handle = 0x0015 value: ee 01 00 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 eb
                                    |     |                                                  + Byte 20: checksum XORed all bytes from 1 to byte 19
                                    |     + Byte 3 - 4: Number of messages (notifications) sent
                                    + Byte 1 - 2: notification on handle 0x15 that data transfer has finished

Steps are:

Send request with payload on handle 494e5445-4c4c-495f-524f-434b535f2012
Get response on handle 494e5445-4c4c-495f-524f-434b535f2012 instantly
Get a couple of data notifications on handle 494e5445-4c4c-495f-524f-434b535f2013
Get finally a notification on 494e5445-4c4c-495f-524f-434b535f2012 that ends data transmission

Thanks a lot, should I delete or close this issue?


Update GCP DM docs for istio08 release

Update GCP DM docs for 0.8.0 (mostly just the screenshot and services that now show up (eg. ingressgateway)
ref, the actual changes to the template are on   https://github.com/istio/istio/pull/6010

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: salrashid123
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: geeknoid
Assign the PR to them by writing /assign @geeknoid in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Hi @salrashid123. Thanks for your PR.
I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
I understand the commands that are listed here.

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

Deploy preview for preliminary-istio failed.
Built with commit 73f1ec68dca8924a562d1ddafaffea7100c0d7ef
https://app.netlify.com/sites/preliminary-istio/deploys/5b155cd111b73b061cd88938

/lgtm

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: geeknoid, salrashid123
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [geeknoid]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Backport of issue #2127 to tree 3.6

Hello!
first off, thank you for your hard work on this project!
This MR is a "backport" (mostly a C&P) from the issue 2127 to the tree 3.6.
We are running into the same issue with the version in laravel 6.x

Codecov Report

Merging #2130 into 3.6 will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##                3.6    #2130   +/-   ##
=========================================
  Coverage     86.88%   86.88%
  Complexity      671      671
=========================================
  Files            31       31
  Lines          1556     1556
=========================================
  Hits           1352     1352
  Misses          204      204

Impacted Files
Coverage Δ
Complexity Δ

src/Jenssegers/Mongodb/Query/Builder.php
89.06% <100.00%> (ø)
170.00 <0.00> (ø)

Continue to review full report at Codecov.

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

Hello,
First of all, thank you for your contribution.
Yes, we know about this problem and I was planning to update it.
Can you push another PR to backport also for 3.7, otherwise it might become a mess with releases.
Thanks!

@divine Please take a look to https://github.com/jenssegers/laravel-mongodb/pull/2131

@pendexgabo thank you for your help!
We do really appreciate your help, I will release new version soon.
Thanks!

Thanks! credit goes to @hnassr

Thanks! credit goes to @hnassr

Yes, but backporting is also a work that you've done and you know it takes time!
Thanks!


decompile incorrectly counts copy count for resource loops

Bicep version
Bicep CLI version 0.8.9 (33a85174de)
Describe the bug
decompile incorrectly "counts" the copy count property...  a copy count of 3, should give range(0, 2) for 3 copies... but bicep uses range(0,3)
To Reproduce
bicep decompile on the attached snippet
{
    "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
    "contentVersion": "<IP_ADDRESS>",
    "resources": [
        {
            "type": "Microsoft.Network/publicIPAddresses",
            "apiVersion": "2020-06-01",
            "name": "[concat('ip', copyIndex(1))]",
            "location": "[resourceGroup().location]",
            "sku": {
                "name": "Basic"
            },
            "copy": {
                "name": "loop",
                "count": 3
            },
            "properties": {
                "publicIPAddressVersion": "IPv4",
                "publicIPAllocationMethod": "Static"
            }
        }
    ]
}

range(0, 3) looks correct to me - the 2nd argument is the "count" of integers. Testing the following gives me [0, 1, 2] as an output:
output foo array = range(0, 3)


New release for eo-0.34.1

New release for eo-0.34.1

@rultor merge

@rultor merge

@yegor256 OK, I'll try to merge now. You can check the progress of the merge here

@rultor merge

@yegor256 Done! FYI, the full log is here (took me 4min)


feat: Add interactive pagination to 'mesheryctl exp model list'

Notes for Reviewers
This PR fixes #9625
And

This PR adds interactive pagination to 'mesheryctl exp model list.'
Adds a count flag to retrieve the total number of models.
Displays a message when a user searches for a model not in the list.

Signed commits

[X] Yes, I signed my commits.

Hi @RipulHandoo
Thanks for your PR! I encourage you to share this in the Meshery Development Meeting tomorrow at 8:30 PM IST. Share your screen, and walk us through it. It's cool to take and share feedback. Check the Doc here to include this PR.
You're welcome at the meeting
Check to community calendar for more details of meetings at Layers.

Please look into the failing Mesheryctl build check.

@RipulHandoo, the mesheryctl build check is failing...
I'm rebasing the branch now.

@RipulHandoo, the mesheryctl build check is failing...
I'm rebasing the branch now.

@leecalcote, the failing tests are the same as I mentioned previously here.


[share_plus] Need shareSheet open and dismiss callbacks or Content shared successfully

Use case
We want to give application access to users when they share the Application to three people.
We are using share_plus plugin for this purpose.
But this package did not give any kind of success callback(whether content is shared successfully or not).
So we do not know whether he shared the application or not.
Proposal
These are my Suggestions

Success Callback telling the whether the content is shared successfully or not.
OR
Provide shareSheet opened and dismiss callbacks. (We will calculate elapsed time between these two callbacks and consider it a successful share if elapsed time is no less than m seconds )

Thank you for opening an issue.
Have you tried shareWithResult or shareFilesWithResult. It gives you the share status of whether the file was shared successfully or not.
You can read about it in the docs.

Thank you for opening an issue.
Have you tried shareWithResult or shareFilesWithResult. It gives you the share status of whether the file was shared successfully or not.
You can read about it in the docs.

@muhammadidrees thanks for the information as these methods updated recently that's why I missed them.
Thanks again.

Since the issue is resolved, I am closing the issue.


Ingress documentation uses an assigned IPv4 address in an example

This is a Bug Report

Problem:
https://kubernetes.io/docs/concepts/services-networking/ingress/ gives an example of an Ingress and mentions <IP_ADDRESS>; that's a real IPv4 address, currently allocated to Google.
It'd be better to use an IP address that isn't allocated, the same way that movies set in the USA use numbers in the 555 area code rather than real, dialable numbers.
Proposed Solution:
Replace <IP_ADDRESS> with a documentation IP address, such as <IP_ADDRESS>
Page to Update:
https://kubernetes.io/docs/concepts/services-networking/ingress/
Additional Information:
/kind cleanup
/good-first-issue
/language en
/priority backlog

/assign

Anyone with a signed CLA is welcome to propose a pull request with a suggested fix.
@divya-mohan0209 do you have any questions about this issue?

@sftim I have submitted my pull request. I'm new around here, which is why I have followed the instructions and assigned to @xiangpengzhao per the bot's instructions. Please could you review?

@sftim is this fixed by PR #19522?

Looks fixed to me.
/close


move and update linux-hardened patch

This wasn't working for me today. I think it's because linux-hardened.patch was in the wrong location. But I ended up creating the patch using vim per the instructions and building the whole thing. Then to open this PR I moved linux-hardened-5.18.11-hardened1.patch into the directory. I'm not sure if I did it right because the diff seems too large.

I updated arch-sign-modules to 0.4.2 last night with the new linux-hardened patch - I get urlwatch updates on telegram for the main Arch kernels abk supports & test the patches usually straight away.

What does echo $XDG_VTNR show in your shell ?
Also what does ls -l /bin/sh point to on your system ? (mine points to /bin/bash)

I built linux-hardened before I made the PR - perhaps try abk version 0.4.2
[stuart@endeavour ~/devops/distrobuilder/scripts/menu]$ abk -i linux-hardened

    1) : linux-hardened-5.17.5.hardened1-2-x86_64.pkg.tar.zst
    2) : linux-hardened-5.17.6.hardened1-2-x86_64.pkg.tar.zst
    3) : linux-hardened-5.17.7.hardened1-1-x86_64.pkg.tar.zst
    4) : linux-hardened-5.17.11.hardened2-1-x86_64.pkg.tar.zst
    5) : linux-hardened-5.18.6.hardened1-1-x86_64.pkg.tar.zst
    6) : linux-hardened-5.18.11.hardened1-1-x86_64.pkg.tar.zst

:: Choose kernel to install [1 - 6] :

Yes your diff is a bit large you have managed to include some kernel sources.
For the future you would only need to:
git clone git@github.com:itoffshore/Arch-SKM.git
cd Arch-SKM
git checkout my-branch
cp /path/to/linux-hardened.patch ./patches
git diff # check the changes
git commit
git push -u origin my-branch

& make a PR ;o)

For the error you see - probably your shell doesn't like the braces - you could debug it by playing around with the following:
#!/bin/sh

check_session() {
        # https://wiki.archlinux.org/title/Xinit#Autostart_X_at_login
        if [ -n "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
                echo "graphical"
        else
                echo "terminal"
        fi
}

check_session

On my desktop system it echos graphical

For the permissions issue I would check:
[stuart@endeavour ~/devops/distrobuilder/scripts/menu]$ ls -l /usr/src/certs-local/genkeys.py
-rwxr-xr-x 1 root root 13459 Jun 27 19:12 /usr/src/certs-local/genkeys.py

you can fix it with:
chmod 755 /usr/src/certs-local/genkeys.py

Take a look at the present state of the repo - isn't linux-hardened patch in the root instead of in patches?
> ls -l /usr/src/certs-local/genkeys.py
-rwxr-xr-x 1 root root 13459 Jul 13 12:43 /usr/src/certs-local/genkeys.py
❯ uname -a
Linux obsidian 5.18.11-hardened1-1-hardened #1 SMP PREEMPT_DYNAMIC Wed, 13 Jul 2022 17:28:34 +0000 x86_64 GNU/Linux
❯ echo $XDG_VTNR

❯ echo $DISPLAY
:0
❯ ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Jan  8  2022 /bin/sh -> bash
❯ pacman -Q | grep systemd
lib32-systemd 251.3-1
python-systemd 234-11
systemd 251.3-1
systemd-libs 251.3-1
systemd-swap 4.4.0-2
systemd-sysvcompat 251.3-1
❯ pacman -Q | grep arch-sign
arch-sign-modules 0.4.2-0

Here, this commit moves the patch from the root into the dir

yes well spotted thank you - it was 1am when I made the PR yesterday ;o)
better luck with today's
I'll update AUR to 0.4.3

Thanks I'll try it @itoffshore, maybe you should make some kind of github action ci build to run and make sure it's buildable?
Also I am trying to figure out why I seem not to have no $XDG_VTNR although I do use systemd-logind, gdm, is it possible my system isn't using pam_systemd?

Nevermind that because I do have
/run/user/1000

I use Wayland, maybe that's why?

0.4.3 on AUR now
I did look at some CI to build a kernel with Github Actions but they only have Ubuntu runners. Perhaps it's possible via CircleCI on Github. It would have picked up this issue quicker.
On my system I have pam & pambase installed (they are both core packages so should be installed by default):
/usr/lib/security/pam_systemd.so (part of systemd package)
I use systemd-logind too but run rootless xorg with no display manager - if you use GDM it does this for you.
Maybe you have some *.pacnew files in /etc/gdm or /etc/pam.d that need merging / replacing current configuration ?

yes probably due to Wayland

export XDG_VTNR=1 in your ~/.bashrc or ~/.bash_profile as a quick fix (assuming you never build from the console / headless)

OK thanks. 0.4.3 building fine

Many thanks for testing & finding this bug.
I'll have a look at using the Gitlab Ubuntu runner - if it has LXD in it I could pull an Arch image & build a kernel.


Unable to open screen when click on notification get undefined error

Hi, I try to open specific screen when user click on notification but I get an undefined error

Below is my code
import React, { Component } from 'react';
import { SafeAreaView, ScrollView, AsyncStorage } from 'react-native';
import { Text } from 'native-base';
import { createSwitchNavigator, createStackNavigator, createDrawerNavigator, DrawerItems } from 'react-navigation';
import OneSignal from 'react-native-onesignal'; // Import package from node modules

/*.. My Screens ...*/

export default class App extends Component {

  constructor(props){
    super(props);

    this.onIds = this.onIds.bind(this);
    this.onOpened = this.onOpened.bind(this);
    this.onReceived = this.onReceived.bind(this);
  }

  componentWillMount() {
    OneSignal.init("My_KEY");

    OneSignal.addEventListener('received', this.onReceived);
    OneSignal.addEventListener('opened', this.onOpened);
    OneSignal.addEventListener('ids', this.onIds);
  }

  componentWillUnmount() {
    OneSignal.removeEventListener('received', this.onReceived);
    OneSignal.removeEventListener('opened', this.onOpened);
    OneSignal.removeEventListener('ids', this.onIds);
  }

  onReceived(notification) {
      console.log("Notification received: ", notification);
  }

  onOpened(openResult){
    console.log('Message: ', openResult.notification.payload.body);
    console.log('Data: ', openResult.notification.payload.additionalData, openResult.notification.payload.additionalData.catalog);
    console.log('isActive: ', openResult.notification.isAppInFocus);
    console.log('openResult: ', openResult);

    this.props.navigation.navigate('Setting');
  }

  onIds(device) {
    console.log('Device info: ', device, this.state);
  }

  render() {
    return (
        <RootStack />
    );
  }
}

const NavigationScreen = createStackNavigator(
  {
      Splash: LaunchScreen,
      Login: LoginScreen,
      Register: RegisterScreen
  },
  {
    initialRouteName: 'Splash',
  }
)

const CustomDrawerComp = (props) => (
  <SafeAreaView styles={{flex: 1}}>
    <ScrollView>
      {/* <DrawerItems {...props} /> */}
        <NavigationMenu {...props} />
    </ScrollView>
  </SafeAreaView>
)

const MainApp = createDrawerNavigator(
  {
      Home: HomeScreen,
      Setting: SettingScreen,
      CatalogInfo: CatalogInfoScreen,
      Slider: ImageSlider,
      Category: CategoryScreen
  },
  {
    initialRouteName: 'Home',
    contentComponent: CustomDrawerComp,
    navigationOptions: {
      drawerLockMode: 'locked-open',
    }
  }
)

const RootStack = createSwitchNavigator(
  {
    AuthLoading: AuthLoadingScreen,
    App: MainApp,
    Auth: NavigationScreen,
  },
  {
    initialRouteName: 'App',
  }
);

please help

@anehkumar The error tells you what is wrong: this.props.navigation is undefined. This would be an issue with how you are using react-navigation. It wouldn't be an issue with our SDK.


Create CLI to generate style file for a netcdf file(s)

Given similar commands about colorspace, renderer type, value range, etc from render_netcdf, use these to generate a style JSON file.
Initially this could be limited to a single variable; it would be nice if this is handled gracefully on subsequent runs with other variables to build a consolidated file (first run creates file for variable 1, second run appends variable 2).
An additional interface could be to build default (black to white) stretched renderers for all listed variables, and leave it up to the user to populate the file with alternative colors.

This is currently handled minimally by --save option in render_netcdf command, which is probably good enough for now.


Trying to install

Which way would you recommend installing turicreate preferably the easiest way. Tried using Jupiter Notebook like in the WWDC 2018 video, but I was having trouble importing turicreate into the environment. It always said that my python is too new and that I need v.3.6 bu ti have 3.7. does anyone know how to downgrade python using anaconda?

now I'm getting this issue

Turi Create doesn't yet support Python 3.7. That issue is being tracked in #788.
Based on the paths in your stack trace, it looks like you've figured out how to create a Python 3.6 environment using anaconda.
I'm not sure what's happening with your second issue. Please share the entire stack trace. From just the part you've shared I can't tell what is happening.

these might help if their the right screenshots

I resolved my issue thanks tho

now I've got this problem
Unexpected characters after last column. ""
Parse failed at token ending at:
data/Image0025.png,"[{""label"":""egg"",type:""rectangle"",coordinates:{""x"":516		y:337	width:466	height:477}}]",^
Successfully parsed 2 tokens:
0: data/Image0025.png
1: [{"label": ... ht":477}}]
Unexpected characters after last column. ""
Parse failed at token ending at:
data/Image0023.png,"[{""label"":""egg"",type:""rectangle"",coordinates:{""x"":556		y:378	width:638	height:620}}]",^
Successfully parsed 2 tokens:
0: data/Image0023.png
1: [{"label": ... ht":620}}]
13 lines failed to parse correctly
Finished parsing file /Users/matthew/annotations/annotations.csv
Parsing completed. Parsed 0 lines in 0.029099 secs.
Unexpected characters after last column. ""
Parse failed at token ending at:
data/Image0015.png,"[{""label"":""cookie"",type:""rectangle"",coordinates:{""x"":1938	y:1302	width:3434	height:2393}}]",^
Successfully parsed 2 tokens:
0: data/Image0015.png
1: [{"label": ... ht:2393}}]
Unexpected characters after last column. ""
Parse failed at token ending at:
data/Image0018.png,"[{""label"":""croissant"",type:""rectangle"",coordinates:{""x"":312	y:233	width:539	height:427}}]",^
Successfully parsed 2 tokens:
0: data/Image0018.png
1: [{"label": ... ght:427}}]
Unexpected characters after last column. ""
Parse failed at token ending at:
data/Image0017.png,"[{""label"":""croiss"",type:""rectangle"",coordinates:{""x"":370	y:640	width:631	height:368}}]",^
Successfully parsed 2 tokens:
0: data/Image0017.png
1: [{"label": ... ght:368}}]
Unexpected characters after last column. ""
Parse failed at token ending at:
data/Image0020.png,"[{""label"":""egg"",type:""rectangle"",coordinates:{""x"":528		y:495	width:1009	height:920}}]",^
Successfully parsed 2 tokens:
0: data/Image0020.png
1: [{"label": ... ght:920}}]
Unexpected characters after last column. ""
Parse failed at token ending at:
data/Image0019.png,"[{""label"":""croissant"",type:""rectangle"",coordinates:{""x"":330	y:238	width:486	height:381}}]",^
Successfully parsed 2 tokens:
0: data/Image0019.png
1: [{"label": ... ght:381}}]
Unexpected characters after last column. ""
Parse failed at token ending at:
data/Image0016.png,"[{""label"":""cookie"",type:""rectangle"",coordinates:{""x"":406	y:221	width:787	height:401}}]",^
Successfully parsed 2 tokens:
0: data/Image0016.png
1: [{"label": ... ght:401}}]
Unexpected characters after last column. ""
Parse failed at token ending at:
data/Image0028.png,"[{""label"":""croissant"",type:""rectangle"",coordinates:{""x"":191	y:124	width:144	height:115}}]",^
Successfully parsed 2 tokens:
0: data/Image0028.png
1: [{"label": ... ght:115}}]
Unexpected characters after last column. ""
Parse failed at token ending at:
data/Image0024.png,"[{""label"":""cookie"",type:""rectangle"",coordinates:{""x"":283	y:137	width:321	height:264}}]",^
Successfully parsed 2 tokens:
0: data/Image0024.png
1: [{"label": ... ght:264}}]
Unexpected characters after last column. ""
Parse failed at token ending at:
data/Image0023.png,"[{""label"":""egg"",type:""rectangle"",coordinates:{""x"":556		y:378	width:638	height:620}}]",^
Successfully parsed 2 tokens:
0: data/Image0023.png
1: [{"label": ... ght:620}}]
Unexpected characters after last column. ""
Parse failed at token ending at:
data/Image0021.png,"[{""label"":""cookie"",type:""rectangle"",coordinates:{""x"":484	y:275	width:946	height:475}}]",^
Successfully parsed 2 tokens:
0: data/Image0021.png
1: [{"label": ... ght:475}}]
Unexpected characters after last column. ""
Parse failed at token ending at:
data/Image0022.png,"[{""label"":""croissant"",type:""rectangle"",coordinates:{""x"":463,y:303	width:515	height:406}}]",^
Successfully parsed 2 tokens:
0: data/Image0022.png
1: [{"label": ... ght:406}}]
Unexpected characters after last column. ""
Parse failed at token ending at:
data/Image0025.png,"[{""label"":""egg"",type:""rectangle"",coordinates:{""x"":516		y:337	width:466	height:477}}]",^
Successfully parsed 2 tokens:
0: data/Image0025.png
1: [{"label": ... ght:477}}]
Unexpected characters after last column. ""
Parse failed at token ending at:
data/Image0026.png,"[{""label"":""egg"",type:""rectangle"",coordinates:{""x"":522		y:420	width:625	height:721}}]",^
Successfully parsed 2 tokens:
0: data/Image0026.png
1: [{"label": ... ght:721}}]
13 lines failed to parse correctly
Finished parsing file /Users/matthew/annotations/annotations.csv
Parsing completed. Parsed 0 lines in 0.006869 secs.
Materializing SFrame
RuntimeError                              Traceback (most recent call last)
 in
----> 1 annotations.explore()
~/anaconda2/envs/TimApple/lib/python3.6/site-packages/turicreate/data_structures/sframe.py in explore(self, title)
4490         if title is None:
4491             title = ""
-> 4492         self.proxy.explore(path_to_client, title)
4493
4494     def show(self):
turicreate/_cython/cy_sframe.pyx in turicreate._cython.cy_sframe.UnitySFrameProxy.explore()
turicreate/_cython/cy_sframe.pyx in turicreate._cython.cy_sframe.UnitySFrameProxy.explore()
RuntimeError: Nothing to explore; SFrame is empty.

Unexpected characters after last column. ""
Parse failed at token ending at:
data/Image0025.png,"[{""label"":""egg"",type:""rectangle"",coordinates:{""x"":516		y:337	width:466	height:477}}]",^
Successfully parsed 2 tokens:
0: data/Image0025.png
1: [{"label": ... ht":477}}]
Unexpected characters after last column. ""
Parse failed at token ending at:
data/Image0023.png,"[{""label"":""egg"",type:""rectangle"",coordinates:{""x"":556		y:378	width:638	height:620}}]",^
Successfully parsed 2 tokens:
0: data/Image0023.png
1: [{"label": ... ht":620}}]
13 lines failed to parse correctly
Finished parsing file /Users/matthew/annotations/annotations.csv
Parsing completed. Parsed 0 lines in 0.029099 secs.
Unexpected characters after last column. ""
Parse failed at token ending at:
data/Image0015.png,"[{""label"":""cookie"",type:""rectangle"",coordinates:{""x"":1938	y:1302	width:3434	height:2393}}]",^
Successfully parsed 2 tokens:
0: data/Image0015.png
1: [{"label": ... ht:2393}}]
Unexpected characters after last column. ""
Parse failed at token ending at:
data/Image0018.png,"[{""label"":""croissant"",type:""rectangle"",coordinates:{""x"":312	y:233	width:539	height:427}}]",^
Successfully parsed 2 tokens:
0: data/Image0018.png
1: [{"label": ... ght:427}}]
Unexpected characters after last column. ""
Parse failed at token ending at:
data/Image0017.png,"[{""label"":""croiss"",type:""rectangle"",coordinates:{""x"":370	y:640	width:631	height:368}}]",^
Successfully parsed 2 tokens:
0: data/Image0017.png
1: [{"label": ... ght:368}}]
Unexpected characters after last column. ""
Parse failed at token ending at:
data/Image0020.png,"[{""label"":""egg"",type:""rectangle"",coordinates:{""x"":528		y:495	width:1009	height:920}}]",^
Successfully parsed 2 tokens:
0: data/Image0020.png
1: [{"label": ... ght:920}}]
Unexpected characters after last column. ""
Parse failed at token ending at:
data/Image0019.png,"[{""label"":""croissant"",type:""rectangle"",coordinates:{""x"":330	y:238	width:486	height:381}}]",^
Successfully parsed 2 tokens:
0: data/Image0019.png
1: [{"label": ... ght:381}}]
Unexpected characters after last column. ""
Parse failed at token ending at:
data/Image0016.png,"[{""label"":""cookie"",type:""rectangle"",coordinates:{""x"":406	y:221	width:787	height:401}}]",^
Successfully parsed 2 tokens:
0: data/Image0016.png
1: [{"label": ... ght:401}}]
Unexpected characters after last column. ""
Parse failed at token ending at:
data/Image0028.png,"[{""label"":""croissant"",type:""rectangle"",coordinates:{""x"":191	y:124	width:144	height:115}}]",^
Successfully parsed 2 tokens:
0: data/Image0028.png
1: [{"label": ... ght:115}}]
Unexpected characters after last column. ""
Parse failed at token ending at:
data/Image0024.png,"[{""label"":""cookie"",type:""rectangle"",coordinates:{""x"":283	y:137	width:321	height:264}}]",^
Successfully parsed 2 tokens:
0: data/Image0024.png
1: [{"label": ... ght:264}}]
Unexpected characters after last column. ""
Parse failed at token ending at:
data/Image0023.png,"[{""label"":""egg"",type:""rectangle"",coordinates:{""x"":556		y:378	width:638	height:620}}]",^
Successfully parsed 2 tokens:
0: data/Image0023.png
1: [{"label": ... ght:620}}]
Unexpected characters after last column. ""
Parse failed at token ending at:
data/Image0021.png,"[{""label"":""cookie"",type:""rectangle"",coordinates:{""x"":484	y:275	width:946	height:475}}]",^
Successfully parsed 2 tokens:
0: data/Image0021.png
1: [{"label": ... ght:475}}]
Unexpected characters after last column. ""
Parse failed at token ending at:
data/Image0022.png,"[{""label"":""croissant"",type:""rectangle"",coordinates:{""x"":463,y:303	width:515	height:406}}]",^
Successfully parsed 2 tokens:
0: data/Image0022.png
1: [{"label": ... ght:406}}]
Unexpected characters after last column. ""
Parse failed at token ending at:
data/Image0025.png,"[{""label"":""egg"",type:""rectangle"",coordinates:{""x"":516		y:337	width:466	height:477}}]",^
Successfully parsed 2 tokens:
0: data/Image0025.png
1: [{"label": ... ght:477}}]
Unexpected characters after last column. ""
Parse failed at token ending at:
data/Image0026.png,"[{""label"":""egg"",type:""rectangle"",coordinates:{""x"":522		y:420	width:625	height:721}}]",^
Successfully parsed 2 tokens:
0: data/Image0026.png
1: [{"label": ... ght:721}}]
13 lines failed to parse correctly
Finished parsing file /Users/matthew/annotations/annotations.csv
Parsing completed. Parsed 0 lines in 0.006869 secs.
Materializing SFrame
RuntimeError                              Traceback (most recent call last)
 in
----> 1 annotations.explore()
~/anaconda2/envs/TimApple/lib/python3.6/site-packages/turicreate/data_structures/sframe.py in explore(self, title)
4490         if title is None:
4491             title = ""
-> 4492         self.proxy.explore(path_to_client, title)
4493
4494     def show(self):
turicreate/_cython/cy_sframe.pyx in turicreate._cython.cy_sframe.UnitySFrameProxy.explore()
turicreate/_cython/cy_sframe.pyx in turicreate._cython.cy_sframe.UnitySFrameProxy.explore()
RuntimeError: Nothing to explore; SFrame is empty.

here is my error code

https://1drv.ms/w/s!AuEogTtHG6RcpGlIFCZ6_b3Y8ma_

there's my error code

https://onedrive.live.com/view.aspx?resid=5CA41B473B8128E1!4713&ithint=file%2Cdocx&authkey=!AEgUJnr9vdjyZr8

@MatthewGCampbell It looks like it's failing to parse some weird characters in your CSV file: ,[1;31m^[0m. Is it possible it's a corrupted download, bad copy/paste, etc.? Are you able to open this CSV file and have it parsed properly in any spreadsheet application, like Excel, Numbers, etc.?

@znation did you recieve my email? and I got it to work on my MacBook Air with the same file just not on my MacBook Pro ill send you a Excel screenshot

Hi @MatthewGCampbell From the screenshot, the CSV file itself looks fine. Could you share the CSV file with us (either in this thread, or over email) and we can help diagnose the issue?

Sorry I’m fixing one issue at a time right after I took the screenshot I saved it through excel and now it seems to work fine! But my next problem it that I created the model but can’t seem to find it on my computer, yeah I’d be happy to email it’s more simple than using github my email is<EMAIL_ADDRESS>

Is their like a default file name or place that it could be located

@MatthewGCampbell Once you have a model in Python, you would assign it to a variable like:
model = tc.classifier.create(...)

Then, once it's in a model variable, you can save it to disk or export it for use with CoreML. You must explicitly determine the path in both cases. If you don't call save or export_coreml, your model will not be saved to disk at all.
model.save('path/to/turicreate_model') # saves in Turi Create model format
model.export_coreml('path/to/model.mlmodel') # exports in Core ML model format

Hope that helps!

Thanks I don’t remember what code I ran and don’t have access to my laptop cause I’m n my car but I ran something like model = tc.classifier.create(...) but I replaced the ... with data so after I run that command it gave me this https://share.icloud.com/photos/0fdoKoY8K3armb5jsRwqhK66A and after I run that command would I have to run the model.save command and the model export one too?

Which email is best for you could you send me an email from that address? since I usually don’t check github and the easiest way for me is email and I respond quicker to my email.

@MatthewGCampbell It's better to keep issues on GitHub, as that way the rest of the community can keep aware of what issues we're having, weigh in on possible fixes and workarounds, and provide more information when they are also able to reproduce the issue. If you're having trouble getting notifications from GitHub over email, see this article on how to configure notifications.
I think the answer to your latest question is, yes, you would need to call save and/or export_coreml after the create command. Depending on how you want to preserve the model artifact to disk and where you intend to use it, one or the other or both could make sense. save will save a model that is loadable in Turi Create (but not Core ML directly), and export_coreml will save a model that is loadable in Core ML (but not Turi Create).

So then could I run both? Makes since to keep it in github tho.

@MatthewGCampbell Sure, you can run both. They will produce different file formats. The save method produces a Turi Create-compatible model in a directory structure. The export_coreml method produces a Core ML model in the .mlmodel file format.

here is the command I ran for the model

im a high school student and I'm going to a swift developing summer camp and the directors were asking if next year you would mind being a guest speaker? that's why I needed your email if you can't then no problem

The model.save and the model.export_coreml commands don't seem to work not sure why? do the files already have to exist or is it creating a new file?

When you seen In [ * ]: next to the code input box that means it's still working. When it's done the * will be replaced by a number.

if I call it model 1 in the tc.object_detector.create command does it need to bet called model 1 for the rest of the code?

bet = be

still can't get it to work

Got it to work finally now can you just import the ml file

trying to run this stuff from your WWDC talk when running the SFrame command how do I create the file with the images that it predicts?

what kind of a file is the .sframe? how do you make it?

Please study the Introduction to SFrames and Object Detection section of the user guide.
Since the original issues have been resolved I'm going to close this issue. If you have additional questions after studying our user guide, open a new issue.

Thanks so much for your help


Add z41dth3c0d3r's file

create 0000-01-02-z41dth3c0d3r.md  in _posts folder. for test and learn.

GitLab is just awesome!


feat(config): add support for Omni OOMIDW1

Added support for Omni OOMIDW1 / Fantem FT112-A. Fixes a part of #1596.

I'm confused a bit by these imports, but I think they do use the Aeotec hardware, right?

Converting to draft.  I found two files that look to be duplicates.   This guy: https://github.com/zwave-js/node-zwave-js/blob/master/packages/config/config/devices/0x016a/ft112-k.json and https://github.com/zwave-js/node-zwave-js/blob/master/packages/config/config/devices/0x016a/ft100.json

Replaced with #2489.