feat: exposes gotoPeriod method to top level, removes unused event parameter

Checklist
Please put "X" in the below checkboxes that apply::

[ ] If committing a bugfix, I have tested it in different browsers (Chrome, Firefox, Safari).
[x] 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**.
Allows for more customization of the calendar. A fully custom header can be achieved by hiding the default one, calling for example @click="$refs.calendar.mode = 'month' to change mode, and with my pull request, utilize the existing goToPeriod method to change period rather than having to create a method that modifies selected-date.
I have run the existing Vitest suite, and I guess an improvement could be to create a test along with buttons in the same file as the Qalendar element, with the test running the method through the ref by clicking
How to test this PR**.
For example:

Add a template ref to wherever Qalendar is used
Create new buttons, with a click event that fires $refs.<refname>.goToPeriod('next') and $refs.<refname>.goToPeriod('previous')

Hi @MarcelR1998. Thanks for opening this PR 👍  I'll have a look at it after work tonight

coverage: 97.579% (+0.3%) from 97.262%
when pulling e75f3b4ed6d04ab6e0fc994c0aacb726e80f2240 on MarcelR1998:master
into 170d7597e64349920afbf72f207947f4be47592c on tomosterlund:master.

:tada: This PR is included in version 3.6.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:partying_face: :partying_face: <3<3


Introducing the new genus Mineirella in the subfamily Cheilanthoideae (Pteridaceae).

Name of taxon
Mineirella Ponce & Scataglini
Rank of taxon
Genus
Approximate number of species affected
Four species and one hybrid
Description of change
Three Cheilanthes species (C. geraniifolia, C. goyazensis and C. bradei) from Northern, Central Western and South Eastern Brazil,  appear segregated from the Cheilanthes s. str. clade in our molecular phylogeny (Ponce & Scataglini, 2020). These species form a highly supported clade, which is included in the large Adiantopsis-Doryopteris clade. The three species plus two morphologically related taxa, C. eriophora and C. steyermarkii, were transferred to the new genus Mineirella Ponce & Scataglini (Dec/2020 on line).
Among the taxa related to Mineirella are the remaining Cheilanthes and Pellaea species from Africa and Madagascar, formerly named "Choristosoria grade" by Yesilyurt et al. (2015) and “Pteridellastrum” Prantl, unranked group (cfr. Ponce & Scataglini, 2020). The relationships between these Mineirella-related species need further analysis to be confirmed.
Reason for change
The change proposed is supported by the molecular phylogenetic analysis. Also, the five species grow in xeric and semi-xeric habitats of basaltic rocks and sandstone substrates, and share the following morphological characteristics: rhizomes creeping, horizontal, elongate (vs. rhizomes ascending or decumbent, compact, in Cheilanthes); laminae pedate-lobate, pedate-pinnatifid, or pedate basally pinnate (vs.  laminae 1-4-pinnate in Cheilanthes).
Reference(s) for publication of the name
Ponce & Scataglini_2020_ Phylogeny of Cheilanthes.pdf
List the numbers of any related issues
No response
Code of Conduct

[X] I agree to follow the PPG Code of Conduct

This is a duplicate of #40 (it was mistakenly hidden due to a GitHub glitch for some period of time, during which the voting window closed).


Add Apple visionOS support

Motivation
Add the support of Apple VisionOS  121419
Solution
Add target_os = "visionos"

Can you add VisionOS to our CI and local testing in:

https://github.com/tokio-rs/mio/blob/15050b9a24ffb528e97c61aa789aa338093d6059/Makefile#L2
https://github.com/tokio-rs/mio/blob/15050b9a24ffb528e97c61aa789aa338093d6059/.github/workflows/ci.yml#L145

(same for the socket2 pr, but I'll add a comment there as well)

libc seems to not build (correctly) for visionOS, see CI.

see https://github.com/rust-lang/libc/pull/3568#issuecomment-2047308703

@Thomasdezeeuw same question; do you mind if I use target_env = "apple" ? Instead of changing this every time Apple releases a new device

libc seems to not build (correctly) for visionOS, see CI.

It should now be fix with https://github.com/rust-lang/rust/pull/124560. Though, I think CI may still fail because the default Xcode version for the macOS-latest runner is currently Xcode 15.0.1 but visionOS was added with Xcode 15.2 which means that xcrun --show-sdk-path --sdk xros will fail when called from rustc. One could fix this in CI with something like sudo xcode-select -s /Applications/Xcode_15.2.app but that's a bit too specific and brittle for my taste.

@QuentinPerez can you rebase this after #1787 is merged to give this another try in the cI?

I've updated this in #1795 to prepare for the changes coming in #1749.


API link correction in power-bi-embedded-get-started-sample.md

Putting in the right link to the Power BI Embedded API reference

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

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

TTYL, AZPRBOT;

@dvana
Please let me know whether to accept this PR. Thanks!

@pavlinap
Thank you for this contribution. I'll verify the change with the writer, and get right back to you.

#sign-off


Caliper vscode extension Treeview

Creation of treeview in the vscode extension to find and list all runtime configuration files (.yaml) present in the caliper project

The feature set of Caliper must be reviewed, and a resulting stable/major version should be supported with an extension, based on concrete requirements and dev workflows.


Always assign variable NUM_THREADS a string beginning with "-j"

since it is used in commands like "make $NUM_THREADS"

Hmmmmm .... I'd almost rather do the reverse here and assign it to something (even 1), and then in the make commands, put make -j${NUM_THREAD}. Thoughts?

I'm happy doing it either way.  It is the mix of sometimes one way, sometimes the other that we have now that we should definitely avoid.  I can create another PR that leaves NUM_THREADS string without the -j prefix in all cases, and update everywhere it is used, and people can pick their favorite.

@mestery, @jfingerh
I think "NUM_CORES" parameter value should come from either one of the following
- User configures by using the environment variable or
- Derived from the system cores if user not specified
The parameter NUM_THREADS value derived from the NUM_CORES and not expected from the user configured values.
The parameter "NUM_THREADS" value populated

NUM_THREADS = "-j{NUM_THREADs} if NUM_CORES is greater than 4. or
NUM_THREADS = ""

No need of specifying the "-j 1" option for non parallel compilation/build procedure I feel.

Lets go with #33 in lieu of this one.


[HOLD for payment 2022-01-11] Feature Request - Specify macOS in App Download links - Reported by @mananjadhav

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

Action Performed:

Open app
Go to settings > About > App download links

Expected Result:
It should show an unsupported format on Windows or specify MacOS for Desktop app link
Actual Result:
On Windows, when you click the NewExpensify.dmg file,  and if you have extraction tools like 7-zip, etc. then it shows a compressed zip, allowing you to extract Desktop app installer.
Workaround:
Unknown
Platform:

Where is this issue occurring?

Web
iOS
Android
Desktop App
Mobile Web

Version Number:
Reproducible in staging?:
Reproducible in production?:
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

Expensify/Expensify Issue URL:
Issue reported by: @mananjadhav
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1640615108125200
View all open jobs on GitHub

Triggered auto assignment to @conorpendergrast (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

Proposal
It is a small copy change, in en and es,
     desktop: {
          label: 'MacOS Desktop',
     },

Do we need to say "MacOS Desktop" Given that there's only one MacOS, it may be simpler to just say "MacOS"

Triggered auto assignment to @aldo-expensify (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

it may be simpler to just say "MacOS"

Yeah looks simpler.

Triggered auto assignment to @jliexpensify (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

In understand that for now, we will just change the copy to MacOS, right? Windows won't be supported.

we will just change the copy to MacOS, right?

Yeah

Posted
Internal - https://www.upwork.com/ab/applicants/1476699573967556608/job-details
External - https://www.upwork.com/jobs/~011d59f7e7b46d820c

Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat (Exported)

Triggered auto assignment to @marcaaron (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@mananjadhav 's Proposal looks good.
cc: @marcaaron
:ribbon: :eyes: :ribbon:

Looks good to me, but just want to point out that it should be macOS not MacOS ?
e.g.

📣 @mananjadhav You have been assigned to this job by @marcaaron!
Please apply to this job in Upwork and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑💻
Keep in mind: Code of Conduct | Contributing 📖

You’re right @marcaaron. “macOS” is the official brand name

Invite sent to @mananjadhav - apologies, have been OOO until today!

@jliexpensify No worries. Applied.

The solution for this issue has been :rocket: deployed to production :rocket: in version 1.1.24-19 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:

https://github.com/Expensify/App/pull/6973

If no regressions arise, payment will be issued on 2022-01-11. :confetti_ball:

Looks like this was deployed but failed. I'm just trying to get to the bottom of this before payment!

Alright spoke to @Jag96 about this one (as he's the mobile deployer) and he's confirmed we'll all good! WIll be paying and closing now.


cant pass PyDot objects via multiprocessing Pool.starmap()?

Hello,
i have a process that does this:

generate a few thousands graph, as PyDot objects (pydot.Dot(graph_type='digraph', simplify=False) specifically)
parses edges and nodes to enhance some information (set URLs, and stuff like that)
generate an SVG image for each graph

the SVG generation part is the slowest one, as it call /usr/bin/dot and it may take even some minutes for the most complex graphs.
so i had the brilliant (!) idea to investigate using multiprocessing Pool (so that i can limit of parallel processing going on), but i stumbled in some issues i cant really understand.
i wrote a simple function, that would the the parallel task:
     def write_svg_graph(graph, outfile):
        with open(outfile, 'wb') as f:
            f.write(graph.create(format='svg'))

stored my pairs of (PyDot, ) in the work list and then setup mp as:
    with mp.Pool(mp.cpu_count()-2) as p:
        p.starmap(write_svg_graph, work)

and this where the problems start; running this code sequentially (so just call write_svg_graph) from within the same script works just fine, but with mp i get:
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
  File "/usr/lib/python3.7/multiprocessing/pool.py", line 121, in worker
    result = (True, func(*args, **kwds))
  File "/usr/lib/python3.7/multiprocessing/pool.py", line 47, in starmapstar
    return list(itertools.starmap(args[0], args[1]))
  File "myscript.py", line 146, in write_svg_graph
    f.write(graph.create(format='svg'))
  File "/usr/lib/python3/dist-packages/pydot.py", line 1882, in create
    prog = self.prog
AttributeError: 'Dot' object has no attribute 'prog'
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "myscript.py", line 179, in <module>
    p.starmap(write_svg_graph, work)
  File "/usr/lib/python3.7/multiprocessing/pool.py", line 276, in starmap
    return self._map_async(func, iterable, starmapstar, chunksize).get()
  File "/usr/lib/python3.7/multiprocessing/pool.py", line 657, in get
    raise self._value
AttributeError: 'Dot' object has no attribute 'prog'

which makes no sense (to me). so i change the function to be:
    def write_svg_graph(graph, outfile):
        graph.set_prog('/usr/bin/dot')
        with open(outfile, 'wb') as f:
            f.write(graph.create(format='svg'))

(explicitly setting the prog property) but:
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
  File "/usr/lib/python3.7/multiprocessing/pool.py", line 121, in worker
    result = (True, func(*args, **kwds))
  File "/usr/lib/python3.7/multiprocessing/pool.py", line 47, in starmapstar
    return list(itertools.starmap(args[0], args[1]))
  File "myscript.py", line 146, in write_svg_graph
    f.write(graph.create(format='svg'))
  File "/usr/lib/python3/dist-packages/pydot.py", line 1898, in create
    for img in self.shape_files:
AttributeError: 'Dot' object has no attribute 'shape_files'
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "myscript.py", line 179, in <module>
    p.starmap(write_svg_graph, work)
  File "/usr/lib/python3.7/multiprocessing/pool.py", line 276, in starmap
    return self._map_async(func, iterable, starmapstar, chunksize).get()
  File "/usr/lib/python3.7/multiprocessing/pool.py", line 657, in get
    raise self._value
AttributeError: 'Dot' object has no attribute 'shape_files'

another property missing! but if i check the type of the object received in write_svg_file it's a PyDot.
Does anyone know whta's going on an how to parallelize the generation of SVG from PyDot objects via multiprocessing? thanks! :)

See my reply in pydot/pydot#217.


I get an error when i start with npm run build

Hi , when i try to build the project it seems like the tags doesn't render correctly this happened after i added an img element inside single-post-excerpt.njk
img
src="{{ post.data.image.src }}"
alt="{{ post.data.imageAlt.alt }}"
class="snippet__image"

Hi @Bouali-Ramzi!
Sorry I kept you waiting.
The fix for this is in #147 and it will be in v2.6.0.


[BUG] Missing 'Choose file to upload button'.

Describe the bug
When I loaded the Loadvideo N-SUITE node to my workflow, there is no upload file button like the description on the github. Drag and drop image wouldn't work either.
To Reproduce
Steps to reproduce the behavior:
Add 'Loadvideo' nodes to the workflow. But there is no upload video button on the node.
Expected behavior
I was expecting that there was a upload video button in the Loadvideo node like the description image. But there isn't any button like this.

Full log
This is MANDATORY. By log I mean all the text in the console from the time ComfyUI was started until the time of the reported bug:
Not sure what full log means but only thing I did was loading the Loadvideo nodes to my workflow.
Screenshots

Desktop (please complete the following information):

OS: [e.g. iOS] Windows 11
Browser [e.g. chrome, safari] Chrome
Version [e.g. 22] Chrome Version 126.0.6478.128 (Official Build) (64-bit)

Hi I have the same issue, there is no upload button and I cannot insert any video into that node.
My other LoadVideo nodes work just fine.
Ubuntu 22.04
Chromium Browser

See #70


Add support for Chromium browser

Hi,
Thank you very much for the plugin! It looks very cool and I would like to make the best use of it.
However, my standard browser is Chromium, which is not listed in the supported browser, although I see support for Chrome.
I tried playing with some of the configurations settings but wasn't able to load my Chromium bookmarks.
The closest I managed to get was to load my Chrome bookmarks in Chromium.
Is there an easy config fix that can allow me to load my Chromium bookmarks in Chrome?
If it can help, these are stored in ~/snap/chromium/common/chromium/Default/Bookmarks
Thank you so much in advance!

Hi, thanks for the feature request. Currently, I can provide support with only the default config directory which in linux should be ~/.config/chromium but I'm planning to add support to provide custom config directory.

add support to provide custom config directory.

tracking this in #29

Thank you very much your work!
Unfortunately I installed chromium through snap, meaning that the config directory is not the same as provided.
Looking forward for resolution of #29!


Media library improvements

The media library is about to be released - this is just a quick, public place for me to stash improvements prior to release. Most, if not all, of these will be converted to standalone issues.

double-click on an asset should insert the asset (when insertion is available)
display count of loaded assets in the UI

Need to split this out into two separate issues.

Do we yet have an issue for making the media library a proper page instead of just a modal?

@neutyp no, we still need that.

These other bits here aren't too big, the double click bit was more applicable when we were using a table. Closing.


Automated testing episode contains too many steps

There is risk that we lose focus on what this really is about.

Ran out of time but summarizing here what I think should be done:

we should focus here on the essence: automated testing, coupling it to PRs
provide a repo with a simple code
let learners generate/fork from it
let them add a workflow file
observe that actions pick it up
create a branch on the web
fix an issue
create PR
observe how it turns to green

All the other distraction should be removed. There is way too much and it distracts from what this is really about.

What is the progress here?
I'd be happy to setup and include examples and repositories for Julia and C++
but if you still plan on cutting down the episode that might be a lot of unnecessary work
for everyone.

I still think it's too many steps and this has not been reduced. I hope that for the upcoming September workshop we go through the open issues when preparing.


Enable access_log by default

After improvements in AccessLogger storing access logs has reasonable performance.
Thus I suggest using logs by default -- it's very useful and expected by users.
If log saving is still too expensive operation user may disable it by passing access_log=None as usual.

+1


error TS2371: parameter initialization is not accepted in abstract function

Since TS version 5.3 (https://github.com/microsoft/TypeScript/issues/56525) it is not allowed default values in interface definition. It causes error you can see on the fig. So I suggest this patch https://github.com/dotenvx/dotenvx/pull/419

will go out as 1.20.1 or greater. thank you for the patch.


add MTMalign

Adds MTMalign (opened after the compression merge now)

Lint is failing because the CI is running nextflow v23.04, but the code is using the arity tag which was added in 23.09 (comp the documentation ).
Is there a way to run the CI on a more recent version of nextflow?


Support EIP-3651 (Warm COINBASE) with shanghai feature

Reference geth Prepare function.
Description

Add shanghai feature to bus-mapping and zkevm-circuits.

Add a new access-list write for coinbase to begin_tx.

Type of change

[x] New feature (non-breaking change which adds functionality)

Test
Test cases of BeginTxGadget could succeed to run with and without shanghai feature.

the warm coin base bus mapping part and circuit part seem correct.
but we may need to make some changes to the geth-util/external-tracer.
instead of create chainConfig := params.ChainConfig inside golang, what about create this struct in rust and pass it as a json string to golang?
then when feature=shanghai, set params.ChainConfig.ShanghaiTime =  0.
When feature=shanghai,


Bulk edit allows tags to be added/removed that don't match the content type of the model

Environment

Nautobot version (Docker tag too if applicable): 1.5.20
Python version: 3.8.16
Database platform, version:
Middleware(s):

Steps to Reproduce

Create a tag with a specific content type (i.e. circuit)
Bulk edit one or more Devices
Open dropdown menu to add a tag

Expected Behavior
I expected the Circuit tag to not show up in the list of applicable tags to assign and the tag to not be able to be assigned.

Observed Behavior
All tags (any and all content types) are shown as available to add and do get added to the instances selected. They can also be removed via bulk edit. They cannot, however, be added or removed via the single edit form.

Two parts here it seems @joewesch:

The form shouldn't load them as options
It appears the association is not doing any validation?


create view statements not stored properly

most of the create view statements in the table looks similar , only till the AS
CREATE VIEW analytics.d_pre2010_claims  AS

@riazXrazor
Cannot reproduce it. Provide ddl's which causes problem
Here is the test draft but your example is needed
https://github.com/rvkulikov/pg-deps-management/blob/feature-6/tests/feature-6.sql
 src_nsp_name | src_rel_name | dep_nsp_name | dep_rel_name | ddl_order |                              ddl_statement                               |            ddl_at
--------------+--------------+--------------+--------------+-----------+--------------------------------------------------------------------------+-------------------------------
 feature6     | table1       | feature6     | view2        |         1 | ALTER VIEW feature6.view2 OWNER TO postgres                              | 2022-05-14 12:25:15.931911+00
 feature6     | table1       | feature6     | view2        |         2 | GRANT INSERT ON feature6.view2 TO postgres WITH GRANT OPTION             | 2022-05-14 12:25:15.931911+00
 feature6     | table1       | feature6     | view2        |         3 | GRANT SELECT ON feature6.view2 TO postgres WITH GRANT OPTION             | 2022-05-14 12:25:15.931911+00
 feature6     | table1       | feature6     | view2        |         4 | GRANT UPDATE ON feature6.view2 TO postgres WITH GRANT OPTION             | 2022-05-14 12:25:15.931911+00
 feature6     | table1       | feature6     | view2        |         5 | GRANT DELETE ON feature6.view2 TO postgres WITH GRANT OPTION             | 2022-05-14 12:25:15.931911+00
 feature6     | table1       | feature6     | view2        |         6 | GRANT TRUNCATE ON feature6.view2 TO postgres WITH GRANT OPTION           | 2022-05-14 12:25:15.931911+00
 feature6     | table1       | feature6     | view2        |         7 | GRANT REFERENCES ON feature6.view2 TO postgres WITH GRANT OPTION         | 2022-05-14 12:25:15.931911+00
 feature6     | table1       | feature6     | view2        |         8 | GRANT TRIGGER ON feature6.view2 TO postgres WITH GRANT OPTION            | 2022-05-14 12:25:15.931911+00
 feature6     | table1       | feature6     | view2        |         9 | GRANT REFERENCES (col_1) ON feature6.view2 TO postgres WITH GRANT OPTION | 2022-05-14 12:25:15.931911+00
 feature6     | table1       | feature6     | view2        |        10 | GRANT SELECT (col_2) ON feature6.view2 TO postgres WITH GRANT OPTION     | 2022-05-14 12:25:15.931911+00
 feature6     | table1       | feature6     | view2        |        11 | GRANT UPDATE (col_1) ON feature6.view2 TO postgres WITH GRANT OPTION     | 2022-05-14 12:25:15.931911+00
 feature6     | table1       | feature6     | view2        |        12 | GRANT REFERENCES (col_3) ON feature6.view2 TO postgres WITH GRANT OPTION | 2022-05-14 12:25:15.931911+00
 feature6     | table1       | feature6     | view2        |        13 | GRANT UPDATE (col_3) ON feature6.view2 TO postgres WITH GRANT OPTION     | 2022-05-14 12:25:15.931911+00
 feature6     | table1       | feature6     | view2        |        14 | GRANT SELECT (col_3) ON feature6.view2 TO postgres WITH GRANT OPTION     | 2022-05-14 12:25:15.931911+00
 feature6     | table1       | feature6     | view2        |        15 | GRANT INSERT (col_3) ON feature6.view2 TO postgres WITH GRANT OPTION     | 2022-05-14 12:25:15.931911+00
 feature6     | table1       | feature6     | view2        |        16 | GRANT SELECT (col_1) ON feature6.view2 TO postgres WITH GRANT OPTION     | 2022-05-14 12:25:15.931911+00
 feature6     | table1       | feature6     | view2        |        17 | GRANT INSERT (col_1) ON feature6.view2 TO postgres WITH GRANT OPTION     | 2022-05-14 12:25:15.931911+00
 feature6     | table1       | feature6     | view2        |        18 | GRANT UPDATE (col_2) ON feature6.view2 TO postgres WITH GRANT OPTION     | 2022-05-14 12:25:15.931911+00
 feature6     | table1       | feature6     | view2        |        19 | GRANT INSERT (col_2) ON feature6.view2 TO postgres WITH GRANT OPTION     | 2022-05-14 12:25:15.931911+00
 feature6     | table1       | feature6     | view2        |        20 | GRANT REFERENCES (col_2) ON feature6.view2 TO postgres WITH GRANT OPTION | 2022-05-14 12:25:15.931911+00
 feature6     | table1       | feature6     | view2        |        21 | CREATE VIEW feature6.view2  AS  SELECT view1.col_1,                     +| 2022-05-14 12:25:15.931911+00
              |              |              |              |           |     view1.col_2,                                                        +|
              |              |              |              |           |     view1.col_3                                                         +|
              |              |              |              |           |    FROM feature6.view1;                                                  |
 feature6     | table1       | feature6     | view1        |        22 | ALTER VIEW feature6.view1 OWNER TO postgres                              | 2022-05-14 12:25:15.931911+00
 feature6     | table1       | feature6     | view1        |        23 | GRANT INSERT ON feature6.view1 TO postgres WITH GRANT OPTION             | 2022-05-14 12:25:15.931911+00
 feature6     | table1       | feature6     | view1        |        24 | GRANT SELECT ON feature6.view1 TO postgres WITH GRANT OPTION             | 2022-05-14 12:25:15.931911+00
 feature6     | table1       | feature6     | view1        |        25 | GRANT UPDATE ON feature6.view1 TO postgres WITH GRANT OPTION             | 2022-05-14 12:25:15.931911+00
 feature6     | table1       | feature6     | view1        |        26 | GRANT DELETE ON feature6.view1 TO postgres WITH GRANT OPTION             | 2022-05-14 12:25:15.931911+00
 feature6     | table1       | feature6     | view1        |        27 | GRANT TRUNCATE ON feature6.view1 TO postgres WITH GRANT OPTION           | 2022-05-14 12:25:15.931911+00
 feature6     | table1       | feature6     | view1        |        28 | GRANT REFERENCES ON feature6.view1 TO postgres WITH GRANT OPTION         | 2022-05-14 12:25:15.931911+00
 feature6     | table1       | feature6     | view1        |        29 | GRANT TRIGGER ON feature6.view1 TO postgres WITH GRANT OPTION            | 2022-05-14 12:25:15.931911+00
 feature6     | table1       | feature6     | view1        |        30 | GRANT UPDATE (col_1) ON feature6.view1 TO postgres WITH GRANT OPTION     | 2022-05-14 12:25:15.931911+00
 feature6     | table1       | feature6     | view1        |        31 | GRANT INSERT (col_1) ON feature6.view1 TO postgres WITH GRANT OPTION     | 2022-05-14 12:25:15.931911+00
 feature6     | table1       | feature6     | view1        |        32 | GRANT UPDATE (col_3) ON feature6.view1 TO postgres WITH GRANT OPTION     | 2022-05-14 12:25:15.931911+00
 feature6     | table1       | feature6     | view1        |        33 | GRANT SELECT (col_3) ON feature6.view1 TO postgres WITH GRANT OPTION     | 2022-05-14 12:25:15.931911+00
 feature6     | table1       | feature6     | view1        |        34 | GRANT REFERENCES (col_2) ON feature6.view1 TO postgres WITH GRANT OPTION | 2022-05-14 12:25:15.931911+00
 feature6     | table1       | feature6     | view1        |        35 | GRANT SELECT (col_2) ON feature6.view1 TO postgres WITH GRANT OPTION     | 2022-05-14 12:25:15.931911+00
 feature6     | table1       | feature6     | view1        |        36 | GRANT REFERENCES (col_3) ON feature6.view1 TO postgres WITH GRANT OPTION | 2022-05-14 12:25:15.931911+00
 feature6     | table1       | feature6     | view1        |        37 | GRANT REFERENCES (col_1) ON feature6.view1 TO postgres WITH GRANT OPTION | 2022-05-14 12:25:15.931911+00
 feature6     | table1       | feature6     | view1        |        38 | GRANT INSERT (col_3) ON feature6.view1 TO postgres WITH GRANT OPTION     | 2022-05-14 12:25:15.931911+00
 feature6     | table1       | feature6     | view1        |        39 | GRANT SELECT (col_1) ON feature6.view1 TO postgres WITH GRANT OPTION     | 2022-05-14 12:25:15.931911+00
 feature6     | table1       | feature6     | view1        |        40 | GRANT UPDATE (col_2) ON feature6.view1 TO postgres WITH GRANT OPTION     | 2022-05-14 12:25:15.931911+00
 feature6     | table1       | feature6     | view1        |        41 | GRANT INSERT (col_2) ON feature6.view1 TO postgres WITH GRANT OPTION     | 2022-05-14 12:25:15.931911+00
 feature6     | table1       | feature6     | view1        |        42 | CREATE VIEW feature6.view1  AS  SELECT table1.col_1,                    +| 2022-05-14 12:25:15.931911+00
              |              |              |              |           |     table1.col_2,                                                       +|
              |              |              |              |           |     table1.col_3                                                        +|
              |              |              |              |           |    FROM feature6.table1;                                                 |
(42 rows)


Allow user to specify docking position

I cannot find a way to programmatically specify the docking position of a tab.  I can dock tabs by drag and drop but I'm looking for something equivalent to the DockPanel.Dock attached property that I can set on the TabItem.

Yeah...this is one of the last big holes in the API...hopefully I will get to it soon.

@ButchersBoy can you also take into consideration this when you will implement side panels (tool windows)? Possibility to control tab position from MVVM would be a greate feature

Will do, but as discussed previously, phased in.  First thing we need is a method to be able to split the Layout in code on the fly.  Then, when in used in conjunction with the existing TabablzControl.AddItem method you will be able to create everything you can currently do with the mouse in code.  We already have the query API, so completing this would leave you fully able to save/restore the layout in user code.
So initially, lookout for some kind of Layout.Split method...I'll try and get to this in the next week or two.

ok, looking forward to this.

You can now split the layout in code using the Layout.Branch method.  Please run up the test app and play with this screen:

Search for usages of Layout.Branch to see how to use it (documentation is scarce at the moment).
Couple of things:

ratio is included in the API, but not plugged in as of writing
when the windows get small, they suddenly expand in size when tearing out.  I am aware of this issue.

One more issue: when maximize window, it does not fit to the task bar (dont know is it already was reported)
And another regarding dragablz: Could you make that if I drop tab into center, it not tirn to mdi window by default, but just appears it the center like in VS? Just separate tab in it own container with width and height by default like all other tabs in your examples? Is it possible?

@QuantumDeveloper Set this value to False (or just remove):
<dockablz:Layout IsFloatDropZoneEnabled="True" />
This will remove the central zone for dropping into a tool window/MDI.  There isn't one for dropping into the central tab zone as a) there is no central tab zone with this layout concept and b) individual branches can get too small.
Hopefully this will become apparent over the next couple of updates; I've got a couple more things coming which will show where this is going...

@ButchersBoy aha, ok. Sorry. I thought that central drop zone is also mde for tabs.

Well kinda...the idea being that if you want, you can take a tab, and drop it straight into a tool window...so a kinda slightly different take on your VS type docking.

Hm... ok, I understood. Will wait your further updates.

The  Layout.Branch() method now accepts firstItemProportion so size of a branch can be set from code.
And you can get the current proportions of a split from Branch.GetFirstProportion()
This is a pretty big step, now Windows/tabs/branches can all be restored from code (Floating windows still to do), if you follow a sequence of steps to restore your layout.  You can see this from this demo page:

Hi thank you for this awesome library. An issue i can't seem to resolve is how to set the position of the floating item. By default it is positioned to the top left of my app window. Is it possible to change this default?
Thank you

@simplykayy there are still some parts of the API to finalise around the floating items; the big one being able to manage where the initially appear...so work on that is pending.

Thank you for your prompt feedback. Another question, the TabablzControl ClosingItemCallback routed event, does that work with blend sdk interactive triggers? I have gone down the route of MVVM and was thinking i'd hook that event into the blend sdk interaction event but it doesn't seem to work....any guidance. Below is a sample code =>
<dragablz:TabablzControl ShowDefaultCloseButton="True" ItemsSource="{Binding TabContents}"
AdjacentHeaderItemOffset="1" Margin="0 5 5 5" IsEnabled="True"
Visibility="{Binding ShowDeviceInteraction, Converter={StaticResource BooleanToVisibilityConverter}}">
<i:Interaction.Triggers>
<i:EventTrigger EventName="ClosingItemCallback">
<i:InvokeCommandAction Command="{Binding OnTabClosedCommand}" />
</i:EventTrigger>
</i:Interaction.Triggers>
<TabControl.ContentTemplate>

</TabControl.ContentTemplate>
</dragablz:TabablzControl>


[FEATURE] support custom disabled attribute

When I added the attributeBinding for id it makes the button no longer clickable. I could use some help understanding why this does not work.
Thanks!

Would it be possible to merge this w/out the let + ember-cli upgrade that's blocking us currently? If we can solve/help solve the "click" bug shown in the last commit everything else looks solid- correct?

I've realized that adding a dynamic id was going to be problematic after writing the failing test and getting into the helper that trying to do the idBinding. I have since reverted the changes made to this. As the PR stands, would it be possible to get this merged and then have the ember-cli upgrade occur later as @toranb suggested? I can submit a second PR for the upgrade.
Thanks!

@toranb we're stuck on the upgrade due to a bug in HTMLBars. I would prefer to suss that out first than add additional features.
In the mean-time if you guys want this functionality today you can extend the component within your own app

:+1: for this feature. Awesome.

@bcardarella what is the bug in HTMLBars that is blocking this again? Is it in the pipe already or does someone need to champion this on the ember side?

Bug should be fixed as of 1.13 (was fixed in https://github.com/tildeio/htmlbars/pull/355/).

@rwjblue I noticed that in ember 1.12.1 we get this warning now
DEPRECATION: You're attempting to render a view by passing disableWhenBinding to a view helper, but this syntax is deprecated. You should use `disableWhen=someValue` instead.

If my "disableWhen" is more complex (something like the below) ... how exactly should I update this? or is this a binding update inside the async button itself to support this?
disableWhen=model.section.isNotDirty

@toranb - I don't understand the question, you can definitely use disableWhen=model.foo.isDirty.  Using anything suffixed with Binding in a template is going to issue that deprecation (and that functionality will be removed in Ember 2.0).

So in ember 2.x what will need to change? If you cannot use bindings like this that is :) **newb question

Ah it looks like 1.13 introduces an entire next level refactor. I'm not seeing this after the upgrade
DEPRECATION: The helper "async-button" is a deprecated bare function helper. Please use Ember.Helper.build to wrap helper functions.

Yes, we did it to support ordered arguments.  @danmcclain plans to refactor to the 1.13 supported positionalParams API.

Will this be a supported feature or should we just fork to our own?

Just checking in to see if this is going to get pulled in or if you have additional work that needs to be done. I would like to continue using the addon but there has not been a new version in 6 months and this feature is something that we need.
Thanks!

This needs a rebase, which will remove a decent amount of files from the commit, since there was a separate update to ember-cli 1.13.8 merged in

@danmcclain thanks for pointing out that I was out of date. I have since merged master back in. Please let me know how this looks.
Additionally, I have updated based on your code comment. Thanks for the simplification.

Could you squash your commits please? I had one last comment

@danmcclain I have squashed the commits. Please let me know what else needs to change. Thanks for all your help!

Also, there should be an update to the readme for this feature :+1:

@williamsbdev nice work on this! thanks for bringing it back to life !!!

@danmcclain README updated.

@williamsbdev thank you!

@danmcclain @bcardarella thank you! Will there be a new release soon then too?

Just published 0.6.0

@bcardarella fantastic! Thank you so much!

@bcardarella this 0.6.0 release allowed us to upgrade beyond Ember 1.13.5. I really appreciate your time getting this merged in and released.

@williamsbdev thank you for being patient with us! We've been bad OSS releasers recently :(

@bcardarella no worries. It's tough work doing client/product work and trying to keep up with OSS. Dockyard has a lot of OSS (compared to me) and sometimes I get overwhelmed the little I help maintain.


Creating Physical Component

Hello! I was trying to create a PhysicalComponent by using capellambse.
Here's the code I'm using:

        import capellambse
        from pathlib import Path

        def create_physical_component(model_path):
            # Upload model
            model = capellambse.model.MelodyModel(model_path)

            # Access to the Physical Architecture
            physical_architecture = model.pa

            # Find the parent component for the new one
            parent_component = physical_architecture.all_components.by_name("Physical System")
            if not parent_component:
                raise ValueError("Parent component 'Physical System' not foundd.")

            # Create a new PhysicalComponent as owned_component of the parent component
            new_physical_component = parent_component.owned_components.create(
                name="New component 1",
                description="This component has be created with Python."
            )

            new_physical_component.nature   = 'NODE'
            new_physical_component.kind     = 'UNSET'

            # Apply PVMT domains and groups
            for domain in model.pvmt.domains:
                print(f"Processing domain: {domain.name}")
                for group in domain.groups:
                    if group.applies_to(new_physical_component):
                        group.apply(new_physical_component)
                        print(f"Applied group '{group.name}' from domain '{domain.name}'.")

            # Assign the property
            for groupdef in new_physical_component.pvmt.groupdefs:
                for prop_val in groupdef.property_values:
                    if prop_val.name == 'Property':
                        literals = prop_val.value.pvmt.owner.parent.literals
                        target_literal = next((lit for lit in literals if lit.name == '2'), None)
                        if target_literal:
                            prop_val.value = target_literal
                            print(f"Set 'Property' to '{target_literal.name}' in domain '{groupdef.fullname}'.")

            # Save the model
            model.save()

            print(f"Physical Component '{new_physical_component.name}' created successfully!")

        path = str(Path(__file__).resolve())
        # .aird file path
        capella_path = "\\path\\"

        model_name = "file.aird"
        model_path = path + capella_path + model_name
        create_physical_component(model_path)_

As I open the Capella model, the component is created, but It's not related to the parent_component and as soon as I try to see the Properties I get the following error:
"org.polarsys.capella.core.data.capellacore.EnumerationPropertyType.getOwnedLiterals()" because the return value of "org.polarsys.capella.core.data.capellacore.EnumerationPropertyValue.getType()" is null
I've been trying searching for a solution, but I found nothing. Can you help me?

Could you please re-test with the changes from #487? You can install it with:
pip install git+https://github.com/DSD-DBS/py-capellambse@pvmt-enum-fix

(Use pip install -U capellambse to return to the latest release.)

Thanks! I managed to solve the problem.
However, may I ask why the component is not linked to its parent immediately after creation? When I enter the Capella diagram, the component appears, but the link to the parent is missing and cannot be established manually. Interestingly, the link works only when I copy and paste the component.
From what I’ve found, the issue seems to be related to the Part, which is not automatically created when using the owned_components.create function.

From what I’ve found, the issue seems to be related to the Part, which is not automatically created when using the owned_components.create function.

Yes, that's exactly right. And curiously, I also found that we don't even properly expose Parts yet, so I went ahead and added that.
With the just released capellambse v0.6.11, that is now possible, although still has to be done explicitly. You can do so like this:
    ...
    # Create a new PhysicalComponent as owned_component of the parent component
    new_physical_component = parent_component.owned_components.create(
        name="New component 1",
        description="This component has be created with Python."
    )

    new_physical_component.nature   = 'NODE'
    new_physical_component.kind     = 'UNSET'

    # Create a Part for the new PhysicalComponent
    parent_component.owned_features.create(
        "Part", name=new_physical_component.name, type=new_physical_component
    )

    # Apply PVMT domains and groups
    ...


Fix not wanted unneeded_control_parentheses fixer for clone

If the clone argument contains a ternary, parenthesis should not be removed.
Closes #1942.
I started this PR by just adding test proofs. I'll try to fix it ASAP.
If anybody have a suggestion to add tests or for the fix, feel free to comment. :+1:
cc @jsor

I provided the fix, PR ready for review. :+1:

:+1:

:+1:

Thank you @Soullivaneuh.


Transpile Epic Reminder JS separately for client-side

What is this?
Use @babel/standalone to transpile the Epic Reminder JS separately, using a preset that's more suitable for client-side JS code. It should be outputting pure ES5 to be compatible with any browser captured by the values in browserslist in package.json.
Why?
Because this code runs on the client and we need to support older browsers like IE11. Previously we solved this by writing the JS free from any ES6+ features, but this isn't ideal from a Dev X perspective so this adds custom settings for this particular file, so developers don't have to care about ES6+ support for the features they're using anywhere in the app (whether it runs on server or client).

Yeah, we seem to be solving this differently across several different modules at the moment. Working to try and find a solution we can all use, but for now this makes sense!


When vehicle get out of gaz it doesn't stop

When tank fuel is empty, the vehicles can be driven, fuel tank management has no impact on speed when it becomes low, and no imapct on driveable aspect when it get empty.

This is due to FiveM transfer to the newest patch. Access to native vehicle's fuel level (the one displayed on vehicle's dashboard) and RPM is temporarily impossible. Mod utilises default vehicle behaviour for low native fuel level, like engine stuttering, torque inconsistency, etc., so as native fuel level can't be changed by now this behaviour is unavailable. I will add engine cut off simulation until native fuel level becomes available again.


Provision an instance of CartoDB on Vagrant

Generally follows the install instructions from:
http://cartodb.readthedocs.org/en/latest/install.html
Instructions for use are in README.md

This PR does not currently fit the format of our other ansible-* repositories. Additional work would need to be done for that. But I figured that wasn't terribly pressing atm since our primary use case is to use this repo as a provisioner for a cartodb dev environment, rather than using it in other ansible roles.

Might make sense to rename the repository to vagrant-cartodb to address your concerns over it not aligning with the existing ansible-* repositories.

Looks good to me as a first start. I'll let this run overnight to test.

I like the suggestion to do change the repo name to vagrant-cartodb, I'll do that once this PR is merged.

@hectcastro @ddohler Updated with a few more commits that should address almost all the comments and cleanup a few extra minor things. Feel free to take another look, I'm provisioning a fresh box atm.

Current changeset provisioned successfully, although I did get a pip error about mismatched hashes when downloading packages for the requirements.txt file. No issues on followup reprovision.

:+1:

Provisioned clearly here too. Good job wrangling all of these things together. :+1:

Thanks for the second round of feedback, will make a few adjustments, then merge and update the repository name.


Enabling the pure Neumann bc for all cap surfaces

The code can essentially enable full Neumann for cap surfaces. There are a few minor things to take into account.

The inflow file shall allow num_nbc to be zero;
The backflow stabilization term shall be turned off, at least for the `inflow' caps;

With the above two, one can enable the full Neumann cap bc by setting num_inlet to zero, and prepare all caps meshes with the name starting by outflow_vol_.

It can be better if we rename things with inflow / outflow by velocity / traction.
In doing so, it can be less confusing by setting all cap surfaces as traction bcs.


Manual Cache Clearing

Hello Jonathan
I know QueryCacheManager.IsAutoExpireCacheEnabled = true is not yet supported in Core.
Is it possible to implement manual flushing like
context.Accounts.ClearCache() which cleans all cache entries for Account entity?
So I can work with context.Accounts.FromCache() without specifying any tags and clean all cache entries related to Account when I need it
Thank you

Hello @SergeyBalanEmpeek ,
I don't think we have something like this but we will certainly look to it this week.
Best Regards,
Jon

Performance Libraries
context.BulkInsert(list, options => options.BatchSize = 1000);
Entity Framework Extensions • Entity Framework Classic • Bulk Operations •  Dapper Plus
Runtime Evaluation
Eval.Execute("x + y", new {x = 1, y = 2}); // return 3
C# Eval Function • SQL Eval Function

Hello @SergeyBalanEmpeek ,
The new version has been released.
We added the method ExpireCache() to the DbSet and ExpireType to the QueryCacheManager.
We also added the missing method ExpireAll to the QueryCacheManager for EF Core
Let me know if that's what you were looking for.

Thank you @JonathanMagnan very much, it works as expected


text change

https://nextjs.org/learn/dashboard-app/setting-up-your-database
If you continue to experience issues while seeding your Verce Postgres database, please open a ...
please fix forget character in "Verce" -> "Vercel"

Thank you!


Use spotless plugin for formating

Uses the spotless plugin for formatting.  Will check formatting in the initialize phase (so its before codegen & native builds), and auto-format can be ran with mvn spotless:apply.  We can use it for the Kotlin API as well once diffplug/spotless#142 is fixed.
I have it set to ratchet from master (i.e. only check changed files), do we want to do a big "apply formatting everywhere" PR (it's ~500 files)?

I'm not convinced about reformatting source code with Maven, any reason why simply using Google Java Style formatting isn't enough?

It differs a bit from the actual plugin, at least for me (things like line length and single line comments).  Plus, it's easy to forget and have a bunch of improperly formatted files end up in the repo, like we have now.  This doesn't actually do any formatting, it just checks it as part of install, like the lint checks.

@rnett I should have labeled that PR with CI build before merging... can you please check the multiple errors we are facing on many platforms from GitHub Actions? I might need
to revert that PR unless you find a quick fix for it, thanks

Ugh, it seems to be that --add-exports isn't recognized for JDK 8, but is required for 16.  I'll remove and ignore that file for now.

Do you or @Craigacp know if there's a way to have a version-dependent .mvn/jvm.config file?

See #324.


Update tutorial to use use_effect_deps instead of use_effect

Description
Very small update to the tutorial in the "Fetching data (using external REST API)" section to use use_effect_deps instead of use_effect to prevent an infinite loop of fetching data, updating state, rendering, fetching data, updating state etc.

Thank you for the correction ❤


[WIP] Refactoring

Hey @jmaupetit, could you take a look at our staging instance for some random testing?

Looks good to me 🎉


[Feature]: Context Parallelism

🚀 The feature, motivation and pitch
As we can see, Google Gemini can support up to million tokens and to serve longer context length, we have to do context parallelism, which means, split the input matrix on sequence dimension to multi-devices.
I myself have experience on context parallelism and vLLM (i did Whisper fork), and I am ready to support Context Parallelism development for vLLM. This issue will be long to explain the idea from my side.
Context Parallelism is utilizing Blockwise Attention, https://arxiv.org/abs/2305.19370, which,

Each Q block must access all KV blocks to compute local attentions and LSEs, after that aggregate.

Improvement of Blockwise Attention,

Ring Attention, only make sense for gpus > 2, https://arxiv.org/abs/2310.01889
Tree Attention, topology aware, only make sense for multiple worlds aka multi-nodes, https://arxiv.org/abs/2408.04093
Ring and Tree just to improve communication overhead, but still, each Q block must access all KV blocks and aggregate.

Assume variables
num_gpus = 2
batch_size = 1
num_head = 32
head_dim = 128

Why only 2 gpus? Easy to draw at below. But can be any size of devices.
We also assumed one device only fit max 50k context length.

Long context
Assumed the user input 100k context length, which is the long Input, one device no longer able fit. Because we got 2 GPUs, so we must chunk the input, so each GPU will received 50k context length.
Prefill
Feed into multi GPUs
User input [100k tokens] in CPU, so there are 2 ways to pass to multi GPUs,

CPU [100k] -> GPU 0 -> chunk [50k, 50k] -> dist.scatter -> [50k] GPU 0, [50k] GPU 1, communication overhead.
CPU [100k] -> chunk [50k, 50k], loop assign using 'device:{rank}'

Blockwise Attention
Each GPU will calculate their own Blockwise Attention and can decide which communication need to use,

if num_gpus > 2 and multi nodes, use tree.
else, use ring.

Data movement
Now for each GPU,

[50k] -> embedding [50k, dim] -> QKV linear, QKV [3, 50k, num_head, head_dim]
Do blockwise attention,

As stated, we actually just want to last timestamp for next tokens prediction.
3. Store KV in cache, as you can see, the KV cache exist in GPU 0 and GPU 1. GPU 0 store the first 50k KV and GPU 1 store the second 50k KV.
Example prefill blockwise attention using Xformers, https://github.com/mesolitica/context-parallelism-xformers/blob/master/playground/prefill-sdpa.ipynb
Next token / step

Because next token prediction is just [1, dim], so the computation only can be done on one GPU, GPU 0, but the KV Cache stored in both GPU 0 and GPU 1.
[1, dim] -> QKV linear, QKV [3, 1, num_head, head_dim], and do blockwise attention. GPU 0 need to gather KV Cache from GPU 0 and GPU 1.

Example step blockwise attention using Xformers, https://github.com/mesolitica/context-parallelism-xformers/blob/master/playground/step-sdpa.ipynb
Flash attention also returned LSE, should be able to the same blockwise.
During prefill, context parallelism use all GPUs, during step, only one GPU been use.
Short context
Assumed the user input 100 context length, one GPU is enough, GPU 0.
Prefill
Because the user input fit in one GPU, GPU 0, we just do normal attention.
Next token / step

During steps, there is might possible that KV cache generated longer than 50k, so we need to add new KV cache into GPU 1.
If the KV Cache stored on more than one GPU, we have to do blockwise attention.

Discussion

We need to start develop KV Cache for multi GPUs.
We need to start develop Blockwise Attention for prefilling.
We need to start develop switching mode between normal attention and blockwise attention for long prefill and step on long kv cache.

I am super excited to serve longer context length beyond one GPU and ready to develop this together.

thanks for the great writeup, looking forward to the feature!

When will it be realized ?

@youkaichao interested on this? i am open for any discussion.

@huseinzol05 you can send email to<EMAIL_ADDRESS>for direct discussion with the team.

interested. @huseinzol05

just got time to look it back, https://github.com/facebookresearch/xformers/blob/main/xformers/ops/fmha/flash.py#L596
As we know during prefill, all devices must received all KV chunks to calculate the attention, using example above, 2 devices each 50k seq len,
device 0: 50k q0k0v0
device 1: 50k q1k1v1
So the blockwise attention calculation,
device 0: 50k q0k0v0 + 50k q0k1v1
device 1: 50k q1k0v0 + 50k q1k1v1
(+) denoted as blockwise attention.
For causal base, attention mask is necessary, so the attention mask originally is [100k, 100k] and attention mask we must chunk properly, to become mask0 = [50k, 100k] and mask1 = [50k, 100k], so the blockwise attention calculation,
device 0: 50k (q0k0 * mask0[:, 0:50k])v0 + 50k q0k1v1 * mask0[:, 50k:100k]
device 0: 50k (q1k0 * mask1[:, 0:50k])v0 + 50k q1k1v1 * mask1[:, 50k:100k]
You can see this slicing from original https://github.com/forhaoliu/ringattention/blob/main/ringattention/ringattention_pallas_tpu.py#L61
xformers doesnt support torch.Tensor bias attention, so the idea here we have to chunk attention mask to make sure the blockwise attention also do proper masking.

Interested. Is there any branch that we can refer to? @huseinzol05

no, no branch yet, still do some grounding work, also looped in https://github.com/zhuzilin/ring-flash-attention/issues/54


Updates the 100% fluid grid

Updates the 100% version of Amazium's grid.

disappointed its not 101%


Adds graphs back into the app, but in a way that's more opt-in

Styling for tabs, different names, and a default to be displayed for the 'Benefit Changes' graph when no benefits have been selected.

@wacii: Thanks, and you're probably right. That snapshot... may be premature...


Content persist with appropriate styles from editor mode to preview mode and vica versa

Description
Now the content in the preview mode is getting displayed properly with appropriate styles in it . For achieving this solution I have extracted all the content from the quill Editor and the respective styles applied on the particular and converted that into html and setted as currentStepContent .
Related Issue
#28 fixed
Motivation and Context
The content in the editor mode wasn't persisting in the preview mode .
Test Results

Video Reference
https://github.com/c2siorg/Codelabz/assets/112710558/2b460c6b-0987-4d5a-91d0-a03174429764
Types of changes

✅ Bug fix (non-breaking change which fixes an issue)
❎ New feature (non-breaking change which adds functionality)
❎ Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

✅ My code follows the code style of this project.
❎ My change requires a change to the documentation.
✅ All new and existing tests passed.

@Sarfraz-droid @Maahi10001 @Shiva-Nanda @shivareddy6 @ABHISHEK-PANDEY2 please review my pull request


What is this for?

Hi, just stumbled upon this randomly. What is this project actually for? If it's an API does it run somewhere? If I have a google account, can I use it for something? It seems to try follow every possible best engineering practice - documents all the methods, says Mongo somewhere, you can run it from docker - but I don't know why, is it just like, a testing ground for software engineering practices?

It's a pet project of mine to host information about coders. Thanks for visiting! 😄


Non-equatable requests in 2.0

Hi!
Are there plans to readd the hooks for non-equatable values returned from state requests? In 1.X it was possible to pass own == function that would always return false for such cases. In 2.0 there doesn't seem to be one left.
Best,

@eimantas ,
Speaking of the devil, I've recently opened a pull request at RxFeedback.kt and pointed the same issue there.
@kzaher ,

Any reasons why this overload was removed?
If we want to support it, do we need it to support it for the most general form too?
In Kotlin, I managed to do it for the simple react without having to introduce it to the most general form. Not sure if this is what you want...

Thanks,
Elie

Are there plans to readd the hooks for non-equatable values returned from state requests? In 1.X it was possible to pass own == function that would always return false for such cases. In 2.0 there doesn't seem to be one left.

This was a crutch until compiler was ready to make auto Equatable convenient. It was kind of a practical hack.
Don't think we need this anymore.

Don't think we need this anymore.

Do you mean there is no need to support non-equatable requests?

This was a crutch until compiler was ready to make auto Equatable convenient. It was kind of a practical hack.

What about non-nominal types returned from states?

I've also run into this problem. I've got a large project with hundreds of state structs that don't have an Equatable operator. I started to implement these, but after a couple of hours gave up as I hadn't given my developers instructions to do this prior and would require too many guesses before a release. We also have stencils that generate Equatables, so having to revisit this system was very unpalatable.
This is currently stopping me kicking the tires on RxSwift 5.0.1 as carthage update --platform ios --new-resolver --verbose simply hangs.
https://github.com/Carthage/Carthage/issues/2615


Adding method in GazeManager to send a message to object that is bein…

…g focused on, which then can be added as a response in KeywordManager.
Here's how this is used from KeywordManager: http://i.imgur.com/PAGXMTu.png
The idea is to not to add a dependency on GazeManager inside KeywordManager.
Comments are welcome.

Hi @dbouianov, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

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

TTYL, MSBOT;

The way we do this in Holograms 212 Voice is to add OnGazeEnter/Exit methods on the object, then turn on and off the KeywordManager appropriately. This way, we aren't filling our recognizer with commands that might not always be valid if, in this case, you arent gazing at anything.

Actually, now that I keep thinking about this, this might be a really useful feature. My example above breaks if you want to send the same voice command to a variety of different objects, since you can't register the same command on more than one of them. This directs the result of the keyword recognizer to a specific object based on gaze instead.

@keveleigh Does this mean each separate object needs to have a KeywordManager component attached to it? What if those objects are created dynamically, and there are 100 of them? Does that mean that there are 100 KeywordRecognizers being created?

@keveleigh I think this would be efficient to create a single KeywordManager and let objects being gazed on decide whether they handle that keyword or not. This would prevent people from creating multiple KeywordRecognizers running simultaneously.

With regards to filling the recognizer with invalid commands, it's basically up to the user in either of these scenarios.

@dbouianov would it better for you to instead make private GameObject focusedObject a public get only property instead? That way you can handle custom send messages in your classes?

@NeerajW Exactly what I was going to say - it'd make lots of things easier! Otherwise I suspect we'll find more things like this being added to GazeManager.

@NeerajW @jwittner Good points. I guess it would depending on how you see "better" and whether you're ready to expose GazeManager.FocusedObject and let other folks take the dependency. Agreed on leaking abstraction with SendMessageToFocusedObject is also letting clients know about FocusedObject. A (probably theoretical) concern with exposing FocusedObject is relying on Unity being single-threaded when setting FocusedObject in GazeManager.Update loop. We'll also see a lot of boilerplate all around: if (GazeManager.Instance.FocusedObject != null) GazeManager.Instance.FocusedObject.SendMessage (....), so I would probably keep both the public FocusedObject and SendMessageToFocusedObject as a convenience method that would avoid lots of boilerplate. Thoughts?

@dbouianov I think developers can keep the boilerplate centralized by creating simple behaviors like you'll have to for the SendMessage functionality wrapper in a "post exposed focus object" world. I'm not concerned about the single-threadedness of Update every changing and people can currently run code on background threads now so they'll have to be safe now anyways.
I'd vote to still move SendMessageToFocused object out of GazeManager because the boilerplate can easily be encapsulated in an external object and we won't feel compelled to cover every type of useful interaction with game objects inside GazeManager.

Updated PR, please review.
The intent is to add keyword recognition to multiple objects by simply sending messages to the currently focused object and letting the object decide whether to handle the event. Another intent is to minimize the amount of code the user has to write, so they can simply add a response in KeywordManager to make this work.
Please see this image for how this is intended to be used: http://i.imgur.com/aR0TdIb.png
This revision adds a separate class called FocusedObjectMessageSender, which I don't think is as elegant as simply adding a method to GazeManager.
Here's the previous way to enable this: http://i.imgur.com/PAGXMTu.png
I would lean in the direction of exposing both a public property GazeManager.FocusedObject and a convenience method GazeManager.SendMessageToFocusedObject which would avoid a lot of boilerplate in client code.

Looks like maybe you forgot to delete SendMessageToFocusedObject on the GazeManager?

Actually, it makes sense to decouple logic for sending messages in a separate class, since there are other potential policies for target object selection. Some examples: lazy focus with selection hysteresis, permanent focus with keyword to set the focused object. PR update coming up.

Update PR, please review.

Removed SendMessageToFocusedObject from GazeManager
Added SelectedObjectMessageSender class
Added FocusedObjectKeywordManager prefab
Added SelectedObjectKeywordManager prefab

Rationale: users will want to create custom policies for selecting objects to send messages to that could be based on different mechanics: e.g. simple gaze, gaze hysteresis, selection voice commands.

I think with multiple examples this change gains a value in setting paradigm precedence. I think this is a good one to set for solving the multiple objects / single command voice control pattern, and by having it we avoid needing to have the discussion we just had again with other examples. If you can add a test scene showcasing both of these I'd be down to move it all into the HoloToolkit.
Thoughts everyone?

Here's a link to the general flow for contributions: https://github.com/Microsoft/HoloToolkit-Unity/blob/master/CONTRIBUTING.md
It outlines a few steps left in order to get this in. If you've got any questions, I'm sure the community has the answers, =)

@jwittner Thanks for the contribution guide, I'll take a look. I'll also create a test scene to illustrate different object selection policies.

Hey @dbouianov just an FYI that I pulled your changes down and it looks like maybe you renamed the methods on SelectedObject, which broke your prefabs references. I'm sure you'd of caught it when building the test scene, but wanted to inform you anyhow.

Thanks, good catch, test scenes coming up.

@jwittner @dbouianov looks like this got merged prematurely.

Additional files got checked in which should not have been updated. Added comment in the files.
The ReadMe.md was not updated.

I don't believe this was merged, just closed right?

Yes, #69 was only closed following the issue/fix guidelines on the contribution guide, with #72 replacing the original commits.

On Jun 24, 2016, at 1:16 PM, Josh Wittner<EMAIL_ADDRESS>wrote:
I don't believe this was merged, just closed right?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/Microsoft/HoloToolkit-Unity/pull/69#issuecomment-228451278, or mute the thread https://github.com/notifications/unsubscribe/ABYah9ICb80UueTnSUqg0-A2xN5xBVVsks5qPDsDgaJpZM4I8QBU.

Yeah I realized that later. Sorry about the panic :)


Minor improvements to demo project and other things here and there

Codecov Report

Merging #5 (5cf30fb) into main (db30bf2) will decrease coverage by 0.00%.
The diff coverage is 70.45%.

@@            Coverage Diff             @@
##             main       #5      +/-   ##
==========================================
- Coverage   70.33%   70.33%   -0.01%
==========================================
  Files          37       37
  Lines        1561     1581      +20
  Branches      180      189       +9
==========================================
+ Hits         1098     1112      +14
- Misses        463      469       +6

Impacted Files
Coverage Δ

...tions.Postgresql/PostgresqlProjectionRepository.cs
75.42% <50.00%> (-2.24%)
:arrow_down:

...cing.EventStore.Postgresql/PostgresqlEventStore.cs
77.93% <92.30%> (+0.42%)
:arrow_up:

CloudFabric.EventSourcing.Domain/AggregateBase.cs
86.95% <100.00%> (+0.59%)
:arrow_up:

CloudFabric.EventSourcing.EventStore/Event.cs
100.00% <100.00%> (ø)

...jections.Attributes/ProjectionDocumentAttribute.cs
59.74% <100.00%> (+2.76%)
:arrow_up:

...ectionDocuments/ProjectionDocumentSchemaFactory.cs
100.00% <100.00%> (ø)

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


A small fix

Hi, could you fix a small detail in my lab's research description on the LABS page (https://platynereis.com/labs/):
Mechanisms of reproductive cell formation and regeneration.
Thank you :)

Fixed:)


fix(#1943): XInfoConsumer.Idle should be time.Duration instead of int64

to v9, fix #1943

This is an easy fix and it doesn't seem to be a problem.


cargo bench doesn't work with dev-dependencies

ref #1146
docs claim that "Dev-dependencies are [..] used for compiling tests and benchmarks"
test case, if put in tests/test_cargo_bench.rs:
test!(bench_with_dev_dep {
    let p = project("foo")
        .file("Cargo.toml", r#"
            [project]
            name = "foo"
            version = "0.0.1"
            authors = []

            [dev-dependencies.bar]
            version = "*"
            path = "bar"
        "#)
        .file("src/lib.rs", r#"
            extern crate bar;
            extern crate test;

            #[bench]
            fn foo(_b: &mut test::Bencher) {
                bar::run();
            }
        "#)
        .file("bar/Cargo.toml", r#"
            [project]
            name = "bar"
            version = "0.0.1"
            authors = []
        "#)
        .file("bar/src/lib.rs", r#"
            pub fn run() {}
        "#);

    assert_that(p.cargo_process("bench"),
        execs().with_stdout(format!("\
{compiling} bar v0.0.1 ({dir})
{compiling} foo v0.0.1 ({dir})
{running} target[..]release[..]foo-[..]

running 1 test
test foo ... bench:         0 ns/iter (+/- 0)

test result: ok. 0 passed; 0 failed; 0 ignored; 1 measured

",
        compiling = COMPILING, running = RUNNING,
        dir = p.url())))
});

will fail for me with:
---- test_cargo_bench::bench_with_dev_dep stdout ----
	thread 'test_cargo_bench::bench_with_dev_dep' panicked at '
Expected: execs
    but: differences:
  2 - |     Running target[..]release[..]foo-[..]|
    + |Build failed, waiting for other jobs to finish...|

  3 - ||
    +

  4 - |running 1 test|
    +

  5 - |test lib_bench ... bench:         0 ns/iter (+/- 0)|
    +

  6 - ||
    +

  7 - |test result: ok. 0 passed; 0 failed; 0 ignored; 1 measured|
    +

  8 - ||
    +

other output:
`/home/rndr/cargo/target/x86_64-unknown-linux-gnu/cit/test-8/foo/src/lib.rs:2:13: 2:30 error: can't find crate for `bar`
/home/rndr/cargo/target/x86_64-unknown-linux-gnu/cit/test-8/foo/src/lib.rs:2             extern crate bar;
                                                                                ^~~~~~~~~~~~~~~~~
error: aborting due to previous error
Could not compile `foo`.

To learn more, run the command again with --verbose.
`', src/hamcrest/core.rs:22

but if [dev-dependencies.bar] changed to [dependencies.bar] then it will pass.
examples that use dev-deps will fail same way if run with --release flag because they use release profile (as of #1149), but will pass without --release flag, because then it's test profile.

I think this is actually working as intended. I believe that the file just forgets the #[cfg(test)] annotations on extern crate {test, bar}. After those are added it looks like it works.


Complete breaks when file starts with period

From @Aetylus on August 12, 2016 13:12
The Complete function (using Set-PSReadlineKeyHandler -Key Tab -Function Complete) doesn't seem to handle files with similar names but one begins with a period. I do a lot of work in gVim while on Windows which will leave .[filename].swp files while open, and attempting to tab complete the filename results in PowerShell completely unwriting the whole word.
Take for example a directory with .foo.bar and foo.bar. If you have ii f, ii fo or ii foo and attempt tab complete, it will completely rewrite your line to ii .\. Same with ii .\f, ii .\fo, and ii .\foo. Once you include the period before the file extension, it will autocomplete to ii .\foo.bar.
Copied from original issue: lzybkr/PSReadLine#415

https://github.com/PowerShell/PowerShell/issues/4694


fix: stroke on active brush

:tada: This PR is included in version 1.2.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Couldn't compile

-- Found PkgConfig: /usr/bin/pkg-config (found version "1.6.0")
-- Checking for module 'mxml'
--   Found mxml, version 2.12
-- Configuring done
CMake Error at tools/externals/CMakeLists.txt:1 (add_library):
Cannot find source file:
argparse/argparse.c

Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at tools/externals/CMakeLists.txt:1 (add_library):
No SOURCES given to target: argparse

All clear, I found this in the dependency list, lol, sorry.


Resizing Terminal window is slow and laggy

Steps to reproduce
Resizing the Terminal window is slow and laggy. It feels like I'm resizing the window of a uwp app, instead of a Terminal app. Terminals can't be slow and terminals can't have graphical lags.
Expected behavior
Resizing the window should be as smooth as resizing a windows console window.

@phgmacedo Cloud you try disabling a setting for me, to see if that helps here? Could you add "snapToGridOnResize": false to your settings.json file? That setting forces the terminal to try and snap to the nearest character size - if you disable it, the Terminal will resize more smoothly.
I'm not saying that resizing isn't slow, it's one of the worst functions in the codebase. Heck, optimizing it is what #5800 is all about. But the above setting might make it feel smoother, at least for now.


Fix the way a ConnectionManagerTracker item is keyed.

The way a tracker is retrieved from the cache needs fixing. Currently cache item key includes the artifact name.
2020-12-21 16:10:40.759 [INFO ] [maven-metadata-generator-38: LIST http://somewhere.com/...abc..../org.apache.cxf-cxf/3.1.10.foobar_1/1/maven/org/codehaus/mojo/wagon-maven-plugin] o.c.u.j.I.c.ConnectionManagerTracker  abc.123.def.456 - Creating connection pool for: maven:remote:koji-org.apache.cxf-cxf-3.1.10.foobar_1-1 with 30 connections.
2020-12-21 16:10:40.760 [INFO ] [maven-metadata-generator-15: LIST http://somewhere.com/...abc..../com.fasterxml.jackson.core-jackson-core/2.9.5.foobar_2/1/maven/org/codehaus/mojo/wagon-maven-plugin] o.c.u.j.I.c.ConnectionManagerTracker  abc.123.def.456 - Creating connection pool for: maven:remote:koji-com.fasterxml.jackson.core-jackson-core-2.9.5.foobar_2-1 with 30 connections.
2020-12-21 16:10:40.761 [INFO ] [maven-metadata-generator-36: LIST http://somewhere.com/...abc..../org.jboss.ws-jbossws-parent/1.4.2.Final_foobar_00001/1/maven/org/codehaus/mojo/wagon-maven-plugin] o.c.u.j.I.c.ConnectionManagerTracker  abc.123.def.456 - Creating connection pool for: maven:remote:koji-org.jboss.ws-jbossws-parent-1.4.2.Final_foobar_00001-1 with 30 connections.
2020-12-21 16:10:40.761 [INFO ] [maven-metadata-generator-14: LIST http://somewhere.com/...abc..../io.prometheus.jmx-parent/0.10.0.foobar_2/1/maven/org/codehaus/mojo/wagon-maven-plugin] o.c.u.j.I.c.ConnectionManagerTracker  abc.123.def.456 - Creating connection pool for: maven:remote:koji-io.prometheus.jmx-parent-0.10.0.foobar_2-1 with 30 connections.

this should be keyed by managed repository.

Looks like code in Galley project controls how a tracker is retrieved.

Looks like code in Galley project controls how a tracker is retrieved.


Module not found: Error: Package path ./lib/codemirror.css is not exported from package

I am trying to use codemirror in my create-react-app project, but facing issues
below is the error i am facing:
Module not found: Error: Package path ./theme/material.css is not exported from package
Module not found: Error: Package path ./mode/xml/xml is not exported from package
Module not found: Error: Package path ./mode/javascript/javascript is not exported from package
Module not found: Error: Package path ./mode/css/css is not exported from package
Module not found: Error: Can't resolve '/lib/codemirror.css' in

I haven't found any solution to this problem, can anyone help on this.
Below is my package.json

{
  "name": "codepenclone",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "@testing-library/jest-dom": "^5.16.5",
    "@testing-library/react": "^13.4.0",
    "@testing-library/user-event": "^13.5.0",
    "codemirror": "^6.0.1",
    "react": "^18.2.0",
    "react-codemirror2": "^7.2.1",
    "react-dom": "^18.2.0",
    "react-scripts": "5.0.1",
    "web-vitals": "^2.1.4"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": [
      "react-app",
      "react-app/jest"
    ]
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  }
}

I don't know what the problem is, but I'd say it is something with your bundler or its configuration, and this is not the place to report it.


problem of argument

Hello guys,
I installed all requirements but I still get this: "pokecli.py: error: unrecognized arguments: -a
"
thanks in advance

why are you trying to pass -a into your console?
just do python pokecli.py


Featured cards on home page styled

OK team, our least favorite styling part is behind us
I styled the cards so they look decent (?)
and added a title

Great job @pescel !!! You did a fantastic job on styling all around.


Refresh Icon lost with the new version

Hello there,
Some icons seem to be missing with the new update, like the Refresh one.
Do you plan to re implement old ones?
Thank you for the great work thought!

arrow-path

Hey! Thank you for your question!
Much appreciated! 🙏
As @EvertonWingert mentioned it is now called arrow-path.


Increasing GPU memory in every epoch when running volo-d2 without token labeling.

Hi, thanks for sharing volo, a nice work.
I used bash'''
export CUDA_VISIBLE_DEVICES=1,4,5,6
python -m torch.distributed.launch --nproc_per_node=4 main.py "path/to/dataset"
--model volo_dd2 --img-size 224
-b 100 --lr 1.0e-3 --drop-path 0.2 --epoch 300 --native-amp
--finetune ./d2_224_85.2.pth.tar
GPU memory was increasing when I trained volo-d2 with pretrained model and no token labeling on my own dataset. I added no trick on it and after about 15 epoch it was nearly out of the memory.

It's a common issue. Similar to https://github.com/rwightman/pytorch-image-models/issues/80. Can you try to add --no-prefetcher flag to see if it solves the problem?

I had same issue, but thanks to @zihangJiang I solved it. Do you know why it happen?


train_label.xml not included

I have the data directory set up, except for the xml file. Please assist/advise.
├── AIC21/
│   ├── AIC21_Track2_ReID/
│   	├── image_train/
│   	├── image_test/
│   	├── image_query/
│   	├── train_label.xml
│   	├── ...
│   	├── training_part_seg/
│   	    ├── cropped_patch/
│   	├── cropped_aic_test
│   	    ├── image_test/
│   	    ├── image_query/
│   ├── AIC21_Track2_ReID_Simulation/
│   	├── sys_image_train/
│   	├── sys_image_train_tr/

Put xml files and other files into the data directory.

Thank you!
On Tue, Jul 20, 2021, 4:55 AM Hao Luo @.***> wrote:

Put xml files and other files into the data directory.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/michuanhaohao/AICITY2021_Track2_DMT/issues/8#issuecomment-883222451,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHKKSGJUQ6AYJMK5IJH533DTYU2YVANCNFSM5AMBIVUQ
.

Ignore this comment. I see that I have to request the original data from AICITY.

Hi. Is it possible to share some version of the .xml files . I just want to try to run the inference on my data. Thank you


python38Packages.jupyterlab: 3.1.17 -> 3.1.18

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python38Packages.jupyterlab is: "Jupyter lab environment notebook server extension."
meta.homepage for python38Packages.jupyterlab is: "https://jupyter.org/"
meta.changelog for python38Packages.jupyterlab is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS

Warning: a test defined in passthru.tests did not pass

/nix/store/qk75mr0apy98z6bnc1d567mj7pd1vvmv-python3.8-jupyterlab-3.1.18/bin/jlpm passed the binary check.

/nix/store/qk75mr0apy98z6bnc1d567mj7pd1vvmv-python3.8-jupyterlab-3.1.18/bin/jupyter-lab passed the binary check.

/nix/store/qk75mr0apy98z6bnc1d567mj7pd1vvmv-python3.8-jupyterlab-3.1.18/bin/jupyter-labextension passed the binary check.

/nix/store/qk75mr0apy98z6bnc1d567mj7pd1vvmv-python3.8-jupyterlab-3.1.18/bin/jupyter-labhub passed the binary check.

/nix/store/qk75mr0apy98z6bnc1d567mj7pd1vvmv-python3.8-jupyterlab-3.1.18/bin/.jlpm-wrapped passed the binary check.

/nix/store/qk75mr0apy98z6bnc1d567mj7pd1vvmv-python3.8-jupyterlab-3.1.18/bin/.jupyter-lab-wrapped passed the binary check.

/nix/store/qk75mr0apy98z6bnc1d567mj7pd1vvmv-python3.8-jupyterlab-3.1.18/bin/.jupyter-labextension-wrapped passed the binary check.

/nix/store/qk75mr0apy98z6bnc1d567mj7pd1vvmv-python3.8-jupyterlab-3.1.18/bin/.jupyter-labhub-wrapped passed the binary check.

4 of 8 passed binary check by having a zero exit code.

8 of 8 passed binary check by having the new version present in output.

found 3.1.18 with grep in /nix/store/qk75mr0apy98z6bnc1d567mj7pd1vvmv-python3.8-jupyterlab-3.1.18

found 3.1.18 in filename of file in /nix/store/qk75mr0apy98z6bnc1d567mj7pd1vvmv-python3.8-jupyterlab-3.1.18

directory tree listing: https://gist.github.com/5f9946fdb60e8d03f18aebb6dd962eb2

du listing: https://gist.github.com/7ce5a64e8028957547da109d1faddf5d

Rebuild report (if merged into master) (click to expand)

12 total rebuild path(s)

4 package rebuild(s)

4 x86_64-linux rebuild(s)
4 i686-linux rebuild(s)
4 x86_64-darwin rebuild(s)
0 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
python38Packages.jupyterlab
python38Packages.jupytext
python39Packages.jupyterlab
python39Packages.jupytext

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/qk75mr0apy98z6bnc1d567mj7pd1vvmv-python3.8-jupyterlab-3.1.18 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python38Packages.jupyterlab https://github.com/r-ryantm/nixpkgs/archive/9ae2f3f9e68116253540cf7f5fed1bc4783a6efd.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/qk75mr0apy98z6bnc1d567mj7pd1vvmv-python3.8-jupyterlab-3.1.18
ls -la /nix/store/qk75mr0apy98z6bnc1d567mj7pd1vvmv-python3.8-jupyterlab-3.1.18/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

4 packages built:

python38Packages.jupyterlab
python38Packages.jupytext
python39Packages.jupyterlab
python39Packages.jupytext

Maintainer pings
cc @zimbatm @costrouc for testing.

3.1.18 already in master, see https://github.com/NixOS/nixpkgs/commit/169d8a74e3a85a45b4095082dce92c79e42a01f2


gpu memory

Hi, how much memory does the training network need? Is 16g OK? How long does 8v100 (16g) need training? Thanks!

Dou you mean a card(v100) needs about 2 days for each, and joint training needs about 10 hours?

Yeah, for PointPillars. It needs more time (about 6 days) to train the LiDAR detector of TransFusion.


Update enum for PREMAINNET to 21

Premainnet chain_id deployed is 21. No other usage of premainnet chain id in codebase.

Motivation
Usage of the PREMAINNET enum by test suite and the swiss knife utility tool - the chain id needs to be kept up to date.
Have you read the Contributing Guidelines on pull requests?
Yes,
Test Plan
Canary tests pass.
Related PRs
(If this PR adds or changes functionality, please take some time to update or suggest changes to the docs at https://developers.diem.com, and link to your PR here.)
If targeting a release branch, please fill the below out as well

Justification and breaking nature (who does it affect? validators, full nodes, tooling, operators, AOS, etc.)
Comprehensive test results that demonstrate the fix working and not breaking existing workflows.
Why we must have it for V1 launch.
What workarounds and alternative we have if we do not push the PR.

/canary

@Koushiktest0000000001: :key: Insufficient privileges: Not Collaborator

/canary

Cancelling, while the Premainnet deployed Chain ID is currently 21, this does not necessarily reflect future state post launch.


Fix: extract_from is too strict

ContentDispositionAttr::extract_from is too strict, requiring form-data fileds to be in a specific order. The standard also allows name and filename arguments to swap their position.
This commit:

makes the extractor match the standard
adds regression tests
adds a fuzz configuration including swapped arguments

Both tests and fuzzing are passing. Performance regression needs to be tested.

Your commit rewrote the entire parse method, but the actual change needed was only a few lines of code. I went ahead and added those few lines of code in https://github.com/rousan/multer-rs/commit/bca313f36a336494eba2eb6c7cb6cfc03252cb79, as well as a few other improvements, but kept your test case. I also removed the fuzzing seed: the fuzzer is only checking for panics, not valid parsing, so another seed for a valid parse doesn't add to the fuzzer's ability to find an issue.
Thank you for bringing this to my attention, however! In general, I would advise making the smallest change possible to accomplish the task you're seeking. If nothing else, it makes reviewing your change easier and decreases the chance that a regression is introduced.


CI: K8sServicesTest Checks service across nodes Tests NodePort BPF Tests with XDP, direct routing and DSR

/home/jenkins/workspace/Cilium-PR-K8s-oldest-net-next/k8s-1.11-gopath/src/github.com/cilium/cilium/test/ginkgo-ext/scopes.go:512
Test Panicked
/usr/local/go/src/runtime/panic.go:967

https://jenkins.cilium.io/job/Cilium-PR-K8s-oldest-net-next/685/testReport/junit/Suite-k8s-1/11/K8sServicesTest_Checks_service_across_nodes_Tests_NodePort_BPF_Tests_with_XDP__direct_routing_and_DSR/
57de4b46_K8sServicesTest_Checks_service_across_nodes_Tests_NodePort_BPF_Tests_with_XDP,_direct_routing_and_DSR.zip

Haven't seen this issue in last month, let's observe.

Lets close for now.


Again misplaced error with document.createElement on unknown elements

var mediaElem = document.createElement("audio");
mediaElem.controls = true;

gives the error on line 1:
call of method createElement Function cannot be called on Document
The error should be something like:
line 1: audio element unknown (i opened PR #1665 for that) or
line 2: setting unknown controls to HTMLelement
I have to admit that i only checked tryflow.org which seems to be outdated. I checked that  a few hours later...
relates to #632

tryflow is updated and the code is working now in tryflow and https://flowtype.org/try/


Platform Version is listed as Android only and also iOS and Android

Description
The docs show a table of properties where Version is listed as Android only and then further down the page  the same property is listed as a number on Android and a string on iOS.
Documentation version
next

That's because Version is a constant on Android:
https://github.com/facebook/react-native/blob/14ccf6bc9c40a51e913bb89a67b114f035bf77cd/packages/react-native/Libraries/Utilities/Platform.android.js#L36
But it's also a method Version() which works for both Android & iOS.

@cortinico

But the documentation doesn't say that. It has Version listed as a property in both places.

Sorry I wasn't 100% exact. There is a Version property that works for both Android & iOS.
Moreover, inside the constant property, you can access the Version property that is Android only.
The documentation is correct as it is:

Oh I see. That's very confusing but I understand now. Thanks.


Creating an invite form from another controller

Hi,
I'm starting with Rails and Devise Invitable, so I hope my problem will not be too "risible"... :confused:
I have two models: Coach and Athlete. From the coach dashboard, I want to invite an athlete. So I included the form, and everything seems fine after a while, but if I have an error on my form I am redirected to the invitations/new page. To avoid this I customized the controller, and now I'm still redirected, but showing the dashboard template. It could be fine but my url is also changed (from coach/dashboard to athlete/invitation)... I guess Ithe problem stays the redirection, but if I just redirect to the dashboard page, I can't have access to the error messages!
Is there a way to achieve that? Could you please tell me what I'm doing wrong? Thx in advance!
coaches_controller.rb
class CoachesController < ApplicationController
  protect_from_forgery except: :update

  before_action :authenticate_athlete!, except: :dashboard
  before_action :authenticate_coach!, only: :dashboard
  before_action :set_coach, only: :show

  def index
    @coaches = Coach.all
  end

  def show
    @coach
  end

  def dashboard
  end

  private

  def set_coach
    @coach = Coach.find(params[:id])
  end
end

coaches_helper.rb
module CoachesHelper
  def resource_name
    :athlete
  end

  def resource
    @resource ||= Athlete.new
  end

  def devise_mapping
    @devise_mapping ||= Devise.mappings[:athlete]
  end
end

dashboard.html.erb (coach)
# ...

  <%= simple_form_for(resource, as: resource_name, url: invitation_path(resource_name), html: { method: :post }) do |f| %>
    <div class="field <%= resource.errors.any? ? ' has-error' : '' %>">

        <%= f.input_field :email, label: false, required: true, placeholder: "Email de l'athlète" %>
        <%= f.button :submit, t("devise.invitations.new.submit_button"), class: "btn-primary" %>

      <% if resource.errors.any? %>
        <%= f.error :email %>
      <% end %>

  <% end %>

# ...

invitations_controller.rb (athlete)
class Athletes::InvitationsController < Devise::InvitationsController
  prepend_before_action :sign_out, only: :edit

  def new
    self.resource = resource_class.new
    # render :new
  end

  def create
    self.resource = invite_resource
    resource_invited = resource.errors.empty?

    yield resource if block_given?

    if resource_invited
      if is_flashing_format? && self.resource.invitation_sent_at
        set_flash_message :notice, :send_instructions, email: self.resource.email
      end
      if self.method(:after_invite_path_for).arity == 1
        respond_with resource, location: after_invite_path_for(current_inviter)
      else
        respond_with resource, location: after_invite_path_for(current_inviter, resource)
      end
    else
      # respond_with_navigational(resource) { render :new }
      respond_with_navigational(resource) { render template: "coaches/dashboard" }
    end
  end
end

It would be probably better to send form by JS, adding remote: true to form, so you have to change the view. Run rails generate devise_invitable:views to get devise_invitable views into your app. DeviseInvitable doesn't have partials so you may want to split new.html.erb into new.html.erb and _form.html.erb views, so you can use form partial to update from js response.

<%= t "devise.invitations.new.header" %>

<%= render 'form' %>

<%= form_for ...

Then add create.js.erb view which should update a div with render('form'), with JS code.

Hello,
First, thank you for your answer. I'm sorry not having responded sooner, but a lot to do so... Anyway, I followed your advice, and everything now works great! Thank you so much!
As it may help someone else, here is what I did to use the invitation form on remote mode (using SimpleForm) :
_form.html.erb
<%= simple_form_for(resource, as: resource_name, url: invitation_path(resource_name), html: { method: :post, data: { success: "Invitation has been sent!" } }, remote: true) do |f| %>

      <%= f.input_field :email, label: false, required: true, placeholder: "Email" %>
      <%= f.button :submit, t("devise.invitations.new.submit_button"), class: "btn-primary" %>

<% end %>

invitations_controller.rb
class User::InvitationsController < Devise::InvitationsController

  # ...

  def create
    self.resource = invite_resource
    resource_invited = resource.errors.empty?

    yield resource if block_given?

    respond_to do |format|
      if resource_invited
        format.json { render json: resource, status: :created }
        format.js
        format.html {
          if is_flashing_format? && self.resource.invitation_sent_at
            set_flash_message :notice, :send_instructions, email: self.resource.email
          end
          if self.method(:after_invite_path_for).arity == 1
            respond_with resource, location: after_invite_path_for(current_inviter)
          else
            respond_with resource, location: after_invite_path_for(current_inviter, resource)
          end
        }
      else
        format.json { render json: resource.errors, status: :unprocessable_entity }
        format.html { respond_with_navigational(resource) { render :new } }
      end
    end
  end
end

remoteForm.js
const RemoteForm = () => {
  const elements = document.querySelectorAll('[data-remote="true"]')

  for (let i = 0; i < elements.length; i += 1) {
    // SUCCESS
    elements[i].addEventListener('ajax:success', (event) => {
      const msg = elements[i].dataset.success
      const submitField = elements[i].querySelector('[type="submit"]').closest('.field')

      submitField.classList.remove('has-error')
      submitField.classList.add('has-success')

      if (submitField.querySelector('.msg') !== null) {
        submitField.querySelector('.msg').remove()
      }
      submitField.innerHTML += `<span class='msg txt-success'>${msg}</span>`
    })

    // ERROR
    elements[i].addEventListener('ajax:error', (event) => {
      const [response, status, xhr] = event.detail
      const errors = JSON.parse(xhr.responseText)

      if (Array.isArray(errors)) {
        console.log('Array case, several errors?')
      } else {
        for (let e in errors) {
          const key = e
          const msg = errors[e][0]
          const field = elements[i].querySelector(`[name*="${key}"]`).closest('.field')

          field.classList.add('has-error')

          if (field.querySelector('.msg') !== null) {
            field.querySelector('.msg').remove()
          }
          field.innerHTML += `<span class="msg">${msg}</span>`
        }
      }
    })
  }
}

export default RemoteForm;