Use Dinov2 as a defect detection system

I would like to test how dinov2 performs on defect detection tasks. I can train the classifier if i have both good and bad images. But, i want to train on only good images and let the dinov2 calculate embedding and find bad images automatically.
Any ideas how that can be achieved?
I was thinking of maybe finding the cosine similarity of the good images with the test image but that would require a lot of computation...

I believe this is a difficult problem if you don't have negatives in your classification setup.


Where are images resized?

It appears that the code never resizes images to be the correct 299x299 for the inception model. Is it the case that all of the results on 64x64 images are obtained by feeding smaller images into the convolutional network and simply assuming that the outputs are meaningful? Or is there a resize somewhere I'm not seeing?
I also observed that resolution mattered immensely when comparing to the precomputed npz matrices in this repository. In particular, if the images were not 64x64, the FID was extremely high, so I'm assuming those npz matrices were computed by feeding 64x64 images directly into the inception graph.

It looks like the model resizes the images to 299x299.
I am also facing the issue of extremely high FID when comparing to the precomputed npz matrices. Did you find a solution for this? Is there perhaps a different set of precomputed statistics for comparison on other resolutions (128, 256, 512)?

Hi,
other datasets, this includes different resolutions, produce different activations in the coding layer (e.g. the last pooling layer in the inception network) and this implies different statistics, therefore you need to precompute the reference statistics for this dataset for yourself. HTH


Multiplier does not sync both ways...

I've been playing around multipeer sync and it seems that if I create a CD record on remote device, local device is being notified about it via status message.
However when status message arrives with the list of files on remote device, local device compares two sets of files, but it only checks for files missing on remote device, regardless whether remote device has more files / more changes.
Therefore the change is being unnoticed because remote device has more files than local device and NSSet simply returns empty intersection against local files.
This logic is located in handleFileRetrievalRequestFromPeerWithID of CDEMultipeerCloudFileSystem.m.
It would be awesome to actually download new stuff from remote device and send CDEMultipeerCloudFileSystemDidImportFilesNotification to perform the merge once data is available.

It is by design that each peer treats all other peers as if they are servers. But the way it does that is to simply make a local cache of files, and that is actually what it syncs against.
So you have to call retrieveFilesFromPeersWithIDs: yourself in order to get the new files. That puts the files in the local cache, and then you can call merge to bring the changes into the Core Data store. This approach gives you more control over when you do the data transfers, and when you integrate the results into Core Data.

Peer message decoding happens in CDEMultipeerCloudFileSystem(receiveData:fromPeerWithID:). Therefore I can't know the remote files that other peer has without doing the same decoding twice in IDMMultipeerManager. That's why additional notification to tell the manager that new files are available on other peer is a good way to organize real time synchronization. iCloud file system does that and polls files in iCloud container, then pings back with notification that new files are available. I think multipeer should do too.

But you have total control over when the files are retrieved, calling retrieveFilesFromPeersWithIDs:. It is true you don't know if there is new data, but if there is not, calling merge is very cheap. So You can just always call merge after calling retrieveFilesFromPeersWithIDs: (or use a different schedule).

Sorry if I am being silly here. I monitor CDEMonitoredManagedObjectContextDidSaveNotification and call merge on each save.
The following snippet does not work for me:
[self.ensemble mergeWithCompletion:^(NSError *error) {
        [self.multipeerManager syncFilesWithAllPeers];
    }];

Even if I put another one merge after syncFilesWithAllPeers, it does not push files to other peer, nothing happens.

I think you would need two merges to be fully synced. So you need to do the first merge to export the new save data to the local file cache. Then you call syncFilesWithAllPeers to put those files on other devices, and to also retrieve any new files from those other devices. Lastly, you would need another merge to import those changes from other devices.
I think this code would work  too:
[self.ensemble mergeWithCompletion:^(NSError *error) {
    [self.multipeerManager syncFilesWithAllPeers];
}];

Unfortunately nothing happens until other peer runs synchronization.
- (void)merge {
    self.isMerging = YES;

    self.mergeCount++;

    [self.ensemble mergeWithCompletion:^(NSError *error) {
        if(error) {
            NSLog(@"Sync error: %@", error);
        } else {
            NSLog(@"Finished sync");
        }

        [self.multipeerManager syncFilesWithAllPeers];

        if(self.mergeCount < 2) {
            [self merge];
        } else {
            [self finishWithError:error];
        }
    }];
}

Oh yes, you were right. The problem was that I forgot to pass multipeerManager at some point into my operation. 😫

Note also that your code (IDMMultipeerManager) is the code that sends and receives data, so you can always put extra stuff in there. The CDEMultipeerCloudFileSystem uses delegate methods to ask your app code to do the sending/receiving.

Ugh, I don't know why it worked. Eventually it stopped working again. And nothing is merged until I manually sync on other device. So frustrating..

I tried to run sync like 5 times in a row on save on the device that produces changes and other peer does not see these changes at all.

In order for the other device to see those changes:

The saving device has to call mergeWithCompletion:.
The other device has to call syncFilesWithAllPeers.
The other device has to call mergeWithCompletion:

Are you saying those things are happening, but the data is not appearing? Or are you saying it is not working because there is nothing to trigger 2 and 3?
One way to do the above is just to run a syncFiles and merge every 30 secs or so. If you need more spontaneous updates, you will probably need to send a message yourself between devices, to trigger a merge on the other device.
If you think it would be better to have a delegate method in Ensembles, perhaps you can try adding one and make a pull request.

@drewmccormack thanks for trying to help me.
Indeed the problem that other peers don't call sync because there is nothing to trigger that. I understand that timer approach is easy to implement, but I think it's nicer when changes arrive as they happen. iCloud and CloudKit both have ways to achieve that.
I think it would be awesome to add a new type of CDEMultipeerMessageType and invite other devices to synchronize with the peer that produced changes.

Sounds like a good request.


Added StringBehaviorExpectation and tests

This is my first ever open source PR, so please go easy on me...  This is my attempt to add the EmptyStringBehaviorExpectation portion of Issue #896.  It appeared to me that the new EmptyStringBehaviorExpectation class was very similar to the EmptyGuidBehaviorExpectationclass, so it will look similar.  I added it to GuardClauseAssertion as well, uncertain if there was a set goal to make this truly optional.  I appreciate any feedback.

@scpeterson Please take a look at the registered #1010. May I ask you ensure that the introduced EmptyStringBehaviorExpectation doesn't suffer from the similar issue?
I see the following way:

Extend the IGuardClauseCommand interface with CreateExceptionInvalidGuard(string explanation, Exception ex):
An attempt was made to XXXXXXXXX, and Guard Clause prevented this. However the captured Guard Clause is invalid: {0}"
Call this method if ArgumentException is detected, however argument name doesn't match:

the thrown exception doesn't contain the valid parameter name.
Expected parameter name: "", actual name: "".

Notice, you should pass parameter name as the _second_ argument of the `ArgumentException` constructor: throw new ArgumentException("message", "argName").

If you find how the message might be improved - feel free to enhance it.

I added ArgumentNullOrEmptyException and associated tests.  I also updated EmptyStringBehaviorExpectation to check for an invalid parameter and make use of the new exception.  I have not yet verified that the #1010 issue has been resolved, but will do that next when time allows.

@scpeterson I've just merged #1024, where I covered the part related to the situation when thrown exception contains invalid parameter name. It should significantly simplify this PR. Please rebase your branch on top of the latest master to consume those changes.
Do you know whether you can have time in the nearby future to continue your work on this?
Thanks.

Alex:
My hope is to get back into it.  I've been occupied with a job search so
I've backed off a bit.  Hopefully soon.
On Wed, Apr 25, 2018 at 4:36 AM, Alex Povar<EMAIL_ADDRESS>wrote:

@scpeterson https://github.com/scpeterson I've just merged #1024
https://github.com/AutoFixture/AutoFixture/pull/1024, where I covered
the part related to the situation when thrown exception contains invalid
parameter name. It should significantly simplify this PR. Please rebase
your branch on top of the latest master to consume those changes.
Do you know whether you can have time in the nearby future to continue
your work on this?
Thanks.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/AutoFixture/AutoFixture/pull/1005#issuecomment-384206988,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABPaut8jGc1fXm6IzEQw_b5eMQ7rn_PZks5tsDWdgaJpZM4S9Yjt
.

@scpeterson Thanks for the update! Wish you luck then in your searches and be waiting for the updates 😉

Closing in favor of #1168


Add circuits, nord_dots

Both images are added to the readme preview currently using my repos raw links, they're the last two Desktop Wallpapers.
Sources:
Nord Dots - Reddit
Circuits - Created with themer.dev

Thank you so much for your contribution, great wallpapers :)


Add filesystem.Syncfs

Yeah, a failure to open the rootfs would be an error worth reporting, an error to sync I don't think would be in our case.
As the new function returns both errors, it was easier to discard both in the caller.


Allow specifying dind container in values

This allows:

resource spec for the dind container different from the main agent
environment variables for the dind container can also be specified in values, e.g. to change the default driver if one so wishes
crucially: specifying a different dind image

I'm finding myself needing to use an unofficial image instead of the standard docker one as the official ones have been broken on armv7 (e.g. Raspberry Pi 2, or any Pi3/Pi4 running a 32bit operating system) since some time in the 0.19 series.

helm lint fail :/ @fpiesche


Loading time is very long

The first time loading the site takes over 10 seconds.

@HarryWangATX, this kind of "question" type problem, please first post it to the Q&A section in the discussion of this project.
Please check if you used the international CDN.


ISPN-5597 Verify if clustered Arquillian based tests are really clust…

…ered
https://issues.jboss.org/browse/ISPN-5597
I've tried all tests in integrationtests/ folder that use arquillian and changing the protocol does not change the test results. Anyway, I've changed the protocol for future tests that might be affected.

Integrated, thanks Martin!


Write plain text messages with secor

Hi,
I'm trying to use Secor to dump events from Kafka to s3.
My events in kafka are just plain text strings.
Is it possible to be store them to s3 as plain text as well? (csv/text file)
If yes, how can I do that?

Ok, found it. Just need to use DelimitedTextFileReaderWriterFactory.
Set property and it worked.
secor.file.reader.writer.factory=com.pinterest.secor.io.impl.DelimitedTextFileReaderWriterFactory


"IVG" has strong meaning in French

For French speakers, the suggested extension .ivg will remind them of "IVG", which is the acronym of "Interruption volontaire de grossesse", meaning "Abortion".
I just wanted to share for awareness.

Thanks for the note. Do you have an alternative suggestion or are you just spreading awareness?

Raising awareness for now.
ivg would be consistent with "IconVG", I guess I wonder if "IconVG" should be renamed.
"CompactVG"? (.cvg)

"CVG is the filename extension of vector image files created with Calamus graphics design software".

So... may I suggest LogoVG (.lvg).

how about .iconvg

.iconvg could work, especially as part of #4.

.ico? :)))


Support ability to pass in a file as an arg to EMR bootstrap to append to alluxio-site.properties

Is your feature request related to a problem? Please describe.
Some time Alluxio properties are quite complex. If a bootstrap doesn't allow a file to be passed in, updating a large number of Alluxio properties every time an EMR cluster comes up, can lead to human errors.
Describe the solution you'd like
pass a file in with properties that get appended to alluxio-site.properties

@dborkar Is the idea for this that as an alternative to a string input, a user can provide an s3:// URI that points to a file which is then appended to the default properties? This could work, but we may want to decide on which of the existing ones can be overridden.


[Bug]: 404 error at URL: /txns/HoQC6fBhawHWxKamXpGfp4bs-CrPxBhr6-cjluhhvAg

What happened?
A bug happened!
URL
https://explorer.helium.com/txns/HoQC6fBhawHWxKamXpGfp4bs-CrPxBhr6-cjluhhvAg
What browsers are you seeing the problem on?
Chrome
Do you see the issue on Mobile or Desktop?
Desktop
Relevant log output
No response

works now, closing.


[Config]: Refine command line interface and config options

The command line interface should be refined to the following format.
Command line Interface changed:

remove the following subcommand:

proxy
console-viewer
tui-viewer

change subcommand into a new command line entry point.

microproxy -> start the proxy server and other configuration stuff.
mpdump -> original console-viewer subcommand.
mptui -> original tui-viewer.

Command line options and config changed:

microproxy it self will have both config file and command line options.
mpdump and mptui will only have command line options since I don't think there will not be too many viewer options that we actually need.

config.py changed:
Based on the following interface changed, the config.py can be simplify.

It took a loooooooooong time to release~~~~
hahaha

I'll deal with this in the weekend. Sadly to say, recently is way too busy.

But I think you can start other features if you want to. The command line interface commits will not influence other component. :)

I just want to laugh at you XD.

So sad, I'm going to watch bojack the horse man.


chmod: add support for the deref and links options

Closes: https://github.com/uutils/coreutils/issues/7023

@jfinkels what I was mentioning yesterday

it is the last failing test for chmod:

I also noticed this problem upstream:
https://lists.gnu.org/archive/html/coreutils/2024-12/msg00042.html


Fixing service test failure

What is the purpose of this change? What does it change?

helper.WaitForCmdOut is looking for the service name instead of service status in service test file
Was the change discussed in an issue?
fixes #2019

How to test changes?

make test-service-e2e

see https://github.com/openshift/odo/issues/2019#issuecomment-521205896

this can be closed in favor of https://github.com/openshift/odo/pull/2022

#2019 (comment)


Google Colab

At the moment Google Colab offers me exactly zero compute units in an effort to force me to purchase a subscription.
The problems with this are:

I disagree with their pricing policies, and
even if I did try purchasing some compute units,   they're unavailable in my country.
I could try buying a Cloud VM instead, but that's a separate issue.
One consequence of this is making the Google Colab (free version): most of our hands-on will use Google Colab, the free version is enough.  line untrue in a subtle and not-immediately-obvious manner.

My suggestion is:

switching to Kaggle, which (at the time of posting this, at least) is actually free and available to most people
posting the minimum required specifications of a machine that would actually be able to run the example code.

Hey there 👋 , a simple solution (that I use) is to create a new google account. I don't understand why you don't have access to simple GPU with free version I used only free version to make/train the colabs.
The second solution is simply download the colabs as ipynb and run it with jupyter notebook.

Freshly created google accounts don't get any compute units. You're supposed to subscribed anyway.
The second solution implies having a machine that can run the code in a jupyter notebook. These are the types of machine that google used to provide (albeit with a measly K80) and that people don't necessarily have on their own.
Anyway, I guess anyone with the same problem would be well advised to upload these notebooks to kaggle.
It might require some tweaking, but at least they'd work


Include Requirements.txt file

A Requirements file is required since after cloning the repository we cannot run it without the needed requirements.
Please assign me this issue.
GSSOC 2024

@rahilmavani Would like to solve this issue
I am good at python, if you need assurance look into my profile.
Please assign me as GSSOC contributor.

Could you please assign me the "Include Requirements.txt File" issue for GSSOC 2024? Thank you!

Kindly assign me the "Include Requirements.txt File" task for GSSOC 2024 . thank you


Strongly Typed Element Views

When discussing how Value and the content within Value works in #500, we discussed adding typed views over Element`.
Having typed views as distinct types can allow a user to say accept as a parameter a StructElement or for types that are often used more structurally accept as a parameter a TextElement which could be represented as a non-null string or symbol value.
Another use for these APIs would be to have non Option return values for any of the relevant methods, StringElement::text() could return &str versus Element::as_text() returning Option<&str>
How we model this API is also interesting.  The simplest option is to just model this as struct wrappers over Element or the annotations and the underlying content de-structured from Value.  Adding trait abstraction on top of this (and potentially hiding the implementation with impl has some benefits as well--we could allow for better compositions of the APIs with trait bounds (e.g., trait StringElement: TextElement) which would make it easier to write generic functions over things that could take TextElement/StringElement/SymbolElement and so on.

Context From Thread on Value Factoring
We have Element to capture the full Ion value with its annotations, Value to capture the type + contents.  To me, Blob/Clob/List/SExp are really just structure that is part of the Value to get to the native contents.  Honestly, these intermediates are really just for structuring and de-structuring Ion values in my opinion.
I think we shouldn't try to force the Ion type granularity on content part of Value, but provide typed views at the Element (easy ways to get there from Value and their constituents) levels if you really want typed APIs to use in method/function signatures.
For example, I think a bunch of XElement trait/struct is the right way to model this because that is actually the view I would likely need if I want to type against the Ion value specifically at the granularity of Ion types.  In practice if I am looking for a SExp specifically, wouldn't I potentially want the annotations for that as well?  Wouldn't this go for any other statically typed APIs against Ion data?  I'd rather solve the problem at that level if we want users to have typed APIs and make it really easy to get at the contents in those views (since you don't need Option anymore).  The other reason is at this level we'd probably want other views that don't line up with our structuring like TextElement for string/symbol and maybe  even something like NumberElement that normalizes across the numerics.
In other words, I'd rather put the proper typing and API ergonomics at the Element level and leave these enum/struct things as structuring into and out of native values.
When I get a chance, I'll draft something up to illustrate what I mean, but if you think I am being out of line to how the team wants the APIs to be factored, I am very much willing to disagree and commit.
Originally posted by @almann in https://github.com/amazon-ion/ion-rust/issues/500#issuecomment-1492558726

I talked with @zslayton, and we came up with some requirements that we believe are important for a typed element API.

All structs should be opaque or non-exhaustive so that we can add more fields in future.
All struct fields should be immutable so that any hidden data cannot get out of sync with non-hidden data.
Traversing a tree of elements or accessing the value of an element should not require dynamic dispatch. (If users decided to do something that uses dynamic dispatch, that's fine, but we should not force them to do so.)
All elements should have fallible narrowing conversions and infallible widening conversions.

Agree with the above as API requirements.  I am also coming to the opinion that we should be capturing these views as trait as well because we will start to compose them in interesting ways.  The struct implementations can then potentially be hidden as impl trait and I think for these kinds of APIs, encouraging generic code to be written is probably correct.
E.g.,
fn do_something(lob: &impl LobElement) {
  // do something with the reference to some concrete `LobElement`
}

I put together a straw proposal of what I was thinking:
https://github.com/almann/ion-rust/commit/6c4ab4ead3e455bd16742f0a73a388a71d58fa68
The above is not complete by any means, but to illustrate what I was thinking.
I would love to use impl ClobView for this, but impl trait as type aliases and trait methods are in nightly still and we need that to make it easy to directly convert to a ClobView implementation from various places (e.g. Bytes, Clob, Blob).

Added some comments on your commit.  I think this is close--but I think the traits are a little off.  The derivation macros are regrettable, but probably correct.

FYI, I talked to @zslayton earlier this week and forgot to put an update here.
The idea that spawned my approach was that with some control over the memory layout (hence the use of repr(C)) and a little bit of unsafe Rust, we could get some nifty features, like casting pointers so that we can have e.g. an &IntElement where the underlying data is still Element. I learned from Zack about how the compiler can optimize some of the destructuring and creating a new object so that it can essentially be a no-op, so the transmuting is unnecessary.
I think the impl Trait approach may be the way to go, but I think some usage examples in your straw proposal would help me understand it better. Could you provide some usage examples?

In general, the typical pattern we'd encourage is to be generic with respect to XXXView traits when dealing with typed elements.  If we had impl trait as type aliases, we'd encourage folks to use those type aliases when the concrete type is required (generally when coercing with conversion traits).
fn do_something<V: LobView>(view_ref: &V) { ... }
fn do_something2<V: LobView>(view: V) { ... }

Narrowing conversions to concrete types though, do need a concrete type:
let view: ClobElement = element.try_into()?;
...
// this  could be defined with impl trait with current Rust (though not yet object safe)
let view = element.try_into_clob()?;

In the future, with type aliases  as impl trait we can make things like ClobElement and even Element opaque so no one can actually depend on how it is defined, just that it is some concrete type that implements a trait, but for now we still need concrete structs for the "leaf" types of each view.  I still recommend  defining traits fully here to make everything consistent with the abstract types and also make it easier to move to impl trait fully in the future.


Get response from bot after during inactivity

Can we get a sample response from the bot incase the user is inactive for a while.
For example -
If bot asks the user for any input and the user is not able to give any for a certain time interval. Bot should ask the user "Are you there ?" or some other message.

this would be done in the bot itself, not WebChat.


Remove duplicated in-app-wallet and account-abstraction settings UI from /connect layout

Problem solved
Fixes: DASH-630

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#5748  👈 (View in Graphite)
#5747
main

How to use the Graphite Merge Queue
Add either label to this PR to merge it via the merge queue:

merge-queue - adds this PR to the back of the merge queue
hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.


Inspecting variables in context opens window-ish?

I don't think this is a bug, but unsure where to ask.
When I try to 'unfurl' an array variable in the context, it opens it beneath in some kind of text box:

Any ideas? I'm sure it used to open inside the context window in the past

@Jarvvski There is currently no option available to print content unfolded in the Context view, as the intended usage is to show selected variable (and it's children) in the output panel with the simple click.
Alternatively you can unfold all the content in Context view with a single operation through Sublime text menu (Edit > Code Folding > Unfold All) or using it's corresponding shortcut as shown in the menu.

sorry for not getting back to you @martomo. All good on my end now


Refactor router building in the runloop handler

This is a refactor to prepare for stream support landing.
Based on code originally by @thibaultcha.

Merged in #4009


build: mirrored publish to d.py-interactions and interactions.py

Pull Request Type

[ ] Feature addition
[ ] Bugfix
[ ] Documentation update
[ ] Code refactor
[ ] Tests improvement
[x] CI/CD pipeline enhancement
[x] Other: Buld Change

Description

As per discussions in #contributors, this updates the github action to support publishing as the legacy name discord-py-interactions and interactions.py
In an ideal world, we'd drop discord-py-interactions as this project has nothing to do with discord.py, but thats incredibly breaking.
Changes

Update github action to support dual pushing
Change default name to interadctions.py... again
Update const __version__ to support both names

Related Issues

Test Scenarios

Python Compatibility

[x] I've ensured my code works on Python 3.10.x
[ ] I've ensured my code works on Python 3.11.x

Checklist

[x] I've run the pre-commit code linter over all edited files
[x] I've tested my changes on supported Python versions
[ ] I've added tests for my code, if applicable
[ ] I've updated / added  documentation, where applicable

Codecov Report
Patch coverage: 75.00% and project coverage change: -0.02 :warning:

Comparison is base (09a35a9) 47.70% compared to head (528d6f3) 47.69%.

:exclamation: Current head 528d6f3 differs from pull request most recent head ad5df50. Consider uploading reports for the commit ad5df50 to get more accurate results

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #1336      +/-   ##
============================================
- Coverage     47.70%   47.69%   -0.02%
============================================
  Files           139      139
  Lines         14297    14300       +3
============================================
  Hits           6821     6821
- Misses         7476     7479       +3

Impacted Files
Coverage Δ

setup.py
0.00% <ø> (ø)

interactions/client/const.py
89.88% <75.00%> (-1.98%)
:arrow_down:

... and 1 file with indirect coverage changes
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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


Add global variables on pact, null & reproduction

With replacements like {{@varNameCaseInsensitive@}} an all possible fields

Resolved with the "cache" and the "runid"


[Localhost]Permission denied, wrong credentials

First of all, i'm working on my local host using WAMP.
I tried using composer to to initialize my project, i got stock with permission denied, i thought it was because i was on a localhost so i decided to upload my files to the domain i used to verify my account. I ran the page online, instead i go stuck with a blank screen whenever it got to
"$email = new \SendGrid\Mail\Mail()".
At this point i became so confused because i linked everything fine, it gets past this stage on localhost so i don't really know why it gets stuck. Alternatively, I now decided to use the ZIP installation method, still wasn't successful.
BTW i don't know what this  "source ./.env" means; i have already renamed the .env.sample file to .env and added my API key inside.
$APIkey = "xxxxxxxx";
$email = new \SendGrid\Mail\Mail();
<EMAIL_ADDRESS>"Mylelo Jobs");
$email->setSubject("Sending with Twilio SendGrid is Fun");
<EMAIL_ADDRESS>"Clinton");
$email->addContent("text/plain", "and easy to do anywhere, even with PHP");
$email->addContent(
"text/html", "and easy to do anywhere, even with PHP"
);
$sendgrid = new \SendGrid(getenv($APIkey));
try {
$response = $sendgrid->send($email);
print $response->statusCode() . "\n";
print_r($response->headers());
print $response->body() . "\n";
} catch (Exception $e) {
//echo 'Caught exception: '. $e->getMessage() ."\n";
}
Whenever it gets to "$sendgrid->send($email)"; I'm hit with
{"errors":[{"message":"Permission denied, wrong credentials","field":null,"help":null}]}
on my localhost.
What could be the issue

Found a solution
please change example
$apiKey = getenv('SENDGRID_API_KEY') to $apiKey = 'SENDGRID_API_KEY';


MOBILE-26 SDK 9.x

This is a big one. I've tried to separate commits as best I can, so I recommend reviewing things more or less individually so as not to be overwhelmed or miss the forest for the trees. The largest single source of changes is the updated iOS bindings, which are worth some scrutiny, though so far I've had no difficulty testing with them. There are a lot more of them, because it now includes the entire (public) SDK. Keep an eye out for anything that looks weird and if in doubt, ask.
iOS sample code is not terribly different, though because we decided to stop translating accessor methods into properties there are number of superficial changes such as UAirship.Push -> UAirship.Push(), as well as interface changes at the SDK level between 8.x and 9.x. I added a blurb in the CHANGELOG about this.
The PCL was also rather out of date, having not been updated since component v 4.1. I changed that project to target our locally built nuget package so that it could point to the 5.0 component that hasn't been released yet.
Lastly I'm least familiar with the android bindings, so this is worth a close look. The sample app is building and running fine now, so far as I can tell, though I had to do some shuffling of the Transforms/Metadata as well as LocationFragment.cs to reflect changes in our location API. I'm not entirely convinced it's the best approach, particularly where generics are concerned, but this might be the limit of my understanding at the moment, so suggestions or fixup commits are welcome.

Everything is looking pretty good. Make sure you can receive a push on Android. Take a look at https://github.com/urbanairship/xamarin-component/issues/77 for FCM issues when testing Android.
👍


1199282 - ms.topic update

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

sandbox/demos/index.yml
:white_check_mark:Succeeded
View

sandbox/gamedev/index.yml
:white_check_mark:Succeeded
View

sandbox/index.yml
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

#sign-off Production 1199282


Github branch merge conflict

[x] Before all the sets were submitted to the master branch of the GitHub repository. But, now we have created a single repository for a single book and have divided it into sets. Now, every set is added to a new branch of the same repository. Thus, now the set needs to be submitted to a particular GitHub branch. Thus, we need to modify the code for the same.

Now, on submitting the set we have added a dialog box that will require the user to enter the branch name for the set submission. Please refer to commit number 13010e95ccdeda84f6fd2b5fd4fc3bec36dab154, 291cb54fd8dbdc14ee0ce6626c6c9c8b03b248da, 0da9915963a52d6aac765d2e03dce7e466d87479 and 3cf3e97ce1842f7f7270c32264efdb3d018efd75.


improved subfolder-documentation

After spending half a day in frustration before finally getting rocket.chat running in a subfolder, I felt that I should share my findings with others.
Thus I improved the - to that point not very helpful - documentation about subfolder-support.

 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.

@Iridias thanks for contributing these improvements.  Hopefully this will help others.  Left a couple of small notes

@geekgonecrazy Can you review it again, please?

@Iridias thanks!  Last thing is to click through and review the CLA and we'll be good to merge :+1:


[Enhancement] Skill Bindable Option

Is your feature request related to a problem? Please describe.
Some skills we have are passive and trigger on dealing damage, running, etc. Players are currently able to bind them to their items and it causes headaches as they can activate skills more times then they should be able to.
Describe the solution you'd like
Add an option into each individual skill that either marks them passive and prevents them from being binded or just a boolean that allows or prevents a skill from being able to be binded.
Describe alternatives you've considered
There are currently no alternatives that exist to this problem that I am aware of.
Additional context
None, just let me know if you have any additional questions!

This is mostly in relation to #776? I can see them binding passives to armor and wearing it to get the effects on a different class being a problem. Binding passives from your active class shouldn't be an issue though?

This is mostly in relation to #776? I can see them binding passives to armor and wearing it to get the effects on a different class being a problem. Binding passives from your active class shouldn't be an issue though?

If you have a passive such as dealing damage giving you health back, if they bind that to a weapon it doubles up the effect of a skill.

Passives shouldn't persist across changing classes at this point, but there is still likely a need to prevent players from binding some skills to items


Setting maxWidth on BitmapText throws error

Here's a link to a minimal test case. I'm using Phaser 2.3.0.
Repro:

Create a new bitmap text object: this.text = this.game.add.bitmapText(0, 0, '04b03', 'starting text', 8);
Set the maxWidth: this.text.maxWidth = 100;
Set new text: this.text.text = Phaser.RetroFont.TEXT_SET1; (or otherwise get the BitmapText instance to call updateText)
No rendered text, error in the console: Uncaught ReferenceError: lastLineWidth is not defined

Looks like a PIXI bug. I saw this on their side. Looks like it adjusts this line of code which Phaser doesn't have, I guess? Anyhoo.

It looks like naively sticking those lines in the updateText method doesn't enforce maxWidth. There goes the quick fix for me. :(

I have the same problem, but i can't find a solution.... can you explane me better?

This is now fixed in dev (and then some actually, we completely recoded how Pixi handles maxWidth, which didn't take into account kerning or character widths, or correctly crop the input string).

Where can i find the dev or anyway the right way to use it?
Il 03/Giu/2015 17:32, "Richard Davey"<EMAIL_ADDRESS>ha scritto:

This is now fixed in dev (and then some actually, we completely recoded
how Pixi handles maxWidth, which didn't take into account kerning or
character widths, or correctly crop the input string).
—
Reply to this email directly or view it on GitHub
https://github.com/photonstorm/phaser/issues/1807#issuecomment-108485872
.

Just check out the dev branch from github and run grunt to build it.

Close this one off as it definitely works properly now :) New updated example is in the repo too.


Add Adafruit Feather RP2040 DVI support

https://learn.adafruit.com/adafruit-feather-rp2040-dvi/pinouts

Thanks. I don't have one of these boards, so I'll just assume this works


2023 Q1 Dependency updates (resolves #57)

See #57 for details.

Seems like eslint-plugin-markdown can't be safely updated beyond the current version, there's a jump from 1.0.2 to their new 3.x line.  We also (still) have to avoid updating stylelint.

Self-merging this one.


Support loading the same script from multiple assemblies

This adds support for loading the same script name from multiple assemblies. This might be necessary if downstream projects implement support for SHVDN 3 using the same namespace, but different major versions (e.g. with NativeUI).

At some point it would be nice if this was less stringy, and used a class which implements the appropriate Equals and GetHashCode methods.


Added file for Swapping of 2 numbers using 2 different methods.

bro pls star this repo and  follow me thanks for contribution


PHP Fatal Error in GET /app_dev.php/login

Error in swapp
PHP Fatal Error in GET /app_dev.php/login
Class 'Twig_TokenParser_With' not found
View on Bugsnag
Stacktrace
var/cache/dev/classes.php:4470 - [unknown]

View full stacktrace

An error linked to this issue has been marked as fixed in Bugsnag
PHP Fatal Error in GET /app_dev.php/login

Was in dev environment.


Added Array input to the controls panel

Currently it works with the develop branch. A problem is that the user can still enter string values in the input box. Other than that it should work as expected.

I realized from the test that I would need to change more parts of the code, so this isn't ready yet


jgmenu integration

When creating a polybar "button" for jgmenu, I came upon the issue described below. I'd be grateful for a steer on if it is the intended behaviour and if there is anything I could do to avoid it.
I use

polybar v3.1.0 (build from Arch AUR two days ago)
i3 v4.14.1
Arch Linux

Using the default polybar config file (/usr/share/doc/polybar/config), I added:
modules-left = jgmenu bspwm i3
and
[module/jgmenu]
type = custom/script
label-padding = 2
interval = 10
exec = echo "menu"
click-left = "jgmenu_run &"

I found that "jgmenu_run" and "jgmenu" work in terms of launching jgmenu. However, when running jgmenu as a long-running application (default), I don't get polybar back (as described on wiki, so nothing strange about that).
However, "jgmenu_run &" and "jgmenu &" do not launch jgmenu. This is what's peculiar to me. These commands work from the terminal with the "&".
I found that the following works:
click-left = "jgmenu_run >/dev/null 2>&1 &"
The issue can be re-created without jgmenu, by setting "click-left = ~/test.sh &" and then doing the following:
cat <<EOF >~/test.sh
#!/bin/sh
echo "foo"
dmenu_run
EOF

If the 'echo "foo"' line is removed, it works.

I'm pretty sure you dont want the menu being forked to the background
I have been using something like this
[module/jgmenu]
type          = custom/script
label         = %output%
label-padding = 2
interval      = 10
exec          = echo ""
click-left    = jgmenu_run lx
click-right   = exo-open $HOME/.config/jgmenu/jgmenurc

Making sure the following is set in ~/.config/jgmenu/jgmenurc
stay_alive = 0
Hope this helps
Nate

Hi Nate
Thanks for your quick response. Dobbie03 pointed me to your config, so that's what got me started  with polybar (thanks!). There can be some disadvantages of running jgmenu as a short-lived application (stay_alive=0):

On slow computers, there is a delay when starting a new instance (~200 ms on mine). Lots of effort has gone into making startup times quick, e.g. loading icons in a separate thread and caching icon paths. However, it will always be faster to awake an already running applications (with 'killall -SIGUSR1 jgmenu' or jgmenu_run).

If running without a compositor (e.g. compton), there is a noticable flicker when the X11 window  is first created and cairo starts drawing. Not a problem when stay_alive=1

lx and xdg are quite quick, but pmenu is slower as it invokes python. This is not a problem when used as a long-running application, but noticeable when short-lived.

Lots of chewing of harddisk (i.e. icon and menu related files)

Either way, the polybar behaviour puzzles me.
In the case of dmenu_run (example above), I agree, there is no point in forking to background. But it's a simple example which makes it easier to reproduce the issue.
I have not looked at the polybar code. I can do, but guess it will be a lot quicker for the devs to get their heads around what going on. Maybe it's designed the way it is for a reason.
Johan

Yea, I do believe there is some reason, as polybar allows tailing of commands and execution at intervals..
With my little experience with it, I have noticed it behaves very oddly depending on the application
Check this
[module/menu]
type           = custom/menu
format-spacing = 1
label-open     = "    "
label-close    = "    "
label-close-foreground  = ${colors.urgent}
label-separator = " | "
# Top level
menu-0-0       = "  "
menu-0-0-exec  = menu-open-1
menu-0-1       = "  "
menu-0-1-exec  = menu-open-2
menu-0-2       = "    |"
menu-0-2-exec  = menu-open-3
# 1
menu-1-0       = "  "
menu-1-0-exec  = menu-open-0
menu-1-0-foreground = ${colors.urgent}
menu-1-1       = "  "
menu-1-1-exec  = exo-open --launch WebBrowser
menu-1-2       = "  "
menu-1-2-exec  = exo-open --launch TerminalEmulator
menu-1-3       = "    |"
menu-1-3-exec  = exo-open --launch FileManager
# 2
menu-2-0       = "  "
menu-2-0-exec  = menu-open-0
menu-2-0-foreground = ${colors.urgent}
menu-2-1       = "  "
menu-2-1-exec  = termite --exec=pacli &
menu-2-2       = "  "
menu-2-2-exec  = xfce4-settings-manager &
menu-2-3       = "    |"
menu-2-3-exec  = pavucontrol &

The purpose isnt to see my menu, just that notice exo-open apps will not work properly when trying to use & this causes some hard locking of the bar, however others like termite, and pavucontrol, will require & for them to NOT hard lock the bar.. It's all very strange
Cheers,
Nate

While testing this I have also noticed that the click command do not work as soon as they produce any sort of output, this is a bug and definitely not intended, but can easily be fixed by adding the already mentioned &> /dev/null to the commands. I will attempt to fix that part, but I'm not sure how long it will take, looking at the relevant code, I realize that I don't understand a lot of it.
As for the bar locking up, during my testing I have not seen anything that is out of the ordinary. It is however not quite intuitive. What polybar does, is it waits for the command to finish before doing anything else. So for example pavucontrol will only finish once its window is closed again, that's why polybar locks up, if you just have click-left = pavucontrol.
On the other hand exo-open ... will always return immediately, that's why it doesn't lock up the bar. Where our results differ is when using menu-0-0-exec = exo-open --launch TerminalEmulator &, for me this works the same as without the &, whereas you say the bar locks up.
In general using & should always work. @natemaia Can you produce a minimal configuration using exo-open with & where the bar then locks up for you and open a new issue with it because this may be another unrelated bug

Hi @patrick96 and thanks for the response.
Is there a reason to wait for click-left = commands to finish? Coud we just fork+exec?
Here is a simple example of how I did it in jgmenu.
spawn()
I don't think that &> is POSIX, so could lead to problems depending on what sh is set to.
A safer way is >/dev/null 2>&1

@patrick96 I believe you are correct
My apologies, exo-open along with many others do NOT lock the bar when using &
I cannot remember the exact instance it must have been with a different application, appending &
alone caused the same previous mentioned issue
I can certainly try making a really simple config attempting to reproduce some of this
and give you the results back here.
@johanmalm You are correct &> /dev/null is not POSIX

@johanmalm I wasn't involved when the responsible code was written. Will probably rewrite parts of it to also not have polybar lock up when the command doesn't terminate.

@patrick96 That's great. Let me know if I can help with anything.

Sure thing, thanks

When I tried to reproduce this bug I noticed something really strange.
On the following minimal config, impossible to reproduce the bug.
[bar/example]
width = 100%
height = 27

font-0 = fixed:pixelsize=10;1
font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
font-2 = siji:pixelsize=10;1

modules-left =
modules-center = bug_module
modules-right =

[module/bug_module]
type          = custom/script
label         = %output%
label-padding = 2
interval      = 100000000
exec          = echo "menu"
click-left = "~/test.sh >/dev/null 2>&1 &"

However on my full config, the bug is present. So I think there is somewhere some strange interactions between two modules… I will try to find the origin of this bug.

If I remove the following lines, it works but I don't know why…
https://github.com/jaagr/polybar/blob/25ef0299cb2bb835782d846a05695bcffc98b407/src/utils/command.cpp#L74-L76


"Can not connect to Ryuk" on Win with Docker Desktop Edge <IP_ADDRESS>

Upgrade to the latest Docker Desktop Edge(<IP_ADDRESS>), and using Testcontainers 1.5.0-rc2.
❯ docker -v
Docker version 20.10.0-beta1, build ac365d7

When running my testing codes, failed with the following errors:
12:15:08.008 [testcontainers-ryuk] WARN org.testcontainers.utility.ResourceReaper - Can not connect to Ryuk at localhost:49153
java.net.ConnectException: Connection refused: connect
	at java.base/sun.nio.ch.Net.connect0(Native Method)
	at java.base/sun.nio.ch.Net.connect(Net.java:574)
	at java.base/sun.nio.ch.Net.connect(Net.java:563)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:588)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:333)
	at java.base/java.net.Socket.connect(Socket.java:648)
	at java.base/java.net.Socket.connect(Socket.java:597)
	at java.base/java.net.Socket.<init>(Socket.java:520)
	at java.base/java.net.Socket.<init>(Socket.java:294)
	at org.testcontainers.utility.ResourceReaper.lambda$null$1(ResourceReaper.java:133)
	at org.rnorth.ducttape.ratelimits.RateLimiter.doWhenReady(RateLimiter.java:27)
	at org.testcontainers.utility.ResourceReaper.lambda$start$2(ResourceReaper.java:131)
	at java.base/java.lang.Thread.run(Thread.java:832)
12:15:10.292 [testcontainers-ryuk] WARN org.testcontainers.utility.ResourceReaper - Can not connect to Ryuk at localhost:49153

When inspect the docker errors, I got the following info:
2020/11/02 04:05:47 Pinging Docker...

panic: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

goroutine 1 [running]:

main.main()

/go/src/github.com/testcontainers/moby-ryuk/main.go:35 +0xcf5

I am sure docker is running, and I can run other docker commands in Powershell/cmd.

I just tried out Docker Desktop Edge <IP_ADDRESS> on Windows 10 1904 with WSL2 backend and can't reproduce the error.
Which engine backend are you using?
And this error happened after the update to Edge?

I was using Windows 10 Pro 64bit  insider  build 20246, not sure if it is the system problem

Reinstall Docker, and purge all data, it is disappeared

In my case setup was hanging during Docker uninstallation so computer reboot was required.

I'm having a similar problem. Does anyone have any idea? It just keeps trying to connect until it aborts.
Windows 10
Docker Desktop 3.0.0
Test Container Version 1.15.1
21:29:20.394 [main] DEBUG org.testcontainers.shaded.com.github.dockerjava.core.exec.InspectContainerCmdExec - GET: DefaultWebTarget{path=[/containers/5409773a80d2342cbdc6a5c1b9533749bd23c7dc837d8378575e49c4bee70222/json], queryParams={}}
21:29:22.593 [testcontainers-ryuk] WARN org.testcontainers.utility.ResourceReaper - Can not connect to Ryuk at localhost:55005
java.net.ConnectException: Connection refused: connect
	at java.base/java.net.PlainSocketImpl.connect0(Native Method)
....

Ryuk's container logs:
2020/12/20 00:31:50 Pinging Docker...
2020/12/20 00:31:50 Docker daemon is available!
2020/12/20 00:31:50 Starting on port 8080...
2020/12/20 00:31:50 Started!

I have exactly the same problem and configuration as @wallysoncarvalho, did you find a solution ?

Same problem here...

Same problem here...

Same problem here...

Just so you know, I couldn't come up with any solution other than downgrade

Same problem here...

Just so you know, I couldn't come up with any solution other than downgrade

Unfortunately I encounter this problem too.
Windows 10
Docker Desktop 3.1.0
Test Container Version 1.15.1
17:20:36 I [      main]   o.t.DockerClientFactory : Connected to docker:
  Server Version: 20.10.2
  API Version: 1.41
  Operating System: Docker Desktop
  Total Memory: 25520 MB
17:20:36 I [      main] .t.u.ImageNameSubstitutor : Image name substitution will be performed by: DefaultImageNameSubstitutor (composite of 'ConfigurationFileImageNameSubstitutor' and 'PrefixingImageNameSubstitutor')
17:20:39 W [iners-ryuk]      o.t.u.ResourceReaper : Can not connect to Ryuk at localhost:49154
java.net.ConnectException: Connection refused: connect

Ryuk's container logs:
2021/01/20 16:20:37 Pinging Docker...
2021/01/20 16:20:37 Docker daemon is available!
2021/01/20 16:20:37 Starting on port 8080...
2021/01/20 16:20:37 Started!

Are there any solutions / workarounds so far?

Unfortunately I encounter this problem too.
Windows 10
Docker Desktop 3.1.0
Test Container Version 1.15.1
17:20:36 I [      main]   o.t.DockerClientFactory : Connected to docker:
  Server Version: 20.10.2
  API Version: 1.41
  Operating System: Docker Desktop
  Total Memory: 25520 MB
17:20:36 I [      main] .t.u.ImageNameSubstitutor : Image name substitution will be performed by: DefaultImageNameSubstitutor (composite of 'ConfigurationFileImageNameSubstitutor' and 'PrefixingImageNameSubstitutor')
17:20:39 W [iners-ryuk]      o.t.u.ResourceReaper : Can not connect to Ryuk at localhost:49154
java.net.ConnectException: Connection refused: connect

Ryuk's container logs:
2021/01/20 16:20:37 Pinging Docker...
2021/01/20 16:20:37 Docker daemon is available!
2021/01/20 16:20:37 Starting on port 8080...
2021/01/20 16:20:37 Started!

Are there any solutions / workarounds so far?

SOLUTION: after running netcfg -d from https://github.com/docker/for-win/issues/3171#issuecomment-731096674 (comment) and rebooting computer, testcontainers works again. Windows woodoo detected 👻

Tip: check whether you are able to run Ryuk manually
docker run -i --mount type=bind,source=/var/run/docker.sock,destination=/var/run/docker.sock testcontainers/ryuk:0.3.1

If I look at the port number for which this fails, this seems to be related to #4263 and the corresponding issues #3609 and the upstream issue at https://github.com/docker/for-win/issues/11584.


Problem with size of image (ImageObjectFilterRender)

Hi,
I am trying to add image with ImageObjectFilterRender, but image in result is too big. I don't know how to set scale.
I prepared video with HD resolution:
rtmpCamera1.prepareVideo(1280, 720, 30, 1228800, false, 0)
Next, put sample image (original size 540x210, png format) with ImageObjectFilterRender (like in example with opnegl):
ImageObjectFilterRender imageObjectFilterRender = new ImageObjectFilterRender();  rtmpCamera1.getGlInterface().setFilter(imageObjectFilterRender); imageObjectFilterRender.setImage(BitmapFactory.decodeResource(getResources(), R.mipmap.test)); imageObjectFilterRender.setDefaultScale(rtmpCamera1.getStreamWidth(), rtmpCamera1.getStreamHeight()); imageObjectFilterRender.setPosition(TranslateTo.TOP_LEFT);
And the result is something like that:

How it is possible? Video width is 1280, so image should put up in half of width.
What is wrong with code or scale?
Orginal image:

Thanks for the great library!

Code look correct. I will tests it. For now, you can try set size with seScale in percent like here:
https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/blob/master/app/src/main/java/com/pedro/rtpstreamer/openglexample/OpenGlRtmpActivity.java#L242
In your case:
float width = 540 * 100 / 1280;
float height= 210 * 100 / 720;

Great! It now works correctly.


TCP Connection Pooling

This is my first experience with Go, so let me know if I'm doing anything wrong here with style or implementation!
This PR adds Dropbox's net2 ConnectionPool library.  New command line flags for tuning the pool are:
  -tcpmaxactive int
        Maximum number of connections that can be active per host (default 500)
  -tcpmaxidle int
        Maximum number of idle connections per host that are kept alive (default 10)
  -tcpmaxnew int
        Maximum concurrent new connections created (default 100)
  -tcpmaxtimeout duration
        Maximum amount of time an idle connection can live (default 5m0s)

Speedup with connection pooling is approxy 10x faster in some isolated tests I ran.
My motivation for this was seeing some timeouts to the my backend statsd load balancers, running with TCP.  I only run around 200 stats per second through statsd from my client apps.  I use UDP from the client app to an AWS ALB, running two ECS containers for statsrelay.  I have two statsd backend instances, each with their own ALB load balancer exposed as TCP.
At a rate of around 2 or 3 per second, statsrelay would print error messages liike dial tcp <IP_ADDRESS>:8125: i/o timeout [Reconnecting in 50ms, retries left 3/3]  The backend TCP ALBs were also showing a new flow rate of around 1,200 connections, and only an active flow count of around 5 - 10.
So, I interpreted that as there must be a ton of overhead on the TCP connection setup/teardown.  Switching to UDP didn't help much, and I noticed that stats were being dropped and my numbers didn't quite compare the same with our Elasticsearch docs.
I found a nice connection pool library from Dropbox, and took a crack at implementing a connection pool.  Deploying this to production, the TCP Pool stats show one active connection, and two idle connections.  Here's a nice view on the drastic change in the load balancers:

The new flow count dropped to nothing, the active flow count settled out, and the throughput to the ALB went from around 32KB/s down to 5KB/s.  And because of that, the capacity units on the ALBs dropped as well.
One additional curiosity that I noticed with my pooling addition -- some of my metrics with your 0.0.9 version were reporting 3x the rate that they should be.  After deploying my connection pool code, the count for the number of metrics for this controller dropped, and now match the rate we see in our Elasticsearch system.

I have no idea what would cause this, other than the 3x rate seems to correlate with the number of retries on TCP connections.  In any event, it seems more accurate now!

This looks really quite excellent.  Thank you for your time to document this case and for the patch.  Would you mind running go fmt  on all the code here to make the Go formatting conventions consistent?
Thanks a bunch!

Done!  1a4254e -- it seems to have "fixed" a lot more than my patches though.

Some of the formatting bits wasn't your fault.  That's for sure.
I merged your other patch which appears to have created a conflict above.  If you would fix that up, I'll be glad to merge this.  Thank you again for the work here.  There have been several requests/bugs around this.

okay @jjneely, I think I have this sorted out.  I rebased from your master, and git didn't seem to do well with merging the whitespace changes, so I manually fixed that.  Then I pulled from my tcp_connection_pool branch to make a merge commit and then pushed it up.  Github at least seems happy with it now?

I should also note, that after 10 days of running this in production, I have zero connection errors in my logs.

Awesome.


az network front-door - dosen't exist

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug
based on documentation https://docs.microsoft.com/en-us/cli/azure/ext/front-door/network/front-door?view=azure-cli-latest
but I can't see:
az network --help
Group
az network : Manage Azure Network resources.
Subgroups:
application-gateway    : Manage application-level routing and load balancing services.
asg                    : Manage application security groups (ASGs).
bastion      [Preview] : Manage Azure bastion host.
ddos-protection        : Manage DDoS Protection Plans.
dns                    : Manage DNS domains in Azure.
express-route          : Manage dedicated private network fiber connections to Azure.
lb                     : Manage and configure load balancers.
local-gateway          : Manage local gateways.
nat                    : Commands to manage NAT resources.
nic                    : Manage network interfaces.
nsg                    : Manage Azure Network Security Groups (NSGs).
private-dns            : Manage Private DNS domains in Azure.
private-endpoint       : Manage private endpoints.
private-link-service   : Manage private link services.
profile                : Manage network profiles.
public-ip              : Manage public IP addresses.
route-filter [Preview] : Manage route filters.
route-table            : Manage route tables.
service-endpoint       : Manage policies related to service endpoints.
traffic-manager        : Manage the routing of incoming traffic.
vnet                   : Manage Azure Virtual Networks.
vnet-gateway           : Use an Azure Virtual Network Gateway to establish secure, cross-
premises connectivity.
vpn-connection         : Manage VPN connections.
vrouter                : Manage the virtual router.
watcher                : Manage the Azure Network Watcher.
To Reproduce
download azure-cli 2.2.0 (today release) and run:
az network --help
Expected behavior
there is front-door
Environment summary
{
"azure-cli": "2.2.0",
"azure-cli-command-modules-nspkg": "2.0.3",
"azure-cli-core": "2.2.0",
"azure-cli-nspkg": "3.0.4",
"azure-cli-telemetry": "1.0.4",
"extensions": {
"aks-preview": "0.4.33",
"dev-spaces": "1.0.3"
}
}
Additional context
Add any other context about the problem here.

Have you added the front door extension by typing az extension add --name front-door first?

hi @MyronFanQiu  could you pls have a look? thanks.

@dariuszbz Hi. @bradcavanagh-ffs is correct. front-door is an CLI extension right now. We need to run az extension add --name front-door to add the extension first.

Aha !!!!
🤔
I did not going the clue in documentation.
On Tue, 10 Mar 2020, 21:24 Brad Cavanagh<EMAIL_ADDRESS>wrote:

Have you added the front door extension by typing az extension add --name
front-door first?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Azure/azure-cli/issues/12528?email_source=notifications&email_token=AEVINATJE2SBGPCT6MAGTELRG2VYPA5CNFSM4LFDGYR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEONHJXQ#issuecomment-597325022,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEVINAQF4VGDI3BMRFPFLPLRG2VYPANCNFSM4LFDGYRQ
.

@dariuszbz it's fine. 😄 If you don't have other question, we can close this issue.

az extension add --name front-door - works :)


[Bug Report] submenu's submenus don't hide when mouseleave in collapse mode

Element UI version
2.4.8
OS/Browsers version
windows 10/chrome 69.0.3497.100
Vue version
2.5.17
Reproduction Link
https://jsfiddle.net/cmp4whsb/
Reproduction Gif

Steps to reproduce

mouse hover to show all level submenus
mouse leave third-class submenu
mouse hover the postition icon and leave

What is Expected?
when mouse hover the postion icon, the second-class submenu shound hide
What is actually happening?
when mouse hover the postion icon, the second-class submenu doesn't hide

@guidetheorient can't reproduce.

step two: don't click the third class submenu, just mouseleave and hover the root icon again

Removing nested popper-append-to-body works fine. https://jsfiddle.net/70ek1xqb/

@wacky6  I know it, but I need this property.  if , without this property, I don't know how to make the submenu scroll y-axis when its height exceeds the body's height.

What do you mean by saying "scroll y-axis", you can update your jsfiddle to show the problem.

https://jsfiddle.net/0jpd27ne/3/    without  popper-append-to-body, scroll like this jsfiddle with defined height

@ziyoung I reproduce it. In fact I think the structure design of navbar menu is a bit awful. Maybe we can refactor it in next version. ( Just meet the standards of the HTML semantic )

I reproduce it

I also found this situation.


Prebuilt entity misleading error message

Describe the bug
When using some prebuilt entities not available in selected locale (culture), instead of throwing error or outputting a warning it says a completely different message. E.g.: this error message is outputted with it-it using geographyV2
Luis build failed: [ERROR] line 20:0 - line 20:1: Invalid child entity definition found. No definition found for "geographyV2" in child entity definition "- @ ml MLSubEntity usesFeature geographyV2". Features must be defined before they can be added to a child.

Related issues:

BFCLI#1292
BFCLI#1293
#8475

Version
Version:  2.1.1
Electron: 8.2.4
Chrome: 80.0.3987.165
NodeJS: 12.13.0
V8: 8.0.426.27-electron.0
Browser

[x] Electron distribution
[ ] Chrome
[ ] Safari
[ ] Firefox
[ ] Edge

OS

[ ] macOS
[x] Windows
[ ] Ubuntu

To Reproduce
Steps to reproduce the behavior:

Create a new Bot
Change locale to something different from en-us
Create a new Intent recognizer that uses LUIS
Insert some prebuilt entity not available for current locale
Try to build the bot

Expected behavior
It should tell the user that the prebuilt entity is not available.

Screenshots
Not applicable

Additional context
This error is due to the fact that Builder is constructed in this line passing a log function.
This way, bf-cli outputs a warning (see here) that's not captured by Composer.
Referenced issues on bf-cli already address this problem

@tonyanziano I think this is a solid bug we want to take, right?

@compulim I think it is an issue that should be fixed, however I am unclear on how we should prioritize it given the PVA work items.
@srinaath  / @cwhitten any comments?


Added some badges in README file

Have you read the Contributing Guidelines on Pull Requests?
Yes
Description
I have added some badges with the links related to them to the README.md file, after clicking on them the user will be redirected to the related section/web page.
Checklist

[x] I've read the contribution guidelines.
[x] I've checked the issue list before deciding what to submit.

Related Issues or Pull Requests
This fixes #39

@soumik2012 check it now... 🙂


bot.start() exit within 1 miniute

Hi, i am using donut_token to run the Hostie Puppet. It's fine to login and start to listen messages. But within a few seconds, the program exits safely. Don't konw why, please help. Just tried official demo.
`async def main():
bot = Wechaty(options=WechatyOptions(
puppet='wechaty-puppet-hostie',
puppet_options=PuppetOptions(
token='puppet_donut_XXX',
)
))
bot.on('scan', lambda status, qrcode, data: print('Scan QR Code to login: {}\nhttps://wechaty.github.io/qrcode/{}'.format(status, qrcode)))
bot.on('login', lambda user: print('User {} logged in'.format(user)))
bot.on('message', lambda message: print('Message: {}'.format(message)))
await bot.start()
asyncio.run(main())`

Already figure out the reason, cos I forget to have already started a js version of Hostie Puppet with the same account. Just close the issue.

Glad to see that you have fixed the issues. 🎉


Add documentation for intrinsic functions

There is no HIP documentation for intrinsic functions, for example __builtin_amdgcn_ds_swizzle.
Each intrinsic function should be documented so that developers can use them.

Builtins are not documented for a reason.  They are subject to change and their availability depends on the architecture.  They are only meant to be used by those ready to take on that risk and already understand why and how to use them.


Questions about error "cannot compute length" at line 1478.

Hi,MultiVelo team,Thank you for giving us such a great tool!
A error ocurred when I ran MultiVelo on my own data due to dividing by zero. It happened in the code block below at line 726 in file "dynamical_chrom_func.py". At line "s_inf = alpha / gamma", the result is "inf" because gamma is zero. Because at line 1399 self.gamma = np.dot(ss_u, ss_s) / np.dot(ss_s, ss_s) the result of dot product of vectors "ss_u" and "ss_s" is zero.
def approx_tau(u, s, u0, s0, alpha, beta, gamma):
    if gamma == beta:
        gamma -= 1e-3
    u_inf = alpha / beta
    if beta > gamma:
        b_new = beta / (gamma - beta)
        s_inf = alpha / gamma
        s_inf_new = s_inf - b_new * u_inf
        s_new = s - b_new * u
        s0_new = s0 - b_new * u0
        tau = -1.0 / gamma * log_valid((s_new - s_inf_new) / (s0_new - s_inf_new))
    else:
        tau = -1.0 / beta * log_valid((u - u_inf) / (u0 - u_inf))
    return tau

Therefore, at line 1475 rna_interval = approx_tau(u0_r, s0_r, 0, 0, alpha, self.beta, self.gamma), the result "rna_interval" is "nan", which causes the error at line 1478 for t_sw_1 in np.arange(1, rna_interval-1, 2, dtype=np.float64):  "cannot compute length".
Thanks for your answering.

Hi, thanks for the error report. It's interesting to see that either the steady-state unspliced or the steady-state spliced expression value is 0. Do you know which gene(s) was causing this issue, and can you plot this gene's RNA phase portrait with scvelo.pl.scatter? I'll add a check to the method, but for now, you can exclude this gene from the "gene_list'' argument to skip it.

Thanks for your reply. The reason why result of dot product is zero is not the steady-state unspliced or the steady-state spliced expression value is zero but ss_s and ss_u are orthogonal. The RNA phase portrait is below.

Thanks, Indeed, there isn't a well-defined steady-state region, but still, somehow this gene has enough cells in the middle that make it pass the quality filter.

The issue is fixed in the new release.

Thanks!


load_dataset can't work correct with my image data

I have about 20000 images in my folder which divided into 4 folders with class names.
When i use load_dataset("my_folder_name", split="train") this function create dataset in which there are only 4 images, the remaining 19000 images were not added there. What is the problem and did not understand. Tried converting images and the like but absolutely nothing worked

Can you post a reproducible code snippet of what you tried to do?

Can you post a reproducible code snippet of what you tried to do?

`
from datasets import load_dataset
dataset = load_dataset("my_folder_name", split="train")
`

hi @WiNE-iNEFF ! can you please also tell a bit more about how your data is structured (directory structure and filenames patterns)?

All file have format .png converted in RGBA.
In main folder "MyData" contain 4 folder with images. In function load_dataset i use folder "MyData"

@WiNE-iNEFF I'm sorry there is still not enough information to answer your question :( For now I can only assume that your filenames contain split names which are somehow incorrectly parsed.
What would be the output is you omit split while loading? Like just
ds = load_dataset("MyData")
print(ds)

@WiNE-iNEFF I'm sorry there is still not enough information to answer your question :( For now I can only assume that your filenames contain split names which are somehow incorrectly parsed.
What would be the output if you omit split while loading? Like just
ds = load_dataset("MyData")
print(ds)

Dataset({
    features: ['image', 'label'],
    num_rows: 4
})

@WiNE-iNEFF  My only guess is that 4 images in your data have "train" string in their names (something like "train_image_0.png") and others do not and the loader ignores all the files that do not contain split name in filename. If it's true, please try to remove "train" from filenames. Or maybe they are inside a directory named "train", then the directory should be renamed (unless you want to put only these 4 specific images to the train but apparently you do not).
If there is a bug I cannot investigate it unfortunately because I cannot reproduce your case without some data samples.

@WiNE-iNEFF  My only guess is that 4 images in your data have "train" string in their names (something like "train_image_0.png") and others do not and the loader ignores all the files that do not contain split name in filename. If it's true, please try to remove "train" from filenames. Or maybe they are inside a directory named "train", then the directory should be renamed (unless you want to put only these 4 specific images to the train but apparently you do not).
If there is a bug I cannot investigate it unfortunately because I cannot reproduce your case without some data samples.

I checked my files and some of them do have the words train, valid and test in their names, but the number of such images is more than 500, not 4.

@WiNE-iNEFF Probably they are named inconsistently so that the correct pattern for which files should correspond to which split cannot be inferred. You can make it clearer to the loader it by removing split names from filenames and putting files in separate (you can take a look at the documentation for imagefolder):
 Fuaimeanna2/
├─ test
│   ├─ label_0
│   │   ├── filename_0.jpg
│   │   └── filename_1.jpg
│   │   └── ...
│   ├─ label_1
│   │   └── ...
│   ├─ label_2
│   │   └── ...
│   └─ label_3
│          └── ...
├─ train
│   ├─ label_0
│   │   └── ...
│   ├─ label_1
│   │   └── ...
│   ├─ label_2
│   │   └── ...
│   └─ label_3
│          └── ...
└── validation
      ├─ label_0
      │   └── ...
      ├─ label_1
      │   └── ...
      ├─ label_2
      │   └── ...
      └─ label_3
            └── ...

@WiNE-iNEFF Probably they are named inconsistently so that the correct pattern for which files should correspond to which split cannot be inferred. You can make it clearer to the loader by removing split names from filenames and putting files in separate folder for each split (you can take a look at the documentation for imagefolder):
 Fuaimeanna2/
├─ test
│   ├─ label_0
│   │   ├── filename_0.jpg
│   │   └── filename_1.jpg
│   │   └── ...
│   ├─ label_1
│   │   └── ...
│   ├─ label_2
│   │   └── ...
│   └─ label_3
│          └── ...
├─ train
│   ├─ label_0
│   │   └── ...
│   ├─ label_1
│   │   └── ...
│   ├─ label_2
│   │   └── ...
│   └─ label_3
│          └── ...
└── validation
      ├─ label_0
      │   └── ...
      ├─ label_1
      │   └── ...
      ├─ label_2
      │   └── ...
      └─ label_3
            └── ...

I have read this documentation more than once. It just wasn't a problem before.

Hi,
You need to use:
from datasets import load_dataset

dataset = load_dataset("imagefolder", split="train", data_dir="path_to_your_folder")

instead of
from datasets import load_dataset

dataset = load_dataset("my_folder_name", split="train")

To create an image dataset from your local folders.

Hi,
You need to use:
from datasets import load_dataset

dataset = load_dataset("imagefolder", split="train", data_dir="path_to_your_folder")

instead of
from datasets import load_dataset

dataset = load_dataset("my_folder_name", split="train")

To create an image dataset from your local folders.

Thank you, but even using the method that you wrote above absolutely nothing changes, especially without using data_dir on my other data everything works fine

Oh I didn't know that! OK but in any case, not sure why the image builder isn't working for @WiNE-iNEFF. But it's hard for us to help if we can't reproduce. I'd just check the structure of the folders, see if the splits are correctly set up, etc.

@WiNE-iNEFF have you tried the suggestion I posted above? with removing split names from filenames and structuring files in folders?

even using the method that you wrote above absolutely nothing changes

fyi - nothing changed because these two approaches are basically the same. it's just that when you pass your data directory as a dataset name (load_dataset("my_folder_name"), not as data_dir (load_dataset("imagefolder", data_dir="my_folder_name"), datasets infers what module to use (imagefolder in your case) automatically, by file extensions.

I'll try to try your method over the next few days, then I'll write it turned out

@WiNE-iNEFF have you tried the suggestion I posted above? with removing split names from filenames and structuring files in folders?

even using the method that you wrote above absolutely nothing changes

fyi - nothing changed because these two approaches are basically the same. it's just that when you pass your data directory as a dataset name (load_dataset("my_folder_name"), not as data_dir (load_dataset("imagefolder", data_dir="my_folder_name"), datasets infers what module to use (imagefolder in your case) automatically, by file extensions.

I tried creating a train folder and put my image folders in it. As a result, all 18,000 images were loaded.

@WiNE-iNEFF great! So to explain what happened according to my assumptions:
When you use a standard packaged loader (like imagefolder, csv, jsonl, and so on) and load your data like load_dataset("my_folder_name") or load_dataset("imagefolder", data_dir="my_folder_name", the library searches for patterns to divide files into splits. This is described a bit in this doc. And the order to search for patterns is the following:

first it checks for pattern like data/<split_name>-xxxxx-of-xxxxx (which allows to pass custom split names)
then for directories named as splits (if you have directories named train, test etc.)
then for splits in filenames (like if you have files named train-image.jpg, test_0.jpg, ...)
then if no pattern was found, it treats all files as belonging to a single train split

The code is here.
So I assume that in your case, since you didn't have directories for splits (pattern 2), some files that included split keywords (pattern 3) were included and others were ignored as not matching the pattern. And when you added train directory, the pattern for directories (pattern 2) was triggered first and everything worked as expected. Everything worked in your previous cases probably because you didn't have split names keywords in filenames, so all the files ended up being a part of a single train split (pattern 4).
Another way to mitigate this apart from structuring your data according to the patterns is to explicitly state with files belong to which splits by passing them with data_files parameter:
load_dataset("my_folder_name", data_files={"train": "**"})   # to tell that all files should be included

Now I see that this order should be explained in documentation and also referenced in sections for packaged modules like imagefolder, thank you for pointing this out.

I have a similar problem when reading my dataset. I want to use DETR for object detection, but my data is in YOLO format. With a dataset of 10k images, yolo format involves having 10k labels. As far as I read regarding COCO format, there must be one JSON per split. However, as I post in the Hugging Face forum, when it is read, the number of rows is 1, which does not make sense. An example of the short version of the json file I read, to reproduce my error, is the following:
{
    "info": {},
    "licenses": [],
    "images": [
        {
            "id": 1,
            "file_name": "aceca_100.mp4frame21.png",
            "width": 1280,
            "height": 720,
            "pixel_values": null,
            "pixel_mask": null
            },
        {
            "id": 2,
            "file_name": "aceca_100.mp4frame24.png",
            "width": 1280,
            "height": 720,
            "pixel_values": null,
            "pixel_mask": null
        },
        {
            "id": 3,
            "file_name": "aceca_100.mp4frame25.png",
            "width": 1280,
            "height": 720,
            "pixel_values": null,
            "pixel_mask": null}],
            "annotations": [
                {
                    "id": 1,
                    "image_id": 1,
                    "category_id": 0,
                    "bbox": [0.0,<PHONE_NUMBER>8398557, 86.94096523844935,<PHONE_NUMBER>072134],
                    "area": 13565.341816979679,
                    "iscrowd": 0
                },
                {
                    "id": 2,
                    "image_id": 2,
                    "category_id": 0,
                    "bbox": [149.28851295721816,<PHONE_NUMBER>754418, 34.76802347007475, 98.03908698442889],
                    "area": 3408.625277259324,
                    "iscrowd": 0
                },
                {
                    "id": 3,
                    "image_id": 3,
                    "category_id": 0,
                    "bbox": [153.3817197549372,<PHONE_NUMBER>12891, 31.787555842913775, 89.69583163436312],
                    "area": 2851.2112569539095,
                    "iscrowd": 0
                }
            ],
            "categories": [
                {
                    "id": 0, "name": "person"
                }
            ]
        }
Any idea of what am I doing wrong?

Hi @Alberto1404, to load an object detection dataset it's recommended to make use of the metadata feature as explained [here](https://huggingface.co/docs/datasets/image_dataset#object-detection).

Thank you @NielsRogge! It works!!!


CorrectedTableOfContentsLinksToMatchGitHubsLinks.

Hello @kala-techies,
Issue of the code: By clicking the links of the Table of Contents some of the links are not working.

Day 1 - Introduction to Linux and Basic Commands
Day 2 - Navigating the Filesystem and File Operations
Day 3 - Permissions and Ownership
Day 4 - User Management and Process Management
Day 5 - Networking and System Monitoring
Day 6 - Scheduling Tasks and Automating
Day 7 - Advanced Commands and Troubleshooting

I align the Table of Content Links with there respective GitHub links..
Changes Made:

Corrected Table of Contents links to match GitHub's link.

Verified that all headers and their references align correctly.

Thank You,
@sameershaik-07

Please update my work,

(Or)

If there any conflicts are facing please let me know.

Thanks for bringing this.


Parser goes Stack Overflow with incomplete source

Description:
Consider the following incomplete source and this code goes for Stack Overflow
Source 1
import ballerina/http;

public

// function hello() returns @tainted http:Listener {
//     return l1;
// }

Source 2
import ballerina/http;

public function hello() re

Affected Versions:
Swan Lake Preview 1

Same happens for:
function

This hasn't fixed for the following case,
import ballerina/http;

public function hello() re

Hence re-opening


chore(coverage): ignore eval related code in codegen runtime

Properly misconfigured test setup for eval, but can't figure out where

#3628  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @Boshen and the rest of your teammates on  Graphite


Document the supported platform/release matrix

From @portertech on July 21, 2017 20:56
The Sensu documentation should include the platform/release matrix that currently exists in the sensu-omnibus README - https://github.com/sensu/sensu-omnibus#packages-built-using-automation-pipeline
Copied from original issue: sensu/sensu-docs#611

@cwjohnston I still like the redundancy, I don't think it should be necessary to reference link to the downloads page on the Sensu website.


3.7

Motivation:
Explain here the context, and why you're making that change.
What is the problem you're trying to solve.
Modification:
Describe the modifications you've done.
Result:
Fixes #.
If there is no issue then describe the changes introduced by this PR.

Motivation:
Explain here the context, and why you're making that change.
What is the problem you're trying to solve.
Modification:
Describe the modifications you've done.
Result:
Fixes #.
If there is no issue then describe the changes introduced by this PR.


Default file name when storing a connection on the disk

Using the name of the connection?
Example: my_connection -> my_connection.json

Done


Corner pooling

Ever thought about using corner pooling to further improve AP?

Hi @zhaopings !
How would the corner pooling improve their idea? The corner pooling layer improves corner localization, but here they are detecting extreme points(top, bottom, left and right), not corners.
If you have an idea about how they would work, please tell me, I'm looking for ideas for my faculty degree.
Thanks!

It's true that corner pooling can't be used for extreme points prediction, but I tried to use center pooling for center point prediction and achieved some performance improvement
------------------ 原始邮件 ------------------
发件人<EMAIL_ADDRESS>发送时间: 2020年4月24日(星期五) 凌晨1:38
收件人<EMAIL_ADDRESS>抄送: "Parallel world"<2054125628<EMAIL_ADDRESS>主题: Re: [xingyizhou/ExtremeNet] Corner pooling (#40)
Hi @zhaopings !
How would the corner pooling improve their idea? The corner pooling layer improves corner localization, but here they are detecting extreme points(top, bottom, left and right), not corners.
If you have an idea about how they would work, please tell me, I'm looking for ideas for my faculty degree.
Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

Thanks for the reply @zhaopings ! I will try to implement center pooling in extreme net too. Did you notice a high increase in processing time when you added the center pooling?

I didn't care much about FPS, but in COCO validation, the speed is not much slower than before
------------------ 原始邮件 ------------------
发件人<EMAIL_ADDRESS>发送时间: 2020年4月28日(星期二) 凌晨1:24
收件人<EMAIL_ADDRESS>抄送: "Parallel world"<2054125628<EMAIL_ADDRESS>主题: Re: [xingyizhou/ExtremeNet] Corner pooling (#40)
Thanks for the reply @zhaopings ! I will try to implement center pooling in extreme net too. Did you notice a high increase in processing time when you added the center pooling?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.


Adding details on .es6 extension to Sprockets instruction in readme

I might be being silly or have missed something, but it took me a while to figure out that you need to add an .es6 extension to any files you want to be transpiled (e.g. your-file-name.js.es6) after installing the sprockets-es6 gem.
Would be lovely to include this as an explicit instruction in the readme to help people get that ES2016 goodness even more easily 🔥🔥🔥
Thanks! 😍

Thanks! :heart:

@envygeeks Cheers! 🎉


How to use bootstrap.css in entire app with webpack?

This has been answered here: https://github.com/ocombe/ng2-webpack/issues/12

Also, I just pushed a fix that should help and updated the readme accordingly

sorry,  I add import '../node_modules/bootstrap/dist/css/bootstrap.css'; to vendor.ts
but it does not work.
I have to add  to index.html.

I can find bootstrap.css at webpack://~/bootstrap/dist/css. But how to use it to my components?

To import it from vendor.ts you have to make this change to the webpack config file: https://github.com/ocombe/ng2-webpack/commit/f73e6e5161fbc94aa1d7497ca504071bcedea363#diff-11e9f7f953edc64ba14b0cc350ae7b9dR114
Then just do:
import 'bootstrap/dist/css/bootstrap.css';

It will import it for the whole project.


access velocita via http localhost

Hi,
I am trying to access my local velocita (localhost) via http.
To do so I am setting composer config -g secure-http false
When I now try to download the first repo I get the following error:
Failed to retrieve remote config: The "http://localhost/mirrors.json" file could not be downloaded (HTTP/1.1 404 Not Found)
If try to open the file via my browser, the mirrors.json is reachable without any problems.
docker-compose:
velocita:
image: isaaceindhoven/velocita-proxy
volumes:
- './velocita:/var/cache/velocita'
environment:
- MIRROR_PACKAGIST_TYPE=composer
- MIRROR_PACKAGIST_URL=https://repo.packagist.org
ports:
- '80:8080'
container_name: velocita

Hi @MartinKuhl,
Are you executing composer install inside a container or on your local machine?

Hi @GMTA I try it inside a container

Your localhost on your machine is probably not the same as localhost in your container. First try composer locally to verify that it's working. Then, find out what you need to connect to from inside the container.
For example, if you use Docker Desktop, you may want to check out this:
https://docs.docker.com/desktop/networking/#i-want-to-connect-from-a-container-to-a-service-on-the-host
You'd connect with host.docker.internal instead of localhost, for example.

I try it as soon as possible, but should <IP_ADDRESS> address this issue?

No, <IP_ADDRESS> is the same as localhost after DNS resolution. Please follow the instructions from my previous comment first.

thanks a lot!
Local I have to use composer velocita:enable http://localhost
Within docker I have to use composer velocita:enable http://host.docker.internal
Maybe you can add this to the project documentation.

Hi @MartinKuhl ,
Awesome that you got it to work!
I do not have any documentation for Docker Desktop, that why I always refer to "the URL to your Velocita instance" - you need to figure this out yourself based on the containerization solution you use. Maybe if we add a section about Docker Desktop I could have an example outlining this.


Fix esp32 platform bluedroid, should send indication instead of notification.

We found some BLE commissioning issue using iOS16.5 or later.
We believe the root cause is the wrong esp_ble_gatts_send_indicate usage in the Bluedroid implementation.
Form the esp-idf document.

need_confirm – [in] - Whether a confirmation is required. false sends a GATT notification, true sends a GATT indication.

We should use true to send indication.
If the notification is used instead of indication, the commission may miss the notification packet causing commissioning failure. We see a high failure rate using iOS16.5.1 or later.
However, the bug is not easy to verify as the wrong implementation can pass validation in Test hardness.

 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.Ryan Ma seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

@ryan-ma please sign the CLA

@ryan-ma Please fix the restyled issue?  For example by applying this diff: https://restyled.io/gh/project-chip/repos/connectedhomeip/jobs/3496271/patch
I tried to push a fix for it to your branch, but looks like that's not set up with access for Matter maintainers.

@ryan-ma Restyler check in CI is failing. Please check


[youtube:clip] Extractor getting stuck on consent screen, unable to extract yt initial data

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

[X] I'm reporting that yt-dlp is broken on a supported site
[X] I've verified that I'm running yt-dlp version 2023.07.06 (update instructions) or later (specify commit)
[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched known issues and the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue
[ ] I've read about sharing account credentials and I'm willing to share it if required

Region
Italy
Provide a description that is worded well enough to be understood
yt-dlp fails to download YouTube Clips.
Page dump, renamed to .txt so that GitHub accepts it as an attachment
Seems like it's getting stuck on a consent screen:

Which consequently makes this regexp fail on Clips pages:
https://github.com/yt-dlp/yt-dlp/blob/56b3dc03354b75be995759d8441d2754c0442b9a/yt_dlp/extractor/youtube.py#L525
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[X] If using API, add 'verbose': True to YoutubeDL params instead
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
Via the command line
$ yt-dlp -vU 'https://www.youtube.com/clip/UgytZKpehg-hEMBSn3F4AaABCQ'
[debug] Command-line config: ['-vU', 'https://www.youtube.com/clip/UgytZKpehg-hEMBSn3F4AaABCQ']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version<EMAIL_ADDRESS>[b532a3481] (pip)
[debug] Python 3.11.3 (CPython x86_64 64bit) - Linux-6.4.12-zen1-1-zen-x86_64-with-glibc2.38 (OpenSSL 3.1.2 1 Aug 2023, glibc 2.38)
[debug] exe versions: ffmpeg 6.0 (setts), ffprobe 6.0, rtmpdump 2.4
[debug] Optional libraries: Cryptodome-3.18.0, brotli-1.0.9, certifi-2023.07.22, mutagen-1.46.0, sqlite3-2.6.0, websockets-11.0.3
[debug] Proxy map: {}
[debug] Loaded 1855 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Available version<EMAIL_ADDRESS>Current version<EMAIL_ADDRESS>yt-dlp is up to date<EMAIL_ADDRESS>[youtube:clip] Extracting URL: https://www.youtube.com/clip/UgytZKpehg-hEMBSn3F4AaABCQ
[youtube:clip] UgytZKpehg-hEMBSn3F4AaABCQ: Downloading webpage
ERROR: [youtube:clip] UgytZKpehg-hEMBSn3F4AaABCQ: Unable to extract yt initial data; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
  File "/store/Documents/Workspaces/other/fastidiobot/.venv/lib/python3.11/site-packages/yt_dlp/extractor/common.py", line 710, in extract
    ie_result = self._real_extract(url)
                ^^^^^^^^^^^^^^^^^^^^^^^
  File "/store/Documents/Workspaces/other/fastidiobot/.venv/lib/python3.11/site-packages/yt_dlp/extractor/youtube.py", line 7246, in _real_extract
    _, data = self._extract_webpage(url, clip_id)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/store/Documents/Workspaces/other/fastidiobot/.venv/lib/python3.11/site-packages/yt_dlp/extractor/youtube.py", line 5264, in _extract_webpage
    self._error_or_warning(e, fatal=fatal)
  File "/store/Documents/Workspaces/other/fastidiobot/.venv/lib/python3.11/site-packages/yt_dlp/extractor/common.py", line 3749, in _error_or_warning
    RetryManager.report_retry(
  File "/store/Documents/Workspaces/other/fastidiobot/.venv/lib/python3.11/site-packages/yt_dlp/utils/_utils.py", line 5642, in report_retry
    raise e
  File "/store/Documents/Workspaces/other/fastidiobot/.venv/lib/python3.11/site-packages/yt_dlp/extractor/youtube.py", line 5258, in _extract_webpage
    data = self.extract_yt_initial_data(item_id, webpage or '', fatal=fatal) or {}
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/store/Documents/Workspaces/other/fastidiobot/.venv/lib/python3.11/site-packages/yt_dlp/extractor/youtube.py", line 617, in extract_yt_initial_data
    return self._search_json(self._YT_INITIAL_DATA_RE, webpage, 'yt initial data', item_id, fatal=fatal)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/store/Documents/Workspaces/other/fastidiobot/.venv/lib/python3.11/site-packages/yt_dlp/extractor/common.py", line 1272, in _search_json
    json_string = self._search_regex(
                  ^^^^^^^^^^^^^^^^^^^
  File "/store/Documents/Workspaces/other/fastidiobot/.venv/lib/python3.11/site-packages/yt_dlp/extractor/common.py", line 1258, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)

Via the API
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version<EMAIL_ADDRESS>[b532a3481] (pip) API
[debug] params: {'force_keyframes_at_cuts': True, 'format': 'bestaudio/best', 'quiet': False, 'verbose': True, 'outtmpl': './data/%(id)s', 'nocheckcertificate': True, 'prefer_ffmpeg': True, 'noplaylist': True, 'restrictfilenames': True, 'windowsfilenames': True, 'postprocessors': [{'key': 'FFmpegExtractAudio', 'preferredcodec': 'mp3'}], 'compat_opts': set()}
[debug] Python 3.11.3 (CPython x86_64 64bit) - Linux-6.4.12-zen1-1-zen-x86_64-with-glibc2.38 (OpenSSL 3.1.2 1 Aug 2023, glibc 2.38)
[debug] exe versions: ffmpeg 6.0 (setts), ffprobe 6.0, rtmpdump 2.4
[debug] Optional libraries: Cryptodome-3.18.0, brotli-1.0.9, certifi-2023.07.22, mutagen-1.46.0, sqlite3-2.6.0, websockets-11.0.3
[debug] Proxy map: {}
[debug] Loaded 1855 extractors

[youtube:clip] Extracting URL: https://www.youtube.com/clip/UgytZKpehg-hEMBSn3F4AaABCQ
[youtube:clip] UgytZKpehg-hEMBSn3F4AaABCQ: Downloading webpage
ERROR: [youtube:clip] UgytZKpehg-hEMBSn3F4AaABCQ: Unable to extract yt initial data; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
  File "/store/Documents/Workspaces/other/fastidiobot/.venv/lib/python3.11/site-packages/yt_dlp/extractor/common.py", line 710, in extract
    ie_result = self._real_extract(url)
                ^^^^^^^^^^^^^^^^^^^^^^^
  File "/store/Documents/Workspaces/other/fastidiobot/.venv/lib/python3.11/site-packages/yt_dlp/extractor/youtube.py", line 7246, in _real_extract
    _, data = self._extract_webpage(url, clip_id)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/store/Documents/Workspaces/other/fastidiobot/.venv/lib/python3.11/site-packages/yt_dlp/extractor/youtube.py", line 5264, in _extract_webpage
    self._error_or_warning(e, fatal=fatal)
  File "/store/Documents/Workspaces/other/fastidiobot/.venv/lib/python3.11/site-packages/yt_dlp/extractor/common.py", line 3749, in _error_or_warning
    RetryManager.report_retry(
  File "/store/Documents/Workspaces/other/fastidiobot/.venv/lib/python3.11/site-packages/yt_dlp/utils/_utils.py", line 5642, in report_retry
    raise e
  File "/store/Documents/Workspaces/other/fastidiobot/.venv/lib/python3.11/site-packages/yt_dlp/extractor/youtube.py", line 5258, in _extract_webpage
    data = self.extract_yt_initial_data(item_id, webpage or '', fatal=fatal) or {}
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/store/Documents/Workspaces/other/fastidiobot/.venv/lib/python3.11/site-packages/yt_dlp/extractor/youtube.py", line 617, in extract_yt_initial_data
    return self._search_json(self._YT_INITIAL_DATA_RE, webpage, 'yt initial data', item_id, fatal=fatal)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/store/Documents/Workspaces/other/fastidiobot/.venv/lib/python3.11/site-packages/yt_dlp/extractor/common.py", line 1272, in _search_json
    json_string = self._search_regex(
                  ^^^^^^^^^^^^^^^^^^^
  File "/store/Documents/Workspaces/other/fastidiobot/.venv/lib/python3.11/site-packages/yt_dlp/extractor/common.py", line 1258, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)

try installing the master branch

Seems to be fixed on master! :+1:

Duplicate of #7594

Yup, can confirm, thanks!
I'd suggest retitling the main issue, it's not immediately clear that it's related.

this is still an issue, however, can be fixed by providing cookies


Unpublish?

Hi @itryapitsin ,
first of all thanks for this package, it's been super useful over these years.
Do you think it makes sense to unpublish it from the Marketplace, now that https://marketplace.visualstudio.com/items?itemName=scala-lang.scala exists?
I think it's kind of confusing for the users to find multiple identical plugins, one of which is marked as "Official".
Thanks

@itryapitsin, any chance you could take a look at this?


Pandas options data not working

I am trying to use get_all_data() method to download options data. I am getting following error:
RemoteDataError: Parsed URL 'http://finance.yahoo.com/q/op?s=SPY' has no rootelement
Actual code:
from pandas.io.data import Options
SPYD = Options('spy', 'yahoo')
data = SPYD.get_all_data()
My pandas version is 0.16.2

this is supported thru https://github.com/pydata/pandas-datareader/issues here now.

Sorry I dont see this issue under datareader issues.

yes exactly