[TW#26962] esp_http_client crashes with is_async for non-ssl url

Environment

Development Kit:      []
Core (if using chip or module): [ESP32-Wrover]
IDF version (git rev-parse --short HEAD to get the commit id.): 7313e39fd
Development Env:		[Make]
Operating System:		[openSuse]
Power Supply:         [USB|Battery]

Problem Description
I want to access a http://server/path url with esp_http_client in asynchronous mode but the core crashes.
Expected Behavior
Server is connected the same way as when is_async = false.
Actual Behavior
Guru Meditation Error: Core  0 panic'ed (InstrFetchProhibited). Exception was unhandled.

In case of is_async = true, function esp_http_client_connect() calls esp_transport_connect_async(), but the member _connect_async is not set for transport_tcp. NULL pointer is dereferenced and core panics.
Steps to reproduce
Compile the example below and execute. The example is an excerpt from https://github.com/espressif/esp-idf/blob/129d32772e5e5eafe88be5b9eb34687e84a6f8b8/examples/protocols/esp_http_client/main/esp_http_client_example.c
Code to reproduce this issue
esp_http_client_config_t config = {
  .url = "http://server/path",
  .event_handler = _http_event_handler,
  .is_async = true,
  .timeout_ms = 5000,
};
esp_http_client_handle_t client = esp_http_client_init(&config);
err = esp_http_client_perform(client);

@devsaurus Thanks for bringing this to our notice. As of now, only asynchronous HTTPS connections are supported. Though it shouldn't have crashed for http URL, which will be resolved soon. And support for async HTTP wasn't added because it involved some changes in existing APIs, but it will be added soon.

Thanks a lot for looking into this.


:memo:  doc(README) : add missing eol noarg command :nerd_face:

:grey_question: About
Adding eol command
Just added the eol command with no option to list products (I use it all the time)


pull to refresh support?

Hi, just want to know whether this library supports pull to refresh ?

@calvinsug: You can use this library in conjunction with other pull-to-refresh libraries since the NVActivityIndicatorView is just a subclass of UIView, you can use it anywhere.

Close this, reopen if need be.


Minor fixes to sync CONTRIBUTING with PR template

References

Minor followup to #8568
Fixes #8294

Description
While porting this previous PR to dspace-angular in https://github.com/DSpace/dspace-angular/pull/1991, I noticed a few minor typos & better aligned the text between the DSpace and dspace-angular projects.

Merging immediately as these are minor changes to docs / READMEs.


Allow w-on* to be used subscribing to custom events on other widgets.

Example:
<div w-bind="./widget">
    <app-overlay title="My Overlay"
        w-onBeforeShow="handleOverlayBeforeShow">
    </app-overlay>
</div>

And then in the containing widget:
function Widget() {

}

Widget.prototype = {
    handleOverlayBeforeShow: function(...) {
        // "this" will be the containing widget:
        this.doSomething();
    }
}

exports.Widget = Widget;

Open questions:

What should be the args to the event handler method?:

function(event, sourceWidget) (only allows source widget to emit an event with a single arg)
function(sourceWidget, eventArg1, eventArg2, ...)
function(event) with event.source being the the source widget (automatically added)

How should the custom event name be derived from the attribute?

w-onBeforeShow → beforeShow
w-onbeforeShow → beforeShow
w-on-beforeShow → before-show
w-on-before-show → beforeShow

In regard to determining the custom event name, I'm leaning towards the following:
Always convert the first character after "w-on" to lower case:
w-onBeforeShow → beforeShow
In addition, if the attribute name begins with "w-on-" use whatever is after "w-on-" with no transformation to allow the following:
w-on-before-show → before-show
Thoughts?


Update chapter 9

Based on the conversation in #68. Modified wget and unzip shell commands to use python equivalent.
Modified Plotly plots following the suggested workaround using iPython display.

@raplima Your chapter is live on helioml.org! Thank you so much for your contribution and for persisting with all the plotly/jupyter-book issues. We really appreciate it ☀

@mbobra thank you so much! I'm glad it worked.


Replace jsx with js to correctly highlight code

fix a missing replacement in commit https://github.com/reactjs/react-router/commit/759b4b1543de9e912c3188519fb20ad656b5feae

Thanks.


Packages should be downloaded to e.g.~/.cache on Linux instead /usr/bin

Looks that when I open project in Godot Editor via /usr/bin/godot, then when I trying to download installer I always got error message
ERROR: [14:16:48.587] [error] Failed to download cdda-linux-tiles-x64-2021-09-11-0808.tar.gz.
   at: call (modules/gdscript/gdscript_functions.cpp:774)

This is probably caused by permissions problem.
I think that files downloaded files should go to .cache or similar folder

Ha, it didn't occur to me that this would happen, since I never installed Godot through a package manager. It is best to download it directly from its website (it is one self-contained executable), since you often want to stick with a specific version for a given project and don't want it to change on you uncontrollably.
Catapult by design creates all its files next to the executable, for portability. When you run a project from Godot Editor, the editor itself is the executable, so when Catapult checks what directory it's in, it gets /usr/bin in your case. I don't know whether to view this as a legitimate issue that needs fixing, since it is not a problem with the end product.
That said, maybe it would make sense to check if the directory is writable on startup and fall back to ~/local/share or %LocalAppData%.


[core-util] Add support for hex strings to uint8ArrayToString

Packages impacted by this PR

@azure/core-util

Describe the problem that is addressed by this PR
Key Vault needs a util to convert byte arrays to a hex string for an upcoming convenience property. This adds that support to the existing core-util uint8ArrayToString helper.
In this PR I also simplified the logic for uint8ArrayToString in node, and also removed the now-redundant Base64 and hex helpers that aren't exported but are used elsewhere in core-util.
This PR also fixes a bug with the browser Base64 uint8ArrayToString implementation where the conversion would throw upon encountering bytes which are not valid ISO-8859-1 (Latin1) code points.

API change check
APIView has identified API level changes in this PR and created following API reviews.
azure-core-util


Add support for matrix parameters

From<EMAIL_ADDRESS>on November 12, 2013 15:51:03
given().matrixParam("x", "y").when(). ..
Original issue: http://code.google.com/p/rest-assured/issues/detail?id=263

Hello , is there any progress on this issue ? I really want to use this feature in my project , I would create a pull request but my groovy knowledge is limited . As far as I understand you can't send matrixParams directly in the url because the url will be filtered by
pathWithoutQueryParams = split(tempParams, "/").inject("", pathParamFiller.curry("/", encodePath))  , since encodePath is always set to true .
If you don't have time to solve the issue in the near future , could you suggest a workaround ? Thank you.

Do you mean that ";" is always encoded?

Yes ";" and "=". The parameter encodePath seems to always be set as true.

Right I understand. And this is so even if you specify given().urlEncodingEnabled(false).when(). get("http://localhost:8080/car/bmw;color=red")?

That actually works perfectly thank you .
Still would be nice to have matrixParam() support , but hey , it does the work.

I definitely agree with that. I just need to find the time to implement it (or accept at pull request *hint* :))

Any progress on this issue

Hello from 2022. Please add this.


Edited the user guide

bruh I think you should change the header of your portfolio page. It still has my name and the project name is still Address Book Level 4


Add vulnerability scanner to travis

Automate the process of checking for the security vulnerabilities  by adding https://github.com/aquasecurity/trivy to travis.

Trivy check has been added to linux-utils repository. As we are now slowly migrating from travis to github actions, may need to find a vulnerability scanner to be used with github actions.
CodeScanning from github is one option.

Can I take this? @akhilerm

Additionally, when should the workflow be triggered?
e.g. should it be triggered by a cronjob periodically (if so, how often?), or when someone pushes a new commit instead?

Sure @panos. I have assigned the issue to you.

when should the workflow be triggered?

The workflow should be triggered for the following cases:

On every pull request to the repo.
Every commit to the default/master branch on the repo.

I'm presuming that this workflow is fine? @akhilerm

Excuse me, but what is the code analyzer specifically meant to analyze, considering that there's basically no source code or basically anything that can be directly compiled in this repository?

In the linux-utils repo we are using trivy to scan for any vulnerabilities in the image that is built. So we need to get that behaviour in github actions.

Well, I guess there's Kubetrivy...?
I'd (or someone else, in case this seems to go beyond my current skillset) have to come up with an entirely new GitHub Action for that. I'll see.

cc: @kmova , what is the current scope of this issue? Should we stick with just trivy or search for alternatives?

@akhilerm I can easily accomplish this. Can you please assign it to me ?

@prakhargurunani I'm good, thanks.

For repos like linux-utils, which do not have any code, only the container image scanning is required. For other repos like maya, node-disk-manager  . .etc, both image scanning and code scanning for vulnerabilities is needed.
@panos Will you be able to work on this?

Will seek to it, just wasn't sure of what to do because I thought that the scope was limited within this repository itself.
Well, that makes much more sense now.

Hi, I'm just giving notice that I know how to go around with this and am currently working on this, but I am currently a bit busier than usual. I'm trying my best.

May still contribute some workflows if any of them are still missing by the time my schedule is clear, but I'm freeing this assignment in order to not prevent others from working on it.

@prakhargurunani, Do you want to take up this issue?

Yes...I would like to take up this issue.

@prakhargurunani I have assigned the issue to you.

@akhilerm My PR is ready...But I have removed codespell from it. Codespell was not initialising in Docker and was giving errors. I googled a lot, but none of the solutions worked. But we can use codespell through GitHub Actions. What do you think ?

Thanks @prakhargurunani .
Sure, we can use it via github actions. 2 checks might not be required. Lets focus on gh actions for now.
Also, can you tag me once you have raised the PR.

Trivy scanner has been added to openebs/linux-utils repo via https://github.com/openebs/linux-utils/pull/8


Consider removing the "shape" moniker from abstraction APIs

The use of the term "shape" in the core abstractions is inherited from the F# TypeShape library. It was intended as a synonym to terms like "schema" or "spec", but in practice I suspect it's introducing more ambiguity than it should. We could either

Replace "shape" with a better moniker, i.e. ITypeSchema or ITypeSpec.
Remove the moniker altogether. This would better emphasize that the abstractions are just a strongly typed flavour of reflection as opposed to something different. The abstractions would then be named IType, IEnumerableType, ITypeVisitor, and IShapeable<T> would be renamed to something like IReflectable<T>.

cc @AArnott @eerhardt

I think IType suggests a broader scope than you're targeting. You're focused on data (properties, fields, certain constructors) but not methods in general.  "Shape" to me alludes to the data of the type rather than its behavior, which worked well IMO.
I'm hesitant to embrace "schema" because this library doesn't directly represent how objects are serialized, and schema in my mind dictates the structure of how something is serialized. But it's close, so I'd be ok with it, except that Nerdbank.MessagePack already has its own concept of schema, which documents exactly the serialized shape/structure/schema for a given type graph. Having "schema" used both in polytype and my library may confuse the user.
So just brainstorming here... IDataTypeSpec maybe? Or maybe ITypeData?

I think IType suggests a broader scope than you're targeting. You're focused on data (properties, fields, certain constructors) but not methods in general.

Agreed, although nothing prevents the abstractions from being extended to include method invocation like with constructors (apart from lacking a strong motivating use case). The underlying concept is strongly typed reflection fundamentally.

I agree to remove "shape" terminology, it does create confusion. I agree that IType is too broad.  For some reason I do like "Spec" in the name.
ITypeSpec or IDataTypeSpec both seem decent.
Just a thought - but the library is called PolyType now right? Should we be using that term in the core abstractions? IPolyTypeSpec?

So just brainstorming here... IDataTypeSpec maybe? Or maybe ITypeData?

ITypeSpec or IDataTypeSpec both seem decent.

Does IDataType sound right? It should better emphasize that the library primarily caters to POCO/record types as opposed to classes with behavior.

Just a thought - but the library is called PolyType now right? Should we be using that term in the core abstractions? IPolyTypeSpec?

I think of "PolyType" more as the brand/repo/NuGet package name. Seems appropriate enough for namespaces but perhaps not as necessary for its types?

Just my 2 pence as an interested bystander:
I liked Shape. Once I knew what it was, it made perfect sense as an abstraction that describes a type. Also, reflection is a "dirty" word in my circles, and one of the most exciting things about this library for me is the source generated metadata that can (mostly) avoid reflection. Schema is too overloaded a term, and I would find it confusing keeping one schema straight from another, especially when I need to do a little lower level work with serialization. Of the current suggestions, I think "Spec" is a good direction.
Here's a few curveballs that might inspire an idea: ITypePlan, IDataBlueprint.

Consider #80 when thinking of the name


Unlock trophys huh?

MMMHMHMMM WONDER WHERE YOU GOT THAT FROM >_<
nah... its ok. . . i guess

Yup the idea is from TropHAX, but I did read the documentation of leaked official SDK, took the SceNpTrophy module definitions from it and rewrote the whole trophy unlocking codes.
Thank you for your great work for TropHAX.
It is so sorry that I forgot to mention that, will add a 'Thanks to' part in README asap.


add naming length thresholds for variables (min/max) and functions (min)

Does a part of #302 and gives all the reported issues a more helpful case-by-case description.
This adds configurations for naming lengths:

minimumVariableNameLength
maximumVariableNameLength
minimumFunctionNameLength

The defaults were copied from PMD, which also excludes minimumVariableNameLength from for loop declarations. Do you think this also makes sense in our case?
Do you think it makes sense being able to disable these three rules independently from the entire NamingConventionViolation rule?

Variables as i, j, k are often used in loops and are considered as ok. Personally I use for((index, element) in elements.withIndex()), so I do not know if we should introduce a case for loops. There is no fori in kotlin ...

Closing this and will re-implement this in a multirule with min/max for both variables and functions that we can then easier turn on/off.


VSTS Extension/Task Deployment?

@beverts312  & @marjorienorm  thoughts on potentially including a deployment option for this functionality that wraps it in a task and/or extension for VSTS?
Seems inherently logical to pull the functionality into the same system it is scanning, and the ability to run it in a build/release would allow the leveraging of VSTS itself for scheduling of scans, storage, notifications, etc.

Still want to create a Docker image, and maybe add plumbing to use AWS Lambda, Azure/GCP Functions, etc. but I can't see any reason to not support this as a "native" feature in VSTS

Relevant documentation:
https://www.visualstudio.com/en-us/docs/integrate/extensions/develop/data-storage
https://www.visualstudio.com/en-us/docs/integrate/extensions/get-started/tutorials
https://www.visualstudio.com/en-us/docs/integrate/extensions/overview#extensions
https://www.visualstudio.com/en-us/docs/integrate/extensions/develop/add-hub

I especially love this part:
Visual Studio Team Services extensions have the ability to store user preferences and complex data structures directly on Microsoft-provided infrastructure. This ensures your user's data is secure and backed up just like other account and project data. It also means for simple data storage needs, you (as the extension provider) are not required to setup or manage (or pay for) third-party data storage services.
Will look into whether they have a typedef wrapping, but nice client SDKs here: https://www.visualstudio.com/en-us/docs/integrate/extensions/reference/client/api/vss/sdk/services/extensiondata/extensiondataservice

https://github.com/Microsoft/vss-web-extension-sdk
https://www.npmjs.com/package/vss-web-extension-sdk

Closing this as the discussions have already taken place offline (see Slack channels)


Connection Refuse when using loop or loopForever() function.

I had install mosquito successfully on my server. and change the php.ini as well as.
also check extension is loaded or not.
but when i had try to run script from putty. i got error. which code i had use loop and loopForever function.
i try to find solution but didn't get anything.
System : PHP 7 Ubuntu 0.16.
below are my code. please have a look.
<?php

$client = new Mosquitto\Client();
$client->onConnect('connect');
$client->onDisconnect('disconnect');
$client->onSubscribe('subscribe');
$client->onMessage('message');
$client->connect('My public ip', 1883, 60);
$client->subscribe('/#', 1);

while (true) {
    $client->loop();
    sleep(2);
}

$client->disconnect();
unset($client);

function connect($r) {
    echo "I got code {$r}\n";
}

function subscribe() {
    echo "Subscribed to a topic\n";
}

function message($message) {
    printf("\nGot a message on topic %s with payload:%s", $message->topic, $message->payload);
}

function disconnect() {
    echo "Disconnected cleanly\n";
}

Output :
ubuntu@ip-XXX-Xx-XX-XXX:/var/www/html$ php pub.php
I got code 5
Disconnected cleanly
PHP Fatal error:  Uncaught Mosquitto\Exception: The connection was refused. in /var/www/html/pub.php:13
Stack trace:
#0 /var/www/html/pub.php(13): Mosquitto\Client->loop()
#1 {main}
thrown in /var/www/html/pub.php on line 13

You did not set the CLIENT ID with class constructor. Based on the brokers configuration, it could be possible to accept only specific client prefixes. If the client doesn't sent one or is not sending the expected prefix, the connection will fail as described.


More layer matching control with priority and exclusive

Tangram ES sister issue to https://github.com/tangrams/tangram/pull/705.
What @bcamper said over there:
This PR introduces two new keywords -- priority and exclusive -- for scene layers, to enable greater control over feature filter matching and styling composition.
Background
Tangram layer matching has always been inclusive, meaning a feature can match multiple layers (at multiple levels of the layer style tree), which are then merged to determine the final rendering parameters. Composing complex sub-layer trees can be used to capture both feature and zoom-dependent styling along orthogonal dimensions, for example varying road line widths and colors by separate criteria.
However, two in many ways simpler behaviors have not been easily expressed with the current layer syntax:

The priority with which layers are matched has always been implicit. While layer depth takes priority (with an inheritance model), when layers at the same level match (siblings), the tie-breaker has been alphabetical, with the last lexically sorted layer name winning. This is cryptic at best and a significant hindrance to easy authoring where layer priority is important (see Bubble Wrap shield matching).
Since multiple sibling layers will match by default, there has been no way to express simple exclusive relationships, for example an ordered list of filter conditions, where the first matching filter should be used, and the others discarded. While it has often been possible to work around this by carefully building filters to be functionally exclusive (for example, defining a filter A, then defining a filter B that negates all of A's conditions, in addition to including its own), this is also an unwieldy approach, and does not serve all cases (such as when the filters have natural overlaps that can't easily be separated in a way that avoids a feature from matching more than once).

New Syntax
The priority and exclusive keywords address these cases, and can be used both separately and together.

priority: allows for the explicit definition of the matching order for sibling layers (alphabetical by layer name is still used as the default / fallback).
exclusive: marking a layer as exclusive ensures that when that layer matches, no other sibling layers (and their cascading sub-layers, etc.) will; when multiple exclusive layers match, the higher priority layer wins.

For example, exclusive could express a single if-else filter condition:
layers:
  if:
    filter: ...
    exclusive: true
  else:
    ...

When used together, priority and exclusive can be used for chained if-elseif-else filter cases, to ensure that only one of an ordered set of conditions matches:
layers:
  layerA:                 # if matches layerA...
    filter: ...
    priority: 1
    exclusive: true
    draw: ...
  layerB:                 # else if matches layerB...
    filter: ...
    priority: 2
    exclusive: true
    draw: ...
  layerC:                 # else default to layerC...
    priority: 3
    exclusive: true
    draw: ...

Separate from "flow control" cases, priority can simply be used on its own to disambiguate the precedence of multiple layers without reliance on naming conventions.
Implementation
The implementation is a fairly narrow impact on the layer matching logic:

When determining layer matching and merging order:

Layers with an explicit priority value are matched first, with values sorted from lowest to highest (e.g. priority: 1 is matched before priority: 2).
Layers without an explicit priority are matched after, and continue to be sorted lexically.

Matching operation:

If a layer marked exclusive matches, all further matching at that level in the layer tree ceases and the matching layer is used (matching continues for that exclusive layer's child/descendant layers).
In the case that multiple layers are marked exclusive, the first one (according to the order described above) is used.

@nvkelso Looks like you wanted to open this in ES. Will dup there.

I am not in the members for tangram :(. So if someone who is, could move this to ES.

Moved to https://github.com/tangrams/tangram-es/issues/2036. Woops!


Feedback schema changes

What? and Why?

What does this pull request change/fix? Why was it necessary?
Changes needed to work with feedback schema

Checklist

CHANGELOG.md updated? (if required)

Codecov Report

Merging #66 into master will decrease coverage by 0.1%.
The diff coverage is 91.66%.

@@            Coverage Diff             @@
##           master      #66      +/-   ##
==========================================
- Coverage   96.59%   96.48%   -0.11%
==========================================
  Files           2        2
  Lines         264      256       -8
==========================================
- Hits          255      247       -8
  Misses          9        9

Impacted Files
Coverage Δ

tests/test_service.py
100% <ø> (ø)
:arrow_up:

server.py
91.81% <91.66%> (+0.3%)
: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 e26ed0e...058cfa4. Read the comment docs.

 (3) Plug in feedback survey json schema to sdx-validate


GitOps with CodeCommit in FluxConfig with git configuration fails in validation stage

What happened:
I wanted to use CodeCommit repository as GitRepository source for Flux and followed instructions mentioned here. RepoURL is not accepted in any form. I have tested the same RepoURL format directly from admin machine and it is accessible. Same configuration works fine for GitHub RepoURL.
Cluster creation throws below error
2022-12-05T17:01:26.568Z        V6      Executing command       {"cmd": "/usr/bin/docker run -d --name eksa_1670259686399887634 --network host -w /home/ssm-user/gw2 -v /var/run/docker.sock:/var/run/docker.sock -v /root/.ssh:/root/.ssh -v /root/.ssh:/root/.ssh -v /home/ssm-user/gw2:/home/ssm-user/gw2 -v /home/ssm-user/gw2:/home/ssm-user/gw2 --entrypoint sleep public.ecr.aws/eks-anywhere/cli-tools:v0.12.2-eks-a-21 infinity"}
2022-12-05T17:01:26.840Z        V3      Validating git setup    {"repoUrl"<EMAIL_ADDRESS>Error: connecting with remote origin for repository: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

Observed username hardcoded to git at this line of gitfactory.go
What you expected to happen:
Git configuration of FluxConfig should accept RepoURL format of CodeCommit. CodeCommit repository URL format for SSH access is ssh://<SSH Key<EMAIL_ADDRESS>NAME>. For example<EMAIL_ADDRESS>Note that CodeCommit SSH access is through SSH Key ID which acts like username. For GitHub git is a standard user.
How to reproduce it (as minimally and precisely as possible):
Create a FluxConfig as shown below and try upgrading cluster
 gitOpsRef:
    kind: FluxConfig
    name: gw2-cluster-gitops

---
apiVersion: anywhere.eks.amazonaws.com/v1alpha1
kind: FluxConfig
metadata:
  name: gw2-cluster-gitops
spec:
    git:
      repositoryUrl<EMAIL_ADDRESS>      sshKeyAlgorithm: rsa

Anything else we need to know?:
Environment: Ubuntu - vSphere

EKS Anywhere Release: 0.12.2

Thanks for the report, we'll take a look at this ASAP

Is this issue solved?


Update logo

The logo should be updated in the top left (as well as favicon, etc)

Fixed as of https://github.com/dfst/deepforge/commit/71f575c8572d07fcceaf2b09260be2170b39a4d6


Refactor the product list (database + dart)

The target is to be able to deal with the following use-cases:

favorite products (barcode)
shopping lists (barcode + int quantity)
food pantry (barcode + int quantity + date)

So far, no reordering of the products inside a list is needed.

In a first approach I won't use the SQLite database to store those lists, I'll use SharedPreferences (more flexible in a test phase, anyway no big data). I'll switch later to database if needed.
The point here is to test and see concretely what it would look like if we added shopping lists and food pantry to the app.

Draft of the pantry input (suggestion):

UX is looking great, only the fontsize + fontweight is looking to big/heavy

New version:

Much better 👍

Very nice! The multiple dates and the  - / + buttons are perfect.
It would be great to also allow to add products without specifying a date.

Thank you @stephanegigandet!
"no date" for the pantry is a good option, I'll think about it.
Another special case of pantry is the shopping list, where there's never a date, just counts.
And a special case of the shopping list is the mere product list, without counts.
Beyond that I believe that we need to be able to re-order the items.

And I believe we'll be able to handle product lists, shopping lists and pantries in the same app, without too much confusion for the end-user. We'll see.

And I believe we'll be able to handle product lists, shopping lists and pantries in the same app, without too much confusion for the end-user. We'll see.

I'm sure we will find a way. :)

Just an idea: would that make sense to compute the score of a shopping list?
The display is not excellent for shopping lists:

too much space is taken by the nutriscores - their display could be an option, as could be the personalized ranking (not available for shopping lists so far)
we cannot reorder the items - that can be done
there's no FloatingActionButton - would that be "share" (barcodes@off) or "share as text" (to send to anyone who goes on errands for you)

OK guys, now we can play with product lists, pantries and shopping lists in the app.
In a first approach, I implemented pantries and shopping lists with SharedPreferences, but that was not the ultimate goal (which is SQLite). For the moment only the product lists are fully implemented with SQLite.
Would you find relevant:

to implement pantries and shopping lists fully with SQLite, for consistency and performance reasons?
to add the possibility to reorder the lists?
or do you think that finally we don't need pantries or shopping lists?
or do you think there are other important features to add to those lists, and that it's better to implement those features first?

What exactly are the differences between the lists and pantries ?

product lists: barcodes
shopping lists: barcodes * quantities
pantries: barcodes * dates * quantities

I don't know if that's too much effort but how about writing them all into one database. So that when you create a list you then decide for what it should be used.

I've just added a drag handle in order to reorder products in pantries:

Currently on my way to integrate pantries and shopping lists in database and not in shared preferences anymore...

Finished in #422.


copyToClipboard Fallback

Hi there,
I'm trying to display a url to then visit in a browser but I can't seem to get any text that's selectable to copy and paste.
There is the copyToClipboard method which would be ideal if it worked in other terminals, I thought it may be possible to add a fallback of showing a string in a message that is selectable using the mouse but can't find any info on how to go about doing this.

copyToClipboard uses a proprietary escape code only available on iTerm2. If it's not available, the method returns false. So a simple fallback would be:
if (!screen.copyToClipboard(text)) {
  cp.execSync('xsel -i -p', { input: text });
}

You could add a try/catch fallback for other clipboard programs too.
copyToClipboard isn't that useful right now. I added it in because I thought it was a cool feature of iTerm2 despite iTerm2's shortcomings.


B0 speed and accuracy is lower than GoogleNet (Inception V-1)?

I have tried different combination of pre-trained EfficientNet B0~B5 and compared it to pre-trained GoogleNet model. I expected the efficientNet b0 will outperform googlenet due to lesser parameters and higher accuracy. Here's the result of panda classification using the provided sample code :
python googlenet.py

Time = 12ms
-----
giant panda, panda, panda bear, coon bear, Ailuropoda melanoleuca           (94.11%)
Arctic fox, white fox, Alopex lagopus                                       (0.20%)
soccer ball                                                                 (0.19%)
hog, pig, grunter, squealer, Sus scrofa                                     (0.16%)
French bulldog                                                              (0.16%)

python efficientnet.py
Loaded pretrained weights for efficientnet-b0
torch.Size([1, 3, 224, 254])

Time = 50ms
-----
giant panda, panda, panda bear, coon bear, Ailuropoda melanoleuca           (88.04%)
ice bear, polar bear, Ursus Maritimus, Thalarctos maritimus                 (0.95%)
lesser panda, red panda, panda, bear cat, cat bear, Ailurus fulgens         (0.16%)
badger                                                                      (0.14%)
soccer ball

Tested on Gtx 1080ti, the googlenet's inference time is faster and the accuracy also higher than B0. I want to confirm whether it is true or Did I do something wrong when doing the classification?

I have tried different combination of pre-trained EfficientNet B0~B5 and compared it to pre-trained GoogleNet model. I expected the efficientNet b0 will outperform googlenet due to lesser parameters and higher accuracy. Here's the result of panda classification using the provided sample code :
python googlenet.py

Time = 12ms
-----
giant panda, panda, panda bear, coon bear, Ailuropoda melanoleuca           (94.11%)
Arctic fox, white fox, Alopex lagopus                                       (0.20%)
soccer ball                                                                 (0.19%)
hog, pig, grunter, squealer, Sus scrofa                                     (0.16%)
French bulldog                                                              (0.16%)

python efficientnet.py
Loaded pretrained weights for efficientnet-b0
torch.Size([1, 3, 224, 254])

Time = 50ms
-----
giant panda, panda, panda bear, coon bear, Ailuropoda melanoleuca           (88.04%)
ice bear, polar bear, Ursus Maritimus, Thalarctos maritimus                 (0.95%)
lesser panda, red panda, panda, bear cat, cat bear, Ailurus fulgens         (0.16%)
badger                                                                      (0.14%)
soccer ball

Tested on Gtx 1080ti, the googlenet's inference time is faster and the accuracy also higher than B0. I want to confirm whether it is true or Did I do something wrong when doing the classification?

Have you found the reason of low speed?


NO-JIRA: Makefile target to verify make bundle doesn't change the current code

This will run in CI to check that there is no need for running make bundle in the changes from a Pull Request.

/approve

/override ci/prow/e2e-gcp-multi-operator
/override ci/prow/e2e-gcp-multi-operator-olm
(unneeded as unrelated to the changes)

/lgtm


Bulk Executor BulkUpdateAsync stopped working with error 'Variable undefined in strict mode'

I'm using bulk executor library (BulkUpdateAsync) for some time and it worked fine. Suddenly today it started throwing an error without any changes in the code. Looks some thing changed on server side system stored procedures.
Here is error:
Operation will NOT be retried. Current attempt 0, Exception: Microsoft.Azure.Documents.BadRequestException: Message: {"Errors":["Encountered exception while executing function. Exception = ReferenceError: Variable undefined in strict mode\r\nStack trace: ReferenceError: Variable undefined in strict mode\n at handleUpdate (AddComponent.js:5008:17)\n at processOneResult (AddComponent.js:4982:29)\n at queryCallback (AddComponent.js:4960:21)\n at Anonymous function (AddComponent.js:608:29)"]}

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: add3636d-1287-4879-1c87-13a90cd8321b
Version Independent ID: f9a7290e-9118-af3c-25f6-4b57a8be99e8
Content: Azure Cosmos DB bulk executor library overview
Content Source: articles/cosmos-db/bulk-executor-overview.md
Service: cosmos-db
GitHub Login: @tknandu
Microsoft Alias: ramkris

@MNaveedKhalid Thanks for the feedback! We are currently investigating and will update you shortly.

Error is reproducible with azure bulk executor sample located at github here https://github.com/Azure/azure-cosmosdb-bulkexecutor-dotnet-getting-started

Referencing GitHub #16

@Alberto-Vega-MSFT Can you please assign this issue to @tknandu, author of this doc and who is working on the fix.

@Alberto-Vega-MSFT Any update on this. I am still facing same error.  Is there any workaround for the time being.

@pramod-sharma and @MNaveedKhalid we don't have any updates on this yet. Because this is a product issue and not something we can solve by updating docs, it will be tracked here: https://github.com/Azure/azure-cosmosdb-bulkexecutor-dotnet-getting-started/issues/17  and we will close this issue.
#please-close

@MNaveedKhalid We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.


Markdown sample from the website crashes the app

I've installed the latest program and tried to add the sample markdown provided, but when I hit start learning the app crashes without any meaningful error messages, no debug in the command line either.

⋊> ~/d/opencards on master ⨯ cat irts-harec-exam/abbreviations.md                                                                                11:16:02
What is a blocking factor?
A blocking factor is a source of variability that is not of primary interest to
the experimenter
What is a factorial design?

factorial design is used to evaluate two or more factors simultaneously.
The treatments are combinations of levels of the factors.
–   more efficient – allow interactions to be detected.
Nice example in V&R:p165

What is the code snippet to do XX?
The code snippet is
fancy code here

General Overview
Since Opencards just treats sections with titles ending with ?  as questions we
can even mix documentation with questions and answers.

Hmm, I've tried under windows and i works correctly. I guess its some issue with java on ubuntu. I'll have a look later this week.


Better export situation, better namespacing for datasets code

Yeah we should definitely match the sklearn namespacing @yawetse

from sklearn.linear_model import LinearRegression

I was thinking among the same lines. But how would that look in TS/JS?
import { linear_model } from 'scikitjs'
const { LinearRegression } = linear_model

Or would there be a more concise way?

Yeah, I'm kinda partial to not matching that part of the sklearn api, so that we can just write.
import { LinearRegression } from 'scikitjs'

without forcing the user to know that LinearRegression lives inside of linear_model


I need help and encountered an error,Help me!

Figure 1 is an error
Figure 2 is my occt folder
Figure 3 shows some third-party packages I downloaded
I don't know how to do it?
Is it necessary to use cmake to build occt7.5 and generate a bin directory below, so that there will be .dll files? Then use oct config D:\opencascade-7.5.0?
Help me!

The paths to the 3rd party packages are read from the build configuration of OCCT, by default the directories are expected to be on the same level as the OCCT directory.
Yes, if you have downloaded the source package from OCCT, the library has to be built first. I recommend you to download the windows installer from OCCT, all 3rd parties and precompiled release dlls are already there.

Still receive an error
At the time of construction

I use the downloaded occt windows installation package

The installer contains pre-built binaries for release configuration only. Try build release and the build should be successful. You have to build the debug version of OCCT yourself.


bump library-go to get ApplyCSIDriver changes

Bumping library-go to get the changes in https://github.com/openshift/library-go/pull/1441/commits/646d6d077a7813be08654ab0d3f9c73430bd6f26
This allows the security.openshift.io/csi-ephemeral-volume-profile label on the CSIDriver to be changed by a cluster admin without being overwritten by the storage operator.
This was originally implemented for https://github.com/openshift/azure-file-csi-driver-operator/pull/42#issuecomment-1372657338 but I also need it in the shared resource driver for an e2e test that tests the admission plugin with different label values.
/cc @openshift/storage @gabemontero

/approve
/lgtm

/label px-approved
no impact

/label docs-approved
no impact

/label qe-approved
e2e's should be sufficient


v0.1.5 - Docstring and online documentation

@JuliaRegistrator register()

@JuliaRegistrator register()

Registration pull request created: JuliaRegistries/General/10586
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if Julia TagBot is installed, or can be done manually through the github interface, or via:
git tag -a v0.1.5 -m "<description of version>" 6dfa64ae2604a89dc540b7d3789d77b371b02bbf
git push origin v0.1.5


HK416 - incorrect stats on handguard.

M27 IAR is shorter that Geissele 14.5" but gives more accuracy with less concealment penalty. Same story with Geissele 10.5" - it has only 1 accuracy with -1 concealment.

I went over all the HK416 handguard stats again and it seems they're all correct already. The next version will fix Vanilla Mod Pack's HK416 though.

Confirmed, will fix for next release.
Just for my personal reference: the vanilla mod pack's HK416 has issues with reload timers and the "flipturn". I'll look at both of these.

to add to the reload timers issue, the Hornet .300 rifle in vanilla mod pack 2 has the same issue

Thanks, I'll take a look at the hornet too.


Ignore unit test failures in build

@berryma4 A number of unit tests in diirt are failing with timezone issues, i.e.
Expected: "VByte[32, MINOR(HIGH_ALARM), 1970/01/15 01:56:07.000]"
got: "VByte[32, MINOR(HIGH_ALARM), 1970/01/15 07:56:07.000]"
This fix allows the build to complete if test fail. This enables us to start running the diirt unit tests as part of our build.

Could we correct the problem instead?  Also, you could always add this parameter to your build server, I'm not sure it should be a default.

I'll look at fixing the failing tests.
The tycho-surefire equivalent of this maven option (testFailureIgnore) flag is set for the cs-studio core and application builds which both contain a number of failing tests.

Kay pointed out that Kunal is about to do work on the timestamps, so it's not a good idea to start changing the tests in case something changes underneath.
We'll look at fixing the tests when the changes are merged into CS-Studio.

See https://github.com/diirt/diirt/issues/67

We are fixing this problem and thus it is no longer needed to ignore these tests


Adjusting default successfulJobsHistoryLimit to 0 for cronjobs

setting defaults for successful cronjobs to 0. removed deprecated cronjob config from monolith

Shouldn't we at least have 1? To see what was the last run?

@andibeuge this PR is stale, so I will close it for now. Please, reopen if you want to continue the work on it


EVEREST-209: k8s cluster monitoring

EVEREST-209
EVEREST-164

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Compress images

JPEGs: 2171 KB -> 844 KB (JPEGMini)
PNGs: 7 MB savings (TinyPNG)

Hey @balcsida, thanks so much for contributing! I'm all for optimization, but it's making these photos look visibly worse. For example, number 10 looks especially bad:

Maybe try lossless optimization?

Image optimization is on the list of todos, but agree this doesn't look like the solution. Definitely needs to be done. Thanks for the reminder!

Hi @lachlanjc, I compared the both image and haven't noticed any visible changes.
Displays I used:

My ASUS K55VD's built in display
A color calibrated Dell U2311H
AMOLED display of my Lumia 930
I'm just curious where to look the differences.
Also, these are JPEG files, so there is no such thing as "lossless optimization" as JPEG is a lossy compression "by nature" and the software I used is kind of "industry standard" (used by ex. Netflix and 9gag).


Update process-signup.php

if that is correct is my first time :)

Hi - I'm afraid I'm not accepting pull requests for this repo, as it's related to the code in the video. If you want to make changes, I suggest you make a copy of this repo first into your own account, then you can make changes there.


Expand @rspfile to rspfile_contents in reported commands

Move EvaluateCommandWithRspfile() to class Edge
Use it in verbose logging of command
Use it in logging of failed command
Tweak documentation

Thanks for the PR!
Why did you move EvaluateCommandWithRspfile into Edge?

Why did you move EvaluateCommandWithRspfile into Edge?

I guess my thinking was something like:

Keeping it in ninja.cc, I would either have had to create a ninja.h, since one doesn't exist, or chosen some other header to put the prototype in.
It's unclear it really belongs in ninja.cc, since that seems to mainly contain code related to main()
Since it's just a wrapper around some other methods of class Edge, it seems to belong there.

Makes sense.
I'm not sure whether we want this by default or if it should only be activated by something like -vv or -v -x.

I'm not sure whether we want this by default or if it should only be activated by something like -vv or -v -x.

I added an -x option (by analogy with ninja -t compdb -x), to enable expansion of @rspfile to rspfile_contents.
There doesn't seem to be any documentation of options, so there is no documentation change.
Note that ninja -x -t compdb  doesn't work as expected (the same as ninja -t compdb -x), because tools currently only have access to struct Options and not to struct BuildConfig.  Not sure if or how to fix that.

Note that ninja -x -t compdb doesn't work as expected (the same as ninja -t compdb -x), because tools currently only have access to struct Options and not to struct BuildConfig. Not sure if or how to fix that.

Oh, that's not good. In #1223 @asankah said that he tested it manually (and I'm assuming that it worked).

Oh, that's not good. In #1223 @asankah said that he tested it manually (and I'm assuming that it worked).

I think what I have written is unclear. ninja -t compdb -x works.
After this PR, it's now possible to write ninja -x -t compdb, but the -x does nothing.

btw: Do you have an idea why there's the need for EvaluateCommandMode and not simply a bool expand_rsp?

Do you have an idea why there's the need for EvaluateCommandMode and not simply a bool expand_rsp?

No idea, sorry.

IIRC we intentionally don't do this. If you need an rsp file, you won't be able to run the command if it's expanded like this. And if you don't need and rsp file, don't use one :-)

Aha, see also discussion in #1223 (already linked to above).

IIRC we intentionally don't do this. If you need an rsp file, you won't be able to run the command if it's expanded like this. And if you don't need and rsp file, don't use one :-)

Title: Expand @rspfile to rspfile_contents in reported commands
Commentary: Expand @rspfile to rspfile_contents with -x
Move EvaluateCommandWithRspfile() to class Edge
Add -x option to control expanding rspfile content in output
Use it in verbose logging of command
Use it in logging of failed command

@jon-turney Could you update this PR based on the latest master branch?


Add ability to ignore devices

Fixed with https://github.com/mumblepins/bluz-gateway/commit/c515d019ac8aca44d33b37eba123398959ebce81


identify the same vehicle in various Zones

During my exploration of the NGSIM dataset, I encountered an issue related to data preparation that I hope you could provide some guidance on. Specifically, I observed that the 'Vehicle_ID' within the dataset is not a unique identifier for individual vehicles, as it tends to repeat across different Zones. This has posed a challenge for me in accurately identifying the same vehicle as it transitions through various Zones.
I would greatly appreciate it if you could share any insights or methodologies you have developed to address this issue and ensure the proper identification of vehicles across different Zones within the NGSIM dataset.
Thanks!

Hello, and thank you for your inquiry. You are correct in noting that within the dataset, 'Vehicle_ID' is not a globally unique identifier for individual vehicles. However, as you've pointed out, this typically does not pose a problem for a variety of projects, such as lane change classification, prediction, and using the NGSIM dataset's agents as surrounding vehicles in planning framework validation. In these contexts, the focus is more on the specific scenario rather than on the global uniqueness of each 'Vehicle_ID'. What is crucial here is that within each 'Frame_ID', the 'Vehicle_ID' remains unique, ensuring that each vehicle can be distinctly identified within a given frame or scenario. This distinction allows for effective analysis and modeling despite the lack of global uniqueness for the 'Vehicle_ID'. I hope it helps.

Hi, many thanks for your reply. Your insights were indeed valuable in understanding the practical applications of the 'Vehicle_ID' within the NGSIM dataset. While I appreciate that, for many projects, the unique 'Vehicle_ID' within each 'Frame_ID' suffices, I find myself in a situation where I require a more extended trajectory of a vehicle, spanning across different Zones. Unfortunately, my research has not yielded much information on how to effectively address this particular challenge. Given your expertise in this domain, I am reaching out once again with the hope that you might be able to offer guidance or share any insights or methodologies you have developed to identify the same vehicle across various Zones within the NGSIM dataset. Your assistance in this matter would be invaluable to my research, and I would greatly appreciate any further information or recommendations you can provide.
Thank you in advance for your time and consideration, and I look forward to your response.

Dear Junlan,
Actually we could schedule a.zoom meeting to discuss this further. When would you available？
获取Outlook for Androidhttps://aka.ms/AAb9ysg

From: chenjunlan1 @.>
Sent: Tuesday, January 23, 2024 5:55:49 PM
To: YimingShu-teay/utils-for-NGSIM-data-process @.>
Cc: Teaysway @.>; Comment @.>
Subject: Re: [YimingShu-teay/utils-for-NGSIM-data-process] identify the same vehicle in various Zones (Issue #1)
Hi, many thanks for your reply. Your insights were indeed valuable in understanding the practical applications of the 'Vehicle_ID' within the NGSIM dataset. While I appreciate that, for many projects, the unique 'Vehicle_ID' within each 'Frame_ID' suffices, I find myself in a situation where I require a more extended trajectory of a vehicle, spanning across different Zones. Unfortunately, my research has not yielded much information on how to effectively address this particular challenge. Given your expertise in this domain, I am reaching out once again with the hope that you might be able to offer guidance or share any insights or methodologies you have developed to identify the same vehicle across various Zones within the NGSIM dataset. Your assistance in this matter would be invaluable to my research, and I would greatly appreciate any further information or recommendations you can provide.
Thank you in advance for your time and consideration, and I look forward to your response.
―
Reply to this email directly, view it on GitHubhttps://github.com/YimingShu-teay/utils-for-NGSIM-data-process/issues/1#issuecomment-1905688946, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A6TMZSUGX4VRB4VDQAMYGT3YP6CKLAVCNFSM6AAAAABCGTONYSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBVGY4DQOJUGY.
You are receiving this because you commented.Message ID: @.***>

That's great！This is my email address<EMAIL_ADDRESS> I am available from now and throughout the entirety of tomorrow.


Added sample for reading database cursor from @ExtendedProperties table

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: yifatsor sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.


Update Page titles

Issue Context
The Page titles that appear in the tab bar are strange and don't follow the typical patterns of a normal web application.
Suggested Solution
In each of the three page files Top.elm, Quarto.elm, and NotFound.elm, locate the top level view function
view : Url Params -> Document Msg
view { params } =
    { title = "Homepage"
      ....

Change the title parameters of each to the following

For Top.elm, change the title from "Homepage" to "Quarto - Home"
In Quarto.elm, change the title from "Game" to "Quarto - Play"
In NotFound.elm, change the title from "404" to "404 - Page not found"

Alternatives Considered
N/A
Additional Resources
N/A

Can I pitch in?


Remove CDS_ECS_BG_GREEN_SERVICE_ROLLBACK from docs

Harness Developer Pull Request
Thanks for helping us make the Developer Hub better. The PR will be looked at
by the CODEOWNERS.
What Type of PR is This?

[ ] Issue
[ ] Feature
[ ] Maintenance/Chore

If tied to an Issue, list the Issue(s) here:

Issue(s)

House Keeping
Some items to keep track of. Screen shots of changes are optional but would help the maintainers review quicker.

[ ] Tested Locally
[ ] Optional Screen Shoot.

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://659dec5d514f1b749a92c280--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://659dec853534a37244deb711--harness-developer.netlify.app


Services urls

Now we have a kind of https://este.io/api. We should use /_api at least. Or subdomain like api.este.io

And some mapping for dev/production.


Refactor environment

Closes #1047
TODOs

[ ] Add function to clear pending project changes

I tried to combine settings and packages with trait
error: lifetime bound not satisfied
   --> vrc-get-gui/src/state/packages.rs:241:9
    |
241 |         assert_send(x.load(dummy()));
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this is a known limitation that will be removed in the future (see issue #100013 <https://github.com/rust-lang/rust/issues/100013> for more information)

sad...


Can we handle lists with different types with tagged unions?

Initial Checks

[X] I have searched Google & GitHub for similar requests and couldn't find anything
[X] I have read and followed the docs and still think this feature is missing

Description
I would like to be able to be able to have a list of attibutes where each element can be a different Tagged Union type.  Something like this:
from pydantic import dataclass, Field

@dataclass
class Thing1:
    name: str
    x: Literal["1"]

@dataclass
class Thing2:
    name: str
    x: Literal["2"]

@dataclass
class Container:
    things: list[Thing1 | Thing2] = Field(discriminator="x")

And then have a test.json file like this:
Container: {
    things: {
      {name: bob, x: "1"},
      {name: alice, x: "2"}
    }
}

Then when I load this in pydantic:
with open(test.json, "r") as fh:
    json_data = json.load(fh)
c = Container(**json_data)
isinstance(c.things[0], Thing1) == True
isinstance(c.things[1], Thing2) == True

Affected Components

[ ] Compatibility between releases
[X] Data validation/parsing
[ ] Data serialization - .model_dump() and .model_dump_json()
[ ] JSON Schema
[X] Dataclasses
[ ] Model Config
[X] Field Types - adding or changing a particular data type
[ ] Function validation decorator
[ ] Generic Models
[ ] Other Model behaviour - model_construct(), pickling, private attributes, ORM mode
[ ] Plugins and integration with other tools - mypy, FastAPI, python-devtools, Hypothesis, VS Code, PyCharm, etc.

Selected Assignee: @adriangb

Try:
from typing import Annotated
from pydantic import dataclass, Field

@dataclass
class Thing1:
    name: str
    x: Literal["1"]

@dataclass
class Thing2:
    name: str
    x: Literal["2"]

Thing = Annotated[Thing1 | Thing2, Field(discriminator="x")]

@dataclass
class Container:
    things: list[Thing]

Thanks! That's just what I need.


SSL passthrough TCPRouter

Welcome!

[X] Yes, I've searched similar issues on GitHub and didn't find any.
[X] Yes, I've searched similar issues on the Traefik community forum and didn't find any.

What did you do?
Create a ingressrouteTCP like:
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRouteTCP
metadata:
  name: matchbox-rpc
spec:
  entryPoints:
    - tcp
  routes:
    - match: HostSNI(`matchbox-rpc.nyc1.rabbito.tech`)
      services:
        - name: matchbox
          terminationDelay: 35m
          port: 8081
  tls:
    options:
      name: matchbox-rpc
      namespace: infra
    passthrough: true

Create a TLSOptionLike:
---
apiVersion: traefik.containo.us/v1alpha1
kind: TLSOption
metadata:
  name: matchbox-rpc
  namespace: infra
spec:
  # minVersion: VersionTLS12
  # maxVersion: VersionTLS13
  # curvePreferences:
  #   - CurveP521
  #   - CurveP384
  # cipherSuites:
  #   - TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
  #   - TLS_RSA_WITH_AES_256_GCM_SHA384
  # clientAuth:
  #   clientAuthType: RequestClientCert
  sniStrict: false

Deploy a RPC api application like Matchbox (https://github.com/poseidon/matchbox/)
What did you see instead?
OpenSSL actually succeed negotiation
openssl s_client -connect matchbox-rpc.nyc1.rabbito.tech:8080  -CAfile ~/.matchbox/ca.crt -cert ~/.matchbox/client.crt -
key ~/.matchbox/client.key
CONNECTED(00000003)
depth=1 CN = fake-ca
verify return:1
depth=0 CN = fake-server
verify return:1
---
Certificate chain
 0 s:CN = fake-server
   i:CN = fake-ca
---

Though can't in my API driven application. (Terraform) Context Deadline.
Which seems like traefik isn't actually sending the correct SAN between my deployment and client
What version of Traefik are you using?
2.4.9
What is your environment & configuration?
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
  name: traefik
  namespace: networking
spec:
  interval: 5m
  chart:
    spec:
      # renovate: registryUrl=https://helm.traefik.io/traefik
      chart: traefik
      version: 9.19.2
      sourceRef:
        kind: HelmRepository
        name: traefik-charts
        namespace: flux-system
      interval: 5m
  dependsOn:
    - name: externaldns
      namespace: networking
    - name: cert-manager
      namespace: networking
  values:
    autoscaling:
      enabled: true
      minReplicas: 3
      maxReplicas: 5
    deployment:
      kind: Deployment
    logs:
      general:
        format: json
        level: INFO
      access:
        enabled: true
        format: json
    ingressClass:
      enabled: true
      isDefaultClass: true
      fallbackApiVersion: v1
    ingressRoute:
      dashboard:
        enabled: true
    experimental:
      plugins:
        enabled: true
      kubernetesGateway:
        enabled: false
    tlsOptions:
      default:
        minVersion: VersionTLS12
        maxVersion: VersionTLS13
        sniStrict: true
    pilot:
      enabled: true
      token: "${TRAEFIK_PIOLT_TOKEN}"
    additionalArguments:
      - "--serverstransport.insecureskipverify=true"
      - "--ping"
      - "--entrypoints.websecure.http.tls"
      - "--api.dashboard=true"
      - "--metrics.prometheus=true"
      - "--metrics.prometheus.entryPoint=metrics"
      - "--entryPoints.websecure.forwardedHeaders.trustedIPs=<IP_ADDRESS>/8,<IP_ADDRESS>/16,<IP_ADDRESS>/22,<IP_ADDRESS>/22,<IP_ADDRESS>/22,<IP_ADDRESS>/13,<IP_ADDRESS>/14,<IP_ADDRESS>/18,<IP_ADDRESS>/22,<IP_ADDRESS>/18,<IP_ADDRESS>/15,<IP_ADDRESS>/13,<IP_ADDRESS>/20,<IP_ADDRESS>/20,<IP_ADDRESS>/20,<IP_ADDRESS>/22,<IP_ADDRESS>/17,2400:cb00::/32,2606:4700::/32,2803:f800::/32,2405:b500::/32,2405:8100::/32,2a06:98c0::/29,2c0f:f248::/32"
      - "--entryPoints.websecure.proxyProtocol.trustedIPs=<IP_ADDRESS>/16"
      - "--entryPoints.web.proxyProtocol.trustedIPs=<IP_ADDRESS>/16"
      - "--entryPoints.tcp.proxyProtocol.trustedIPs=<IP_ADDRESS>/16"
      - "--providers.kubernetesingress.ingressendpoint.hostname=${INGRESS_ENDPOINT_HOSTNAME}"
    ports:
      web:
        redirectTo: websecure
      websecure:
        tls:
          enabled: true
          options: "default"
      metrics:
        port: 8082
        expose: false
        exposedPort: 8082
      tcp:
        port: 8080
        expose: true
        exposedPort: 8080
        protocol: TCP
    affinity:
      podAntiAffinity:
        preferredDuringSchedulingIgnoredDuringExecution:
          - weight: 100
            podAffinityTerm:
              labelSelector:
                matchExpressions:
                  - key: 'app.kubernetes.io/name'
                    operator: In
                    values:
                      - traefik
              topologyKey: 'kubernetes.io/hostname'
    resources:
      requests:
        memory: 100Mi
        cpu: 500m
      limits:
        memory: 500Mi

Add more configuration information here.
If applicable, please paste the log output in DEBUG level
2021-06-27T15:13:42.016-0400 [DEBUG] provider: using plugin: version=5
2021-06-27T15:13:42.086-0400 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unimplemented desc = unknown service plugin.GRPC
Stdio"
provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021-06-27T15:13:43.346-0400 [DEBUG] ProviderTransformer: "matchbox_group.default (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.
terraform.io/poseidon/matchbox"]
2021-06-27T15:13:43.346-0400 [DEBUG] ProviderTransformer: "data.sops_file.tf_secrets (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/carlpett/sops"]
2021-06-27T15:13:43.346-0400 [DEBUG] ProviderTransformer: "minio_s3_object.autoyast_aarch64 (expand)" (*terraform.nodeExpandPlannableResource) needs provider[
"registry.terraform.io/aminueza/minio"]
2021-06-27T15:13:43.346-0400 [DEBUG] ProviderTransformer: "matchbox_profile.kubic_arm (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/poseidon/matchbox"]
2021-06-27T15:13:43.346-0400 [DEBUG] pruning unused provider["registry.terraform.io/poseidon/ct"]
2021-06-27T15:13:43.346-0400 [DEBUG] pruning unused provider["registry.terraform.io/cloudflare/cloudflare"]                                                   2021-06-27T15:13:43.346-0400 [DEBUG] ReferenceTransformer: "data.sops_file.tf_secrets (expand)" references: []
2021-06-27T15:13:43.346-0400 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/carlpett/sops\"]" references: []
2021-06-27T15:13:43.346-0400 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/poseidon/matchbox\"]" references: []
2021-06-27T15:13:43.346-0400 [DEBUG] ReferenceTransformer: "matchbox_profile.kubic_arm (expand)" references: []
2021-06-27T15:13:43.346-0400 [DEBUG] ReferenceTransformer: "matchbox_group.default (expand)" references: [matchbox_profile.kubic_arm (expand)]
2021-06-27T15:13:43.346-0400 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/aminueza/minio\"]" references: [data.sops_file.tf_secrets (expand) data.sops_file.tf_secrets (expand)]
2021-06-27T15:13:43.346-0400 [DEBUG] ReferenceTransformer: "minio_s3_object.autoyast_aarch64 (expand)" references: []
2021-06-27T15:13:43.348-0400 [DEBUG] Starting graph walk: walkPlan
2021-06-27T15:13:43.348-0400 [DEBUG] created provider logger: level=debug
2021-06-27T15:13:43.348-0400 [INFO]  provider: configuring client automatic mTLS
2021-06-27T15:13:43.413-0400 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/poseidon/matchbox/0.4.1/linux_amd64/terraform-
provider-matchbox_v0.4.1 args=[.terraform/providers/registry.terraform.io/poseidon/matchbox/0.4.1/linux_amd64/terraform-provider-matchbox_v0.4.1]
2021-06-27T15:13:43.414-0400 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/poseidon/matchbox/0.4.1/linux_amd64/terraform-p
rovider-matchbox_v0.4.1 pid=1103233
2021-06-27T15:13:43.414-0400 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/poseidon/matchbox/0.4.1/linux_amd64/te
rraform-provider-matchbox_v0.4.1
2021-06-27T15:13:43.427-0400 [INFO]  provider.terraform-provider-matchbox_v0.4.1: configuring server automatic mTLS: timestamp=2021-06-27T15:13:43.426-0400
2021-06-27T15:13:43.464-0400 [DEBUG] provider.terraform-provider-matchbox_v0.4.1: plugin address: address=/tmp/plugin460745698 network=unix timestamp=2021-06-27T15:13:43.464-0400

Traefik logs aren't showing anything useful.

Hi! I'm Træfiker :robot: the bot in charge of communication regulation.
Thanks for your interest in Traefik!
We dedicate the issue tracker to bug reports and feature requests only. My advanced AI has spotted that your issue might be a configuration problem or relates to something that doesn't look like a bug.
To confirm this, please join our Community Forum and reach out to us on the Traefik section.
In case I'm wrong (well, that would be embarrassing :sweat_smile:), my developers will re-open the issue and fix me!
In the meantime, you can double check Traefik's documentation.


Running completeness report generates exception resulting from dependency

Running python3 run.py --subject FULLTEXT --collection ES generates
Traceback (most recent call last):
  File "run.py", line 7, in <module>
    from xreport import tasks
  File "/app/xreport/tasks.py", line 5, in <module>
    import xreport.app as app_module
  File "/app/xreport/app.py", line 1, in <module>
    from adsputils import ADSCelery
  File "/proj/ads/ads/.local/lib/python3.8/site-packages/adsputils/__init__.py", line 32, in <module>
    from .serializer import register_args
  File "/proj/ads/ads/.local/lib/python3.8/site-packages/adsputils/serializer.py", line 2, in <module>
    from adsmsg.msg import Msg
  File "/proj/ads/ads/.local/lib/python3.8/site-packages/adsmsg/__init__.py", line 1, in <module>
    from .augmentrecord import AugmentAffiliationRequestRecord, \
  File "/proj/ads/ads/.local/lib/python3.8/site-packages/adsmsg/augmentrecord.py", line 1, in <module>
    from .msg import Msg
  File "/proj/ads/ads/.local/lib/python3.8/site-packages/adsmsg/msg.py", line 7, in <module>
    from .protobuf import status_pb2 as Status
  File "/proj/ads/ads/.local/lib/python3.8/site-packages/adsmsg/protobuf/status_pb2.py", line 22, in <module>
    create_key=_descriptor._internal_create_key,
AttributeError: module 'google.protobuf.descriptor' has no attribute '_internal_create_key'

Stackoverflow suggests protobuf package incompatibility: https://stackoverflow.com/questions/61922334/how-to-solve-attributeerror-module-google-protobuf-descriptor-has-no-attribu

@tjacovich will the exception shown above disappear with a newer version of adsputils? I have adsputils==1.2.8 in requirements.txt

@ehenneken I believe so. I think grabbing anything with adsmsg>=1.3.6 should do it, so anything adsputils>=1.5.2.


fix setting cookie domain in external login page

Description
fix setting cookie domain in external login page
Related Issue :

How Has This Been Tested?
After logging in through the external login page, check to see if you can log out of Discovery.
Need additional checks?
Types of changes

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

Checklist:

[ ] I have read the CONTRIBUTING document.
[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have added tests to cover my changes.

Additional Context

run build
deploy to 2


Filter out videos from albums

The Photos API does not allow filters on an album search, so a manual filter will be required to remove video results. When retrieving an album's mediaItems, remove any results with a filename property ending in '.mp4', '.avi', '.mov', etc. Ensure case insensitivity.

See #7


Added Book (PDF resource) for Java Design Patterns.

What does this PR do?
Add resource(s)
For resources
Description
It is a PDF resource/book for learning important design patterns using Java language.
Why is this valuable (or not)?
This can help people especially with java background to learn various useful design patterns and apply them in real life applications.
How do we know it's really free?
It is available on internet as a free PDF resource.(No email id or registration required)
For book lists, is it a book? For course lists, is it a course? etc.
It is a book.
Checklist:

[x] Read our contributing guidelines.
[x] Search for duplicates.
[x] Include author(s) and platform where appropriate.
[x] Put lists in alphabetical order, correct spacing.
[x] Add needed indications (PDF, access notes, under construction).
[x] Used an informative name for this pull request.

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

This appears not to be an authorized distribution. Please see docs/CONTRIBUTING.md guidelines.


DNS resolution from servers other than primary doesn't appear functional

etcd fails to start when using discovery when the primary dns server doesn't return a response, or is unreachable.
etcd version 0.4.3
NAME=CoreOS
ID=coreos
VERSION=349.0.0
VERSION_ID=349.0.0
BUILD_ID=
PRETTY_NAME="CoreOS 349.0.0"
ANSI_COLOR="1;32"
HOME_URL="https://coreos.com/"
BUG_REPORT_URL="https://github.com/coreos/bugs/issues"
logs from etcd are here:
https://gist.github.com/naemono/d7c3a974ad76e6ab34db
core@host-10-30-0-40 ~ $ cat /etc/resolv.conf
---cut---
nameserver <IP_ADDRESS>
nameserver <IP_ADDRESS>
domain openstack.local
In my case, when <IP_ADDRESS> was unreachable (system crashed), etcd never tried to resolve from <IP_ADDRESS>, and simply died with the error referenced above.
stack trace that pointed me to the issue:
https://gist.github.com/naemono/895b7aa8c252c065593d
Let me know if you need more information.

i have the same error (useing etcd 0.4.6 on centos7) if the first nameserver in resolv.conf is not reacheble, etcdctl fails to sync woth the cluser (--no-sync also does not work), at the same time curl works.
I also tried to set resolv.conf options timeout:1 and attempts:1 this work for all expect etcdctl....
i think it is a BUG not an enhancement

@f0 @naemono This sounds like a golang lib issue. Maybe you can try with today's etcd/etcdctl. Or you can file a issue for golang.


SQL Database Project does not work with Azure Analytics Syntax (OPENROWSET)

Problem
When we try to use the SQL Database Project VSCode / Azure Data Studio extension, the syntax parsing/building is inconsistent with Azure Synapse Analytics Studio, particuarly with OPENROWSET syntax for connecting to CosmosDB via Azure Synapse Link.
The queries work on Azure Synapse Analytics Studio, but we would prefer local development rather than through a web GUI.
How to replicate

Install SQL Database Project Extension on VSCode / Azure Data Studio
Either
a. Import an existing Azure Synapse Analytics Serverless SQL pool with OPENROWSET derived views from CosmosDB using the SQL Database Project Extension OR
b. Copy the quickstart code here:CREATE DATABASE SCOPED CREDENTIAL MyCosmosDbAccountCredential
WITH IDENTITY = 'SHARED ACCESS SIGNATURE', SECRET = 's5zarR2pT0JWH9k8roipnWxUYBegOuFGjJpSjGlR36y86cW0GQ6RaaG8kGjsRAQoWMw1QKTkkX8HQtFpJjC8Hg==';
GO
CREATE OR ALTER VIEW Ecdc
AS SELECT *
FROM OPENROWSET(
      PROVIDER = 'CosmosDB',
      CONNECTION = 'Account=synapselink-cosmosdb-sqlsample;Database=covid',
      OBJECT = 'Ecdc',
      CREDENTIAL = 'MyCosmosDbAccountCredential'
    ) with ( date_rep varchar(20), cases bigint, geo_id varchar(6) ) as rows

See error Incorrect syntax: 'CREATE VIEW' must be the only statement in the batch. in IDE:

Expected result
That we can use the SDK example code in VSCode / Azure Data Studio as well as on Azure Synapse Analytics

Note that the quickstart code needs to be changed to the following to work in Azure Synapse Analytics Studio:
CREATE DATABASE SCOPED CREDENTIAL MyCosmosDbAccountCredential
WITH IDENTITY = 'SHARED ACCESS SIGNATURE', SECRET = 's5zarR2pT0JWH9k8roipnWxUYBegOuFGjJpSjGlR36y86cW0GQ6RaaG8kGjsRAQoWMw1QKTkkX8HQtFpJjC8Hg==';
GO
CREATE VIEW Ecdc
AS SELECT *
FROM OPENROWSET(
      PROVIDER = 'CosmosDB',
      CONNECTION = 'Account=synapselink-cosmosdb-sqlsample;Database=covid',
      OBJECT = 'Ecdc',
      SERVER_CREDENTIAL = 'MyCosmosDbAccountCredential'
    ) with ( date_rep varchar(20), cases bigint, geo_id varchar(6) ) as rows

Hi @FullStackSteve - I apologize but I can't "move" this issue directly, it would be best over in https://github.com/microsoft/azuredatastudio - which doesn't yet support serverless SQL pools for SQL projects.  (soon! but not yet.)

@dzsquared -- Drew, thank you for those pointers.
@FullStackSteve -- Steve, please add this issue to https://github.com/microsoft/azuredatastudio, as Drew suggested.
I am closing this issue now.  You are welcome to @ mention me for any followup.  We hope to hear from you again.


SC number in pop up

Is your feature request related to a problem? Please describe.
When doing a fastpass on a website, red outlines with exclamation points are shown that I can click to see what the failure is. I then get a popup that has a 'rule name' for example 'image-alt' that's a link to an explanation on dequeuniversity.com. When I want to know the number of the WCAG 2.1 success criterion the failure falls under, I always have to click the link. Since I'm familiar with the SC's, I often need only the number (1.1.1 in the case of my example). The Axe extension does this and it's super handy.
Describe the desired outcome
I'd love to have the number of the SC right in the popup, for example right after the rule name. That would save me quite a lot of clicks.

Hi @MarjonBakker,
Thank you for filing this issue. We will triage it in our weekly review and update the issue. Thank you for contributing to Accessibility Insights!

Hi @MarjonBakker,
Till the time we triage this issue and give you an answer on this feature request.
As a workaround, you can always check WCAG information in the fast pass assessment page.
Just click FastPass from the popup menu and the extension will start the process.

@cheade What are your thoughts on this?
My concern is that it might make the target page look to busy

This is interesting. If users are more inclined to view the WCAG rather than the deque rule description, then we should have it available on the target page pop-up. Key information should be in both places (target page and Accessibility Insights page) if both are widely used.
At most I've only seen up to three WCAG rules for a single deque failure. I think we can find a place for the WCAG rules on this pop-up. As it stands right now, the pop-up is quite busy, I agree. If we can find some time to put a UI re-styling on the backlog (not a deep UX fix), then I think we can alleviate the busy concern.

@cheade what do you mean by UI re-styling?
this is a quick test on how it would look like with 3 WCAG:

I thought MarjonBakker was referring to the pop-up once you click on it, and not the tooltip that appears on hover, as they mention clicking the link of the rule name.

I think you are right, my bad. In that case I get what you mean on UI re-styling.
could we explore adding it next to the title? do we want to add links too?

Here's a simple suggestion for the pop-up (without UI cleanup):

@MarjonBakker what are your thoughts on what Chelsea suggests?

@ferBonnin @cheade Yes, that is exactly what I mean and it would be very useful for me. I get that it clutters the page and would understand if you decide against it. On the other hand, w3.org is my go-to reference where I can also find 'understanding', 'how to meet', techniques and failures for all SC's. So a link directly to w3.org would be good.

@MarjonBakker great! We will put it in our backlog.
Lets use Success Criteria and Success Criterion instead of W3C guidelines.

Implemented the basics, talking offline with @cheade to confirm the exact font/positioning we want before sending a PR.

@MarjonBakker This feature is now available in our Canary extension (version 2<IP_ADDRESS>3). Feel free to give it a try and let us know if you find any issues with it!

Checked it out, and it's just what I need. Thanks all!


Gradle ignores transitive dependencies when specifying a classifier

The bug discussed in https://discuss.gradle.org/t/gradle-ignores-transitive-dependencies-when-specifying-a-classifier/2417 applies to Gradle 3.4 too.
This is very sad as it renders Gradle unusable for non-trivial dependency setups.

I don't know if it's related but i had a issue with maven classifier also.
Tested on 3.4.1 and 3.5-rc3.
repositories {
    maven {
        url uri(theLocalMavenUri)
    }
    maven {
        url theMavenArtifactory
    }
}
dependencies {
    compileOnly(
            "com.querydsl:querydsl-apt:4.1.4:jpa",
    )
}

When only the querydsl-apt-4.1.4.jar without classifier is installed in local repo.
Then querydsl-apt-4.1.4-jpa.jar will fail and not fallback to the maven artifactory.
When using theMavenArtifactory repo first then it succeeds.

Could not resolve all files for configuration ':compileClasspath'.
> Could not find querydsl-apt-jpa.jar (com.querydsl:querydsl-apt:4.1.4).
  Searched in the following locations:
      file:/.m2/repository/com/querydsl/querydsl-apt/4.1.4/querydsl-apt-4.1.4-jpa.jar

Same problem in 3.5

@asaarnak see GRADLE-3178. It seems that bug was closed but wasn't fixed.

@vadeg very similar problem, but not the same.
I had a problem with library classifier not extension.
file:/.m2/repository/com/querydsl/querydsl-apt/4.1.4/querydsl-apt-4.1.4-jpa.jar

I have problem with this only when artifact is published to the localMaven() repository. It it is in the company Artifactory repo it works normally. But still it is big issue because I can't test the artifact locally before commit to GIT :-( Classifiers are most buggy thing on the whole Gradle.

Here is debug log

23:52:28.052 [DEBUG] [org.gradle.api.internal.artifacts.repositories.resolver.DefaultExternalResourceArtifactResolver] Loading file:/C:/Users/tomas/.m2/repository/com/xyz/android/xyz-android-abcd/1.0.5-SNAPSHOT/xyz-android-abcd-1.0.5-SNAPSHOT.pom
23:52:28.054 [DEBUG] [org.gradle.api.internal.artifacts.repositories.resolver.DefaultExternalResourceArtifactResolver] Loading file:/C:/Users/tomas/.m2/repository/com/xyz/android/xyz-android-abcd/1.0.5-SNAPSHOT/xyz-android-abcd-1.0.5-SNAPSHOT.aar
23:52:28.054 [DEBUG] [org.gradle.api.internal.artifacts.repositories.resolver.MavenResolver] POM file found for module 'com.xyz.android:xyz-android-abcd:1.0.5-SNAPSHOT' in repository 'MavenLocal' but no artifact found. Ignoring.
23:52:28.054 [DEBUG] [org.gradle.api.internal.artifacts.repositories.resolver.DefaultExternalResourceArtifactResolver] Loading file:/C:/Users/tomas/.m2/repository/com/xyz/android/xyz-android-abcd/1.0.5-SNAPSHOT/xyz-android-abcd-1.0.5-SNAPSHOT-debug.aar
23:52:28.054 [DEBUG] [org.gradle.api.internal.artifacts.repositories.resolver.ExternalResourceResolver] Found artifact but no meta-data for module 'com.xyz.android:xyz-android-abcd:1.0.5-SNAPSHOT' in repository 'MavenLocal', using default meta-data.
23:52:28.054 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModuleComponentRepository] Detected non-existence of module 'com.xyz.android:xyz-android-abcd:1.0.5-SNAPSHOT' in resolver cache 'maven'
23:52:28.054 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModuleComponentRepository] Detected non-existence of module 'com.xyz.android:xyz-android-abcd:1.0.5-SNAPSHOT' in resolver cache 'maven2'
23:52:28.054 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModuleComponentRepository] Detected non-existence of module 'com.xyz.android:xyz-android-abcd:1.0.5-SNAPSHOT' in resolver cache 'MavenRepo'
23:52:28.054 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModuleComponentRepository] Detected non-existence of module 'com.xyz.android:xyz-android-abcd:1.0.5-SNAPSHOT' in resolver cache 'BintrayJCenter'
23:52:28.054 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModuleComponentRepository] Detected non-existence of module 'com.xyz.android:xyz-android-abcd:1.0.5-SNAPSHOT' in resolver cache 'maven3'
23:52:28.054 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModuleComponentRepository] Detected non-existence of module 'com.xyz.android:xyz-android-abcd:1.0.5-SNAPSHOT' in resolver cache 'maven4'
23:52:28.054 [DEBUG] [org.gradle.api.internal.artifacts.repositories.resolver.DefaultExternalResourceArtifactResolver] Loading file:/C:/PJazyky/_Projekty_com/xyz/xyz-cleaner/app/libs/xyz-android-abcd-1.0.5-SNAPSHOT-debug.aar
23:52:28.055 [DEBUG] [org.gradle.api.internal.artifacts.repositories.resolver.DefaultExternalResourceArtifactResolver] Loading file:/C:/PJazyky/_Projekty_com/xyz/xyz-cleaner/app/libs/xyz-android-abcd-debug.aar
23:52:28.055 [DEBUG] [org.gradle.api.internal.artifacts.repositories.resolver.ExternalResourceResolver] No meta-data file or artifact found for module 'com.xyz.android:xyz-android-abcd:1.0.5-SNAPSHOT' in repository 'flatDir'.
23:52:28.055 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModuleComponentRepository] Detected non-existence of module 'com.xyz.android:xyz-android-abcd:1.0.5-SNAPSHOT' in resolver cache 'maven5'
23:52:28.055 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainComponentMetaDataResolver] Using com.xyz.android:xyz-android-abcd:1.0.5-SNAPSHOT from Maven repository 'MavenLocal'

Interesting is this line

23:52:28.054 [DEBUG] [org.gradle.api.internal.artifacts.repositories.resolver.MavenResolver] POM file found for module 'com.xyz.android:xyz-android-abcd:1.0.5-SNAPSHOT' in repository 'MavenLocal' but no artifact found. Ignoring.

It looks that it found the pom.xml and then trying to search for the file which is not there because there is just version with classifier avast-xyz-abcd-1.0.5-SNAPSHOT-debug.aar, but then it found it in another way probably, but without pom.xml already. Very weird.

The workaround for this issue is to publish your artifacts without classifier locally. Or just copy if you are too lazy to modify your build scripts :)
I bumped into the same problem today. Spend half of the day figuring it out till found this issue. Thanks guys.
The root cause of the problem in the protection inside of the MavenLocalRepository:
https://github.com/gradle/gradle/blob/deee60cad53968d5b7f994917b818fcc2d37fb3c/subprojects/dependency-management/src/main/java/org/gradle/api/internal/artifacts/repositories/DefaultMavenLocalArtifactRepository.java#L118
The validator has no information about classifier hence passes null so Maven dependency got ignored.
It is a miracle that in this case dependency resolution is working at all - the IvyRepository picks up the flag at the very last moment and carries it :D

A possible fixes in gradle are:

Extend the search to use regexp
Somehow pass the desiered classifer down to the validator (pom file have no information about classifiers)

I don't know if validation removal is an option at all, but probably somebody from the gradle team could tell better.

Workaround for Android:
// Configure the Android maven publication
apply plugin: 'com.github.dcendents.android-maven'

group = GROUP
version = VERSION

// run as `gradlew build install -PpublishFlavorless to trigger workaround locally
def publishFlavorless = project.hasProperty('publishFlavorless')
def firstTask = null

android.libraryVariants.all { variant ->
    if (variant.name.toLowerCase().contains("debug")) {
        // Workaround for https://github.com/gradle/gradle/issues/1487
        if (publishFlavorless && firstTask == null) {
            def bundleTask = tasks["bundle${variant.name.capitalize()}Aar"]
            firstTask = bundleTask
            artifacts {
                archives(firstTask.archivePath) {
                    builtBy firstTask
                    name = project.name
                }
            }
        }
        return
    }

    def bundleTask = tasks["bundle${variant.name.capitalize()}Aar"]

    artifacts {
        archives(bundleTask.archivePath) {
            classifier variant.flavorName
            builtBy bundleTask
            name = project.name
        }
    }
}

install {
    repositories.mavenInstaller {
        // This generates POM.xml with proper parameters
        pom.project {
            name POM_NAME
            artifactId POM_ARTIFACT_ID
            // Has to be 'aar' for transitive dependency to work
            packaging POM_PACKAGING
            description POM_DESCRIPTION
        }
    }
}

@dryganets Sadly 'com.github.dcendents.android-maven' is not good workaround already, because this project is dead and not working with Gradler 5.1+, because of https://github.com/dcendents/android-maven-gradle-plugin/issues/80
I'm currently looking for an alternative way.

Guys,
I wish this gets fixed sooner than letter!
People are getting stuck into mysterious issues!

thats why  i hate gradle too many bugs and breaking changes

@piyushwadhwani I deleted your last comment, please see https://gradle.org/conduct/

This issue seems to mix a number of different things.
The title, edited a number of times, mentions using @type. I know this in the context of Ivy dependencies and is something not supported by Gradle (#1386).
A number of messages mention Maven classifiers.
In recent Gradle versions, using a classifier on a dependency results in the metadata being used and thus transitive dependencies are included:
implementation group: 'com.google.inject', name: 'guice', classifier: 'no_aop', version:'3.0'
will produce:
compileClasspath - Compile classpath for source set 'main'.
\--- com.google.inject:guice:3.0
     +--- javax.inject:javax.inject:1
     +--- aopalliance:aopalliance:1.0
     \--- org.sonatype.sisu.inject:cglib:2.2.1-v20090111
          \--- asm:asm:3.1

However using ext indicates to Gradle that only the specific file should be resolved and thus all metadata is ignored.
So using implementation group: 'com.google.inject', name: 'guice', classifier: 'no_aop', version:'3.0', ext: 'jar' results in
compileClasspath - Compile classpath for source set 'main'.
\--- com.google.inject:guice:3.0

And this is by design.
Given the different topics and age of this ticket, I would strongly recommend opening separate issues for the problems not addressed by the answer above, and linking them to here.

Closing as no further work will happen in this context. In light of my previous comment, please open issue for specific points.


Ivy / Angular 9 compatibility

Hi,
I just updated my Angular 8 app to v9, and I get the following error when building.
ERROR in node_modules/ngx-konami/index.d.ts:3:22 - error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class

export declare class KonamiModule {
                       ~~~~~~~~~~~~

From what I understood it's probably linked to the use of Ivy compiler by default with Angular 9, and the fact that it is not compatible with minified and/or compiled es5 code (not sure of that part).
See: https://github.com/angular/angular/issues/35255
Disabling Ivy in tsconfig does the trick so it's not such a big deal, but maybe it still could be made Ivy-compatible ?
Thanks

Any maintainers available to look over @matcho's PR?

Thanks @matcho & @bfaulk96!
Hello 1.7.0 🎉 https://www.npmjs.com/package/ngx-konami


suggest to add typescript support

It will be more helpful to pick up the library especially when the documentation is not updated.
I am working on this repo, but haven't fully declared the types when I'm still understanding the library.
https://github.com/beenotung/typestub-eventstore

Hi!
Those can be done in a separate repository, exactly like how it was done here. I could try helping you with building those in case you have any issues, misunderstandings.
HINT : At least to have something to start with, you could inspect the JSDoc declarations.

Hey everyone 👋
New maintainer here… we, i.e. @thenativeweb, have taken over the responsibility to maintain this module from @adrai, and I would like to give a little update on this issue:
We agree that TypeScript support would be a major benefit for this module, so one of the first things we are going to do is to migrate the code base to TypeScript, so we will automatically have types for this. This will take some time, but for now I am closing this issue.
If you have any questions or anything else, please feel free to re-open it, or to open a new one 😊


Add Namrata to Contributors list

Hi, I was trying to create my first pull request by following the instructions on the README.md. Due to other people following the same concurrently, a merge conflict has arised. Can you please guide me on how to resolve it? It'll be a good learning experience for me.


Execute_transaction Starknet API

Codecov Report

Merging #642 (22f0705) into main (1dc3f02) will decrease coverage by 0.08%.
The diff coverage is 61.53%.

@@            Coverage Diff             @@
##             main     #642      +/-   ##
==========================================
- Coverage   92.03%   91.95%   -0.08%
==========================================
  Files          49       50       +1
  Lines       10207    10211       +4
==========================================
- Hits         9394     9390       -4
- Misses        813      821       +8

Impacted Files
Coverage Δ

src/lib.rs
0.00% <0.00%> (ø)

src/business_logic/transaction/mod.rs
75.00% <75.00%> (ø)

src/testing/state.rs
96.81% <100.00%> (+0.02%)
:arrow_up:


NG0900 on opening security items in the console

Describe the issue
NG0900 when opening the security-items page in the console, page is empty.
API endpoint for security items probably gave something unexpected back, the API response is needed in order to find the root of the issue
Reporter
@diedekerkhof
Stack trace
main.10fbedf53c0019c7.js:1 ERROR Error: NG0900
    at hae.diff (main.10fbedf53c0019c7.js:1:127079)
    at t.ngDoCheck (main.10fbedf53c0019c7.js:1:157131)
    at yee (main.10fbedf53c0019c7.js:1:25362)
    at kV (main.10fbedf53c0019c7.js:1:25129)
    at u4 (main.10fbedf53c0019c7.js:1:24806)
    at O4 (main.10fbedf53c0019c7.js:1:57139)
    at Dre (main.10fbedf53c0019c7.js:1:57487)
    at O4 (main.10fbedf53c0019c7.js:1:57513)
    at Are (main.10fbedf53c0019c7.js:1:64419)
    at are (main.10fbedf53c0019c7.js:1:57926)

Environment
Missing
Additional Environment
Missing
Additional Context
Missing

Reminder to self, see API response in email


Type specificiations

This issue tracks the implementation of https://github.com/prisma/specs/tree/master/schema#type-specifications

Internal Note: Dropped as spec under discussion

Closed as similar topic is being tracked in https://github.com/prisma/prisma2/issues/446


🌈Improving RGB feature

Actual
Effect modes:

:swirl
:rainbow_mood

Expected
Effect modes to be added:

:breath ... value changes like 0,1,3,4,5,6,7,8,9,8,7,6,5,4,3,2,1,0,1,2,3,4,,,,
:nokogiri ... value changes like 0,1,3,4,5,6,7,8,9,0,1,3,4,5,6,7,8,9,0,1,3,4,,,,

Keycodes

keycode
alias
functionality
swirl
rainbow_mood
breath
nokogiri

RGB_TOG

Toggle On or Off

RGB_MODE_FORWARD
RGB_MOD
Cycle through modes

RGB_MODE_REVERSE
RGB_RMOD
Reverse direction of _FORWARD

RGB_HUI

Increase hue (tone)

✔
✔

RGB_HUD

Decrease hue

✔
✔

RGB_SAI

Increase saturation (density)
✔
✔
✔
✔

RGB_SAD

Decrease saturation
✔
✔
✔
✔

RGB_VAI

Increase value (brightness)
✔
✔
✔
✔

RGB_VAD

Decrease value
✔
✔
✔
✔

RGB_SPI

Increase effect speed
✔
✔
✔
✔

RGB_SPD

Decrease effect speed
✔
✔
✔
✔

Note: On a split-type keyboard, these keycodes only work when they are assigned on the side that is NOT connected to the USB cable.

Related commit 05ef1eda4b4847f0c02cf7d68c765acec0b456cf


TypeError: process_response() takes 3 positional arguments but 5 were given

While running the Camerbert example. This error is thrown.
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/gunicorn/workers/sync.py", line 135, in handle
    self.handle_request(listener, req, client, addr)
  File "/usr/local/lib/python3.5/dist-packages/gunicorn/workers/sync.py", line 176, in handle_request
    respiter = self.wsgi(environ, resp.start_response)
  File "/usr/local/lib/python3.5/dist-packages/falcon/api.py", line 260, in __call__
    process_response(req, resp, resource, req_succeeded)
TypeError: process_response() takes 3 positional arguments but 5 were given

This is resolved in the 0.3.8 release


feat: Adding subfolders to the using section for Chrome Extension

Description
This PR adds subfolders to the section about the Chrome Extension.

What type of PR is this? (check all applicable)

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

Related Tickets & Documents

Fixes #122
Mobile & Desktop Screenshots/Recordings

Added tests?

[ ] 👍 yes
[ ] 🙅 no, because they aren't needed
[X] 🙋 no, because I need help

Added to documentation?

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

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

Ok

Made the changes @bdougie. The Deploy test still failed, unfortunately.

Made the changes @bdougie. The Deploy test still failed, unfortunately.

Can you copy and past the error message. I am walking to my next spot and can look at it locally for a few hours.

Made the changes @bdougie. The Deploy test still failed, unfortunately.

Can you copy and past the error message. I am walking to my next spot and can look at it locally for a few hours.

Sorry for the late reply @bdougie. I was away from my computer. Here are the errors: https://app.netlify.com/sites/docs-open/deploys/64c1bbe3b631d0000767d49e

Sorry for the late reply @bdougie. I was away from my computer. Here are the errors: https://app.netlify.com/sites/docs-open/deploys/64c1bbe3b631d0000767d49e

I was able to look at this due to me only being on mobile. What I found now is Unknown sidebar item type "markdown"
There are some more errors with the frontmatter that solve and will share the fix for the first section that you can copy the pattern from.

I suggest the fix for feature 1, use that example to fix the rest.

Made the changes @bdougie, but the deployment still failed.

It's a new error message
Error: Invalid sidebar file at sidebars.js.
7:55:06 PM: These sidebar document ids do not exist:
7:55:06 PM: - ai-code-explanation
7:55:06 PM: - generating-pr-descriptions
7:55:06 PM: - highlights
7:55:06 PM: - opensauced-links
7:55:06 PM: - refactoring-and-testing
7:55:06 PM: - viewing-insights-and-invitations
7:55:06 PM:
7:55:06 PM: Available document ids are:
7:55:06 PM: - chrome-extension/code-explanation
7:55:06 PM: - chrome-extension/highlights
7:55:06 PM: - chrome-extension/introduction-to-the-chrome-extension
7:55:06 PM: - chrome-extension/opensauced-links
7:55:06 PM: - chrome-extension/pr-description
7:55:06 PM: - chrome-extension/refactoring-and-testing
7:55:06 PM: - chrome-extension/using-the-chrome-extension
7:55:06 PM: - chrome-extension/viewing-insights-and-invitations
7:55:06 PM: - community/100-days-of-oss
7:55:06 PM: - community/faqs
7:55:06 PM: - community/highlights
7:55:06 PM: - community/welcome-to-the-community
7:55:06 PM: - contributing/code-of-conduct
7:55:06 PM: - contributing/introduction-to-contributing
7:55:06 PM: - contributing/set-up-authentication
7:55:06 PM: - contributing/triage-guide
7:55:06 PM: - introduction
7:55:06 PM: - maintainers/check-engines
7:55:06 PM: - maintainers/conventional-commit
7:55:06 PM: - maintainers/semantic-release
7:55:06 PM: - maintainers/setting-up-a-new-repository
7:55:06 PM: - technical/introduction-to-storybook
7:55:06 PM: - technical/resolve-merge-conflicts

It's a new error message
Error: Invalid sidebar file at sidebars.js. 7:55:06 PM: These sidebar document ids do not exist: 7:55:06 PM: - ai-code-explanation 7:55:06 PM: - generating-pr-descriptions 7:55:06 PM: - highlights 7:55:06 PM: - opensauced-links 7:55:06 PM: - refactoring-and-testing 7:55:06 PM: - viewing-insights-and-invitations 7:55:06 PM: 7:55:06 PM: Available document ids are: 7:55:06 PM: - chrome-extension/code-explanation 7:55:06 PM: - chrome-extension/highlights 7:55:06 PM: - chrome-extension/introduction-to-the-chrome-extension 7:55:06 PM: - chrome-extension/opensauced-links 7:55:06 PM: - chrome-extension/pr-description 7:55:06 PM: - chrome-extension/refactoring-and-testing 7:55:06 PM: - chrome-extension/using-the-chrome-extension 7:55:06 PM: - chrome-extension/viewing-insights-and-invitations 7:55:06 PM: - community/100-days-of-oss 7:55:06 PM: - community/faqs 7:55:06 PM: - community/highlights 7:55:06 PM: - community/welcome-to-the-community 7:55:06 PM: - contributing/code-of-conduct 7:55:06 PM: - contributing/introduction-to-contributing 7:55:06 PM: - contributing/set-up-authentication 7:55:06 PM: - contributing/triage-guide 7:55:06 PM: - introduction 7:55:06 PM: - maintainers/check-engines 7:55:06 PM: - maintainers/conventional-commit 7:55:06 PM: - maintainers/semantic-release 7:55:06 PM: - maintainers/setting-up-a-new-repository 7:55:06 PM: - technical/introduction-to-storybook 7:55:06 PM: - technical/resolve-merge-conflicts

Yeah, it's weird that they say ids don't exist. Maybe I named them wrong?

Yeah, it's weird that they say ids don't exist. Maybe I named them wrong?

Correct. Your Ids need the category chrome-extension/ prefixed

chrome-extension/code-explanation

Ohhhh

chrome-extension/code-explanation

Ohhhh

Yeah, it's weird that they say ids don't exist. Maybe I named them wrong?

Correct. Your Ids need the category chrome-extension/ prefixed

It still failed even though I made the changes.

chrome-extension/code-explanation

Ohhhh

It worked @bdougie! :)

2 things left to do.

The title needs to match the original

We need to delete this file https://github.com/open-sauced/docs/blob/main/docs/chrome-extension/using-the-chrome-extension.md

Done


Refactored TBGSubtraction, Added peak fitting.

Refactored TBGSubtraction to be easier to follow, and easier to update. This could use some more work, but I don't think it's worth the time right now.
Added a peak fitting ability. Should be relatively intuitive.

I've added a few more things to this now, so don't worry about pulling this yet. I have added a skew checkbox for fitting skew gaussians. There are also some weird visual effects that I don't think should be confusing (or give a wrong answer) they just can be aesthetically unpleasing. These additions have made me think of adding a peak fitting utility (which I can then steal for this program). This will be written once I'm done with my current analysis.