Fixed RegFileTime parsing

Was using an old copy of python-registry whilst I worked on a project (https://github.com/woanware/usbdeviceforensics), then updated to the latest and the ability to get valid Windows FILETIME values was broken.
Have used the python code suggestions from NiKiZe.

Have redone the pull request without all of my fork merges, wasn't sure how to rebase to my existing repo, so just deleted and recreated, then implemented the fixes.

Have just double checked and that doesn't work

Sorry for creating confusion. you only want one of them, the correct one is
@@ -852,7 +852,7 @@ def data(self):
             #  return raw binary for someone else to work with.
             return d
         elif data_type == RegFileTime:
-            return parse_windows_timestamp(d)
+            return parse_windows_timestamp(struct.unpack_from(str("<Q"), d, 0)[0])
         elif data_length < 5 or data_length >= 0x80000000:
             return struct.unpack_from(str("<I"), d, 0)[0]
         else:


Adding MaxLivingAge. Fixes #31

This makes it more relaible to determine IsLiving for an individual.

This change is

Codecov Report

Merging #155 into master will increase coverage by 0.19%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #155      +/-   ##
==========================================
+ Coverage   41.17%   41.37%   +0.19%
==========================================
  Files         134      134
  Lines        3492     3502      +10
==========================================
+ Hits         1438     1449      +11
+ Misses       2034     2033       -1
  Partials       20       20

Impacted Files
Coverage Δ

document.go
58.33% <100%> (+0.7%)
:arrow_up:

individual_node.go
97.01% <100%> (+0.66%)
:arrow_up:

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 f60dedb...4a93b83. Read the comment docs.


feat: Add dynamic sharding for argocd controller

What type of PR is this?
/kind enhancement
What does this PR do / why we need it:
This PR enables dynamic scaling of application controller based on the configured MinShards, MaxShards and ClustersOnEachShard flag. The feature is enabled for users if they set the flag Spec.Controller.Sharding.EnableDynamicSharding.
Have you updated the necessary documentation?

[ ] Documentation update is required by this PR.
[ ] Documentation has been updated.

Which issue(s) this PR fixes:
https://issues.redhat.com/browse/GITOPSRVCE-409
How to test changes / Special notes to the reviewer:

Install the operator
Create ArgoCD instance with below fields set:

spec:
    controller:
        sharding:
            enableDynamicScaling: true
            minShards: 2
            maxShards: 4
            clustersOnEachShard: 1

Add atleast 3 clusters to argocd instance
See that the number of replicas was increased to 3 and the controller pods increased to 3

I wonder if we could use an HPA for this?
@ishitasequeira @anandf

I wonder if we could use an HPA for this? @ishitasequeira @anandf

@jaideepr97 could you expand more on this?

Please add the code for validation webhook, otherwise looks good to me.

@ishitasequeira would you mind contributing an e2e test as well? I don't think the unit test is enough to ensure that the validating webhook is in fact catching misconfigurations at run time

@ishitasequeira would you mind contributing an e2e test as well? I don't think the unit test is enough to ensure that the validating webhook is in fact catching misconfigurations at run time

@jaideepr97 I am working on a separate PR for e2e tests for this epic. The e2e tests require creating multiple clusters and adding them to the argocd instance to see the scaling in effect. Currently we don't have the setup available for adding multiple clusters.
Issue to track the e2e tests: https://issues.redhat.com/browse/GITOPSRVCE-535

Looking at the implementation of the validating webhook itself, I don't think this is sufficient
My understanding is that it is quite a bit more involved than what is included in this PR. The validating webhook needs to run its own server (maybe in a separate pod?) and be captured within a request handler, which receives admission review objects from the k8s api server. None of this is being handled in this PR
I think the idea of moving all CR validation to a validating webhook is good and I am in favor of it, but I'm of the opinion that it should be done in a separate PR, as it has very little do with autoscaling, which is what this PR is about. I would suggest that the validation required for autoscaling be moved back into the operator, until a separate effort to implement the webhook is made, and all CR valdation can be moved there. I'd rather not block this PR because of the webhook stuff
(edit: here's a sample implmentation of a validating webhook that can be used for reference https://developers.redhat.com/articles/2021/09/17/kubernetes-admission-control-validating-webhooks#a_prometheus_rule_validator)

@jaideepr97 I agree with you that more configuration is required. But we don't need the Handle function as you mentioned. There is another way to configure webhooks where ValidateCreate, ValidateUpdate, etc. functions take care of handling the resources. For reference: https://book.kubebuilder.io/cronjob-tutorial/webhook-implementation.html
I have created a separate epic in Service Core backlog GITOPSRVCE-606 for adding ValidationWebhook and will create a separate PR for the same. For this PR, I have added a TODO for the same.

Good work, only have some comments!
Have you considered some end to end tests for this scenario, too?

I am currently working on adding the e2e tests. I should have them added by today EOD / Monday.

@jannfis @jaideepr97 @anandf I have added the e2e test cases. PTAL.

I have added the e2e test cases. PTAL.
@ishitasequeira
Current E2E Tests validates the scale down use case. Can you add tests for the below use cases as well.

Scale Up scenario. Keep increasing the number of cluster secrets and check if the number of instances are not going beyond the maxShards
Scenario where the maxShards is sufficiently low and clustersPerShard is not given weightage. Lets say maxShard=1, clustersPerShard=1, but the acutal number of clusters is 10. In that case, clustersPerShard would not be honoured and only 1 instance of application controller runs.

/lgtm


Feature Request: Insert the timestamp with reverse order.

Could you add a choice that can insert the timestamp with reverse order?
Such as this:

implemented in v3, can be configured in the setting tab


Fetching collection is slow

I'm not sure if my issue is from misuse of Bookshelf, but when I do:
var queryBuilder =
    Rating
    .query({
        where: {
            category: opts.category
        },
        limit: opts.limit,
        offset: opts.offset
    });

return queryBuilder.fetchAll()
.then(function(collection) {
    return collection.toJSON();
});

It seems that the Rating model is being initialized multiple times during the execution. This slows down my app quite a lot. For single request, the model's initialize function is called ~10 times. In my case, it always re-creates validation schema and validates the model.

Hi @kimmobrunfeldt. I wonder if maybe initialize is the wrong place to be generating a validation schema? Without seeing the Rating class definition, I can't be sure, but I would suggest the folowing:
I assume the validation schema is the same between all instances of Rating. Therefore create validation schema once on the prototype:
Rating = bookshelf.Model.extend {
  // instead of:
  initialize: function () {
    this.validationSchema = createRatingValidationSchema()
  };

  // do this (`extend` adds properties directly to the prototype):
  validationSchema: createRatingValidationSchema();
}

Validating on creation can cause problems down the track (for instance if you wish to set values one at a time). Also, it causes unnecessary validations (as you're discovering). I personally validate my models in the saving event callback. This is called before any update or insert operations are executed.
  initialize: function () {
    this.on('saving', function () { this.validate(); });
  }

@rhys-vdw Thanks for the insight. Yes the schema can be cached you are right. I said a bit incorrectly about the validation, I have implemented it so that it is done when 'saving' event is fired.
I'm just a bit worried why is the initialization called so many times. I didn't investigate it any further but my performance improved ~4x when replacing Bookshelf collection fetching with "raw" Knex queries.

For single request, the model's initialize function is called ~10 times.

I had assumed that this was because it was returning a collection with 10 models in it. In which case it needs to initialize each of them individually. Is initialize being called more than once per model?

@rhys-vdw Oh ok. Didn't even realize they'll be converted to models(of course they are) since I'm interested only from the json repr of them. Nope, there was 10 models created and 10 initialize calls.

I'll close this one. The solution for me at least: if the models and collections are too much overhead, go with knex queries but remember to still validate your inputs.

Well, if you want to optimize you could do this:
var query = Rating.query()
  .where('category', opts.category)
  .limit(opts.limit)
  .offset(opts.offset);

query.then(//...

Calling Model.query will only return a query builder if you give it no arguments. The way you did it in your example is actually returning a Rating instance and modifying the underlying query builder which is used in fetchAll.
If you do as I have above, it will just execute raw knex query, which will be more optimal as it will bypass model creation. Just keep in mind that it wont parse your output keys.

Ok thanks.


[BUG] Consumer silently stops (RabbitMQ)

Describe the bug
Consumer stops silently - can't be seen in RabbitMQ management interface and produces no logs.
To Reproduce
Produce BasicCancel from some other channel, rather than used for a consumer.
Expected behavior
Consumer tries to restart by emitting BasicConsume, otherwise produces an exception.
Info

OS information - docker
Repid version - v1.5.0

Connected to https://github.com/mosquito/aiormq/issues/116 & https://github.com/mosquito/aiormq/issues/187


feat(autorewind): auto rewind leaving segment

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

This PR introduces an optional automatic rewind of the segment timeline when leaving a given segment.

What is the current behavior? (You can also link to an open issue here)

Currently when leaving the segment, the timeline is left in the state as-is, until the SegmentTimeline component is destroyed (when it is outside of the viewport), when the entire component is rebuilt with the scroll position at 0.

What is the new behavior (if this is a feature change)?

When autoRewindLeavingSegment setting in the public settings is turned on, the segment will be rewound after it stops being live.

Other information:

I LOVE THIS


Move the private keys management outside the AccountsSource

Currently the private keys are manged inside the AccountsSource source. While they are being correctly stored, these management should be done inside a new KeysSource to avoid the current dependency TransactionsSource -> AccountsSource and replace it with TransactionsSource -> KeysSource.

Fixed with #8


Custom network segment

I think a good automatic hosting platform should allow users to customize network segments

If you need to do it it can be done manually  and its almost the same as feature-request in #1633


Consider exposing the default toolbar implementations

I would like to extend the DateTimePickerToolbar through composition, so it would be useful to be able to import the default implementation.

Without this, it currently seems impossible to set the getMobileKeyboardInputViewButtonText prop, for example.


When the pull to refresh is combined with onloadmore with load fail, it crashes

Having an issue regarding the slowLoadMoreFailedView when i am trying both on load more and pull to refresh at the same time
java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.LayoutInflater.inflate(int, android.view.ViewGroup)' on a null object reference                                                                                at com.chad.library.adapter.base.BaseQuickAdapter.showLoadMoreFailedView(BaseQuickAdapter.java:725)

Although if i put your mListAdapter.removeAllFooterView(); on the onRefresh() method it works.

Problem has been received and is looking for problems, back to you later

Please give your code

I think that when you call the showLoadMoreFailedView() method, the adapter is no data. At this time the object named layoutInflater is not initialized, so, you got NullPointerException. If you need prompt when load failed and adapter is no data, you can use emptyView. You can refer to the demo.


language fix.

minor language fix, i discovered this issue when i was pilfering Maggie's ability for Grimoires & More (see #805 ).

Thanks. I suspect there will be quite a few of those.


show new versions on footer

Hello netbox maintainers,
This is the functionality show the new version in footer based on github tags digitalocean/netbox.

Thanks for the PR! I'd like to get this feature implemented, but I see two issues.
First, the JavaScript makes a call to the GitHub API on each page load, which is highly inefficient. We would need to implement some sort of caching to ensure that NetBox doesn't check for a new version more than perhaps once or twice daily.
The other issue is that this introduces an automatic request to an external resource. NetBox has been designed to be self-contained, so that it can be run entirely in isolation from the Internet if the user desires. While it doesn't much matter if the external API call introduced here fails, I'd rather have the inclusion of any external resources be controlled by an opt-in configuration setting. This would help reassure users that NetBox is not making any external requests without their explicit consent.
I'm going to close out this PR, but I've opened issue #738 to introduce the feature.


Error:   mkdir(): No such file or directory

When you run php artisan vendor:publish --provider="Yab\Quarx\QuarxProvider"
It gives you this error:
[ErrorException]
mkdir(): No such file or directory

The error was from line:22 on vendor/yab/laracogs/src/LaracogsProvider.php
I had to manually create the folders to make it work: resources/laracogs/crud

Thanks for catching that, I'll get the fix into Laracogs ASAP :)


[module] Add zerologon autopwn

Zerologon autopwn with auto restore DC password

Which Windows versions did you test this against so far?

most of server 2012 to server 2008 which I doing attack in real-world

most of server 2012 to server 2008 which I doing attack in real-world

Any newer versions, or non-server?

Any newer versions, or non-server?

Not yet, but zerologon only attack DC, which means windows server edition.

@Marshall-Hallenbeck I would like to convert this to draft, this is dangerous exploit, let me test it with doing more real attack

@Marshall-Hallenbeck I would like to convert this to draft, this is dangerous exploit, let me test it with doing more real attack

Sounds good

@XiaoliChan I have a bad feeling this is not going to work if you run it from Windows. Because of impacket.
As far as I know, secretsdump doesn't function properly under Win.

Ok, it does work :) I was wrong.
Looking forward to autopwning using this mod.


[Lecture11-1][1206] cycle gan and disco gan

How are DiscoGAN and CycleGAN different? Does CycleGAN have two discriminators?

I think it is same. but just different name

@haeun0814 @masterofthebuggychoke
Thank you for the question, and the answer. As @masterofthebuggychoke commented, the core ideas of the two papers are very similar. It's more common than you might think for similar ideas to emerge around the same time. :)


Set / as the default initial working directory for browser p2 shim

Close https://github.com/bytecodealliance/jco/issues/497
I'll try to make time to set up more test suites for the browser shim, but for now, just make it work with ruby.

Thanks for posting, I'll post out the patch shortly.


refactor platformatic start to launch apps via the runtime

This PR updates platformatic start to run things within the runtime.
Unfortunately, the recent c8 update seems to have thrown off some coverage in the runtime's loader so there are some unrelated changes for that in this PR too.

I'll be shipping v0.27.0 before landing this.

0.27.0 is out. Can this be merged now?


Simplify routes prior to sending to Django template

DO NOT DELETE BRANCH WHEN MERGING THIS PR
Resolves #116 , shaves off about 2/3 of the runtime with minimal visual difference when tolerance parameter is set well. See performance table on that issue, reproduced here:

Here is a comparison of the simplified route with tolerance .00005 in upper Staten Island, New York:

To the unsimplified route:

LGTM. Would recommend moving this to a separate function for reusability in other views


Zod Generators

Hi,
I have started working on a zod-generators companion library with aim of generate random values, both valid or invalid, given a zod field of any type.
As a middle ground between functional and unit testing, I often write fixtures for my models, specifically for messages (HTTP request bodies, queue messages). Since the model is shared between producer & consumer, I can write contractual tests as the generated fixtures are shared. I then test that my producer spits out a valid value, and then I check that the consumer is able to process my generated fixtures.
The idea here is to generate fixtures and more importantly random fixtures easier to generate. For example, if my model defines a string and a number, then I would have a function to generate permutations of what can be valid and what can't be valid.
I think the only issues we would see here is with refines (I think we can just apply transforms to the valid generated values) as they are business logic that we can't dynamically inspect.
I have a PoC with very basic support for zod.boolean, zod.number and zod.string here:
https://github.com/dipasqualew/zod-generators
I was just curious of your thoughts before I put more effort into this 🙂
Cheers

I think it's a good idea! I considered putting something similar in the core library but decided against it: https://github.com/colinhacks/zod/issues/197. I think there's a definite need for something like this. I'd definitely link to it in the README.
I think "mocking" would be a more recognizable term for this. My first thought when I saw the title of this issue was of JavaScript generators. Maybe try to get the zod-mock NPM module if it's available.
Refinements are definitely tricky. The easiest thing is just to ignore refinements for now.
I agree, transforms shouldn't be an issue.
Note that as of alpha.7, things like z.string().email() are no longer implemented internally as refinements. So you can easily check if a string schema should be an email address like this.
const isEmail = !!z.string().email()._def.isEmail;
Perhaps I could potentially let users optionally specify a mocking function when they define a refinement.
z.string().refine(val => val === val.toUpperCase(), {
  mock: makeRandomString().toUpperCase()
});

Then your library could check for the existence of mock on the refinement object. Generating invalid mock data would be tricker.
Keep me posted!

Good feedback, thanks mate!
I think you are right about the lib name, so I renamed the repo to zod-mocking:
https://github.com/dipasqualew/zod-mocking
Still in the Proof of Concept state but I proved that we can generate mocks of arbitrary depth via zod.object and zod.array. Thanks for the work you did on the API, it was really straightforward to read the field definition in _def.
I really like the idea of having a mock metadata key that could be used to override an automatically generated mock.
I am going to use the library on some pet project for a while and report back on its state.
Unrelated question:
I think zod is going to seriously compete against yup as it is TypeScript first and it has a couple of killer features like zod.infer and zod.object().omit().
Do you plan to move this repo into a zod organisation? (i.e. https://github.com/zod-models or something, as zod is already taken). That would be the natural place for other supporting libraries could live after their trial and once they are production ready
Unfortunately zod is also taken on NPM (https://www.npmjs.com/org/zod, unless that's you?) but that would also help with packaging.

I wasn't really planning to put Zod into a GitHub org. I also don't own the zod org on NPM. Let's just start with zod-mocking for now (I like the look of that better than @zod-schema/mocking anyway), and if more libraries start popping up in the Zod ecosystem we can consider moving everything into an NPM org.

I'm planning to add an "Ecosystem" section to the README so I can link to stuff like this. What's the status of the project? If you throw together a README describing the how to use it and which types are currently supported, then I'll happily add you.


The number of tests in the result.junit.xml seems incorrect.

Describe the bug
I launched the scenario_test_runner according to the QuickDemo
The resulting resutls.junit.xml appears as follows:
<?xml version="1.0"?>
<testsuites name="/tmp/scenario_test_runner" failures="0" errors="0" tests="0">
  <testsuite name="sample" failures="0" errors="0" tests="0">
    <testcase name="sample_2" />
    <testcase name="sample_1" />
    <testcase name="sample_0" />
  </testsuite>
</testsuites>

While I'm not familiar with the exact format of JUnit, based on my research, it seems that 'tests' represents the number of executed tests. Therefore, wouldn't it be strange if it doesn't appear as follows?
https://github.com/testmoapp/junitxml
<?xml version="1.0"?>
<testsuites name="/tmp/scenario_test_runner" failures="0" errors="0" tests="3">
  <testsuite name="sample" failures="0" errors="0" tests="3">
    <testcase name="sample_2" />
    <testcase name="sample_1" />
    <testcase name="sample_0" />
  </testsuite>
</testsuites>

To Reproduce
Steps to reproduce the behavior:

build awf's autoware
ros2 launch scenario_test_runner scenario_test_runner.launch.py architecture_type:=awf/universe record:=false scenario:='$(find-pkg-share scenario_test_runner)/scenario/sample.yaml' sensor_model:=sample_sensor_kit vehicle_model:=sample_vehicle
open /tmp/scenario_test_runner/result.junit.xml

Expected behavior
I think below
<?xml version="1.0"?>
<testsuites name="/tmp/scenario_test_runner" failures="0" errors="0" tests="3">
  <testsuite name="sample" failures="0" errors="0" tests="3">
    <testcase name="sample_2" />
    <testcase name="sample_1" />
    <testcase name="sample_0" />
  </testsuite>
</testsuites>

Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: Ubuntu 22.04
Browser [e.g. chrome, safari]
Version [e.g. 22]
ROS 2 Humble
DDS Cyclone DDS

I added sample format URL

We have confirmed that the problem can be reproduced.
This is probably an unintentional bug, since the process of outputting result.junit.xml includes a process that makes the number of tests be the sum of the number of failures, erros and pass.

Thank you for confirming.
It is not a critical issue for the evaluation results, so it is not urgent, but it would be great if you could fix this bug


Update faq.md

Added some language on remote teams.
This is inspired by the response to a team asking if a member could be virtual due to travel.

I missed the previous question, and I think it may be better to to discard this change and deal with the issues as they arise.


Support configuring parserOpts (conventional-commits-parser)

Is it possible?

Sure. This was part of the functionality up to version 3.
I removed it because nobody ever used it.
What is the use case you have in mind?

I would like to be able to change the headerPattern and other.

Can you describe what you want do in more detail? I'm not quite clear what kind of behaviour you want to achieve.

https://github.com/marionebl/commitlint/blob/70b8278a39e7b4965f6afbaca6db20367375965a/%40commitlint/core/src/library/parse.js#L14
It would be desirable at a level commitlint.config.js to change parseOps

Sure, I meant more in terms of what commit messages you to parse.

We already use conventional-changelog on project with follows params (legacy):
headerPattern: /^(\w*)\(([^\)]*)\)\-(\d+\s.*)$/,
headerCorrespondence: [
    'type',
    'scope',
    'subject'
],

fix(scope)-number_task subject
Now we want to add linter of commits and that he fits pattern...

I'd opt for boiling this down to a parser-preset support - that would allow changing the loaded preset from conventional-changelog-angular to e.g.@imrekb/imrekbs-convention by passing it to the cli or specifying it via commitlint.config.js. Can you help out on this?

I am thinking - yes.

How soon will be release?

I'll add some docs this evening and release it then. Stay tuned.

Published with some adaption as 3.2.
Changes

--parser-preset instead of --parserPreset
top level parserPreset takes precedence over presets from extended configuration

Thank you!


Housekeeping: Upgrade dependencies

Proposed changes:

Updated constraints for azure-storage-blob, memory-profiler, jsonschema, sentry-sdk, httpx, tensorflow-addons, jsonpickle, fakeredis and ran poetry update which updated also google-auth and future.
uncommented the tensorflow-macos lines in pyproject.toml
Update dependencies used in GH Actions workflows:

actions/setup-python
peterjgrainger/action-create-branch
actions/setup-node
Gr1N/setup-poetry
voxmedia/github-action-slack-notify-build
8398a7/action-slack
pypa/gh-action-pypi-publish
google-github-actions/setup-gcloud
slackapi/slack-github-action

Status (please check what you already did):

[ ] added some tests for the functionality
[ ] updated the documentation
[ ] updated the changelog (please check changelog for instructions)
[ ] reformat files using black (please check Readme for instructions)

Any reason tensorflow-macos is pinned at 2.11.0 while on other platforms it's relaxed to ~2.11.0?
In latest release (3.4.2) it's still impossible to install RASA on macOS with Python 3.10, because tensorflow-macos is pinned to 2.8.0  (see https://github.com/RasaHQ/rasa/pull/11940).
It could've been fixed by https://github.com/RasaHQ/rasa/pull/11941, but it was shadowed by https://github.com/RasaHQ/rasa/pull/11746.

Any reason tensorflow-macos is pinned at 2.11.0 while on other platforms it's relaxed to ~2.11.0?

@Bobronium Looking at https://pypi.org/project/tensorflow-macos/#history, we can't see any new micro releases in the last half year for this dependency. Also, dependabot will alert us if we need to update to any micros even with this constraint.

In latest release (3.4.2) [...] tensorflow-macos is pinned to 2.8.0

This dependency upgrade to 2.11.0 has been merged to main branch therefore it will be released in the next rasa-oss minor, i.e. 3.5.0.


WFLY-16291 WARN if invalid 'database' specified for EJB Database Time…

Issue: https://issues.redhat.com/browse/WFLY-16291

in case of an unrecognized database configuration value, there are already debug logs from line 279-281:
EjbLogger.EJB3_TIMER_LOGGER.debugf("Database dialect '%s' read from configuration, adjusting it to match the final database valid value.", database);
database = identifyDialect(database);
EjbLogger.EJB3_TIMER_LOGGER.debugf("New Database dialect is '%s'.", database);

Hello @chengfang yes there are already debug logs present but currently, there is no WARN logger there.
The users are nowadays adding different kinds of database names and also telling the support team to check for them. Because of the invalid database names, it's failing and also not showing any logger when the server starts, So I think adding WARN logger will be a good requirement here.


Web Team's Company Logo Design

Logo design for the Web Team's company "InoskyTech".
The size of the logo should be 1080x1080.
Desired design and color codes.
-e4e0d7
-3c4742

Logo design for the Web Team's company "InoskyTech".


Raspberry Pi Desktop GUI

Hi,
Sorry to bother over break! No urgency. I just started to toy around with the Pi and realized there are some gaps for me.
Couple things:

Can you remind me of the username/pw? It's in my notebook that I left in Durham.

If I wanted to use my Mac to remote desktop the raspberry pi, would I use this approach through an ethernet cable --> https://www.dexterindustries.com/BrickPi/brickpi-tutorials-documentation/getting-started/using-the-pi/connect-to-your-raspberry-pi-from-a-mac/

I'm assuming this is how we can best write programs on the pi, or if there's a better approach what would that be? Initially, I assumed we could upload on the SD card directly, but I don't think that's the case after doing some web research...

If I want the program to run as soon as and so long as the raspberry pi is powered, write a systemd file for the pi?
https://www.raspberrypi.org/documentation/linux/usage/systemd.md

Also, if we could do some brief coverage in class, that would also be great!
Thanks,
Yasha

I'm hoping @ad12 will be able to share the username/password since I also don't have that information with me.  You can develop all of your client code off the pi and on your laptop if you would like, and then just clone the git repo to the Pi when you want to run it there.  Access the GUI via your network connect might (1) be slow, and (2) might make it trickier to use a package like PyCharm on the Pi.  W/r to the automatic system startup, 'yes', we will be using a script that is run at boot time to get things kicked off automatically for us.  This will either use systemd or an rc.local approach (to be covered in class).


Add Heco chain

Closes #1702
Use transaction time to determine ticker validity

Yes, I'm going to work on a refactor for the node connection. It will take into account what Web3j have been working on with their 'universal connection' to eg Besu, Corda, Quorum, and also the 'ethereum-chains' in the ethereum github repo to allow dapps to add a network, and users to add a network chosen from that list.


Attach to Node Process not working with PowerShell on Windows 10

Testing #46582
Windows 10, NodeJS: v8.9.4

Create a simple script like:

setInterval(() => {
    console.log('a');
}, 500)

Launch the script in PowerShell: node --inspect=1500 foo.js
Use the 'Attach to Node Process' command or use the following launch.json:

    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
       {
        "type": "node",
        "request": "attach",
        "name": "Attach to Process via pid or port",
        "processId": "${command:PickProcess}"
    }
    ]
}

Expected: Picker shows my process
Actual: Picker shows "There are no entries to pick from"
Note that it works with fine with cmd. This is a Powershell specific issue.

problem is: PowerShell launches programs with a full path whereas command prompt uses a relative path:
PowerShell:

Command.exe:

No, the analysis from above is wrong. I'm handling the full path correctly.
The issue is in fact another duplicate of #46672

Tested on latest insiders and works fine.

@tsalinger thanks!
Till confirmed (and showed me) that both the "Attach Process Picker" and the "Auto Attach" work for him on Windows.
@sbatten  @RMacfarlane so for some (in ZRH) it seems to work on Windows. What is difference in Redmond?


Fix sql session

Fixed session management and issue with schema being created every time the plugin is loaded.

merged into dev manually


Support specifying piece size as N, with pieces size 2^N

Not sure what the flag should be. Maybe --piece-size-power-of-two N or --piece-size-log-two N

I'm not actually sure if anyone will want this. In lieu of this it might be enough to allow human readable piece sizes, and forbid non-power of two piece sizes by default.


[Not-quite-pull-request contribution] Template inheritance

I wrote a couple helpers that let me use template inheritance, a la Django. Since they're just helpers, they don't need to go into Handlebars proper, but I wanted to share them. Perhaps if they are deemed useful enough, someone can put in the effort to integrate them.
Usage
The first helper is named block. It lets you specify default content.
The second helper is named partial. (I don't know why I chose these names.) It lets you specify overriding content.
In your base template, you declare sections of content that may be replaced by deriving templates. For these sections, you can either use {{#block}}s or normal partial inclusion ({{>}}). The second option serves as a shorthand for when you have no default content.
<!-- base.hbs -->
<title>{{#block "title"}}Untitled{{/block}}</title>
{{> content}}

Then in your deriving templates, you specify any overrides with {{#partial}}s before declaring the inherited template with normal partial inclusion.
<!-- derived.hbs -->
{{#partial "title"}}Title{{/partial}}
{{#partial "content"}}Hello, World!{{/partial}}
{{> base}}

Example output:
<title>Title</title>
Hello, World!

Closing in favor of #1018


.so files in a react-native project (Android)

Description
I am currently working on a mobile application with react-native which I would like to integrate my own SDK by calling it in the gradle.
implementation 'eu.polestar:naosdk:4.+'
So, I switched to the native code and I implemented the necessary functions, but the problem is that the SDK contains libc++_shared.so libraries which break the execution of the code and I have this

What went wrong:
Execution failed for task ':app:mergeDebugNativeLibs'.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
More than one file was found with OS independent path 'lib/x86/libc++_shared.so'

By the way, I'm not interested in excluding the libc++_shared files, so I put them in a 'lib' folder by following the tree below:

And I add in the gradle: sourceSets {         main.jniLibs.srcDirs += "src/main/lib"     } to copy the .so files and take them into account in the execution.
At this stage, I avoided the previous error, the application is running normally but as soon as I try to use a feature from my SDK I encounter an unexpected error which returns to the fact the .so files are not taken taken into account in the project.

onSynchronizationFailure: Unexpected error

React Native version:
react: 16.13.1 => 16.13.1
react-native: ~0.63.3 => 0.63.3
Steps To Reproduce
The details of the SDK implementation are here: https://docs.nao-cloud.com/docs/mobile-sdk/android-sdk/quick-start/
and i just ran in terminal: react-native run-android
Expected Results
What I'm trying to do or find out is if there is a compromise between react-native's c ++ _ shared.so libraries and those provided by the SDK.
Snack, code example, screenshot, or link to a repository:
Here is my gradle:
`apply plugin: "com.android.application"
import com.android.build.OutputFile
project.ext.react = [
       enableHermes: false
]

apply from: '../../node_modules/react-native-unimodules/gradle.groovy'
apply from: "../../node_modules/react-native/react.gradle"
apply from: "../../node_modules/expo-updates/scripts/create-manifest-android.gradle"
def enableSeparateBuildPerCPUArchitecture = false

def enableProguardInReleaseBuilds = false

def jscFlavor = 'org.webkit:android-jsc:+'

def enableHermes = project.ext.react.get("enableHermes", false);
android {
compileSdkVersion rootProject.ext.compileSdkVersion
compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}

defaultConfig {
    applicationId 'com.polestar.naoreact'
    minSdkVersion rootProject.ext.minSdkVersion
    targetSdkVersion rootProject.ext.targetSdkVersion
    versionCode 1
    versionName "1.0.0"
}

sourceSets {
    main.jniLibs.srcDirs += "src/main/lib"
}

splits {
    abi {
        reset()
        enable enableSeparateBuildPerCPUArchitecture
        universalApk false  // If true, also generate a universal APK
        include "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
    }
}
signingConfigs {
    debug {
        storeFile file('debug.keystore')
        storePassword 'android'
        keyAlias 'androiddebugkey'
        keyPassword 'android'
    }
}

buildTypes {
    debug {
        signingConfig signingConfigs.debug
    }
    release {
        // Caution! In production, you need to generate your own keystore file.
        // see https://reactnative.dev/docs/signed-apk-android.
        signingConfig signingConfigs.debug
        minifyEnabled enableProguardInReleaseBuilds
        proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
    }
}
// applicationVariants are e.g. debug, release
applicationVariants.all { variant ->
    variant.outputs.each { output ->
        // For each separate APK per architecture, set a unique version code as described here:
        // https://developer.android.com/studio/build/configure-apk-splits.html
        def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4]
        def abi = output.getFilter(OutputFile.ABI)
        if (abi != null) {  // null for the universal-debug, universal-release variants
            output.versionCodeOverride =
                    versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
        }
    }
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.google.android.gms:play-services-location:11.4.0'
implementation 'eu.polestar:naosdk:4.+' // final '+' ensures you are using the latest version in the 4.0 series

//noinspection GradleDynamicVersion
implementation "com.facebook.react:react-native:+"  // From node_modules
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") {
  exclude group:'com.facebook.fbjni'
}
debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
    exclude group:'com.facebook.flipper'
    exclude group:'com.squareup.okhttp3', module:'okhttp'
}
debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") {
    exclude group:'com.facebook.flipper'
}
addUnimodulesDependencies()

if (enableHermes) {
    def hermesPath = "../../node_modules/hermes-engine/android/";
    debugImplementation files(hermesPath + "hermes-debug.aar")
    releaseImplementation files(hermesPath + "hermes-release.aar")
} else {
    implementation jscFlavor
}

}
task copyDownloadableDepsToLibs(type: Copy) {     from configurations.compile     into 'libs' }
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)

Closing as this has been fully addressed in React Native 0.71+
Please update to that version and report back if needed.


renderItem & inputHeight are missing in the typescript definitions

The title says it all the typescript definitions doesnt include the renderItem & inputHeight prop

Thank you ! Can you push a new version to npmjs ?


Exclude CMakeFiles from LIT testing list

In this commit, I exclude the directory CMakeFiles from adding into the testing list
to prevent LIT from seeing it as a demo.

Thanks! (CI is building out of tree that's why it didn't come up there)


Entity Generator Improvements

[x] Make pagination work like it does in the main generator-jhipster
[ ] Blobs
[x] Constraints
[x] For Instant/ZonedDateTime, implement https://github.com/henninghall/react-native-date-picker to allow DateTimePicker instead of just DatePicker

Things left to fix related to relationships:

[x] Related entities aren't loaded until you visit the edit screen, so they won't appear at first.

If you go back then click edit/create again, they will be listed

[x] OneToOne relationships - don't list entities that already have a relation (Not done in main generator so skipping

Blob support improved in v4 but not completely there.  Opening a separate issue.


fix: avoid redirect operator in justfile docker commands

Summary
This replaces sed '...' <<< text with echo text | sed '...' in the main justfile.
Background
On Ubuntu, the default shell doesn't recognise the redirect operator <<<, hence the just commands docker-build and docker-build-and-load both fail on Ubuntu.
Changes

Replaced usage of <<< by piping echo output.

Testing
Ran the commands on Ubuntu and macOS.
Changelogs
No updates required.

On a second note: we should probably just list the commands to build services so that we don't have to rely on the mapping crates/astria/<SERVICE> -> ghcr.io/astriaorg/` always working.
We only have a handful of services so this wouldn't cause too much boilerplate.

There's a minor issue with the build logic for the cli Docker image unrelated to this PR. The astria-cli package is the only one prefixed with astria, causing the just command to tag the local image as ghcr.io/astriaorg/cli:local instead of ghcr.io/astriaorg/astria-cli:local. For consistency and specific use cases, this should ideally be updated, though it’s not something we use regularly

Agreed with @quasystaty1 that the CLI issue will be handled in a follow-up PR.


export-requirements --all should check 'IsInstalled' as it walks the output of rg.pydumpreqs

If a requirement appears in the output of rg.pydumpreqs but is not installed due to a bad specification in gears run statement, "export-requirements --all" will fail trying to export the metadata for the incomplete requirement.
For example if UNBLOCKING Is specified as a trailing argument:
rg.pyexecute 'GB().run()'  requirements numpy UNBLOCKING
This entry will appear in the output of rg.pydumpreqs:
<IP_ADDRESS>:6379> rg.pydumpreqs

"GearReqVersion"
(integer) 1
"Name"
"UNBLOCKING"
"IsDownloaded"
"no"
"IsInstalled"
"no"
"CompiledOs"

"linux-buster-x64"
"Wheels"
"Requirement was not yet downloaded so wheels are not available"

"GearReqVersion"
(integer) 1
"Name"
"gearsclient==1.0.1"
"IsDownloaded"
"yes"
"IsInstalled"
"yes"
"CompiledOs"

"linux-buster-x64"
"Wheels"

"gearsclient-1.0.1-py3-none-any.whl"
"redis-3.5.3-py2.py3-none-any.whl"
"cloudpickle-1.6.0-py3-none-any.whl"

"GearReqVersion"
(integer) 1
"Name"
"pandas"
"IsDownloaded"
"yes"
"IsInstalled"
"yes"
"CompiledOs"

"linux-buster-x64"
"Wheels"

"pytz-2020.1-py2.py3-none-any.whl"
"numpy-1.19.2-cp37-cp37m-manylinux2010_x86_64.whl"
"python_dateutil-2.8.1-py2.py3-none-any.whl"
"six-1.15.0-py2.py3-none-any.whl"
"pandas-1.1.2-cp37-cp37m-manylinux1_x86_64.whl"

"GearReqVersion"
(integer) 1
"Name"
"numpy"
"IsDownloaded"
"yes"
"IsInstalled"
"yes"
"CompiledOs"

"linux-buster-x64"
"Wheels"

"numpy-1.19.2-cp37-cp37m-manylinux2010_x86_64.whl"

resulting in this:
$ python3 gcli.py export-requirements --port 6379 --all --save-directory exports
failed exporting requirement (Requirement was not installed yet)
If there is no way to remove the incomplete entry then the good requirements have to be exported one at a time.  In a large environment this could be very time consuming.  The documentation does not show a way to delete individual entries as a way to clean this up.

Thanks for reporting, I agree we should allow "forgeting" a bad requirement.

And also we should allow exporting only installed requirements on gears-cli


Join contribute ?

Can I join the collaboration, I am eager to join, I think I can contribute

Hello, @rajasekarv is a bit busy lately but hopefully will become more free soon.
You can join gitter if you wish maybe we can find out where you can help while we elaborate a more formalized plan or add more issues (which you are free to open btw).
Do tou have any particular interest in an area you would like to help or are knowledgeable about or nothing specially?
Cheers.

Hi @uk0, I have been a bit busy lately. Now onwards, I will be a bit active. Please feel free to join us on Gitter and discuss where you can contribute. Some suggestion: You can generate good benchmarking suite to keep track of regressions and progress after some major commits/releases and to compare against apache spark to see when this framework is slow and how we can improve it.

thx  very nice

How to develop and test macos is not friendly, do you have any solution?


Would it be possible to add a dump button added to the Data Modification application?

I ask as a common thing we need to do here is to select a set of documents (e.g., based on an ingest date range or even after some date) and then dump those documents in preparation for ingest into another system (e.g., moving from a development server to the operational server or from an operational system to an archive).
It would also be nice if at some point it was possible to do this from the command line (so we could automate the whole process).

Just came across this again and wanted to mention that we are in a better spot these days thanks to an "Export by Script" facility that was implemented in the data modification tool a while back. I think one could use that to get close to what was being requested. It also has the added benefit of being able to fetch attributes from related documents. Very helpful if exporting a complex multi-doc structure in Nunaliit into a flat table for other systems. For example, if you were exporting observation documents that referenced species documents, you could opt to have a column with the species name string.
Anyway, I realize the original use case may have been solved some other way by now, but I think the dump idea is good on its own and maybe the export by script feature will be helpful to anyone looking for something similar in the interim.


Generating svg and component automatically?

Hi leadream, thank you for building this great automation plugin. It is exactly what I was looking for!
So I got my workflow set up and working but I don't see my icon's .svg files or react component being generated to the /svg and /icons folders. Wondering if this is supposed to be automatic through Github Action or do I have to manually fetch locally?
Thanks again!
Arturo

@artcoholic Yeah, it's just generated in GitHub Actions but not committed. I'm planning to add a job in Action to commit them after every builds. For now you can execute yarn generate to fetch and build locally, then commit.

got it. Thank you!


Remove the need to declare text tests in BUILD

cc @gabrieldemarmiesse and @seanpmorgan

@rahulunair @helinwang
You are owners of some files modified in this pull request.
Would you kindly review the changes whenever you have the time to?
Thank you very much.


fix(player): add workerd to node exports

Related:
Similair to #1196 but now it's for Cloudflare Workers/Pages instead of Deno.
Description:
Adds the workerd key to the packages conditional exports, so Cloudflare Workers will use the server bundle.
Before it was using the browser bundle which broke my Nuxt 3 site when server-side rendering the Vidstack player.
I've tried to just 1-to-1 matches the changes made for Bun and Deno yesterday.
Ready?
Yes.
Anything Else?
Cloudflare's docs on the workerd exports key
Review Process:

[ ] Clone reproduction from Altinget/nuxt-vidstack-reproduction
[ ] Install packages with npm i
[ ] Build project and run it locally via Cloudflare's Wrangler CLI with npm run build && npx wrangler pages dev dist/

Before the change it fails like so:

After the change it instead starts the server and you can go to http://localhost:8788/other-page and it loads without throwing any errors.

Thank you!

Great to see this gets fixed now. It has been the biggest blocker for us to adopt vidstack. Thanks!
@mihar-22 Any idea when we expect to see the next release? Thanks for developing such a helpful piece of software 👍


add support for options in speedtest.net

https://github.com/ddsol/speedtest.net supports the following options:

maxTime The maximum length of a single test run (upload or download)
pingCount The number of close servers to ping to find the fastest one
maxServers The number of servers to run a download test on. The fastest is used for the upload test and the fastest result is reported at the end.
headers Headers to send to speedtest.net
log (Visual only) Pass a truthy value to allow the run to output results to the console in addition to showing progress, or a function to be used instead of console.log.
serverId ID of the server to restrict the tests against.
serversUrl URL to obtain the list of servers available for speed test. (default: http://www.speedtest.net/speedtest-servers-static.php)

these should all be exposed as options (excepting maybe log, which is possibly already used with --verbose?)
For me, this would be especially useful to select and test throughput for VPN vs normal connection on specific servers. I'll poke around and see if I can submit a PR for this.

Sorry, I'm not interested in more options. I made this for the most common case and it's done now. I would suggest either trying out speedtest-cli or forking this project.


安装不成功，mac12.0.1

zhangguapi@zhangguapideiMac-Pro WeChatTweak-macOS-master % brew install wechattweak-cli
Warning: No available formula with the name "wechattweak-cli".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.

brew install sunnyyoung/repo/wechattweak-cli


Add missing AppsFlyerAdRevenue.asmdef.meta file

This PR adds the missing .meta file not included in the fix to issue #12

Please merge this asap & make a release it is not that hard 5 min job


Second key value inside of .belongsToMany()

Can someone please explain me how to add a second key to this.belongsToMany() function?
The relation is working fine but I have another key value pair besides the id that I want to be inside the related array.
I prepared a codesandbox to clarify the issue.
I want plannedQuantity to be inside of the productQualities array in productGroups.
plannedQuantity shouldn’t be inside the original productQuality in the productQualities entity.
That’s the codesandox. https://codesandbox.io/s/p5mrx42rqx 1
The plannedQuantity of id: 2 inside of productQualities is actually wrong because it gets overwritten
I guess the interesting part is inside of /store/models/modelProductGroup.js

Sorry if I'm mistaking, but I think you do have ProductQuality inside productQualities array don't you?
{
    "$id": 1,
    "id": 1,
    "title": "Jackets",
    "productQualities": [
      // Isn't these product qualities?
      {
        "$id": 1,
        "id": 1,
        "plannedQuantity": 6
      },
      {
        "$id": 2,
        "id": 2,
        "plannedQuantity": 5
      },
      {
        "$id": 33,
        "id": 33,
        "plannedQuantity": 2
      }
    ],
    "productShapes": []
  }

The plannedQuantity of id: 2 inside of productQualities is actually wrong because it gets overwritten

This is expected since it has the same primary key value of 2. If the 2 record has the exact same primary key, then it gets merged (overwritten). Vuex ORM requires the model to have at least one unique key or composite key. So if you need to have the same ID, maybe you need to define different primary key for the model.
export class ModelProductQuality extends Model {
  static entity = "productQualities";

  static primaryKey = 'pk'

  static fields() {
    return {
      pk: this.increment(),
      id: this.attr(null),
      plannedQuantity: this.attr("")
    };
  }
}

Hi @kiaking,
my example was a little imprecise.
I guess using plannedQuantity inside the ProductQuality model is wrong as it should only be shown inside the relation in productGroups.
export class ModelProductGroup extends Model {
  static entity = "productGroups";

  static fields() {
    return {
      id: this.attr(null),
      title: this.attr(""),
      productQualities: this.belongsToMany(
        ModelProductQuality,
        ProductQualityProductGroup,
        "productGroup_id",
        "productQuality_id"
      ) <--- plus the plannedQuantity property,
      productShapes: this.belongsToMany(
        ModelProductShape,
        ProductShapeProductGroup,
        "productGroup_id",
        "productShape_id"
      )
    };
  }
}

I'm not sure how to achieve the desired behavior.
Thanks for your answer.

Sorry, I'm still not sure what is the expected result.
Following your example on CodeSandbox, you're trying to load ProductGroup with ProductQualities.
this.$store.getters["entities/productGroups/query"]()
  .with("productQualities")
  .with("productShapes")
  .get();

And you're getting the result of;
[
  {
    "$id": 1,
    "id": 1,
    "title": "Jackets",
    "productQualities": [
      {
        "$id": 1,
        "id": 1,
        "plannedQuantity": 6
      },
      {
        "$id": 2,
        "id": 2,
        "plannedQuantity": 5
      },
      {
        "$id": 33,
        "id": 33,
        "plannedQuantity": 2
      }
    ],
  },
  // ...
]

The ProductQuality model is indeed only be seeing inside ProductGroup relationship, isn't it? The productQualities property only holds ProductQuality records.
I think I'm still missing your point. Could you provide an example JSON record that you wish to get as a result?

The problem is that the plannedQuantity is overwritten by the second object with a different plannedQuantity.
PlannedQuantity doesn't belong to the productQuality Model.
It belongs into the productGroup data.
The data I'm retrieving is
productGroups: [
    {
      id: 1,
      title: "Jackets",
      productQualities: [
        { id: 1, plannedQuantity: 6 },
        { id: 2, plannedQuantity: 4 },
        { id: 33, plannedQuantity: 2 }
      ]
},
id: 2,
      title: "Sweater",
      productQualities: [
        { id: 1, plannedQuantity: 9 },
        { id: 2, plannedQuantity: 1 },
        { id: 33, plannedQuantity: 14 }
      ]

If I define plannedQuantity inside the plannedQuantity model it gets overwritten from within the second object.
I want each productGroup have its own productQualities with its independent unique plannedQuantity.
[
  {
    "$id": 1,
    "id": 1,
    "title": "Jackets",
    "productQualities": [
      {
        "$id": 1,
        "id": 1,
        "title": "Leather"
        "plannedQuantity": 6
      },
      {
        "$id": 2,
        "id": 2,
        "title": "Woven"
        "plannedQuantity": 5
      },
      {
        "$id": 33,
        "id": 33,
        "title": "Cotton"
        "plannedQuantity": 2
      }
    ],
  },
   {
    "$id": 2,
    "id": 2,
    "title": "Sweater",
    "productQualities": [
      {
        "$id": 1,
        "id": 1,
        "title": "Leather"
        "plannedQuantity": 9
      },
      {
        "$id": 2,
        "id": 2,
        "title": "Woven"
        "plannedQuantity": 1
      },
      {
        "$id": 33,
        "id": 33,
        "title": "Cotton"
        "plannedQuantity": 14
      }
    ],
  },
]

Sorry for the confusion.

@Yackbz Thank you so much for your explanation! Now I understand.
OK, this behavior is intended at the moment. At first, in Vuex ORM, records must have its unique key to determine if the 2 records are same or not.
With your example, the primary key of ProductQuantity is id. So, if you have the record with same id, it gets overwritten. Because, if we don't, we lose a way to update a record when inserting data.
To use the same id, you may have 2 options.

Add another field that for the unique key. For example;

class ProductQuality extends Model {
  static entity = 'productQualities'

  static primaryKey = 'uid'

  static fields () {
    return {
      id: this.attr(null).
      uid: this.attr(null), // or this.increment()
      plannedQuantity: this.attr(null)
    }
  }
}

productGroups: [
  {
    id: 1,
    title: "Jackets",
    productQualities: [
      { id: 1, uid: 1, plannedQuantity: 6 }
    ]
  },
  {
    id: 2,
    title: "Sweater",
    productQualities: [
    { id: 1, uid: 2, plannedQuantity: 9 }
  }
]

Make composite key with id and plannedQuantity. However, this will still merge records which have exactly the same id and plannedQuantity value.

class ProductQuality extends Model {
  static entity = 'productQualities'

  static primaryKey = ['id', 'plannedQuantity']

  static fields () {
    return {
      id: this.attr(null).
      plannedQuantity: this.attr(null)
    }
  }
}

Would these workaround make sense for you?

Sorry for the late reply. I'll try that out soon.
It seems to solve the issue. Thank you for the explanation.

Great, thanks! Waiting for your reply then : )

That’s great. It works and does the trick. Thanks


Added support for :focus

Hints wasn't showing up when focused, which made them inaccessible by keyboard navigation. This fix will also make them show up on :focus, not only on _:hover.

@PalleZingmark Thanks for contributing.
This feature was originally present in v1.x and was intentionally removed in 2.0 due to #63.
If you could suggest some way to keep accessibility and still prevent that bug, that would be great.

Still has issues as mentioned. Closing due to inactivity.


Upload to GitHub fails if repository is completely empty

It seems like there's a limitation on GitHub API which prevents uploading files as blobs through API before a file is created on the GUI or pushed manually from git.
There should be a sanity check at the beginning of the process, because right now the job is running until the end even though the first call to the API has already failed. For me it took almost an hour to get to the end and realise the job has failed at the beginning.

Now I installed the latest dev version and I can see there is a note mentioning this issue. Still, an automated check would be nice :)

Thanks @belidzs - I think with the new version, if you run the GitHub test, it will populate with some files and prevent that, too.
I'm going to redo the way we send files to GitHub soon, in order to speed up when using batch processing. This should remove the empty repo problem.
Currently, we use blobs and trees to create our Git data. This will change to just regular style commits, as we're doing in the GitLab and BitBucket implmentations.
I'll leave this issue open until that's resolved.

All right, thanks!


Bug:  "Bad authorization state" error on subsequent visits to login page.

When I first visit the homepage of my React application at localhost:3000, the application correctly redirects to my Django server for authentication which uses django-oauth-toolkit. I close the tab, then if I return to the application at localhost:3000 after the initial visit without clearing the browser's cache or restarting, it fails to redirect for re-authentication and displays a "Bad authorization state" error. If I refresh my browser tab at this stage, the error goes away and I am redirected to my login page. I am unable to understand why '?code=' parameter is expected to be set when the user isn't even logged in.
Error Detail : Bad authorization state. Refreshing the page and log in again might solve the issue.
Expected  to find a '?code=' parameter in the URL by now. Did the authentication get aborted or interrupted? (AuthContext.js:213)
Auth config settings :
    const authConfig = {
        clientId: process.env.REACT_APP_CLIENT_ID,
        authorizationEndpoint: process.env.REACT_APP_AUTHORIZATION_ENDPOINT,
        tokenEndpoint: process.env.REACT_APP_TOKEN_END_POINT,
        redirectUri: process.env.REACT_APP_REDIRECT_URI,
        scope: process.env.REACT_APP_SCOPE,
        logoutEndpoint: process.env.REACT_APP_LOGOUT_URI,
        state: `${Math.random().toString(36).substring(7)}_${Date.now()}`,
        tokenExpiresIn: 3600,
        refreshTokenExpiresIn: 604800,
        onRefreshTokenExpire: handleRefreshTokenExpire,
    };

Steps To Reproduce
This happens on subsequent visits, as described above.
The current behavior
The application shows a "Bad authorization state" error and does not redirect to the server for login.
The expected behavior
The application should redirect to the server for login without showing an error every single time if user isn't authenticated.

This is expected behaviour, as whenever you start a login-flow (and redirect to the oath-server), the library has to start expecting a code-parameter. You are, as the page developer, able to fix this if you'd like, e.g. by clearing the ROCP_loginInProgress key in localStorage when you (somehow) know that the user cancelled their flow.
However, I don't think you'll find it super-easy to manage this, as what happens once the user has been redirected to the auth server (them closing the window/navigating away) is impossible to see for your js code, since it's no longer running).
But you are allowed to modify the ROCP_*-values in localStorage/sessionStorage if that helps you!

Closing this, given @soofstad's comment, but @muazshahid, let me know if you believe another solution (from the library's side) would be preferential, and we can reopen it.

I've just spent 15 minutes to figure out why is the front page stuck loading. After looking around I've found "Bad authorization state. Refreshing the page and log in again might solve the issue." in the logs.
It is great that you log this out, so I could see what is going wrong.
But this could be done better: It is totally possible, that you open your app, abandon that tab, and open your app again.
Here we could start debating if the best approach is:

Showing a popup from app logic
Silently overwriting exisitng ROCP_* values and moving on to the auth provider

What I'd expect from this library is to have a configuration related to this. If I want to go with option 2, silently doing auth again, I do not want to tamper with ROCP_* values. Those are library internals. I should not be required to change those.
Thx for the library BTW, OAuth flows are not easy, this lib can be pretty helpful!

Hi @vhermecz, thanks for your feedback.
In a cause that "something went wrong", there are too many unknowns, and no single correct way to handle it. It all depends on the app, the authprovider, the user experience, etc. etc..
It's kind of dangerous to just automatically retry a login, as the user/app could get stuck in an infinite login loop, and possibly get blocked by the authprovider for doing to many calls.
You can (and should) handle logins that fails yourself, you can do that by checking the error value, and deciding what is right for your app to do. Ether show a message, a popup with a "login again" button, hint at the user to refresh, or just call logIn() automatically.
Any ideas on how the library could handle this better is welcome :slightly_smiling_face:


No results are returned if the search query includes a forward slash

Description:
Query: S/4 HANA

https://dev-central.ballerina.io/ballerinax/sap.s4hana.api_salesdistrict_srv/1.0.0
This package even has the query embedded as the keyword and it fails

This search pattern matches <org_name>/<package_name> search query in Ballerina Central. Therefore it searches for package 4 and HANA in org S.
The only way to resolve this will be to special case S\4 HANA


feat(aws-sqs-pipes-stepfunctions): new construct

First of a new set of constructs integrating two serverless resources via EventBridge pipes

AWS CodeBuild CI Report

CodeBuild project: githubautobuild-for-cdk-v2
Commit ID: d66d62653c6eb9e5bc26e2571f2e081ea865f2a3
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: githubautobuild-for-cdk-v2
Commit ID: 77f7dc17693770721754af1ba4af2c2ee06e3115
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: githubautobuild-for-cdk-v2
Commit ID: b9cfad210bd563039f2d9209151dbb5ad7fa8805
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: githubautobuild-for-cdk-v2
Commit ID: d428f98d9aba4d6150d9765c8f2b469d39452720
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: githubautobuild-for-cdk-v2
Commit ID: b7ea39bf6e03d1fe9ce3e538520d501a0474cf6e
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: githubautobuild-for-cdk-v2
Commit ID: 39366a912c5ce7a8a4b3ad4c214d5ab2a83d0f43
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: githubautobuild-for-cdk-v2
Commit ID: 7c1dcf0cd10d16a52e58feedb340cb5b682350b2
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: githubautobuild-for-cdk-v2
Commit ID: f2213e3fb35545c89404d9ea84b0fa2e10af38a5
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: githubautobuild-for-cdk-v2
Commit ID: c4c695611ad1ce082fead036e6759afad1aa6c70
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

Merging without approval for the last commit as it is just doc changes suggested in the final approval.


Missing android.pim needed by AndroidGlobalTime_0.9

What steps will reproduce the problem?
1. Download
http://apps-for-android.googlecode.com/files/AndroidGlobalTime_0.9.zip
2. Unzip
3. Add to Eclipse projects and run

What is the expected output? What do you see instead?

I expected to see the program run on the Emulator. Instead, I get several
errors that are related to a missing class, android.pim.

What version of the product are you using? On what operating system?

Android SDK 1.0, Eclipse 3.4.1, on Windows XP.

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 18 Oct 2008 at 5:26

See Issue 18 and comment 3 of Issue 10.

Original comment by<EMAIL_ADDRESS>on 13 Nov 2008 at 3:46

Original comment by<EMAIL_ADDRESS>on 13 Nov 2008 at 10:17

Added labels: Application-AndroidGlobalTime

Duplicate of Issue 18.

Original comment by<EMAIL_ADDRESS>on 13 Nov 2008 at 4:06

Changed state: Duplicate


Documentation: list of ${command:cmake.*} options

There exist some command that can be used in launch.json and task.json
For example, ${command:cmake.launchTargetPath} is described here.
What other command are availible? Where can I find a list?

I think this link of documentation is what you are looking for.

Yep, that's it.  Thanks @hwhsu1231!

Link was down (branch was deleted): new link: https://github.com/microsoft/vscode-cmake-tools/blob/main/docs/cmake-settings.md#command-substitution


Persistent jobs support

This pull request does two things.
First it resolves #15 allowing persistent jobs to properly update remote dispatch.
Second (and I'm happy to remove this if not desired) it adds a powershell script and instructions for using it to make installation into the mods folder automatic on build allowing for quick and easy testing of changes.
Note - I used reflection to implement the persistent jobs event handler as I didn't want to create a dependency on persistent jobs.  If a different approach is desired, I'm more than happy to do so.  I'm also more than happy to relocate or adjust any of this code.

I'll try to make the requested changes this weekend.
As for the package.ps1 and the contributing section, I'll just remove those at this point - since you use a different packaging system it doesn't make sense to double down.
I'll re-request review once I've made the appropriate changes


DllNotFoundException: FirebaseCppApp on the editor

[REQUIRED] Please fill in the following fields:
Unity editor version: 2021.3.7f1
Firebase Unity SDK version: 11.1.0
Source you installed the SDK: .unitypackage (.unitypackage or Unity Package Manager)
Problematic Firebase Component: messaging (Auth, Database, etc.)
Other Firebase Components in use: _____ (Auth, Database, etc.)
Additional SDKs you are using: _____ (Facebook, AdMob, etc.)
Platform you are using the Unity editor on: Macbook Big Sur 11.7.7 (20G1345) (Mac, Windows, or Linux)
Platform you are targeting: Android, iOS, Desktop (iOS, Android, and/or desktop)
Scripting Runtime: IL2CPP (Mono, and/or IL2CPP)
[REQUIRED] Please describe the question here:
Hello everyone, after 4 days of continuous attempts, I turn to you.
My problem
Details

DllNotFoundException: FirebaseCppApp-11_1_0 assembly: type: member:(null)
Firebase.AppUtilPINVOKE+SWIGExceptionHelper..cctor () (at :0)
Rethrow as TypeInitializationException: The type initializer for 'SWIGExceptionHelper' threw an exception.
Firebase.AppUtilPINVOKE..cctor () (at :0)
Rethrow as TypeInitializationException: The type initializer for 'Firebase.AppUtilPINVOKE' threw an exception.
Firebase.AppUtil.SetLogFunction (Firebase.LogUtil+LogMessageDelegate arg0) (at :0)
Firebase.LogUtil..ctor () (at :0)
Firebase.LogUtil..cctor () (at :0)
Rethrow as TypeInitializationException: The type initializer for 'Firebase.LogUtil' threw an exception.
Firebase.FirebaseApp..cctor () (at :0)
Rethrow as TypeInitializationException: The type initializer for 'Firebase.FirebaseApp' threw an exception.
AuthManager.Awake () (at Assets/Scripts/AuthManager.cs:33)
line 33 - FirebaseApp.CheckAndFixDependenciesAsync().ContinueWith(task =>

I have searched through all the forums, including Korean and Chinese ones, and most people suggest resolving this issue by granting permission to use the FirebaseCppApp.bundle file in the Mac privacy settings. However, this didn't work for me at all. I have already set the "Anywhere" option as shown in this screenshot: [ https://cdn.osxdaily.com/wp-content/uploads/2016/09/gatekeeper-allow-apps-anywhere-macos-2.jpg ].
Here's what I have tried so far:

Installing the Firebase plugin through the package manager - didn't work.
Trying different versions of Unity - didn't work.
Installing in a completely empty project - didn't work.
Searching for FirebaseCppApp.bundle files in quarantine using the terminal - sometimes extracted them from there, but it still didn't work.
Reinstalling the Firebase SDK plugin multiple times (around 10-15 times).
Trying versions 10.1.0, 11.0.0, 11.1.0 - none of them work.

On the positive side, registration through Firebase works fine when compiling the game for Android (I'm using BlueStacks for testing), so the problem seems to be specific to the Unity Editor on macOS.
Some people have also reported that switching to a newer operating system helped them. I'm already using the latest version supported by my MacBook.
I have extensively searched all websites, forums, and other resources where this issue has been discussed. Since I couldn't find a solution, I decided to describe the problem here again (I hope this is not against the rules).
I apologize for my English and the way I described the problem. I rarely seek help on forums, so I hope you understand the issue I'm writing about.

Hi @SunQdev
This error typically appears when the editor fails to load the FirebaseCppApp bundle file correctly.  Are you using an M1 silicon Mac?
One thing to look into is in the Unity editor, if you use the Inspector on the bundle file (Assets/Firebase/Plugins/x86_64/FirebaseCppApp-11_1_0.bundle), and then under Platform settings, switching to the Editor Settings, you should see 'OS' and 'CPU', and ideally those should be set to 'Any OS' and 'Any CPU'.
Another thing to try, in that same inspector, toggling 'Load on startup'.  That might produce a more helpful error message in the console logs.

Hi @a-maurice
I am using a MacBook Pro (Retina, 15-inch, Late 2013) - 2.6 GHz Quad-Core Intel Core i7 processor.
In the .bundle inspector, 'Any OS' and 'Any CPU' are enabled.
When I enable 'load on startup,' I receive a warning:
"Plugins: Couldn't open Assets/Firebase/Plugins/x86_64/FirebaseCppApp-11_1_0.bundle, error: dlopen(Assets/Firebase/Plugins/x86_64/FirebaseCppApp-11_1_0.bundle, 2): Symbol not found: __ZNKSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE3strEv
Referenced from: Assets/Firebase/Plugins/x86_64/FirebaseCppApp-11_1_0.bundle (which was built for Mac OS X 12.6)
Expected in: /usr/lib/libc++.1.dylib
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)"
I tried updating libc++, but it didn't solve the problem

Alright, guys. I've solved the problem.
I've installed Firebase SDK 8.10.1 - It's the latest version before Xcode 13.3 support, since I have Xcode 13.2, I figured it should work fine on my Mac, and it does. Note that when you download this version, after extracting it, you'll see 2 folders: dotnet3 and dotnet4. On a Mac, you need to install dotnet4. That's basically it. I want to give a special thanks to @a-maurice . After his response, I kept searching for a solution and didn't give up.

Ah, I hadn't considered xcode versions, but that makes sense.  Thanks for the update.


Error when adding bundle as a single component instead of silently failing

When you want to add *Components, you must use .spawn(*Components) and not .spawn((*Components, ..)) the spawning will fail, but there is no indication to the user, that it won't work.
This is also the case when adding .with(*Components) instead of .with_bundle(*Components)
This should definitely tell user, that it's not correct to add bundles this way and not silently fail but compile no problem.

I wonder if it would be possible to cheat a little bit, by making the default Bundles !Sync, maybe by adding a PhantomData<*const ()> field?
Obviously we'd have to change the macros crate to add #[bundle(ignore)].
I'd probably also add #[bundle(optional)] at the same time.
I'm going to do some investigative work around this soon.

I wasted an hour of my life on this today (again).  Can you spot my error?
struct Something;

fn setup(commands: &mut Commands, asset_server: Res<AssetServer>) {
    commands
        .spawn(Camera2dBundle::default())
        .spawn((Something,))
        .with(Text2dBundle {
            text: Text {
                value: "Some Text".to_string(),
                font: asset_server.load("fonts/FiraSans-Bold.ttf"),
                style: TextStyle {
                    font_size: 60.0,
                    color: Color::WHITE,
                    alignment: TextAlignment {
                        vertical: VerticalAlign::Center,
                        horizontal: HorizontalAlign::Center,
                    },
                },
            },
            ..Default::default()
        });
}

Answer: .with(...) was silently failing.  It needed to be .with_bundle(...)

I've had a new idea of how to 'fix' this, which would be to go super simple
fn illegal_component_system<T: Bundle>(q: Query(Entity, With<T>)){
for e in q.iter(){
 //...print message depending on settings
}
}

And then add a method on app to add this system
Possibly also add a field on App which would disable adding these

I've had a new idea of how to 'fix' this, which would be to go super simple

Its a bit heavy for my taste to prevent what in most cases is a "newbie error". And would require somehow connecting the World impl and the Schedule impl to ensure a new system is inserted for each Bundle.
Haha its not a full solve, but we could consider un-implementing Bundle entirely for tuples. (ex: the only way to spawn something is through a pre-constructed Bundle derive, otherwise you must use commands.with())
It doesn't solve the commands.with(SomeBundle) problem though.

I've had a new idea of how to 'fix' this, which would be to go super simple

Its a bit heavy for my taste to prevent what in most cases is a "newbie error". And would require somehow connecting the World impl and the Schedule impl to ensure a new system is inserted for each Bundle.
Haha its not a full solve, but we could consider un-implementing Bundle entirely for tuples. (ex: the only way to spawn something is through a pre-constructed Bundle derive, otherwise you must use commands.with())
It doesn't solve the commands.with(SomeBundle) problem though.

As part of this, trying to access a bundle as a component (commonly as part of a query) should also fail or warn. See #403 for related work.

Fixed by #2254!


guildname filter

Ignores spaces, blocks all non a-z characters.
blocks names longer than maxLength and which contain words in bannedWords
Not sure if the config is set up correctly here to autoupdate new configs and update existing ones but

This "works" but i preferably want this to be under a guilds section in the config file.
Cant find a good way to do it rn since circular dep issue


Marshal wasm-evm StaticCall response

Describe your changes and provide context
For a wasm binding query we need to marshal it as json, and for bytes we usually encode it as base64. Neither was done for StaticCall's response which is fixed by this PR.
Testing performed to validate your change
unit test

Codecov Report
Attention: Patch coverage is 50.00000% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 60.94%. Comparing base (51a15cf) to head (b985ff3).
Report is 1 commits behind head on seiv2.

Additional details and impacted files

@@            Coverage Diff             @@
##            seiv2    #1556      +/-   ##
==========================================
+ Coverage   60.90%   60.94%   +0.04%
==========================================
  Files         366      366
  Lines       26062    26067       +5
==========================================
+ Hits        15872    15886      +14
+ Misses       9183     9172      -11
- Partials     1007     1009       +2

Files
Coverage Δ

x/evm/client/wasm/query.go
15.06% <50.00%> (+2.13%)
:arrow_up:

... and 3 files with indirect coverage changes


Create custom popup text

Hello, is not an issue. But i need sample code to create this one

Please help sir :D

Api subscribeAction.

Got it! Thanks sir


Cannot read properties of null (reading 'scrollWidth')

Describe the bug
I am getting the following error: Cannot read properties of null (reading 'scrollWidth')
when using jest to test
To Reproduce
should checked this.tableContainerDiv?.current?.scrollWidth
Screenshots
material-table.js file

Desktop (please complete the following information):

This works for my setup. Can you reproduce this I'm a sandbox or look why scroll width of a component might be undefined?

I think this happened to me as well when data prop was incorrect. Not sure if that was the reason tho

This works for my setup. Can you reproduce this I'm a sandbox or look why scroll width of a component might be undefined?

My fault, the project's setup is problematic.


Customise canvas controls as per mockups

Controls:

reset camera
zoom in
zoom out
expand / full screen - this will have to be binded to the flexlayout action to expand the tab full screen.

Place holders for the other components (we do not implement each component in this card but just put place holder for the controls):

icon for play/pause animation
icon for synchronization
icon for recording
icon for download objs/img
icon for for layers (Strata objs)
icon for dev stage slider
icon for colorpicker
icon for switching background from dark to light.

it would be ideal to make possible to disable a control so that the button for that control is not displayed when the prop for that is set to false, this will give us flexibility since few of the controls above are still under discussion (recording, synchronization).

We can save a bit of time here using the same controls we have in VFB

CameraControls is the default set of icons for the Canvas.
Any React component that matches the props of this Component can be added to the Canvas by specifying it in the camera configuration, see this example.
Since we add new buttons we should implement a new Controls component specific to YALE reusing some of the code of CameraControls.js (e.g. available camera actions).
Not every button will trigger an action passed to the cameraControlsHandler. E.g. icon for dev stage slider is independent of the Canvas scene and will open a popup. In that case we don't need to call the cameraControlsHandler.


intf_num is not alway 0 or 1, especially in composite devices, maybe there's a more appropriate change?

https://github.com/cherry-embedded/CherryUSB/blob/bf54bc2ff1c3833ca3c49d0720e712bfec679653/class/video/usbd_video.c#L667

video must be zero


Tentatively fix the MS server registration issues.

This PR also refactors the MasterServerPresenceReporter to use std::async instead of std::thread. This should allow for more thread safety compared to the last solution.
Unable to test on my local machine but it should work. I might recommend increasing the max retries to 10 for safety.

 I'll port the rest of the master server stuff to std::async later.
Fixing format-check now since whoever set it up loves making my life hell >:[

Ready for review and merge.

I re-added the DUPLICATE_SERVER "cooldown" from the previous iteration. Instead of checking 10 times however, I just wait 20 seconds between attempts.

tbh, we should probably just make max retries a convar rather than have it be a const

Yeah, this PR was mostly to fix the bug that was blocking your refactor from being merged. A lot could be improved.


Blank screen

My Nano S was set up. Today I go to use it the screen is blank. Hold down buttons, plug and unplug.  Load Ledger Live with no success.

Same here...


SQLite: allow generate from schema file

Sometimes is handy to generate files from schema files (see for example https://github.com/go-jet/jet/issues/136).
In general this is hard to do. In SQLite it is so easy to create an in-memory throw-away database that this can be easily accomplished.
This PR propose to add a flag to specify a schema file that will be used to generate files. If no DSN is specified, an temporary in-memory database will be used, otherwise the schema file will be executed in the specified database.
In order for this to work, a change to the test data is needed: https://github.com/go-jet/jet-test-data/pull/2
The README/Wiki should also be updated with this new flag.
What do you think?

I'm not sure what benefits bring such a feature. Currently, my development cycle looks like this:

Add a new migration file.
Apply migration to the local test database
Generate jet files from running local test database
Add/update business logic
Add tests for new business logic
Push changes for PR

The only two reasons I can see to generate jet files from SQL migration files are in case developers don't have a local development setup. If there is no local test database, then how business logic is tested?
This is such a bad practice that I don't see a point supporting it.
Of course, there might be some other use cases that I'm missing.

Well, my use case is the following.
In the early stages of development I use an in-memory SQLite, which will be automatically destroyed and recreated at every run. I want to populate it with test data at every startup and I would prefer to do it from my business logic layer since there I can use the already present logic and I have compile time checks (thanks to jet). In order to do this of course I need to have generated files. Since there is no physical database, in order to run jet, I need to create a temporary one and then destroy it. This is why I decided to modify the code (and then decided to share it here).
Of course I could use a physical db from the beginning, and in fact I often do this, but the situation is more or less the same since, again in early development, I want to destroy it and recreate it at every run. Nonetheless, there might be people (?) running SQLite as an in-memory database even in production, and this allows them to use easily jet.
In general, my personal point of view is that the application comes first, and it is often responsible to create and manage the database. And since jet is a code generator, it seems natural to me to run it from a schema, even before the database exists. Of course, this is just my own opinion.

In the early stages of development I use an in-memory SQLite, which will be automatically destroyed and recreated at every run...

You can achieve the same thing using a script that drops the whole schema, runs the migration script, and then runs a jet generator.

Nonetheless, there might be people (?) running SQLite as an in-memory database even in production, and this allows them to use easily jet.

For an in-memory SQLite database, you can call jet generator from the code. Just pass it a in-memory db connection.

In general, my personal point of view is that the application comes first, and it is often responsible to create and manage the database. And since jet is a code generator, it seems natural to me to run it from a schema, even before the database exists. Of course, this is just my own opinion.

IMO it's migration -> database(jet gen) -> application, where migration is responsible for the creation and management of the database. I know there are libraries(like GORM), which try to reverse this process, but jet is not built on those principles.
Honestly, even if someone comes up with a valid scenario for jet to parse DDL, the probability of including such a feature in jet is very low.

You can achieve the same thing using a script that drops the whole schema, runs the migration script, and then runs a jet generator.

Yes, for sure, for physical DBs this is possible.

For an in-memory SQLite database, you can call jet generator from the code. Just pass it a in-memory db connection.

True, but since the generator has to run before compilation this basically amounts to rewrite (fork) a tool like cmd/jet but with this feature built-in.

IMO it's migration -> database(jet gen) -> application, where migration is responsible for the creation and management of the database. I know there are libraries(like GORM), which try to reverse this process, but jet is not built on those principles.
Honestly, even if someone comes up with a valid scenario for jet to parse DDL, the probability of including such a feature in jet is very low.

I don't have strong opinion on these matters, so I will not try to argue further.
Sounds like a reject at this point. Feel free to close this.

True, but since the generator has to run before compilation this basically amounts to rewrite (fork) a tool like cmd/jet but with this feature built-in.

The ability to call a jet generator from the code was initially added because it was hard to anticipate every possible use case. In-memory db could be one of those use cases.


verifySequenceById is not a function

Describe the issue
Calling client.verifySequenceById() throws an error verifySequenceById is not a function
What you are trying to do
Trying to call client.verifySequenceById() method as it described in Typescript types - https://github.com/mock-server/mockserver-client-node/blob/7c5cd4a42a180efdd48326951dc80ea9172e5e00/mockServerClient.d.ts#L49
MockServer version
5.13.2
To Reproduce
Steps to reproduce the issue:
I do not think it needs to reproduce, because it is obvious where is the error in the code.
Here function verifySequenceById is not exported, as for example verifySequence is exported - https://github.com/mock-server/mockserver-client-node/blob/8d9326924a9e754b71e6608b0cb53887e7760ad1/mockServerClient.js#L826
Expected behaviour
verifySequenceById to be callable because it exists and described in types
MockServer Log
Not relevant

Pull request - https://github.com/mock-server/mockserver-client-node/pull/127

After exporting verifySequenceById (pull request above) I have other error:
incorrect verification sequence json format for:

      {\"expectationIds\":{}}

     schema validation errors:

      1 error:
       - $.expectationIds: object found, array expected

      OpenAPI Specification: https://app.swaggerhub.com/apis/jamesdbloom/mock-server-openapi/5.13.x
      Documentation: https://mock-server.com/mock_server/creating_expectations.html

I think the problem is here, because arguments is not really an array, and when stringified to JSON on sending, converted to object - https://github.com/mock-server/mockserver-client-node/blob/7c5cd4a42a180efdd48326951dc80ea9172e5e00/mockServerClient.js#L631
I have added one more commit to pull request to fix this - https://github.com/mock-server/mockserver-client-node/pull/127/commits/8a2903e2f885173c6dfcf7a1cd221ca166410bb5

Pull request is merged so should be fixed already


Reduce the dependency of TiDB on API V2

Feature Request
Is your feature request related to a problem? Please describe:

As described in https://docs.pingcap.com/tidb/stable/tikv-configuration-file#api-version-new-in-v610, I found if I want to use RawKV API V2, I must deploy a TiDB instance. If we can reduce this dependency in the future?
Describe the feature you'd like:

Maybe we can migrate this function into PD server
Describe alternatives you've considered:

Teachability, Documentation, Adoption, Migration Strategy:

There is a prototype here https://github.com/tikv/migration/tree/main/gc-worker.
It works, but has not been fully tested, and may not be stable and robust enough for production environment.
That will be great if you would like to contribute to help improve this project ~


Parse into Node objects

Instead of just iterating over the raw dictionary, we now transform the AST into a traversable Python object which can be modified and saved back.
Resolves: #1

Changes Unknown when pulling 69090c6e0878b3ed6cb1b7fc98340852389cac90 on abb-objectify into ** on master**.

Changes Unknown when pulling 3a59dc219bfca7b141968f5cb3269fe246801d16 on abb-objectify into ** on master**.


[ETL-386] Rename pilot data bucket and link to Synapse

Thanks @philerooski , can we add a short description in the PR and look into why the CI/CD is failling?  Thanks!

I'm thinking this and ETL-396 will have to be combined into one ticket in order for CI/CD to go through otherwise, can merge this first and then follow up with ETL-396 which should resolve the CI/CD.


Popup Menu in Android

Description 📜
i added a Popup Menu.md file in Android & try to explain the concept as easy i can.
Fixes #6974

Type of change 📝

[ ] Au#dio (Should be in mp3 format Includes speech clarity, Concise ,Low distortion)
[ ] Vi#deo (Animations, screen-recordings, presentations and regular explanatory films are all possibilties etc)
[x] Documentation (Content Creation in the form of codes or tutorials)
[ ] Other (If you choose other, Please mention changes below)

Domain of Contribution 📊

[ ] Android Dev #(Flutter)
[x] Android Dev (Java)
[ ] Android Dev #(Kotlin)
[ ] Backend Dev #(Java)
[ ] Backend Dev #(.NET)
[ ] Backend Dev #(PHP)
[ ] Backend Dev #(Python)
[ ] C/#CPP
[ ] Competitive #Programming
[ ] Cyber #Security
[ ] DS#A
[ ] Data#base
[ ] Datascience with #Python
[ ] Datascience with #R
[ ] Frontend Dev #HTML/CSS/JS
[ ] Frontend Dev #React/Angular/Vue
[ ] Go#lang
[ ] Interview #Prep
[ ] Java_#Domain
[ ] JavaScript_#Domain
[ ] ME#RN
[ ] Machine #Learning
[ ] Open #Source
[ ] Python_#Domain
[ ] Ru#st
[ ] Statis#tics
[ ] UI/#UX

Checklist ✅

[x] I follow Contributing Guidelines & Code of conduct of this project.
[x] I have performed a self-review of my own code or work.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I'm GWOC'21 contributor

@VikasPandey121 @sitamadex@rohit-2602 plzz review the PR

@VikasPandey121 @sitamadex@rohit-2602 plzz review the PR

@VikasPandey121 @sitamadex@rohit-2602 plzz review the PR

Check I have sent you a pull request.

@sitamadex11 ??? WHAT

@paramsiddharth  sir plzz revier & merge it plzzz


[ENH] Adding GPU / multi-GPU functionality to CNNClassifier

Is your feature request related to a problem? Please describe.
As discussed in dev-days  meeting on 15-07-2022 and #2935 , #2991 adding ability to run the neural models on GPU is extremely useful. We need to add functionality to support GPU and multi-GPU:
For GPU functionality:

A user would need tensorflow-gpu and cuda-toolkit installed. We will have to add them as a soft dependency? I am unsure if these are required since pytorch (which I am comfortable with) does not really require them
We can also have the functionality of multi-gpu: https://keras.io/guides/distributed_training/ . In my estimate majority of the people using sktime would be on kaggle / collab in which case there is a single gpu used. And time series data should not be so heavy that multi-gpu are required, but there might be few using it on larger data / maybe college gpu cluster where they might have easy access to gpus and would prefer running the models with multiple gpus? It might be worth having in those cases

hi, I think I missed something, it seems to run fine on our GPU at the moment. I ran through 30 resamples of CNNClassifier on our GPU, and we ran everything for sktime-dl on a GPU.

Hey,
from what I understand (could be wrong) is that currently based on whether our device is on cpu/gpu TensorFlow/keras automatically detects and runs it on the device (dependant on necessary dependencies being installed). In the current issue/PR I was proposing to have an additional parameter to give the user choice to specify the device they want the model to run on.
Also would like to ask if the current implementation works with multiple GPUs/CPUs? I have not worked much with tensorflow GPU so I am unsure based on implementation alone.

I have a simple example of running a tensorflow on multiple GPUs.
Note the use of strategy. You need to define a strategy and define a scope that strategy wraps. Also set CUDA_VISIBLE_DEVICES
os.environ["CUDA_VISIBLE_DEVICES"]="0,1"
If you are on Linux, type in watch nvidia-smi in the CLI  should show both GPUs working

import tensorflow as tf
from tensorflow import keras
import os
os.environ["CUDA_VISIBLE_DEVICES"]="0,1"

def get_compiled_model():
    # Make a simple 2-layer densely-connected neural network.
    inputs = keras.Input(shape=(784,))
    x = keras.layers.Dense(256, activation="relu")(inputs)
    x = keras.layers.Dense(256, activation="relu")(x)
    outputs = keras.layers.Dense(10)(x)
    model = keras.Model(inputs, outputs)
    model.compile(
        optimizer=keras.optimizers.Adam(),
        loss=keras.losses.SparseCategoricalCrossentropy(from_logits=True),
        metrics=[keras.metrics.SparseCategoricalAccuracy()],
    )
    return model

def get_dataset():
    batch_size = 32
    num_val_samples = 10000

    # Return the MNIST dataset in the form of a [`tf.data.Dataset`](https://www.tensorflow.org/api_docs/python/tf/data/Dataset).
    (x_train, y_train), (x_test, y_test) = keras.datasets.mnist.load_data()

    # Preprocess the data (these are Numpy arrays)
    x_train = x_train.reshape(-1, 784).astype("float32") / 255
    x_test = x_test.reshape(-1, 784).astype("float32") / 255
    y_train = y_train.astype("float32")
    y_test = y_test.astype("float32")

    # Reserve num_val_samples samples for validation
    x_val = x_train[-num_val_samples:]
    y_val = y_train[-num_val_samples:]
    x_train = x_train[:-num_val_samples]
    y_train = y_train[:-num_val_samples]
    return (
        tf.data.Dataset.from_tensor_slices((x_train, y_train)).batch(batch_size),
        tf.data.Dataset.from_tensor_slices((x_val, y_val)).batch(batch_size),
        tf.data.Dataset.from_tensor_slices((x_test, y_test)).batch(batch_size),
    )

# Create a MirroredStrategy.
strategy = tf.distribute.MirroredStrategy()
print("Number of devices: {}".format(strategy.num_replicas_in_sync))

# Open a strategy scope.
with strategy.scope():
    # Everything that creates variables should be under the strategy scope.
    # In general this is only model construction & `compile()`.
    model = get_compiled_model()

# Train the model on all available devices.
train_dataset, val_dataset, test_dataset = get_dataset()
model.fit(train_dataset, epochs=10, validation_data=val_dataset)

# Test the model on all available devices.
model.evaluate(test_dataset)


Is there any way to make this work with postcss-mixins?

I have a mixin made with postcss-mixins and I want to use a css variable as argument, but it isn't working.
:root {
    --padd: 2rem;
}

@define-mixin position $place, $val {
    @if $place == end { right: $(val); }
    @if $place == start { left: $(val); }
}

And then I call it:
.foo1 {
   @mixin position end, 2rem; /* it works -> right: 2rem; */
}

.foo2 {
   @mixin position end, var(--padd); /* doesn't work -> right: var(--padd); - it should output 2rem  */
}

Is is possible for you to make this works with postcss-at-rules-variables?

@sandrina-p Hi, of course, you need use options atRules
require('postcss-at-rules-variables')({ atRules: ['mixin'] })

Thanks, it worked!


Doc - Remove standalone-cluster docs and add doc for unmanaged-cluster

Description

Removed current standalone cluster doc in 46 files
Add a deprecation notice
Add unmanaged-cluster doc

Location

Additional Context
related to #2266

Fixed by https://github.com/vmware-tanzu/community-edition/pull/2862