Cost Model Container throws panic: runtime error: invalid memory address or nil pointer dereference

Container Crashes after running a few hours, since then the container crash immediately after restart and therefore the readiness probes are failing:
Readiness probe failed: Get http://<IP_ADDRESS>:9003/healthz: dial tcp <IP_ADDRESS>:9003: connect: connection refused
Does anybody know how I can get more information to isolate the problem.
Thanks,
Daniele
Exception:
1020 06:41:36.727463       1 log.go:53] [Info] Allocation ETL: loading
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x1ad60f6]
goroutine 637 [running]:
github.com/kubecost/kubecost-cost-model/pkg/kubecost.(*AllocationSet).End(...)
/app/kubecost-cost-model/pkg/kubecost/allocation.go:1038
github.com/kubecost/kubecost-cost-model/pkg/allocation.(*MemoryStore).Load.func1(0x2, 0xc0010a4280)
/app/kubecost-cost-model/pkg/allocation/store.go:268 +0x96
github.com/kubecost/kubecost-cost-model/pkg/kubecost.(*AllocationSetRange).Each(0xc0013de4e0, 0xc000418e48)
/app/kubecost-cost-model/pkg/kubecost/allocation.go:1347 +0x5c
github.com/kubecost/kubecost-cost-model/pkg/allocation.(*MemoryStore).Load(0xc000692c60, 0x17, 0x0)
/app/kubecost-cost-model/pkg/allocation/store.go:265 +0x2cb
github.com/kubecost/kubecost-cost-model/pkg/allocation.(*MemoryStore).Run(0xc000692c60, 0xc002049890, 0xc000ae8540, 0xc00053d680, 0xc000554fd0)
/app/kubecost-cost-model/pkg/allocation/store.go:319 +0x443
main.(*Accesses).RunAllocationPipeline.func1(0x36fd620, 0xc000ae8540, 0xc00053d680)
/app/kubecost-cost-model/main.go:2365 +0x62
created by main.(*Accesses).RunAllocationPipeline
/app/kubecost-cost-model/main.go:2364 +0xf9

Thank you for reporting, Daniele. Do you know what cost-model version you are experiencing this behavior on?

Thanks again for reporting @CookieMonster70. We've identified the problem and hope to have a release to fix it soon.

Hi, we are using version: cost-model:prod-1.67.3
Cheers,
Daniele

@CookieMonster70 Thanks again for the report, and for your patience. We expect this issue should be resolved in 1.68.0, so please upgrade and let us know if you have any remaining issues.

I have installed the new version 1.68.0 with Grafana 7.2.2, it seems to work now.

Glad to hear! I'll close for now, but please reopen at any point if you have further issues.


Always handleInvalidToken after deploying with firebase hosting

Hi, i'm working on the "next13-typescript-starter" example project (the only changes I've made are the env variables in the .env.local file).
In a local environment everything works fine!
After deploying the app with the firebase deploy command, after logging in through the google sign in popup , the site keeps ending in handleInvalidToken callback.
There is a way to get a more detailed explanation of the problem?
Just to know, I setup the firebase hosting configurations after enabling this from the command line
firebase experiments:enable webframeworks

Hey @gmalagnini!

There is a way to get a more detailed explanation of the problem?

I am working on debug mode that would help developers to figure out such cases. It should be ready in next patch version.
Until then, let's try to figure out the reason you're ending up in handleInvalidToken.
handleInvalidToken is called only in one case – when there are no credentials attached to the request.
Could you check if the request that's ending in handleInvalidToken has Cookie header with two authentication cookies, based on cookieName that you provided to authentication middleware function? Eg. If you passed AuthToken as cookieName those cookies should be named AuthToken and AuthToken.sig.
It seems like those cookies are missing

It seems like those cookies are missing

They were indeed!
Thanks for the hint @awinogrodzki , the problem was related to the cookie name;
apparently the combination of firebase hosting + firebase functions don't allow to pass cookies named differently from "__session" (https://firebase.google.com/docs/hosting/manage-cache#using_cookies) so there's no chance to create a "__session.sig"  one! 😞
There's a solution (maybe trying to unify both cookies in a single __session one and then split them in before calling the authentication() function, i don't know) or should i consider to deploy the app in a different platform?

(maybe trying to unify both cookies in a single __session one and then split them in before calling the authentication() function, i don't know)

I've just tried this option and - although it's pretty ugly - it works.
@matthewlongpre 's answer in #19 really helped me out, basically i've just removed firebase operations from his implementation and saved directly both the idToken and refreshToken in the __session cookie


fix(ci): don't run enterprise nightly tests for outside contributors

To prevent bypassing branch protection rules, don't run enterprise nightly tests just as we do regular enterprise tests already.

Codecov Report
Base: 53.52% // Head: 36.45% // Decreases project coverage by -17.07% :warning:

Coverage data is based on head (a275688) compared to base (0d4e072).
Patch has no changes to coverable lines.

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #278       +/-   ##
===========================================
- Coverage   53.52%   36.45%   -17.07%
===========================================
  Files          50       50
  Lines        4652     4652
===========================================
- Hits         2490     1696      -794
- Misses       1634     2651     +1017
+ Partials      528      305      -223

Flag
Coverage Δ

2.1.4
36.45% <ø> (ø)

<IP_ADDRESS>
?

2.2.2
?

2.3.3
?

<IP_ADDRESS>
?

2.4.0
?

<IP_ADDRESS>
?

2.5.1
?

<IP_ADDRESS>
?

2.6.0
?

<IP_ADDRESS>
?

2.7.0
?

<IP_ADDRESS>
?

2.8.0
?

<IP_ADDRESS>
?

3.0.1
?

<IP_ADDRESS>
?

3.1.0
?

<IP_ADDRESS>
?

community
36.45% <ø> (-3.51%)
:arrow_down:

enterprise
?

enterprise-nightly
?

integration
36.45% <ø> (-17.07%)
:arrow_down:

nightly
?

Flags with carried forward coverage won't be shown. Click here to find out more.

 Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Prevented external editor from running multiple times

Fixes #16923 I think. I'm not a fan of the special case for scripts in editor_node.cpp, but in any case,
I made it so it wouldn't make the external editor to re-open just because we switched scenes.

Seems fine, thanks!

Cherry picked into 3.0.3


PUT gets changed to POST in 1.3.2

In the output below I am running the same command twice in each of the most recent versions, displaying debug output emitted before and after the request is sent.
  If you want to send the request anyway, make sure your 'mode' is set to 'new_episodes'. Please see http://php-vcr.github.io/documentation/configuration/#record-modes.
Cassette: redis-disable.yml
 Request: Array
(
    [method] => POST
    [url] => https://onebox/api/sites/11111111-1111-1111-1111-111111111111/settings
    [headers] => Array
        (
            [Host] => onebox
            [Expect] =>
            [Accept-Encoding] =>
            [User-Agent] => Terminus/1.0.0-beta.1 (php_version=7.0.14&script=bin/terminus)
            [Content-type] => application/json
            [Authorization] => Bearer 11111111-1111-1111-1111-111111111111:02feae0e-903d-11e6-a80f-bc764e1022a9:cgeUKly27qX4r3X6pfW2O
            [Accept] =>
        )

    [body] => {"allow_cacheserver":false}
)

In rifled through the code and found that this change is the cause of the issue:
https://github.com/php-vcr/php-vcr/commit/a05d40afe2784d506d3c5c2498abbbe3955765df
OK'd in this PR:
https://github.com/php-vcr/php-vcr/pull/175
What was the purpose of this?

Opened #188. Please consider it.

I ran in to this problem too and created #186 that fixes this without having to revert #175
@TeslaDethray Can you take a look at it to see if it works for you?

Hello @TeslaDethray thanks for finding this out and I'm really sorry we got this in our code.
Could you check @tmdk solutions to see if it works for you?

@tmdk @renatomefi Apologies for the delay. @tmdk's change is works on my project.

Any update on this? This happens to me as well in 1.3.2 but works in 1.3.1.

@TeslaDethray @tmdk @perssonmattias91 Please update your libraries, if the problem persists please re-open the issue!
Thank you all for the contributions and help!

@renatomefi Thanks for checking in! I will test the new release.


(JavaFXSceneBuilder): Init at version 2

Motivation for this change
Add JavaFXSceneBuilder to be used standalone or inside intellij or other IDEs
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Assured whether relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Are there any updates on this pull request, please?

Have not been in need of this since then and have totally forgotten about it. I'll look into this. I think the only issue has been the description. Now, maybe a fresh rebase might be needed, but apart from that this should be fine.

Actually autoPatchelf is not able to find libavcodec.so.53 and libavformat.so.53. Any idea how to include those? Neither importing ffmpeg nor libav respectively would fix this. :thinking:

I see that oracle now requires one to register an account on order to download the scene builder. I also wonder if this program is even used that broadly? If not I think this PR could be closed, and I might look into packaging gluon instead if there is interest.

As far as I know, SceneBuilder is now distributed under the 3-clause BSD License on GitHub, and the installers can also be downloaded from the official website directly (without registrations or something similar).
GitHub page:  gluonhq/scenebuilder
Home page: https://gluonhq.com/products/scene-builder/
It would be awsome to have it as a Nix package.

Replaced by #110398


Typo in role

https://github.com/legastero/stanza.io/blob/b8e20ae7f94a1b1fdf7e98071e5317f34b5969a5/src/jingle/MediaSession.js#L96
Shouldn't this be responder instead of resonder?

Already fixed? https://github.com/legastero/stanza.io/issues/303

Already fixed? #303

Seems so, don't know how I ended in that old commit. Clossing.


update stock assessment workshops and trainings page

https://noaa-fisheries-integrated-toolbox.github.io/resources/workshops/workshops-trainings/
Not sure if there is a calendar for these? It would be nice to link to a calendar to keep this page current rather than needing to continuously update it.

There is an assessment calendar link<EMAIL_ADDRESS>Other relevant links include the R UG calendar

Added the R UG and assessment calendar, and removed details about trainings from the stock assessment workshop and trainings page so it wouldn't get out of date


Failed to clone

Hi, I have an issue when trying to uninstall / install / update an extension. It seems that it tries to clone from github and fails.

Steps to reproduce

Go to admin
Open bazaar tab
Try to uninstall / install / update and you will get this error

Expected behaviour
It should update / install / uninstall.
Actual behaviour
I get an error. Oops! Something went wrong. Please reload the page and try again. This happens on any extension. It doesn't even seem to be trying to clone from the extension I'm actually updating / installing / uninstalling.
Configuration
Version of Bazaar: 0.2.2
Version of Flarum: Beta 6

**Logs**:
Failed to clone https://github.com/Cl1608Ho/flarum-ext-discord-webhook.git, git was not found, check that it is installed and in your PATH env.
sh: git: command not found

Hi, thanks for your report.
Can you share the content of your composer.json file and your composer version (via composer --version) ?

Composer.json:
{     "name": "flarum/flarum",     "description": "Delightfully simple forum software.",     "type": "project",     "keywords": ["forum", "discussion"],     "homepage": "http://flarum.org",     "license": "MIT",     "authors": [         {             "name": "Toby Zerner",             "email"<EMAIL_ADDRESS>       },         {             "name": "Franz Liedke",             "email"<EMAIL_ADDRESS>       }     ],     "support": {         "issues": "https://github.com/flarum/core/issues",         "source": "https://github.com/flarum/flarum",         "docs": "http://flarum.org/docs"     },     "require": {         "flarum/core": "^0.1.0",         "flarum/flarum-ext-akismet": "^0.1.0",         "flarum/flarum-ext-approval": "^0.1.0",         "flarum/flarum-ext-auth-facebook": "^0.1.0",         "flarum/flarum-ext-auth-github": "^0.1.0",         "flarum/flarum-ext-auth-twitter": "^0.1.0",         "flarum/flarum-ext-bbcode": "^0.1.0",         "flarum/flarum-ext-emoji": "^0.1.0",         "flarum/flarum-ext-english": "^0.1.0",         "flarum/flarum-ext-flags": "^0.1.0",         "flarum/flarum-ext-likes": "^0.1.0",         "flarum/flarum-ext-lock": "^0.1.0",         "flarum/flarum-ext-markdown": "^0.1.0",         "flarum/flarum-ext-mentions": "^0.1.0",         "flarum/flarum-ext-pusher": "^0.1.0",         "flarum/flarum-ext-sticky": "^0.1.0",         "flarum/flarum-ext-subscriptions": "^0.1.0",         "flarum/flarum-ext-suspend": "^0.1.0",         "flarum/flarum-ext-tags": "^0.1.0",         "flagrow/bazaar": "^0.1.0",         "cl1608ho/flarum-ext-discord-webhook": "^0.1.0@beta",         "flagrow/upload": "^0.5.7",         "sijad/flarum-ext-links": "^0.1.0@beta",         "xengine/flarum-ext-signature": "^0.1.2",         "ganuonglachanh/flarum-ext-markdown-editor": "^0.9.0",         "hugogit/flarum-ext-discordwidget": "^0.1.7",         "flagrow/byobu": "^0.1.0@beta",         "datitisev/flarum-ext-dashboard": "^0.1.0@beta",         "jordanjay29/flarum-ext-summaries": "^0.2.0"     },     "require-dev": {         "franzl/studio": "^0.11.0"     },     "config": {         "preferred-install": "dist"     },     "minimum-stability": "beta",     "prefer-stable": true }
Composer version: 1.4.1

@clarkwinkelmann i think the issue is that composer will fall back on doing a git checkout/clone in case no dist tarball was found. There might be several reasons for that, but none we have any influence on. I guess we need to start working on our own dist files directory. 😬

@luceos i think the issue is that composer will fall back on doing a git checkout/clone in case no dist tarball was found

That's what I believe as well.
@SamB440 I installed a Flarum just like yours based on the composer file and I can't reproduce the issue. This must be something with your environment.
I may suggest you try to clear composer cached files. A thing that happened to me in the past was the cache was written with wrong permissions and everytime composer ran it was fetching things again in a different manner.

@luceos I guess we need to start working on our own dist files directory

Wouldn’t we end up hitting the same kind of issues with our own implementation ? :thinking:

I tried clearing the cache and the issue still occurs :(

Seeing you have "config": { "preferred-install": "dist" } in your composer.json there's no reason for composer to try downloading the source code...
I'm running out of suggestions. If you are able to install git on your server, you could at least use Bazaar, even if it fetches the source instead of the dist.

What composer version is installed @SamB440 ?

1.4.1, as stated before :P

Sorry I missed that :grin: I also think your cache folder is not writable. Can you run the action bazaar tries manually?
composer require flagrow/upload -vvv

@SamB440 is this still happening ? Did you try @luceos suggestion ?
I'm closing this because it's clearly not a Bazaar issue. Feel free to come back with additional information. I'll re-open if necessary :wink:


LWMS ID 5761: Removed expired PARA Links and added alternative texts for all the images in all of the workshop labs

Add here your WMS ID
General requirements

Information in the workshop is adequate and updated
Code is correct and working
Links are correct
Make sure you enter the help email link in your manifest.json
Please make sure WMS URLs are updated as needed after your PR is approved

Checklist - Refer to the QA document for the complete list
Please confirm that the following is completed before submitting your PR

[ ] All filenames are lower case (including folders, images, files, etc.)
[ ] Filenames are descriptive
[ ] Your workshop folder structure should be similar to the one used in the sample workshop (https://github.com/oracle-livelabs/common/tree/main/sample-livelabs-templates/sample-workshop)
[ ] Are you using multiple versions (desktop/, sandbox/, tenancy/)? Make sure that each of them contains a manifest.json and an index.html
[ ] Image references in markdown contain an alternate text

Arabella,
I have made the requested changes:
LWMS ID 5761: Changed all Image alternative texts to the following format
Thank you,
Perside Foster | MySQL Principal Partners Solution Engineer
email<EMAIL_ADDRESS>phone: 1.786.877.9063
Oracle  Florida
From: Arabella Yao @.>
Sent: Tuesday, October 25, 2022 8:33 PM
To: oracle-livelabs/analytics-ai @.>
Cc: Perside Foster @.>; Author @.>
Subject: [External] : Re: [oracle-livelabs/analytics-ai] LWMS ID 5761: Removed expired PARA Links and added alternative texts for all the images in all of the workshop labs (PR #76)
@arabellayao requested changes on this pull request.
Hi! Image alternative texts should be included in the following format:
[Image removed by sender. Alt text]<images/image.png>
Please let me know if you have any questions. Thanks!
—
Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/oracle-livelabs/analytics-ai/pull/76*pullrequestreview-1155705579__;Iw!!ACWV5N9M2RV99hQ!PV1hOpqQHzo8HnhwdadDqTMl8QVJLC7Y-YwKh6Kgmrb4ZUTfi_bhLrj8DcYnx_iUHA1KP79moYVYoqY5K_Eo8qcuVpee$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AMYQBSXSQ52LPAEH6INLCXLWFB335ANCNFSM6AAAAAAROOJCFM__;!!ACWV5N9M2RV99hQ!PV1hOpqQHzo8HnhwdadDqTMl8QVJLC7Y-YwKh6Kgmrb4ZUTfi_bhLrj8DcYnx_iUHA1KP79moYVYoqY5K_Eo8pZUwscV$.
You are receiving this because you authored the thread.Message ID: @.***>


Expose Validators instead of schemas and resolvers

Resolves #1 - header validation
As I was working on #22 I noticed that I was having to frequently pass around a resolver, but that resolver was only ever going to be used with the schema that came from the same place.
This refactor exposes a SchemaValidator object instead of the the SchemaAndResolver object. The validator can be used directly to validate a field from the request or response, but it also stores the original schema which can be used to cast values.
Exposing a validator instead of the schema and resolver should allow us to make changes to the validator (as suggested by some TODOs added in this PR) in a single location (load_schema). Previously it would require changes to both load_schema and tween.
I think it also makes the tween easier to reason about.  All of the validation logic is now part of the model/load_schema.  The tween only needs to iterate over the fields and validate each without worrying about the implementation of that validation.

I still need to add an acceptance test for the header validation

Thumbs up on the idea. Looks like a solid refactor whose time has come. Some various clarity/documentation comments but happy to see it wasn't terribly invasive.
Food for thought: is this something we include in the changelog or is it internal-only? I think the latter, but wanted to ask.

I  definitely deserves a changelog entry for "adding header validation", but I think the rest is internal-only.

Docs are in

Coverage remained the same at 100.0% when pulling f436091a84450b2e790a22a953ed638edc195334 on dnephin:refactor_model into e57b344272766e49dcb89c66fe5e1a878733fa50 on striglia:master.

Travis failure is the sphinx template name change which is fixed in the other branches

Coverage remained the same at 100.0% when pulling 606fbed35932b10db5fd8ba8b7046ef6f4f34462 on dnephin:refactor_model into 6e5a07b7e77884e27f3219519834ef31f0f8df69 on striglia:master.


New Release with updates?

New Release with updates?

If there are no more fixes, I will have a 0.7.1 release out by the end of the month.

Thank you!

quick question.... if i use redux. does that mean i don't need the unsupported version of flask-whooshalchemy that was forked ? or is this just adding extra functionality/extension?

@rlam3 You want to use either Redux or the original. If you add both you might get conflicts. Redux is only incorporating the open pull requests(for fixes), since the original has been abandoned.
Personally, I put my whoosh folder some place like ~/whoosh_index. Where you put the folder should not matter in terms of speed. If you have used Solr or the like in the past, Whoosh will be noticeably slower in comparison.
If you have hundreds of thousands of rows indexed, searching might take a few seconds. Is it much slower than that?

@dhamaniasad
~/whoosh_index would be in the root folder?
I'm feeling really laggish. It does return within a few seconsd but I'm trying to do a search as you type kind of ajax call. Do you have an example of ajax with flask-whooshalchemy? sometimes when I type a bit faster my searchfield, it seems that the request is sent through fast enough but retrieving and Model.query.pure_whoosh('xyz') and then serializing the object with marshmallow takes longer than expected in production. I'm not having as much issue with local development.

@rlam3 No, that would be the home folder of whatever user is running your Flask app.
Whoosh wouldn't really excel at search-as-you-type. Your interface will feel pretty laggy if you do that. Maybe your production environment has a bigger database than your development environment?

my development env currently has the exact same amount of records as my production database. it is more like staging but i already notice the difference in speed between development being faster than prod/staging. what do you recommend the better way to implement search as you type ?

@rlam3 I have released 0.7.1 on PyPI.
Perhaps the difference in speed is coming from network overhead? Whoosh is


[SPARK-47146][CORE][3.5] Possible thread leak when doing sort merge join

This pr backport https://github.com/apache/spark/pull/45327 to branch-3.5
What changes were proposed in this pull request? Add TaskCompletionListener to close inputStream to avoid thread leakage caused by unclosed ReadAheadInputStream.
Why are the changes needed?
To fix the issue SPARK-47146
Does this PR introduce any user-facing change?
No
How was this patch tested?
Unit test
Was this patch authored or co-authored using generative AI tooling?
No

Merged to branch-3.5 and branch-3.4
Thanks for fixing this @JacobZheng0927 !


ROX-13023: Use database count rather than result count in postgres scoped access control context

Description
So far, queries to the datastore to count items when the user has a limited access scope do perform a scoped search, and the response is the number of items returned by the search.
This has the drawback that scoped count queries generate unnecessary traffic between the datastore and the service layer.
The goal of this change is in postgres mode to let the database return only the number of items matching the requester scope rather than all items matching the requester scope and letting the application code count the returned items.
Checklist

[ ] Investigated and inspected CI test results
- [ ] Unit test and regression tests added
- [ ] Evaluated and added CHANGELOG entry if required
- [ ] Determined and documented upgrade steps
- [ ] Documented user facing changes (create PR based on openshift/openshift-docs and merge into rhacs-docs)

If any of these don't apply, please comment below.
Testing Performed
Scoped access control tests do cover the Count function in most datastores. A manual run of datastore tests for sample central subdirectories was done, and triggered the new code path.
CI should be sufficient.

/test all


R6S EMMC Boot

Hi , Thanks for your work
I just wana to ask if its possible to run opnsesne along with UEFI Boot on EMMC ? i mean flash EMMC with both images ?
As i can see on your post , https://yrzr.tk/running-opnsense-on-r6s/ . i need to flash sata via usb cable with opnsesne image and microsd for Uboot UEFI . Could'nt make it both falshed to EMMC ?
Thanks

Have you tested with the newest UEFI image? Any results? Error logs?
As far as I tested last time, the FreeBSD kernel failed to recognize partitions on EMMC. There is still work to do on ed2k firmware.

Hi, thanks for your work!
I have managed do put UEFI on the eMMC and OPNsense on USB and UEFI on SD and OPNsense on eMMC (not a bad option really), but can't work out how to do the partitioning to go full eMMC.
Any pointers as I can't make sense of the documents?
Thanks.


Updated airfield top-down info to reflect changes in LAC North

Various changes/additions to top-down list on sectors page of the website to reflect changes to everyday sectors in LAC North

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


A little problem

brutecointxt>python brutecointxt.py --txt  passphrases.txt > output.txt
1000it [00:00, 64005.86it/s]
it shows this when running

Hey, 1000it [00:00, 64005.86it/s] is progress bar output using tqdm library. I used it, because when file passphrases.txt is too big, its hard to track actual progress without it. You wouldn't know when program gonna finish.
Good thing is that tqdm progress bar doesn't collide with output redirection > output.txt, so if program gonna find avaliable balance, then only this information gonna land in output.txt file.
If you want to know more about progress bars using tqdm library: tqdm github

when executing in cmd it shows this, no delay and nothing shows in the output file
C:\Users\brutecointxt>python brutecointxt.py -t passphrases.txt -n -r -u -l >output.txt
1000it [00:00, 66649.25it/s]
C:\Users\brutecointxt>python brutecointxt.py

do you have telegram?


Add molecule test

Figure out how we an test this role.

https://github.com/marketplace/actions/ansible-molecule could be helpful here.

https://github.com/GeekOops/geekoops-nginx/pull/7 made a larger refactoring there and updated the molecule test to use podman. Perhaps we can use some of the workflow from there.


feat(openldap): tls certs and ldif file

Support the operations
with_ldif_file(...)
with_certs(...)

on the OpenLdap Container

Thank you for the contribution! 🚀

I squashed the commits to fix the "faulty" commit with '.map(|x| x)' (I honestly don't know what I was thinking there :| ) and also rebased onto the latest main

Thx for the fast response time. Appreciate that.
When do you think this will be available in a new release?

It's already been released as 0.11.1

That is awesome. Thank you so much.


Remove reference to app/models/builders directory from README

This directory was removed in this commit.

@chrislo: Thanks for reviewing.
Merging.


Give better results for "roof" search term (building=roof should appear before groyne)

You need to map the roof as an area not a line..

I tested it with https://www.openstreetmap.org/way/654706823
I retested it again, on deleting building=roof tag and trying to search again it is giving exactly the same results.
All my checks indicate that it is a closed way.

Yeah, you can't just delete the building=roof tag, that will make it a line again.  OSM doesn't have a real polygon data type, so we need to recognize which tags imply that a thing is a polygon (area).
If you map the roof as an area, you'll be suggested area presets (like "roof")
If you map it as a line, you'll be suggested line presets (like above).

Sorry for misinterpretation of the situation.
I think that closed way without any tags should be considered as both line and area and get preset results for both but it leaves bug area and goes into design decisions.

No problem, we were just discussing this on #5569 and the issue tracking this is #1828
It's probably also worth mentioning - this is one of those weird issues where only people with long term OSM experience who know about tags are always reporting it to me as an issue, but newbies who go through the tutorial and pay attention to the UI clues understand the difference between lines and areas right away.
It's really wild how the lack of a proper polygon/area datatype in OSM has distorted people's thinking.  In an alternative universe (or possibly a future one), OSM just used GeoJSON as its data model, everyone understands the difference between Polygons and LineStrings intuitively, and areas are impossible to break by deleting parts of them or mistagging.


docs: add 7.0.0 blog post

The 7.0.0 blog post. :tada:
eb3cccf04f98578cc938e869b6497635e8841c5c by Sofia

There's one TODO item for the M78 blog post link. They post it day of release, so we'll add that link last minute before merging this.


fix errors from serverless showed by linters

Description
Changes proposed in this pull request:

fix errors from serverless showed by linters

/test all


Add environment variable upload to Azure app service to CD pipeline

[ ] Export ARM templates
[ ] (Optional) Convert them to bicep
[ ] Replace secrets to with tokens
[ ] Add secrets to Github environment secrets
[ ] Use replace token release step

Done: https://github.com/philip-gai/repost/blob/main/.github/workflows/repost-appservice-ci-cd.yml#L100-L112


Allow any real provider to be omitted

Hey @psav  -- we'll also need to set omitempty on the rest of the provider types here, no?
https://github.com/RedHatInsights/clowder/blob/master/apis/cloud.redhat.com/v1alpha1/clowdenvironment_types.go#L236


ltex language server didn't let me change the language

Description
Hi, installed the ltex-ls and followed de config of the documentation to change the language, but it didn't work
require("lspconfig").ltex.setup {
        settings = {
          ltex = {
            language = "es",
          },
        },
      }

but it didn't work, it still uses the same language

it seems the total settings is not work correct:
I've tried
settings = { ltex = { enabled = false,}}

not work correctly

Thanks for your report. The configs in this repo are unsupported and provided only as a starting point. We depend on users (like you) to troubleshoot issues with their specific LSP setups and send improvements.
If you have a usage question, try asking it at:

https://github.com/neovim/neovim/discussions
https://vi.stackexchange.com/

If you found a bug in the core Nvim  vim.lsp module (not part of this repo), the best way to get it fixed is to report to Nvim (not nvim-lspconfig) with:

steps to reproduce it without the particular LSP server and other factors particular to your environment
(optional, but very helpful): by adding a failing test case to lsp_spec.lua, which has code to setup a fake LSP server to simulate various scenarios


error arises when rendering .html

New to node.js world, super excited to see this project and just getting feet wet.  On Ubuntu 15.04 machine, trying to "render all" for the boilerplate richard hendriks resume.json from jsonresume.org site pops up this error.
$fluentcmd resume.json -o out/resume.all -t modern
--other error code above this--
at /home/foouser/.nvm/versions/node/v0.12.7/lib/node_modules/fluentcmd/node_modules/fluentlib/src/core/sheet.js:166:27
Generating HTML resume: out/resume.html
ERROR: Cannot read property 'toLowerCase' of undefined
TIA for any assistance.  Googled around but nothin obvious.  Looking forward to see where this project goes since I had trouble installing the jsonresume server when I tried to dockerize it and run on a remote server.

Hi Vincent, thanks for the info. If you upgrade to the latest release (npm update -g fluentcmd or reinstall with npm i fluentcmd -g) and refresh your Hendriks resume from http://registry.jsonresume.org, this should be working again. Let me know if you run into any issues.

I should add before I saw your comments, I realized I had not created an 'out' folder hence the error surfacing. I subsequently updated fluentcmd and the hendriks resume and all formats seem to render.  Have only checked pdf so far.  Will review others and then on to how themes are constructed.  Thanks very much.

Great (and you're welcome). In that case, there's a large-ish update coming tomorrow or the next day to clean up the current theme structure and allow for different templating engines (Liquid, Handlebars, Underscore, etc.). Beyond that, another 6 or 7 themes are en route in the next several days.

Just a side comment, might be useful in an FAQ to state why you believe the flexibility and range of templating options are needed.


STAY AWAY from Gosund plugs

I got confirmation from their support that most of their plugs are already upgraded versions and cannot be downgraded.
For reference:
From: Mufi (Support<EMAIL_ADDRESS>To: Me<EMAIL_ADDRESS>Subject: Re: Firmware request

Hi Skyler,
Thank you for your email.
Most of our plugs are already upgraded and they no longer support flashing to Tasmota.
We are sorry to inform you that upon checking, your smart plug is an upgraded version. Therefore, the firmware cannot be updated to v1.0.8.
We are hoping for your understanding.

Which Version of Tasmota do you have?
KR
Rok

Which Version of Tasmota do you have?
KR
Rok

None? It comes with Tuya.

8.2.0 - 6x on and off restart solved the issue.
KR
Rok

From: Skyler Mäntysaari @.>
Sent: Saturday, November 11, 2023 7:07:26 PM
To: ct-Open-Source/tuya-convert @.>
Cc: mlinko6 @.>; Comment @.>
Subject: Re: [ct-Open-Source/tuya-convert] STAY AWAY from Gosund plugs (Issue #1101)
Which Version of Tasmota do you have?
KR
Rok
None? It comes with Tuya.
—
Reply to this email directly, view it on GitHubhttps://github.com/ct-Open-Source/tuya-convert/issues/1101#issuecomment-1806880505, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUMF4SQJ7AUW4RQQHGHGCDLYD65F5AVCNFSM6AAAAAA43DFZQWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBWHA4DANJQGU.
You are receiving this because you commented.Message ID: @.***>

Sorry I mean’t Gosund version

Main Module lists version as v1.1.15 and Other type: v1.0.7 so expect every single one of these to be non-downgradeable if you're currently thinking about them.

I've just flashed Gosund EP2 smart plugs with the firmware version: 1.0.8 4 with Tuya converter installed on Raspberry Pi4 - i had no Issues with flashing.

I've just flashed Gosund EP2 smart plugs with the firmware version: 1.0.8 4 with Tuya converter installed on Raspberry Pi4 - i had no Issues with flashing.

That version is exactly the ONLY ONE which works, but most ones you can buy anymore are running newer than that, and thus will not work.

you should still be able to open them up and flash them

you should still be able to open them up and flash them

Doesn't matter, as I'm not going to open it.

if you get some old models from the store then you may have 1.0.4 firmware.(Probably tuya forced them to stop flashing EP2 to customers plugs) But there is also EP2 with a beken chip.
gosund ran out of esp chips??

so sad they are patched, i didn't get to flash tasmota on mine :(


Add configuration to support free concurrent tasks and optimize git library update performance issues

In the process of frequently creating tasks in large batches, several problems were discovered:

Concurrent tasks of the same template are not supported
Taskpool is slow to deliver tasks every 5 seconds.
The git library will need to be updated every time a task is executed, but in most cases this is not necessary.

This is controlled through the incremental scheme, and is switched by configuring GitCacheTime, TaskFreeConcurrencyMode, and TaskPoolTickerSec. When not configured, it remains the same as the previous code.
Consider that inventory is created through taskid when using git. It is actually created every time. Currently, GitCacheTime does not control this.

Hi @gaoyue1989
Did you test the PR in real tasks?

Caching doesn't resolve the conflict issue and introduces unexpected behavior.
I think we need to check for new commits (without pulling) on each task run.
In free concurrency mode, other tasks fail if a new commit appears.


Fixed tested broken in #37

This fixes tests which were broken in #37. Two types of fixes:

onDone is not always defined, so we add a guard before calling it
the swfClientMock was returning the same event twice. I uncommented some code and also made taskToken an empty string on the second call

For the second fix, I think this is the correct behaviour. See http://docs.aws.amazon.com/amazonswf/latest/apireference/API_PollForDecisionTask.html : "An empty result, in this context, means that a DecisionTask is returned, but that the value of taskToken is an empty string."
Also, verify that builds are passing here: https://circleci.com/gh/ktonon/aws-swf/5

So build 55 failed on node 0.8 because of Error: No compatible version found<EMAIL_ADDRESS>I updated the pr to drop support for node 0.8 and add support for newer node versions as well as iojs.


feat: Services CRUD

CRUD on services
Paramter view/edit
NOTE: Lacking checks on parameter types

In the case of options on parameters for dropdowns, its coming up as Objects. Can we do conversions?

And then also, there are descriptions on some parameters that serve as hints which are often used. Can we add those as well in the parameter options?


TypeScript Example (CJS)

The following PR relates to a simple TypeScript implementation using<EMAIL_ADDRESS>Additionally, example (found in examples/typescript) includes a tsconfig.json that compiles down to ES5 JavaScript. A merge request I made previously had failed some tests relating to version limitations (node), so this should handle that case.
However, the compiled JavaScript and other generated assets are set to be tracked via VCS (git). It's of normal operation to usually untrack them via including *.js in the .gitignore.
We can later add a .gitignore in the example folder itself. But I do want to see what the GitHub actions returns with. If appropriate, I'll update/discuss changes to these tests to account for the typescript example.

Discussion
Looking at the other example folders, often they are without README.mds, package.jsons, etc. etc.
While totally fine, the example this PR relates to, as well as another I have outstanding, perhaps could be exceptions. I know the package maintainers and other contributors see, almost daily, issues & questions relating to ESM, TypeScript, and even both.
Providing examples, like this one, hopefully will make everyone's life a bit easier :D.

Nice, seems to have passed

@bozzelliandrea, thank you for the feedback; I've since updated with your recommended changes, and point of replacing require with import.
Sorry my response took so long, I'll try and get back sooner next time around :D.
P.S. I updated the tsconfig.json and package.json to align much closer to what a standard, default configuration would look like. Notice, too, the latest package version reference(s).
Using latest is to avoid (haha hopefully) any technical debt down the road with issues coming through asking to update the typescript example.

@Segmentational everything looks ok and clean, nice work! 😃
Just my curiosity, what does CJS mean?

@bozzelliandrea, sorry for the delayed response... I just moved halfway across the united states, so that took a little time haha.
Yeah, "CJS" can be seen in a few odd places in the node official documentation. The first example, although referenced as a file extension, can be seen here:

https://nodejs.org/api/modules.html#enabling

I'm unsure of the exact other places, but essentially it's a shorthand sometimes used to describe the commonjs javascript module type.


Broken color transition

Now sharp-angle connections render color transition with noticable shift. We have to correct that by miter limit or so.

Will be covered by #19


Implemented provider lookup

As stated in #9, when performing a query mdgt will search for the provider file in the following order:

Directory specified through the -pd option (python -m mdgt -pd /path/to/providers)
providers directory in CWD (./providers)
Providers bundled with the package when installed

In addition, and in order to allow referencing bundled providers, the providers/ directory has been moved inside the module and included in the setup.py file as package data.

This looks good, thanks for the PR!


Add GetTransactionsForTxBlockEx API

Add GetTransactionsForTxBlockEx API, along with associated type, and test
The test is fairly minimal, since this is fairly simple code
A future PR might include a test setup with a more developed example network

@maxconway I resolved the conflict because it was easy - I think this will get merged once you press approve?

@rrw-zilliqa, any chance you could approve this? James originally approved it but then we got a merge conflict, which he fixed, so he's the last committer, so he can't re-approve, and I can't approve because I'm the original author

Sorry :( That will teach me to try and be helpful :)

I guess there isn't some kind of override to force the merge in this sort of situation?


Publish version in NPMJS

Hi,
I would like to know when is the plan to publish the latest version of the package in NPMJS?
We have made some updates recently going to 2.0.3 but NPMJS is still in 2.0.2.
Thanks and regards!

@dblock Can you work on this? I'm currently out of town and won't be able to do this myself.

I'll queue it up but I don't even use this library anymore ;) Maybe @mreinstein is around?

what is there to "queue"?   Just publish it?

I meant my queue for things to do this weekend ;)

published as 2.0.3


Add dconf info to front page

This adds the DConf '22 logo and relevant links to the front page.

@thewilsonator Which gets pushed to the live site? Stable?

no idea. @CyberShadow ?

No, dlang.org does not have a stable branch. Or if it does, it's completely by mistake and it should probably be deleted.

Or if it does

It does.


Global toggle for Do Not Disturb mode

If you want to set Do Not Disturb mode and you have multiple notifiers, you need to set them for each notifier. If there is a global switch for Do Not Disturb and each notifier refers to the global switch, it would be easier.

Added global Do Not Disturb mode.


HTTP 404 in bundled version for fonts after updating from 0.1.23 to 0.1.25

I tried to update to 0.1.25 but got several 404 errors for font-awesome files after bundling the code (we use aurelia).
The failed URLs were one level upper than they should be (e.g<EMAIL_ADDRESS>instead of<EMAIL_ADDRESS>

I've posted out a fix in 0.1.26. Please try this out if you can and let me know if you're still getting any issues at all here.

Yes, 0.1.26 works fine for us.
Thanks for quick fix.

Excellent, thanks for the follow-up.


custom object pass from dropdown to input

Hello I have a weird behavior
It seems like when you select an object in the dropdown, it only passes the value and the display and not the others property.
I have this code:
<tag-input [ngModel]="followers"
                          [onlyFromAutocomplete]="true"
			  [displayBy]="'fullName'"
                          [identifyBy]="'id'"
			  placeholder="+ add follower"
                          (onAdd)="onFollowerAdded($event)"
                          (onRemove)="onFollowerRemoved($event)" #input>
					<template let-item="item" let-index="index">
						<img [src]="item.picture" alt="sender profile image" class="message-avatar">
					</template>
                <tag-input-dropdown [showDropdownIfEmpty]="true"
                                    [focusFirstElement]="true"
                                    [displayBy]="'fullName'"
                                    [identifyBy]="'id'"
                                    [autocompleteItems]="users | async">
                    <template let-item="item" let-index="index">
                       <img [src]="item.picture" alt="sender profile image" class="message-avatar"> {{ item.fullName }}
                    </template>
                </tag-input-dropdown>
            </tag-input>

When I select an item on the dropdown list, the picture picture is null in my tag input template and the picture doesn't diplay. But as you can see, the picture is well displayed for other items already in the model:

Is it normal?

Please fill out the template


feat: add table sampling to ReadAPI v1

feat: add storage error codes for KMS
PiperOrigin-RevId: 534092654
Source-Link: https://github.com/googleapis/googleapis/commit/adcd87eb8cc501ba16f4df3051869c9392e9041f
Source-Link: https://github.com/googleapis/googleapis-gen/commit/53f03dcd2ae0d86832d87a530aa538b9daebf2b0

(This PR attempts to look like the OwlBot PR I'd have expected to be generated for this change...)


chore: add structured package data for math/base/special/exp

Description

What is the purpose of this pull request?

This pull request:

adds structured package data for math/base/special/exp.

Related Issues

Does this pull request have any related issues?

This pull request:

resolves a part of #1147.

Questions

Any questions for reviewers of this pull request?

No.
Other

Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.

No.
Checklist

Please ensure the following tasks are completed before submitting this pull request.

[x] Read, understood, and followed the contributing guidelines.

@stdlib-js/reviewers

LGTM. Let's do a few of these and then start experimenting with scaffolding.

Sure, I'll be on it!


Refactor and simplify, replace argparse with click, add unit tests, change some topics & TFs

This PR touches nearly all parts of the code more or less. The main changes are:

Cleaner separation of raw and odom code. Moved all raw/odom specific code out of the message creation functions. pykitti helped a lot here by abstracting away many of the small differences between the datasets.
Replaced argparse with click. Click allows the raw and odom dataset handling to be moved to separate sub-commands with different parameters, e.g. kitti2bag odom --color gray --sequence 1. Click is also more convenient to write tests against.
Added unit tests. The tests download and cache a single synced raw drive and calibrations to run tests against. Odometry dataset is somewhat faked by using camera images from the raw drive. The unit tests verify that the program runs without errors and that the output is reasonable - that expected topics exist with the correct number of messages. The tests can be run via python setup.py test or pytest in the repo root.
Made the ROS distro configurable in Dockerfile. Changed the base image to 'perception' since it contains all the required packages and the resulting full image size is nearly the same (~1.2 GB) but the Dockerfile builds much faster.
Use the Dockerfile for running tests in Travis-CI. Configured Travis to test all of the recent ROS distros (with the exception of Indigo, where the Python version is too old for some dependencies and I don't see much point in trying to support it).
Fixed a setup.py installation issue (the required packages parameter was not provoided). I think this fixes the occasional issue noted in the readme when kitti2bag is installed in non-editable mode.
The odom dataset handling was quite broken with newer pykitti versions.

I also introduced some changes to the created bags:

Adjusted the information in CameraInfo to follow the ROS conventions for it:

Set the camera TF frames to the common rectified camera frame (that is, the frame of rectified camera 0). No pose information is lost since the pose of the cameras relative to the rectified camera frame is encoded in each camera's projection matrix P. The stereo_image_proc package expects this convention to be followed, in particular.
Renamed the RGB camera topics to 'image_rect_color'.
Set the rectifying rotation matrix R to identity since the cameras are already rectified.
Do not include the distortion parameters D, since the images are already undistorted.

Renamed 'camera_gray_left' -> 'camera_gray/left', etc. so the camera topics can be used more easily with stereo_image_proc.
Changed the dynamic TF frame id from base_link to imu_link which makes more sense to me since the data describes the IMU rather than the vehicle base (related to #24, #25). Also corrected the dynamic TF frame id for odom to match the camera0 tf name used elsewhere.

I hope I'm not causing too much of a headache by modifying such a large chunk of code at once. Feel free to let me know if you don't agree with any changes or would like to see something implemented differently.

Here's a minimal launch file to demo stereo_image_proc working after the camera topic adjustments:
<launch>
  <arg name="camera" default="/kitti/camera_gray"/>
  <arg name="manager" default="disp_manager"/>

  <group ns="$(arg camera)">
    <node pkg="nodelet" type="nodelet" name="$(arg manager)" args="manager" output="screen"/>
    <node pkg="nodelet" type="nodelet" name="$(anon disparity)" output="screen"
          args="load stereo_image_proc/disparity $(arg manager)">
      <param name="approximate_sync" value="true"/>
    </node>
    <node pkg="nodelet" type="nodelet" name="$(anon point_cloud2)" output="screen"
          args="load stereo_image_proc/point_cloud2 $(arg manager)"/>
  </group>

  <node pkg="image_view" type="stereo_view" name="stereo_view" output="screen">
    <remap from="stereo" to="$(arg camera)"/>
    <remap from="image" to="image_rect"/>
    <param name="approximate_sync" value="true"/>
  </node>
</launch>

This PR looks like a great improvement. I went through the code quickly and it looks good to me. I especially like the dockerization of it as it adds a path to avoid the installation-related issues. I'm struggling a bit with why did you decide to go with the click instead of the built-in argparse as they both can do basically the same stuff but why not.
I will not be able to test the code but I'm happy to approve if somebody else says they tried and it worked. Or if you know somebody that could verify, I will add them as collaborators and they can approve that too.
Also, could you update the README.md file with examples on how to run it (preferably add an option without having to use the Docker as some guys might not be that familiar with that)?

why did you decide to go with the click instead of the built-in argparse

They are pretty similar, I agree. The main reasons why I preferred click:

The CLI can be used as a Python API as well since click defines the arguments as parameters to a function. My goal was to separate the raw and odom related code to separate functions anyway and this aligned well with click's subcommands.
Click provides a test runner, something that is lacking from argparse. This is a lot more convenient to use (the CLI output and exceptions are captured automatically, for example) and robust than the alternatives, like creating a subprocess to test the CLI.
I simply like click's API design and functionality better, personally.

I don't have any third parties to invite to review the code right now besides some colleagues, but that would not help much, I think.
I think most of the changes are fairly straightforward. The only change I'm not 100% sure about is the dynamic TF frame change from 'base_link' to 'imu_link'. I would like to reproduce the issue #11 and see if this change fixes it.
I'll update the readme later today. I think adding a changelog file would be a very good idea as well.


Limiter and Compressor filters

Description
Added Limiter and Compressor filters.
Happens that playing multiple sounds at the same time can create noise and output distortion. The limiter or the compressor filter can be used to reduce this behavior.
I think the compressor is better suited for games.
Both come with an example in the example/lib/filters dir. Both examples play the same audio at the same time to gain a high and distorted volume. The sliders are used to arrange the filter parameters and find which values are the best to use.
Type of Change

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

I tried to do the limiter filter, but I wasn't happy with the results it can have for your use case. So I've also made a compressor filter that may work better for you. I just pushed a PR but starting this I merged the websocket into this new PR and I think you will also see the other changes. Anyway, there is not much Dart code in that to review. So I think it is better first to review the websocket (wrong branch name anyway :) ) and then just try the filters PR.

Thanks for doing this! If you don't mind, I'll wait for #148 to be merged and this one to be rebased so that I can have a cleaner view of the changes here.


Yara Scanner

Name of the app
yara
Integration
Implements Yara scanning capabilities using remotely sourced/maintained rules files
About
The app can be used for scanning with Yara to accomplish tasks like malware analysis, secrets scanning, etc.
Thank you for contributing to Splunk SOAR!

repo created at: https://github.com/splunk-soar-connectors/yara


Feature/integrate sdk 2.0

Description:

Integrate 2.0.0 SDK into RTS Viewer tvOS
Core refactor and reorganisation (Removed RTSComponentKit) - Using the package RTSCore with common 2.0 SDK consumption code
Add more stream statistics
Display all available layers for selection named after their resolution or encoding id (layers are not more named as high, medium, low anymore)

Reopened here


[5.6] Add Blade::include for include aliases

This does the same as #22796, but for @includes. Useful when you have bits of html that don't have a "slot" (self-closing parts).
<input type="{{ $type ?? 'text' }}">

Blade::include('includes.input');

@input(['type' => 'email'])

How dos this behaves if I make something like Blade::include('something.include') or any other blade reserved word?

Gonna need to dig in the compiler code for an answer on that question, I think custom directives get priority.
https://github.com/laravel/framework/blob/ba3f3c05be60cd79910e42aa5293a4401a9bff80/src/Illuminate/View/Compilers/BladeCompiler.php#L322
Note that this question shouldn't really affect this PR, since you can already register any custom directive using a reserved word.

If that is the case that custom directives get priority then this should not affect anything. I was thinking about some undesirable behaviour like Blade::include('something.foreach')
@foreach('some text') and then Laravel expecting an @endforeach

Pretty cool. Would be interested to know the answer to @jmarcher's question.

Pushed some tests that confirm that behaviour.

@garygreen Push any style to the extreme and it won't be productive anymore.
Regarding your second commend, I don't really see the difference between that an the includes we already have?

I'm just thinking performance - imagine outputting hundreds of inputs on a page, each one rendering a view for that one tiny piece of HTML. Would it not make more sense to "inline" those snippets into the original compiled view, somehow?


Check relations for possible migration in VALIDATE phase

This might be difficult, since the schema of incoming tables might change. We therefore need to guarentee that the inferred schema from all tables is the desired schema, not the actual one.


[Inconsistency] Contained container offset differs by platform

Platform

Android
JavaScript

Version of SDK
latest main
Details
Contained container is offset in certain cases, but not in others. JavaScript/Android don't agree on behavior. Unclear which one is correct.
Note the presence vs. absence of offset in the "Contained container - emphasis"
v1.0/Elements/Container.Style.json:
JavaScript:

Android:

@jwoo-msft / @golddove can you guys work together to bring some of these inconsistency conversations as part of the Wed design discussions (@RebeccaAnne FYI) and start to make progress on getting these answered/resolved ?

Addressing this issue is not currently on our roadmap, so closing. Please feel free to continue the conversation in this issue for future consideration.


Types generated by platformatic client of a Record<string, array> gives an generic object as result. "additionalProperties" are omited of OpenAPI specs

Hi. Im facing some problems trying to generate the api-types.d.ts of a Record<string, array> response. But the client always generate an empty "object" as result. Im using "platformatic": "^1.32.0",
 platformatic client http://localhost:3000/documentation/json --frontend --language ts

Given this pseudo-schema:
{
"recipesGroupedByPhases": {
  "description": "Recipes grouped by phases",
  "type": "object",
  "additionalProperties": {
    "type": "array",
    "items": {
      "type": "object",
      "properties": {
        "phase": {
          ...
        }
        "header": {
          ...
        }
        "billOfMaterials": {
          ...
        }
      },
      "required": [
        "phase",
        "header",
        "billOfMaterials"
      ]
    }
  }
}

//Example value:
"recipesGroupedByPhases": {
  "someKey": [
    {
      "phase": {},
      "header": {},
      "billOfMaterials": []
    }
  ]
}

I was trying to debug and found where was the problem. I tried some workaround and it generates the types as I expected but maybe the code that I implemented needs some tweaks:
https://github.com/platformatic/platformatic/blob/954577f776502f4229f10c7290c06b0191200eba/packages/client-cli/lib/get-type.mjs#L74
// File: @platformatic>client-cli>lib>get-type.mjs>getType
// Line of code: 74
  if (typeDef.type === 'object') {
    if (!typeDef.properties || Object.keys(typeDef.properties).length === 0) {
      //===>START of the workaround
      if (typeDef.additionalProperties) {
        return `{ [key: string]: ${getType(typeDef.additionalProperties, methodType, spec)} }`
      }
      //<===END of the workaround
      // Object without properties
      return 'object'
    }
    let output = '{ '
    // TODO: add a test for objects without properties
    /* c8 ignore next 1 */
    const props = Object.keys(typeDef.properties || {}).map((prop) => {
      let required = false
      if (typeDef.required) {
        required = !!typeDef.required.includes(prop)
      }
      return `'${prop}'${required ? '' : '?'}: ${getType(typeDef.properties[prop], methodType, spec)}`
    })

Generated types without applying the workaround:
recipesGroupedByPhases: object

After the workaround:
recipesGroupedByPhases: {
        [key: string]: {
            phase: string;
            header: {
                'id': string;
                'taskListGroup': string;
                'groupCounter': string;
                'productVersion': string;
                'plant': string;
                'material': string;
            };
            billOfMaterials: Array<{
                'operationNumber': string;
                'material': string;
                'materialDetails'?: {
                    'materialID': string;
                    'descriptions': Array<{
                        'languageKey': string;
                        'language': string;
                        'text': string;
                    }>;
                };
            }>;
        }[];
    };

We can close this too. This should now be handled in the latest @platformatic/client versions 😊

cc @mcollina

Thanks @rozzilla


change admissionregistration.k8s.io api from v1beta1 to v1

/cc @osherdp
/hold
(just wanted to see how the builds are with this change)

went into dependency hell
/close


Elaborate on example cypher and related content from RTX-KG2 Kuzu database

Good that you show how to start Jupyter Lab! You might consider adding a short tutorial where you query the data, e.g. drawing their attention to a particular notebook where they can start trying queries and any setup they might need to do before running their first query. In the tutorial, you might even show a sample query, its result, and how you can do things with the result (e.g., drawing a graph of the resulting nodes).

Not necessary IMO, but you might consider giving a simple high-level overview of what Kuzu is doing, e.g. that it's creating an in-memory database on which to perform Cypher queries on the RTX-KG2 graph.

... I'd suggest having one or a few notebooks showing how to do that in detail, including getting into the schema of the dataset in the notebook. I see that you have a notebook called "example_cypher_kuzu" that shows an example query; perhaps that one could be extended to describe the data, etc. and show useful things you can do with Kuzu on the dataset?

Originally posted by @falquaddoomi in https://github.com/CU-DBMI/rtx-kg2-gateway/pull/1#discussion_r1498272151

After discussions with @falquaddoomi and @NegarJanani, adding in here: it'd be helpful to specifically show the node and relationship types without the node-pair specificity which Kuzu shows by default. Consider adding the output of this content within an adjacent markdown file for easy visibility and usage when building cypher queries.


The process kills by the system

When I use your augment.py script I have bumped into the problem. My ubuntu kills the process -)
I wrote a simple script whitch restarts main prosess. I do not cureetelly know how you can fix it, so I stay this comment here to let you know about this prablem.
Thank you for awsone tool)

Sorry for my delayed response, I have been back to GitHub.
Unfortunately, I am not maitaining this repo with a passion.
However, I welcome your contribution.
Your comment made me happy, thx.


fix warn: variable is assigned in constructor body

fix warning: Variable is assigned in constructor body. Consider performing initialization in initialization list.
Some class members were not initialized.

Always satisfying getting rid of warnings 👌


2d or 3d annotations

I noticed that you included the landmarks of some features, such as hands.I was wondering if they are in 3d or 2d. I havent downloaded the dataset yet because it would take a while and was hoping to get an answer before I started.

Hi, these are 2D, calculated from the video, with no depth estimation!
On Wed, Nov 2, 2022 at 3:14 PM Nikita Belooussov @.***>
wrote:

I noticed that you included the landmarks of some features, such as
hands.I was wondering if they are in 3d or 2d. I havent downloaded the
dataset yet because it would take a while and was hoping to get an answer
before I started.
—
Reply to this email directly, view it on GitHub
https://github.com/midusi/LSA-T/issues/6, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAMA6B6A3JBONT34XIGVKILWGKVQFANCNFSM6AAAAAARVMD6WE
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


check only modified & affected files

This is WIP.
Idea: try to determine which files needs to be checked on a file change

check all files & it's dependencies that failed before
check all files that changed & all files that were affected by this change
run a full type check when a file changed, that has global impact (e.g. a file with type definitions)

Codecov Report

Merging #28 into master will decrease coverage by 13.87%.
The diff coverage is 0%.

@@             Coverage Diff             @@
##           master      #28       +/-   ##
===========================================
- Coverage   40.11%   26.24%   -13.88%
===========================================
  Files           8        9        +1
  Lines         344      423       +79
  Branches       47       50        +3
===========================================
- Hits          138      111       -27
- Misses        206      312      +106

Impacted Files
Coverage Δ

src/util/dependencies.ts
0% <0%> (ø)

src/checker/IncrementalChecker.ts
0% <0%> (ø)
:arrow_up:

src/util/FileCache.ts
0% <0%> (ø)
:arrow_up:

src/util/Logger.ts
0% <0%> (-55%)
:arrow_down:

src/worker/TsCheckerRuntime.ts
0% <0%> (ø)
:arrow_up:

src/TsCheckerWebpackPlugin.ts
96.49% <0%> (+0.28%)
:arrow_up:

src/worker/TsCheckerWorker.ts
91.3% <0%> (+1.06%)
:arrow_up:

... and 1 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 65a4bce...84daeb5. Read the comment docs.


Package request: librime-octagram

Project description
It's octagram plugin for RIME
RIME〖八股文〗語法插件
Metadata

homepage URL: https://github.com/lotem/librime-octagram
source URL: https://github.com/lotem/librime-octagram
license: gpl3
platforms: linux

I think you can do something like this:
    nixpkgs.overlays = [
      (final: prev: {
        librime = prev.librime.override {
          plugins =
            [
              (pkgs.stdenv.mkDerivation rec {
                name = "librime-lua";
                src = inputs.librime-lua;
                version = src.rev;
                propagatedBuildInputs = with pkgs; [ lua ];
                installPhase = ''
                  mkdir -p $out
                  cp -r * $out
                '';
              })
            ];
        };
      })
    ];

but iirc I got some issues compiling octagram, so it may require some patching or version update?

Fixed by https://github.com/NixOS/nixpkgs/pull/328396


Access linked references (that aren't just images)

What's the best method to iterate over referenced content objects? This is a single page marketing lander, so it's not a "blogging" use case.
I have a "client testimonial" section (id: clientSection) that has the following:

Headline (single item)
Body (single item)
Reference field (multi-item) that points to a "testimonial" content type that has a couple of text fields and an image reference

I'm doing contentful.clientSection[0].headline and contentful.clientSection[0].body for the first two, and I tried doing:
each testimonial in contentful.clientSection[0].testimonials
        p= testimonial.testimonial
        p= testimonial.attribution

but because the testimonials are references, not directly in the clientSection object, it's not working.
Is there a way to follow reference links?

Hi @mwickett,
Please correct me if I'm misunderstanding your issue, but the attributes for your testimonials reference there would need to be accessed like testimonial.fields.testimonial, testimonial.fields.attribution etc.
roots-contentful makes calls to Contentful's API supplying the include parameter max value of 10. Which should pull the referenced links on a content type up to 10 levels deep as described in their docs on linked entries.
Unlike the top level entry object (in your case - clientSection), roots-contentful does not lift the referenced links' fields attributes up a level so we have to add [reference].fields.[field-name].
Hope this helps

Hey @elvingm,
Wow. Thank you for the detailed help, I really appreciate it.
I've got it working now and it makes a lot more sense now!
Is there a way to have roots-contentful display the results of the request? I tried running NODE_DEBUG='request' roots watch but no dice. Seeing the JSON response from Contentful would really help with templating.
Thanks again!


🐛 [Bug] Encountered bug when using Torch-TensorRT

❓ Question
Hello There,
I've tried to run torch_TensorRT on ubuntu and windows as well. On windows I compiled it with this pull request and it is working good on C++. The resulting trt_module on ubuntu is loading flawlessly on python and can be saved and loaded from disk for future use. This is not the case with Windows C++ module, the resulting trt_model on windows via C++ program is working perfectly with C++ but it is not getting loaded on python. My question is, python library is using C binaries to perform this task and resulting model is getting loaded on python, why it is not same in other case? Am I missing something?
What I have tried
Working
Compiling and Loading TRT Model On Python Ubuntu:
trt_model_fp32 = torch_tensorrt.compile(torch_script_module, truncate_long_and_double=True,
                                            inputs=[torch_tensorrt.Input((1, 3, 8, 290, 290), dtype=torch.float32)],
                                            enabled_precisions=torch.float16,
                                            workspace_size=1 << 34,
                                            require_full_compilation=True,

                                            )
torch.jit.save(trt_model_fp32, "NewTRTModel.ts")
model = torch.jit.load("NewTRTModel.ts")

Not Working
Compiling TRT Model On C++ Windows and then Loading on Python:

    const torch::Device device = torch::Device(torch::kCUDA, 0);
    torch::jit::script::Module model;

    std::cout << "Trying to load the model" << std::endl;
    try {
        model = torch::jit::load(model_path, device);
        model.to(device);
        model.eval();
    }
    catch (const c10::Error& e) {
        std::cerr << e.what() << std::endl;
    }
    auto inp = std::vector<int64_t>{ 1, 3, 8, 290, 290 };
    auto input = torch_tensorrt::Input(inp);
    auto compile_settings = torch_tensorrt::ts::CompileSpec({ input });
    compile_settings.enabled_precisions = { torch::kFloat16 };

    // Compile module
    std::cout << "Compiling..." << std::endl;
    auto trt_mod = torch_tensorrt::ts::compile(model, compile_settings);
    // Save module for later
    trt_mod.save("/NewTRTModel.ts");

#### Loading On Python:
model = torch.load("NewTRTModel.ts")
model = torch.jit.load("NewTRTModel.ts")

Error
RuntimeError                              Traceback (most recent call last)
Input In [3], in <cell line: 1>()
----> 1 model = torch.load("NewTRTModel.ts")

File ~\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\serialization.py:711, in load(f, map_location, pickle_module, **pickle_load_args)
    707             warnings.warn("'torch.load' received a zip file that looks like a TorchScript archive"
    708                           " dispatching to 'torch.jit.load' (call 'torch.jit.load' directly to"
    709                           " silence this warning)", UserWarning)
    710             opened_file.seek(orig_position)
--> 711             return torch.jit.load(opened_file)
    712         return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args)
    713 return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)

File ~\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\jit\_serialization.py:164, in load(f, map_location, _extra_files)
    162     cpp_module = torch._C.import_ir_module(cu, str(f), map_location, _extra_files)
    163 else:
--> 164     cpp_module = torch._C.import_ir_module_from_buffer(
    165         cu, f.read(), map_location, _extra_files
    166     )
    168 # TODO: Pretty sure this approach loses ConstSequential status and such
    169 return wrap_cpp_module(cpp_module)

RuntimeError:
Unknown type name '__torch__.torch.classes.tensorrt.Engine':
  File "code/__torch__/movinets/models.py", line 4
  __parameters__ = []
  __buffers__ = []
  __torch___movinets_models_MoViNet_trt_engine_ : __torch__.torch.classes.tensorrt.Engine
                                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <--- HERE
  def forward(self_1: __torch__.movinets.models.MoViNet_trt,
    input_0: Tensor) -> Tensor:

Environment
Windows 11
CPU : i9-11980HK  x86-64
GPU : RTX 3080 Mobile
Cuda : 11.5.2
Cudnn : 8.3.1
Libtorch : 1.11
Tensor_RT : <IP_ADDRESS>
Visual Studio 2019

To use Torch-TensorRT in Python without importing the Python API you can load libtorchtrt_runtime.so through torch.ops.load_library which will pull in the TorchScript interpreter extensions in order to deserialize and run compiled modules.

Hey thanks for replying, where can I find libtorchtrt_runtime.so .  I searched It in libtorch repo and torch_tenosrRT repo. Also this method will run on window right?

I got the file libtorchtrt_runtime.so  from linux source. But it's not getting loaded.
 File "D:\Codes\RetroActivity\experiments\src\exploration\action_recognition\video_play.py", line 372, in <module>     model = get_torch_tensorrt_converted_model(model_name, num_classes)   File "D:\Codes\RetroActivity\experiments\src\exploration\action_recognition\video_play.py", line 189, in get_torch_tensorrt_converted_model     torch.ops.load_library("libtorchtrt_runtime.so")   File "C:\Users\NomanAnjum\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\_ops.py", line 255, in load_library     ctypes.CDLL(path)   File "C:\Users\NomanAnjum\AppData\Local\Programs\Python\Python310\lib\ctypes\__init__.py", line 374, in __init__     self._handle = _dlopen(self._name, mode) OSError: [WinError 193] %1 is not a valid Win32 application

I got this file libtorchtrt_runtime.so from linux source. But it's not getting loaded and throwing following error
    File "\video_play.py", line 189, in get_torch_tensorrt_converted_model     torch.ops.load_library("libtorchtrt_runtime.so")   File "C:\Users\NomanAnjum\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\_ops.py", line 255, in load_library     ctypes.CDLL(path)   File "C:\Users\NomanAnjum\AppData\Local\Programs\Python\Python310\lib\ctypes\__init__.py", line 374, in __init__     self._handle = _dlopen(self._name, mode) OSError: [WinError 193] %1 is not a valid Win32 application


Document that showDialog creates new context and that setState on the calling widget therefore won't affect the dialog

If you try to have any sort of control in a SimpleDialog, it can't be updated using SetState().  This means it's impossible to have a DropdownButton in a dialog that actually updates when you select something. calling SetState() will update the page in the background instead of the SimpleDialog that is on the top of the screen.
I was just creating a simple "Add Dialog" where you'd pick the type of thing you were adding from a dropdown.  Looking at the material spec it seems like maybe I should be using a "Scrollable Content" style of dialog instead.  But it still seems odd you can't use a dropdown menu in a dialog at all.
Steps to Reproduce
String _selected;

Widget _buildDialog() {
  return new SimpleDialog(
    title: new Text("New Dialog"),
    children: <Widget>[
      new Container(
          padding: const EdgeInsets.all(10.0),
          child: new DropdownButton<int>(
            hint: const Text("Pick a thing"),
            value: _selectedId,
            onChanged: (String value) {
              setState(() {
                _selected = value;
              });
            },
            items: <String>['One', 'Two', 'Free', 'Four'].map((String value) {
              return new DropdownMenuItem<String>(
                value: value,
                child: new Text(value),
              );
            }).toList(),
          )),
    ],
  );
}

@override
  Widget build(BuildContext context) {
    return new Scaffold(
        appBar: new AppBar(
          title: const Text("Test"),
        ),
        body: new ListView(padding: const EdgeInsets.all(32.0), children: [
          new Container(
              padding: const EdgeInsets.all(10.0),
              child: new DropdownButton<int>(
                hint: const Text("Pick a thing"),
                value: _selectedId,
                onChanged: (String value) {
                  setState(() {
                    _selected = value;
                  });
                },
                items: <String>['One', 'Two', 'Free', 'Four'].map((String value) {
                  return new DropdownMenuItem<String>(
                    value: value,
                    child: new Text(value),
                  );
                }).toList(),
              )),
        ]),
        floatingActionButton: new FloatingActionButton(
                child: new Icon(Icons.add),
                tooltip: "New Dialog",
                onPressed: () {
                  showDialog(context: context, child: _buildDialog());
                },
              ));
  }

Click the FAB button and then change the selection in the dropdown.  The background one will update but not the foreground one.
Logs
Nothing in the logs
Flutter Doctor
[√] Flutter (Channel master, v0.1.8-pre.31, on Microsoft Windows [Version 10.0.17025.1000], locale en-US)
    • Flutter version 0.1.8-pre.31 at C:\git\flutter
    • Framework revision a1d2443e7b (4 days ago), 2018-03-01 16:25:21 -0800
    • Engine revision 269bab73b6
    • Dart version 2.0.0-dev.31.0.flutter-1aaebedd70

[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at C:\Users\Rory\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-27, build-tools 27.0.3
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
    • All Android licenses accepted.

[√] Android Studio (version 3.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)

[√] VS Code, 64-bit edition (version 1.20.1)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Dart Code extension version 2.9.2

[√] Connected devices (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator)

• No issues found!

I realized I was using the master branch of Flutter from trying to help with the --preview-dart-2 hot-reload crash, so I switched back to the dev channel and dart 1.  Issue is still present

Hi @rfuhrer,  It looks like there are a few typos in your code - when I fix them the widget works as you said it should.
Specifically:

Your bottom build() method is referencing the field _selectedId, but the field is actually called _selected.
Should be DropdownButton<String> and not DropdownButton<int>.

I put the fixed code in a gist below:
https://gist.github.com/jonahwilliams/aa1e111650f5ce39ba75d8a3edfed217
If you fix these issues and the problem persists please let me know.

Ahh sorry. My actual code was more complicated so I tried to just boil it down to the bare essentials inside GitHub instead of in the IDE.
The problem isn't that the dropdown doesn't work, the problem is it doesn't work inside the simple dialog. Hit the FAB to open a dialog that has the same dropdown in it and then try to change that dropdown. The dropdown in the background should update but the one in the foreground will stay blank or whatever you selected before opening the dialog

You can put a breakpoint inside the _buildDialog() method and it will never get it except for when it's first built.  So SetState() doesn't seem to trigger a rebuild of any dialogs, and maybe that makes sense.  But maybe we need a SetDialogState() method or something to tell it to rebuild this pop-over

Okay, I see what you mean. See this example code for the solution:
https://gist.github.com/jonahwilliams/25fa99b6b73fdcbd58ac85585343bbd0
I'm not very familiar with simple dialog, but you are right that setState in your widget doesn't cause the dialog widget to be rebuilt.  The solution is to make your dialog a StatefulWidget, and pass it a callback to update the parent state.

Looks like simply making the dialog be constructed inside a separate stateful widget is enough to get it working the way I was hoping.  In my real code I didn't actually have an identical dropdown in the main view and inside the dialog, I just stumbled upon that when I copy/pasted my dropdown outside if the dialog to make sure I wasn't just screwing up the setup of the dropdown.  That's where I noticed that changing the drop down in the dialog would cause the one in the main view to update and not the one in the dialog.
Here's a more realistic version of what I was trying to do that actually works: https://gist.github.com/rfuhrer/85f2c66ff82e9a8037c0d8e3f6b38526
For anyone else who stumbles upon this, here's what's happening:

SetState() will rebuild the view of whatever stateful widget "owns" that function
If you follow the example in https://docs.flutter.io/flutter/material/SimpleDialog-class.html then you're not creating a separate state for that dialog.  This means if you do try to change something (and call SetState()) in the dialog after it's been rendered, it will actually update the state of the parent since that's the stateful widget that "owns" SetState(), even if you call SetState() inside a callback in the SimpleDialog
By creating a new StatefulWidget that builds your SimpleDialog, you're now giving it it's own SetState() that will cause the Dialog to be rebuilt rather than the parent StatefulWidget.

I'm not sure if maybe something can be done to the documentation to alert the noobs like myself that calling showDialog() doesn't magically create state, or if maybe issues like this popping up in google searches is enough. It all makes sense to me now, but at the time I just could not figure what I was doing wrong and there wasn't many examples of showing anything in a dialog more than a simple yes/no button.
Feel free to close this issue unless you want to use it to track some updates.

Adding more documentation to this effect seems reasonable.

Fixed by #15303

I've just run into this issue and I'm not sure exactly how to solve it. The documentation for showDialog says:
 Use a StatefulBuilder or a custom StatefulWidget if the dialog needs to update dynamically.
Is there any example how StatefulBuilder supposed to be used? I haven't seen any. This is what I tried, it didn't change anything, probably doesn't make sense:
showDialog(
      context: context,
      builder: (ctx) {
        return StatefulBuilder(
          builder: (ctx, setState) {
            return DocumentDialog(
              document: doc,
              onFav: handleDocumentFavPressed,
              onClose: () => Navigator.of(context).pop(),
            );
          },
        );
      },
    );

setState on parent does not update the dialog. I am trying to implement video_player and the full screen player will be inside a custom dialog. When the video is loading the thumbnail is shown inside a rotated widget in a dialog to mimic full screen on landscape The video size is calculated after video initialised and if it is found that video is actually a vertical video (should be played in portrait) the rotation and new video size for vertical video is used through setState but the dialog is not updating and video was played in size of thumbnail and portrait.

setState on parent does not update the dialog. I am trying to implement video_player and the full screen player will be inside a custom dialog. When the video is loading the thumbnail is shown inside a rotated widget in a dialog to mimic full screen on landscape The video size is calculated after video initialised and if it is found that video is actually a vertical video (should be played in portrait) the rotation and new video size for vertical video is used through setState but the dialog is not updating and video was played in size of thumbnail and portrait.

I had a similar issue but mine had to do with a list of checkboxes not being checked on tapping. After scouring StackOverflow looking for solutions I landed here and then got the StatefulBuilder idea. I solved it by wrapping the returned widget in a StatefulBuilder:
class _SamplePageState extends State<SamplePage> {

  List<int> selectedOptions = [];

  @override
  void initState() {
    super.initState();
  }
  Future _showOptions() async {
    //List<int> selectedOptions = [];
    await showDialog(
      context: context,
      barrierDismissible: false,
      builder: (BuildContext context) {
        // here we use a nested StatefulWidget builder so that the dialog can
        // micromanage it's own state
        return StatefulBuilder(
          builder: (context, setState) {
            return FutureBuilder <OptionsList>(
              future: fetchOptions(), // the list of options to choose from is called from a remote API
              builder: (context, snapshot) {
                if (snapshot.hasData) {
                  var items = snapshot.data.items;
                  List <Widget> options = [];
                  items.forEach((item){
                    CheckboxListTile option = CheckboxListTile(
                      value: selectedOptions.contains(item.id),
                      title: Text(item.title),
                      onChanged: (value) {
                        setState((){
                          if(value){
                            selectedOptions.add(item.id);
                          }else{
                            selectedOptions.remove(item.id);
                          }
                          print(selectedOptions);
                        });
                      },
                    );
                    options.add(option);
                  }); //endforEach
                  return new SimpleDialog(
                    title: new Text('Select Some Options'),
                    children: options,
                  );
                }
                else if (snapshot.hasError) {
                  return Text("${snapshot.error}");
                }
                // show spinner while future is fetching data
                return Dialog(
                  child: new Center(
                    widthFactor: 10.0,
                    heightFactor: 10.0,
                    child: new SizedBox(
                      width: 20.0,
                      height: 20.0,
                      child: const CircularProgressIndicator(
                        value: null,
                        strokeWidth: 2.0,
                      ),
                    ),
                  ),
                );
              },
            );
          },
        );

      }
    );
  }
  @override
  Widget build (BuildContext context) {
    return new Scaffold(
      // more code here
    );
  }
}

I hope you can get some ideas from that snippet on how to go about solving your problem.

setState on parent does not update the dialog. I am trying to implement video_player and the full screen player will be inside a custom dialog. When the video is loading the thumbnail is shown inside a rotated widget in a dialog to mimic full screen on landscape The video size is calculated after video initialised and if it is found that video is actually a vertical video (should be played in portrait) the rotation and new video size for vertical video is used through setState but the dialog is not updating and video was played in size of thumbnail and portrait.

I had a similar issue but mine had to do with a list of checkboxes not being checked on tapping. After scouring StackOverflow looking for solutions I landed here and then got the StatefulBuilder idea. I solved it by wrapping the returned widget in a StatefulBuilder:
class _SamplePageState extends State<SamplePage> {

  List<int> selectedOptions = [];

  @override
  void initState() {
    super.initState();
  }
  Future _showOptions() async {
    //List<int> selectedOptions = [];
    await showDialog(
      context: context,
      barrierDismissible: false,
      builder: (BuildContext context) {
        // here we use a nested StatefulWidget builder so that the dialog can
        // micromanage it's own state
        return StatefulBuilder(
          builder: (context, setState) {
            return FutureBuilder <OptionsList>(
              future: fetchOptions(), // the list of options to choose from is called from a remote API
              builder: (context, snapshot) {
                if (snapshot.hasData) {
                  var items = snapshot.data.items;
                  List <Widget> options = [];
                  items.forEach((item){
                    CheckboxListTile option = CheckboxListTile(
                      value: selectedOptions.contains(item.id),
                      title: Text(item.title),
                      onChanged: (value) {
                        setState((){
                          if(value){
                            selectedOptions.add(item.id);
                          }else{
                            selectedOptions.remove(item.id);
                          }
                          print(selectedOptions);
                        });
                      },
                    );
                    options.add(option);
                  }); //endforEach
                  return new SimpleDialog(
                    title: new Text('Select Some Options'),
                    children: options,
                  );
                }
                else if (snapshot.hasError) {
                  return Text("${snapshot.error}");
                }
                // show spinner while future is fetching data
                return Dialog(
                  child: new Center(
                    widthFactor: 10.0,
                    heightFactor: 10.0,
                    child: new SizedBox(
                      width: 20.0,
                      height: 20.0,
                      child: const CircularProgressIndicator(
                        value: null,
                        strokeWidth: 2.0,
                      ),
                    ),
                  ),
                );
              },
            );
          },
        );

      }
    );
  }
  @override
  Widget build (BuildContext context) {
    return new Scaffold(
      // more code here
    );
  }
}

I hope you can get some ideas from that snippet on how to go about solving your problem.

@emuthomi Could you share fetchOptions () implementation. Does it uses setState inside?
I want to display such complex alert with network fetched options but can't find a way to setState rebuilding the alert again from fetchOptions().
I have asked the question on stackoverflow

@emuthomi Could you share fetchOptions () implementation. Does it uses setState inside?
I want to display such complex alert with network fetched options but can't find a way to setState rebuilding the alert again from fetchOptions().
I have asked the question on stackoverflow

It is just a simple Future
Future<OptionsList> fetchOptions() async {
  var url = API_URL + '/services';
  final response = await http.get(url);
  if (response.statusCode == 200) {
    return OptionsList.fromJson(json.decode(response.body));
  }
  else {
    return new OptionsList();
  }
}


How to compile arm64-v8a flatbuffers  ?

I used below command to build armnn with Tflite on Ubuntu 16.04,
 CXX=aarch64-linux-android-clang++ \
 CC=aarch64-linux-android-clang \
 CXX_FLAGS="-fPIE -fPIC" \
 cmake .. \
  -DCMAKE_SYSTEM_NAME=Android \
  -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a \
  -DCMAKE_ANDROID_STANDALONE_TOOLCHAIN=$HOME/armnn-devenv/toolchains/aarch64-android-r17b/ \
  -DCMAKE_EXE_LINKER_FLAGS="-pie -llog" \
  -DARMCOMPUTE_ROOT=$HOME/armnn-devenv/ComputeLibrary/ \
  -DARMCOMPUTE_BUILD_DIR=$HOME/armnn-devenv/ComputeLibrary/build \
  -DBOOST_ROOT=$HOME/armnn-devenv/boost/install/ \
  -DBUILD_TESTS=1 \
  -DTF_LITE_GENERATED_PATH=$HOME/armnn-devenv/google/tensorflow/tensorflow/lite/schema \
  -DBUILD_TF_LITE_PARSER=1 \
  -DFLATBUFFERS_ROOT=$HOME/armnn-devenv/google/flatbuffers \
  -DFLATBUFFERS_LIBRARY=$HOME/armnn-devenv/google/flatbuffers/host_build/libflatbuffers.a \
  -DARMCOMPUTENEON=1 -DARMCOMPUTECL=1 \
  -DTF_GENERATED_SOURCES=$HOME/armnn-devenv/google/tf_pb/ -DBUILD_TF_PARSER=1 \
  -DPROTOBUF_ROOT=$HOME/armnn-devenv/google/arm64_pb_install/

But while compiling armnn I had an error:
/home/apuser/armnn-devenv/toolchains/aarch64-android-r17b/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: /home/apuser/armnn-devenv/google/flatbuffers/host_build/libflatbuffers.a(idl_parser.cpp.o): Relocations in generic ELF (EM: 62)
/home/apuser/armnn-devenv/toolchains/aarch64-android-r17b/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: /home/apuser/armnn-devenv/google/flatbuffers/host_build/libflatbuffers.a(idl_parser.cpp.o): Relocations in generic ELF (EM: 62)
/home/apuser/armnn-devenv/google/flatbuffers/host_build/libflatbuffers.a: error adding symbols: File in wrong format
clang60++: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [UnitTests] Error 1
make[1]: *** [CMakeFiles/UnitTests.dir/all] Error 2
make: *** [all] Error 2

In my case, /home/apuser/armnn-devenv/google/flatbuffers/host_build/libflatbuffers have been built for the host,  I think it's wrong here. But, I don't know how to compile flatbuffers for arm64 ?
can you help me ?
Thanks !

@WenguoLi hi, have you solve this problems? Could you please kindly to provides your solution for us? Thanks.

@WenguoLi Please refer #83. I've updated the steps.


(PUP-4776) Make 'puppet agent arg' error instead of silently running the catalog

Currently, 'puppet agent' only analyses options beginning with '--', such as '--test' and
'--disable'.  Any other words after agent are ignored.  That is different from the way that
commands like 'puppet resource' and 'puppet apply' work, mainly because those require
an argument, while 'puppet agent' does not.  This has led to, for instance, one of our new
sysadmins typing 'puppet agent disable' instead of 'puppet agent --disable' and being
terribly surprised when about 5 minutes later the server died.
This patch raises an error if someone on the CLI tries to invoke 'puppet agent' with what
has to be an invalid argument.

CLA signed by all contributors.

@peculater thank you for your contribution! The rdoc appveyor failures are unrelated and can be ignored. We'll take a look at this before next week's PR triage on June 30th.

@kylog is this considered a breaking change?  Before puppet agent foo (note: not --foo as options are handled differently) would merrily go on its way, but now we'll error on startup.  My only concern is people that run puppet agent from cron or something that have typos in the command line.

IMHO this is not a breaking change in the semver sense, i.e. there isn't an established contract that we are changing here. This is just a good old-fashioned bug fix :)

Hi @peculater.  I just wanted to check-in to see if you saw my feedback above.  Generally this looks good and we should be able to merge this with the recommended changes applied.  Thanks!

Hi @peculater.  Thanks for pushing up the changes.    I have a preference for squashing, but it either way works for us.  Thanks again for your contribution!

OK, I think that squashed correctly.  :-)

:+1: will merge after CI passes.

@peculater Thanks again for the contribution!  This has been merged into the upcoming Puppet 4.3.0 release.


Can I use Amplify as a replacement for S3/CloudFront?

Just a quick question about Amplify. I managed to get it 90% working in about 5 minutes of work, but the Axios calls in my Nuxt app aren't being made.
Am I forced to use the Amplify API, or should Axios work as usual? I'm hoping to use Amplify as a simple replacement for S3/CloudFront, because it's been a very fast way to setup a CD pipeline for my frontend. But I already have my own API calls and auth solution.
My API is handled with CloudFormation on an EC2 instance if that matters.

Your API calls should work. What error are you getting?

You're right, it was an issue with the proxy I had set up.


Add signature typing to curation.py

Whilst I was trying to understand the code I added typing to function/method signatures here, along with a few new docstrings.

Codecov Report

Merging #101 (7cb150e) into main (b3cfd2d) will decrease coverage by 0.05%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #101      +/-   ##
==========================================
- Coverage   27.16%   27.11%   -0.06%
==========================================
  Files          11       11
  Lines         530      531       +1
==========================================
  Hits          144      144
- Misses        386      387       +1

Impacted Files
Coverage Δ

cellfinder_napari/curation.py
0.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 b3cfd2d...7cb150e. Read the comment docs.


add: standardized module testsuites

Codecov Report

Merging #24 (d7a5cd5) into master (0d8dab2) will not change coverage.
The diff coverage is n/a.

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

@@            Coverage Diff            @@
##             master      #24   +/-   ##
=========================================
  Coverage     42.25%   42.25%
  Complexity       49       49
=========================================
  Files             5        5
  Lines           239      239
=========================================
  Hits            101      101
  Misses          138      138

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 0d8dab2...ac074ca. Read the comment docs.