Place Talon and Python files side-by-side

Opening this pull request to have a working example for discussion about #669.
My attempt with this restructuring is to only focus on renaming files, to ease future merges.
I've not updated any of the imports or file paths, as I mostly intend for this to fuel discussion.
My rationale for organizing is:

apps: concrete commands for an application
core: concrete commands and actions that are always available and any other code can depend on
lang: concrete commands for a programming language
tags: concrete commands with some abstract actions, activated with a tag
plugins: a self-contained set of commands not linked to any application or programming language but whose actions probably should not be depended upon

My aim with grouping each pair of Python and Talon files in their own subdirectory is (1) to make it extremely clear which files belong together, and (2) to encourage some modularisation. As a bonus, these subdirectories can contain a README.md, which can really help someone browsing the repository on GitHub.

The pull request creates a temporary directory, core/misc, which contains code that either should be pried apart...

tags.py creates a list of tags which should be inlined into their respective files
application_matches.py creates a list of application matches which should be inlined into their respective files
...or contains general actions, which it very least could do with some documentation as to where they are used...
delayed_speech_off.py defines delayed_speech_on and delayed_speech_off
engine.py defines an alias for speech_system.engine_mimic as well as shortcuts for "go to sleep" and "wake up"
system_command.py defines aliases for os.system and subprocess.Popen

Further changes, that should perhaps be made in a separate pull request, would be to pry apart the implementations of the built in Talon name spaces windows and tabs, which are deeply intertwined with each other as well as with window snapping.

One further change that should be considered for this pull request is to flatten...
apps/platforms/PLATFORM/APP/APP.{py,talon}

...to simply...
apps/APP/APP_PLATFORM.{py,talon}

It makes sense to want to separate out apps that are a core part of an OS, such as Windows Explorer or Nautilus, and these apps should perhaps be tagged with their OS.
However, a lot of the apps in these folders could run on different systems, but simply don't have a Talon implementation for other systems, e.g., tmux or keepassx.
Furthermore, a lot of the apps at the top level are portable but do not implement support for all OSes, e.g., eclipse.
It honestly might make more sense to group some apps by the main tag they implement, e.g., apps/browser, apps/editor, apps/file_manager, apps/terminal, apps/reader, etc.

After looking at this in more detail, I mostly like it but have quibbles with how nested some things are and the organization of things in core/. Things I'd like changed:

This isn't something you've introduced, but I'd like to reduce nesting in apps/platforms/PLATFORM/APP/ by, as you suggest, flattening to just apps/APP/. We already did this (by accident?) with apps/windbg/. We may need to rename some apps with overly generic names, eg apps/platforms/mac/notes -> apps/apple_notes. I don't think we particularly need to group apps by their main tag or function.

Flatten core/app_switcher/app_names/ into core/app_switcher/.

core/history/ combines the command and phrase histories; do these really belong together? I think the phrase history either belongs on its own or with formatters.

I'd prefer if all subdirectories of core/modes/ were removed and it was entirely flat.

In particular, core/modes/dictation_mode/dictation_mode.py (formerly code/dictation.py) isn't really the implementation of dictation-mode. It implements (a) the various text captures (<user.word>, <user.text>, <user.prose>); (b) prose auto-formatting; (c) context-sensitive dictation. It should be renamed; maybe text_and_dictation.py? Other suggestions welcome.

Arguably vocabulary.py, formatters.{py,talon}, and text_and_dictation.py belong together; they're the "text input module". The phrase history either belongs in this module or it could be its own. vocabulary.talon and the corresponding functions in vocabulary.py could perhaps be split off into their own module.
The most extreme and simple approach to these "where do things in core belong" difficulties is to completely flatten core/**/ into core/, regarding it as just one big pile of stuff. How would you feel about that?

I think that I agree with all of the changes that you've suggested, though for this pull request I believe we should stick as much as possible to renaming files, and not editing their content, for ease of future merges.
Would you be happy to make the changes that you have suggested and push them to this branch?

Okay, I've updated the branch with my suggested changes.
Along the way, I noticed the core/plugin distinction is a bit unclear. Supposedly plugins aren't to be depended on, but mouse_grid defines a tag used in core/numbers/numbers.talon. (And in future we might want talon_draft_window to depend on draft_editor, I think?) And lots of stuff in core/ is self-contained and not depended on by anything else: talon_helpers, text_navigation, macro, the command history, repeater.talon...
We could either:

Keep as-is, maybe there's some reason I'm not seeing.

Collapse the distinction. What should we call the remaining directory? core? misc? modules? code?

Treat lots more stuff as plugins -- anything not depended on by something else, and that doesn't define actions, captures, tags, etc intended for use outside of itself. I've made a branch with this additional change applied: https://github.com/wenkokke/knausj_talon/compare/issue669...knausj85:knausj_talon:more-plugins?expand=1

Treat lots more stuff as plugins -- anything not depended on by something else, and that doesn't define actions, captures, tags, etc intended for use outside of itself. I've made a branch with this additional change applied: https://github.com/knausj85/knausj_talon/tree/more-plugins (comparison with this PR: https://github.com/wenkokke/knausj_talon/compare/issue669...knausj85:knausj_talon:more-plugins?expand=1)

That seems like the way to go! I didn't notice these :)

ok, I've made more things plugins (and also made mouse_grid not a plugin since numbers depends on it)

Checklist:

[ ] Merge/rebase on main to fix merge conflict.
[ ] Get the test suite working.
[ ] Get other maintainers to sign off on this major reorg.

This PR appears to just plain delete some files:

eye_tracking_settings.py
settings.talon
shared_settings_module.py

What's up with that?

We had a big discussion about this on the knausj maintenance meeting today. Everyone is on board with the general direction, we did some bikeshedding about how things should be organized. Small changes:

Apps which are platform-specific (eg Finder, Apple Notes) don't get a platform suffix on their .talon or .py file names.
We flattened apps/web/* into apps/. Some apps (eg outlook, in principle github) have both desktop and web versions, we're going to group those together as one directory.
We flattened core/misc/ into core/, as well as core/app_running/app_running.py because people felt it didn't need a directory all to itself.

Some changes we'll want to investigate post-merge (or pre-merge on main): a bunch of apps are probably overly platform-specific:
apps/signal/signal_linux: probably works on both linux and windows
apps/taskwarrior/taskwarrior_linux: should work anywhere taskwarrior tag is used
apps/keepassx/keepassx_linux.talon: probably linux+windows?
apps/termite/termite_linux.talon: probably linux-specific but has no 'os: linux' header
apps/tmux/tmux.talon: lose the 'os: linux'

Apps which are platform-specific (eg Finder, Apple Notes) don't get a platform suffix on their .talon or .py file names.

One thing to discuss might be how to deal with platform specific apps with very generic names, e.g., Apple vs Gnome vs Windows Terminal, or more generally apps which have non-unique names.

We flattened core/misc/ into core/, as well as core/app_running/app_running.py because people felt it didn't need a directory all to itself.

My main reason for making core/misc was as a directory for things which should probably be split up and merged into other things post-merge, where app_running in general probably should be merged into switcher.

Ok I made an attempt to restore the deleted files in https://github.com/knausj85/knausj_talon/pull/897/commits/6e5e705622606824696789dea7d784b0e4128769
I tried running this PR locally, and got the following errors:
2022-09-14 13:03:35 ERROR user.knausj_talon.core.create_spoken_forms (/Users/pokey/.talon/user/knausj_talon/core/create_spoken_forms.py) import failed
   13:                    lib/python3.9/threading.py:937* # loader thread
   12:                    lib/python3.9/threading.py:980*
   11:                    lib/python3.9/threading.py:917*
   10:                       app/resources/loader.py:894|
    9:                       app/resources/loader.py:830|
    8:                       app/resources/loader.py:648|
    7:                       app/resources/loader.py:684|
    6:                       app/resources/loader.py:738|
    5:                       app/resources/loader.py:432| # [stack splice]
    4:           lib/python3.9/importlib/__init__.py:127|
    3:                       app/resources/loader.py:253|
    2:                       app/resources/loader.py:248|
    1: user/knausj_talon/core/create_spoken_forms.py:9  | from .abbreviate import abbreviations
ImportError: cannot import name 'abbreviations' from 'user.knausj_talon.core.abbreviate' (unknown location)

2022-09-14 13:03:35 ERROR user.knausj_talon.core.file_extension.file_extension (/Users/pokey/.talon/user/knausj_talon/core/file_extension/file_extension.py) import failed
   14:                              lib/python3.9/threading.py:937* # loader thread
   13:                              lib/python3.9/threading.py:980*
   12:                              lib/python3.9/threading.py:917*
   11:                                 app/resources/loader.py:894|
   10:                                 app/resources/loader.py:830|
    9:                                 app/resources/loader.py:648|
    8:                                 app/resources/loader.py:684|
    7:                                 app/resources/loader.py:738|
    6:                                 app/resources/loader.py:432| # [stack splice]
    5:                     lib/python3.9/importlib/__init__.py:127|
    4:                                 app/resources/loader.py:253|
    3:                                 app/resources/loader.py:248|
    2: user/knausj_talon/core/file_extension/file_extension.py:3  | from .user_settings import get_list_fr..
    1:                                 app/resources/loader.py:366|
ModuleNotFoundError: No module named 'user.knausj_talon.core.file_extension.user_settings'

2022-09-14 13:03:35 ERROR user.knausj_talon.core.vocabulary.vocabulary (/Users/pokey/.talon/user/knausj_talon/core/vocabulary/vocabulary.py) import failed
   14:                      lib/python3.9/threading.py:937* # loader thread
   13:                      lib/python3.9/threading.py:980*
   12:                      lib/python3.9/threading.py:917*
   11:                         app/resources/loader.py:894|
   10:                         app/resources/loader.py:830|
    9:                         app/resources/loader.py:648|
    8:                         app/resources/loader.py:684|
    7:                         app/resources/loader.py:738|
    6:                         app/resources/loader.py:432| # [stack splice]
    5:             lib/python3.9/importlib/__init__.py:127|
    4:                         app/resources/loader.py:253|
    3:                         app/resources/loader.py:248|
    2: user/knausj_talon/core/vocabulary/vocabulary.py:8  | from .user_settings import append_to_c..
    1:                         app/resources/loader.py:366|
ModuleNotFoundError: No module named 'user.knausj_talon.core.vocabulary.user_settings'

2022-09-14 13:03:35 ERROR user.knausj_talon.core.websites_and_search_engines.websites_and_search_engines (/Users/pokey/.talon/user/knausj_talon/core/websites_and_search_engines/websites_and_search_engines.py) import failed
   14:                                                        lib/python3.9/threading.py:937* # loader thread
   13:                                                        lib/python3.9/threading.py:980*
   12:                                                        lib/python3.9/threading.py:917*
   11:                                                           app/resources/loader.py:894|
   10:                                                           app/resources/loader.py:830|
    9:                                                           app/resources/loader.py:648|
    8:                                                           app/resources/loader.py:684|
    7:                                                           app/resources/loader.py:738|
    6:                                                           app/resources/loader.py:432| # [stack splice]
    5:                                               lib/python3.9/importlib/__init__.py:127|
    4:                                                           app/resources/loader.py:253|
    3:                                                           app/resources/loader.py:248|
    2: user/knausj_talon/core/websites_and_search_engines/websites_and_search_engines.py:6  | from .user_settings import get_list_fr..
    1:                                                           app/resources/loader.py:366|
ModuleNotFoundError: No module named 'user.knausj_talon.core.websites_and_search_engines.user_settings'

2022-09-14 13:03:39 ERROR cb error topic="ready" cb=on_ready
   13:                          lib/python3.9/threading.py:937* # loader thread
   12:                          lib/python3.9/threading.py:980*
   11:                          lib/python3.9/threading.py:917*
   10:                             app/resources/loader.py:894|
    9:                             app/resources/loader.py:844|
    8: -------------------------------------------------------# [stack splice]
    7:                         talon/scripting/dispatch.py:134| # 'ready' user.knausj_talon.core.app_switcher.app_switcher:on_ready()
    6: user/knausj_talon/core/app_switcher/app_switcher.py:356| update_overrides(None, None)
    5: user/knausj_talon/core/app_switcher/app_switcher.py:226| update_running_list()
    4: user/knausj_talon/core/app_switcher/app_switcher.py:192| running = actions.user.create_spoken_f..
    3:                          talon/scripting/actions.py:62 |
    2:                          talon/scripting/actions.py:156|
    1:                          talon/scripting/actions.py:152|
KeyError: "Action 'user.create_spoken_forms_from_list' is not declared."

2022-09-14 13:03:39 ERROR cb error topic="ready" cb=on_ready
   12:            lib/python3.9/threading.py:937* # loader thread
   11:            lib/python3.9/threading.py:980*
   10:            lib/python3.9/threading.py:917*
    9:               app/resources/loader.py:894|
    8:               app/resources/loader.py:844|
    7: -----------------------------------------# [stack splice]
    6:           talon/scripting/dispatch.py:134| # 'ready' user.knausj_talon.lang.talon.talon:on_ready()
    5: user/knausj_talon/lang/talon/talon.py:69 | on_update_decls(registry.decls)
    4: user/knausj_talon/lang/talon/talon.py:59 | ] = actions.user.create_spoken_forms_f..
    3:            talon/scripting/actions.py:62 |
    2:            talon/scripting/actions.py:156|
    1:            talon/scripting/actions.py:152|
KeyError: "Action 'user.create_spoken_forms_from_list' is not declared."

I never updated any imports, as the PR was originally only intended to get the idea across. I’ll have a look at that now.

Possibly, but that seems outside the scope of this PR; I'd rather just
leave it in the root directory for now.

I think it's probably worth us maintainers dogfooding this for a week before merging it into main, just to see if any unexpected issues crop up. I'll start this weekend or sooner.

I think it's probably worth us maintainers dogfooding this for a week before merging it into main, just to see if any unexpected issues crop up. I'll start this weekend or sooner.

Are you comfortable enough with stock knausj to use as a daily driver? Or were you planning to merge into your branch and dog food it that way? Tbh I don't know stock knausj well enough to comfortably use it for more than quick tests

I meant merge it into our branches. That's what anyone with significant
modifications is going to have to do after all.

Ok just merged; was a little more painful than I was hoping, because I guess I've added / removed a couple files, but not tooo terrible.  So far so good; will report back if anything seems odd over the next few days.  Also confirmed that on my branch nothing unexpected was deleted; all just renames


Nappy API is failing on requests near the end of the page limit

Airflow log link

https://airflow.openverse.engineering/log?execution_date=2023-02-01T00%3A00%3A00%2B00%3A00&task_id=ingest_data.pull_image_data&dag_id=nappy_workflow&map_index=-1

Note: Airflow is currently only accessible to maintainers & those given
access. If you would like access to Airflow, please reach out to a member of
@WordPress/openverse-maintainers.

Description

Requests to the API near the end of the dataset appear to be returning a 500. On creation of this ticket, there were 2160 items. Examples (at different page sizes):
https://api.nappy.co/v1/openverse/images?page=21&per_page=100 (Supposed to be the last 100 results)
https://api.nappy.co/v1/openverse/images?page=216 (supposed to be the last 10 results with default page size of 10)
This appears to be the last successful page I can reach on the default page size: https://api.nappy.co/v1/openverse/images?page=206 (https://api.nappy.co/v1/openverse/images?page=207 fails).
I will also reach out to Nappy via email regarding this issue to bring it to their attention.

Reproduction

(see above, this is deterministic)
DAG status

Since most data successfully gets pulled and loaded, we can leave this one running. However, we'll add a alert silencing clause for this issue since this is a known error.

I just clicked through on the links in the issue and didn’t get any 500 errors, but a) I didn’t test with python just firefox, and b) I didn’t really check for the data itself, just looked at the record counts which seemed to match what the issue said they should be.
That said, https://api.nappy.co/v1/openverse/images?page=23 just repeats the same data from https://api.nappy.co/v1/openverse/images?page=22 without any kind of special message, so if that’s the plan going forward, we should probably turn off the dag until we can modify NappyDataIngester.get_should_continue right? https://github.com/WordPress/openverse-catalog/blob/bbb8d97b23aea25df3edb716065a91[…]/openverse_catalog/dags/providers/provider_api_scripts/nappy.py

We generally leave DAGs enabled if they are still consuming partial data. It looks like we're still getting a few thousand records before the error is hit. I see what you mean though, it looks like that should cause the DAG to iterate over duplicates until it times out, but it doesn't seem like that's happening.
Weirdly, the DAG works just fine locally for me. No 500s, get_should_continue correctly identifies the stopping point. Can anyone else reproduce this locally?

Oh I didn't think to try this locally, I also mentioned on the make WP Slack that we use page_size=100 - I am seeing that if you request pages after the total page count (23 at the time of writing) it just gives you back the results from the last page e.g. https://api.nappy.co/v1/openverse/images?page=25&per_page=100
That would seem to imply that it would run on until timeout as Staci mentions, but odd that we can't reproduce locally! I'll try this as well.

Oh I got it! The next_page parameter is missing from the final page, which we already check here: https://github.com/WordPress/openverse-catalog/blob/af205795b412da9f3d0d7f6d7e066b7d039b1763/openverse_catalog/dags/providers/provider_api_scripts/nappy.py#L52
So this should actually be fixed now!


[SPARK-43404][SS][3.4] Skip reusing sst file for same version of RocksDB state store to avoid id mismatch error

NOTE: This ports back the commit https://github.com/apache/spark/commit/d3b9f4e7b1be7d89466cf80c3e38890c7add7625 (PR https://github.com/apache/spark/pull/41089) to branch-3.4. This is a clean cherry-pick.
What changes were proposed in this pull request?
Skip reusing sst file for same version of RocksDB state store to avoid id mismatch error
Why are the changes needed?
In case of task retry on the same executor, its possible that the original task completed the phase of creating the SST files and uploading them to the object store. In this case, we also might have added an entry to the in-memory map for versionToRocksDBFiles for the given version. When the retry task creates the local checkpoint, its possible the file name and size is the same, but the metadata ID embedded within the file may be different. So, when we try to load this version on successful commit, the metadata zip file points to the old SST file which results in a RocksDB mismatch id error.
Mismatch in unique ID on table file 24220. Expected: {9692563551998415634,4655083329411385714} Actual: {9692563551998415639,10299185534092933087} in file /local_disk0/spark-f58a741d-576f-400c-9b56-53497745ac01/executor-18e08e59-20e8-4a00-bd7e-94ad4599150b/spark-5d980399-3425-4951-894a-808b943054ea/StateStoreId(opId=2147483648,partId=53,name=default)-d89e082e-4e33-4371-8efd-78d927ad3ba3/workingDir-9928750e-f648-4013-a300-ac96cb6ec139/MANIFEST-024212

This change avoids reusing files for the same version on the same host based on the map entries to reduce the chance of running into the error above.
Does this PR introduce any user-facing change?
No
How was this patch tested?
Unit test
RocksDBSuite
[info] Run completed in 35 seconds, 995 milliseconds.
[info] Total number of tests run: 33
[info] Suites: completed 1, aborted 0
[info] Tests: succeeded 33, failed 0, canceled 0, ignored 0, pending 0
[info] All tests passed.

Sure, nice finding! Let me fix the type.

Thanks! Merging to branch-3.4.


When generated the parameter of type "object" turns into type "unknown". Type "any" would be preferred.

Description
it would be great if the type object would translate to type any instead of unknown. I cant use the type object right now, because when it transforms to unknown it gives me a ton of ts errors, wich would be solved if the type any would be used. Or maybe a way yo configure it would be nice.

Hey @hugokemme7, are you migrating from older version or different solution?

@hugokemme7 using unknown type makes more sense because the type is unknown. You could cast the resulting type to any. Is there any reason your object types are not better defined in your OpenAPI specification?

@hugokemme7 do you mind if I ask which one and why?

@mrlubos I am sorry, I think i might have misunderstood you. I dont know if this will answer your question, but i use this library openapi-react-query-codegen. I use it to migrate my dotnet entities to tsx types. I originally placed an issue there, but he suggested i place it here, because they use this library for type specs etc.

Gotcha @hugokemme7. Are you not able to use casting to any to work around the errors?

@mrlubos yeah I could probably cast it, but it aint the cleanest solution. If there isnt a way to configure it, I will probably do that. Thanks for trying yo figure this out with me :)

There isn't at the moment, it would have to be added as an option. How much of a pain is it to use type casting?

@mrlubos it wouldnt be that much of a pain, was just more like my last resort option. Thanks for your time though.

I could add it if it was a huge dealbreaker due to migration or something like that, if you can live without it, there are other priorities :')

No, thats okay. I will try to work around it with a cast.


feat: Add snapshot-dir configuration option

Closes #75.
The Config class accepts None for snapshot_dir so that it's backward compatible. We then handle the value in pytest_configure, where we use a hardcoded default of config.rootpath / ".inline-snapshot/external". Let me know if there's a better approach.

I have no idea what the actions are still waiting for. Maybe this problem will solve itself tomorrow.

Some things are still missing:

Changelog entry with uvx scriv create
Add tests using the inline_snapshot.testing.Example class
add documentation in docs/configuration.md

[x] Changelog entry with uvx scriv create
[x] Add tests using the inline_snapshot.testing.Example class: I didn't use that class as I couldn't find a way to configure pyproject options with it. I went with the project fixture.
[x] add documentation in docs/configuration.md: there's already some docs, is something missing? Should I add that it has a default value of .inline-snapshot/external in the table?

Thank you for the quick and pleasant review @15r10nk!


Other apps still don't consider Files as default file manager

Hello!
Apps like PHPStorm, IntelliJ, or basically any other app that has an option like "reveal in file explorer" still open up the old file explorer instead of Files, even with the experimental feature enabled.

@OpenSource03 thank you for opening this issue. We need a little more information from you in order to investigate this issue, please reopen this issue once you have filled out the issue template.


Debian package depends on libappindicator3-1 which does not exist in Debian stable

OS: Debian 11 "bullseye"
Version of IPFS Desktop:  ipfs-desktop-0.16.2-linux-amd64.deb

The Bug
The debian package depends on libappindicator3-1, a package which no longer exists in the current stable version 11 of Debian: https://packages.debian.org/search?keywords=libappindicator3-1
To Reproduce
$ wget https://github.com/ipfs-shipyard/ipfs-desktop/releases/download/v0.16.2/ipfs-desktop-0.16.2-linux-amd64.deb
$ sudo apt install ./ipfs-desktop-0.16.2-linux-amd64.deb
[...]
Unpacking ipfs-desktop (0.16.2) ...
dpkg: dependency problems prevent configuration of ipfs-desktop:
 ipfs-desktop depends on libappindicator3-1; however:
  Package libappindicator3-1 is not installed.

dpkg: error processing package ipfs-desktop (--install):
 dependency problems - leaving unconfigured

Expected behavior
The package should be installed and configured.

Thank you for filling this.
We could follow suggestion to manually set dependencies as suggested in https://github.com/electron-userland/electron-builder/pull/6225/files but this is brittle and forces us to manually manage deps going forward, which is shifting blame for future breackage to end users (us). Not the best.
I hope to see a proper fix in upstream library (electron-builder), namely change default deps to ones that does not break Debian by default :grimacing:
For now, end user can try the workaround from https://github.com/Clansty/Icalingua/issues/162#issuecomment-899255738 and manually install the deprecated lib.


[KTLN-480] Convert a Collection Into an ArrayList in Kotlin

added unit test code

Retest this please


Running a function before initial render happens

Hi, I am trying to run a function (such as initState in stateful widgets) inside my view before the first render happens. When I use onModalReady callback for this purpose, what I see is this callback runs after the first render on the screen which results in some weird situation for my purpose. Is there any way to get this done with stacked package?

@sadikcoban  - have you tried asking your question to the community in the FIlledStacks Slack workspace?

@sadikcoban onModelReady runs before the first render. It's called in the init function of the ViewModelBuilder


Streaming through REST response?

I have a REST API that I'm querying, which could return a huge amount of data in the JSON response.  What would be a good way to read that data into my application without reading the entire response into memory?
In my case I'm reading from a remote Neo4j database.  The structure of the response body contains an array of arrays, i.e.:
{
  "columns" : [ "id", "val" ],
  "data" : [ [ "asdf", 50.0 ], [ "sdfg", 50.0 ], [ "dfgh", 50.0 ], [ "fghj", 100.0 ], [ "ghjk", 50.0 ], ... ]
}

To read the response, I'm currently doing the following, but it won't be capable of reading a whole lot of data before running out of memory:
val response = {
  implicit val httpClient = new ApacheHttpClient
  Await.result(POST(NEO4J_URL).
    addBody(""" {"query":"MATCH (t:MyType) RETURN t.id, t.value LIMIT 10"} """).
    addHeaders(("Content-Type", "application/json")).apply,
    3.minutes)
}

val dataMap = {
  import org.json4s._
  import org.json4s.jackson.JsonMethods._
  implicit val formats = DefaultFormats

  case class Response( columns: List[String], data: List[List[Any]] )

  parse(response.bodyString).extract[Response].data.map {
    x => (x(0).asInstanceOf[String] -> x(1).asInstanceOf[Double])
  }.toMap
}

Any suggestions?  Thanks.

You can use chunks with http. If you need more help come talk to me tomorrow.
Sent from my iPhone

On 16 Apr 2015, at 22:08, Ken Williams<EMAIL_ADDRESS>wrote:
I have a REST API that I'm querying, which could return a huge amount of data in the JSON response. What would be a good way to read that data into my application without reading the entire response into memory?
In my case I'm reading from a remote Neo4j database. The structure of the response body contains an array of arrays, i.e.:
{
"columns" : [ "id", "val" ],
"data" : [ [ "asdf", 50.0 ], [ "sdfg", 50.0 ], [ "dfgh", 50.0 ], [ "fghj", 100.0 ], [ "ghjk", 50.0 ], ... ]
}
To read the response, I'm currently doing the following, but it won't be capable of reading a whole lot of data before running out of memory:
val response = {
implicit val httpClient = new ApacheHttpClient
Await.result(POST(NEO4J_URL).
addBody(""" {"query":"MATCH (t:MyType) RETURN t.id, t.value LIMIT 10"} """).
addHeaders(("Content-Type", "application/json")).apply,
3.minutes)
}
val dataMap = {
import org.json4s._
import org.json4s.jackson.JsonMethods._
implicit val formats = DefaultFormats
case class Response( columns: List[String], data: List[List[Any]] )
parse(response.bodyString).extract[Response].data.map {
x => (x(0).asInstanceOf[String] -> x(1).asInstanceOf[Double])
}.toMap
}
Any suggestions? Thanks.
—
Reply to this email directly or view it on GitHub.


Fail-fast fetching potentially purged data during block commit

Signed-off-by: manish<EMAIL_ADDRESS>This PR avoids keep trying behavior for fetching private data during block commit, in a situation where the hashes may not match because the private data may potentially have been purged. Instead, such data is treated as an eligible missing data that the peer would try later in the background reconciliation process.
Type of change

New feature

Related issues
Issue #3858

@Mergifyio backport release-2.5


Update German translation

In GitLab by @Asacolips on Apr 15, 2021, 11:19
Technical Notes
DW.Race: Volk
DW.Races: Völker

In GitLab by @julien1205 on Apr 30, 2023, 15:34
This translation is already live.
I think this ticket should be closed.

In GitLab by @Jensenator on Jul 23, 2021, 09:07
I created a merge request for the German translation and made the change according to the German Dungeon World translation from System Matters.


[tool_crash] _CastError: (#0      describeLocale (package:flutter_tools/src/localizations/localizations_utils.dart:219:49))

Command
flutter run --machine --start-paused -d gubexwivz5e6eyt8 --dart-define=flutter.inspector.structuredErrors=true --devtools-server-address http://<IP_ADDRESS>:9100/ --target lib/main.dart

Steps to Reproduce

...
...
...

Logs
_CastError: (#0      describeLocale (package:flutter_tools/src/localizations/localizations_utils.dart:219:49))
#0      describeLocale (package:flutter_tools/src/localizations/localizations_utils.dart:219:49)
#1      LocalizationsGenerator._generateBaseClassFile (package:flutter_tools/src/localizations/gen_l10n.dart:1137:34)
#2      LocalizationsGenerator._generateCode (package:flutter_tools/src/localizations/gen_l10n.dart:1238:46)
#3      LocalizationsGenerator.writeOutputFiles (package:flutter_tools/src/localizations/gen_l10n.dart:1313:47)
#4      generateLocalizations (package:flutter_tools/src/localizations/gen_l10n.dart:69:9)
#5      GenerateLocalizationsTarget.build (package:flutter_tools/src/build_system/targets/localizations.dart:56:5)
#6      _BuildInstance._invokeInternal (package:flutter_tools/src/build_system/build_system.dart:839:27)
<asynchronous suspension>
#7      Future.wait.<anonymous closure> (dart:async/future.dart:473:21)
<asynchronous suspension>
#8      _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:777:32)
<asynchronous suspension>
#9      FlutterBuildSystem.buildIncremental (package:flutter_tools/src/build_system/build_system.dart:680:16)
<asynchronous suspension>
#10     ResidentRunner.runSourceGenerators (package:flutter_tools/src/resident_runner.dart:1174:18)
<asynchronous suspension>
#11     HotRunner.run (package:flutter_tools/src/run_hot.dart:374:7)
<asynchronous suspension>
#12     AppDomain.launch.<anonymous closure> (package:flutter_tools/src/commands/daemon.dart:621:9)
<asynchronous suspension>
#13     AppDomain.launch (package:flutter_tools/src/commands/daemon.dart:619:5)
<asynchronous suspension>
#14     RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:571:15)
<asynchronous suspension>
#15     FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1161:27)

[✓] Flutter (Channel feat, 2.10.3, on macOS 12.3 21E230 darwin-arm, locale ru-UA)
    • Flutter version 2.10.3 at /Users/okji/development/flutter
    • Upstream repository https://github.com/Okladnoj/flutter.git
    • Framework revision 7e9793dee1 (4 weeks ago), 2022-03-02 11:23:12 -0600
    • Engine revision bd539267b4
    • Dart version 2.16.1
    • DevTools version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/okji/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)

[✓] VS Code (version 1.66.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.36.0

[✓] Connected device (3 available)
    • Redmi Note 8 Pro (mobile) • gubexwivz5e6eyt8 • android-arm64  • Android 11 (API 30)
    • macOS (desktop)           • macos            • darwin-arm64   • macOS 12.3 21E230 darwin-arm
    • Chrome (web)              • chrome           • web-javascript • Google Chrome 99.0.4844.84
    ! Error: iPad (Dmytrij) is not connected. Xcode will continue when iPad (Dmytrij) is connected. (code -13)

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

Flutter Application Metadata
Type: app
Version: 1.0.1+1
Material: true
Android X: false
Module: false
Plugin: false
Android package: null
iOS bundle identifier: null
Creation channel: feat
Creation framework version: 7e9793dee1b85a243edd0e06cb1658e98b077561
Plugins
path_provider-2.0.9
path_provider_android-2.0.12
path_provider_ios-2.0.8
path_provider_linux-2.1.5
path_provider_macos-2.0.5
path_provider_windows-2.0.5
shared_preferences-2.0.13
shared_preferences_android-2.0.11
shared_preferences_ios-2.1.0
shared_preferences_linux-2.1.0
shared_preferences_macos-2.0.3
shared_preferences_web-2.0.3
shared_preferences_windows-2.1.0

Hi @Okladnoj,
There is a similar issue describing this case https://github.com/flutter/flutter/issues/87851, Please follow up there for further updates, Closing this issue as a duplicate. If you disagree feel free to write in the comments and we will reopen it.
Thank you.


Upload dialog shows up in MS Edge

After recording test with upload in MS Edge on DevExtreme Filemanager Demo Page file select dialog shows up when executing step clicking on file choose button.

Steps to reproduce the problem:

Start recording at http://demos.devexpress.com/ASPxFileManagerAndUploadDemos/FileManager/Features.aspx
Click 'Browse' button.
Select a file.
Click upload button.
Now try to play recorded test. At step 'Click Browse button' you will be prompted to select a file again.

I'm working on this

Cann't reproduce - http://screencast.com/t/pbmSh60MtOYg

@AndreyBelym Please, try to reproduce the problem after upgrade hammerhead to v.1.0.0.

Confirmed, I can't reproduce the bug too after update.


"ERROR: Failed to launch application on device" & "Error: Failed to install application on device"

Hi,
when i run 'ionic run android' cmd i get the error as in the tilte. i've spend half a day and tried so many steps but i can't find whats the problem. can anyone help me with this.....?

do you have device attached with Computer and checked it if it is available to command or not and is it running android os or something else.

yes i've attached my android device with my computer.................... i've enabled USB Debugging also.....

Greetings @GopalakrishnanK!
I've closed this issue because my sensors indicated it was old and inactive, and may have already been fixed in recent versions of Ionic. However, if you are still experiencing this issue, please feel free to reopen this issue by creating a new one, and include any examples and other necessary information, so that we can look into it further.
Thank you for allowing me to assist you.

Thanks @adamdbradley!
Let me tell you my fix for this error. The actual problem is my device drivers are not installed properly in windows7. So I've installed drivers manually and it worked.


adding curve gauge connector

adding curve gauge connector;
remove trailing spaces;

Please also update and run the test after code changes to ensure nothing breaks


enh: switch registry.ts default from gpt4-turbo to gpt4o

Description
only really impacts tables query since it is being overridden everywhere.
Risk

Deploy Plan

Merging


No multiple stage creation mechanism is there in AWS:Serverless::Api resource type

There is no provision to create multiple stage for the same api gateway in same model.And when we create manual stages from console then it give lambda invocation error.

Duplicate of #198


Update samples/spring-security-basic-auth README

highlight or circle in red the things we want the reader to pay attention to.

Sorry, I used green in the new screenshot because I didn't read properly. I hope it's okay, too :)


Update keyvault.json

MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Contribution checklist:

[ ] I commit to follow the Breaking Change Policy of “no breaking changes
[ ] I have reviewed the documentation for the workflow.
[ ] Validation tools were run on swagger spec(s) and errors have all been fixed in this PR. How to fix?

If any further question about AME onboarding or validation tools, please view the FAQ.
ARM API Review Checklist

[ ] Ensure to check this box if one of the following scenarios meet updates in the PR, so that label “WaitForARMFeedback” will be added automatically to involve ARM API Review. Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs, all “removals” and “adding a new property” no more require ARM API review.

Adding new API(s)
Adding a new API version
Adding a new service

[ ] If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.

Breaking Change Review Checklist
If there are following updates in the PR, ensure to request an approval from API Review Board as defined in the Breaking Change Policy.

[ ] Removing API(s) in stable version
[ ] Removing properties in stable version
[ ] Removing API version(s) in stable version
[ ] Updating API in stable version with Breaking Change Validation errors
[ ] Updating API(s) in preview over 1 year

Please follow the link to find more details on PR review process.

/azp run automation - sdk

Link to issue https://github.com/Azure/azure-sdk-for-js/issues/10705

Looks good! I don't think I'm the right person to approve this though.


Interpret Flags in DS4 Mode Output Report, implementes DS4W "Flash at High Latency" feature

Implements #54
Regarding the changes:

Rumble, color and flash flags are now verified
Rumble is only set or the Light Bar data translated to LEDs if the appropriate flags are active
It is now verified if the Light Bar should be pulsing/flashing by checking if the Flash Flag is active while also checking if the Flash Bright or Dark duration bytes are not zero
It's verified if DS4Windows is in "High Latency" state by checking if 1) the light bar should be pulsing and 2) the color is r = 0x32 and g = b = 0x00 (hard-coded values on DS4W side)
If DS4W is in High Latency State all LEDs will be lighted up on the controller

Created #70 as a reminder for work after merge.


Allow Proposal Delete from Delegate that created it

In the API docs for v1_multisig-transactions_delete

Only the proposer can delete the transaction.
If the transaction was proposed by a delegate, the Safe owner who delegated to the delegate must be used.

Since we have the proposer via #1592, the Delegate that proposed a transaction should be permitted to delete it. This would allow for automated management -- we have Discord-based management of some tasks, and being able to undo a mistake without an explicit reject transaction (and without using the parent key!) would be helpful.

Your proposal makes a lot of sense, we will implement it

Tested and verified 😄


Closed-term extraction creates out-of-bound array accesses

set_option trace.compiler.ir.result true in
def f : Nat :=
  let arr := #[]
  if h : 0 < arr.size then
    arr[0]
  else
    42

We lift the "closed" term #[][0] here, which causes the program to crash when compiled.  (I don't think this can affect the interpreter since it only evaluates closed terms on-demand.)

We just hit a variant of this bug in the wild in https://github.com/leanprover-community/mathlib4/pull/3509  There it's not arrays, but Option.get none ◾.


packager: rm --no-source flag

This PR removes the --no-source flag since our METADATA.pb files now accept the source field.
This also fixes #494

The docs don't mention it and I'm fairly sure I've removed every reference.


fix: now the sidebar uses dvh for dynamic resizing of the browser

Description
Now the sidebar uses dvh units to adjust it's size for parts of the browser viewport that resize dynamically, e.g. address bar disappearing/appearing, etc.
I've tested this on an iPhone, but not Android. @adiati98, or someone with an Android phone, let me know if it resolves the issue. Thanks in advance!
What type of PR is this? (check all applicable)

[ ] 🍕 Feature
[x] 🐛 Bug Fix
[ ] 📝 Documentation Update
[ ] 🎨 Style
[ ] 🧑💻 Code Refactor
[ ] 🔥 Performance Improvements
[ ] ✅ Test
[ ] 🤖 Build
[ ] 🔁 CI
[ ] 📦 Chore (Release)
[ ] ⏩ Revert

Related Tickets & Documents
Fixes the height issue in #2834.
Mobile & Desktop Screenshots/Recordings
https://github.com/open-sauced/app/assets/833231/2fb8be88-4a94-4442-ace4-e7d88cd3bf3d
Steps to QA

You need to test the deploy preview on an actual phone. Use the QR Code for the deploy preview.
Log in.
Click on the Workspace link up top.
The sidebar should adjust as you scroll and it should also take 100% height.

Added to documentation?

[ ] 📜 README.md
[ ] 📓 docs.opensauced.pizza
[ ] 🍕 dev.to/opensauced
[ ] 📕 storybook
[ ] 🙅 no documentation needed

[optional] Are there any post-deployment tasks we need to perform?
[optional] What gif best describes this PR or how it makes you feel?

@nickytonline it works! Thank you! 🎉
https://github.com/open-sauced/app/assets/45172775/bb8aa684-313f-4726-9e56-3e8f8260f7f1

aah -- I was literally doing my review, it's a tiny bit buggy on Android, the sidebar doesn't go all the way down, but it's nothing we can't live without. This PR is correctly merged, we can continue to work on details
https://github.com/open-sauced/app/assets/27322879/2b756c41-1ca1-443a-b65a-e1262f6e3a4b


Fix Gradle lockfiles.

If/when this needs to be re-landed, please include an explanation in the PR description or a link to a GitHub issue. Thanks!


"Unable to parse color from string"

I'm created a working line chart, but once I started to use rgba (e.g. "rgba(255,0,0,0.6)") instead of hexidecimal (e.g."#e4f619") for colors, the tooltips no longer work.  If I look at the console, I see the following when I hover over a tooltip:
Uncaught Error: Unable to parse color from string "rgba(255,0.0,0.6)"s @ Chart.min.js:10s @ Chart.min.js:10o.color @ Chart.min.js:13t.controllers.line.t.DatasetController.extend.setHoverStyle @ Chart.min.js:11e.extend.eventHandler @ Chart.min.js:12(anonymous function) @ Chart.min.js:12t.events.(anonymous function) @ Chart.min.js:12

@rb8888 can you post a fiddle?

It says your string was "rgba(255,0.0,0.6)". Did you mean to use "rgba(255,0,0,0.6)"? I think you accidentally used a period instead of a comma.

good catch @zachpanz88

Hi all,
Yup, once I fixed the typo, everything works.  Sorry for the false alarm.
Thank you,
Roger
On Mon, May 9, 2016 at 1:34 PM, Evert Timberg<EMAIL_ADDRESS>wrote:

good catch @zachpanz88 https://github.com/zachpanz88
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/chartjs/Chart.js/issues/2499#issuecomment-217980915


Fast forwarding the Lorenz2D branch

@orkolorko Would you like to merge the Lorenz2D branch directly into master as well? In this way it might be easier to work with it without rebasing continuously.

Codecov Report

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

@@             Coverage Diff             @@
##             Lorenz2D     #155   +/-   ##
===========================================
  Coverage            ?   32.25%
===========================================
  Files               ?       38
  Lines               ?     3227
  Branches            ?        0
===========================================
  Hits                ?     1041
  Misses              ?     2186
  Partials            ?        0

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


feat: add places to Navbar

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 44.09%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
247

Relevant Lines:
392

💛  - Coveralls


Added serde feature

I implemented Serialize and Deserialize for EcoString and EcoVec when the serde feature is enabled.

Codecov Report
Patch and project coverage have no change.

Comparison is base (8f93793) 92.21% compared to head (c5a7b99) 92.21%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #22   +/-   ##
=======================================
  Coverage   92.21%   92.21%
=======================================
  Files           4        4
  Lines        1041     1041
=======================================
  Hits          960      960
  Misses         81       81

Impacted Files
Coverage Δ

src/string.rs
87.16% <ø> (ø)

src/vec.rs
92.07% <ø> (ø)

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

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

Thanks and sorry for the delay!

I'll try to get a new release out soon.

I made a release.


186175823-numberline-has-edit-box

Fulfills this story:
[Nline] Numberline has an edit box around axis limits

Deployment link:
https://collaborative-learning.concord.org/branch/numberline-has-edit-box/?appMode=qa&fakeClass=3&fakeUser=student:4&qaGroup=5&unit=example-config-subtabs

I also see that both the numberline and arrow_annotation cypress tests failed, and I'm guessing it's related to changes in this PR rather than random failures. While you're fixing those tests, it would be good to expand the numberline tests to modify the min and max, which would probably get you 100% patch coverage.

Feel free to just assign TS Cube when you've fully approved it @tealefristoe

@dennisrcao , there are just a couple of minor things that I'd like to bring to your notice:

Currently, we're allowing 16 decimal places and an unlimited number of digits in the integral part which makes the number line look all garbled up, covering up the neighboring numbers.

If sparrows are added and then the scale is edited using this new edit box, the sparrows still try to show up even though their corresponding points do not, because of the rescaling.


[TASK] Implement reusable Input component

Task Description
The purpose of this task is to implement a reusable Input component that can be exported for external use. Input fields allow users to enter values, or data that fulfills an operation.
Task Deliverable

[x]  Create a folder Input
[x]  Implement a Input component with the below mentioned props
[x]  Ensure the implementation reflects the intended design
[x]  Document each component with an example
[x]  Ensure component is exportable

Input Component
The are variant types of Input that are dictated by the props passed in. Below is a list of the components properties that are required. Please refer to the Input design system link at the bottom to view each different Input type that are made up in this component.
Component properties:

Type="text | text-large | search | dropdown";
State="default | hover | active | error";
Darkmode="off | on";
icon="off | on";

Example usage:
<Input
  type="text"
  dark-mode="off"
  icon="off"
  state="default"
/>

Relevant links

Figma Design System

Closed in #546


Components page - bug punchlist

P1

[x] Need indication of what amp-* extensions to include with each component ( @abeck000 to design)
[ ] Need solution for iframe issue on page: currently on mobile it's easy to get stuck scrolling through scrolling iframes within scrolling viewport. /to @abeck000 to work w/ @camelburrito on a solution ( @ericlindley-g as needed) — maybe could put code snippets in accordions on mobile?
[ ] Need way to get back to landing page ( @abeck000 to design — same goes for all non-landing pages)
[ ] Ranged input doesn't appear in chrome mobile emulator:

- [ ] Disabled inputs (range, text, etc) don't appear in iOS Chrome
- [ ] Opening sidebar abruptly scrolls user partway down the page in iOS Chrome
- [ ] Add dropshadow around nav bar iframes
P2

[ ] Somehow fill in the area below sidebar/header examples so it's clear that there's not an empty space (@abeck000 to design)
[ ] Add padding around text in code snippets (text shouldn't go all the way to left edge of the container (@abeck000 to give designs, but I imagine there's already a standard padding that can be applied)

P3

[ ] Low-priority item 3

/to @abeck000 to fill out

moved open issues to their own bugs, closing @ericlindley-g


get_activations not producing list

Thanks for uploading this to github! Great for learning more about attention models. When I run attention_dense.py, however, I get this error (after the model finishing training):

IndexError                                Traceback (most recent call last)
 in ()
37     # Attention vector corresponds to the second matrix.
38     # The first one is the Inputs output.
---> 39     attention_vector = get_activations(m, testing_inputs_1, print_shape_only=True)[1].flatten()
40     print('attention =', attention_vector)
41
IndexError: list index out of range

Any idea why the get_activations function isn't working properly?

Found the potential problem spot. I edited the 'output' list comprehension in get_activations() and submitted a pull request for you to see.

@Toni-Antonova Thanks a lot! I've just updated the code. It now works! Thanks for the PR! 72adef26a1836504de84da16f48aeb46ab9ba09b


Add PHP 7.3 and remove checkver from 5.6, 7.0

I don't use PHP with scoop, so just fix checkver.

Please add the checkver back for older versions. They still can get security fixes (even if they are EOL)
Older versions are located in https://windows.php.net/downloads/releases/archives/

Change bucketdir to Find-BucketDirectory
Add suggest according to filename (VC9: vcredist2008, VC11: vcredist2012, VC14, VC15: vcredist2019)
Fix PHP 5.6 and PHP 7.0 url

checkver couldn't work in https://windows.php.net/downloads/releases/archives/, the filename there aren't sorted by datetime, but simple alphabeta order. So for security fixes, the manifests need manually update.

Ping via https://github.com/ScoopInstaller/PHP/issues/2

This is ready to merge. Old versions' checkver are unrealizable 😭


Replace MaryTTS

Integrate TTS via mozilla/tts (WIP).

It looks like MaryTTS has some new maintainers who seem to be fairly active of late. Closing.


Build fail, sound_play dependency missing

When building according to the docs, cmake fails to resolve the sound_play package. You need to add a build_depend to the package utils/packages/sound_player.

Done by #287. Thanks for reporting issue.


Share Azure CLI's MSAL token cache with Azure Identity

Related command
az login
Is your feature request related to a problem? Please describe.
I'm using AzureCliCredential from Azure Identity as one of multiple authentication methods for a CLI. It is calling az account get-access-token in a subprocess, which is rather slow, even if we cache the returned token in memory. This slowness is annoying when the user is executing commands frequently.
Describe the solution you'd like
Azure CLI uses a dedicated MSAL token cache which is persisted at ~/.azure/msal_token_cache.bin or ~/.azure/msal_token_cache.json, which is not supposed to be read by other programs.
Azure CLI can save its MSAL token cache to %LOCALAPPDATA%\.IdentityService\msal.cache (Windows) ~/.IdentityService/msal.cache (Linux, MacOS) so that SharedTokenCacheCredential can read from it:
https://github.com/Azure/azure-sdk-for-python/blob/47108e9251cd706f48bea359a388b6c8fd161faf/sdk/identity/azure-identity/azure/identity/_persistent_cache.py#L77-L92
The disadvantage is that Azure CLI's MSAL cache can easily be changed or corrupted without Azure CLI's notice. Handling that will be very difficult.
Describe alternatives you've considered
SharedTokenCacheCredential can take ~/.azure/msal_token_cache.bin as input.
Additional context
Related:

https://github.com/Azure/azure-cli/issues/16460

Share Azure CLI's MSAL token cache


possible to discover relations without loading them?

I wrote a Node module that converts the results of a Bookshelf query into a JSON API-compliant format. The module 'automates' the process by gleaning information from the result set that's passed to it. From that, it builds the necessary transform schema that is passed along to the JSON API serializer and is then applied to the results of the query.
With JSON API, it's possible to lazy load relations by using its relationships link. Here's an example:
{
      "type": "staff",
      "id": "19",
      "attributes": {
        "id": 19,
        "userId": 33,
        "businessId": 2,
        "ssn": null,
        "rateOfPay": null,
        "biography": null,
        "descriptions": null,
        "modesOfTransport": null,
        "kind": null,
        "invitationStatus": null,
        "scopes": [
          "staff"
        ],
        "active": false,
        "archived": false,
        "createdAt": "2015-11-05T01:22:36.479Z",
        "updatedAt": "2015-11-05T01:22:36.479Z"
      },
      "links": {
        "self": "https://localhost:3001/staffs/19"
      },
      "relationships": {
        "user": {
          "data": {
            "type": "user",
            "id": "33"
          },
          "links": {
            "self": "https://localhost:3001/staffs/19/relationships/users",
            "related": "https://localhost:3001/staffs/19/users"
          }
        }
      }
    }

The relationships object contains links to where an application can then load the full details of this relation.
The issue I'm running into is that given my approach of dynamically analyzing a returned Model or Collection, I have no idea what relations are defined on the model unless the query was called specifically with withRelated or some other means of loading the relation.
That said, is there a way to determine the relations associated with a Model without first specifying the relations in the query? I've looked pretty deeply into the Model resulting from a query, but no luck yet.

See #1018.
There is a workaround in the interim.


Look into the arcsinh transformation again

There should be a way to derive an upper bound on the artificial differences when using a transformation that starts linear and progresses into a log. This should be possible as the error becomes negligible at high means, so we just have to delay the switch to a log-transform when the mean becomes "high enough". The logicle transform provides some tunable parameters but TBH the log could also be used with a sufficiently large pseudo-count.

Well, now that I've written it, actually I'm not sure that helps all that much, as there's still no way to distinguish between high and low variances at the same normalized mean, and that's the real problem when it comes to taking the mean of the transformed value. And there's no way to adjust for variance differences without knowing the groups beforehand...


feat: persist catalog filters

Addresses #2525
Task: To persist the tags & filters present in catalog page in the URL.
Work done:
As @freben suggested, I've tried to persist the filters in URL. I'm using useLocation and useNavigate from react-router-dom. This functionality was implemented similar to the one present in cost-insights plugin.
Filters were stored in the following way:
export type FilterKeys = {   [filterId: string]: string; }; and
export type QueryParams = {   filterKeys: FilterKeys;   tags: string[]; }; in types.ts where filterKeys contained both tab and filterGroup as an object and  tags contained tags.
The URL query params are updated when filters are updated in EntityFilterGroupsProvider.tsx.
Features implemented

filters can be applied thourgh URL
on navigating back from another page to catalog page, applied tags & filters are persisted

Issues to be solved

I'm not sure about the naming conventions and types I've used. That needs to be looked at.
Every filter & tag update is stored in browser history which may not be needed. After selecting mutiple filters & tags, on navigating back through all those states in the browser UI is not updated wrt changing URL.
If tags were applied previously and on navigating back from another page to catalog page, the queryString is cleared and it's filterKeys data is lost and only tags data is preserved. Therefore had to use a temporary workaround in ResultsFilter.tsx.
Check if anything can be further optimized.
Check for rendering issues

[ ] All tests are passing yarn test
[ ] Screenshots attached (for UI changes)
[ ] Relevant documentation updated
[x] Prettier run on changed files
[ ] Tests added for new functionality
[ ] Regression tests added for bug fixes

Think we can close this one in favour of #3274 @fox32?

Think we can close this one in favour of #3274 @Fox32?

From my side I would prefer to rewrite the catalog UI with more generic components and we have part of them in place with #2830. So yes.


Fix the dates on the CHANGELOG.md (the last 2 version)

all the previous dates need to be fixed as well. is a script broken somewhere? i couldn't find it

@gianpaj thanks for the PR. I merged it and I went and fixed the script that generates changelogs.


MINIFICPP-1189 win/debug: expect correct yaml lib

Thank you for submitting a contribution to Apache NiFi - MiNiFi C++.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:

[x] Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?

[x] Does your PR title start with MINIFICPP-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.

[x] Has your PR been rebased against the latest commit within the target branch (typically master)?

[x] Is your initial contribution a single, squashed commit?

For code changes:

[x] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[x] If applicable, have you updated the LICENSE file?
[x] If applicable, have you updated the NOTICE file?

For documentation related changes:

[x] Have you ensured that format looks appropriate for the output in which it is rendered?

Note:
Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.

debug build without this change results in this error:
         LINK : fatal error LNK1104: cannot open file '..\thirdparty\yaml-cpp-install\lib\libyaml-cppmd.lib' [C:\Users\devuser\nifi-minifi-cpp\build64d\main\minifiexe.vcxproj]


Fix Ruby 2.7 deprecation warning

/Users/jcoyne/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/dor-workflow-client-3.21.0/lib/dor/workflow/client.rb:42: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/Users/jcoyne/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/dor-workflow-client-3.21.0/lib/dor/workflow/client/workflow_routes.rb:41: warning: The called method `create_workflow_by_name' is defined here

also at:
2.7.0 :002 > items.each { |item| DeleteService.destroy(item.pid) }
/opt/app/dor_services/dor_services/shared/bundle/ruby/2.7.0/gems/dor-workflow-client-3.23.1/lib/dor/workflow/client.rb:42: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/opt/app/dor_services/dor_services/shared/bundle/ruby/2.7.0/gems/dor-workflow-client-3.23.1/lib/dor/workflow/client/workflow_routes.rb:297: warning: The called method `delete_all_workflows' is defined here

The problem here is in the activesupport delegation. This should work fine in Rails 6.1: https://github.com/rails/rails/pull/38023


Schedule refreshof dataset in Power BI when source is TM1py

Describe what did you try to do with TM1py
I have created a Power BI dashboard where the data source is TM1 via a python scrip using TM1py functions and am happy with the results.
I now want to schedule a refresh of the dataset in Power BI. However when I try to do so I get the message:
"You can't schedule refresh of this dataset because the following data sources currentl don't support refresh:"
Does anyone now a way around this?
Cheers

It is working. but You need to install personal gateway on the server,
schedule a task then in power no you can trigger the personal gateway
refresh.
Known issue: this not enterprise ready yet base din Microsoft docs
On 2022. Feb 16., Wed at 18:08, Marius Wirtz @.***>
wrote:

I think you need to use a Personal Gateway in PowerBI. Like in this
article:
https://docs.microsoft.com/en-us/power-bi/connect-data/service-gateway-personal-mode
Please let us know about your experiences. I haven't implemented this
personally yet.
—
Reply to this email directly, view it on GitHub
https://github.com/cubewise-code/tm1py/issues/611#issuecomment-1041889104,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHNEK3AQD7HBKKYZBN4YYWDU3PKYPANCNFSM5EOBTKYQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


[RFC] Add priority queues

Add priority queues.
Description
This PR adds priorities to socket and packets and multiple event queues to handle packets. This change enables multiple things with in the time sensitive networking space:

The stack can handle packets based on their priority to allow overtakes or idle background traffic using the remaining bandwidth. An example would be audio/video data or PTP message as high priority or a data dump in the background.
The packet priority can be used by network drivers to assign the packet to a different hardware queue.
The HW can add VLAN tags with priority fields. (And maybe later FreeRTOS-Plus-TCP :) )

Test Steps
Enable the feature via ipconfigPRIORITIES && ipconfigEVENT_QUEUES and add two udp sockets. The first socket gets a higher priority  (e.g. 5). The second socket sends a lot of packets and the first socket afterwards one. This packet should overtake some of the packets of the second socket.
Checklist:

[X] I have tested my changes. No regression in existing tests.
[ ] I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue
#894
TODOs

[ ] Make TCP sockets adhere the priority. This would basicly mean, that a TCP packet before sending must be placed back into the Queues and cannot be send directly.
[ ] Add unit tests for the new features.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

A general comment about priorities and queues:

The number of priorities is chosen based on the VLAN Tag PCP field with 3 bit. (See https://en.wikipedia.org/wiki/IEEE_P802.1p) Other possibilities are TOS field from IP header (4 bit / 16 numbers) or simply the number queues. Its really application dependent. I think the most useful is the VLAN PCP variant with 8. In my case: The NetworkInterface (a Infineon TC3 and TC4 port) inserts and removes a vlan tag via the descriptors and the PCP value is used to assign dedicated tx and rx hardware queues. Also the PCP field for RX packets is written as priority into the NetworkBufferDescriptor_t field of a received packet overwriting the default value and thus the priority handling of rx events.
The number of queues is chosen based on the default number 3 from the tc-prio scheduler of the linux kernel. (https://www.man7.org/linux/man-pages/man8/tc-prio.8.html) The idea behind 3 is: One queue for best effort. No garuantees at all. Gets what is left. One queue for normal app traffic like HTTP/FTP/MQTT etc. One queue for high priority traffic like low latency traffic or real time traffic. (e.g. Audio/Video, Real-Time Sense and Control or Time Sync). The number of queues might be equeal to the number of priorities, but for most applications the number of packets with a high priority are rather small compared to the rest of the traffic. So more queues might waste resources, since only a few messages are stored in there.

I don't mind the numbers at all. A just wanted to choose a reasonable default, since anybody can overwrite it relatively easy.
A comment on the application: I work at Infineon and I port FreeRTOS+TCP on our TC3 and TC4 microcontroller. These are rather powerful devices with a lot of cores (up to 6), a lot of SRAM (a few MB) and up to 5G Ethernet MACs with 8 DMA and 8 Hardware Queues each for RX and TX). We run relativly complex applications with multiple tasks working on network traffic with diffrent application domains. From SOTA, CAN Tunneling, Service Handling (like SOMEIP or MQTT) and real time data like Audio and Video (or Radar) streams.
As an concrete example: I have an app which runs some low priority Debug Instrumentation, an MQTT Client and some Audio Processing. Since the system has a lot of ram, the number of NetworkBuffers is high (eg. 128). This lead to the instrumentaion filling up the single queue and the audio task had no chance of meeting the real time latency requirement. With this multiple queue approach: The instrumentation runs in the lowest priority and gets rest of the bandwith. Its no problem if a packets waits a bit. The overall bandwidth of the system is sufficient. The MQTT traffic runs in the middle priority and the audio and timesync traffic in the highest. (Only a few 100 kBit/s but very latency sensitive). With this multiple queues approach, I don't need take any measures within the software to meet my real-time goals.
I hope this makes this a bit more clear. :)

One more comment regarding: RX Events. The problem why I also added the priorities for RX events is the following: Think about a lot of NetworkBuffers and your IP Tasks start blocking until a descriptor entry is free inside the descriptor table. During that time no RX packet handling will happen as the IP task is blocking. The high priority queue makes it possible, that an high priority packet is processed a bit earlier than otherwise. The ideal solution would be to split RX and TX Packet processing. Then no extra queues for RX would be needed, as the traffic comes in prioritized already.

Thanks Christoph for creating the PR.
We will discuss internally more on the design and , if needed, I will synch up with you as well more on the design part and take the change forward.

@go2sh thoughts on mq-prio?
That is my final step of my TSN chain.

I would see this functionality as part of the network interface. In my case, the driver checks the NetworkBuffer ucPriority and has a custom mapping array for mapping the packets to the different DMA queues. But each devices does it differently and I know that alot of other devices support multiple hw queues, which are already part of FreeRTOS+TCP.


add 10 bits decoder to hevc.

this will fix #624

@YuJiankang, Please help to review

lgtm, +1

LGTM, but would better we can add some commit message for 3d3380a516fb41f4ad388d0faa2096eb8097c17e

What I should put in, I think commit title is very clear

@xuguangxin

I think we would better can avoid a NULL commit message in most cases.
Here we are mainly expose VAProfileHEVCMain10 profile, not add a new decoder named hevc 10 bits. It can be specified in the commit message.

@lizhong1008

this is not a null commit log, just null body, the body of commit message is optional.
You can check http://supercollider.github.io/development/commit-messagee  and http://chris.beams.io/posts/git-commit/. 1. Separate subject from body with a blank line
I can update this

@lizhong1008 , update.

@xuguangxin thanks for the explanation and update.
Yeah, if the patch is simple enough and the commit title can cover all information , no need commit body, else it is needed.

+1

verify + 1

verify - 1,
I am sorry for this. Because I test it on a new KBL platform, the platform is not setup completely. I double check it, find out that the HEVC 10bit depth decoding is okay, but these patches make new problem with 8 bit depth decoding.

close this since we have https://github.com/01org/libyami/pull/647


[Event Request] Codeunit 7000005 "Invoice-Split Payment"- Add new parameter in OnAfterSplitSalesInvCalculateAmounts()

Hello,
We would need a new parameters in the event OnAfterSplitSalesInvCalculateAmounts().
Resulting event:
    [IntegrationEvent(false, false)]
    local procedure OnAfterSplitSalesInvCalculateAmounts(var GenJournalLine: Record "Gen. Journal Line"; var SalesHeader: Record "Sales Header"; var RemainingAmount: Decimal; var RemainingAmountLCY: Decimal; Installment: Record Installment; CurrDocNo: Integer; PaymentTerms: Record "Payment Terms");
    begin
    end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


Introduce a generic cache for all provider versions

Summary
This pull request refactors the caching strategy for provider version listings and individual version download details, offering a unified caching mechanism that substantially minimizes API calls to GitHub. The central change is the consolidation of different data structures into the singular CacheItem structure, which serves as a cacheable unit encapsulating all details for a single provider and its multiple versions. The PR also eliminates cyclical package dependencies through strategic refactoring.
Detailed Changes

Introduction of CacheItem: A new data structure that contains all the versions for a single provider along with their detailed information. Each CacheItem entry has a LastUpdated timestamp to track its freshness. The data is optimized to serve both provider version listing and provider download endpoints.

Staleness Check: Introduced a staleness check based on the LastUpdated timestamp. Items in the cache are considered stale if they are older than 55 minutes.

Enhanced VersionList: Introduced a VersionList that holds an array of CacheVersion. It has methods for converting itself into an array of Version structures for the version listing endpoint.

Inclusion of CacheVersion: A refactored type that holds all relevant information for a specific provider version, inclusive of OS, architecture, download URLs, and SHA sums. It comes with utility methods to convert itself into the Version and VersionDetails structures, as per endpoint requirements.

Utility Functions: Functions like GetVersionDetails allow for the extraction of specific version details based on the version, OS, and architecture provided.

By implementing these changes, we anticipate a decrease in the rate of GitHub API calls, improved code maintainability, and more efficient use of cache storage.

Not a huge fan of the conflicting package names ending with /type, but I can live with it for now.

I agree, I want to refactor once this has been put in. I hate resorting to types.go or types package to avoid circular dependencies.


add ITIS E. Fermi - Francavilla Fontana (BR)

@silvioincalza First stage of verification passed, official domain is itstfermi.edu.it as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision. Proof of domain ownership: https://www.itstfermi.edu.it/index.php?option=com_content&view=article&id=346

@silvioincalza First stage of verification passed, official domain is itstfermi.edu.it as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision. Proof of domain ownership: https://www.itstfermi.edu.it/index.php?option=com_content&view=article&id=346

Hi @philipto you are right, but the domain email is itisff.it e.g<EMAIL_ADDRESS>I did this PR for my brother, he is a teacher .

@silvioincalza Thank you for your patience while waiting for a review and processing your request. Pull request merged.


Handle lost connections and EOF during readlines

Test cases for connection problems during readline()
Also, add some much improved debugging options for when the test suite is run
with the -E option.
Update the documentation.
Closes #61

I grabbed the few additional non-line-length related tests from #59 although I'm not sure they don't cover cases already covered elsewhere.  I just wanted to prove to myself that this PR handles those cases too.
I feel pretty good about this one, even if we're not technically handling EOF correctly.  It does require checking for self._connection_closed in SMTP.eof_received() which is a bit ugly, but I'd like to land this branch as is, and then do a follow on branch if necessary to address that, and possibly switch over to closing the transport instead of calling connection_lost().  But at least now I think we have some good test cases.
What do you think @kozzztik and @Mortal ?

Does sending \x04 on the wire really cause an EOF? I thought signalling EOF would be simply calling client.close()?

@Mortal I think you're right that the \x04 isn't really necessary.  That looks like a hanger-on from a previous local commit.  Good catch.

Oh, also, yes SMTP.send() does accept a string in the command_encoding which defaults to ascii.


Is toJS() supported?

Sorry if I'm missing something obvious...
I have an observable that is an array. I'd like to also store an element of that array that I'd like to store as observable. To do so, I think I need to extract the plain Javascript object from the array element first, using toJS() (I think). However, toJS() does not seem to be exportable from mobx-react.
It toJS() supported and am just missing how to use it? Or am I going about this the wrong way?

@mobitinker toJS is exposed from the mobx package, not mobx-react. However, note that storing an observable in a second place (which you seem to be proposing) is an anti pattern, and you probably should be using a computed / getter property

Thanks for the pointers! Climbing the learning curve with ReactJS and the
vast set of libraries available.
On Mon, Feb 19, 2018 at 11:48 PM, Michel Weststrate <
<EMAIL_ADDRESS>wrote:

@mobitinker https://github.com/mobitinker toJS is exposed from the mobx
package, not mobx-react. However, note that storing an observable in a
second place (which you seem to be proposing) is an anti pattern, and you
probably should be using a computed / getter property
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/mobxjs/mobx-react/issues/426#issuecomment-366892716,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAXjPU8yPt6DlP5E3aGd2s-4WfbxEsBRks5tWnjOgaJpZM4SLXWz
.

--
Mark Murphy,<PHONE_NUMBER>, LinkedIn http://www.linkedin.com/in/markkmurphy


JSON formatting inconsistency?

I'm wondering if there is an issue hiding here somewhere.
Case 1
tmctl send-event {"hello":"world"}
shows up in watch as:
"{hello:world}"
Case 2
tmctl send-event '{"hello":"world"}' (added single quotes)
shows up in watchas:
"{\"hello\":\"world\"}"
Case 3
and if I curl http://localhost:59936 -H 'Content-type: application/json' -d '{"hello":"world"}' to a webhook source it shows in watchas:
{
    "hello": "world"
}

Any thoughts? cc @odacremolbap

send-event behavior was reviewed, and a couple of data formatting fixes were added.
Command checks if input data is valid JSON and if it is, sets the datacontenttype to application/json, otherwise totext/plain.
Formatting expectations are the same as in Curl requests: "foo" in the command line is equivalent to foo which is not a JSON string, '"foo"' is a JSON string, etc. JSON objects formatting has the same logic - '{...}' should be used to preserve the data format, otherwise it will be sent as plain text.
Please review and comment if needed.

Sounds good, FYI I tentatively added the phrase:
"Formatting expectations are the same as in Curl requests: "foo" in the command line is equivalent to foo which is not a JSON string, '"foo"' is a JSON string, etc. JSON objects formatting has the same logic - '{...}' should be used to preserve the data format, otherwise it will be sent as plain text."
to the CLI commands reference in the docs, under send-event.


Revising should I run logic

Oversight in logic made it to where actions are run regardless of check result

Coverage increased (+0.05%) to 81.238% when pulling 2cc1d47e04754a0d8f5e9c488748ee4ce6e3abf6 on network-facts into b9362b955bac38f0ecc0c954145fdf9effb1adf0 on develop.


Colorize output of info command

I heard that there is an pretty print coloring feature in irb, so maybe we need to use it.

@ko1 cool, let me check it 😄


Don't show the same candidate word

Please provide clangd logs, preferably by passing -log=verbose to clangd. See http://clangd.llvm.org/troubleshooting.html#gathering-logs for details.
They are most likely different symbols that somehow end up having the same label and it is impossible to figure out what went wrong just by looking at the screenshot.


fix: prevent android tab view pager from entering inconsistent state

Due to the requestAnimationFrame logic, we are seeing TabBarPagerAndroid be stuck on the incorrect tab intermittently (as high as 50%)

We see that navigationState.index is being passed correctly to TabBarPagerAndroid, but TabBarPagerAndroid is showing the incorrect tab

This is because of a race condition between the existing requestAnimationFrame callback and the call to _handlePageChange  in componentDidUpdate.

When the issue happens, this is the series of events:

componentWillReceiveProps is called with nextProps with navigationState.index = 0
requestAnimationFrame is called with callback to set page to 0 because of new child count
componentDidUpdate is called with navigationState.index = 0 and page is set to 0
Navigation state changes with react-navigation
componentWillReceiveProps is called with nextProps with navigationState.index = 1
requestAnimationFrame is not called
componentDidUpdate is called with navigationState.index = 1 and page is set to 1
Callback for requestAnimationFrame from (2) is called and page is set back to 0

This means that the TabViewPager is on page 0 even though navigationState.index = 1.

To prevent this, we do not call the callback for requestAnimationFrame if the page has already been set after an animation frame request and the layout and children have not changed
We also update the callback and don't call requestAnimationFrame again if there is a animation frame request already pending

Thank you!

Haven't got time to test this, but will test before releasing.

I noticed while testing this that swiping stops working. Moving a tab by dragging works, but the swipe gesture no longer works.


ignore file not working

Do you read the FAQ?

[X ] Yes.
[ ] I am going to read now.

Describe the bug
Same bug as this fixed one: https://github.com/liximomo/vscode-sftp/issues/534. I ignore a file and it gets uploaded when hitting Sync Local->Remote on the folder
To Reproduce
Steps to reproduce the behavior:
Just sync a folder that contains the file .DS_Store after ignoring it on the config
Config
"ignore": [".vscode",".DS_Store",".git",".gitignore",".htaccess","data"]
Expected behavior
The file shouldn't be uploaded
Desktop (please complete the following information):

OS: Mac 13.2.1
VSCode Version: 1.76.1
Extension Version: v1.16.1

Extension Logs from Startup - required
[03-15 12:57:36] [info] uploading temp file: /mnt/test/.DS_Store.new
[03-15 12:57:37] [info] moving from: /mnt/test/.DS_Store.new to: /mnt/test/.DS_Store
[03-15 12:57:38] [info] local ➞ remote /Users/text/Documents/test/.DS_Store

"ignore": ["**/.vscode", "**/.git"] works for me.

Hi @YimianDai ,
Unfortunately with that format it doesn't on my mac:
"watcher": {         "files": "**/*",         "autoUpload": false,         "ignore": [             "**/.vscode",             "**/.DS_Store",             "**/.git",             "**/.gitignore",             "**/.htaccess",             "data"         ]     }
I upload the directory and the .DS_Store file appears on remote
I also tried putting .ds_store but same result, the file gets transmitted

ignore file not working for me too. How to deal it?


⚠ AGEG website (prod) has degraded performance

In 92ae495, AGEG website (prod) (https://www.ageg.ca/) experienced degraded performance:

HTTP code: 200
Response time: 2370 ms

Resolved: AGEG website (prod) performance has improved in f795eec.


very minor typo corrections

Thanks! Looks good to me though I am not sure where the conflicts come from, could rebase it on to the latest master?

I think something's wrogn with your fork of the repo:


Error permissions fixed

TypeError: permissions.hasPermission is not a function
Fixed

Properly fixed in 084dc114 along with other changes.


How can i use this Model for image matting?

Question
https://github.com/ZHKKKe/MODNet?tab=readme-ov-file
They have ONNX file and the python cli usage looks simple, but I can't find how to use with transformers.js.
!python -m demo.image_matting.colab.inference \
        --input-path demo/image_matting/colab/input \
        --output-path demo/image_matting/colab/output \
        --ckpt-path ./pretrained/modnet_photographic_portrait_matting.ckpt

Hi there 👋 I've opened a PR which will add support for MODNet to transformers.js. See the model card for example usage.

online demo: https://huggingface.co/spaces/oakerx/vanilla-js-portrait-matting


Add a table of contents for easy navigation

Sort of like this (from https://github.com/Ileriayo/markdown-badges):

added in https://github.com/inttter/md-badges/commit/0fc941e50ee32c287fa6c5558c9cf5824ce9a91c, plus back to top buttons


Implement sync and async node API split

This commit is mostly an experiment to investigate how we can split
the sync and async variants of functions with the least amount of code
duplication.  The approach taken in this commit comes with a bit of
overhead in terms of documentation, because functions SHOULD be
documented for both their sync and async variants.
It does come with the advantage that both sync and async APIs can be
made public via compile-options.

While I won't have the chance to finish this conversion in the next 2 days, I changed my mind about the validity of this change: I think it will make things a lot easier when building services in the ockam crate, where we use closures to call parsers for specific protocols. Because Rust doesn't have async closures (in stable) yet this will make it much easier to call Context functions.


Add quick update feature

Issue Label:

[ ] bug
[ ] feature
[x] enhancement

Description of bug or feature enhancement:
Using https://github.com/alexanderepstein/bsupdate add the update functionality to each one of the scripts. Allow the main installer script to take in an argument. If you call weather -u it should clone the repo and only install the new weather script.
OS and OS version:

[x] Mac
[x] Linux 32 Bit
[x] Linux 64 Bit

OS Version: All

Added https://github.com/alexanderepstein/Bash-Snippets/releases/tag/v1.1.0


miscategorization for protocol devs to adopt an alternative client

I'm having trouble understanding this.
"Risk of fragmenting development efforts leading to reduced coordination and increased potential for security vulnerabilities" is a reason for protocol devs to adopt an alternative client?

This seems incorrect.

Yeah this is just an error. The PDF version has it correct. @rencryptofish can you fix please?

yes i will fix this, thank you for spotting


Documentation error

Hi.  In your README.md, under neadle.request(), the API is defined as taking 5 arguments but the example shows it taking 4.  THE API doesn't show any arguents as optional [].
Thanks.
Blake

Oh, yes, the options argument is optional.

In your README.md, it would be great if the optional arguments had [ and ] around them so we know which ones are optional.  I noticed this is a problem with most of your API listings.

Will do. Thanks for the reminder!

The documentation does say, though, that both the options and the callback are optional. :)
All of Needle's request methods return a Readable stream, and both options and callback are optional.


Update WeekTimeline.vue

fix: When { locale: ‘zh-CN’ }, the weekly mode is displayed abnormally
Checklist
Please put "X" in the below checkboxes that apply::

[ ] If committing a bugfix, I have tested it in different browsers (Chrome, Firefox, Safari).
[ ] If committing a new feature, I have first submitted an issue (Please note: you are free to open PRs for non-issued features, but opening an issue increases your chance of a successful PR).
[ ] If committing a new feature, I have also written an appropriate test suite for it.

I have tested the following:

[ ] Qalendar component in month mode.
[ ] Qalendar component in week mode.
[ ] Qalendar component in day mode.
[ ] All of the above modes on emulated mobile view.
[ ] Dragging and dropping events.
[ ] Resizing events in day/week modes.
[ ] Clicking events to open event dialog.

This PR solves the following problem**.
insert your description.
How to test this PR**.
For example:

Feed X and Y in the events-Prop.
Click Z or A.
Confirm that B is displayed.

coverage: 96.773% (-0.01%) from 96.783% when pulling 49ba98028491697a727d6f4ad17c76ef26b81f25 on Kanbuduo:patch-1 into 873e4c24f9ca6b1e4c6e8ff94899e4c559f49f0b on tomosterlund:master.