GLIBCXX_4.3.20

After unpacking rust-2015-01-29-52c74e6-arm-unknown-linux-gnueabihf-86b081147432a8db92c4f102a2f8e91de15f51be.tar.gz to /usr/local/ and invoking rustc on Gentoo, I get the following error:
rustc: /usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.8.3/libstdc++.so.6: version `GLIBCCXX_3.4.20' not found (required by /usr/local/lib/librustc_llvm-4e7c5e5c.so).
I am using gcc 4.8.3 and glibc 2.19-r1. More recent versions, if required, haven't been considered stable yet (last emerge --sync was today). I'm going to try and unmask them, but it would be much nicer if I could just keep using the stable versions, as newer versions of gcc are masked with a reason (it is not uncommon for gcc to have bugs that cause faulty compilation of the Linux kernel and other software; why the ArchLinux package maintainers consider it stable goes beyond me).
Also, if you are interested, the platforms I am using at the moment are (I am a maintainer of linux-exynos.org btw.):

Samsung Chromebook XE303C12 (snow; Samsung Exynos 5250).
Samsung Chromebook 2 XE503C32 (peach-pi; Samsung Exynos 5800).
Acer Chromebook CB5-311-T28J (nyan-big; Nvidia Tegra K1).

If you are interested in having your builds tested on more platforms, I also have direct access to an InForce IFC6410 (Qualcomm Snapdragon 600), a Cubieboard 2 (Allwinner A20), a Cubieboard 3 (Allwinner A20), an A10-OLinuXino-LIME (Allwinner A10) a PandaBoard ES (Texas Instruments OMAP 4460), and some other platforms that aren't that interesting (due to a lack of processing power and memory).
Addendum:
When installing gcc-4.9.2 and libssh2-1.4.3-r1 both rustc and cargo seem to work. However, when running cargo, the system seems to complain about the version of libcurl (probably being too old: curl-7.39.0).

Thanks for the detailed report!
Yes, Arch is too bleeding egde and the nightlies end with library requirements that are too high for several distributions.
Right now, I'm looking into building the nightlies in a Ubuntu 12.04 (ARM) chroot to lower the requirements. Since you have several boards probably running different OSes, maybe you can help me here, I'd like to confirm if the versions of glibc and libcurl in the chroot are low enough:
$ dpkg -l | grep libc
ii  libc-bin                        2.15-0ubuntu10.10                 Embedded GNU C Library: Binaries
ii  libc6                           2.15-0ubuntu10.10                 Embedded GNU C Library: Shared libraries
$ dpkg -l | grep curl
ii  curl                            7.22.0-3ubuntu4.12                Get a file from an HTTP, HTTPS or FTP server
ii  libcurl3                        7.22.0-3ubuntu4.12                Multi-protocol file transfer library (OpenSSL)

If the version of the libraries in your devices are higher than or equal to these, I think we are good to go.

If you are interested in having your builds tested on more platforms

It'd be great if you could run some smoke tests (I think building a cargo package is a good test) in your devices. Ultimately, I'd like run the full test suite (make check) in several boards, open a metabug with a list of the failed tests in the rust-lang/rust repo and the work towards fixing the bugs. (I got some raw data about this in issue #15)
I'll ping you when I get a rust/cargo nightly built in the Ubuntu chroot.

At the moment, sys-libs/glibc-2.19-r1 is the most recent version that is considered stable on Gentoo, and sys-libs/glibc-2.20-r1 is the most recent version that is in a testing phase on the armv7a-architecture on Gentoo (that means it is currently being tested for the specific architecture, but not ready for production yet.).
As for curl. The most recent stable version is net-misc/curl-7.39.0, and the most recent testing version is net-misc/curl-7.40.0.
Another dependency that has been causing issues, as mentioned before, is libstdc++.so, which, in case of Gentoo, is part of sys-devel/gcc. The most recent stable version is sys-devel/gcc-4.8.3 and the most recent testing version is sys-devel/gcc-4.9.2.
A final word on picking the greatest common denominator. I think it would be best to take the stable release of either Debian or CentOS, as these usually have the oldest packages among the most recent releases of Linux distributions. Gentoo, ArchLinux, OpenSUSE Tumbleweed, etc. shouldn't be too problematic as they are well-maintained rolling distributions.I am not sure if those support proper version selection like the Portage package manager in Gentoo, i.e. allowing you to limit the packages to versions considered stable, allowing you to use versions in the testing phase, or even allowing you to use bleeding edge (so called 9999-ebuilds that download from upstream, build and install). Do note though that the testing phase is architecture-dependent in case of Gentoo. It is thus likely that on x86 and x86-64 more recent versions may be considered stable.

I think it would be best to take the stable release of either Debian or CentOS

Yes, my original plan was to built the nightlies in a Raspbian (armhf Wheezy) chroot, which has a glibc-2.13 package, but I'm having trouble getting an initial rustc ARM binary that doesn't depend on glibc-2.15 (see my last comment in #18). So I'm settling on Ubuntu 12.04 (glibc-2.15) for the time being.
I haven't touch CentOS before, do you know if there's any armhf rootfs for it? And what glibc version uses? (I doubt it's older than glibc-2.13 though).

Well fortunately, it seems that they have dropped support for all architectures but x86-64, because CentOS 6.5 still uses glibc-2.12. However, CentOS 7 uses glibc-2.17, but still it doesn't matter.

@StephanvanSchaik
The rust-2015-02-03-3b2ed14-... nightly was created in an ubuntu 12.04 chroot and should have a glibc-2.15 requirement, could you give it a try in your ARM devices?

@StephanvanSchaik any update here?
I'm now building the nightlies in a Raspbian chroot. The glibc requirement should be 2.13+, and the cargo nightly is statically linked to libcurl, so it should work regardless of your installed version.

I've installed rust-2015-02-06-f3573aa-arm-unknown-linux-gnueabihf-568ee4e5ab5eea3781db4f264204a07a398005f9.tar.gz and cargo-2015-02-04-0557065-arm-unknown-linux-gnueabihf-a9ff590afc96c8c0d71adc2b008e96969816e6c6.tar.gz on my Samsung Chromebook 2 with Gentoo. Which seems to work fine with sys-devel/gcc-4.8.3, sys-libs/glibc-2.19-r1 and net-misc/curl-7.39.0.
One thing I have noticed is that the triplet you are using is a bit odd. On my installation the triplet is armv7a-hardfloat-linux-gnueabi, which is a lot more specific, but other than that it shouldn't matter much.
What I can do now is help you run the tests (I am not sure how to do that yet), and eventually patch dev-lang/rust-bin on Gentoo to use these binary packages for ARMv7a. Then I can look into what is needed to get dev-lang/rust to work on ARMv7a (which is the package used to build rustc from the source code).

I've installed rust-2015-02-06-f3573aa-arm-unknown-linux-gnueabihf-568ee4e5ab5eea3781db4f264204a07a398005f9.tar.gz and cargo-2015-02-04-0557065-arm-unknown-linux-gnueabihf-a9ff590afc96c8c0d71adc2b008e96969816e6c6.tar.gz on my Samsung Chromebook 2 with Gentoo. Which seems to work fine with sys-devel/gcc-4.8.3, sys-libs/glibc-2.19-r1 and net-misc/curl-7.39.0.

Excellent! :+1:

One thing I have noticed is that the triplet you are using is a bit odd. On my installation the triplet is armv7a-hardfloat-linux-gnueabi, which is a lot more specific, but other than that it shouldn't matter much.

That's the target rustc uses (it's a lowest common denominator that targets ARMv6 VFP2 and up), changing it requires messing with target specifications.
AFAIK, only gentoo uses very specific triples, other distros use arm-unknown-linux-gnueabihf or arm-linux-gnueabihf, but I don't think it's a problem.

What I can do now is help you run the tests (I am not sure how to do that yet)

I'd love that. Sadly, the tests binaries don't ship with the nightlies, so you have to bootstrap a full compiler and then run the test suite (a.k.a. make && make check). As for the steps to do that, you need to clone the rust-lang/rust repo, then ./configure, make -j$(nproc) and make check. If you want the specific commands that I use, you can look at the build-rust.sh script.
I'm planning to run the test suite for each nightly and upload the output. You can already see this in the dropbox folder, there's a cargo-*.test.output.txt. And I'm running rust test suite at thet moment.
I'll like to check if the same tests fail (yes, they fail) in multiple devices. If different tests fail in different devices, that probably will make it harder to fix the bugs and test the fixes. Anyways, it'd be great if you could send me the full output of make check (in a gist or something). Some timing information (time make -j(nproc) and time make check) would be nice as well.

eventually patch dev-lang/rust-bin on Gentoo to use these binary packages for ARMv7a

Please mention that these are unofficial nightlies, and may break every now and then, and also may contain bugs.

Then I can look into what is needed to get dev-lang/rust to work on ARMv7a (which is the package used to build rustc from the source code).

Take a look at the build-rust.sh script, the process is rather straightforward.

I'm going to close this, because the issue has been solved (the glibc requirements have been lowered). @StephanvanSchaik if you manage to run the tests, please leave a comment in issue #10 / #15. Thanks!
P.S. I'd also like your opinion on #23.


Mail::pretend() doesn't work for queued mail

When using queuing email (queue driver=sync, mail driver=mail), the $pretend flag previously set is not being picked up. When the job fires, it creates a new 'mailer' object, losing the old value.
Makes it kinda hard to test without some fudging.
Maybe 'pretend' should be a config parameter? Then can be handled in MailServiceProvider::register()

Sorry if I open this again, I'm still having this issue.
in my config/mail:
'pretend' => env('MAIL_PRETEND', true),
in my .env file:
MAIL_PRETEND=true
Using Mail::send() correctly pretends to send it and writes it on the log file.
Using Mail::queue() actually sends the email (I accidentally emailed people from my dev environment)
Queue is set to use the database driver.
Listening to queue with a supervisor worker:
php /var/www/myproject/artisan queue:listen database
Using Mandrill as the email driver.

Nevermind, solved it.
For future reference: if you have queues running in the background (via supervisor, for example), you need to restart them for it to pick up new changes.


Add announcements for EOL and fix some of the broken links

Signed-off-by: mitsudome-r<EMAIL_ADDRESS>README Update
Since Autoware AI is planned to reach EOL by the end of this year, I thought it would be nice to put the notice on the top-level README and also encourage users to use Autoware Core/Universe for future.

@mitsudome-r can you change from slack to discord in the readme?

CI is failing, but it is mainly due to old GPG key which is irrelevant from the change in this PR. The error should be fixed in another PR.


fcitx-qt5: kde5PackagesFun -> qt5LibsFun

Things done

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

[x] NixOS
[ ] OS X
[ ] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

This PR goal is to remove extra-cmake-modules dependency from fcitx-qt5 so it can be moved from kde5PackagesFun to qt5LibsFun and be used with any versions of Qt5.
This address #15569 and should be tested and merged with #15498 fix.
fcitx-qt5 was only using a few extra-cmake-modules functions, so I chose the simple approach to patch the source to bring the needed modules.
Any improvement/feedback is welcomed.
I have tested this with in fcitx-wrapper:
- qt5.fcitx-qt5 -> kate (qt56) is working, qutebrowser (qt55) is not
- qt55.fcitx-qt5 -> kate (qt56) is not working, qutebrowser (qt55) is
Update (2016-05-21):
I changed the commit to use the modules from kde5.extra-cmake-modules directly by linking them in fcitx-qt5 source, that way can use the few required extra cmake modules without having fcitx-qt5 be part of kde5PackagesFun, and this make the patch much lighter.
By using qt55.fcitx-qt5 in fcitx-wrapper, fcitx is working fine in Qt 5.5 and Qt 5.6 applications (tested with kate and qutebrowser).
I don't know the reason, but suppose that this is due to the plugin ABI being compatible between these 2 versions.
So this PR will improve the situation as soon as it gets merged, and because it moves fcitx-qt5 to qt5LibsFun, should help fcitx-qt5 to be integrated in #15498 fix.
cc @ttuegel

Updated the commit and the issue description.

thanks !

Thanks for merging!


DataTTLKeeperTimer not deleting the record as expected

Please answer these questions before submitting your issue.

Why do you submit this issue?
[ ] Bug

Question

What do you want to know?

Bug

Which version of SkyWalking, OS, and JRE?
8.4.0, running in Kubernetes pod on CentOS, JRE1.8, storage is elasticsearch 6.7

Which company or project?

What happened?
If possible, provide a way to reproduce the error. e.g. demo application, component version.
we use default configuration for TTL part,
the DataTTLKeeperTimer keeps returning this message : The selected first getAddress is _IP_hidden__11800. Skip.
Could you please point a way to check what could be the cause for this ? the data keeps in ES for more than 2 weeks, we have to manully clear the data.

Requirement or improvement

Please describe your requirements or improvement suggestions.

This should be simple to debug, check why this skip happens.


Minor optimisations following 9240b90fd91dcc8a47727d879863182524924f3e

The problem is that subserie is now used by timeclip and therefore the GTS
can be further augmented with other values, but now the hint will be unset
thus potentially leading to extraneous calls to provision, where the
arbitrary 128 value ensured this minimum
On Tue, May 7, 2019, 16:11 Fabien Tencé<EMAIL_ADDRESS>wrote:

@ftence commented on this pull request.
In warp10/src/main/java/io/warp10/continuum/gts/GTSHelper.java
https://github.com/senx/warp10-platform/pull/439#discussion_r281649724:

 if (null == subgts) {

 subgts = new GeoTimeSerie(128);

 subgts = new GeoTimeSerie();

I am aware that it does not allocate the arrays. The reason I removed this
is because it is the only place sizehint is set without any knowledge of
how many data points could be added.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/senx/warp10-platform/pull/439#discussion_r281649724,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABDRPKX4244X5AC5VALJ4VDPUGE2XANCNFSM4HLGTOHQ
.


[WOR-85] Enable cloning for Azure workspaces, use cloudPlatform from workspace info to determine Azure vs. GCP workspaces.

This PR enables the Clone menu item for Azure workspaces-- the enable/disable state of workspace menu items is now identical for GCP and Azure workspaces.
As part of this change, I have standardized how we determine a GCP vs. an Azure workspace (this was actually necessary for Clone to behave correctly when launched from the workspace list, where we do not have azureContext available).
I also fixed a flashing bug that I noticed during the workspace list loading.
Things to test:

Clone of an Azure workspace from both the workspace dashboard and the list view (the error you get with the message "WOR-625" is expected). Only Azure billing projects should be presented.
No flashing of persistent disk message while loading workspaces list.
Correct tabs displayed for Azure vs. GCP workspaces (no change in behavior).
Correct cloud information displayed on workspace dashboard (no change in behavior).
Share workspace modal behaves appropriately for both Azure and Google workspaces, when triggered from either the list or dashboard view (no change in behavior).
Duplication of analysis.

Integration test failure (find-workflow) is unrelated. Rerunning.

This PR is in draft until https://github.com/broadinstitute/rawls/pull/2162 is merged.

@jdcanas or @n8landolt this PR is still draft while waiting for the cloning back end changes to land. But it would be good for one of you to take a look at the Analysis-related changes. TIA

@jdcanas or @n8landolt this PR may be merged soon. Can one of you take a look wrt to the Analysis changes?


Added Depth-First-Search Code in C++

Added C++ version of Depth First Search. Updated the code with necessary comments for better understanding. Solves the issue #660

Thanks for contributing


test of webhook

Issue and Steps to Reproduce

Version
Screenshots
Expected
Actual
Additional Details

Installed packages:

test

does this still work

test

testy

make sure i didn't break it


Expose textAlign property for Box components

Is your feature request related to a problem? Please describe.
I'd like to be able to center-align text within a Box component but the textAlign property is currently not supported.
Describe the solution you'd like
Add textAlign as a valid css prop to the Box component (and maybe Inline?)
Describe alternatives you've considered
I've tried breaking up long strings of text into shorter strings and then using alignX: 'center' on each one. It works, but it seemed like overkill for just trying to find a workaround to a single css property that could do the job.

@ahhreggi, we added textAlign to the Box component with our latest release, so you can now do the following:
<Box css={{textAlign: 'center'}}>
  Box where text is centered
</Box>

There's some more info in the docs here.


Feature Correction: OAuth Metadata URL & JWKS URL Settings

Proposed Changes
I am going to update the authlib instantiation code to only include the metadata URL parameter if the corresponding PDA setting actually contains a usable value.
Furthermore, I will completely remove the JWKS URL setting that I recently introduced in an effort to correct a new issue. At this time, this is not even a supported parameter of authlib from what I can tell so it's a useless addition that creates confusion.
Justification
Following the recent release of PDA 0.4.0, a notable number of bug reports came in regarding various OAuth issues that seem somewhat related. We are still unclear if this is because of a library upgrade (authlib itself), or perhaps the additional settings that were added with default empty values.

@AzorianMatt From my understanding the JWKS Url should be discovered from the data of the metadata URL. That's why adding it as a settable arg did break things, because now it had to be set manually which most didn't do, because it wasn't expected.

@AdvanticGmbH how certain of that are you?
I ask because when introspecting the authlib interface for this, I couldn't find any references to that parameter which leads me to believe it was totally ignored just as if I had made up other name.
Thoughts?

@AzorianMatt They at least mention it here:  Authlib. Another thing that is currently wrong is, that if you set the metadata URL you shouldn't have to set:
* authorize_url
* access_token_url
* jwks_uri

Because they should be discovered over the metadata URL. I also think calling the userinfo this way: PDA is not the best way

@AzorianMatt  I think making the the metadata URL mandatory and removing they other fields would be much less confusing and could also fix most of the current problems.

@AzorianMatt They at least mention it here: Authlib. Another thing that is currently wrong is, that if you set the metadata URL you shouldn't have to set:
* authorize_url
* access_token_url
* jwks_uri

Because they should be discovered over the metadata URL. I also think calling the userinfo this way: PDA is not the best way

Adding to this there is an extra UserInfo class, which takes the metadata URL into account here

@AdvanticGmbH do you have a good environment to test these proposed changes? I'm all for it if I can finally put this OAuth issue to bed but I have yet to get a good test environment going to support any changes I do to it.

@AzorianMatt Currently we only have an own OIDC implementation running with which we are testing the generic OIDC part. Sadly we have no way to test the Google, Azure and Github implementations currently. But for Google and Github I'm sure from reading their docs that they have support for a metadata URL.

@AzorianMatt I could create a commit for the generic OIDC part at least.

@AdvanticGmbH this has been completed and included in the latest release of 0.4.1>


Feature: "count" for CRUD models where filtering: true

Any idea when parameterized count queries will be built into nexus generated GQL queries? https://github.com/prisma/prisma-client-js/issues/252
Asking before I build it out myself, or try and build it out here and open a PR.

I was thinking the same, this would be an extremely welcome feature. I liked how it was done back in Graphcool, with each type having a metatype generated (ie "_usersMeta" / "_followersMeta") with a single 'count' property, but perhaps there are other options worth considering.

We are also eager to implement count with filter: true

maybe as inpiration, we maintain a dataprovider for react-admin for nexus-prisma.
https://github.com/panter/ra-data-prisma
It comes with a small backend package that makes resources react-admin "compatible".  This means it will expose all crud operations as well as the count. Check out the code to see how to do that programatically:
https://github.com/panter/ra-data-prisma/blob/master/packages/backend/src/addCrudResolvers.ts


hello-world will not even run

When trying to get the simplest of things working on an "Docker Official Image" and it fails.
hello-world
The image will not start.

Docker desktop Version: 4.30.0 (149282)
Engine: 26.1.1
Compose: v2.27.0-desktop.2

Also tried as a pod in Kubernetes.

Can you provide the error you get?

Well apparently it runs and terminates. I never see an error.

I'm pretty sure for this image it's normal. It runs which outputs and then the container stops when the process stops.

Thanks
You maybe right but as a "Hello World" then it is pretty confusing an useless.
I have been looking for a very simple "Hello World" app, deployed by kustomize, that is known to work to use for troubleshooting issues in a cluster.
Have yet to find one.

Yeah, this image is really just a "cli" that prints output and exits. If you want something that responds to network and stays up, then an empty/unconfigured nginx would work pretty well.  But if you need something a little more complex there is a simple voting app: https://github.com/dockersamples/example-voting-app.


NickAkhmetov/Improve vis-lifting logic, add visium support

This PR:

Adds a builder for the multiomic visium datasets and adjusts the builder factory to include this logic. CAT-159
Prevents re-iterations through hints list by converting to set and making includes logic more self-explanatory
Removes builder factory dependencies on provenance DAG

DAG iteration is still used as a condition to determine whether to check for annotations; this step could be removed, however, since this should realistically be accounted for by the check for is_annotated in the annotation metadata.

Revised the vis-lifting approach to allow providing the parent entity as an additional argument instead

This decreases the number of requests made for this since the previous approach was to fetch the assaytype information for each immediate ancestor of a dataset

Provides sample entity ID for JSON-based CODEX dataset in a comment to ease testing
Adds predicted CLID to tooltips for datasets that have them CAT-1

The test_entity_to_vitessce_conf tests now pass.
Remaining todos:

[ ] Fix test_entity_to_error
[ ] Add test_entity_to_vitessce_conf test case for Visium builder

Will parent be added to the entity in portal-ui code after vis-lifting?

If there are any image pyramid descendants found for the current entity, get_vitessce_conf_cells recurses with the found descendant as the entity and the current entity in the parent field to assemble the conf.

Gotcha, parent is newly defined in the upcoming portal-ui PR https://github.com/hubmapconsortium/portal-ui/pull/3387/files.


Auto-play stops when user long press on the slider in mobile screen.

Guidelines for posting a new issue

Please replicate your issue with this CodeSandBox and provide a link to it along with the issue description

https://codesandbox.io/s/w2k63yymy8
Only on the mobile screen, this issue will happen.


[dart2js] Missing type metadata for type used only in generic function instantiation

The type metadata for Queue is missing in this program:
import 'dart:collection';

class Foo<T> {}

const f1 = Foo<Queue>.new;
const f2 = Foo<Queue<String>>.new;

main() {
  print(f1() is Foo<Iterable>);
  print(f2() is Foo<Iterable<Comparable>>);

  print(f1() as Foo<Iterable>);
  print(f2() as Foo<Iterable<Comparable>>);

  print(check<Foo<Iterable>>(f1()));
  print(check<Foo<Iterable<Comparable>>>(f2()));
}

T check<T>(x) => x as T;

This leads to errors in subtype tests:
false
false
Instance of 'Foo<Queue<dynamic>>'
Instance of 'Foo<Queue<String>>'
o9.js:945: TypeError: Instance of 'Foo<Queue<dynamic>>': type 'Foo<Queue<dynamic>>' is not a subtype of type 'Foo<Iterable<dynamic>>'
      throw A.wrapException(A._TypeError$fromMessage(A._Error_compose(object, A.instanceOrFunctionType(object, testRti), A._rtiToString(testRti, null))));
      ^
TypeError: Instance of 'Foo<Queue<dynamic>>': type 'Foo<Queue<dynamic>>' is not a subtype of type 'Foo<Iterable<dynamic>>'
    at Object.wrapException (o9.js:324:17)
    at Object._failedAsCheck (o9.js:945:15)
    at Rti._generalAsCheckImplementation [as _as] (o9.js:934:9)
    at Rti._installSpecializedAsCheck (o9.js:873:22)
    at main (o9.js:2159:18)
    at o9.js:2659:7
    at o9.js:2638:7
    at dartProgram (o9.js:2653:5)
    at o9.js:2661:3

(the two direct as expressions pass because they are removed - not sure where this is happening)

Just from a glance at this issue, my hunch is that the RTI computation may need to be updated for constructor tearoffs, since invoking them can create instances. (We'll likely have to be conservative about this - if we observe a constructor tearoff, we should treat that type as having instances, whether that tearoff eventually ends up being called or not.)

@fishythefish Constructor tear-offs are (possible generic) static methods that call the constructor, so my hunch is that we should be able to reproduce this with hand-rolled static method tear-offs, i.e. code that was possible before constructor tear-offs. Maybe there is something different about the CFE-generated static methods.

@rakudrama Such a hand-rolled static method would still have to invoke a constructor in its body, right? So we would have noted that the type has instances when we saw the constructor call. I'm guessing we didn't add any special handling for Foo.new, but we should probably treat it the same as seeing new Foo().


Duplicate rows returned for the same object (due to duplicate TNS rows for same object)

The following query returns more than one result for the same object. I've added the watchlist ID and tns ID to highlight where the duplicates are happening.
SELECT objects.objectId,
       sherlock_classifications.classification,
       crossmatch_tns.tns_name,
       crossmatch_tns.type,
       CASE when objects.objectId = "ZTF22aamwznx" then "Very Good" END as "lightcurve_quality",
       watchlist_hits.wl_id,
       crossmatch_tns.id
       FROM objects,
            sherlock_classifications,
            watchlist_hits,
            crossmatch_tns
       WHERE objects.objectId=sherlock_classifications.objectId
       AND objects.objectId=watchlist_hits.objectId
       AND watchlist_hits.wl_id=1
       AND watchlist_hits.name=crossmatch_tns.tns_name
       AND objects.objectId in ( "ZTF22aamwznx")
       AND crossmatch_tns.type is not null;

+--------------+----------------+----------+-------+--------------------+-------+-------+
| objectId     | classification | tns_name | type  | lightcurve_quality | wl_id | id    |
+--------------+----------------+----------+-------+--------------------+-------+-------+
| ZTF22aamwznx | SN             | 2022mbg  |       | Very Good          |     1 | 97423 |
| ZTF22aamwznx | SN             | 2022mbg  | SN Ia | Very Good          |     1 | 98220 |
| ZTF22aamwznx | SN             | 2022mbg  | SN Ia | Very Good          |     1 | 99509 |
+--------------+----------------+----------+-------+--------------------+-------+-------+

A check of the TNS table shows where the duplicates are happening.
select * from crossmatch_tns where id in (97423, 98220, 99509)\G
*************************** 1. row ***************************
                 ra: 31.5124129
               decl: 29.7919945
           tns_name: 2022mbg
         tns_prefix: AT
           disc_mag: 16.17
    disc_mag_filter: r
               type:
                  z: NULL
              hostz: NULL
          host_name: NULL
       ext_catalogs: NULL
      disc_int_name: ZTF22aamwznx
          disc_date: 2022-06-04 11:16:48.000000
  lastmodified_date: 2022-06-05 18:10:24.000000
             sender: ZTF
          reporters: C. Fremling (Caltech) on behalf of the Zwicky Transient Facility (ZTF) coll...
       source_group: ZTF
              htm16:<PHONE_NUMBER>9
lasairmodified_date: 2022-06-06 00:18:05
                 id: 97423
*************************** 2. row ***************************
                 ra: 31.5124129
               decl: 29.7919945
           tns_name: 2022mbg
         tns_prefix: SN
           disc_mag: 16.17
    disc_mag_filter: r
               type: SN Ia
                  z: 0.016238
              hostz: NULL
          host_name: NULL
       ext_catalogs: NULL
      disc_int_name: ZTF22aamwznx, ATLAS22qxn
          disc_date: 2022-06-04 11:16:48.000000
  lastmodified_date: 2022-06-19 11:46:34.000000
             sender: ZTF
          reporters: C. Fremling (Caltech) on behalf of the Zwicky Transient Facility (ZTF) coll...
       source_group: ZTF
              htm16:<PHONE_NUMBER>9
lasairmodified_date: 2022-06-20 00:18:06
                 id: 98220
*************************** 3. row ***************************
                 ra: 31.512458
               decl: 29.791981
           tns_name: 2022mbg
         tns_prefix: SN
           disc_mag: 16.17
    disc_mag_filter: r
               type: SN Ia
                  z: 0.016238
              hostz: NULL
          host_name: NULL
       ext_catalogs: NULL
      disc_int_name: ZTF22aamwznx, ATLAS22qxn, Gaia22ctq
          disc_date: 2022-06-04 11:16:48.000000
  lastmodified_date: 2022-07-03 16:55:34.000000
             sender: ZTF
          reporters: C. Fremling (Caltech) on behalf of the Zwicky Transient Facility (ZTF) coll...
       source_group: ZTF
              htm16:<PHONE_NUMBER>9
lasairmodified_date: 2022-07-04 00:10:05
                 id: 99509
3 rows in set (0.001 sec)

Here we can see that the disc_int_name gets concatenated by different survey names evert time a survey records the object. Hence we need to do a REPLACE operation when writing new TNS entries.

How to check
create temporary table ocounts as (select tns_name,count(*) as n from crossmatch_tns group by tns_name);
select * from ocounts where n>1;

Will need to replace the TNS table first python3 poll_tns.py --daysAgo=All

Fixed


newrelic deployments does not work with newly created API keys

newrelic deployments only works with the original license key that came with the account.
Description
We have recently cycled our NewRelic License Key and updated config/newrelic.yml.
Running newrelic deployments -e production -r<PHONE_NUMBER> 'Testing new api key' now yields:
Deployment not recorded: Forbidden

After reverting the key inside config/newrelic.yml to the previous INGEST - LICENSE key the command works again.
Expected Behavior
Should record the deployment.
Troubleshooting or NR Diag results
Posting to the API manually works with the newly created key
 curl -X POST "https://api.newrelic.com/v2/applications/${MY_APPI_ID}/deployments.json" \
                                    -H "Api-Key: ${NEW_RELIC_ACCESS_KEY}" \
                                    -i \
                                    -H "Content-Type: application/json" \
                                    -d \
                               '{
                                 "deployment": {
                                   "revision": "1234567890",
                                   "changelog": "",
                                   "description": "Testing new api key",
                                   "user": "Arkham",
                                   "timestamp": "2021-07-07T17:26:00Z"
                                 }
                               }'

Hello @arkham,
I tried using the newrelic deployments command with my own test app, and I also saw Deployment not recorded: Forbidden with a valid license key. For me it doesn't appear to be working correctly at all, with any of the license keys I currently use. I also tried using that curl command with my test app info, but that also didn't work for me, I received back {"error":{"title":"No API key specified"}}. So maybe I'm just doing something wrong there?
I'm not very familiar with our rest API, so I'll need to reach out to that team and see if they can help me understand what's going on here and why our rake command isn't working properly.
Thank you for bringing this to our attention

I've spoken with the team that handles our API backend and learned some more about what's going on.
So basically, the API that the rake task is using is actually going to a different endpoint than the manual API does. There are also a couple types of license keys, and it looks like the API that the rake command communicates with wasn't updated on the backend to accept one of these newer types of license keys, which is why the rake task fails with certain license keys. They weren't aware of the issue either, so thank you very much for reporting this problem, they are looking into the changes needed to solve the issue.
In the meantime, if anyone else encounters this issue, the best workaround for now is to use the API manually to record your deployments until the API backend is updated. Please see the API documentation here for more details about how to use this API.

We are keeping this open for now to provide awareness of the issue.  This issue will be closed when the internal ticket closes.

Hi! Is there any progress on this issue?

Hi @sy-hash. Thanks for following up on this one. Here are some updates:

The "Posting to the API manually" with curl workaround discussed above in this GitHub Issue works because it targets an entirely different endpoint.
The newrelic deployments command targets our "rpm" subdomain which was originally designed to work with one type of license key and does not work with an API type key. This is ultimately why @Arkham was unable to use the new key with the command.
Conversely, the manual curl command mentioned targets the "api" subdomain. That subdomain will not work with the other type of license keys and requires API type keys. This is ultimately why @tannalynn was unable to get curl to work earlier.
Beyond the use of different subdomains, the newrelic deployments command and the curl command differ in that the first one uses an XML endpoint and the other uses a JSON endpoint. On the backend these have implementation details that differ a bit beyond just the request/response payload formatting.
The team responsible for the "rpm" subdomain based endpoints has looked into what it take to support the use of the newer API style keys within an XML payload and has discovered a considerable amount of effort involved. Work on this front is ticketed internally and awaiting prioritization. I do not have an ETA for this work.
The Ruby agent team responsible for maintaining the newrelic deployments command can modify the command to leverage the "api" subdomain and JSON based endpoint to effectively do the same thing the curl command is able to do. The tricky part there is that we would need to conditionally or dynamically come up with a way to support both types of license keys, because both backend endpoints require a specific type and reject the other type.
In addition to the newrelic deployments command included with the Ruby agent and the curl command mentioned in this GitHub Issue, there is an additional way to report deployments available. The newrelic-cli tool supports a newrelic apm deployment create command (usage info here).

I will discuss these updates with the rest of the Ruby agent team and if we have anything additional to add we will share it here. Thank you very much for your interest and patience.

@fallwith
Thanks for the detailed information!
I will try the workaround you proposed.

Maintainers: The Python agent makes use of an api_key parameter in newrelic.ini, so we could easily add that to our newrelic.yml.
I'm thinking we have it work like this:

api_key is present in newrelic.yml: point the net call to the "api" subdomain
api_key is missing in newrelic.yml: continue to point to the "rpm" subdomain
anticipate "Forbidden" errors for the "rpm" subdomain and mention in the error output that the API key approach is available


Is  it possible to manipulate each frame before rendering?

For example, I would like to do some frame/image processing before rendering it. Is this technically possible using this package?

i think there no option to do so, you can take screen shot of the frame and then render it with your processing
or do the overlay on top of the video player it self,
if you explain your use case more, maybe other solutions come to mind

i think there no option to do so, you can take screen shot of the frame and then render it with your processing
or do the overlay on top of the video player it self,
if you explain your use case more, maybe other solutions come to mind

I want to apply a super video resolution algorithm to the video frame.

i think there no option to do so, you can take screen shot of the frame and then render it with your processing
or do the overlay on top of the video player it self,
if you explain your use case more, maybe other solutions come to mind

I want to apply a super video resolution algorithm to the video frame.

From my current knowledge I don't think that's possible using mpv, or any player actually, since it requires mapping the frames to your code and then rendering it, which most probably is not fast enough to handle video playback fps

Thanks~


FormCheckbox Component does not offer a capability to not add an aria-label

Describe the bug
Form Checkbox takes name as an aria-label when one is not provided however I need the aria-label attribute to be deleted as it
overrides the visible label and the already existing programmatic association between the
and the negates the need for an aria-label.
Expected behavior
When the aria-label property is not provided do not add it to the radio
Line 52 in the src/formCheckbox/FormCheckbox.tsx file
ariaLabel={ariaLabel || name}
Please follow these steps to create your branch:
git checkout release/1.1.0
git pull
git checkout -b 'feature/checkbox-aria-label'

closed by #651


v0.12.0: tekton-pipelines-webhook is forbidden: unable to validate against any pod security policy

Expected Behavior
tekton-pipelines-webhook deployment is able to create pod.
Actual Behavior
tekton-pipelines-webhook deployment is not able to create pod due to:
Error creating: pods "tekton-pipelines-webhook-7bd568f6c6-" is forbidden: unable to validate against any pod security policy: []

Steps to Reproduce the Problem
Run 0.12 tektoncd from https://github.com/tektoncd/pipeline/releases/download/v0.12.0/release.yaml on k8s cluster with PodSecurityPolicy enabled
Additional Info

Kubernetes version:

Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.4", GitCommit:"8d8aa39598534325ad77120c120a22b3a990b5ea", GitTreeState:"clean", BuildDate:"2020-03-12T23:41:24Z", GoVersion:"go1.14", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.4", GitCommit:"8d8aa39598534325ad77120c120a22b3a990b5ea", GitTreeState:"clean", BuildDate:"2020-03-12T20:55:23Z", GoVersion:"go1.13.8", Compiler:"gc", Platform:"linux/amd64"}

Tekton Pipeline version:

Client version: 0.9.0
Pipeline version: v0.12.0

It seems that there is missing one item in tekton-pipelines-webhook-cluster-access ClusterRole:
- apiGroups: ["policy"]
  resources: ["podsecuritypolicies"]
  resourceNames: ["tekton-pipelines"]
  verbs: ["use"]

/kind bug
/cc @sbwsg

@r0bj we've released a fix for this as part of v0.12.1.  Please let us know if problems persist after updating.  Cheers!


Rendering table rows

Would be nice to implement this: https://facebook.github.io/react/docs/animation.html#rendering-a-different-component
I'm stuck rendering a
 in a
 since it gets wrapped into a .

Ha. It's implemented. So the problem is that the onlyChild constraint doesn't work because of the multiple s in each row.

Ha. Wrapping
s  in
 is valid. So <ReactCSSTransitionReplace component="tbody"> with
 as the onlyChild works.

I'm glad you found a solution @jmatsushita.


Dreamview problems

module monitor and dreamview is already running but the dreamviewer localhost:8888 shows nothing

I've got the same problem .It's awful.But sometimes it work I don't know what to do

You can check browser console, log under /apollo/data/log/dreamview.INFO and https://github.com/ApolloAuto/apollo/blob/master/docs/FAQs/Dreamview_FAQs.md for further troubleshooting.

I had the same problem while using firefox. Switching to chrome resolved the issue.

Closing this issue as it appears to be resolved. If you have any additional questions feel free to reopen. Thanks!


Cannot query timestamp type after indexed

Source hive table has columns of type timestamp.  I mapped this to hive-solr column type of timestamp and schema field type tdate (which has precision 6).  Upon querying, received error:
Failed with exception java.io.IOException:org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.ClassCastException: java.util.Date cannot be cast to java.sql.Timestamp
Value is stored as TrieDateField with correct precision.  Shouldn't the SerDe treat this as a timestamp (and precision 0 as a date)?

@scoaste did found any solution for this ?


Overlays hidden under custom layer

Reported in BRouter Group thread BRouter-Web Release 0.7.0.
When adding a custom layer (e.g. http://{s}.tile.stamen.com/terrain/{z}/{x}/{y}.png) as base layer, it gets a z-index: 9, while the Cycling and Hiking overlay layers remain at z-index: 7 and 8, so they are displayed below the custom base layer and are not visible.
I guess this is just how the Leaflet Layers Control works by default. Maybe we could set autoZIndex to false?

Hi, I observe the same issue. It seems that currently the drawing order is related to the order of adding the custom layers, is'n it?
Would be great if the custom layer's drawing order/priority could be set for each custom layer.
Thanks in advance.
BTW: Is '{s}' as placeholder for subdomain 0,1,2,3... as part of the layer's URL already supported?


Authentication not working when redirected

Hi,
because of a migration we have a redirect from private-registry.internal to mydocker-registry.internal.
Problem:
cf push "imagapp" --docker-image "private-registry.internal/imageapp:latest"--no-manifest -i "1"
Staging...    Staging process started ...    Failed getting docker image manifest by tag: unauthorized  Going to retry attempt: 1    Failed getting docker image manifest by tag: unauthorized  Going to retry attempt: 2    Failed getting docker image manifest by tag: unauthorized  Going to retry attempt: 3    Failed getting docker image manifest by tag: unauthorized
But local docker pull is working:
docker pull private-registry.internal/imageapp:latest
Investigation:
Test1:
cf push "imagapp" --docker-image "private-registry.internal/imageapp:latest"--no-manifest -i "1"
Nginx log:
<SOURCE_IP> - - [TIMESTAMP] "GET /v2/ HTTP/1.1" 308 171 "-" "Go-http-client/1.1" "-"
<SOURCE_IP> - - [TIMESTAMP] "GET /v2/ HTTP/1.1" 401 87 "https://private-registry.internal/v2/" "Go-http-client/1.1" "-"
<SOURCE_IP> - - [TIMESTAMP] "GET /api/docker/docker/v2/token?scope=repository%3Aimageapp%3Apull&service=mydocker-registry.internal%3A443 HTTP/1.1" 200 114 "-" "Go-http-client/1.1" "-"
<SOURCE_IP> - - [TIMESTAMP] "GET /v2/webapp/manifests/latest HTTP/1.1" 308 171 "-" "Go-http-client/1.1" "-"
<SOURCE_IP> - - [TIMESTAMP] "GET /v2/webapp/manifests/latest HTTP/1.1" 401 87 "https://private-registry.internal/v2/webapp/manifests/latest" "Go-http-cli
I assume that the token is stored for the redirection target (mydocker-registry.internal) but not for the docker image tag (private-registry.internal).
Test2:
cf push "imagapp" --docker-image "mydocker-registry.internal/imageapp:latest"--no-manifest -i "1"
<SOURCE_IP> - - [TIMESTAMP] "GET /v2/ HTTP/1.1" 401 87 "https://mydocker-registry.internal/v2/" "Go-http-client/1.1" "-"
<SOURCE_IP> - - [TIMESTAMP] "GET /api/docker/docker/v2/token?scope=repository%3Aimageapp%3Apull&service=mydocker-registry.internal%3A443 HTTP/1.1" 200 114 "-" "Go-http-client/1.1" "-"
<SOURCE_IP> - - [TIMESTAMP] "GET /v2/webapp/manifests/latest HTTP/1.1" 200 2821 "https://mydocker-registry.internal/v2/webapp/manifests/latest" "Go-http-cli
Test2 is working since no redirection is made.
Expected result:
cf push "imagapp" --docker-image "mydocker-registry.internal/imageapp:latest"--no-manifest -i "1" works.
(Hint: When I disable redirection in the reverse proxy. It works.)

@sonman We've been unable to reproduce the issue using the azure container registry. Can you please provide us the following items so we can reproduce this issue:

nginx.conf that mimics the proxy behavior explained above
dockerapplifecycle-builder command line with arguments (no passwords) that causes the above error.

Hello @sonman - I'm going to go ahead and close this issue since it's been inactive for over 30 days. Feel free to comment, provide the items requested by @aminjam ,  and reopen if you'd like to continue.


IOS App freeze after several days

Hi,
Im having a issue on IOS when i have the app for several hours/days in the background and then open it. The app will show the splash screen, but is stuck in it.
It looks like the app gets rebooted in the background by IOS.
Anyone with a solution for this? Or is this a known problem?

?

I'm experiencing this as well. It's likely related to #95

Same here. What is the workaround?

For now i dont have any workaround ... would be nice if the team would react ...

+1

My problem with this was after receiving push notifications while the app was in the background and had been killed by the os, the notification had content-available and so the  so tried to restart but the app got stuck on the splash. Setting the WKSuspendInBackground to false solved the issue. Also make sure to set the WKPort to a random number especially if you install different versions of your app for testing e.g. dev,stg etc as I've run into splash screen issues there also, and make sure each version has a different port.


Please put back or provide option to get the complete API

Description:
Previously, the api could be viewed in its entirety (at least all the Static and Instance Methods and Properties). This was very helpful in terms of scanning and familiarization. Now the API is broken into sections that require you to have a guess about what kind of thing you're looking for before you can begin to find it. I guess that's helpful for someone who's just poking around but it's extra time when you're just trying to use it as a reference.
It would be really helpful to be able to click on the "API" top-level and just get the same content as standard document sections in a single page.
Please consider it.
Versions affected:
0.9

Tried this once before. It will just hide everything in one long sidebar. Documenting stuff is also a challenge since you have to deal with one huge file. Also, Ractive's old docs prior to 0.9 didn't document everything which is why it looked and felt short. This time around, everything is being documented.
Segregating the API into what they are now seems to be a cleaner and more maintainable structure.

For me the most cumbersome part with the current layout is that all the methods/properties aren't available in a sidebar so I can do: 'ctrl+f'. The pages themselves can still be separate files g. Javadocs is a good example of a massive api, but fairly accessible because of the iframe sidebar where you can search for methods/properties etc.
Isn't there a way to replicate this somehow? In other words, have a sidebar/iframe with all the methods/properties which links to the individual pages.
The hard part, which is writing the docs, seems to be in place, we just need to find a practical solution to the structure, so users have an easier time learning and understanding Ractive.

For me the most cumbersome part with the current layout is that all the methods/properties aren't available in a sidebar so I can do: 'ctrl+f'.

Hmm... But isn't that the purpose of the Search (last item in the menu)?

Isn't there a way to replicate this somehow? In other words, have a sidebar/iframe with all the methods/properties which links to the individual pages.

The docs pretty much handed all the aspects of the build to mkdocs so we don't have to deal with that and focus on writing docs and keeping it complete instead.

The site search doesn't work well for me eg. findParent bring back nothing. I guess it's not only about ctrl+f, it's also about scanning down the alphabet.
Imagine a new user who has no notion whether something is static or instance. She goes through the list, finds nothing, now has three more pages to trawl through.

The docs pretty much handed all the aspects of the build to mkdocs so we don't have to deal with that  and focus on writing docs and keeping it complete instead.

As I mentioned it's great to have easily editable docs and lots of info, but if it is cumbersome to find that info that defeats the purpose. Writing docs takes serious effort, imagine it not being read ;-)
If mkdocs cannot help here, can't we hand-code the sidebar, and manually link to the generated pages? Then we can still easily edit the pages and have the entire api available in one place for easy reference. The compromise would be to maintain the sidebar.

🤔  How about a single-page version of the docs, with a full ToC at the side?
Was thinking about how to keep the 0.9 docs when it transitions to 1.0. A script that concats all the pages to one file based on the pages property on mkdocs.yml was one idea. The resulting file would be checked in, and rendered like any other page - a snapshot of the entire docs in one file. We could also do one for the latest version.

That would work for me.
Although I like the "edit the page" link at the bottom of each page. As you mentioned, that makes contributing easier. Editing a generated doc won't work. So we'd just go with the normal 'fork repo' way of contributing docs?

If the generated file is from an older version, one can just edit the generated file directly (since it no longer has its loose files/loose files already versions ahead). If it's from the current version, just edit the loose files, run the script, and check in both loose and generated files.
I haven't thought this through yet, will have to try it out. 😄

Just to clarify, ideally we can have the API as a single page with TOC. If that works out it could be worthwhile doing the same for the "concepts" section since that seems to be the actual "documentation". It contains the "templates" section which is really what Ractive is all about.

I don't think combining static and instance methods and properties would be too cumbersome for one page. Looking at it, on my monitor at least, that would add about four screens of additional content to the instance methods page, which isn't awful for reference material. The TOC really helps with navigating around the docs too, and in a much less aggravating way than the old docs site where the page load moved the menu back to the top of the page.
The search is a bit... interesting. It's pretty ok considering the amount of stuff that it covers, but it's a little finicky too. It doesn't order results quite as I'd like, but it's a bit better than no search at all. Just searching "find" has findParent about 10 items in. "findParent" not showing findParent is... special.
I'd like to get a short overview of all of the template constructs into the API section too. Eventually, I'd like to get the Concepts down to in-depth descriptions of the different constructs and how they are handled internally, with everything you'd need to be able to maintain an existing ractive app available from the API section with links to in-depth Concepts docs where applicable.

The sections on the docs are now combined to one file each, except for the tutorials. Removed internal cross-linking for now since every time I move around content, I have to fix a hundred links linking back to it. I think I can close this one now.

Thanks! I find the new structure much easier to navigate.
In terms of structure we could also consider hoisting the Mustache section (and other templaty things such as special refs) into a top level menu item. Technically Templates are API though but it feels as if they deserve more ;-)

API section updated (or a few moments ago). 🎉


Dev

Merging microservices: OBU Generator, Receiver/Provider, Consumer/Distance Calculator, Aggregator/Invoicer with HTTP & GRPC Clients

All transport tests (HTTP & GRPC) passed


Data cached in custom middleware

I'm using ASP.NET Core 1.1.0 and EF Core 1.1.0. I extended the built-in JWT Bearer authentication with my own middleware, but data is being cached between calls. I have a feeling the DB context is being reused, but I'm not sure how to troubleshoot.
Specifically, I'm calling the token endpoint to invoke the middleware and get a new JWT. The user is returned, all is good. If I manually update the DB with SSMS then log in again, the old, outdated user information is returned. The DB is being hit both times and it's returning the correct data (I verified with SQL Profiler), but EF is apparently ignoring the updated data in favor of what it already had.
I'm using standard DI with the token middleware, nothing special there. Relevant code is below.
Startup.cs:
public void ConfigureServices(IServiceCollection services)
{
    services.AddDbContext<MyContext>(options =>
        options.UseSqlServer(Environment.GetEnvironmentVariable("DEV_CONNECTIONSTRING")));

    services.AddScoped<UserService>();
}

public void Configure(IApplicationBuilder app,
                      IHostingEnvironment env,
                      ILoggerFactory loggerFactory,
                      IApplicationLifetime appLifetime)

    /* These options specify:
    * - token endpoint
    * - authentication scheme
    * - JWT issuer
    * - duration of JWT validity
    * - duration of refresh token validity */
    app.UseMiddleware<JwtProviderMiddleware>(new JwtProviderOptions(
        "/api/users/token",
        "Bearer",
        "MyJwtIssuer",
        Duration.FromMinutes(30),
        Duration.FromDays(7)
    ));
}

Custom JWT provider middleware:
public class JwtProviderMiddleware
{
    readonly RequestDelegate _next;
    readonly JwtProviderOptions _options;
    readonly UserService _userSvc;

    public JwtProviderMiddleware(RequestDelegate next,
                                 JwtProviderOptions options,
                                 UserService userSvc)
    {
        _next = next;
        _options = options;
        _userSvc = userSvc;
    }

    public async Task Invoke(HttpContext context)
    {
        // parse request body for email address and password

        // user is returned incorrectly here
        var user = await _userSvc.GetByEmailAsync(email);
    }
}

UserService:
public class UserService
{
    MyContext _context;

    public UserService(MyContext context)
    {
        _context = context;
    }

    public async Task<User> GetByEmailAsync(string email)
    {
        return await _context.Users.FirstOrDefaultAsync(u => u.Email == email);
    }
}

Further technical details
EF Core version: 1.1.0
Database Provider: Microsoft.EntityFrameworkCore.SqlServer
Operating system: Windows 10 Education x64
IDE: VS 2015 Enterprise

@vaindil The DbContext is registered as scoped, which means that:

Services that depend on it cannot be singletons
A scope must be created and the DbContext (or any services that depend on it) must be resolved from that scope.

@ajcvickers The UserService is scoped, so is the problem that the middleware is (I assume) a singleton? If that's the case I can try to figure that out and close this issue as it's not an EF problem.

@vaindil sounds about right; you can grab a scoped instance of UserService from HttpContext.RequestServices for a quick solution. I'm sure there are 'better' ways to do it with constructor injection and all, though.

@tuespetre Perfect, that's what I needed. Startup.cs stays the same, but I had to change the middleware to the format below. I made _userSvc not readonly and removed it from the constructor, then set it at the top of Invoke() using context.RequestServices.
Thank you!
public class JwtProviderMiddleware
{
    readonly RequestDelegate _next;
    readonly JwtProviderOptions _options;
    UserService _userSvc;

    public JwtProviderMiddleware(RequestDelegate next,
                                 JwtProviderOptions options)
    {
        _next = next;
        _options = options;
    }

    public async Task Invoke(HttpContext context)
    {
        _userSvc = context.RequestServices.GetService(typeof(UserService)) as UserService;

        // parse request body for email address and password

        // user is returned incorrectly here
        var user = await _userSvc.GetByEmailAsync(email);
    }
}

You should use a local variable instead of a field to store the user service, otherwise your code is not thread-safe: request A begins and sets the field, but before it gets to the last line, request B begins and overwrites the field. Now when A gets to the last line, it's seeing the value written by request B.

@tuespetre Shoot, good catch! I have a couple other functions in this middleware that are called by Invoke(), that's why I was using a field. I altered them to accept a UserService parameter and I'm passing the local variable now.
Thanks again!


Getting code completion to work with custom Types

The gather callback obviously expected the reported obj in the gather callback to be an instance of infer.Obj and directly uses its implementation private "props" property in "obj.props[]". Instead I believe it should use the proper API "obj.getProp()". This bit me when I tried to implement my own static Type that did not have the "props" field. The proposed change makes the implementation accept custom "infer.Type" implementations, too.

There will be a lot of other places that assume the built-in set of types are the only types that exist. This interface is not intended to be extended. What kind of type are you implementing?

I have a large system that describes our types. I found that using the "defs" format was not feasible, since it does not support generics completely. I tried to create types whose properties are queried lazily, because feeding the system with all types at once probably performs awfully.
So I implemented my one type extending infer.Type.
This works very good until I use code completion. After this fix it seems I can get most functionality to work. However I already found out that using new infer.Obj(myType) will also not work, since it also requires the "props" property. The problem with the props property is that I cannot easily hook into the time when it is queried for the first time. So lazy initialization of my types is almost impossible.
Speaking of which: I could make "props" a computed property with a getter function and then initialize it.
Do you have another idea how to implement the system so that types are populated and created lazily?
If you are interested: This is the system I am trying to integrate it with:
http://docs.yworks.com/yfileshtmlv2/index.html

Why don't you include a props property (which is, in fact, part of the object's interface)? Keeping most of the Obj type and only extending the getProp method might work. You'll still have some issues unless you also make sure that the objects' constructor property refers to Obj, because that is used in several places to make sure code isn't dealing with a function or array.
Eventually, I'd like to add proper support for computed properties (having arbitrary code execute when a property is accessed), but this doesn't exist yet. If you want to sponsor its development, write me.

Regarding "computed properties": I think this was a misunderstanding. I think I understand that tern does not understand getter/setter properties in the code it analyzes. However my idea was to use that Javascript language feature in my own Obj subtype to become notified when the property is accessed and lazily initialize it. I tried that in the meantime and although it's a bit dirty, it seems to work.
So I am no subtyping Obj just for the purpose of lazily initializing the props property.
Regarding sponsporing: This is indeed something we consider after we have finished our prototype.
Thanks again for a great product!
Note: I still believe that my initial merge request would improve the situation a little, although with my workaround it is not necessary anymore... Feel free to close the request if you don't want to merge it!


feat: slightly increase array difference performance

Actual implementation of array difference is not optimal, we could improve performance using Set to check if the second array not contains element from the first one
Here some performance benchmarking for both implementations https://jsbench.me/w6l49kdxls/1

Codecov Report

Merging #3698 (b73aff8) into beta (ad82ee8) will increase coverage by 0.00%.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             beta    #3698   +/-   ##
=======================================
  Coverage   97.11%   97.11%
=======================================
  Files          50       50
  Lines        2391     2392    +1
  Branches      706      706
=======================================
+ Hits         2322     2323    +1
  Misses         67       67
  Partials        2        2

Impacted Files
Coverage Δ

src/core/utils.ts
100.00% <0.00%> (ø)

Continue to review full report at Codecov.

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

thanks. could you solve the conflicts please?

sorry this was auto closed. can you re-open the PR pointing to main please?


chore(deps): update terraform terraform-ibm-modules/kms-all-inclusive/ibm to v4.17.1

This PR contains the following updates:

Package
Type
Update
Change

terraform-ibm-modules/kms-all-inclusive/ibm (source)
module
patch
4.17.0 -> 4.17.1

Release Notes

terraform-ibm-modules/terraform-ibm-kms-all-inclusive (terraform-ibm-modules/kms-all-inclusive/ibm)
v4.17.1
Compare Source
Bug Fixes

deps: update terraform ibm to latest for the deployable architecture solution (#591) (2948d74)

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

/run pipeline

/run pipeline

⚠ Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

any of the package files in this branch needs updating, or
the branch becomes conflicted, or
you click the rebase/retry checkbox if found above, or
you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:
File name: main.tf
temporary-error

/run pipeline

/run pipeline

:tada: This PR is included in version 3.35.6 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Bridge: Clarify with a message that secrets are shared across project.

Action Item
In the secret screen, the message secrets are shared across projects should be added.

The Bridge UI would be more intuitive if the “secrets” were managed at the global level (not in the project uniform page),  Then to indicate a secret is related to project, either (A) have a list of projects on that global secrets page where one checks the project(s) it applies to.  Or (B) on the project uniform page you don't add secrets, you just have check box to pick the existing secret(s) that were setup on the global page that are applicable for that project


Pre-populate first "page" of results

I was hoping to be able to do something like this:
$('#widget').select2({
    minimumInputLength: 0,
    data: [{'id': 1, 'text': 'blah'}, ...]
    ajax: {
        url: 'someurl'
    ...

Where data would specify the first "page" of results in an infinitely scrolling Select2 widget.  I assume that the data function defined in the ajax constructor overrides this data array however.
Is there any way to pre-poplate default results such that the widget doesn't "start over" with no results every time it is opened?

send a jsfiddle example


IE 11 -  Object doesn't support this action

When instantiating formeo in IE 11 I get an "Object doesn't support this action" error. formeo.min.js (6,37350).

events.js needs a wrapper similar to the one in formBuilder https://github.com/kevinchappell/formBuilder/blob/master/src/js/events.js

To at least enable my vue app to compile, what I did was add following to utils.js:

export const createCustomEvent = (eventName, data) => {
  let event;
  if (typeof CustomEvent === 'function') {
    event = new CustomEvent(eventName, data);
  } else {
    event = document.createEvent('CustomEvent');
    event.initCustomEvent(eventName, true, true, data);
  }

  return event;
};

Wherever I see a new CustomEvent call in the existing code (say events.js), I did this:
import {createCustomEvent} from './utils';
...
formeoSaved: createCustomEvent('formeoSaved', {}),
...

In formeo.js I added Object.assign from Mozilla Developer Network (I temporarily disabled ESLint in the process as it doesn't allow varArgs and changing it to ...varArgs doesn't work due to presence of 'use strict';

if (typeof Object.assign != 'function') {
  // Must be writable: true, enumerable: false, configurable: true
  Object.defineProperty(Object, 'assign', {
    value: function assign(target, varArgs) { // .length of function is 2
      'use strict';
      if (target == null) { // TypeError if undefined or null
        throw new TypeError('Cannot convert undefined or null to object');
      }

      let to = Object(target);

      for (let index = 1; index < arguments.length; index++) {
        let nextSource = arguments[index];

        if (nextSource != null) { // Skip over if undefined or null
          for (let nextKey in nextSource) {
            // Avoid bugs when hasOwnProperty is shadowed
            if (Object.prototype.hasOwnProperty.call(nextSource, nextKey)) {
              to[nextKey] = nextSource[nextKey];
            }
          }
        }
      }
      return to;
    },
    writable: true,
    configurable: true
  });
}

Once both done, formeo at least displayed form I loaded from memory although initially I received unspecified error at call to window.getComputedStyle (Invalid operation)

I am not sure what I did is correct, but my vue-base website working reasonably now.

Hi,
I have same problem. when will you fix that problem.
enjoy working !


Fix on warning: "componentWillMount will be deprecated soon"

Fixes the "componentWillMount will be deprecated soon" warning based on the official docs:
https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html#adding-event-listeners-or-subscriptions

Please merge it as soon as possible

seems to work for me.
hope that @vcarl or @dbarbalato can merge and release soon!

Hello there. This is important. I hope it will be merged soon.

Hello, I'm also getting the warning and it's causing our build to fail. Will you please merge this PR when you can?

How is this still not merged?! Please, merge and release a new version!

Looks like this project isn't being maintained anymore: https://github.com/captivationsoftware/react-sticky/commit/50f68e1af5937c12cdc1aab46ea45c4a4d74e46d


Is this necessary?

Is it possible not to show that ? it adds nothing for average user but confusion

For sure, what about "create account" on the right-side menu. Check that out and please give feedback on that. It's fairly advanced now, maybe some "advanced" expander or something to hide off the manual edit of derivation path?

Yes derivation path is shown with the "create account" and that's ok.
I just think you have to make it as simple as possible visually, think of the 80 year old grandmother who doesn't understand anything. The slightest superfluous character can cause her to bug out ahah.

Simplified and added the symbol:


Upgrade to Go 1.18

Description
Upgrades all dockerfiles, pipelines, and builds to go 1.18
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration

all unit tests pass locally
all pipelines pass
tested with a AKS cluster with private ACR using Azure workload identity with a subject image with a single notary signature

@dtzar fixed merged conflict


Workflow template concurrency

Summary
An option to cancel in progress workflows when another workflow template is invoked concurrently.
Use Cases
So that we don’t have two instances of a workflow template running at the same time.

Message from the maintainers:
Love this enhancement proposal? Give it a 👍. We prioritise the proposals with the most 👍.

This is more or less superseded by #12757


Enable casher call on declaration sign

Coverage remained the same at 91.273% when pulling 677f5fe5d461889f9ecc83a15c409d4e913dfb71 on fix-enable-casher into c3b82b417d41eacf48d6e471ec3507fa8dde64c9 on develop.


fix: changing context name in one command

Changing context name in example, since first is named "local" but then is referenced as "localhost". This might benefit new users of this CLI.

Thank you :)


Flutter APK crashes with Android log error when updating NetworkImage

I received this error multiple times while running my app, but I don't have a lot of information on what's triggering it. All the app does is periodically receive remote updates and then updates a NetworkImage with the new contents.  I'm adding this now for tracking -- my next steps are to create a more reproducible test-case.
relevant bit from "adb logcat"
E/System  (30957): Uncaught exception thrown by finalizer
E/System  (30957): java.lang.IllegalStateException: Warning: Router objects should be explicitly closed when no longer required otherwise you may leak handles.
E/System  (30957): 	at org.chromium.mojo.bindings.AutoCloseableRouter.finalize(AutoCloseableRouter.java:111)
E/System  (30957): 	at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:191)
E/System  (30957): 	at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:174)
E/System  (30957): 	at java.lang.Thread.run(Thread.java:818)

Thanks for any info you can provide!

looks like a dupe of https://github.com/flutter/flutter/issues/2950

Closing as dup.


[Bug] How to get back  to the same expanded state in Tree Diagram of echarts after making any changes in the nodes after expanding them?

Version
5.2.2
Link to Minimal Reproduction
https://echarts.apache.org/examples/en/editor.html?c=tree-basic
Steps to Reproduce
Use the above link
If you know how to do it, please comment with the solution
Current Behavior
The entire chart gets redrawn.
Expected Behavior
It is fine that it is getting redrawn, I just want to navigate to the same expanded state after it's getting redrawn.
Environment
- OS: windows
- Browser: chrome
- Framework: angular

Any additional comments?
No response

try this
You need to pay attention to two things:

update your data according to your content.
setOption again.


Add tensorboard to requirements.txt

I've just done a clean setup of the project and noticed that tensorboard is missing from the requirements file, which obviously led to:
ModuleNotFoundError: Neither `tensorboard` nor `tensorboardX` is available. Try `pip install`ing either.

Thank you! Merged.


the first edition of video review

the short demo video, that expains content_settings aspects

setting up the project and content settings configuration
simple types such as text
explaining help
show admin (history) and migrate function to explain validation
Html and preview
show using int in code and text in template - by explaining to_python
show DateTime together with admin
show tags, context_defaults and add_tags, content tags
show lazy prefix and using it in default function argument value
content_settings_context for testing and for traveling back in history
show API, permissions and FetchSettingsView
show withtag prefix, you can also show type prefix and explain register_prefix
show validators and mixins
explain constant
combining types in example of array types and EachMixin
explain give function in context of to_python function, DictSuffixesPreviewMixin (show how it looks in admin panel)
markups module combined with EachMixin

JSON
YAML
CSV

template

DjangoTemplate
DjangoModelTEmplate
SimpleEval

User Defined Types - overwrite_user_defined, using user defined type in combine
going through the settings module and explaining the caching principle and check_update
the result project should be in cs_test

https://youtu.be/RNYmvv_G5zs


Angular 7 support?

Are there any plans, or do you know about any forks of this project to support Angular 7?

@nachojoaquin you might like to try https://github.com/dhcode/openapi-ui


Docker run on file directory using Foundry fails with unclear errors

when I run the following command:
docker run -v $(pwd):/tmp mythril/myth a /tmp/src/Kernel.sol --solc-json mythril.config.json
I am yielding this as my output:
mythril.interfaces.cli [ERROR]: Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/solcx/install.py", line 633, in _validate_installation
    installed_version = wrapper._get_solc_version(binary_path)
  File "/usr/local/lib/python3.10/site-packages/solcx/wrapper.py", line 17, in _get_solc_version
    stdout_data = subprocess.check_output([str(solc_binary), "--version"], encoding="utf8")
  File "/usr/local/lib/python3.10/subprocess.py", line 421, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/local/lib/python3.10/subprocess.py", line 526, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/home/mythril/.solcx/solc-v0.8.0', '--version']' returned non-zero exit status 255.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/mythril/interfaces/cli.py", line 966, in parse_args_and_execute
    address = load_code(disassembler, args)
  File "/usr/local/lib/python3.10/site-packages/mythril/interfaces/cli.py", line 717, in load_code
    address, _ = disassembler.load_from_solidity(
  File "/usr/local/lib/python3.10/site-packages/mythril/mythril/mythril_disassembler.py", line 252, in load_from_solidity
    solc_binary = self.solc_binary or util.extract_binary(file)
  File "/usr/local/lib/python3.10/site-packages/mythril/ethereum/util.py", line 240, in extract_binary
    return solc_exists(version)
  File "/usr/local/lib/python3.10/site-packages/mythril/ethereum/util.py", line 140, in solc_exists
    solcx.install_solc("v" + version)
  File "/usr/local/lib/python3.10/site-packages/solcx/install.py", line 466, in install_solc
    raise exc
  File "/usr/local/lib/python3.10/site-packages/solcx/install.py", line 459, in install_solc
    _validate_installation(version, solcx_binary_path)
  File "/usr/local/lib/python3.10/site-packages/solcx/install.py", line 636, in _validate_installation
    raise SolcInstallationError(
solcx.exceptions.SolcInstallationError: Downloaded binary would not execute, or returned unexpected output. If this issue persists, you can try to compile from source code using `solcx.compile_solc('0.8.0')`.

If it helps I basically copied how to use Mythril in foundry from their static analyzers page into a json file and am trying it on:
github.com/zerodevapp/kernel

Hi @VoR0220, are you running on M1 or x86?

@norhh I am running on M1

I also encountered this error. My mac is the m1 version. Is there any solution?

But if I set the parameter to --solv 0.4.25, this problem will not exist.

Hi @ShizhuBaishao, Thank you for the insight.
At value of --solv are you encountering this error?
You can try it by creating an empty contract with varying pragma.


default code language for unknown language should be none

By default, an unspecified coding language will default to python (based off of Sphinx's choice of default language). In the event where an unsupported language for Confluence is provided to this extension (since Confluence will not be able to render it), this extension would fallback on a default language. This is unexpected since something like shell-session would translate to python. It would be better for unknown language types to default to a none (plain render) to prevent unexpected coloring.

Resolved on master via #286; will be available next stable release (v1.3+).


How is this supposed to work

Is there a sample rails webapp using this somewhere, if not how to make one?

Hello, it seems you're the first person who has found our FIX client. Internally we've actually moved away from using this gem, but it still works as a FIX adapter. Damage tries to be generic but it has become focused on support TT and ICE connections. It'd be great if you could contribute an example app. But, as of now we don't have any plans of adding one.
To use this in a rails app, you'll need to do a few things:
Set up an initializer:
Damage.configure do |config|
  config.heartbeat_int = ENV['TT_HEART_BT_INT'] || 30
  config.persistent = true
  config.persistence_options = {
    sent_model: :sent_fix_messages,
    rcvd_model: :rcvd_fix_messages
  }
  config.persistence_class = FixPersistence
end

Set up models to store messages as they come across the wire, our setup was somewhat like this:
class SentFixMessage < FixMessage
end

class RcvdFixMessage < FixMessage
end

class FixMessage < ActiveRecord::Base
  belongs_to :account

  class << self
    def types
      %w(RcvdFixMessage SentFixMessage)
    end

    def max_seq_num
      maximum(:msg_seq_num) || 0
    end

    def missing_seq_nums
      expected = minimum(:msg_seq_num)..maximum(:msg_seq_num)
      actual = all.pluck(:msg_seq_num)

      expected.reject { |e| actual.include? e }
    end

    def missing_seq_num_ranges
      missing_nums = missing_seq_nums
      array = missing_nums.compact.uniq.sort
      ranges = []
      if !array.empty?
        # Initialize the left and right endpoints of the range
        left, right = missing_nums.first, nil
        array.each do |obj|
          # If the right endpoint is set and obj is not equal to right's successor
          # then we need to create a range.
          if right && obj != right.succ
            ranges << [left, right]
            left = obj
          end
          right = obj
        end
        ranges << [left, right]
      end
      ranges
    end
  end
end

Finally, you'll need some way to run damage. We wrapped it in a simple thor script:
#!/usr/bin/env ruby
require File.expand_path("../../config/environment", __FILE__)
require 'thor'

class FixDotThor < Thor
  include Molecule::Fix::Cli

  namespace :fix
  default_task :listen

  desc "listen <vendor> [-R|--reset-seq-num]", "Start FIX listener for each account that has credentials for <vendor>"
  method_option :reset_seq_num, type: :boolean, default: false, aliases: '-R'
  method_option :delete_history, type: :boolean, default: false, aliases: '-D'
  method_option :security_definition, type: :boolean, default: false, aliases: '-S'
  def listen(vendor)
    supervisor = self.create_supervisor(vendor, options)

    Signal.trap("USR1") do
      supervisor.actors.each do |client|
        client.graceful_shutdown!
      end
      supervisor.terminate
    end

    loop do
      if !supervisor.alive?
        ActiveRecord::Base.clear_all_connections!
        ActiveRecord::Base.establish_connection
        options.merge reset_sequence: true
        supervisor = self.create_supervisor(vendor, options)
      else
        sleep 5 while supervisor.alive?
      end
    end
  end

  def reset_all
    Rails.logger.info "Deleting history... "
    RcvdFixMessage.delete_all
    SentFixMessage.delete_all
    Rails.logger.info "Done!\n"
  end

  def configure!(reset = true)
    Celluloid.logger = Rails.logger
    Damage.configuration.persistent = reset
  end

  def create_supervisor(vendor, options = {})
    configure!(!options[:reset_seq_num])

    # should limit reset to only fix messages for the current vendor?
    reset_all if options[:delete_history]

    supervisor = Celluloid::SupervisionGroup.run!

    options = {
      as: "#{account.id}_id",
      args: [
        vendor.to_sym,
        [
          Molecule::Fix::Listeners::Ice::TradeCaptureReportListener,
          Molecule::Fix::Listeners::Ice::SecurityDefinitionListener
        ],
        account.ice_client_options.merge(options.slice(:security_definition))
      ]
    }

    supervisor.add(Damage::Client, options)

    supervisor
  end
end

FixDotThor.start(ARGV)

Is there some FIX vendor who has sample test accounts I can use for testing
the app?
On Mon, Aug 31, 2015 at 5:29 PM, Adam Sunderland<EMAIL_ADDRESS>wrote:

Hello, it seems you're the first person who has found our FIX client.
Internally we've actually moved away from using this gem, but it still
works as a FIX adapter. Damage tries to be generic but it has become
focused on support TT and ICE connections. It'd be great if you could
contribute an example app. But, as of now we don't have any plans of adding
one.
To use this in a rails app, you'll need to do a few things:
Set up an initializer:
Damage.configure do |config|
config.heartbeat_int = ENV['TT_HEART_BT_INT'] || 30
config.persistent = true
config.persistence_options = {
sent_model: :sent_fix_messages,
rcvd_model: :rcvd_fix_messages
}
config.persistence_class = FixPersistenceend
Set up models to store messages as they come across the wire, our setup
was somewhat like this:
class SentFixMessage < FixMessageend
class RcvdFixMessage < FixMessageend
class FixMessage < ActiveRecord::Base
belongs_to :account
class << self
def types
%w(RcvdFixMessage SentFixMessage)
end
def max_seq_num
  maximum(:msg_seq_num) || 0
end

def missing_seq_nums
  expected = minimum(:msg_seq_num)..maximum(:msg_seq_num)
  actual = all.pluck(:msg_seq_num)

  expected.reject { |e| actual.include? e }
end

def missing_seq_num_ranges
  missing_nums = missing_seq_nums
  array = missing_nums.compact.uniq.sort
  ranges = []
  if !array.empty?
    # Initialize the left and right endpoints of the range
    left, right = missing_nums.first, nil
    array.each do |obj|
      # If the right endpoint is set and obj is not equal to right's successor
      # then we need to create a range.
      if right && obj != right.succ
        ranges << [left, right]
        left = obj
      end
      right = obj
    end
    ranges << [left, right]
  end
  ranges
end

endend
Finally, you'll need some way to run damage. We wrapped it in a simple
thor script:
#!/usr/bin/env rubyrequire File.expand_path("../../config/environment", FILE)require 'thor'
class FixDotThor < Thor
include Molecule::Fix::Cli
namespace :fix
default_task :listen
desc "listen  [-R|--reset-seq-num]", "Start FIX listener for each account that has credentials for "
method_option :reset_seq_num, type: :boolean, default: false, aliases: '-R'
method_option :delete_history, type: :boolean, default: false, aliases: '-D'
method_option :security_definition, type: :boolean, default: false, aliases: '-S'
def listen(vendor)
supervisor = self.create_supervisor(vendor, options)
Signal.trap("USR1") do
  supervisor.actors.each do |client|
    client.graceful_shutdown!
  end
  supervisor.terminate
end

loop do
  if !supervisor.alive?
    ActiveRecord::Base.clear_all_connections!
    ActiveRecord::Base.establish_connection
    options.merge reset_sequence: true
    supervisor = self.create_supervisor(vendor, options)
  else
    sleep 5 while supervisor.alive?
  end
end

end
def reset_all
Rails.logger.info "Deleting history... "
RcvdFixMessage.delete_all
SentFixMessage.delete_all
Rails.logger.info "Done!\n"
end
def configure!(reset = true)
Celluloid.logger = Rails.logger
Damage.configuration.persistent = reset
end
def create_supervisor(vendor, options = {})
configure!(!options[:reset_seq_num])
# should limit reset to only fix messages for the current vendor?
reset_all if options[:delete_history]

supervisor = Celluloid::SupervisionGroup.run!

options = {
  as: "#{account.id}_id",
  args: [
    vendor.to_sym,
    [
      Molecule::Fix::Listeners::Ice::TradeCaptureReportListener,
      Molecule::Fix::Listeners::Ice::SecurityDefinitionListener
    ],
    account.ice_client_options.merge(options.slice(:security_definition))
  ]
}

supervisor.add(Damage::Client, options)

supervisor

endend
FixDotThor.start(ARGV)
—
Reply to this email directly or view it on GitHub
https://github.com/wearemolecule/damage/issues/40#issuecomment-136518062
.

The only two I'm aware of (that we've used this with) are ICE or Trading Technologies. That said, I'm certain there are many more people out there using FIX.
Out of curiosity, what is your use case for this?

Looks like I can sign up for an API account here and use FIX with it?
https://developer.tradingtechnologies.com/new-to-the-tt-developer-center
My use case is developing open source algo trading for retail investors in
a mobile app.  This is just at the idea stage now, I need to play around
with it before I know if it has legs.
Another idea is algo trading arbitrage between the estimated proven
remaining reserves of publicly traded royalty trusts, and the discounted
NPV from spot and future prices for gas/oil/liquids from the underlying
property makeup.
At a minimum I'd want to get a web and mobile client working in the open
source version with a demo account with some basic algo trading.
On Mon, Aug 31, 2015 at 6:41 PM, Adam Sunderland<EMAIL_ADDRESS>wrote:

The only two I'm aware of (that we've used this with) are ICE or Trading
Technologies. That said, I'm certain there are many more people out there
using FIX.
Out of curiosity, what is your use case for this?
—
Reply to this email directly or view it on GitHub
https://github.com/wearemolecule/damage/issues/40#issuecomment-136528665
.

I've signed up for developer access at Trading Technologies, if they
approve then I can try testing with Damage.  I'd imagine the sample app
should be some mysql/web ruby rails thing that lets you view txns, send,
recv, validate.
On Mon, Aug 31, 2015 at 7:08 PM, John Burns<EMAIL_ADDRESS>wrote:

Looks like I can sign up for an API account here and use FIX with it?
https://developer.tradingtechnologies.com/new-to-the-tt-developer-center
My use case is developing open source algo trading for retail investors in
a mobile app.  This is just at the idea stage now, I need to play around
with it before I know if it has legs.
Another idea is algo trading arbitrage between the estimated proven
remaining reserves of publicly traded royalty trusts, and the discounted
NPV from spot and future prices for gas/oil/liquids from the underlying
property makeup.
At a minimum I'd want to get a web and mobile client working in the open
source version with a demo account with some basic algo trading.
On Mon, Aug 31, 2015 at 6:41 PM, Adam Sunderland<EMAIL_ADDRESS>
wrote:

The only two I'm aware of (that we've used this with) are ICE or Trading
Technologies. That said, I'm certain there are many more people out there
using FIX.
Out of curiosity, what is your use case for this?
—
Reply to this email directly or view it on GitHub
https://github.com/wearemolecule/damage/issues/40#issuecomment-136528665
.


About the Pre-trained model weights

Thanks for your working.
I noticed that you mentioned pre trained model weights in Section 4.1 of the article, I have some interest in this. How should I do this part of pre training? What should I do if I pre train medical images? And If the network model is changed, whether the pre training is no longer applicable to the changed model and whether a new pre training is required？
Thanks a lot.

The pre-training weight is the training result on imagenet provided by swin transformer

Since the default embedding size is 192, the checkpoint file of the large swin model swin_large_patch4_window7_224_22k.pth is used to initialize the nnFormor's weights. The following errors are occurred during the initialization.

	Unexpected key(s) in state_dict: "model".

Could you provide the pre-trained model file gelunorm_former_skip_global_shift.model?

Since the default embedding size is 192, the checkpoint file of the large swin model swin_large_patch4_window7_224_22k.pth is used to initialize the nnFormor's weights. The following errors are occurred during the initialization.

	Unexpected key(s) in state_dict: "model".

Could you provide the pre-trained model file gelunorm_former_skip_global_shift.model?

did you get any solution for pre-trained model  ？

Since the default embedding size is 192, the checkpoint file of the large swin model swin_large_patch4_window7_224_22k.pth is used to initialize the nnFormor's weights. The following errors are occurred during the initialization.

	Unexpected key(s) in state_dict: "model".

Could you provide the pre-trained model file gelunorm_former_skip_global_shift.model?

hi,do you get the pre-trained weights gelunorm_former_skip_global_shift.model?


Option to store colors on the color palette

Currently the only way to store colors is to save a template.
I've ended up cloning the same template several times, once for each color (eg. white, red, green, blue). However, I often think of the template more as a line or fill style, which is independent of color.
Could we get ability to save colors on the color palette itself? Similar to how Network Skins 2 works?
This way I can have one template per line style, defining the most commonly used color for that line style, and then if I need to change color I can just open the color palette and click a stored color there. This will significantly reduce the number of templates I need.

Good idea, I'll add it to my plans

Could also be nice to have predefined colors of bus and bike lanes so we don't have to try to match it


⚠ Bofrost.de has degraded performance

In 74b5e26, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1204 ms

Resolved: Bofrost.de performance has improved in 5c6de29.


link to "promised Bret Victor video is broken"

Describe the bug
On the intro to module 6, the link described as "the promised Bret Victor video from Week 1" is broken and returns a 404
To Reproduce
Steps to reproduce the behavior:

Go to https://kernel.community/en/learn/module-6/
Click on 'promised Bret Victor video from Week 1"
Look at the rendered html
See 404 error and no video :(

Expected behavior
I expected to get a Bret VIctor presentation of some sort.

Thank you for finding this. I fixed it in https://github.com/kernel-community/kernel-v2/commit/9916be488f4a5378bda412225c701101746e6150
Really appreciate the close reading :heart:


.gitattributes to help normalize line endings

Originally posted in https://github.com/pyrsia/pyrsia/pull/735#discussion_r883089265
Working on multiple OS we have a few spots with different line endings despite the .editorconfig, it would be ideal to add this extra to help keep things consistent

Windows Users
git config --global core.autocrlf true
Linux and OS/X
git config --global core.autocrlf input
core.autocrlf explanation
.gitattributes
# Common settings that generally should always be used with your language specific settings

# Auto detect text files and perform LF normalization
*          text=auto

#
# The above will handle all files NOT found below
#

# Documents
*.bibtex   text diff=bibtex
*.doc      diff=astextplain
*.DOC      diff=astextplain
*.docx     diff=astextplain
*.DOCX     diff=astextplain
*.dot      diff=astextplain
*.DOT      diff=astextplain
*.pdf      diff=astextplain
*.PDF      diff=astextplain
*.rtf      diff=astextplain
*.RTF      diff=astextplain
*.md       text diff=markdown
*.mdx      text diff=markdown
*.tex      text diff=tex
*.adoc     text
*.textile  text
*.mustache text
*.csv      text
*.tab      text
*.tsv      text
*.txt      text
*.sql      text
*.epub     diff=astextplain
*.Dockerfile text

# Graphics
*.png      binary
*.jpg      binary
*.jpeg     binary
*.gif      binary
*.tif      binary
*.tiff     binary
*.ico      binary
# SVG treated as text by default.
*.svg      text
# If you want to treat it as binary,
# use the following line instead.
# *.svg    binary
*.eps      binary

# Scripts
*.bash     text eol=lf
*.fish     text eol=lf
*.sh       text eol=lf
*.zsh      text eol=lf
# These are explicitly windows files and should use crlf
*.bat      text eol=crlf
*.cmd      text eol=crlf
*.ps1      text eol=crlf

# Serialisation
*.json    text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
*.xml     text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
*.yml     text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
*.yaml    text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
*.toml    text whitespace=blank-at-eol,-blank-at-eof
.gitattributes text whitespace=blank-at-eol,-blank-at-eof

# Archives
*.7z       binary
*.gz       binary
*.tar      binary
*.tgz      binary
*.zip      binary

# Text files where line endings should be preserved
*.patch    -text

# Rust
*.rs       text diff=rust
Cargo.lock text

# Markdown
*.md linguist-detectable
*.mdx linguist-detectable

#
# Exclude files from exporting
#

.gitattributes export-ignore
.gitignore     export-ignore
.gitkeep       export-ignore

Re-normalize files in your working tree

Commit your current work
git rm --cached -r .
git reset --hard


Add command line interface

Changes:

Add command line interface
Add usage to command line interface
Turn off console debug in bio-validator.js for now

Hey @theisuru ,
I am going to add a smaller change when there is any error the script would start with a line something like this:
The validation process has found the following errors:

@theisuru : Done


Drop context method usage

Drop context handler method usage from our code, and migrated them as callback.
AWS mentioned that context handler methods were deprecated, and removed old context method handler usage page from Lambda developer documentation. also there are no versions in currently serviced Node.js runtime versions that does not support handler callback. (There's only one version that does not support handler callback - 0.10. which is dropped version from AWS-side also)

Plus: Lazily load X-Ray SDK
Loading X-Ray SDK requires 100ms, this time can be removed if x-ray middleware wasn't used.
Load time of aws-xray-sdk-core package in two memory sizes (First - 3008MB / Second - 512MB):


Have the Instance number as part of the logline

Feature request
As a Developer, I want to see the hyperion instance number as part of a logline (on the console, as well as on the UI)
so that I can correlate the individual log-outputs to an instance.
As a Developer, I want to be able to filter (e.g. grep) for a instance number and component easily
so that I can correlate the individual log-outputs to an instance and the given component.

Good idea!


Implement a communication aware load balancer

Original issue: https://charm.cs.illinois.edu/redmine/issues/808

Implement a comm aware load balancer based on KL or FM algorithm.

Original date: 2017-02-01 18:31:52

This issue description is pretty vague to me, so closing for now. It can be reopened under a more descriptive listing if it is still desired.


Seperate JS thread for React-Native

Thanks for the amazing work!
This issue is just discussion!
I am using saga for developing a react native, I love the idea of keeping async tasks out of main app thread but going a step further it shouldn't be just a mental-model rather it should be a proper separate thread while working on large scale performance oriented apps. I don't if there is any such package available or not but i think its achievable using react-native-threads for react-native specially.

You could achieve it by putting your whole redux store in a worker/thread, but that requires some additional setup. I don't think putting only redux-saga's middleware in a thread is a good idea, because it has to have access to your store (getState and dispatch methods) so you'd have to tie your integration yourself to achieve this.

Try stockroom. I guess it is basically for web.

@Andarist Do you anticipate this could help in boosting the performance especially when you're working with React Native?

Not rly, saga should be "fast enough". Experimentation around this would be cool, but would have to be done outside of this project.