My items showing blank with no results

Here is my set up:
my returned firebase array:
statuses:
{
0011381882781204bfe840813d300cfbaddclose
 createdAt:<PHONE_NUMBER>596
 photoUrl: "https://firebasestorage.goo/b/eno..."
 rating: 0
 sid: "0011381882781204bfe840813d300cfb"
 status: "Current Local Time in Madrid, SpainCurrent Loca..."
 tags: "blog"
 type: "Gossip"
 uid: "f1MPKQcYzvYxFTkA9vd"
},
{
 createdAt:<PHONE_NUMBER>249
 photoUrl: "https://firebasestorage.googlea..."
 rating: 0
 sid: "1f9b4f300264255f3cf902ad4b89d240"
 status: "A Good Titile Will Make a Difference A Good Tit..."
 tags: "blog"
 type: "Opinion"
 uid: "f1MPKQcYzvYxFTkA9v3"
 updatedAt:<PHONE_NUMBER>249
}

My template view:
<div class="ms-home search-results"
         infinite-scroll
         [infiniteScrollDistance]="scrollDistance"
         [infiniteScrollThrottle]="throttle"
         (scrolled)="onScrollDown()">
      <masonry [useImagesLoaded]="true">
        <masonry-brick class="col-md-4" *ngFor="let status of loadStatuses">
        <app-homecard
        [status]="status"
        >
       </app-homecard>
        </masonry-brick>
      </masonry>

component class :
ngOnInit() {

   this.statusService.getStatus()
    .subscribe(statuses => { this.statuses = statuses;
      if(this.statuses){
        this.statusesOk = true;
       this.addItems(0, this.sum);  // I check if the statuses are loaded
      }
 });
}
addItems(startIndex, endIndex) {
    if(this.statusesOk)
    {
      for (let i = 0; i < this.sum; ++i) {
      this.loadStatuses.push([i, ' ', this.generateArray()].join(''));
    }
  }
  }
  generateArray() {
    return this.statuses;
  }
  onScrollDown () {
    // add another 5 items
    const start = this.sum;
    this.sum += 5;
    this.addItems(start, this.sum);
  }

This just shows empty boxes in my view and when I scroll down the boxes just keep adding indefinitely. I don't exactly what am doing wrong. Any help will be appreciated!

this seems like it has something to do with the masonry component's you're using. please consult the plunkr examples.


Simplify GHA conda

Miniconda is already installed in GHA. You may need https://github.com/scikit-hep/vector/blob/60d3637efc98ecf53665ea6e81198bc4d77827d8/.github/workflows/ci.yml#L57
but I don't think you need to depend on a custom action.
https://github.com/scikit-hep/uproot4/blob/4cd75f06218cf381e5906876e6b0b50b9dd9ca82/.github/workflows/build-test.yml#L21

That's great—I didn't know that and will take advantage of it soon.

I learned about it from @chrisburr :)

Done in #18.


Number Mask With Fix Nine in it

If I want to have a mask which fix starts with "1234" and has a dash with for number after it , I can use
input.inputmask ({"1234-999"});

How ever if I want a mask which fix  starts with "1239" and has a dash with for number after it ,the below mask is not working
input.inputmask ({"1239-999"});

As the "9" is a special character in mask and can not be used in the fix part of the mask ?!
Any comment on how to solve this ?!

You need to escape the fixed 9
Op 09:16 ZA 20 Jun 2015 schreef afattahi54<EMAIL_ADDRESS>
If I want to have a mask which fix starts with "1234" and has a dash with
for number after it , I can use
input.inputmask ({"1234-999"});
How ever if I want a mask which fix starts with "1239" and has a dash with
for number after it ,the below mask is not working
input.inputmask ({"1239-999"});
As the "9" is a special character in mask and can not be used in the fix
part of the mask ?!
Any comment on how to solve this ?!
—
Reply to this email directly or view it on GitHub
https://github.com/RobinHerbots/jquery.inputmask/issues/958.

That worked, thanks !
input.inputmask ({"123\\9-999"});


⚠ Secret Website 3 has degraded performance

In 2209223, Secret Website 3 ($SECRET_WEBSITE_3) experienced degraded performance:

HTTP code: 200
Response time: 12051 ms

Resolved: Secret Website 3 performance has improved in f1122be.


Shift-Space should go to previous slide

Currently shift-space just goes to the next slide

Hi @lenkite thanks for noticing. Will address this shortly.

And Mega Thank you for authoring this nifty piece of software  :beer:


can fishhook hook c function written by ourself?

myFunction is a c function written by me in my project, I want to hook it, but I tried this code failed.
int myFunction(int a){
    return a+1;
}

static int (*orig_myFunction)(int);

int hook_myFunction(int a){
    return a+2;
}

int main(int argc, char * argv[])
{
    @autoreleasepool {
        rebind_symbols((struct rebinding[1]){{"myFunction", hook_myFunction, (void *)&orig_myFunction}}, 1);
        printf("%d\n" , myFunction(1));
       return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
    }
}

This means fishhook can only hook system api or how to hook c function  written by ourself ?
Thanks.

fishhook can only hook functions that exist in other libraries.  It cannot
hook functions that exist in the same image (library or executable) as your
currently running code.
The reason for this is that there's no indirection that happens when you
call a function in your own executable.  It's just a plain jump to another
code address in your executable.
That's very different from calling a function in an external library, where
your executable uses dyld to figure out the address of the function being
called before jumping to it.
On Sun, Mar 6, 2016 at 10:59 PM, Zhengwei Yin<EMAIL_ADDRESS>wrote:

myFunction is a c function written by me in my project, I want to hook
it, but I tried this code failed.
int myFunction(int a){
return a+1;
}
static int (*orig_myFunction)(int);
int hook_myFunction(int a){
return a+2;
}
int main(int argc, char * argv[])
{
@autoreleasepool {
rebind_symbols((struct rebinding[1]){{"myFunction", hook_myFunction, (void *)&orig_myFunction}}, 1);
printf("%d\n" , myFunction(1));
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
This means fishhook can only hook system api or how to hook c function
written by ourself ?
Thanks.
—
Reply to this email directly or view it on GitHub
https://github.com/facebook/fishhook/issues/25.

Thanks！


Use league/oauth2-client v2

Hey 👋 are there any immediate plans to upgrade this before we fork?

I can't use this because it won't allow v2.  Can we update this please?


Add schedules and associated tests

This is to include the orphaned commits in Adam's branch

Tests pass, merging


why this happen? after build tsi index

Describe the issue here.
Relevant URLs

https://docs.influxdata.com/influxdb/v1.8/administration/rebuild-tsi-index/
Provide other relevant URLs (project issues, community threads, etc.)

After rebuild the tsi index ,I find the field_keys contains two same fieldkey addrNum,but one is integer one is string,why this happen?

this happened in influx 1.8.6


Request: add SNR

Hi there
is it possible to add the SNR-value in addition to the RSSI which is already being reported? This would help to determine if the connection is good. At the moment I have an RSSI between -98dbm and -107dbm but I dont know the SNR to evaluate if the connection is good or I should reposition the sensor.
all the best, Andrew

Mailbox_Guard_Sensor_HARestAPI reporting SNR, but in your place, I wouldn't even worry about SNR.. the best thing you can do is to change the gateway antenna.


How to handle event on enter

How to handle event on enter

I'm sorry what's the question? When you select an element in the dropdown and hit enter it triggers an onSelect event

Sorry
Actually I need to handle enter event without select from list below.

Well in that case it's probably easiest to fork the repo and modify the component code yourself and then import your version of the component. I don't plan on adding support for basic javascipt events.

you want to modify src/abbreviation-autocomplete.jsx


How can i trained this model?

Please add the steps how to train this model? what is the input and output

Hi, thank you for your interest in our paper. The output is the same as CenterNet. For the input, you need the additional foreground/background segmentation to train the attention module. We handle this part in the "sample" file (src/lib/datasets/sample/ctdet.py). Please note that you will have to adapt the path to your system. For further instructions on how to train, I suggest you checkout the original CenterNet GitHub. Our work is strongly based on theirs. To generate the segmentation GT, we used the code in (semi-supervised segmentation/).

I noticed that your front background segmentation attention is weighted on the backbone, not on the center point heat map. Then use the weighted features to generate predictions. Is my understanding correct?
Since each class of centernet net will generate a predictive heat map, what I call attention weighting is to weight the objects segmented by the instance on each hot soil. Do you have any thoughts in this regard?


Enable the PR-CA experience (code analysis issues are pushed to the code review)

Note that most of the logic lies in an assembly - the code there was reviewed, but this assembly is not yet signed. For this reason I will not push to master.
I will be sending other PRs relative to this branch.

LGTM

LGTM


Refactor TrackerEvents for event payload creation (close #291)

For issue #291, as part of a larger refactoring of Tracker and Emitter to allow event sending retry and batching by byte size.
Tracker.track(event) now directly creates a TrackerPayload, which is passed to the Emitter for storage and sending. The Tracker event processing is currently within the main thread.
TrackerEvent has been removed. Event sending callbacks have been partially removed - the functionality is gone but the builder options remain for now.

Thanks for your pull request. Is this your first contribution to a Snowplow open source project? Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
:memo: Please visit https://docs.snowplowanalytics.com/docs/contributing/contributor-license-agreement/ to learn more and sign.
Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.

The main difference between SimpleEmitter and BatchEmitter is GET vs POST. So it's an opportunity to be opinionated :)

I've copied and pasted the threadpool (and threadfactory) from Emitter into Tracker. I left the Emitter threads as is for now.


Display location for RKE2/k3s provisioned etcd snapshots

From https://github.com/rancher/rancher/issues/36941#issuecomment-1084448663:

Regarding two snapshots being created, this is expected behavior when using S3 snapshots. This is because we have a reference to both a local snapshot and the snapshot in S3. We should likely have a dashboard enhancement to display the snapshot storage location i.e. local vs. S3.

https://github.com/rancher/rancher/issues/36941 now in QA for the backend but they need the UI in order to properly test.

@rak-phillip Can you take a look?

@nwmac a PR is raised. I opted to group by location in the Snapshots table as a quick way to provide clear separation between local and s3

Test Environment:
Rancher version: v2.6-head b8cbc1a
Rancher cluster type: HA
Docker version: 20.10
Downstream cluster type: RKE2 node driver cluster

Testing:
Tested this issue with the following steps:

Create RKE2 cluster with S3 snapshot backup enabled
After cluster becomes Active, take a snapshot

Result - Pass
Dashboard now shows two separate locations for local and S3 etcd snapshots


[regression test](broker load) add case for without filepath

Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall


[CHORE] Make block cache weight 8MB

Description of changes
Summarize the changes made by this PR.

Improvements & Bug fixes

The cache code uses weighted capacity and specifies the capacity in MB units. But we currently assume blocks are 1 MB.

New functionality

None

Test plan
How are these changes tested?

[x] Tests pass locally with pytest for python, yarn test for js, cargo test for rust

Documentation Changes
None

Actually based on https://github.com/chroma-core/chroma/blob/d604342bcb153ab1b89b4bb7f7699802de1c943f/rust/cache/src/foyer.rs#L276 - this should be 8 * 1204 * 1024 to be in bytes. Will update.


Improvements when TrackTrivia is disabled

A few changes mainly around reducing the overhead of the TrackTrivia impl even when it isn't requested:

Span.IndexOfAny('\r', '\n') in LineReader
Moving all trivia properties to lazy-allocated objects to reduce the size of Syntax objects.
Avoiding work that's only relevant for trivia when it's not needed

I was playing around with two markdown documents for these:

The Markdig readme
A random doc article

Before

Method
Mean
Error
StdDev
Gen 0
Gen 1
Allocated

MarkdigReadme
315.18 us
0.695 us
1.019 us
36.1328
12.2070
169 KB

TracingArticle
43.94 us
0.080 us
0.115 us
5.6763
0.3052
23 KB

After

Method
Mean
Error
StdDev
Gen 0
Gen 1
Allocated

MarkdigReadme
305.87 us
3.347 us
5.010 us
32.7148
10.7422
136 KB

TracingArticle
41.33 us
0.136 us
0.200 us
4.4556
-
18 KB

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

306 of 306 (100.0%)  changed or added relevant lines in 24 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.04%) to 93.053%

Totals

Change from base Build<PHONE_NUMBER>:
-0.04%

Covered Lines:
24802

Relevant Lines:
26033

💛  - Coveralls

Great improvement, thanks @MihaZupan !


[cw305/cw310] Break out all HW/SW straps and connect to SAM3X

This is a first pass towards aligning the FPGA pinout with the planned ASIC pinout and pinmux configuration for the main use case. The patch does not fix everything, but it shuffles a couple of things around so that the SW, DFT and TAP pins are in the correct position (mainly to unblock #11934).
To that end, I had to move the second UART that is currently used for some tests and broken out on CW310. I moved that UART to one of the valid UART positions that we plan to use in our main usecase. To simplify things I have also reduced the amount of GPIOs that are connected to LEDs and DIP switches.
We still have to disentangle SPI_DEV and the JTAG on the FPGA - but that is left for a future PR.
@vogelpi I probably need some help form your end to check whether this still works for the CW305...
Note: these commits will have to be squashed to make this change atomic.

@msfschaffner, adding the missing semicolon in the CW305 xdc did the trick. I've successfully tested this PR on the FPGA board. LGTM! I took the liberty to force push the change into this PR.

@msfschaffner, adding the missing semicolon in the CW305 xdc did the trick. I've successfully tested this PR on the FPGA board. LGTM! I took the liberty to force push the change into this PR.

Thanks @vogelpi!

Looks like FPGA CI passes now.
Are we ok with moving this in?

Looks like FPGA CI passes now. Are we ok with moving this in?

lgtm.


✨ Bug: contributor type - peer review is being added incorrectly

On our website, you can filter our contributor list based on the contribution type. however in some cases, the contributor type is not correct.
For example people who have "peer review" on their names should have been invovled in our peer review process. This means they needs to have

contributed to the software-submission repository where reviews happen
served as an editor, reviewer, EiC or are a package maintainer who went through review.

Right now, our code here is incorrectly adding "peer-review" to the contributor type list here. Barnabas highlighted here is a great example. he definitely contributed to some of our repos but he did not participate in peer review. so i'm not sure why he's tagged with peer review. Many of the people in the list of peer review contributors are not correct. and then MANY are also missing from that list.
It might be good to evaluate the code to see how it's assigning contributor type and ensure it's populating it correctly for all types. this is the method that implements this
maybe it would be good to

[ ] have it evaluate whether the contrib types are correct following a comparison to which repos they are listed in as contributors (note this should not manually fix yet as we may sometimes add people manually). but it could issue a statement like - oops - the following people are not listed in this repo's all-contributors json file but that have this type  listed in their contrib type list.
[ ] then add any new contributor types that they should have

this was also fixed via #42 - the fix turned out to be a much simpler approach that is more fail proof!!


[Question] How to respond correctly to XboxGameBarWidget.RequestedThemeChanged?

Whenever I try to set the new value of XboxGameBarWidget.RequestedTheme an exception with message "The application called an interface that was marshalled for a different thread. (Exception from HRESULT: 0x8001010E (RPC_E_WRONG_THREAD))" is throwed. I tried run an action using the Window.Current.Dispatcher and CoreApplication.MainView.CoreWindow.Dispatcher but without success. So, how can I do it?

Hi. In order to ensure you are on the right thread you have to use a dispatcher that is associated with your widget UI thread. Likely, by using Window.Current.Dispatcher and CoreApplication.MainView.CoreWindow.Dispatcher it is the wrong dispatcher. In our sample code we use an element in the view's dispatcher, something like this:
co_await resume_foreground(RequestedThemeTextBlock().Dispatcher());
You could also save the dispatcher off when your widget instance is activated in OnActivated, so that way you know you are using the right dispatcher. Let me know if you still aren't able to get it to work.

I'm going to resolve this question.  Please reactivate if your question wasn't answered or you still have issues. Thanks!

I'm going to resolve this question.  Please reactivate if your question wasn't answered or you still have issues. Thanks!


Can this lib with Play Services version 5 or 7? basically older?

Thank you

Closing, needs more info.

Ohh yes its all good, can close it


Inconsistent ICMP Handling

ICMP handling is quite inconsistent between our probe modules. This might be a sign that we should not be handling this within the probe modules themselves. For example, TCP echo scan just drops all ICMP responses, UDP handles some correctly, but not all, and ICMP module has yet a third set of logic. This is all complicated by the fact that the ICMP sender might not actually be server we tried to send a packet to in the first place.

Some notes:
module_bacnet.c: ICMP support. Looks like copy/paste from UDP
module_dns.c: ICMP support. Looks like copy/paste from UDP
module_icmp_echo.c: Some ICMP support. Amazingly less than UDP though
module_icmp_echo_time: Same as module_icmp_echo.c
module_ntp.c: ICMP support. Looks like copy/paste from UDP
module_tcp_cisco_backdoor.c: No support. I thought we removed this from master. 🤔
module_tcp_synscan.c: No support
module_tcp_synackscan.c: No support
module_udp.c: Pretty reasonable support. Not sure if it works.
module_upnp.c: ICMP support. Looks like copy/paste from UDP

I think the right thing to do here is to have two helper functions. One that is called in validate and one that's called in process. All modules will support ICMP, but responses (except for in the ICMP module) won't be considered successes and will be filtered out by default. All modules will necessarily have the same ICMP fields.
@paul-pearce @dadrian thoughts?

I'm going to start this process by abstracting out the ICMP logic used in module_udp.c into a helper function and then migrating the modules that copy/pasted code from this to use the helper. This includes: module_bacnet.c, module_dns.c, module_ntp.c, and module_upnp.c. I'm going to PR that by itself, as it should have no impact on current functionality. Then I'll work on migrating the other probe modules.


composer authentication failed

When deploying the docker-compose on my digital ocean server (make with the docker-machine create command) I get this composer error.
[Composer\Downloader\TransportException]
The 'https://repo.magento.com/packages.json' URL required authentication.
You must be using the interactive console to authenticate
When i change the volume of app data to ./composer/.compose (and ofcourse create the nessesary auth.json in this folder) it works locally, but not when deploy it on my production server. I google the problem and found that there is also a command that can be used:
CMD composer config --global http-basic.repo.magento.com PUBLIC_KEY PRIVATE_KEY
to set the correct auth.json. Sadly this didnt do much either. Any idea whats wrong?

I'm fixing this right now. This is due to the way composer is being mounted.

dupe of https://github.com/mageinferno/docker-magento2-php/issues/18 -- hang tight new build coming which fixes all of this :)

All built:
https://hub.docker.com/r/mageinferno/magento2-php/builds/
https://hub.docker.com/r/mageinferno/magento2-nginx/builds/
Note that these new dir's depend/mount to /var/www/html instead of /srv/www. The www-data user's home directory was /var/www, and the simplest change to get all the composer functionality working correctly was to change to this dir.
I just release 5.0.0 of the docker-compose file to https://github.com/mageinferno/magento2-docker-compose -- mainly a ton of fixes for composer. Automated builds with composer and all other composer functionality should now work with zero errors. This also brings back the ability to mount the composer cache from the host to the container, saving a ton of time with installs.


Sprites not loaded correctly on zoom in / out buttons

I'm facing a strange behaviour while using the map. I have the following map :
<GoogleMapReact
    bootstrapURLKeys={{key: Constants.GOOGLE_API_KEY}}
    center={Constants.GOOGLE_MAP_CENTER}
    onChildClick={this.handleClickOpen}
    zoom={1}
    >
/* ... */
</GoogleMapReact>

And I m having the following zoom in / out buttons :

Do you have any idea ?

jsbin?

@mfrachet Let me know if you still need help. I am closing the issue as for now, it is not reproducible on my end.


Configure linter

Checkstyle's configuration was deleted in https://github.com/SpoonLabs/diffmin/pull/27. It would be good to bring it back.

Do you have any non-formatting rule in mind? Because everything that has to do with formatting is handled by the auto-formatter.

One purpose was to check if all public methods have JavaDoc. There are many rules written here which might be helpful too. For example, SimplifyBooleanExpression, CheckForFallThrough, etc.

Sure, you could use such checks. I'd just advise avoiding formatting checks, and let the auto-formatter deal with such.

I'd just advise avoiding formatting checks, and let the auto-formatter deal with such.

Right. I will have to be careful there because I don't want to introduce conflict rules or redundant rules.


Variational Inference for TuringLang

We can consider adding support for the following variational inference methods to Turing

Automatic derivatives variational inference [1,4]
Variational inference with normalizing flows [2]
Markov Chain Monte Carlo and variational inference: Bridging the gap [3]
Black-box α-divergence minimization [5]

Comment: Project 3 should be interesting and also relatively easy since we have HMC support already.
Related projects:

https://github.com/stan-dev/stan/tree/develop/src/stan/variational
https://github.com/jmxpearson/VinDsl.jl (julia)
https://github.com/biaslab/ForneyLab.jl (julia)

[1]: Kucukelbir, A., Tran, D., Ranganath, R., Gelman, A., & Blei, D. M. (2017). Automatic differentiation variational inference. The Journal of Machine Learning Research, 18(1), 430-474.
[2]: Rezende, D. J., & Mohamed, S. (2015). Variational inference with normalizing flows. arXiv preprint arXiv:1505.05770.
[3]: Salimans, T., Kingma, D., & Welling, M. (2015, June). Markov chain Monte Carlo and variational inference: Bridging the gap. In International Conference on Machine Learning (pp. 1218-1226).
[4]: Kucukelbir, A., Ranganath, R., Gelman, A., & Blei, D. (2015). Automatic variational inference in Stan. In Advances in neural information processing systems (pp. 568-576).
[5]: Hernández-Lobato, J. M., Li, Y., Rowland, M., Hernández-Lobato, D., Bui, T., & Turner, R. (2016). Black-box α-divergence minimization.
cc @cpfiffer @xukai92 @willtebbutt @mohamed82008

Regarding point 2, @rpinsler gave a very interesting presentation on developments in this area recently, that we should maybe look at to decide what to target.

I suspect that mean-field VI is probably going to be the easiest to implement first, and it'll be easier to build up the infrastructure to support the more complex VI stuff like ADVI and stochastic VI. I think the infrastructure part will be very important to do in a reasonable way, because it seems like there's a fair amount of heterogeneity in VI methods.
We should highlight this to the JSoC people: @sharanry and @torfjelde.
I really enjoyed reading Variational Inference: A Review for Statisticians for an overview of the VI-verse. Figured I should throw this paper in here while we're tossing knowledge around.

Thank you @cpfiffer !
I would also like to add Operator Variational Inference (OPVI) [1] to the bunch. It's basically a more general description of VI which a lot of standard VI methods are instantiations of, e.g. AVDI, Stein Variational Gradient Descent. This seems like a promising design, and is also the approach taken by pymc3.
Worth noting that for ADVI and Normalizing flows will depend heavily on Bijectors.jl, therefore there might be some work to be done there too. I already have a working example of ADVI using Turing but I have to compute the jacobian of the inverse transform using ForwardDiff. Maybe this functionality should already be exposed in Bijectors.jl? For example I believe this is available in similar packages e.g. TransformVariables.jl (see TransformVariables.jl/src/generic.jl#L204).
I'll be done with exams on Friday, so then I'll start looking more into this.

Ranganath, R., Altosaar, J., Tran, D., & Blei, D. M., Operator Variational Inference, CoRR,  (2016), https://arxiv.org/abs/1610.09033.

Thanks for the welcome @cpfiffer!
As discussed in last week's meeting, I believe that we need a lot of discussion on the design of this project. Especially in order to be able to have a common framework for these methods which will enable us to add new methods/techniques in the future with relative ease. @xukai92 suggested Mnih and Rezende (2016) as a good starting point to design abstraction of VI which would support the commonly used ELBO and IWAE.
Mean Field VI keeping the abstractions for other techniques in mind might be a good starting point?
I have exams till Tuesday, 14th. After which I will start with the suggested literature and hopefully contribute to this discussion.

Is there still demand for Stein Variational Gradient Descent (SVGD) variational inference?
I currently have a julia implementation that I used for my research,
I might be able to contribute it to Turing if desired.
Also, I think having Kernel Stein discrepancy for MCMC diagnostic would be useful.

Is there still demand for Stein Variational Gradient Descent (SVGD) variational inference?

That's great, and there is indeed! Feel free to give it a go and just ask me if there's anything (you can find me on the Julia slack as torfjelde). As VI is still heavily under development, the interface is yet not documented. If you want, I can point you to a blog post of mine where I go through a rather contrived example of implementing CAVI in this interface. Or you can just checkout the implementation of ADVI in src/variational/advi.jl. A immediate difference is of course that you have to also update the parameters of the objective in your implementation of optimize!.

Also, I think having Kernel Stein Discrepancy for MCMC diagnostic would be useful.

Funny you mention that; I'm fairly familiar with the KSD and implemented some stuff over at https://github.com/torfjelde/KernelGoodnessOfFit.jl. For example I have an implementation of the KSD as a goodness-of-fit test. Seems like what you're looking for? I wasn't sure if people in the Bayesian community were actually using the KSD as a diagnostic, though I recall it being mentioned as a use-case. Development of that package halted for a bit as I've been occupied with Turing for the moment, but my intention is to develop it further at some later point. And if there is an interest and it intersects with Turing.jl's interests as a MCMC diagnostic, the "later" quickly becomes "soon":)

I wasn't sure if people in the Bayesian community were actually using the KSD as a diagnostic, though I recall it being mentioned as a use-case.
And if there is an interest and it intersects with Turing.jl's interests as a MCMC diagnostic, the "later" quickly becomes "soon":)

I'm personally not a statistician and indeed KSD methods don't seem to be a popular tool at the moment. However, I think if KSD is right at the fingertip of the users of Turing.jl we might see a gain in popularity? Especially since there seem to be a distrust against Effective Sample Size (ESS) as a metric for goodness-of-fit. It could also be used to quantify goodness-of-fit of various variational inference models.

Fixed by https://github.com/TuringLang/AdvancedVI.jl


Source code

https://github.com/TuberBoy/GPSoAuth/blob/dd36ae9b1fbd1b77b8608a3de075ed34ac18ae73/index.php#L1-L2

I will share soon... I am busy now to complete clients project

Closing this in favor of my own package:
https://github.com/89z/googleplay


[Event Request] Codeunit 1218 "Map Incoming Doc to Purch Doc" - OnProcessLinesNotFound

Hello,
Please add a new publisher event in function ProcessLines as follows:
local procedure ProcessLines(PurchaseHeader: Record "Purchase Header"; DataExch: Record "Data Exch."; ParentRecordNo: Integer)
var
    IntermediateDataImport: Record "Intermediate Data Import";
    RecRef: RecordRef;
    CurrRecordNo: Integer;
begin
    CurrRecordNo := -1;

    with IntermediateDataImport do begin
        SetRange("Data Exch. No.", DataExch."Entry No.");
        SetRange("Table ID", DATABASE::"Purchase Line");
        SetRange("Parent Record No.", ParentRecordNo);
        SetCurrentKey("Record No.");

        if not FindSet then begin
            OnProcessLinesNotFound(DataExch, PurchaseHeader);
            exit;
        end;

New Publisher event:
[IntegrationEvent(false, false)]
local procedure OnProcessLinesNotFound(var DataExch: Record "Data Exch."; var PurchaseHeader: Record "Purchase Header")
begin
end;
The functional value of adding this event:
In a later request, we asked for an event to skip the creation of a purchase line for the total document amount (https://github.com/microsoft/ALAppExtensions/issues/10196).
There can be situations when there is no line to be processed when getting to this ProcessLines function.
In the Incoming Document, there is a field called Order No. We have a development task to create purchase lines based on the Order No. In case there is no line to be processed, we need this new event to create purchase lines based on the Order No,

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


Install ibm-db-sa if not ARM

Describe your changes:
Fixes #9593 by installing idb-db-sa for those target platforms that support it. We'll continue to monitor the IBM discussion, but having the amd image containing the dependency should solve most of the issues raised by the community, since the default target platform for deployments of the ingestion containers is amd

Type of change:

[ ] Bug fix
[ ] Improvement
[ ] New feature
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation

Checklist:

[x] I have read the CONTRIBUTING document.
[ ] My PR title is Fixes <issue-number>: <short explanation>
[ ] I have commented on my code, particularly in hard-to-understand areas.
[ ] For JSON Schema changes: I updated the migration scripts or explained why it is not needed.

Merging this as failing tests are not related to this.


Additional variables from GENeSYS-MOD for openTEPES and Plan4EU

Additional/changed variables after requests from @erikfilias and @sandrinecharousset

@tburandt @loeffko, this PR has not been active for a year - please review whether the proposed changes are still relevant.
If yes, please resolve the merge conflicts or start a new branch and PR with the relevant changes. Then, close this PR.

@danielhuppmann @loeffko @tburandt it appears that except maybe for the emissions.yaml file, all other changes are already included in the master or in more recent PRs. I would suggest you review the changes in emissions.yaml and create a new PR if necessary, and close this one.....


Updating the docs to reflect the fact that React.memo can be used wit…

Updating the docs to reflect the fact that React.memo can be used with both class and functional components
Currently it incorrectly conveys that React.memo can only be used with functional components.
https://reactjs.org/docs/react-api.html#reactmemo
details #13937

@gaearon can you have a look please?


"MD5 hash mismatch for message id" for empty messages.

Hi guys,
I faced with next problem:
I put message from AWS CLI which consist of one space by next command:
aws sqs send-message --queue-url https://sqs.us-west-2.amazonaws.com/77... --message-body " " --delay-seconds 0

After that I have an exception when trying to get this message from the queue from my c# code:
Code:
ReceiveMessageResponse receiveMessageResponse = _objClient.ReceiveMessage(receiveMessageRequest);

Exception:
{"MD5 hash mismatch for message id 5ea584f8-607a-4110-963b-7cc015ce1d05"}

I want to delete problem messages like this from my queue, but I can't do this, because can't achieve ReceiptHandle from receiveMessageResponse variable, because of exception

The .NET SDK does not properly handle all-whitespace message bodies or message attributes. You would need to delete the problem messages like this using a different tool, like the AWS CLI.

Thanks for your reply

Even I'm getting "MD5 hash mismatch for message id" for empty messages. while reading messages from SQS. Unable to handle it and unable to delete it. Anyone got solution for this, please suggest.


feat(cast): add ability to specify request headers

Component
Cast
Have you ensured that all of these are up to date?

[ ] Foundry
[ ] Foundryup

What version of Foundry are you on?
No response
What command(s) is the bug in?
No response
Operating System
None
Describe the bug
When using cast with an RPC endpoint behind Cloudflare Proxy, responses are 403s.
When testing the same rpc call with curl, it works fine. It seems that using curl without a user agent also returns 403s, so it could be that cast doesn't set any user agent.
I found no option in cast to set request headers.

Generally supportive of this
We already support adding of custom headers in Alloy, should be relatively easy to add this to cast
https://github.com/alloy-rs/examples/blob/3b6d4a7cb465a0cb62a396735a8e26baa188ea55/examples/layers/examples/hyper_http_layer.rs#L92-L94

I don't we need a layer for this, the current foundy_common::provider implementation supports adding custom headers to the underlying reqwest::Client. See: https://github.com/foundry-rs/foundry/blob/16a013fafb519395dc1aca810dabc3fffb7d02a0/crates/common/src/provider/mod.rs#L238.
We just need to expose a cli flag headers: Vec<String> in RpcOpts
https://github.com/foundry-rs/foundry/blob/16a013fafb519395dc1aca810dabc3fffb7d02a0/crates/cli/src/opts/ethereum.rs#L19, then instantiate a provider with headers set.
e.g usage:
cast call 0x.. "balanceOf(address)" 0x. --rpc-url --headers name:value

Generally supportive of this
We already support adding of custom headers in Alloy, should be relatively easy to add this to cast
https://github.com/alloy-rs/examples/blob/3b6d4a7cb465a0cb62a396735a8e26baa188ea55/examples/layers/examples/hyper_http_layer.rs#L92-L94

Would setting a default user-agent be a valid additional change? (might be tedious to keep specifying it)

Given that cast is meant to be invoked standalone - independent of the context of a foundry project it cannot rely on the foundry.toml configuration. I would recommend assigning it to an environment variable and passing that in.

Would setting a default user-agent be a valid additional change? (might be tedious to keep specifying it)

Given that cast is meant to be invoked standalone - independent of the context of a foundry project it cannot rely on the foundry.toml configuration. I would recommend assigning it to an environment variable and passing that in.

We can use a env variable instead: ETH_RPC_HEADERS

I think a default user-agent still makes sense, curl does this too


Sending alert message and notification using Firebase

Feature:  - Alert message
Expected Behaviour:  - Notification and alert messages will be sent to her added contact members. So that their contacts can track the current location of the user at that time. This would be done by sending an event from firebase to another user, if another user receives that event the notification/alert box will show up.
You can take help from UI Provided.

I would like to contribute to this issue. I am a part of GSSoC'21

I would like to work on this issue!!

I would like to contribute to this issue. I am a part of GSSoC'21

What's your update? Can you tell your workflow?

hi i am very new to this i am still figuring out what i would be coding,just give me a day or two and i was wondering inside of msgs what if we make it appear as a pop up.

Hi di I am unable to code this. I am really sorry. I think you can assign it to the other participant interested

Can you assign me this?
@hiashutoshsingh


Link fullres: remove tiny url

Is your feature request related to a problem? Please describe.
in https://github.com/swisstopo/topo-satromo/blob/db0fb783d88f491cf67bb63e6e642a3bf8ed4fba/satromo_publish_stac_fsdi.py#L182
we use tinyurl to reduce the length of url for the part for the preview website.
due to the fact that l in geoadmin stac are limited to a length of 200
Describe the solution you'd like
after geoadmin stac is pacthed with at least 1024 length for links, we replace
'https://tinyurl.com/sat54'
with
'https://cms.geo.admin.ch/Topo/umweltbeobachtung/satromocogviewer.html'
Additional context
swisstopo cogis informed via  Pasquale Di Donato

opened a task for service stac BGDI: internal https://jira.swisstopo.ch/browse/PB-340

tested with https://sys-data.int.bgdi.ch/#/collections/ch.swisstopo.swisseo_s2-sr_v100/items/2024-03-07t103911


Flashcard v1 Content

Describe the solution you'd like
Write all the content for flash cards in the Learn Track. This one is on me so that no-one is blocked later on when dev work actually starts.
It is currently underway.

Completed in:
https://github.com/kernel-community/kernel-v2/commit/36051b263810815b49072f41d7664da4d3aaee9f
https://github.com/kernel-community/kernel-v2/commit/cabc49afecd56dbf328b9abd3d132c5e21eae62c
https://github.com/kernel-community/kernel-v2/commit/3817e633ef37b6cb7ee3814830ed0230ba356ac2
https://github.com/kernel-community/kernel-v2/commit/045de26501a61e4477a03b94def9ef8adaf0d97d
https://github.com/kernel-community/kernel-v2/commit/c4287b4a4c56b61166726578818123b4a8f0c6a1
https://github.com/kernel-community/kernel-v2/commit/dac24cdffab5ef30da2c53b0022ebed5402829d2
https://github.com/kernel-community/kernel-v2/commit/e056bc272b1ace89b33c2bea52dcc59ede6b7dd8
https://github.com/kernel-community/kernel-v2/commit/2c113f69b8adab6bd711fd7cb3163ed00011449d
https://github.com/kernel-community/kernel-v2/commit/9060c72abe73b819051470afe75df51f149a873c


update to rust-1.6.0

:+1: Waiting for this

We have a preliminary PR up here for rust 1.7.0
Once we do a bit more validation, I'll make a PR into here too. (early testing is always appreciated :smile: )

@derekstraka @cardoe Thanks for putting together this change and the discussions with the rust core team (hopefully in the next few versions we can eliminate the need to patch the rust source completely).  I tested with this branch in combination with this image and things build and seem to work properly.
:+1: for the change -- I think it makes sense to open up a PR against this repo sooner rather than later.


added uri encoding to email

Hi! There is issue when using get_user method, as when you provide little bit untypical email address (like<EMAIL_ADDRESS>it will fail, as diacritics won't pass properly through sendinblue api, and server will return 400 error.
It solved issue for me, so I thought I'll share.

Hi @Bugari
Thank you for contacting us!
We appreciate your suggestions & merged the PR.
Regards
SendinBlue Team


DEAD PACKAGE (!?)

1.) iOS has been unusable since 2022 with no signs of improvement or even whispers of working towards a solution.
2.) As of xCode 14.3 I believe this package is completely unusable as it won't even compile.
3.) 54 PRs and the vast majority are bot generated
I don't know of any other packages that handle receiving data from another source in RN. Does anyone know of any packages/forks/built-in RN features that allow for this functionality to work again?

Have the same issue - it won't compile RN 0.69.9. I haven't found any alternatives yet though

Compile works on 0.71.10 but cannot find my app in Share list

I can not get shared data anymore with React Native 0.71.8, before it's work on 0.68.2

@fukemy But app is visible in share list?

@indapublic everything work normally until I upgrade React Native version to 0.71.8

ok I found problem, in the Swift file ppl need to modify the groupIdentifier

@fukemy Can you build small example please? I cannot find what I missed, my app is absent in Share list

Did u get a log from console?
ReceiveSharingIntent.getReceivedFiles((datas) => {
      console.log('getReceivedFiles', datas)
      if (datas && datas.length > 0) {
        RootNavigation.navigate('ShareFileToChat', {
          datas: datas
        })
      }
    },
      (error) => {
        // console.log('getReceivedFiles error', error); => alert a log here
      },
      'some unique' // share url protocol (must be unique to your app, suggest using your apple bundle id)
    );

No, I meant my app is not visible in Share list if I debug app on real device via cable.
But app is visible when I tried to run in Simulator.
Anyway app wasn't focused, like here

I solved for the issues by debug each step carefully.
First please run the Share Extension on your real device, put some debug here:

If this line triggered, it's mean the extension work correctly and will send data to the host app, next time you open the ReceiveSharingIntent class then debug those line:

From here you can check what problem happening, good luck to you

@fukemy I'll repeat my request. If it's not difficult - could you share the project where everything works for you?

ReceiveSharingIntent

In the handleUrl(url: fileUrl) function, I have observed that the UserDefaults value is nil. I have previously confirmed that the value is successfully saved and retrieved in ShareViewController. However, when dealing with the ReceiveSharingIntent functionality, the value appears to be null. What is the issue here?

@indapublic i had the same problem since xcode 14.3 upgrade.
I finally got a solution thanks to @timedtext great work on his plugin.
with a little patch i got react-native-receive-sharing-intent working as before with zero manual configuration.
i made a simple demo here https://github.com/achorein/expo-share-intent-demo, enjoy

@achorein Thanks man! I'll check your demo

I'm facing the same issue. Moreover,  in IOS simulator in share variants the app appears, but if you sharing something, you can not get that in main app as ReceiveSharingIntent.getReceivedFiles doesn't call. Has anyone solved this issue or could help?

Finally I've managed to get it work on Simulator, but when I archived release app and push it to real device my app still invisible in share list. I have no idea how to get it work. Please help.

Well finally I've got it work!
If someone struggles as I had, please don't ignore the following recommendation in IOS configuration documentation
INFO
Please Change Share Extension Target deployment version to Same as Main Project Target deployment version

Hope this help!


Sso

Trying to figure out how to implement single sign on, any help would be appreciated

please try this sample app for SSO: https://github.com/IntuitDeveloper/OAuth2_PHP here. It is the exact same logic, but with different query parameters as you can see.


Fix flaky test

Issue regarding this PR
The issue is caused by HashMaps. The orders of elements in the HashMaps are not the same every time being called. And when you pass the parameters HashMap to URLIMpl, the order of parameters in the resulting URL is non-deterministic. In this case, LinkedHashMap is applied to replace Hash in order to ensure the orders are not changing.

@tt0suzy Thanks a lot for your help.


Use xgo in build.sh for easier cross compilation

xgo: https://github.com/techknowlogick/xgo
I tried to write a cross-platform script that uses only the go compiler, but it's very (you have to extract mac-specific SDKs from Xcode, build and compile a toolchain for mac).
xgo seemed to be the easiest way for cross compilation. it uses docker on the backend, It should work on any platform
I tested compilation and example_python on x86_64 linux, can't say for other platforms.

@ignassew thanks for contribution. i will take a look and also make some tests before merging it :-)


Evaluation for empty annotation

I have noticed something but I am not sure,
in preprocessing part, in load annotations, there is a line that
if len(annots) == 0: annots = [[]]
then, this is converted to numpy array.
This is used in Frontend in the evaluation part which is the line
all_annotations[i][label] = annotations[annotations[:, 4] == label, :4].copy()
Therefore, when the code tries to reach annotations[:, 4], it pops out an error, I think.
Moreover, np.array([[]]) has a shape of (1,0), in the following part, for the empty annotations,
if annotations.shape[0] == 0: is added.
However, because of the shape of (1,0), that part probably wont make what is intended.
I may miss some points, if I am misunderstood something or I am wrong, please correct me.
Thanks in advance

i have the some confused when  i want add some negative dataset(without object) in
could you solve this problem?


cbuild setup with --packs option should install required packs

Describe the bug
When a BSP is loaded that requests a DFP with a certain version, the command cbuild setup with --packs option should install the required pack.
To Reproduce
Install these packs:

<EMAIL_ADDRESS>https://github.com/VladimirUmek/NXP_FRDM-MCXN947_BSP/releases/tag/v19.1.0-dev

Use this project: Simple_Device_project.zip
Execute cbuild setup, it should show the following errors:
cbuild setup Simple.csolution.yml --packs --context-set
error csolution: no component was found with identifier 'Device:Config Tools:Init'
error csolution: processing context 'Simple.Debug+MCXN947VDF' failed

Expected behavior
cbuild downloads the required DFP pack 19.0.0, see:
https://github.com/VladimirUmek/NXP_FRDM-MCXN947_BSP/blob/main/NXP.FRDM-MCXN947_BSP.pdsc#L20
Note: cpackget add installs required packs, but I have used the uVision PackInstaller with a click on the pack file.
Environment (please complete the following information):

CMSIS-Toolbox 2.6.1
OS: Windows

Note that cbuild is intentionally calling cpackget --no-dependencies, fully relying on csolution to evaluate dependencies, in order to avoid that unnecessary pack versions get installed. Some packs require other packs only under certain circumstances, however all used pack versions required by a CMSIS solution project are known by csolution.

The call with --no-dependencies was implemented as some packs had a long requirement list and forced in this way the installation of many unrelated packs.
This is what we got:
MCXN947_BSP requires DFP 19.0.0 or higher to work.
Template project contains no pack versions which avoids that it needs to be constantly updated. But it lists the right packs (so this requirement list is correct, just versions are missing).
Potential solution:
Once the requested packs by the project are loaded, use the requirement list in the PDSC to check if pack versions are matching.


Jenayah: Watch indycrwindowskey.com

Jenayah requests the watch of the watch_keyword indycrwindowskey\.com. See the MS search here and the Stack Exchange search here.

indycrwindowskey\.com has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by Zoe in Charcoal HQ


Data provided do not have the raw counts in the 'counts layer'

Hi,
Thank you for the nice tool and resource! I downloaded the lung and the human immune data from the figshare website, but found there were no raw counts data in the adata object. For example, from https://figshare.com/ndownloader/files/25717328, I downloaded the data:
adata.layers['counts']

array([[ 0.  ,  0.  ,  0.  , ...,  1.  ,  0.  ,  0.  ],
       [ 0.  ,  0.  ,  0.  , ...,  0.  ,  0.  ,  0.  ],
       [ 0.  ,  0.  ,  0.  , ...,  0.  ,  0.  ,  0.  ],
       ...,
       [ 0.  ,  0.  ,  0.  , ..., 54.67,  0.  , 93.26],
       [ 0.  ,  0.  ,  0.  , ..., 14.62,  0.  , 84.9 ],
       [ 0.  ,  0.  ,  0.  , ...,  5.98,  0.  ,  0.  ]], dtype=float32)

they are not integers. Btw, I got the warning when import the data:
 OldFormatWarning: Element '/layers/counts' was written without encoding metadata.
  return {k: read_elem(v) for k, v in elem.items()}

the version of scanpy and anndata are
scanpy==1.9.1 anndata==0.8.0

Thank you so much!
Best,
Min

I noticed this about the counts too...

I am not sure exactly what was uploaded to FigShare. We would need to ask @LuckyMD about that but he is unavailable for the next few months.

 OldFormatWarning: Element '/layers/counts' was written without encoding metadata.
  return {k: read_elem(v) for k, v in elem.items()}

This warning is because the files were written with an older version of anndata and you are using v0.8.0 which expects a different file format. It should be back-compatible though so no need to worry about this.

Hi @wconnell and @genecell,
Sorry for the late reply here. The reason not all of these are integers is that we use TPMs as "raw counts" for full-length data without UMIs. I believe this is mentioned in the methods section of the paper as well. In the immune dataset, the Villani data were measured using Smart-seq2. We don't have raw read counts for this dataset, but instead use TPMs which are already gene length corrected after alignment. I hope that clarifies things.

Lung data should have integer counts though afaik, as there are no full length data in that task... did you find this issue also for the lung data?

Thank you for clarifying @LuckyMD; I found the detail in the Sup Info that Villani was excluded from scran norm b/c only TPM was provided.
I'm not sure about the lung data.

Hi @lazappi @LuckyMD @wconnell Thank you for your responses! yeah, the lung data did not have the integer counts, as I imported the data via:
adata = sc.read(
    "data/lung_atlas.h5ad",
    backup_url="https://figshare.com/ndownloader/files/24539942",
)

The integer counts are important as some methods rely on raw counts data.
Thank you very much!
Best regards,
Min


remove defaultComponents from core and make it internal for tests

Description:
This PR removes defaultComponents from core and make it internal for tests.
Note: This PR depends on the PRs that remove it # 4055, # 3992
Link to tracking Issue:
Issue # 3474

closing PR, merged upstream


update deps

Pull Request Test Coverage Report for Build 32

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+1.09%) to 48.462%

Totals

Change from base Build 34:
1.09%

Covered Lines:
63

Relevant Lines:
130

💛  - Coveralls


ParallelUpdater cannot fully exploit multiple GPUs

ParallelUpdater improves performance when using simple models and/or large mini batches. On the other hand, for complex models, ParallelUpdater currently fails to exploit multiple GPUs, and it becomes almost sequential.
I examined the profiler results, and concluded that Python is just too slow to issue kernels for multiple GPUs. The possible way to cope with this issue is to use multiple processes in ParallelUpdater. To enable that, cupy needs the feature to handle inter-process communication. It can be done using the inter-process memory handle of CUDA (http://docs.nvidia.com/cuda/cuda-c-programming-guide/#interprocess-communication).
The following is a profiler result with 4 GPUs and ResNet-152. It clearly shows that multiple GPUs are used in sequential.

I have a patch which uses CUDA's interprocess communication and multiprocessing to give near-linear speedup for data parallelism across multiple GPUs, but it was written for Chainer 1.5 and I'd have to do some work to bring it up to compatibility with the latest version. Is there interest in this? I'm not sure when I'll get time to work on it, but it'll probably be in the next few weeks.

We are very interested in your code. It is great if you can spend some time to make your code compatible to the current Chainer and send a patch, but if it is difficult just sharing your code as is is still much helpful to us.

Last week, I spend some of my time to see if we can improve chainer's multi-GPU performance with python multiprocessing module. The experimental coding using the multiprocessing module with CUDA IPC APIs has been nearly finished. So, I'm attaching the results with ResNet-152 on 4 GPUs. As you can see from it, multiple GPUs are running in parallel and decent speed-up is achieved even in case of very deep network like ResNet-152.

If you have interest in it, I will spend some more time to refactor and clean-up the code and send PR.  For now, some features are implemented in kind of not-easy-to-maintain manner...

It looks great! We are very interested in the improvement of parallel learning with better multiprocessing with CUDA IPC APIs. Would you send us a PR?

Thank you for your comment. I've just started code refactoring and clean-up work, and I think I can send you a first PR today or tomorrow if it is OK that the patch is not available with chainer's trainer module. Now, I'm testing multi-GPUs training w/o trainer.

I spent some time looking through the patch I wrote earlier; it was fairly specific to the task I was using it for (machine translation) and would need a lot of work to make it general enough. It sounds like what anaruse has is more helpful, but I'm happy to help in any way I can. Here's my old code in case it's useful to anyone (the only thing this depends on is a wrapper for CUDA's ipcMemHandle API).


Add support for adding SSL certs

From<EMAIL_ADDRESS>on June 21, 2011 20:36:58
http://groovy.codehaus.org/modules/http-builder/doc/ssl.html
Original issue: http://code.google.com/p/rest-assured/issues/detail?id=79

From<EMAIL_ADDRESS>on June 25, 2011 14:51:09
Status: Started

From<EMAIL_ADDRESS>on June 28, 2011 07:00:10
Status: Fixed


small fixes in docs

thank you for the library :)

thank you for the library :)

Thank you for your contribution :)

Sure!
btw. did you see https://github.com/pawcoding/astro-loader-pocketbase ?
Maybe a collaboration would make sense :)

@elbotho Yes, I saw that recently. I contacted him. You're right in the fact that it would be better for the community to have only one reference for PocketBase and Astro.


expose the version information via prometheus

Simply expose the OSM version information as a prometheus metric.
Signed-off-by: Sean Teeling<EMAIL_ADDRESS>

Codecov Report

Merging #4679 (9b7fce6) into main (a918abf) will increase coverage by 0.77%.
The diff coverage is 60.00%.

:exclamation: Current head 9b7fce6 differs from pull request most recent head 7c6f468. Consider uploading reports for the commit 7c6f468 to get more accurate results

@@            Coverage Diff             @@
##             main    #4679      +/-   ##
==========================================
+ Coverage   68.91%   69.68%   +0.77%
==========================================
  Files         219      217       -2
  Lines       15077    15126      +49
==========================================
+ Hits        10390    10541     +151
+ Misses       4632     4535      -97
+ Partials       55       50       -5

Flag
Coverage Δ

unittests
69.68% <60.00%> (+0.77%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

cmd/osm-bootstrap/osm-bootstrap.go
44.67% <0.00%> (-0.93%)
:arrow_down:

cmd/osm-controller/osm-controller.go
15.04% <0.00%> (-0.28%)
:arrow_down:

pkg/metricsstore/metricsstore.go
92.43% <100.00%> (+0.25%)
:arrow_up:

pkg/service/types.go
71.42% <0.00%> (-28.58%)
:arrow_down:

cmd/cli/verify_connectivity.go
36.84% <0.00%> (-5.27%)
:arrow_down:

pkg/cli/verifier/connectivity_pod_to_pod.go
53.65% <0.00%> (-2.87%)
:arrow_down:

pkg/envoy/lds/inmesh.go
79.43% <0.00%> (-0.32%)
:arrow_down:

pkg/smi/client.go
73.45% <0.00%> (ø)

... and 11 more

Continue to review full report at Codecov.

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


Protocol Buffer library not compatible

When running the inference ant train script with the sample data and the suggested model in the provided docker, following error occurs:
[libprotobuf FATAL google/protobuf/stubs/common.cc:83] This program was compiled against version 3.5.1 of the Protocol Buffer runtime library, which is not compatible with the installed version (3.19.2).  Contact the program author for an update.  If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library.  (Version verification failed in "/tmp/build/80754af9/opencv-suite_1535558553474/work/modules/dnn/misc/caffe/opencv-caffe.pb.cc".)
terminate called after throwing an instance of 'google::protobuf::FatalException'
what():  This program was compiled against version 3.5.1 of the Protocol Buffer runtime library, which is not compatible with the installed version (3.19.2).  Contact the program author for an update.  If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library.  (Version verification failed in "/tmp/build/80754af9/opencv-suite_1535558553474/work/modules/dnn/misc/caffe/opencv-caffe.pb.cc".)
Aborted (core dumped)

Did you solve this problem? I have the same issue

Im using ubuntu 20.04, pytorch 1.10, same problem

Was also having the same issue on Ubuntu 20.04, cuda 11. Installing (using conda) pytorch 1.7.0  cudatoolkit 11.0 and detectron2 0.5 solved it


[Sleek] Some text like length is too dark

Going back to Spicetify, I've just installed Sleek Deep and while I generally love it, and it's probably my favourite theme so far, there's one problem with it and, to show it in screenshots:
it comes with albums...

and playlists...

and podcasts as well...

The length is unreadable. And with playlists, it's also the description of the playlist
It could be easy to fix, probably with just editing colors.ini file, but while I'm vaguely familiar with RGB, I'd need some assistance with that. I just hope it can be fixed at all, because I really like this theme.

OS: Windows 10 20H2
Spotify/Spicetify version 2.16.2
Sleek Deep

It seems that the issue no longer exists?

It got fixed after reinstalling Spicetify. You can close it.


API Breaking Changes (major version bumps)

@arqex @layneanderson and anyone else that is interested.
This is a growing problem, I'm constantly "turning down" feature requests because I don't want to break the current API of the component. Doing a major bump for breaking the API is the semantic way to go, but I have this feeling that I want to collect as many breaking changes as possible before doing a major bump.  This results in me never doing any work with any features for v3 and just post-poning it.
Should we be OK with bumping a major version for every PR that breaks the API? This could potentially result in v10 in a few months.
What are your thoughts?

It seems like projects typically gather all api breaking changes into a "next" branch and release it when it's ready, whilst only supporting the current major version for non-breaking changes. It's a little bit of management but not really anything complicated. Would that not work for react-datetime? It allows you to hold off releasing the new major version until it's featureful enough for you, whilst actually being able to make those changes. Right now, it seems like this project is in a state where version 3 will never exist.
My personal opinion is that the major/minor breaking change distinction is fairly meaningless in a practical sense - you have to do full testing of your integration with a library either way. So you can either be strict with semantic versioning and get to v10 in two months, or you can have reasonable version number increases. Realistically if you go with the "next version" branch option, you don't have to decide to bump the version until you want to release it.

From my point of view there is no problem on bumping versions everytime there is a breaking change, getting to the v10 in 2 months is not a problem because of the number of the version, but for the number of times we make the devs have a look at their react-datetime integration.
@rikkit's idea sounds great. We can have a next branch where the breaking changes can be batched, and release a new version when that branch seems stable with the new features.
We always wanted to do a big refactoring and maybe because of that we never do it, this strategy would allow to make deeper changes.

@rikkit What is the difference between a "API changes" and "API contract changes"? I meant changes that would break backward-compability.
@arqex Yes, that's what I meant, not having developers have to come here every other month.
The proposal you have makes sense.. maybe if you all of the time waiting for "that big re-write" it'll never happen.

@simeg Sorry - just a language quirk. They mean the same thing. I've edited to make it clearer.

I would prefer the way that @rikkit suggests.  Like he said a lot of other projects do it this way.  This also allows for more experimentation.
I think another problem that we will have to be careful about is what features get added.  A lot of projects start with a simple straight forward API and over time features get added and the API becomes huge.  But I digress as this is really another topic.

@layneanderson I totally agree with the huge API problem. Looking at the API for this component it could certainly be improved. We have some props that was added for solving a specific problem (which there is nothing wrong with) but it would be nice to have fewer props that does more. Which is something we could strive for with a v3.


JestResult.java getSourceAsString() not return array

if source size 2(over 1)
expected is
[{ // blah }, { // blah}]

but was
{ // blah}, { // blah}

It causes JsonMappingException using jackson when deserialize,
please fix it!

Can you send the code lines causing the problem? In addition, I want to remind you that Jest is designed to work with Gson and not Jackson. Maybe using Gson will fix your problem.


Update runtime to node 16 and bump @actions/core to remove deprecation warnings

One of the updates of GitHub actions runners introduced two warnings:

Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: vemel/nextversion@main. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.

The set-output command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

This PR handles both.

Whoa, thank you :) I did not see your PR. Let me add you to contributors.


Code blocks

I would like to add the ability to do code blocks in the markdown by wrapping pertinent areas in backticks.

closed by https://github.com/sfrunza13/SiteGenerationTool/commit/4c9657a24ee9221e8083e8ba9c2dddb9f6541dee


Custom shortcut Alt+Shift+Return doesn't work.

I assigned a shortcut key Alt+Shift+Return to run cell and advance, but it doesn't work, even after restarting spyder.
I also tried to assign the same shortcut to other functions, but it doesn't work either.
I tried to launch spyder with --debug-info verbose --debug-output file, nothing happened after pressing the shortcut key.
Another shortcut key Ctrl+Alt+Return works as expected, but only after restarting spyder.

Spyder version: 6.0.2  (conda)
Python version: 3.10.10 64-bit
Qt version: 5.15.2
PyQt5 version: 5.15.7
Operating System: Windows-10-10.0.22631-SP0

Hey @gepcel, thanks for reporting. I was able to reproduce your problem in 6.0.2 and I can confirm that it's fixed by the work I'm doing in PR #23024, which will be part of 6.0.3.


Changed SpPanedLayout>>position: to SpPanedLayout>>positionOfSlider:

In the CI log, on line 1435 (https://github.com/moosetechnology/Midas/runs/2611104812) says:
Testing project...
Running suite "Pharo64-9.0" with 30 tests.
....DeprecationPerformedNotification: Automatic deprecation code rewrite: The method SpPanedLayout>>#position: called from MiQueryCreationPresenter class>>#defaultSpec has been deprecated. Use #positionOfSlider: instead
SubscriptOutOfBounds: 0

This PR should fix this.

@ClotildeToullec could you merge it?


Distinguish toll lanes from ordinary lanes

Issue name: “Distinguish toll lanes from ordinary lanes”
Summary
A concise description of the problem, feature request (proposed change), or question.
High Occupancy Toll (HOT) lanes are painted line or barrier separated from the general purpose (GP) lanes.
Motivation
It appears there is currently no provision in WZDx for the distinction of a lane being a toll lane. In the case of Charlotte, NC, the toll lanes are managed by a private agency (I-77 Mobility Partners / Cintra) ; vs the general purpose lanes which are managed by NCDOT.
Proposed changes
Suggestion: add a new enumerated value in the LaneType Enumerated Type: "toll-lane"

@nawebster thank you for raising this issue. Can you proposed a description/definition for the proposed LaneType value oftoll-lane? I think it is important that the definition is clear so that producers know when to use it and consumers know how to handle it/what is different about it from a general lane.

Hi Jacob,
Here is my proposed definition (description) of the toll lane Enumerated Type.
A lane that is accessible only to vehicles that have paid or are paying the toll. It may also serve dual use as a High-Occupancy Toll-Others (HOT) lane which allows free use to vehicles meeting certain conditions.
Regards,
Nathan
From: Jacob Brady @.>
Sent: Monday, September 19, 2022 10:55 AM
To: usdot-jpo-ode/wzdx @.>
Cc: Webster, Nathan A @.>; Mention @.>
Subject: [External] Re: [usdot-jpo-ode/wzdx] Distinguish toll lanes from ordinary lanes (Issue #284)
CAUTION: External email. Do not click links or open attachments unless you verify. Send all suspicious email as an attachment to Report @.***>
@nawebsterhttps://urldefense.com/v3/__https:/github.com/nawebster__;!!HYmSToo!afUfHmau62b7g2V1mOnAWotXTqdZoYAtEZU6G2HMTcdI8nzd7CDVnmBjjjABwjcz5bLpsbfSky5XvSuU3c3L3mxM3Tg$ thank you for raising this issue. Can you proposed a description/definition for the proposed LaneType value oftoll-lane? I think it is important that the definition is clear so that producers know when to use it and consumers know how to handle it/what is different about it from a general lane.
—
Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/usdot-jpo-ode/wzdx/issues/284*issuecomment-1251137483__;Iw!!HYmSToo!afUfHmau62b7g2V1mOnAWotXTqdZoYAtEZU6G2HMTcdI8nzd7CDVnmBjjjABwjcz5bLpsbfSky5XvSuU3c3L2kDdNWc$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AYPL45YDWQ3S2GCTGLEUYRLV7B5FPANCNFSM5SCFMQ3Q__;!!HYmSToo!afUfHmau62b7g2V1mOnAWotXTqdZoYAtEZU6G2HMTcdI8nzd7CDVnmBjjjABwjcz5bLpsbfSky5XvSuU3c3LTa5vOEg$.
You are receiving this because you were mentioned.Message ID<EMAIL_ADDRESS>
Email correspondence to and from this sender is subject to the N.C. Public Records Law and may be disclosed to third parties.


Cannot decrypt asymmetric

Hi,
I am doing this tutorial from google cloud docs: https://cloud.google.com/kms/docs/encrypt-decrypt-rsa and I cannot decrypt. It throws this exception:
Unhandled exception. Grpc.Core.RpcException: Status(StatusCode=InvalidArgument, Detail="Decryption failed.")

This is the code for decrypting:
CryptoKeyVersionName decrypt = new CryptoKeyVersionName(
	projectId, locationId, keyRingId, decryptKeyId, versionId);

AsymmetricDecryptRequest request =
	new AsymmetricDecryptRequest {
		Ciphertext = ByteString.CopyFrom(cipherText),
		CryptoKeyVersionName = decrypt
	};

AsymmetricDecryptResponse response = client
	.AsymmetricDecrypt(request);

byte[] text = response.Plaintext.ToByteArray();

How can I fix it?

Please show a complete example (literally a console application we can copy/paste/compile/run), that does both encryption and decryption. At the moment we can't see how you're initializing cipherText.

KeyManagementServiceClient client =
				KeyManagementServiceClient.Create();

			CryptoKeyVersionName name = new CryptoKeyVersionName(
				projectId, locationId, keyRingId, keyId, versionId);

			PublicKey publicKey = client.GetPublicKey(name);
			string[] blocks = publicKey.Pem.Split("-",
				StringSplitOptions.RemoveEmptyEntries);

			byte[] pem = Convert.FromBase64String(blocks[1]);
			RSA rsa = RSA.Create();
			rsa.ImportSubjectPublicKeyInfo(pem, out _);
			byte[] plainText = Encoding.UTF8.GetBytes(message);

			byte[] cipherText = rsa.Encrypt(plainText,
				RSAEncryptionPadding.OaepSHA512);

CryptoKeyVersionName decrypt = new CryptoKeyVersionName(
				projectId, locationId, keyRingId, decryptKeyId, versionId);

			AsymmetricDecryptRequest request =
				new AsymmetricDecryptRequest {
					Ciphertext = ByteString.CopyFrom(cipherText),
					CryptoKeyVersionName = decrypt
				};

			AsymmetricDecryptResponse response = client
				.AsymmetricDecrypt(request);

			byte[] text = response.Plaintext.ToByteArray();

Okay, I've just had this working with a brand new key - but I did need to change the padding from RSAEncryptionPadding.OaepSHA512 to RSAEncryptionPadding.OaepSHA256 because the key I'd just created used a SHA-256 digest.
Please check the "algorithm" part of the key in KMS. Mine shows: "3072 bit RSA key. OAEP Padding - SHA256 Digest". The second argument to the rsa.Encrypt call has to match that. If that still doesn't work for you, please post the algorithm that's shown for you, so that I can try to reproduce the problem.
Here's a genuinely complete program for anyone else who wants to reproduce this - just fill in the values at the start of Main:
using Google.Cloud.Kms.V1;
using Google.Protobuf;
using System;
using System.Security.Cryptography;
using System.Text;

class Program
{
    static void Main()
    {
        // Fill in these to specify the key you're using
        string projectId = "";
        string locationId = "";
        string keyRingId = "";
        string keyId = "";
        string versionId = "";

        string message = "Message to encrypt/decrypt";

        KeyManagementServiceClient client = KeyManagementServiceClient.Create();

        CryptoKeyVersionName keyName = new CryptoKeyVersionName(projectId, locationId, keyRingId, keyId, versionId);

        PublicKey publicKey = client.GetPublicKey(keyName);
        Console.WriteLine(publicKey.Pem);
        string[] blocks = publicKey.Pem.Split("-", StringSplitOptions.RemoveEmptyEntries);

        byte[] pem = Convert.FromBase64String(blocks[1]);
        RSA rsa = RSA.Create();
        rsa.ImportSubjectPublicKeyInfo(pem, out _);
        Console.WriteLine(rsa.KeySize);
        byte[] plainText = Encoding.UTF8.GetBytes(message);

        byte[] cipherText = rsa.Encrypt(plainText, RSAEncryptionPadding.OaepSHA256);

        AsymmetricDecryptRequest request =
            new AsymmetricDecryptRequest
            {
                Ciphertext = ByteString.CopyFrom(cipherText),
                CryptoKeyVersionName = keyName
            };

        AsymmetricDecryptResponse response = client.AsymmetricDecrypt(request);

        byte[] decryptedBytes = response.Plaintext.ToByteArray();
        string decryptedText = Encoding.UTF8.GetString(decryptedBytes);
        Console.WriteLine($"After encryption and decryption: {decryptedText}");
    }
}

const string projectId = "erp-for-service-activity-new";
			const string locationId = "europe";
			const string keyRingId = "test-asymmetric-ecrypt-decrypt";
			const string keyId = "asymmetric-encrypt-key";
			const string versionId = "1";
const string decryptKeyId = "asymmetric-decrypt-key";

I don't need to see your key name - I won't have access to it anyway. But as I said before, the algorithm of the key is very important.

The algorithm is 4096 bit RSA key  OAEP Padding - SHA512 Digest.

Okay, I'll try a key with that algorithm tomorrow.

Okay, I've just managed to decrypt with the algorithm you've specified, using rsa.Encrypt(plainText, RSAEncryptionPadding.OaepSHA512); as the encryption part. Does your key definitely have a "purpose" of "asymmetric decrypt"? (And did you try it with exactly the code I specified, but using SHA512 instead of SHA256?)

Thanks a lot. The problem was that I was passing the wrong key Id. Now is encrypting and decrypting successfully.


No documentation on supported input types for task.json

I'm developing a VSTS Build/Release extension and am looking for a list of acceptable input types that are allowed in the task.json file. I would've expected to find something about it here, but there's nothing there, and I can't seem to find this information anywhere else on the documentation site.
The closest thing I have found is this page that shows a sample task.json file, and how to have inputs of type string and boolean.
I also found this stackoverflow post that lists a few more, but it would be nice to have something more "official" on the approved documentation site.

It looks like this issue may be the same as #1345


Dialog with dark background has corners with white pixels

[x] I have verified there are no duplicate active or recent bugs, questions, or requests
[x] I have verified that I am using the latest version of Material Dialogs.
[x] I have given my issue a non-generic title.
[x] I have read over the documentation (before asking questions on how to do something).

Include the following:

Material Dialogs version: <IP_ADDRESS>
Android Emulator Nexus 5 API 25
Android Emulator Nexus One API 19

Reproduction Steps
To reproduce this bug you can use the sample project.

Change the background colour from the default white to dark grey or something like that. For example, you can add below this the following:

.backgroundColorRes(R.color.dark_colour)

(Optionally) Change the main activity layout background colour to the dark one.

Expected Result
The dialog should have proper rounded corners in accordance with the given colours.
Actual Result
The dialog's corners have redundant white pixels (you can see this in the provided screenshot below).

I tried to fix this with the following code snippet:
if (dialog.getWindow() != null) {
     dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
}

Now the dialog has perfect corners:

But with transparent window the dialog for some reason becomes wider and in portrait orientation it occupies the full screen width:

I'm having the same results after testing dialogs

You wouldn't have noticed if you used .theme(Theme.DARK), but I'll fix it


Importing a backup is too slow

Is it a duplicate question?
I didn't find any matching issue.
Describe the bug
Currently, importing a medium size backup (a little above 100 monitors) takes ages to do. I waited a few minutes, but nothing new shown up in the dashboard. I ended up splitting the backup to ~30 smaller files, which loaded nearly instantly.
To Reproduce
Import a backup JSON with about 100 monitors.
Expected behavior
Simply, better import performance. A progress bar would be a nice addition.
If I recall correctly, monitors are stored in sqlite3 database, why not export backup as SQL statements?
There is any reason to pass all monitors one by one to monitor creation function?
Info
Uptime Kuma Version: 1.8.0
Using Docker?: Yes
Docker Version: 20.10.9
Node.js Version (Without Docker only):
OS: CentOS 8.4
Browser: Edge
Error Log
Noting was logged.
I know that's not a bug, it's a performance issue, but it's closer to bug than feature request.

This is a performance issue with your host, not uptime-kuma.
I have almost 300 monitors and the backup import takes 5-10secs. Running on 2cpu/2gb of ram in Docker + NGINX

I'm running uptime-kuma on kvm with 2x2.2 GHz and 6 GB ram, Docker + Caddy.

I have moved uptime-kuma to a better host and importing works well.
I guess it was a performance issue, like @gaby said.


No instructions on how to use

I am confused on how I am supposed to activate or use this editor / tool. The readme and store page does not explain how to use the tool

what information are you missing? i did my best to put everything on the store page, but likely i missed something obvious..

In my case I didn't find how to activate it... i mean it is properly installed in VSC, but json always still get opened by build-in editor. I don't know how to 'force' it to open with the extension i could not find any information on how to do that.

".json: JSON file (must contain array of objects) > rightclick > Open With... > JSON Table Editor"
How i can use it?

Thx

I also don't understand. Tried changing the file name to out.tc.json, but then I get an schema error, saying encountered type undefined for schema type string if I open it in vs-studio if it's named just out.json, it opens fine in vs-studio, but I can find no way of opening it in the JSON Table editor. File looks normal and opens fine as a table in app.gigasheet.com, but I wanted to work with json in tabular format locally and tried this.
I don't understand what you mean by "*.json: JSON file (must contain array of objects) > rightclick > Open With... > JSON Table Editor" in the useage example. Where? It seems not in Ubuntu files app and not in the VS-Studio open files dialogue; somewhere else presumably, but where? I guess someone more familiar with Visual Studio and extensions would automatically know this, but it's not obvious to me. Or can VS-studio code extensions somehow be made to appear in the standard "Open With" list in Ubuntu files? How? Installation did not make this happen for me.

I also created a new json file by copying one of your examples and saved it as test.tc.json. This file opens with no errors in vs-studio, but I can find no way of opening this in JSON Table editor either. It feels like I'm missing some basic understanding here and I just don't seem to be able to figure out what I'm missing. I feel like this should be easy, but it clearly is not for me.

I also don't understand.

I managed to open it easy.. Just click in the explorer on the file, click open with and dialog pops up to open it with the json table editor.
What I lack in the documentation at the moment is info how to create new row, and if there is any support for enumerations in schema and possible combo selection it would be super helpful.


Allow for if variables within commands

What should be added?
Add an {if} variable for commands
Why should it be added?
Could be quite useful for a variety of things
Example
{if:lol,"lol","xd"}

Another take on this idea is a special /if built-in command that would take a condition (parsable using the existing filter system), then a separator and if the condition was true, another separator and false output.

Another take on this idea is a special /if built-in command that would take a condition (parsable using the existing filter system), then a separator and if the condition was true, another separator and false output.


Import all CA certs

@lulf When using this keytool command, I still only get the first cert in the keystore.

@calohmn Can you try with this change?

@calohmn I think importing the first cert is fine for now.


Also update the docs to reflect the default branch is now main.
Signed-off-by: Andrew Seigner<EMAIL_ADDRESS>

Relates to https://github.com/BuoyantIO/strest-grpc/pull/66


x-Day QuoteBarConsolidator reports incorrect Time and EndTime

Expected Behavior
For an x-day bar consolidated on midnight T, EndTime should be midnight T and Time should be T-x.
Actual Behavior
An x-day bar consolidated on midnight T has EndTime T-1 and Time T-1-x. The data itself seems correct (matches the data in .csv, assuming the leftmost column is open time) but I don't know what possible problems arise from having incorrect times.
Reproducing the Problem
namespace QuantConnect.Algorithm.CSharp
{
	public class BasicTemplateAlgorithm : QCAlgorithm
	{
		public QuoteBarConsolidator Consol;

		public override void Initialize()
		{
        		SetStartDate(2019,1,1);
        		SetEndDate(2019,2,1);

			var sec = AddForex("EURUSD", Resolution.Daily, Market.Oanda);
			Consol = new QuoteBarConsolidator(TimeSpan.FromDays(1));
			SubscriptionManager.AddConsolidator(sec.Symbol, Consol);

			Consol.DataConsolidated += (sender,data) => Log($"[{UtcTime.ToString(DateFormat.Forex)} UTC] EURUSD bar CONSOLIDATED with close time {data.EndTime.ToString(DateFormat.Forex)} and ask close {data.Ask.Close}.");
		}

		public override void OnData(Slice slice)
		{
			dynamic dynSlice;

			if ( slice.TryGetValue( "EURUSD", out dynSlice ) ) {
				Log($"[{UtcTime.ToString(DateFormat.Forex)} UTC] EURUSD bar RECEIVED with close time {dynSlice.EndTime.ToString(DateFormat.Forex)} and ask close {dynSlice.Ask.Close}.");
			}
		}
	}
}

The output will be something like the following:
[20190103 00:00:00.0000 UTC] EURUSD bar CONSOLIDATED with close time 20190102 00:00:00.0000 and ask close 1.1313.
[20190103 00:00:00.0000 UTC] EURUSD bar RECEIVED with close time 20190102 19:00:00.0000 and ask close 1.1313.
[20190104 00:00:00.0000 UTC] EURUSD bar CONSOLIDATED with close time 20190103 00:00:00.0000 and ask close 1.13908.
[20190104 00:00:00.0000 UTC] EURUSD bar RECEIVED with close time 20190103 19:00:00.0000 and ask close 1.13908.
[20190105 00:00:00.0000 UTC] EURUSD bar CONSOLIDATED with close time 20190104 00:00:00.0000 and ask close 1.13983.
[20190105 00:00:00.0000 UTC] EURUSD bar RECEIVED with close time 20190104 19:00:00.0000 and ask close 1.13983.

As you can see, the data received has the correct close time, but the data consolidated does not.
If you set the consolidator to be 2 days, output will be the following:
[20190115 00:00:00.0000 UTC] EURUSD bar RECEIVED with close time 20190114 19:00:00.0000 and ask close 1.14736.
[20190116 00:00:00.0000 UTC] EURUSD bar RECEIVED with close time 20190115 19:00:00.0000 and ask close 1.14147.
[20190117 00:00:00.0000 UTC] EURUSD bar CONSOLIDATED with close time 20190116 00:00:00.0000 and ask close 1.14004.
[20190117 00:00:00.0000 UTC] EURUSD bar RECEIVED with close time 20190116 19:00:00.0000 and ask close 1.14004.

System Information
QC Web Terminal
Related Issues
Possibly #1569 but unsure which issue that one referred to when it was closed.
Checklist

[x] I have completely filled out this template
[x] I have confirmed that this issue exists on the current master branch
[x] I have confirmed that this is not a duplicate issue by searching issues

[x] I have provided detailed steps to reproduce the issue

I think what's happening here is the following:
At midnight T UTC: new _workingBar is created.
Oanda FX exchange TZ is New_York so data.Time is given as T-4h (or 5h)
Thus Time = GetRoundedBarTime(data.Time) will end up being rounded down to midnight T-1.
At midnight T+1 when bar gets consolidated, EndTime is just Time + Period which will then end up being midnight T.

Hey!

If you set the consolidator to be 2 days, output will be the following:

This case was solved some time ago by https://github.com/QuantConnect/Lean/pull/4940 no more rounding it happening.

var sec = AddForex("EURUSD", Resolution.Daily, Market.Oanda);
Consol = new QuoteBarConsolidator(TimeSpan.FromDays(1));

This other case is trickier, Lean still rounds down TimeSpans of a day or smaller. I've pushed some adjustments at https://github.com/QuantConnect/Lean/pull/6408 for these cases


Audience parsing doesn't reject unexpected items

Because there's no default: branch erroring out, I could smuggle any valid JSON there, like true, false, null, any number or an object.
https://github.com/kataras/jwt/blob/1639fcff96f82f7ff118fcff6e1fbd0e01754f2c/claims.go#L69
They'll simply be discarded.
I don't know if there's security implications, might not because because header and payload are signed by the issuer, and any tampering would get detected. But since I can't for 100 % say it's a non-issue, I'd feel more comfortable rejecting the data that would get discarded otherwise.
WDYT?

Hello @joonas-fi,
This library doesn't perform any "aud" check, as it's already described on the jwt.io website. But I would love to do it so if that is critical for you. Keep in mind that you can perform your own checks against these claims, see TokenValidator.


[test] Mark SR-10600.swift as executable.

Android CI do not run the executable tests because there's no device
attached, but this test was not marked to be skipped, and it broke the
Android CI.
See https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-android-arm64/918/ and https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-android/2699/

@swift-ci please smoke test

Thanks!


[TEMPLATE REQUEST] - Go Fiber + Vue.js - Fullstack

What domain will the project template be based on?
FullStack
If 'Others', please specify the preferred domain.
No response
Particular directory path for the template.
templates/FullStack/Vue+Backend/Vue+GoFiber/
What tech stacks do you want to include?
Go Fiber, Postgres, Vue.js
Brief Description
Fullstack template using Go Fiber server, Vue.js client and Postgres for the persistence.
👀 Have you spent some time checking if this issue has been raised before?

[X] Yes
[ ] No

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

Would you like to work on this issue?
Yes

Assigned


Add Michael Manges to Contributors list

@mkmanges, I'm quite elated about your pull request. I wanna evolve this project to addresses various problems faced by first-time contributors. I'd love to learn about your journey in open source community, the problems, pain points you had etc.
Could you explain how you felt when you went through the tutorial, made a pull request and learned that I merged it?
We’ve recently added social share  to our web app. Could you please go to https://roshanjossey.github.io/first-contributions/#social-share and share your first contribution to open source?
Also, check out projects with easy issues while you’re there.

I have wanted to do some open source work but really wasn't sure about the process and I didn't want to mess up and look bad. Thank you for this opportunity to walk through making a pull request. Now that I've done it, it's really not difficult at all!

@mkmanges, I’d urge you to continue contributing to other open source projects.
We also have a slack team to help/mentor people trying to contribute to open source projects.
You can join the team by going to https://firstcontributions.herokuapp.com


Improve logging and debugging and make Kitura available for iOS

Description
Added support for accessing serverRequest under RouterRequest in order to improve logging capabilities and debugging. Also added Kitura Nio as the main underlying layer for networking.
Motivation and Context
Kitura Nio  is mandatory while running on iOS
While improving logging as part of our internal RouterMiddleware that is specialised for logging we were forced at some point to do the following (request.serverRequest as? HTTPServerRequest)?.buffer?.rewind() which was impossible due to internal access for serverRequest
How Has This Been Tested?
The change consists in making a constant public instead of keeping it internal.
Checklist:

[ ] If applicable, I have updated the documentation accordingly.
[ ] If applicable, I have added tests to cover my changes.

I think you can have the logging behaviour with the ServerDelegate.
A pseudo-code like that could work:
class RequestLogger: ServerDelegate {
    let router: Router
    init(_ router: Router) {
        self.router = router
    }
    func handle(request: ServerRequest, response: ServerResponse) {
        Log.debug("[\(request.remoteAddress)] \(request.method) HTTP \(request.httpVersionMajor ?? 1).\(request.httpVersionMinor ?? 1) \(request.urlURL)")
        router.handle(request: request, response: response)
    }
}

And then wrap your router:
Kitura.addHTTPServer(onPort: 8080, with: RequestLogger(router))

This doesn't solve the NIO issue, but hopefully the log issue.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.0 out of 2 committers have signed the CLA.:x: danielmandeaibm:x: DanielMandeaYou have signed the CLA already but the status is still pending? Let us recheck it.


phpPackages.composer: 2.0.12 -> 2.0.13, 1.10.15 -> 1.10.22

Motivation for this change
A security issue has been identified: https://blog.packagist.com/composer-command-injection-vulnerability/
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[ ] macOS
[x] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review run on x86_64-linux 1

11 packages built:

adminer
bookstack
php73Packages.composer
php73Packages.composer1
php73Packages.php-parallel-lint
php74Packages.composer
php74Packages.composer1
php74Packages.php-parallel-lint
php80Packages.composer
php80Packages.composer1
php80Packages.php-parallel-lint

Result of nixpkgs-review pr 120855 at 29dbf71a run on x86_64-linux 1

11 packages built successfully:

adminer
bookstack
php73Packages.composer
php73Packages.composer1
php73Packages.php-parallel-lint
php74Packages.composer
php74Packages.composer1
php74Packages.php-parallel-lint
php80Packages.composer
php80Packages.composer1
php80Packages.php-parallel-lint

2 suggestions:

warning: missing-phase-hooks
installPhase should probably contain runHook preInstall and runHook postInstall.
Near pkgs/development/php-packages/composer/default.nix:18:3:
   |
18 |   installPhase = ''
   |   ^

warning: missing-phase-hooks
installPhase should probably contain runHook preInstall and runHook postInstall.
Near pkgs/development/php-packages/composer/1.x.nix:18:3:
   |
18 |   installPhase = ''
   |   ^

@ofborg build phpPackages.composer phpPackages.composer2

@ofborg build phpPackages.composer phpPackages.composer1


enable forcetypeassert linter

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Pull request type

Please check the type of change your PR introduces:

[ ] Bugfix
[ ] Feature
[x] Code style update (formatting, renaming)
[x] Refactoring (no functional changes, no api changes)
[x] Build related changes
[ ] Documentation content changes
[ ] Other (please describe):

What is the current behavior?

Issue Number: #933
What is the new behavior?

Other information

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

Project coverage is 39.61%. Comparing base (25b9a06) to head (09b9df6).
Report is 14 commits behind head on master.

Files
Patch %
Lines

internal/value/nullable.go
50.00%
11 Missing and 11 partials :warning:

internal/table/client.go
33.33%
5 Missing and 5 partials :warning:

internal/cmd/gtrace/writer.go
0.00%
9 Missing :warning:

internal/types/types.go
0.00%
8 Missing :warning:

log/field.go
50.00%
4 Missing and 4 partials :warning:

internal/value/value.go
50.00%
3 Missing and 3 partials :warning:

internal/table/transaction.go
0.00%
4 Missing :warning:

internal/xcontext/local_dc.go
0.00%
4 Missing :warning:

internal/xsql/rows.go
0.00%
4 Missing :warning:

internal/xstring/buffer.go
0.00%
4 Missing :warning:

... and 5 more

Additional details and impacted files
@@             Coverage Diff             @@
##           master    #1138       +/-   ##
===========================================
- Coverage   67.67%   39.61%   -28.07%
===========================================
  Files         296      294        -2
  Lines       29659    29570       -89
===========================================
- Hits        20072    11713     -8359
- Misses       8669    17411     +8742
+ Partials      918      446      -472

Flag
Coverage Δ

?

go-1.21.x
40.76% <34.40%> (-28.54%)
:arrow_down:

go-1.22.x
39.61% <32.60%> (-27.84%)
:arrow_down:

integration
?

macOS
?

ubuntu
39.61% <32.60%> (-0.11%)
:arrow_down:

unit
39.61% <32.60%> (-0.22%)
:arrow_down:

windows
?

ydb-23.3
?

ydb-24.1
?

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Security Exploit: https://webui.ipfs.io/ipfs/Qm... can access the API

Describe the bug
Any IPFS content accessed from the webui.ipfs.io gateway can access the API
To Reproduce
Host a website on IPFS
Visit this website from the webui.ipfs.io gateway
The website now have access to your API
Expected behavior
Not be able to access the gateway at webui.ipfs.io

Good point @hazae41. This isn't enabled by default but it's still something we should fix.


Support DID Ion Recovery and Deactivate

Overview
This PR introduces recover and deactivate for ion DIDs. Fixes #3 and #2.
Description
Some notes in this PR:

The recover operation API design was so that it matches the create API.
Operations now return an Ion<operation_type>Result object. This makes working with DIDs easier.
Examples were added in the examples.md readme.
Small fixes to ensure the issuance also works with an ION did that was created with an AWS key manager.
The changes in #87 are merged, as they're needed for tests to pass.
It's built on top of #77

How Has This Been Tested?
Unit tests similar to the ones in the ion-sdk were added.
References

https://identity.foundation/sidetree/api/#recover
https://identity.foundation/sidetree/api/#deactivate

awesome! Does this need to be tested in real life with an onchain transaction?

@nitro-neal yes, we definitely should!


Revert 0xFF marker check

I has some webcam from different venders that i use v4l2 to capture mjpg images to do some processing. When i used image-rs to decode some of the images, i got Error: IoError(Custom { kind: UnexpectedEof, error: "failed to fill whole buffer" }).
After some investigation i found that the
https://github.com/image-rs/jpeg-decoder/blob/0c6f5a20801c9530fb99487a69ba39037ce15d0c/src/decoder.rs#L352
function skipped EOI marker when there is multiple 0xff before 0xD9.
And there is pull request from #100 that removed code to skip optional 0xff. So I added it back.
There is also a test image i took that have this error before. but I'm not sure where to put this image in the tests dir, since the crash test doest care decode result.

Sorry about the confusion. And yes, I took that image my self, you have my consent to use the image freely.


JQuery 3.5.0 and Bootstrap 3.4.1

collapse.js:178 Uncaught TypeError: Cannot convert object to primitive value
Looks like reverting to an earlier version of jquery fixes it.

Duplicate of #30553

@XhmikosR isn't this issue specifically about Bootstrap v3? Are there any plans to support jQuery 3.5.0 in Bootstrap v3?

v3 is EOL, sorry.

@XhmikosR This is a security update, not a feature request. I think security updates should always be considered. I have so much work in V3 that changing that is a huge amount of work. Not doing security updates will make people use tools that continue with security updates.

I'm aware of that, but be my guest and try yourself and see what works or
not.
Security issues are not always applicable to every website the same way.
On Thu, Apr 30, 2020, 19:50 Marc Godard<EMAIL_ADDRESS>wrote:

@XhmikosR https://github.com/XhmikosR This is a security update, not a
feature request. I think security updates should always be considered. I
have so much work in V3 that changing that is a huge amount of work. Not
doing security updates will make people use tools that continue with
security updates.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/twbs/bootstrap/issues/30644#issuecomment-621972904,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AACVLNJOFW4Q2IKHBVE7L2TRPGT3ZANCNFSM4MQKUYIA
.

There's a time for everything. Feel free to use a tool that fits your needs better and is supported 7 years after its first release.
/CC @mdo

@XhmikosR There are lots, but like I said I am already invested. Its not about the number of years, but the number of users, and the number of versions. I am only 1 major version behind. Also, I still get security updates for many things that are older... think Windows XP.... Anyway, I guess I will need to fork it.

Well, we are not Microsoft, are we? If this wasn't open-source things might have been different.
Also, we have announced v3 EOL a long time ago.

As I also have a huge project still running on Bootstrap 3 & jQuery, I had a similar problem. Plans are to upgrade the UI framework as soon as possible anyway. However, the problem seems to have vanished with jQuery 3.6.0!
jQuery 3.6.0 and Bootstrap 3.4.1 work again, like a charm!

@MrP01 you just saved my bacon! Thanks.