cassandra-stress: counter_write workload will stuck after write all population

$ rpm -qa |grep scylla
scylla-conf-3.0.4-0.20190313.5e3a52024.el7.x86_64
scylla-tools-core-666.development-20190429.6bdb654.noarch
scylla-tools-666.development-20190429.6bdb654.noarch

counter_write workload will be stuck after duration is end out if all population is wrote. It won't repeated to rewrite as normal write workload.
[centos@ip-10-0-106-202 ~]$ cassandra-stress counter_write no-warmup cl=QUORUM duration=10s -port jmx=6868 -mode cql3 native -rate threads=1 -pop seq=1..10000  -node <IP_ADDRESS>
...
Running COUNTER_WRITE with 1 threads 10 seconds
Failed to connect over JMX; not collecting these stats
type       total ops,    op/s,    pk/s,   row/s,    mean,     med,     .95,     .99,    .999,     max,   time,   stderr, errors,  gc: #,  max ms,  sum ms,  sdv ms,      mb
total,           298,     298,     298,     298,     1.0,     1.0,     1.3,     1.7,     8.7,     8.7,    1.0,  0.00000,      0,      0,       0,       0,       0,       0
total,          1554,    1256,    1256,    1256,     0.8,     0.8,     1.0,     1.1,     1.9,     2.9,    2.0,  0.43465,      0,      0,       0,       0,       0,       0
total,          2929,    1375,    1375,    1375,     0.7,     0.7,     0.9,     1.0,     1.3,     2.4,    3.0,  0.28440,      0,      0,       0,       0,       0,       0
total,          4343,    1414,    1414,    1414,     0.7,     0.7,     0.9,     1.0,     1.7,     2.5,    4.0,  0.21069,      0,      0,       0,       0,       0,       0
total,          5733,    1390,    1390,    1390,     0.7,     0.7,     0.9,     1.0,     1.3,     1.5,    5.0,  0.16648,      0,      0,       0,       0,       0,       0
total,          7159,    1426,    1426,    1426,     0.7,     0.7,     0.9,     1.0,     1.3,     1.5,    6.0,  0.13798,      0,      0,       0,       0,       0,       0
total,          8614,    1455,    1455,    1455,     0.7,     0.7,     0.9,     1.0,     1.1,     1.2,    7.0,  0.11805,      0,      0,       0,       0,       0,       0
total,         10000,    1386,    1386,    1386,     0.7,     0.7,     0.9,     1.0,     1.5,     3.4,    8.0,  0.10273,      0,      0,       0,       0,       0,       0
<stuck>

counter_write workload will successfully exit if duration is end before all population is wrote.
[centos@ip-10-0-106-202 ~]$ cassandra-stress counter_write no-warmup cl=QUORUM duration=6s -port jmx=6868 -mode cql3 native -rate threads=1 -pop seq=1..10000  -node <IP_ADDRESS>
....
Running COUNTER_WRITE with 1 threads 6 seconds
Failed to connect over JMX; not collecting these stats
type       total ops,    op/s,    pk/s,   row/s,    mean,     med,     .95,     .99,    .999,     max,   time,   stderr, errors,  gc: #,  max ms,  sum ms,  sdv ms,      mb
total,           245,     245,     245,     245,     1.0,     1.0,     1.4,     2.0,     8.5,     8.5,    1.0,  0.00000,      0,      0,       0,       0,       0,       0
total,          1480,    1235,    1235,    1235,     0.8,     0.8,     1.0,     1.2,     2.6,     2.6,    2.0,  0.47184,      0,      0,       0,       0,       0,       0
total,          2809,    1329,    1329,    1329,     0.7,     0.8,     0.9,     1.1,     2.6,     2.9,    3.0,  0.30180,      0,      0,       0,       0,       0,       0
total,          4185,    1376,    1376,    1376,     0.7,     0.7,     0.9,     1.0,     1.3,     1.5,    4.0,  0.22199,      0,      0,       0,       0,       0,       0
total,          5559,    1374,    1374,    1374,     0.7,     0.7,     0.9,     1.0,     1.3,     1.6,    5.0,  0.17522,      0,      0,       0,       0,       0,       0
total,          6948,    1389,    1389,    1389,     0.7,     0.7,     0.9,     1.0,     1.5,     2.1,    6.0,  0.14484,      0,      0,       0,       0,       0,       0
total,          7982,    1438,    1438,    1438,     0.7,     0.7,     0.9,     1.0,     1.2,     1.4,    6.7,  0.12392,      0,      0,       0,       0,       0,       0

Results:
Op rate                   :    1,188 op/s  [COUNTER_WRITE: 1,188 op/s]
Partition rate            :    1,188 pk/s  [COUNTER_WRITE: 1,188 pk/s]
Row rate                  :    1,188 row/s [COUNTER_WRITE: 1,188 row/s]
Latency mean              :    0.7 ms [COUNTER_WRITE: 0.7 ms]
Latency median            :    0.7 ms [COUNTER_WRITE: 0.7 ms]
Latency 95th percentile   :    1.0 ms [COUNTER_WRITE: 1.0 ms]
Latency 99th percentile   :    1.2 ms [COUNTER_WRITE: 1.2 ms]
Latency 99.9th percentile :    2.1 ms [COUNTER_WRITE: 2.1 ms]
Latency max               :    8.5 ms [COUNTER_WRITE: 8.5 ms]
Total partitions          :      7,982 [COUNTER_WRITE: 7,982]
Total errors              :          0 [COUNTER_WRITE: 0]
Total GC count            : 0
Total GC memory           : 0.000 KiB
Total GC time             :    0.0 seconds
Avg GC time               :    NaN ms
StdDev GC time            :    0.0 ms
Total operation time      : 00:00:06

END

@roy

@fgelcer as you bumped into it first, please help to investigate.
Can you please run it with 3.0 and compare it with 3.1?

The stuck also exists with 3.0.7   (ami-012abc8d72fd276b0)
$ rpm -qa |grep scylla
scylla-libgcc73-7.3.1-1.2.el7.centos.x86_64
scylla-conf-3.0.7-0.20190624.b6fa715f7.el7.x86_64
scylla-libatomic73-7.3.1-1.2.el7.centos.x86_64
scylla-tools-core-3.0.7-20190624.24bd7f3aad.el7.noarch
scylla-jmx-3.0.7-20190624.c9dd098.el7.noarch
scylla-env-1.1-1.el7.noarch
scylla-kernel-conf-3.0.7-0.20190624.b6fa715f7.el7.x86_64
scylla-ixgbevf-4.3.6-1dkms.noarch
scylla-server-3.0.7-0.20190624.b6fa715f7.el7.x86_64
scylla-debuginfo-3.0.7-0.20190624.b6fa715f7.el7.x86_64
scylla-ena-2.0.2-2dkms.noarch
scylla-ami-3.0.7-20190624.adbc493.el7.noarch
scylla-libstdc++73-7.3.1-1.2.el7.centos.x86_64
scylla-tools-3.0.7-20190624.24bd7f3aad.el7.noarch
scylla-3.0.7-0.20190624.b6fa715f7.el7.x86_64

@amoskong so basically if we enlarge the -n or --seq to a very high number, it will finished o.k. ?
why not just do that ?

@fruch , my job has seq=1..2097152 and it still stuck (even worst, as not always i got back the result summary of this stress job)

Yes in theory.
But we have very large duration for 4days, 7 days longevity. Then we need a
very very big population.
On Wed, Jul 3, 2019 at 9:31 PM Israel Fruchter<EMAIL_ADDRESS>wrote:

@amoskong https://github.com/amoskong so basically if we enlarge the -n
or --seq to a very high number, it will finished o.k. ?
why not just do that ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/scylladb/scylla-tools-java/issues/101?email_source=notifications&email_token=AACLTTBME3OM57356WEKMPDP5SS2HA5CNFSM4H5FG762YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZEONMA#issuecomment-508094128,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AACLTTHF574TVPR3QQD3NALP5SS2HANCNFSM4H5FG76Q
.

Not only that, I think we may want to rewrite some of the values (TBH I don't have a clue how the counter-write works).

maybe this is related to #54

@slivne Can you involve or assign someone? The issue causes part of longevitys always fail, it's a TEST blocker.

@amoskong to make it clear this is an issue with c-s it will happen even in cassandra,
can you check that.

@amoskong to make it clear this is an issue with c-s it will happen even in cassandra,
can you check that.

The stuck problem still exist with latest Cassandra.
https://github.com/apache/cassandra.git

commit 86812fa5024d957e28f195b2c4db3813439fb2c5
Merge: d0a207b 7206ff5
Author: Blake Eggleston<EMAIL_ADDRESS>Date:   Mon Jul 8 15:26:22 2019 -0700

    Merge branch 'cassandra-3.11' into trunk

cqlsh> CREATE KEYSPACE IF NOT EXISTS keyspace1
   ... WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'} AND durable_writes = true;
cqlsh>
cqlsh> CREATE TABLE IF NOT EXISTS keyspace1.counter1 (
   ...     key blob PRIMARY KEY,
   ...     "C0" counter,
   ...     "C1" counter,
   ...     "C2" counter,
   ...     "C3" counter,
   ...     "C4" counter
   ... ) WITH bloom_filter_fp_chance = 0.01
   ...     AND comment = ''
   ...     AND compaction = {'class': 'SizeTieredCompactionStrategy'}
   ...     AND compression = {}
   ...     AND default_time_to_live = 0
   ...     AND gc_grace_seconds = 864000
   ...     AND max_index_interval = 2048
   ...     AND memtable_flush_period_in_ms = 0
   ...     AND min_index_interval = 128
   ...     AND speculative_retry = '99.0PERCENTILE';
cqlsh>

[amos@amos-centos7 apache-cassandra]$ ./tools/bin/cassandra-stress counter_write no-warmup cl=QUORUM duration=10s -port jmx=6868 -mode cql3 native -rate threads=1 -pop seq=1..1000
...
total,                                                  1000,     361,     361,     361,     2.7,     2.6,     4.9,     6.6,    10.5,    10.5,    5.0,  0.24362,      0,      0,       0,       0,       0,       0

<stuck>

@amoskong to make it clear this is an issue with c-s it will happen even in cassandra,
can you check that.

The stuck problem still exist with latest Cassandra.

The result only means that the problem exists with Cassandra + c-s, still not sure if it's problem of c-s tool or server, or both. However it's truly an upstream issue.


Game broken

When attempting to access this at https://githubschool.github.io/github-games-ayip723/, I am getting a 404. This could be caused by a couple things:

GitHub pages needs to be enabled on master. You can fix this in the repository settings.
the index.html file is incorrectly named inde.html. We will fix this together in class.

Can you please fix the first bullet @ayip723?

When attempting to access this at https://githubschool.github.io/github-games-ayip723/, I am getting a 404. This could be caused by a couple things:
* GitHub pages needs to be enabled on master. You can fix this in the repository settings.

* the index.html file is incorrectly named inde.html. We will fix this together in class.

Can you please fix the first bullet @ayip723?

Done.


Cantor's teepee is not totally separated

https://topology.jdabbs.com/spaces/S000126/properties/P000048
As mentioned on that page, this is shown in Steen & Seebach item 3 for space 129, and I can understand the argument in the book.
But I cannot make sense of the alternative argument in pi-base.  Assuming U_p and U_q are disjoint (not mentioned, but I assume that's the case).  The boundary of U_p must intersect L(c).  So far so good.  But why does that imply the existence of t in C such that $\delta U_p \cap L(t) \cap X$ is nonempty?  (for example it could be that a point in L(c) intersect boundary of U_p is an isolated point of the boundary of U_p that does not even belong to X, and there are no nearby points in the triple intersection above.)
Furthermore, the argument in the book makes essential use of the fact that Cantor's leaky tent (i.e. with the apex added back) is connected, which is a highly nontrivial result.  But the alternative argument above makes no use of that fact. It seems it would be too simple to work.
Maybe I am missing something simple.  Do you guys think the alternative argument works?

Hi @gb-solis @tomaszrz1 If you have the chance, could you take a look at this issue and see what you think?  Trying to get feedback on this from recent fellow pi-base contributors.

I haven't thought much about this one, but I'll note that many proofs in the pi-Base were contributed by undergraduates in a course developed around using the pi-Base a few years back (2015ish maybe? it was before I was officially involved in the project directly). So while we've since made an effort to audit the property and theorem data, any proofs from that period haven't been reviewed closely. I'd accept a PR that removes a questionable proof, since we have the Counterexamples citation to rely on.
Also maybe this question is worth posing on Math.Stackexchange?

Thanks Steven.  I'll do a PR for this in a few days. (Don't really think it's worth asking on stackexchange, as I am pretty sure the additional proof is not correct.)
And thanks @gb-solis and @tomaszrz1 anyway.

Sorry for the delay on looking this over @prabau . Thank you for the detailed work on this space!

Sorry for the delay on looking this over @prabau . Thank you for the detailed work on this space!

No problem. Thanks!


add API to set a resource value without forced text conversion

Mbed Edge pull request
This adds a new API for setting a resource value without forcing all value types into a text type.  This allows to retain the underlying data types supported by the mbed-cloud-client library, for example float, boolean, integers, and more, and gives a more expected result when viewing the data from the portal.
Description
Adds an alternative API for setting LwM2M resource values without forcing text conversion.
Test instructions
Build edge-core as usual.  Add LwM2M resources of various types.  Set the value of those types using the new API.  View the values of those types in the portal, noting that the data type is the same as what set by the client and has not been converted in an unexpected way.
Check list
API change(s)

[ ] Not applicable.
[ ] API is backwards compatible.
[ ] API documentation is updated.

Example applications updated

[ ] Not applicable.

@costanic  - rebase? Why hasn't this been merged @whygoyal ?
Looks perfectly fine.

rebase complete, please merge.  Test instructions and description are in the PR description.  If more is needed, please let me know.

@whygoyal I see there are unit test failures but I'm unable to access the logs or run the tests.  Are these valid failures?  Is it possible to copy the failure text here?

I was shared this error but I don't see this error locally.  Can you share details about how mbed-edge is built in this CI, including CMAKE build options please?
In file included from /home/jenkins/agent/ws/repo-mbed-edge_PR-61/lib/mbed-cloud-client/update-client-hub/modules/common/update-client-common/arm_uc_common.h:27:0,
                 from /home/jenkins/agent/ws/repo-mbed-edge_PR-61/lib/mbed-cloud-client/update-client-hub/source/update_client_hub_state_machine.h:27,
                 from /home/jenkins/agent/ws/repo-mbed-edge_PR-61/lib/mbed-cloud-client/update-client-hub/modules/pal-linux/source/arm_uc_pal_linux_implementation.c:28:
/home/jenkins/agent/ws/repo-mbed-edge_PR-61/lib/mbed-cloud-client/update-client-hub/modules/common/update-client-common/arm_uc_trace.h:51:0: note: this is the location of the previous definition
 #define TRACE_GROUP  "UC"

../../edge-client/libedge-client.a(edge_client.cpp.o): In function `edgeclient_set_resource_value_native':
/home/jenkins/agent/ws/repo-mbed-edge_PR-61/edge-client/edge_client.cpp:1381: undefined reference to `M2MResourceBase::set_value_float(float)

The unit test error was a missing function in one of the test mock files.  This is ready for re-review.

@costanic  - needs rebasing still.

rebased.  again.


Replace Logo and Texts on Frontend

Use the jobshippo logo on Figma
Replace all mentions of jobsgowhere to jobshippo on Frontend

Closing this as this is done.


Load parser

Load project from file fixed. loads project correctly. Doesnt currently load file ids back into filehandler upon load. So this is to be fixed as a next step.

Odd thar i wasnt prompted by git rhat there were still merge heads. Thought i got them all.


Update BASE_VERSION to 1.21-2024-03-28T19-03-02

@istio-testing: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-telemetry-mc_istio_release-1.21
cdba60d5ef56b1ce7ea45d9e94fe5ea368850b46
link
true
/test integ-telemetry-mc

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

/test integ-telemetry-mc


[question] where are old versions

Which commit number was version 0.2 rc4. This version worked just fine for me, with 0.4rc1 I have problem with AoT compilation and lodash. It is a bad practice to unpublish old versions from npm.

Hi @UrosSimovic I think you're using Angular 2, and that's why you're facing problems with v0.4.0-rc.1 which is scaled to Angular 4.
You can use the v0.2.0-rc.5 by specifying it in your package.json, it contains all the functionality that v0.2.0-rc.4 had, with issues resolved.

Thanks for your answer. I'm using angular v4.0.1, but there are some problem with lodash. I'm using https://github.com/mgechev/angular-seed for aot building and rollup. There is probably problem with angular-seed, but while resolving problem I need v0.2.0-rc-4 which was the last version without lodash.
Would you please return old version to npm?

Hi @UrosSimovic, not with lodash but with @types/lodash there are many problems - especially on versions higher than 4.14.55 and lower than 4.14.50. It's all related with TypeScript 2.0 / 2.1 / 2.2. When the version is fixed to 4.14.55 (instead of ^4.14.55 or higher or lower) it might help disappearing those problems (using TypeScript 2.2).
Well this was just some little advice, anyway I'm attaching the bundle of v0.2.0-rc.4 below this post, just copy it to the node_modules foler.
Hope it helps, and if you need further help with lodash, just let me know.
meta.zip

Thanks for meta.zip.
As as I thought there is problem with lodash and rollup. A lot of similiar issues regarding angular, rollup and lodash.
I can't see any advanteges of using lodash just for two methods (has, get). It is easy to replace them.

Actually I want to thank you @UrosSimovic for this feedback, I'm considering them all before reaching the final release (from the RC's).
At the next RC, I'll remove the lodash dependency and I think after that RC meta will reach to the final release.

Oh, nice. Thanks again.

I've just created an issue about this, so you can track the status on #40.


Update brew install instructions

When using Brew, it will install the core formula for Mailpit instead of the formula in the tap if there is a conflict with formula names. To ensure the installation of the correct formula, specify the full formula path.

Thanks, but Mailpit has actually just been added to the Homebrew Formulae :-) The installation instructions have just been updated via another merge request.

I've seen the other PR, but as stated in my comment there, your formula is better :)

That's interesting - I don't use brew so I'm really glad they have added it so it is officially maintained and doesn't require additional steps to add the tap. Maybe it's worth you opening a request on https://github.com/Homebrew/homebrew-core/issues to add the service entry?


[FLINK-13623][Tests] Update StatefulJobSavepointMigrationITCase to restore from 1.9 savepoint

What is the purpose of the change
This pull request updates StatefulJobSavepointMigrationITCase to restore from 1.9 savepoint
Brief change log

Generated binary snapshot files
Updated migration version

Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (yes / no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no)
The serializers: (yes / no / don't know)
The runtime per-record code paths (performance sensitive): (yes / no / don't know)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (yes / no / don't know)
The S3 file system connector: (yes / no / don't know)

Documentation

Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

@tillrohrmann yes.


1.8.0

Release 1.8.0

i have some doubts around releasing this. i want to get some fixes in around the node compat stuff. can we hold up on the release for now?
see https://github.com/netlify/netlify-plugin-edge-handlers/pull/88#issuecomment-703713149

:+1:

if we land this PR, we can continue releasing: https://github.com/netlify/netlify-plugin-edge-handlers/pull/93

Rebased :+1:


How to use AgGrid API

https://www.ag-grid.com/javascript-grid-data-update-transactions/
hi i'm looking for a guide to use  the grid API applyTransaction(transaction) to correctly update the data in my grid.
i read  your example :https://justpy.io/grids_tutorial/grid_api/ but in this example the functions:
self.grid.run_api('selectAll()', msg.page)    and  self.grid.run_api('deselectAll()', msg.page)
don't need any parameter.
applyTransaction(transaction) instead need the transaction object, can you show me how to pass it correctly?
thanks for the help

In order for applyTransaction to work, it looks like changes are required in the JavaScript part of the AgGrid component.
You can still get the same results by changing the rowData in the grid options on the server side. Is that not a viable option for you?

it's not the same , look at the example:
https://www.ag-grid.com/javascript-grid-data-update-transactions/
the add items button insert new data without losing the selection; changing the rowData directly will delete this information.
The difference is explained here: https://www.ag-grid.com/javascript-grid-data-update/#setting-fresh-row-data

I see. I will add support for this in a future version.

I too would love this feature. I would like to refresh ag-grid cell values as new (streaming) values arrive. Updating row data redraws the entire table, which leads to a number of undesirable side effects.  I have found this easy using Quasar, but it seems impossible using ag-grid as applyTransaction (and similar api methods)  are not supported.

Below is an example of how I've been interacting with Ag-grid API, particularly with applyTransaction. Using this approach, I've been able to use most (if not all) of the API methods
import justpy as jp

grid_options = {
    'defaultColDef': {
        'filter': True,
    },
      'columnDefs': [
      {'headerName': "Make", 'field': "make"},
      {'headerName': "Model", 'field': "model"},
      {'headerName': "Price", 'field': "price"}
    ],
      'rowData': [
      {'make': "Toyota", 'model': "Celica", 'price': 35000},
      {'make': "Ford", 'model': "Mondeo", 'price': 32000},
      {'make': "Porsche", 'model': "Boxter", 'price': 72000}
    ],
}

async def new_row(self, msg):
    wp = msg.page
    new_row = {"make": "Chevy", "model": "Corevette", "price": 42100}
    await wp.run_javascript(f"""cached_grid_def['g' + {wp.grid.id}].api.applyTransaction({{  add: [{new_row}] }})""")

def grid_test():
    wp = jp.QuasarPage()
    jp.QBtn(a=wp, icon='fas fa-plus-square', color="light-green-14", click=new_row)
    wp.grid = jp.AgGrid(a=wp, options=grid_options)
    return wp

jp.justpy(grid_test)

Thank you for posting this!
Based on your solution I added a new method to the AgGrid class that will be available in the upcoming version. The new_row event handler would then look like this:
async def new_row(self, msg):
    wp = msg.page
    new_row = {"make": "Chevy", "model": "Corevette", "price": 42100}
    transaction = {'add': [new_row]}
    # await wp.run_javascript(f"""cached_grid_def['g' + {wp.grid.id}].api.applyTransaction({{  add: [{new_row}] }})""")
    await wp.grid.apply_transaction(transaction, wp)

If you are doing more things like this, let me know and I will add them as methods to AgGrid.

I need update functionality. This is slightly more complex as it requires a row node object.  I will give a shot at adapting the method suggested by @rroyer-xyz and will post any working code.
The challenge is that grid options will require a function to be defined for getting the row node id as in the below example. @elimintz and others, any suggestions?
const gridOptions = {
    getRowNodeId: (data) => data.id,

    // other grid options ...
}

A few notes, questions, and suggestions:
ag-grid version
In case anyone is attempting to test out the above code before a new release, I needed to update ag-grid to a newer version as applyTransaction does not exist in ag-grid 23.0.2.  I updated the local copy to ag-grid 25.3.0 with no problems.
Minor code improvement in run_javascript(...) usage
@elimintz: A minor improvement to improve efficiency by better utilizing Python:
Take this line of code from the above example:
    await wp.run_javascript(f"""cached_grid_def['g' + {wp.grid.id}].api.applyTransaction({{  add: [{new_row}] }})""")

This code can be improved thus:
    await wp.run_javascript(f"""cached_grid_def['g{wp.grid.id}'].api.applyTransaction({{  add: [{new_row}] }})""")

Same processing time on the server and it saves computation time on the client side.  I am happy to submit a PR changing all similar instances in the code base, however it appears you are not keeping development code in GitHub and this would need to happen on the current code base.

Below is an example using update functionality and getRowNodeId. The line "wp.grid.evaluate" is needed to set the row id
import justpy as jp

grid_options = {
    'defaultColDef': {
        'filter': True,
    },
      'columnDefs': [
      {'headerName': "Make", 'field': "make"},
      {'headerName': "Model", 'field': "model"},
      {'headerName': "Price", 'field': "price"}
    ],
    'getRowNodeId': '''function (data) {
          return data.id;
      }''',
    'rowData': [
      {'id': 1, 'make': "Toyota", 'model': "Celica", 'price': 35000},
      {'id': 2, 'make': "Ford", 'model': "Mondeo", 'price': 32000},
      {'id': 3, 'make': "Porsche", 'model': "Boxter", 'price': 72000}
    ],
}

async def update_row(self, msg):
    wp = msg.page
    update_rows = [{'id': 1, 'make': "Toyota", 'model': "Celica", 'price': 999},
                  {'id': 2, 'make': "Ford", 'model': "Mondeo", 'price': 888}]
    await wp.run_javascript(f"""cached_grid_def['g' + {wp.grid.id}].api.applyTransaction({{  update: {update_rows} }})""")

def grid_test():
    wp = jp.QuasarPage()
    jp.QBtn(a=wp, icon='fas fa-plus-square', color="light-green-14", click=update_row)
    wp.grid = jp.AgGrid(a=wp, options=grid_options)
    wp.grid.evaluate = ['getRowNodeId']
    return wp

jp.justpy(grid_test)

Thanks again. This looks like it solves the issue of working with node ids.
@othalan does this solve your problem?

Thank you @rroyer-xyz.  As it happens, mere seconds before your update I came to the same solution.
@elimintz, yes this does solve my problem.  It took me awhile to find wp.grid.evaluate.
However, as an implementation detail I wonder if there is a better way to provide access to API methods. The proposed new_row method is a very narrow use of the highly flexible ag-grid applyTransaction function.
In a perfect world, it would be nice to have the ag-grid api function calls mirrored in the python api.  Perhaps there is a method to automate this via inspection of the javascript code?
Alternatively, rather than providing narrow use case methods such as new_row, perhaps more extensive documentation around using api calls would be sufficient.
Or another alternative, perhaps a more flexible run_api call would be sufficient.  Such as this:
    async def run_api(self, page, command, *args):
        await page.run_javascript(f"cached_grid_def.g{self.id}.api.{command}({args})")

Example usage:
await self.run_api(wp, "applyTransaction", {"update": updated_rows_list, "add": new_row_list})

I would need to examine the ag-grid api in more detail to determine if the above is sufficient, but at a quick glance I think it would cover most use cases.

Thank you @rroyer-xyz.  As it happens, mere seconds before your update I came to the same solution.
@elimintz, yes this does solve my problem.  It took me awhile to find wp.grid.evaluate.
(NOTE: I posted this comment before, but realized I needed a few changes.  So deleted the old comment and added a new version....)
However, as an implementation detail I wonder if there is a better way to provide access to API methods. The proposed new_row method is a very narrow use of the highly flexible ag-grid applyTransaction function.
In a perfect world, it would be nice to have the ag-grid api function calls mirrored in the python api.  Perhaps there is a method to automate this via inspection of the javascript code?
Alternatively, rather than providing narrow use case methods such as new_row, perhaps more extensive documentation around using api calls would be sufficient.
Or another alternative, perhaps a more flexible run_api call would be sufficient.  Such as this:
    async def run_api(self, page, command, args=None):
        await page.run_javascript(f"cached_grid_def.g{self.id}.api.{command}({','.join([str(x) for x in args or []])})")

Example usage:
await self.run_api(wp, "applyTransaction", {"update": updated_rows_list, "add": new_row_list})

I would need to examine the ag-grid api in more detail to determine if the above is sufficient, but at a quick glance I think it would cover most use cases.

Please see https://github.com/elimintz/justpy/issues/158#issuecomment-875674681 above.
I added the apply_transaction method to my development version and it will be part of the upcoming version.

Please see #158 (comment) above.
I added the apply_transaction method to my development version and it will be part of the upcoming version.

My apologies, I wasn't thinking straight looking at that comment!
I still wonder if API calls in general could be helped about by a bit of more flexible code.

No need to apologize. Would be happy to improve the api interface. If you think of something, let me know.

I will feed back my ideas as I continue development on my project.


resolve the egg after the nuxt.js set headers

nuxt.js will after the egg framework using

It done. Please Use  0.1.3 Version
npm install nuxt-egg --save


Links in readme are broken

All the links in the readme go to non existant files in the git repo and not to the actual site

:eyes:

Fixed as of: 052935d8d07ecdbd8410e008bc9c5b28494059db


Add edb:collapsed directive

Supersedes #3586

@jaclarke I've added a test and silenced mypy complaints. If I forget to merge it please do it yourself.


Split compression related tests into a test group #3689

Maybe also add an entry for sortModulesPath in the root pom.xml for the cq-maven-plugin.


Nullable Reference Types

This is for #194 . I'll make separate pull requests for this per project, so you can already have a look to see if it's going in the right direction.
This one is for Shared.DTOs.
Most of the types here are requests so I think simply marking the strings as nullable is the way to go here (as they might not always be sent with a request?).
I did the same for the responses and the dtos, which usually get filled by the mapper... This might need to be changed once we get to the actual entities where they get mapped from, but I'm not 100% sure here about what the mapper is able to handle with regards to non nullables...
There was only one type I changed a bit more and that's MailRequest. There I left To and Subject as non nullable (as they actually need to be non null to be able to send a message) and added a constructor to accommodate for that.
A bit off topic, but I'm not sure MailRequest belongs in the Shared.DTOs project. It's not actually a dto. It's a type designed specifically to call the IMailService which is kind of an internal service as mailrequest will never be part of an actual api request. So I think it shouldn't even have "request" in its name...
I'm not sure that the whole Shared.DTOs project is actually still necessary? I guess you made that split to be able to use that "shared dtos" library from the client that calls the api in case it's a dotnet client or blazor? But you're not using that in the blazor project?
This is even more off topic, but I think it would be better to use something like NSwag to generate the client and dto's to call the api from blazor anyway. Or from typescript for that matter...

Will it be possible for you to push all changes to this PR itself? I can wait till you complete and merge everything together.

Sure I can do that. I probably won't be able to work on this much this week though... that's why I thought to split it up...

For EF Core I will keep the nullability of fields like they are now, otherwise it will require migrations. There are quite some fields which probably should be required (as in "not null") which aren't now. Like for instance the "Tenant" field on IMustHaveTenant. The name of the interface indicates that it should  be required, but it isn't in the database.
There are other fields like Product.Name and Brand.Name, which are required according to the validator (NotEmpty), but not in the database...
Any thoughts on this? @iammukeshm
On another note, I see validation is done now on the Request level. Shouldn't there also be some validation at the domain level for the entities? Otherwise this seems like a setup with a lot of repetition like we already have now in e.g. createbrandvalidator and updatebrandvalidator? I might be wrong and I'm not too familiar with the fluentvalidation library, but it feels like these should just delegate the validation to a "brandvalidator" or something like that?

Okay, I did find some time this week after all, and I think this is done ;-)
There are definitely some places where we'll have to review the nullability of properties:

entities (those require a migration)
settings (some of those are required, we'll have to take a look if we can implement proper validation for e.g. jsonsettings.key amongst others)

Regarding your question about validating at the domain level. Yes we could add that too. But I find validating the requestDTOs are more important because in the case of an invalid request, the pipeline would throw an error as soon as it reaches the DTO object itself. If we were to implement validations only for domain objects, the request will pass in up to domain layer, which mightbe waste of resources. But, yes for added reliability, one should surely validate at the domain level too.

settings (some of those are required, we'll have to take a look if we can implement proper validation for e.g. jsonsettings.key amongst others)

I have seen in a project, where they generate a JSON schema for a cs class along with [Required] attributes and attach the URL of this schema file to the ****.json file. This will help the user to intelligently write ***settings.json as well as throw expcetions for required fields when empty. have to research on this.

I don't understand its real use in putting all nullable <?> variables. .... when these can already assume null values.
ex.
string? s1 = null; // same a Nullable s1;
string s2 = null;
Why is this?

I don't really understand your question. The point of Nullable Reference Types (NRTs) is to avoid the throwing of NullReferenceExceptions at runtime, but in stead catch those errors at compile time. See https://docs.microsoft.com/en-us/dotnet/csharp/nullable-references.
In your example string s2 = null; is invalid when NRTs are enabled. In that case it throws a compiler error.


Trying to calculate the mean of an empty Histogram fails

Running .mean() on an empty Histogram object (Histogram(None, 1000, {0: 0.0})) fails with a divide by zero error:
  File "/src/traces/traces/histogram.py", line 30, in mean
    return weighted_sum / float(self.total())
ZeroDivisionError: float division by zero

To be clear, in order to create that Histogram object one needs to do so explicitly, or by manually adding/subtracting two Histogram objects.

I tend to think this should fail, but agree it could fail with a more informative error message — is that what you have in mind?

I expect the behavior of a {0:0} Histogram to be identical to that of an empty Histogram. I believe right now only one of them fails. I think they should either both fail (and raise the same exception) or both return the same thing.

I get ZeroDivisionError: float division by zero for both traces.Histogram.from_dict({0:0}).mean() and traces.Histogram().mean().

I was remembering wrong then. Sorry.
I still feel that raising an exception here is a bit heavy handed, since it basically means that some of the methods on the class fail to run for very vanilla objects. Idea: we could return None when the Histogram is empty?

This has been resolved, so closing issue.


does not work with nested async thunks?

adapted from the async example in the README:
import configureStore from "redux-mock-store";
import thunk from "redux-thunk";

const middlewares = [thunk]; // add your middlewares like `redux-thunk`
const mockStore = configureStore(middlewares);

// You would import the action from your codebase in a real scenario
function success() {
  return {
    type: "FETCH_DATA_SUCCESS"
  };
}

function success_innerAsync() {
  return {
    type: "FETCH_DATA_SUCCESS--INNER_DISPATCH"
  };
}

function fetchData() {
  return async dispatch => {
    await fetch("/users.json"); // Some async action with promise
    dispatch(success());
    dispatch(fetchMoreData_innerAsync());
  };
}

function fetchMoreData_innerAsync() {
  return async dispatch => {
    await fetch("/more-data.json"); // Some async action with promise
    dispatch(success_innerAsync());
  };
}

it("should execute fetch data", () => {
  const store = mockStore({});

  // Return the promise
  return store.dispatch(fetchData()).then(() => {
    const actions = store.getActions();
    expect(actions).toEqual([success(), success_innerAsync()]);
  });
});

What I'm expecting here is that the thunk fetchData dispatches success() to the store and also dispatches the thunk fetchMoreData_innerAsync; this second thunk should dispatch success_innerAsync() to the store. So i would expect e.g.:
expect(store.getActions()).toEqual([success(), success_innerAsync()]);
But instead, the result is:
Expected value to equal:
  [{"type": "FETCH_DATA_SUCCESS"}, {"type": "FETCH_DATA_SUCCESS--INNER_DISPATCH"}]
Received:
  [{"type": "FETCH_DATA_SUCCESS"}]

Difference:

- Expected
+ Received

Array [
    Object {
      "type": "FETCH_DATA_SUCCESS",
    },
-   Object {
-     "type": "FETCH_DATA_SUCCESS--INNER_DISPATCH",
-   },
  ]

Here's a code sandbox demonstrating:
https://codesandbox.io/s/fragrant-smoke-e0egv?file=/src/index.test.js
This is just a minimal example for to demonstrate, this kind of usage of async thunks in real code seems to work fine in my application. Hence, I don't think I'm abusing Redux/thunks somehow  (though please let me know if i am!), but rather that I'm either not understanding how to properly use the mock store, or that there's a bug that only captures the top level of async thunks.
(Or perhaps this will turn out to be a feature request for some kind of new API that expands on .getActions to await all nested async actions/thunks somehow...)
Thanks for any advice!

Update: this definitely seems to be a tricky race condition kind of thing, because inserting a brief delay allows the tests to pass.
Here's an updated sandbox https://codesandbox.io/s/nifty-hofstadter-wnouo
And I'll put the updated passing code here as well for posterity:
import configureStore from "redux-mock-store";
import thunk from "redux-thunk";

const middlewares = [thunk]; // add your middlewares like `redux-thunk`
const mockStore = configureStore(middlewares);

// You would import the action from your codebase in a real scenario
function success() {
  return {
    type: "FETCH_DATA_SUCCESS"
  };
}

function success_innerAsync() {
  return {
    type: "FETCH_DATA_SUCCESS--INNER_DISPATCH"
  };
}

function fetchData() {
  return async dispatch => {
    await fetch("/users.json"); // Some async action with promise
    dispatch(success());
    dispatch(fetchMoreData_innerAsync());
  };
}

function fetchMoreData_innerAsync() {
  return async dispatch => {
    await fetch("/more-data.json"); // Some async action with promise
    dispatch(success_innerAsync());
  };
}

async function wait(ms) {
  return new Promise(resolve => {
    setTimeout(resolve, ms);
  });
}

it("should execute fetch data", async () => {
  const store = mockStore({});

  // Return the promise
  await store.dispatch(fetchData());
  await wait(1000);
  const actions = store.getActions();
  expect(actions).toEqual([success(), success_innerAsync()]);
});

I'm having this same issue :(

@landonalder thanks!! I had the same error and after reading your comment about the error not showing. I search for and discovered the error. It is working now!

@garyee glad to hear this helped :)


[FP]: plexus-cipher for CVE-2022-4244

Package URl
<EMAIL_ADDRESS>CPE
cpe:2.3:a:codehaus-plexus_project:codehaus-plexus:2.0:::::::*
CVE
CVE-2022-4244
ODC Integration
None
ODC Version
10.0.3
Description
As per snyk reference the vulnerable component is plexus-utils, however in OWASP scan result subject CVE is reported on plexus-cipher & plexus-interpolation.
The vulnerable is applicable for version before 3.0.24, however latest available version from maven of plexus-cipher is 2.1.0 and plexus-interpolation is 1.27
https://security.snyk.io/vuln/SNYK-CENTOS7-PLEXUSUTILS-3183869

Have raised this one with the NVD as a data anomaly in the NVD data. There is a better CPE available in the CPE dictionary to link to the plexus-utils project explicitly (and the currently linked CPE is not registered in the CPE dictionary).


Casting fails in Home Assistant 2024.7.0

Error thrown on service calls that used to work (not sure of last working HA version):

I'm an idiot, was just using an old version. Current one works great!


[Question] Detect if a car is driving on the wrong side of the road

Hi, is there a way to detect when the car is driving on the wrong side of the road? I initially thought that the best way was to use a lane invasion detector but this works only on roads where there is a solid lane marking between the two sides of the road.
Is there a way already built in Carla to detect it?

Hey @FranNetti, we have something like that implemented in SR. A simplified version is this code here (WrongLaneTest.zip)
The idea behind it is to keep getting the heading of the waypoint that represents your vehicle's location. With normal driving, the angle between your current waypoint and the previous one will be very small. However, when you change to an opposite lane, the heading difference will be much larger (theoretically, of 180º). At that time, you know you moved to an opposite lane (just beware, you have to differentiate between going out of your lane and back into it).
This approach doesn't work for junctions though, as there are many different roads there and when you exit the intersections, you have to do some additional calculus.
Let me know if this helps

Yes, thank you. It was exactly what I was looking for, it helped a lot!


Indenting function/struct within a module causes invalid-function error

Dear author,
After upgrading to v1.0.0 recently, I ran into this problem when I tried to indent functions within a module.
As you can see from the screenshot below, if I try to press TAB to indent the line the point is currently positioned, I got the error (also captured in the screenshot):
Debugger entered--Lisp error: (invalid-function (find-annotation (open-parens) (cond ((not open-parens) nil) ((char-equal 40 (char-after (car open-parens))) (find-annotation (cdr open-parens))) ((char-equal 91 (char-after (car open-parens))) (goto-char (car open-parens)) (backward-char) (looking-at "#\\[")) (t nil))))
  (find-annotation (open-parens) (cond ((not open-parens) nil) ((char-equal 40 (char-after (car open-parens))) (find-annotation (cdr open-parens))) ((char-equal 91 (char-after (car open-parens))) (goto-char (car open-parens)) (backward-char) (looking-at "#\\[")) (t nil)))()
  move--ppss-in-annotation()
  move--prev-assignment(74)
  move--indent-column()
  move-mode-indent-line()
  indent--funcall-widened(move-mode-indent-line)
  indent-for-tab-command(nil)
  funcall-interactively(indent-for-tab-command nil)
  call-interactively(indent-for-tab-command nil nil)
  command-execute(indent-for-tab-command)

Output of M-x emacs-version:
GNU Emacs 29.4 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.43, cairo version 1.18.2)

I installed move-mode using straight.el and I'm on the latest commit of the main branch: f974cc69f279c45026f7386e0194be74779334a
My move-mode config is pretty simple
(autoload 'move-mode "move-mode" nil t)
(add-to-list 'auto-mode-alist '("\\.move\\'" . move-mode))
(with-eval-after-load "move-mode"
  (define-key move-mode-map (kbd"C-c C-l") #'lsp))

Indenting a field of a struct has no problems.  Could you take a look at the error? Many thanks

perhaps the required library is missing in the move-mode.el?
(require 'cl-lib)

Hi @Linerre, thanks for the report and sorry you hit this issue! I think you're right that we're missing a require for cl-lib so cl-labels isn't being recognised as a macro. If you're happy to submit a PR to add that, I will merge it, otherwise I'll work on reproducing the issue on a minimal config here and fixing.

If you're happy to submit a PR to add that, I will merge it, otherwise I'll work on reproducing the issue on a minimal config here and fixing.

Hi @amnn, thanks for your reply. I'd like to but I'm not 100% sure about the cause of this issue. So I have tried the following with zero-configured Emacs and just the move-mode.el:
emacs -q -L . -l move-mode.el

where . means I'm inside the move-mode source code directory on my machine. When trying to indent the swords_created function, I got Symbol's function definition is void: cl-lables in the echo area:

The code I used for testing is from Sui's official doc and I'm pasting it here just for convenience
module entry_functions::example {
    use sui::object::{Self, UID};
    use sui::transfer;
    use sui::tx_context::{Self, TxContext};

    struct Foo has key {
        id: UID,
        bar: u64,
    }

    /// Entry functions can accept a reference to the `TxContext`
    /// (mutable or immutable) as their last parameter.
    entry fun share(bar: u64, ctx: &mut TxContext) {
        transfer::share_object(Foo {
            id: object::new(ctx),
            bar,
        })
    }

    /// Parameters passed to entry functions called in a programmable
    /// transaction block (like `foo`, below) must be inputs to the
    /// transaction block, and not results of previous transactions.
    entry fun update(foo: &mut Foo, ctx: &TxContext) {
        foo.bar = tx_context::epoch(ctx);
    }

    /// Entry functions can return types that have `drop`.
    entry fun bar(foo: &Foo): u64 {
        foo.bar
    }

    /// This function cannot be `entry` because it returns a value
    /// that does not have `drop`.
    public fun foo(ctx: &mut TxContext): Foo {
        Foo { id: object::new(ctx), bar: 0 }
    }
}

If I add the following line, both move-mode.el and move-mode.elc (re-compiled using straight-rebuild-package) work for the indentation:
(require 'cl-lib)

I have created a PR anyway, but feel free to test/reproduce/check whichever part you have doubt about. Thank you for this awesome mode package :)

Thanks @Linerre! I did try to repro on my machine, using Emacs 29.4 and Emacs 30.6 (which is what I have installed):
GNU Emacs 30.0.60 (build 1, aarch64-apple-darwin23.5.0, NS appkit-2487.60 Version 14.5 (Build 23F79)) of 2024-07-16

Neither exhibited the issue on a bare config, so I guess something else is loading cl-lib during startup on my build. In any case, I also tested your fix and there were no issues with that either, so happy to merge, thanks for the super quick turnaround!


Unbreak release pipeline

Downgrade release pipeline to node 16 until xgo updates its base OS to a version with a compatible glibc.

bot


dotnet test: warning: Overwriting results file: duplicate trx file

Description
When we start up tests from a solution file using dotnet test -l trx, we encounter this warning occasionally:
EXEC : warning : Overwriting results file: D:\...\TestResults\2020.07.17-17.41.02\...04231817_2020-07-17_17_41_25.trx [d:\dbs\sh\acaa\0717_171134\cmd\0\src\dirs.proj]
Problem
The failure is stemming from SetDefaultTrxFilePath computing the next available file name through IsValidIteration but does not reserve it.  In case two test sessions are completing at the same time, they end up with the same trx filename, and by the time they write the results, one ends up clobbering the other.
Fix
Expect that the file gets created in IsValidIteration (and suppress the overwrite warning).

@kanchm Would it be okay for you if the content of file will be appended instead of overwriting it?

@Sanan07 gave this to Medeni a bit ago, but forgot to assign it please sync.

Would appending mean merge the two XML files?  File level append is not an option. Also this would be unsafe. The two independent appends would still step on each other.
An approach is to use Path.GetTempFileName which would reserve the name by creating the file and letting the trx writer overwrite it. You would not warn on the overwrite in this scenario.
Also, related to this is LogFilePrefix which could be improved by adding milliseconds "ffff" as I hit collisions at a second granularity when I tried it.

Actually I am thinking to append a number to end of it, if there is a collusion. In this case it could be 04231817_2020-07-17_17_41_25-1.trx and 04231817_2020-07-17_17_41_25.trx for example.

In this case you should take care of several possibilities of the same file collision, so you should store mapping for each file name.
E.g you already have file logFile.trx, then you have collision, so you create logFile-1.trx, then you again have collision, so in this case you should create logFile-2.trx and etc.
So in my opinion adding milliseconds should solve the issue, or add some randomly generated number as a suffix.

I am not sure if we rely on the naming somewhere.
If we do, I would consider checking if the name already exists, and adding 1s to the name, until we find a non-conflicting name:
e.g 04231817_2020-07-17_17_41_25.trx -> 04231817_2020-07-17_17_41_26.trx
if we don't, then adding the milliseconds as suggested above. if we are changing how the file is named, adding the ms is probably better than adding a suffix.

@Sanan07 of course I'll be checking for the first available number and not just add -1 to end of it.
@nohwnd as far as I see we don't. I am checking though. I don't like the idea of adding a second (because it will be misleading of actual log start time) or moving to millisecond granularity mainly because it would not fix the problem, just make it harder to occur.

@ShreyasRmsft  do you depend on the trx name in azdo? Or do you think we are free to change the format? I would guess some users are depending on it in their own pipelines, what do you think?
@Haplois

because it will be misleading of actual log start time

I don't think I would ever notice unless this occurs a lot of times in the row an pushes my timestamp by a full minute.

moving to millisecond granularity mainly because it would not fix the problem, just make it harder to occur.

You can "wait" 1 ms and try checking the filename again, then it won't happen ever, unless there is result file written every ms, which is veeery unlikely.

@nohwnd there are tasks that depend on trx naming conventions when uploading results, my suggestion is to not make any changes to the defaults but use cmdline paramters to modify the naming conventions if needed.

@ShreyasRmsft thank you for the warning. In that case we might go with @nohwnd's suggestion IMO.


cupy.array_api.linalg.vecdot deviates from the standard Array API specification

Description
cupy.array_api.linalg.vecdot does not behave the same as np.linalg.vecdot or jax.numpy.linalg.vecdot (or even cupy.dot) even when identical arguments are passed to these functions. The cupy.array_api function throws a shape error (ValueError) in the example below, whereas the other implementations don't.
I am aware that there are subtle differences between NumPy and CuPy, so I am not sure if this is a bug or if this is intended. It looks like a bug as passing the same arguments to cupy.dot works, but cupy.array_api.linalg.vecdot(..., axis=1) (should behave as dot) doesn't.
To Reproduce
Array API compatible NumPy implementation (works)
import numpy as np

rng = np.random.default_rng(seed=42)

a = rng.standard_normal((100, 20))
b = rng.standard_normal((100,))

_, n = a.shape
x = np.zeros(n)

w = np.linalg.vecdot(b - a @ x, a, axis=0)  # works

Array API compatible JAX implementation (works)
import numpy as np
import jax.numpy as jnp

rng = np.random.default_rng(seed=42)

a = rng.standard_normal((100, 20))
b = rng.standard_normal((100,))

a_j = jnp.array(a)
b_j = jnp.array(b)

_, n_j = a_j.shape
x_j = jnp.zeros(n_j)

w_j = jnp.linalg.vecdot(b_j - a_j @ x_j, a_j, axis=0)  # works

Array API non-compatible CuPy (works)
Using dot instead of linalg.vecdot(..., axis=1) as the latter does not exist -
import numpy as np
import cupy

rng = np.random.default_rng(seed=42)

a = rng.standard_normal((100, 20))
b = rng.standard_normal((100,))

a_cu = cupy.asarray(a)
b_cu = cupy.asarray(b)

_, n_cu = a_cu.shape
x_cu = cupy.zeros(n_cu)

w_cu = cupy.dot(b_cu - a_cu @ x_cu, a_cu)  # works

Array API compatible CuPy (does not work)
import numpy as np
import cupy.array_api as cp

rng = np.random.default_rng(seed=42)

a = rng.standard_normal((100, 20))
b = rng.standard_normal((100,))

a_c = cp.asarray(a)
b_c = cp.asarray(b)

_, n_c = a_c.shape
x_c = cp.zeros(n_c)

w_c = cp.linalg.vecdot(b_c - a_c @ x_c, a_c, axis=0)  # does not work
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
Cell In[48], line 1
----> 1 w_c = cp.linalg.vecdot(b_c - a_c @ x_c, a_c, axis=0)

File /mnt/c/Users/Saransh/Saransh_softwares/OpenSource/Python/glass/.env/lib/python3.10/site-packages/cupy/array_api/linalg.py:385, in vecdot(x1, x2, axis)
    383 x2_shape = (1,)*(ndim - x2.ndim) + tuple(x2.shape)
    384 if x1_shape[axis] != x2_shape[axis]:
--> 385     raise ValueError("x1 and x2 must have the same size along the given axis")
    387 x1_, x2_ = np.broadcast_arrays(x1._array, x2._array)
    388 x1_ = np.moveaxis(x1_, axis, -1)

ValueError: x1 and x2 must have the same size along the given axis

Installation
None
Environment
OS                           : Linux-<IP_ADDRESS>-microsoft-standard-WSL2-x86_64-with-glibc2.35
Python Version               : 3.10.12
CuPy Version                 : 13.3.0
CuPy Platform                : NVIDIA CUDA
NumPy Version                : 2.1.3
SciPy Version                : 1.14.1
Cython Build Version         : 0.29.36
Cython Runtime Version       : None
CUDA Root                    : /usr/local/cuda
nvcc PATH                    : /usr/local/cuda/bin/nvcc
CUDA Build Version           : 12060
CUDA Driver Version          : 12050
CUDA Runtime Version         : 12060 (linked to CuPy) / 12060 (locally installed)
CUDA Extra Include Dirs      : []
cuBLAS Version               : (available)
cuFFT Version                : 11300
cuRAND Version               : 10307
cuSOLVER Version             : (11, 7, 1)
cuSPARSE Version             : (available)
NVRTC Version                : (12, 6)
Thrust Version               : 200600
CUB Build Version            : 200600
Jitify Build Version         : <unknown>
cuDNN Build Version          : (not loaded; try `import cupy.cuda.cudnn` first)
cuDNN Version                : (not loaded; try `import cupy.cuda.cudnn` first)
NCCL Build Version           : (not loaded; try `import cupy.cuda.nccl` first)
NCCL Runtime Version         : (not loaded; try `import cupy.cuda.nccl` first)
cuTENSOR Version             : None
cuSPARSELt Build Version     : None
Device 0 Name                : NVIDIA GeForce GTX 1650 Ti
Device 0 Compute Capability  : 75
Device 0 PCI Bus ID          : 0000:01:00.0

Additional Information
No response

We plan to nuke the entire cupy.array_api module (https://github.com/cupy/cupy/issues/8470#issuecomment-2311516454) and be NumPy 2.0 compliant (#8306), after which cupy.vecdot will be added following numpy.vecdot and be complaint with the Array API standard.

Ah, nice, thank you! The docs do say that the module is experimental, but please let me know if it requires some more documentation saying that it will be deprecated soon and the behaviors right now might deviate from the latest Array API specification. I'll be happy to create a PR! Leaving this issues open to act as a reference for others (feel free to close it if it increases maintenance efforts).


Add risk to NAM villages geodata

We updated the NAM villages for 2018, but are missing risk.
Probably needs @HughSt.

@HughSt Could you extract risk onto this geojson? https://app.zenhub.com/files/118451995/98697e63-42d9-4db6-9a6d-79e3d7763c7e/download

Think we’ve used ‘max’ risk in the past. Needs to be into a field just called risk.
Can you then paste the file back onto this issue?

Working on it

Great! Thanks - I was starting to reinstall QGIS, but going in circles installing python2, uninstall python2, etc….

Here you go. There is 1 village which has no risk as it lies outside Namibia and the risk map. Bloody thing was coded as -Inf by R which was making my life fun..Let me know if there are any issues.
nam.villages.geojson.zip

Awesome - thanks @HughSt. Think @Nicolaidavies was able to update the geodata and deploy to staging. Waiting for go-ahead from Sameen to deploy to prod.

Ready to close, linked to #464


Error when installing pgstac > v0.8.1

I have a fresh postgres and I am trying to install pgstac via pygstac.
I installed pypgstac[psycopg]==v0.8.4 and run pypgstac migrate --debug but I get
DEBUG:pypgstac.db:PG VERSION: 15.4.
INFO:pypgstac.migrate:Migrating PGStac on PostgreSQL Version 15.4
DEBUG:pypgstac.db:PGStac is not installed.
INFO:pypgstac.migrate:No pgstac version set, installing 0.8.4 from scratch.
DEBUG:pypgstac.migrate:Running migration file /home/.../.venv/lib/python3.11/site-packages/pypgstac/migrations/pgstac.0.8.4.sql.
DEBUG:smart_open.smart_open_lib:{'uri': '/home/.../.venv/lib/python3.11/site-packages/pypgstac/migrations/pgstac.0.8.4.sql', 'mode': 'r', 'buffering': -1, 'encoding': None, 'errors': None, 'newline': None, 'closefd': True, 'opener': None, 'compression': 'infer_from_extension', 'transport_params': None}
Traceback (most recent call last):
  File "/home/.../.venv/bin/pypgstac", line 8, in <module>
    sys.exit(cli())
             ^^^^^
  File "/home/.../.venv/lib/python3.11/site-packages/pypgstac/pypgstac.py", line 125, in cli
    fire.Fire(PgstacCLI)
  File "/home/.../.venv/lib/python3.11/site-packages/fire/core.py", line 141, in Fire
    component_trace = _Fire(component, args, parsed_flag_args, context, name)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/.../.venv/lib/python3.11/site-packages/fire/core.py", line 466, in _Fire
    component, remaining_args = _CallAndUpdateTrace(
                                ^^^^^^^^^^^^^^^^^^^^
  File "/home/.../.venv/lib/python3.11/site-packages/fire/core.py", line 681, in _CallAndUpdateTrace
    component = fn(*varargs, **kwargs)
                ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/.../.venv/lib/python3.11/site-packages/pypgstac/pypgstac.py", line 61, in migrate
    return migrator.run_migration(toversion=toversion)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/.../.venv/lib/python3.11/site-packages/pypgstac/migrate.py", line 149, in run_migration
    cur.execute(migration_sql)
  File "/home/.../.venv/lib/python3.11/site-packages/psycopg/cursor.py", line 732, in execute
    raise ex.with_traceback(None)
psycopg.errors.InsufficientPrivilege: must be member of role "pgstac_ingest"

I started reducing the version and finally pgstac got installed with pypgstac==v0.8.1.
Then I installed again 0.8.4 and run pypgstac migrate  --debug but I get the same error.
Finally I run in the db GRANT pgstac_ingest TO user; and then pypgstac migrate with 0.8.4 and it worked, however I am wondering if the manual command can cause any problems

@charalamm with that debugging information, I'm not able to tell what is going on here as the psycopg trace does not include the SQL that was resulting in the error.
The tests are definitely creating a fresh database and are able to run the base migration, so I'm not sure what could be different on your system. Could you try running the base migration manually on a fresh database without pgstac installed? (On a fresh install, this is all that pypgstac migrate is doing behind the scenes)
psql -f /home/.../.venv/lib/python3.11/site-packages/pypgstac/migrations/pgstac.0.8.4.sql


add "how to bootstrap a new project using electron-react-boilerplate" in readme

I am probably a bit too nooby but I have read the readme several times trying to find out how to bootstrap a new project using this boilerplate.
I believe it is not explained.
The readme contains two first steps: "Install" and "Run".
Seems to me that there must be a step before "Install" which is running npm install which makes no sense without a prior step.
Maybe I have to clone the repository first?

You are right. I will add instruction of clone repo to README. thanks

thanks for this GREAT tool!
2016-03-14 3:08 GMT+01:00 C. T. Lin<EMAIL_ADDRESS>
Closed #178
https://github.com/chentsulin/electron-react-boilerplate/issues/178 via
6d36759
https://github.com/chentsulin/electron-react-boilerplate/commit/6d367591c0a9891a1e226ee5487075d7c89958c4
.
—
Reply to this email directly or view it on GitHub
https://github.com/chentsulin/electron-react-boilerplate/issues/178#event-588106444
.


How to model associations?

This is probably more related to my lack of experience with rails ActiveRecord than shrine so please feel free to close if its not relevant.
I'm having trouble figuring out how to setup my models as all the examples I have found use very simple one-to-one associations.
Lets say I have a Post model with a single cover image and many images:
 hero_image: image_data
 images: image_data

And then have a User model with a single avatar image:
  avatar: image_data

How would you model this? I thought a polymorphic association might be a good solution for the Post models has_many images as it is likely that I will need a similar setup for other models, but how would I setup the single images such as the hero_image and avatar?  Would they all be stored I the seperate Images model or only the ones with multiple images?

Hi, @j-jackson! Please have a look at readme, it says the issues area is actually for issues (bugs etc), questions should go to google group.

First of all, Post#images is the only case where you need to have a separate Post.has_many :images association, but you can also easily have Post.has_one :hero_image and User.has_one :avatar if you want to. In any case you'll probably want to use accepts_nested_attributes_for to make creation a bit easier. Whether or not attachments are separate records doesn't really change anything in how Shrine works or how to set it up, you still have an attachment on a record.
Whether the associations will be polymorphic or not depends entirely on your requirements. If you want to have associations for all three kinds of images, you will need to add some kind of identifier because now the same model (Post) has multiple attachments. Or if you realize that you want to have different logic for "hero images" and "avatars", then you might want to use a different record and/or uploader. Shrine normally supports uploader inheritance, so you have all tools in the shed for whichever route you want to go to.

Thanks @janko-m thats perfect.


document operation with minimal copying from local

Hi,
I have a situation where it's easy for me to push to a cache, and easy to pull from the cache, but very excruciatingly slow to copy from the local machine.
I'm opening this to collect suggestions on how to minimize the paths that are copied from local.
Potential criteria to close this:

document how to build all of the paths that nixos-anywhere deploys, and push to cachix
document an example using --option with a cachix cache
explore an option that prevents any nix-copy from happening, requiring anything to be pre-cached

Also open to feedback if this is a bad idea, etc.

Would it help to use --build-on-target? This might avoid much of the copying, as nix wouldn't need copy much more than the flake itself, while substituting direct from the cache.

Aye, indeed, I was doing that. Even copying the source to the destination was excruciatingly slow. My wifi was so bad that I never even managed to get it to work. I had to eventually SSH to another server, and run it from there.
If I could have pre-staged the source derivation, disko script, etc, into a cache, the builder could just download it.
It's probably just a matter of finding the right attr path for the source derivations and pushing those. Then it should just substitute if I pass the right options.

You can follow our nixos test. You need the disko-script and nixos toplevel in your binary cache: https://github.com/nix-community/nixos-anywhere/blob/024e3d461375bba7775062055388efee69288237/tests/modules/installer.nix#L18

On this topic, --help makes it sound like nixos-anywhere should be using --substitute-on-destination by default, but I don't observe this happening.
Ha, in fact it looks like the option may have been inverted? I specified --no-substitute-on-destination and now it is substituting on the destination!

Looks like this happened yesterday. 76373254

https://github.com/nix-community/nixos-anywhere/pull/386


scollector: enabling json or toml config

After some conversation in stack chat, we decided we don't like toml so much. This allows toml or json files to be passed in.
At some point in the future we may depricate the toml file format.
This also removes the totoml functionality. If that is needed, the 0.4.0 release of scollector should have it availible.

Closing this after talking to Craig. The frustrations with toml are coming in when we do more complex data structures, in particular for SNMP definitions.
I think since this is the problem, we are better keeping the SNMP defs out of the config and treating them as loadable object definitions. This also makes them more sharable (other people may have the same or similar PDUs for example).
Those definitions could be in JSON, Craig would rather have them go in the scollector code. I'm okay with either as long as keep the main conf clean and avoid switching conf formats yet again unless there is a strong need to.


Some files throw an error

Download (Elements of Programming Interviews) Adnan Aziz, Tsung-Hsien Lee, Amit Prakash - Elements of Programming Interviews in Python_ The Insiders’ Guide-CreateSpace Independent Publishing Platform (2016).pdf
Throws an error
could be because of the ' in the name

Response['Content-Disposition'] = 'attachment; filename="file,name.pdf"';
Adding double quotes seems the filename seems to fix the problem


Suppress trailing None in usage/error output as described in mitsuhiko/click/#312

I don't have a complete grasp on the click internals but I believe this fixes #312.

I think there's a bug somewhere else in Click and that this only fixes the symptoms.

Thanks, this is cherry-picked into 4.x-maintenance!

Excellent,  thanks!


feat: Optionally use an externally managed cloud-config secret

What does this fix or implement?
We are using an externally managed secret for the cloud-config. This PR makes it possible to use it.
Checklist

[x] PR title contains conventional commit markers (feat:, fix:, docs:, etc.)
[x] Helm chart version bumped
[ ] Tests added or updated
[x] Documentation updated
[ ] GitHub issue linked if any

Hi, can we please merge this?


Dependencies

Thanks for your work!
Could you please provide details on your dependencies? I got the following error
name 'to_cupy' is not defined
I'm using pytorch 1.10.0 and cuda 11.3
Thanks!

yo need to install cupy here https://github.com/cupy/cupy


‘Rich Embeds’ not functioning and returning error.

Making a Rich Embed in Discord.js Commando just returns the below. I am running Commando V12

TypeError: RichEmbed is not a constructor

RichEmbed is now MessageEmbed in v12, see the update guilde

Uhm, I said I am already running v12

The RichEmbed class was removed with the release of v12 as advaith said above. It's covered here  in the update guide.

Ah, my bad. I just used RichEmbed as I wasn’t that sure because I have just started learning how to use Commando.


Package JREs for Linux

With this pull requests it's possible to build Linux packages from an AdoptOpenJDK JRE distribution.
The JREs are completely separate from the JDKs and there's no dependency between those because at least from JDK 9 onwards JDK and JRE overlap and fixing those overlaps isn't worth it. If you need java and javac, install the JDK. If you only need java, install the JRE. If you notice later on that javac would come handy, install the JDK and optionally remove the JRE.
Example output from CentOS 7:
[root@c54190d7572b /]# yum search adoptopenjdk
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
 * base: pkg.adfinis-sygroup.ch
 * extras: pkg.adfinis-sygroup.ch
 * updates: pkg.adfinis-sygroup.ch
============================================== N/S matched: adoptopenjdk ===============================================
adoptopenjdk-12-hotspot-jre.x86_64 : OpenJDK Runtime Environment 12 (JRE) by AdoptOpenJDK

  Name and summary matches only, use "search all" for everything.
[root@c54190d7572b /]# yum info adoptopenjdk-12-hotspot-jre.x86_64
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
 * base: pkg.adfinis-sygroup.ch
 * extras: pkg.adfinis-sygroup.ch
 * updates: pkg.adfinis-sygroup.ch
Installed Packages
Name        : adoptopenjdk-12-hotspot-jre
Arch        : x86_64
Version     : 12.0.1+12
Release     : 1
Size        : 138 M
Repo        : installed
Summary     : OpenJDK Runtime Environment 12 (JRE) by AdoptOpenJDK
URL         : https://adoptopenjdk.net/
License     : GPL-2.0+CE
Description : OpenJDK Runtime Environment 12 (JRE) by AdoptOpenJDK

[root@c54190d7572b /]# ls -l /usr/lib/jvm
total 4
drwxr-xr-x 6 root root 4096 May  1 06:58 adoptopenjdk-12-hotspot-jre
[root@c54190d7572b /]# java -version
openjdk version "12.0.1" 2019-04-16
OpenJDK Runtime Environment AdoptOpenJDK (build 12.0.1+12)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 12.0.1+12, mixed mode, sharing)

Changes required to the build pipeline:

-PJDK_DISTRIBUTION_TYPE=<JDK|JRE> needs to be added.
-PDEB_JINFO_PRIORITY can be dropped.

I've applied the changes required by #112. Therefore it's ready to merge again.


video height issue in mobile devices

Description
when we visit https://docs.meshery.io/extensions/ there are some issue at mobile devices  in media queries we have to change height of vedio  because after start the video most of the spaces did not in use , so i am showing some pictures current and desired behaviour , first 2 pictures are current behavior in mobile devices and last two are expected behaviour  in mobile devices
Expected Behavior
expected behaviour are in pictures
Screenshots

Enviroment:

OS: Mac Linux Windows
Browser: Chrome Safari Firefox
Version:
Device: Desktop Mobile

Contributor Guides and Handbook
The meshery.io website uses Jekyll and GitHub Pages. Site content is found under the master branch.

📚 See the Contributing to Meshery.io Website section of the readme.md and other contributing instructions, too.
🎨 Wireframes and designs for Meshery UI in Figma
🙋🏾🙋🏼 Questions: Discussion Forum and Community Slack

I want to give a PR  , if you find this issue worthy.


fix input.cpp: bypass possible null deref error

A non-forked version of https://github.com/LLNL/serac/pull/446.
Resolves https://github.com/LLNL/serac/issues/443.

This commit works around a "possible null dereference" error emitted
by Serac builds with<EMAIL_ADDRESS>build_type=Release" by guarding the
dereference in question with a conditional that only passes control to
the statement dereferencing the potentially null iterator if that
iterator is, in fact, non-null.

This warning seems kind of silly because another enclosing conditional ensures the dereferenced iterator is non-null, but the fix is straightforward.

Codecov Report

Merging #447 (029d0d6) into develop (905a287) will not change coverage.
The diff coverage is 75.00%.

@@           Coverage Diff            @@
##           develop     #447   +/-   ##
========================================
  Coverage    92.30%   92.30%
========================================
  Files           48       48
  Lines         2430     2430
========================================
  Hits          2243     2243
  Misses         187      187

Impacted Files
Coverage Δ

src/serac/infrastructure/input.cpp
93.29% <75.00%> (ø)

Continue to review full report at Codecov.

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


pre-commit: add double-quote-string-fixer

Signed-off-by: Filipe Laíns<EMAIL_ADDRESS>

If we are ever to move to black, I'd like it to be with -S and keep the single quotes.

If we are ever to move to black, I'd like it to be with -S and keep the single quotes.

Ever the rebellious, I see. So the ever question is now? Yay or nay? From my side, and Paul's side +1 AFAIK.


Get rid of the trait_alias feature.

The trait_alias feature seems far from stabilization. It is currently used to combine complicated where bounds on JSON values that are repeated everywhere in the code.
where bounds are not propagated using super traits bounds:
pub trait Foo where bounds { ... }

// where bounds need to be repeated here
// even though it is part of the definition of `Foo`.
fn bar<F: Foo>(t: F) where bounds { ... }

This can be solved using trait aliases:
pub trait Foo = ... where bounds;

// where bounds don't need to be repeated here.
// they are propagated from the trait alias definition.
fn bar<F: Foo>(t: F) { ... }

Using trait alias has proved that the JSON abstraction layer can work. However with the release of version 1.0, it seems not reasonable to keep relying on an unstable feature.
Possible solution
Maybe we can use macros containing the where bounds to replace trait aliases.
macro_rules! foo {
  ($f:ident) => { bounds };
}

fn bar<F>(t: F) where foo!(F) { ... }

The tradeoffs are:

This complicates the source code.
This may complicate the documentation a lot, by listing a lot of bounds that where previously hidden in trait aliases.

Btw, the "possible solution" does not work: macro calls are not allowed as trait bounds.

This is fixed by https://github.com/timothee-haudebourg/json-ld/pull/37, right?

Yes it is, thanks.


need to remove examples from index page and wants to add my own example

i have to remove examples from index page and add my own examples.
how to done?

Right now one would have to manipulate the array at https://github.com/noflo/noflo-ui/blob/master/elements/noflo-main.html#L275 and rebuild

The IDs refer to GitHub Gists, like https://gist.github.com/7804187

thank you my respectable seniors i have not test it yet but i know it should work.
in these day i am stuck on the issue big data size.
i am creating a project having big tweeter data i have test my browser project with 6 million tweets and browser crashed.
so now i decide i done all process on server side so i create a node js server and component send a ajax request to the server and get response from them.
this process is working fine its mean i am able to do processing at server side.
now i have plane to storing the components results at backend so browser still remain light weight.
we should create a directory for each browser project and component send request to node js server and server done require process and  create a file in project directory with holding all results and in response send back file path to component and component send file path to out port for next component.
next component should also send request to the node js sever and done process at the previously created file and do same process and send back newly created file path.
i am only stuck to getting the project id with unique user id to creating project directory at node js server.
is there a way i to getting project id and user unique id inside the component?
so then i send the request to the server at the start point with the project id if project directory is created then make it empty if not then created new project directory.
finally i need to get ....
is there a way i to getting project id and user unique id inside the component ?
thank you for help me out

@code-rider that might be better to take up on Stack Overflow


Fix macOS CI by running tests in graphical env

This PR fixes the macOS CI.
Turns out Apple does not like people running tests in an headless environment (that is not Xcode server). Some people are reporting this at least. So using this horrible hack I am spawning a Terminal.app window and running the tests in there.

Fails with
The application /System/Applications/Utilities/Terminal.app cannot be opened for an unexpected reason, error=Error Domain=RBSRequestErrorDomain Code=5 "Launch failed." UserInfo={NSLocalizedFailureReason=Launch failed., NSUnderlyingError=0x60000300dc20 {Error Domain=OSLaunchdErrorDomain Code=125 "Domain does not support specified action" UserInfo={NSLocalizedFailureReason=Domain does not support specified action}}}

Enabling Automatic Login worked. 🎉

For linux we do something like this:
https://github.com/maplibre/maplibre-gl-js/blob/1b3242280da112118e6ec9ec603c2dccd94d1741/.github/workflows/test-all.yml#L57-L61
Don't know if there is a macos counterpart

Someone else with the same problem:
https://developer.apple.com/forums/thread/727333
@birkskyum macOS works completely different from what I understand. From the blog post:

If no user has logged into the machine by using the GUI, there is no GUI. And you cannot do anything about it except logging in by using the GUI, either manually or by enabling automatic login.

It seems like the only way to do it then. Weird decision of apple

@birkskyum Not so weird if you look at these prices. 😅 https://developer.apple.com/xcode-cloud/


Links to section in tab widget don't work in Firefox

Summary: When visiting a page with a tabbed navigation widget, links do not open the desired tab in Firefox. They do work in Chrome: this appears to be a cross-browser issue.
Example link/ testcase: http://centerforopenscience.org/involved_participate/#tab_4
Observed result: In Firefox 35, the link given above loads with no tabbed section selected. The content area at the right side of the page is a white rectangle. Once the section label ("developers") is clicked, the section will appear in the content area. (see screenshot below)

System details: Link does not work with Firefox 35.0.1 on Mac OS 10.10.1. Link does work as expected in Google Chrome 40.0.2214.111 on same machine.
Additional notes: After clicking on a link, the browser address bar does not correctly update to show the open section. It continues to show whatever URL the page was loaded as. (making it slightly harder for a visitor to get a link to the content). Eg if the user visits the page with the link above and then clicks "Scientists", the address bar will still show a link to #tab_4. This happens in both Chrome and Firefox.

@caneruguz, do you mind taking a look at this?

This was due to a very common error developers (uh... like me) make when working with complex jquery selectors that use variables so the closing of the selector is difficult to see.  In this case a "]" was missing from the end.
Chrome ignores this error in its rendering so if you are developing with Chrome you will not catch errors like this that Chrome tolerates.
Fix is in the PR linked.

Confirmed that PR fixes the basic tab view per screenshot above. Works for me in Firefox and Chrome.
The secondary issue (additional notes) still remains- address bar doesn't update to reflect the opened section, which makes it trickier to send someone a link to that part of the site. That could be separated out as a minor issue.

The secondary issue is another bug though, I recommend you create a new issue for this. There is not a very elegant fix but I have a solution; it works in chrome, firefox and safari, I'm testing with IE now, I will send a new PR, but these two things are related but should be able to be applied separately.

@Jeff any ideas about this code? I didn't want to include any history writing and rather use location since it's only an anchor and should not actually reload the page (and this seems more cross-browser safe):
    $('a[data-toggle="tab"]').click(function(){
        var tabNumber = $(this).attr('href').slice(5,6),
            base,
            newurl;
        if (tabNumber) {
            base = location.href.split('#');
            newurl = base[0] + '#tab_' + tabNumber;
            window.location.assign(newurl);
        }
    });


Ship Constructs compatible with vanilla aws-cdk-lib/aws-eks

Is it possible to use these configurations as Construct libraries? I find the workflow of cloning this repo and running make to be at odds with how the rest of the AWS CDK ecosystem works. I have an existing EKS cluster deployed with the AWS CDK. I would expect a simple Construct I can instantiate and pass a reference to my aws-eks.Cluster, but this library seems to require I am using eks-blueprints (which has the same problem of diverging from standard AWS CDK practices).
new ObservabilityAccelerator(this, "Observability", {
  cluster: myCluster,
  // customize with props
});

EKS Blueprints and CDK Accelerator for EKS are opinionated and purpose built solutions for setting up EKS clusters with Day 2 ops toolings. [ObservabilityBuilder](https://github.com/aws-quickstart/cdk-eks-blueprints/blob/main/lib/builders/observability-builder.ts) is not a construct library but an extension of BlueprintsBuilder.
@shapirov103 Anything to add here?

Sam and I already discussed it on the blueprints side. I view the request as valid, e.g. reusing existing stacks with some components of the blueprints. I believe outside of the stylistic preferences and opinions on what is idiomatic in node/TS, the main obstacle was that the EKSBlueprint produced a stack rather than a construct. we don't have anything on the roadmap atm, but if there was a confirmed customer demand, we can make it happen.

I believe outside of the stylistic preferences and opinions on what is idiomatic in node/TS,

This is not about style. The whole reason this is even a problem to begin with is because you unnecessarily (!) diverged from AWS's CDK Construct guidelines by getting fancy and creative with your "style" choices and trying to be yet another framework.
eks-blueprints took ownership of the stack (cardinal sin - users own their stacks, not you), abandoned the underlying aws-eks.Cluster L2 Construct (isolating all users of that), then decided to go with a builder pattern which defers construction of the Stack until the end (literally backwards) and relies on a weird "addon" plugin-framework instead of just shipping Constructs that can be used in any CDK app as-per-usual.
Same problem is now getting even WORSE with this "observability accelerator" library which recommends a make tool and a weird cli-framework instead of just shipping ... you guessed it ... Constructs! I will never run make template and no one should - you are creating a mess for all your users.
Here are AWS's own guidelines. A lot of thought went into them and they solve all your use-cases:

https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md
https://docs.aws.amazon.com/prescriptive-guidance/latest/best-practices-cdk-typescript-iac/constructs-best-practices.html

Pay attention to the concept of L1, L2 and L3 Constructs. This is directly relevant to you.

Sam and I already discussed it on the blueprints side.

Yeah, we did, and you told me to "google the builder pattern in TS" and "I disagree with you". Bro, it's not about disagreeing with me, you're disagreeing with AWS's own vision for composable and re-usable infrastructure pieces. With that attitude, it's no wonder this EKS stuff is such a hot mess. I have no hope for any of it, especially after seeing make being recommended. It's red flag 🚩 after red flag 🚩.

I understand your disappointment but We wont support the requested feature anytime in future. We will keep you posted with this issue if things change.


Issue with Authentication Error

Hi,
I have been trying to run the basic example code provided in the repository after installing the required packages and configuring Azure. However, I encountered an authentication error when executing the following command:
bash
AZFUSE_TSV_USE_FUSE=1 python -m generativeimage2text.inference -p "{'type': 'test_git_inference_single_image',
'image_path': 'aux_data/images/1.jpg',
'model_name': 'GIT_BASE',
'prefix': '',
}"
Here is the error message I received:

Despite following the installation instructions and using the provided configuration files, I am unable to authenticate successfully.
Could you please assist me in resolving this issue? Any guidance or suggestions would be greatly appreciated.
Thank you!

Hello, any news on this?


Feature Request : delete --cascade (for vpcs)

Hello,
I have been using awless and it works well for me.
I am now trying to remove some VPCs that are idling around without being used. I have the vpc id.
When deleting my VPC, I get following errror :
                    delete vpc: DependencyViolation: The vpc 'vpc-ewfewfewf' has dependencies and cannot be deleted.
                    status code: 400, request id: ****-***-***-***

I have indeed subnets, and route tables that are linked to it.
I would like to propose to add the --cascade flag to remove all linked dependencies as well. Without the --force flag, I think it should ask confirmation for each deletion.

@edi9999 great suggestion, and one we want to complete! We have been focusing on other matter recently but the foundation of awless have been built for that kind of scenario.
Since after a sync we have all the information, we can definitely help the user in removing intelligently and safely part of its cloud resources (as it can be really annoying using the AWS web console/CLI)
As you probably  know already, creating infrastructure through an awless template we can easily revert the template and everything is taken care of. But this does not account for created/added resources not part of a template, or existing infrastructure not created through awless.
We like this idea of --cascade and asking for confirmation.
Basically, what we want to do is when deleting a resource using the CLI through awless delete myresource we will inspect the dependencies and display the full template of deletion for confirmation so it can get confirmed only once.
That is something we will implement (leveraging our internal resource graphs more in the process). We do not have a date yet but it might be in the coming weeks.

+1

I'd installed awless to poke around and see if it had this kind of functionality and I'm a bit sorry it hasn't! This would be a fantastically useful feature :-)


Forbid Micro and Nano instances in aws eks

Description
Forbid users from using micro and nano instances in AWS EKS.
Safety checklist

[x] This change is backwards compatible and safe to apply by existing users
[x] This change will NOT lead to data loss
[x] This change will NOT lead to downtime who already has an env/service setup

How has this change been tested, beside unit tests?
Tested and validated manually.
name: testenv
org_name: runx
providers:
  aws:
    region: us-east-1
    account_id:<PHONE_NUMBER>00
modules:
  - type: base
  - type: k8s-cluster
    node_instance_type: "t2.nano"
  - type: k8s-base

$> opta apply -c aws-env.yml
Opta file validation failed with errors:
  : modules.1: node_instance_type: t2.nano is not a regex match.
ERROR: aws-evn.yml is not a valid Opta file.
If you need more help please reach out to the contributors in our slack channel at: https://slack.opta.dev

also on the nodegroup

I thought there we should let the users have an option to have a lesser instance type


How to setup Tizen SDK and webOS SDK for macOS 11.0.1 (Big Sur)

OS: macOS Version 11.0.1
Oracle VirtualBox: Version 6.1.16 r140961 (Qt5.6.3)

Hi,
I need some assistance to install Tizen SDK and LG webOS SDK. I followed these instructions:

https://developer.tizen.org/ko/development/tizen-studio/configurable-sdk
http://webostv.developer.lge.com/sdk/installation/

But anyway I get error messages like these:
webOS

Tizen

Can anyone help me please?

@tvotan yes this is known issue with big sur and tizen SDK/IDE.
I managed to get around above popups by manually enabling each module in settings security tab (around 10-15 popups!)
However tized IDE would still not launch properly
Ironically SDK manager does work
In the nutshell, Tizen + big sur is a mess ATM.
one of the issues tracking this:
https://forum.developer.samsung.com/t/tizen-studio-problem-on-macos-big-sur/9410
Samsung is promising fix before end of the year. let's see

@tvotan I can confirm that latest release of Tizen IDE/SDK (Dec 21, 2020) is finally working with big sur 🎉
https://developer.tizen.org/ko/development/tizen-studio/download

@tvotan I can confirm that latest release of Tizen IDE/SDK (Dec 21, 2020) is finally working with big sur 🎉
https://developer.tizen.org/ko/development/tizen-studio/download


Clone fails for https://gitlab.com/agamigo/material

The git command line tool is able to clone this repo:
$ git clone https://gitlab.com/agamigo/material
Cloning into 'material'...
warning: redirecting to https://gitlab.com/agamigo/material.git/
remote: Counting objects: 1016, done.
remote: Compressing objects: 100% (559/559), done.
remote: Total 1016 (delta 504), reused 679 (delta 306)
Receiving objects: 100% (1016/1016), 216.49 KiB | 564.00 KiB/s, done.
Resolving deltas: 100% (504/504), done.

... however go-git fails:
func TestClone(t *testing.T) {
	_, err := git.Clone(memory.NewStorage(), memfs.New(), &git.CloneOptions{
		URL:               "https://gitlab.com/agamigo/material",
		SingleBranch:      true,
		Depth:             1,
		RecurseSubmodules: git.DefaultSubmoduleRecursionDepth,
	})
	if err != nil {
		t.Fatal(err)
	}
}

Output:
getter_test.go:23: repository not found

I assume it's something to do with the line warning: redirecting to https://gitlab.com/agamigo/material.git/ in the command line git output?


Cannot user version 3.6+ on react 16.13.1

Describe the bug
date picker 3.5 is the last version that support react 16. making the version of DP to 3.6.0 and executing npm install shows the error below
npm ERR! Found<EMAIL_ADDRESS>npm ERR! node_modules/react
npm ERR! Could not resolve dependency:
npm ERR! peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR! node_modules/react-datepicker/node_modules/react-onclickoutside
npm ERR<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR!   node_modules/react-datepicker
npm ERR<EMAIL_ADDRESS>from the root project
To Reproduce
"react-datepicker": "3.6.0",
"react": "16.13.1",

It goes back further than version 3.5.  I'm getting failures with 3.3 as well.
This is the source of the issue - https://github.com/Pomax/react-onclickoutside/issues/357


Update homebrew PHP extension location

This works in conjunction with grpc/homebrew-grpc#46.
This PR changes the way how our PHP test scripts locate the grpc extension library because of the new (and hopefully proper) way of building our grpc PHP extension via homebrew.

Good point. Fixed. thanks.


A couple of commits to handle management of large-scale deployments

Nice one Justin.
I'm off today but it's really nice to see this.


Update solidity contracts version dependency from fixed version to using ^ specifier

Describe the improvement you're thinking about
Update all solidity contracts version from:
pragma solidity 0.8.23;

to
pragma solidity ^0.8.23;

or to a version range that core developers agree.
Additional context
The reason is because Semaphore is becoming a library (building block) for dApp developers, and they integrate Semaphore into their dApp contracts. Using a fixed version specification 0.8.23 in Semaphore is restricting the solidity version used in downstream development.
There maybe a repercussion of updating zk-kit.solidity as well.

One possible (and more balanced) approach is making the version range to be restrictive such as pragma solidity >=0.8.23 <=0.8.28; The LTE version could be the latest solidity version that core dev team have tested and work with Semaphore. This ensures the security safety while giving downstream dev flexibility to pick their solidity version.

I like this compromise!
Curious to hear @vplasencia opinion here.


ENH: Support C-style arrays as MetaDataObjectType for MetaDataDictionary

Allows passing a N-dimensional C-style array as value, when calling
itk::EncapsulateMetaData(dictionary, key, value).

FYI: This force-push only adjusted the unit test and the commit text, not the actual implementation.

/AZP run ITK.Windows


GEOMESA-1706 clean up JavaGeoMesaSpark API to removed need for cast in client code

Signed-off-by: Tom Kunicki<EMAIL_ADDRESS>

with Map<String, String> params = ... allow for JavaGeoMesaSpark.apply(params) instead of JavaGeoMesaSpark.apply((Map)params)


Appropriate Hexa logo should be visible.

@cakesoft-swati please send www.hexawallet.io website link on as many places you can think of:

Twitter DM
Twitter comment
FB DM
FB comment
Linkedin DM
Linkedin comment
Instagram DM
Slack DM
Youtube comment
Whatsapp
Telegram

Please do this using both Android and iPhone. Hexa logo should be visible. Not the wordpress logo we see in Brad's screen shot.
@cakesoft-shashank to confirm.

@akshaytikle please take a look.

This is fix a few days back, @cakesoft-swati please test

Closing this issue as discussed with dev.


adding ability to use alias in uploadUrl

uploadURL configuration should be checked for having "Alias" and resolve it if found, and this what I did

This is what I was talking about in issue https://github.com/yiidoc/yii2-redactor/issues/16. I was about to create a pull request, thanks msalahat

It is good idea, otherwise you can run getAlias on init stage.

Thanks for your pull.
i have refactor module using yii2 features available for Redactor 10.1.1.
I did in brief your idea.
https://github.com/yiidoc/yii2-redactor/blob/master/RedactorModule.php#L47
https://github.com/yiidoc/yii2-redactor/blob/master/RedactorModule.php#L72


Integrate fixed RSAppMovementMonitor

See bug report here: https://github.com/redsweater/RSAppMovementMonitor/issues/4

The fix is in https://github.com/brentsimmons/RSCore/pull/16
This turns out to be both a more critical bug than I thought, and slightly more complex in its fix. I am kind of rushing this fix because the behavior is so bad, so a couple extra eyes on that patch would be helpful!


Update CSS token per new design system theming capability

Alaska Airlines Pull Request
Fixes: #205
Summary:

Update the design tokens to reflect the new theming conventions regarding tokens from the AuroDesignTokens and JetstreamDesignTokens repo.

Type of change:
Please delete options that are not relevant.

[x] Revision of an existing capability

Checklist:

[x] My update follows the CONTRIBUTING guidelines of this project
[x] I have performed a self-review of my own update

By submitting this Pull Request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Pull Requests will be evaluated by their quality of update and whether it is consistent with the goals and values of this project. Any submission is to be considered a conversation between the submitter and the maintainers of this project and may require changes to your submission.
Thank you for your submission!
-- Auro Design System Team

I have pushed a new commit per your feedback @jason-capsule42. Thanks.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Cannot restore previous 030 hard drive

Steps to reproduce:

Set up 030
Reflash
Try to setup 030 on the same hard drive

Drive was visible in lsusb but not lsblk. I refreshed the page and it still did not show up. I replugged the drive and it showed up in lsblk. I then refreshed the page and it showed up on the frontend. But then:

I rebooted and it worked on the next try.
Git commit hash: b35f866c18dab292d86965f16e5200f431b83691

@chrisguida some changes have been made that may affect this - please retry

Do you mean when you bumped sleep from 1 to 2? I've tried with that code a couple of times now and it seems fixed. Or, I may have just gotten lucky.
We can close if you want.

Do you mean when you bumped sleep from 1 to 2?

Yes