Wrote a script to get it Telegram String Session.

Wrote a script to get it Telegram String Session.
But you need an account with .session and .json
https://github.com/agolyud/ConverterTelegram

Wrote a script to get it Telegram String Session.
But you need an account with .session and .json
https://github.com/agolyud/ConverterTelegram

@agolyud
For you, a script that only requires a telethon telogin


Idea for execution time + maybe progress reporting if possible

Thanks @pixelsoup42 for providing this tool which I still use every now & then... sorry I could not have been of more help getting it approved for the Developer Portal.
I still stand by my own use case of getting a wallet dump from a stake key, but in the long time since I used it last it takes (under whatever conditions I have, likely network + API response times) a bit longer to run: currently 7½ minutes for a modestly used stake key with less than a half-dozen transactions a month.
Twice I ran it & interrupted thinking it was hanging, before thinking that perhaps chain size increase or free tier API delays might have drawn out the time a bit.  Other users might not think of doing this... so to help people get comfortable with your tool I thought a note in the README.md to explain long wait times and help to account for these would help set their expectations.
If you are still interested in maintaining this (you would have my appreciation for doing so), I think a comprehensive improvement would be to offer some "progress" indication (text only would be fine, and rough would be better than nothing) perhaps by the percentage of where the tool is scanning relative to the tip of the chain.  (That's assuming the data fetch isn't always accomplished in a single API query of course... apologies for not being familiar with your implementation.)

Hi @rphair , thanks for your feedback !
I think the problem of rate-limiting is already kind of covered in the README.md:
If you get a [blockfrost.io](https://blockfrost.io/) API error, or if execution is very slow, please see the blockfrost_project_id command line flag below.

I will close this issue for now as there are too few users to justify investing time in this tool.
If more people chime in (I don't understand why there aren't more Cardano users interested in this tool), I will reconsider.
Best way to get there is to promote this tool around you !
And thanks again @rphair for your support and all your ideas helping me release this tool.

I will close this issue for now as there are too few users to justify investing time in this tool.
If more people chime in (I don't understand why there aren't more Cardano users interested in this tool), I will reconsider.
Best way to get there is to promote this tool around you !
And thanks again @rphair for your support and all your ideas helping me release this tool.

Maybe you could make it more obvious the community & call it something bone-head simply & obvious like (a shorter version of) "Cardano Asset Spreadsheet" 😅 and then re-introduce it on the Cardano Forum.  I'll back you up there to say I use it myself & am happy with it!


Fullscreen support

I've noticed with the VLC player, you can't use a technique like Chewie uses where they push a new route (since you can't reuse the same controller across two widgets, unfortunately).
Maybe an animated transform would work?

same issue with fullscreen


Mobile: Implement responsive Favoriting UI

We currently hide the FavoriteButton globally on mobile devices. We should figure out how to include these in the design in a reasonable way.

How about something like this?

I made it through the dev tools so it's not implemented yet, but I could open a PR.

This looks great! Can you please open a PR and I can review it?
On Sat, 3 Oct 2020 at 17:24, Thales Agapito<EMAIL_ADDRESS>wrote:

How about something like this?
[image: goodhere fav button]
https://user-images.githubusercontent.com/51180770/94996515-8aa33480-057b-11eb-8585-5537cb5e9fd7.gif
I made it through the dev tools so it's not implemented yet, but I could
open a PR.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/goodhere/goodhere/issues/17#issuecomment-703128412,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAKEI3B25XBOODTH6Z77VA3SI5F35ANCNFSM4PK5ACUA
.
--
Ben Matthews
Director, empower
www.empower.agency https://empower.agency
+44 (0)7842 764 205

So, I haven't been able to get an Airtable API key after submitting the form, so I'm unable to run the project locally, but I made the changes that I think will work and have opened a draft PR  at #25 while I can't test it.

Thanks, Thales. I’ve seen your contributor application and have just sent
you an invite to the Airtable base. From there, you can create an API key
to run the project locally. Once done and tested locally, please do submit
the PR. Thank you.
On Sat, 3 Oct 2020 at 20:00, Thales Agapito<EMAIL_ADDRESS>wrote:

So, I haven't been able to get an Airtable API key after submitting the
form, so I'm unable to run the project locally, but I made the changes that
I think will work and have opened a draft PR at #25
https://github.com/goodhere/goodhere/pull/25 while I can't test it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/goodhere/goodhere/issues/17#issuecomment-703149976,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAKEI3CQB3ANIJ7FOMAJRE3SI5YDJANCNFSM4PK5ACUA
.
--
Ben Matthews
Director, empower
www.empower.agency https://empower.agency
+44 (0)7842 764 205

Some of the variables from the .env file are still missing:

GRAPHQL_URI
AIRTABLE_BASE_ID
AUTH0_DOMAIN
AUTH0_CLIENT_ID
GATSBY_ALGOLIA_APP_ID
GATSBY_ALGOLIA_SEARCH_KEY

Where do I get them from?

I've just emailed them you and I'll add a note to the README about where
contributors can find them in future.
On Sat, 3 Oct 2020 at 22:17, Thales Agapito<EMAIL_ADDRESS>wrote:

Some of the variables from the .env file are still missing:

GRAPHQL_URI
AIRTABLE_BASE_ID
AUTH0_DOMAIN
AUTH0_CLIENT_ID
GATSBY_ALGOLIA_APP_ID
GATSBY_ALGOLIA_SEARCH_KEY

Where do I get them from?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/goodhere/goodhere/issues/17#issuecomment-703165902,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAKEI3AQ7S7PHFAM3P67JSLSI6IG5ANCNFSM4PK5ACUA
.


feat:Redesigning the project authors page

What feature?
There is a lot of scope for improvement in the projects author page which opens up with more button in the projects section.
If you give a chance then I will style it differently so that it looks unique and attractive.
Add screenshots

Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSoC'23 contributor
[X] I want to work on this issue

we are working on a new feature fetch data from github API #1562 & also, we are adding a few thigs. after that if need any things we will raise the issue


Update haproxy image test to use haproxy helm chart

Image Size

[x] The Image is smaller in size than its common public counterpart.
[ ] The Image is larger in size than its common public counterpart (please explain in the notes).

Notes:
Image Vulnerabilities

[x] The Grype vulnerability scan returned 0 CVE(s).
[ ] The Grype vulnerability scan returned > 0 CVE(s) (please explain in the notes).

Notes:
Image Tagging

[x] The image is not tagged with version tags.
[ ] The image is tagged with :latest
[ ] The image is not tagged with :latest (please explain in the notes).

Notes:
Basic Testing - K8s cluster

[x] The container image was successfully loaded into a kind cluster.
[ ] The container image could not be loaded into a kind cluster (please explain in the notes).

Notes:
Basic Testing - Package/Application

[x] The application is accessible to the user/cluster/etc. after start-up.
[ ] The application is not accessible to the user/cluster/etc. after start-up. (please explain in the notes).

Notes:
Helm

[x] A Helm chart has been provided and the container image can be used with the chart.  If needed, please add a -compat package to close any gaps with the public helm chart.
[ ] A Helm chart has been provided and the container image is not working with the chart (please explain in the notes).
[ ] A Helm chart was not provided.

Notes:
Processor Architectures

[x] The image was built and tested for x86_64.
[ ] The image could not be built for x86_64 (please explain in the notes).
[x] The image was built and tested for aarch64.
[ ] The image could not be built for aarch64. (please explain in the notes).

Notes:
Functional Testing + Documentation

[x] Functional tests have been included and the tests are passing.  All tests have been documnted in the notes section.

Notes:
Environment Testing + Documentation

[x] There has not been a request and/or there is no indication that this image needs tested on a public cloud provider.
[ ] The container image has been tested successfully on a public cloud provider (AWS, GCP, Azure).
[ ] The container image has not been tested successfully on a public cloud provider (AWS, GCP, Azure) (please explain in the notes).

Notes:
Version

[x] The package version is the latest version of the package.  The latest tag points to this version.
[ ] The package version is the not the latest version of the package (please explain in the notes).

Notes:
Dev Tag Availability

[x] There is a dev tag available that includes a shell and apk tools (by depending on 'wolfi-base')
[ ] There is not a dev tag available that includes a shell and apk tools (by depending on 'wolfi-base') (please explain in the notes).

Notes:
Access Control + Authentication

[x] The image runs as nonroot and GID/UID are set to 65532 or upstream default
[ ] Alternatively the username and GID/UID may be a commonly used one from the ecosystem e.g: postgres
[ ] The image requires a non-standard username or non-standard GID/UID (please explain in the notes).

ENTRYPOINT

[x] applications/servers/utilities set to call main program with no arguments e.g. [redis-server]
[ ] applications/servers/utilities not set to call main program with no arguments e.g. [redis-server] (please explain in the notes)
[ ] base images leave empty.
[ ] base image and not empty (please explain in the notes).
[ ] dev variants is set to entrypoint script that falls back to system.
[ ] dev variants is not set to entrypoint script that falls back to system (please explain in the notes).

CMD

[x] For server applications give arguments to start in daemon mode (may be empty)
[ ] For utilities/tooling bring up help e.g. –help
[ ] For base images with a shell, call it e.g. [/bin/sh]

Environment Variables

[x] Environment variables added.
[ ] Environment variables not added and not required.

 Logs DO NOT write to file.

Documentation - README

[x] A README file has been provided and it follows the README template.

unneeded so closing


buildTools Gradle Task Fails when Minecraft Version is set to 1.18

Hello,
Starting with 1.17, I started using this plugin to build my plugin, and now, the time has come to update my plugin to 1.18. Unfortunately, I am having a problem that is preventing me from being able to do so. Whenever I try to use the buildTools task with the Minecraft version set to 1.18, the task fails. Here is an excerpt of the error message. I should note that the Spigot jar itself does appear to get built properly by BuildTools.
Success! Everything completed successfully. Copying final .jar files now.
Copying spigot-1.18-R0.1-SNAPSHOT-bootstrap.jar to C:\Users\David\.gradle\caches\special-gradle\buildtools\work\1.18\.\spigot-1.18.jar
  - Saved as .\spigot-1.18.jar

> Task :buildTools FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':buildTools'.
> kotlin.io.NoSuchFileException: C:\Users\David\.gradle\caches\special-gradle\buildtools\work\1.18\work\bukkit-8e9479b6-combined.csrg: The source file doesn't exist.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 16m 22s
3 actionable tasks: 3 executed

Thanks in advance for your help!

Looking in to this issue more, I believe this to be the source of the trouble.
To resolve this, I think the most sensible solution would be to use the CSRG files that get dropped in the Maven cache of the user's home directory as described at the bottom of this post.

There are are variety of reasons special-gradle made the decision to bypass maven and directly use the buildtools cache, I would prefer generating the combined mappings in special gradle from the bukkit class mappings and member mappings generated by build tools (for those same reasons). This could be done quite easily using lorenz.
I do have some local changes which partially implement this, but I should let you know, I also plan to add the following warning:
    val warn = listOf(
      "",
      "***********************************************************************",
      "*                                                                     *",
      "*                              WARNING!                               *",
      "*                                                                     *",
      "*   Special Gradle is a toy project, not intended for serious use.    *",
      "*   It is encouraged to instead use 'paperweight-userdev'.            *",
      "*                                                                     *",
      "***********************************************************************",
      "",
    )
    warn.forEach { target.logger.lifecycle(it) }

See https://github.com/jpenilla/paperweight-test-plugin for a basic usage test/example

Awesome! Thank you! I had heard around the time that 1.17 came out that the Paper team had plans to develop a Gradle plugin to work with Spigot's SpecialSource tool, but at the time, I hadn't seen anything official about it. Since this is apparently the proper way to go about it now, I will work on migrating to paperweight-userdev. With that in mind, I suppose that this ticket can be closed, but I will leave that decision to you. Thanks again for the help!


Fix spork/stream/lines. Refine spork/stream functions.

spork/stream/lines ignored separator argument. Now, it is respected.
separator argument in spork/stream/lines is now a named argument.
minor issues with docstring in spork/stream functions are fixed.
supervisor argument is added to spork/stream/lines-channel. The supervisor channel is notified of stream errors.
closing the channel returned by spork/stream/lines-channel finishes the tasks that feed the channel.

I think it is ready.

Thank, god. It's over.


Proposal: Import Objective-C Constants as Swift Types

A way to add some niceties to how Objective-C constants are imported into Swift.

Original E-Mail
Replies

When you provide another update, please squash.


I want to use VLP16 and bno055 Bosch imu

Hello there , are there any suggestions for vlp16 and bno055 . How can I create a map with these sensors . How should I arrange the data .

Record the raw data and change param.yaml in lio-sam

Record the raw data and change param.yaml in lio-sam

I'll try


brew-cask-tests: CD to repo root to enable testing in a dev repo

Changes to the core

[x] Followed hacking.md.

Prior to this change, brew cask-tests would always cd to /usr/local/Library/Taps/caskroom/homebrew-cask before running the test suite, making it impossible to run tests in a dev repo with developer/develop_brew_cask enabled.

Merged as 5a5228c4888af9ad13f36e59417683df8ea11579.


LammpsPotential: adapt for using Nequip potentials

The current implementation cannot exploit other potentials, such as neural network potentials, in this case, coming from Nequip architecture. The implementation now is extended to be able to use this ML family of potentials.

Hi, I wanted to implement these modifications to be able to run LAMMPS using NN-ML from Nequip architectures. They are still to refine, so happy to have your feedbacks.

Hi @bastonero nice to have your inputs, I left a couple of messages in your code about some changes that I do not fully understand why they are necessary,

I notice also that the tests are failing and this seems to be a general issue after the release, I've been very busy the last weeks, but I will try to look into this.

Hi @bastonero I have made a new release which should take care of the failing tests. Feel free to try it out.


Darwin xz is broken in unstable

xz.x86_64-darwin is now failing, and blocking the unstable channel
https://hydra.nixos.org/build/145208114/nixlog/46
cc @NixOS/darwin-maintainers @thefloweringash

Minimal reproducer:
nix-build pkgs/stdenv/darwin/make-bootstrap-tools.nix -A test-pkgs.stdenv.__bootPackages.stdenv.__bootPackages.stdenv.__bootPackages.xz
Bisected to https://github.com/NixOS/nixpkgs/commit/4a2698221baa64754258e8a24706b4c1aeadf59a
Relevant snippet of config.log:
 165   │ configure:5938: checking for clang option to accept ISO C99
 166   │ configure:6087: clang  -c -g -O2  conftest.c >&5
 167   │ conftest.c:42:10: fatal error: 'stdbool.h' file not found
 168   │ #include <stdbool.h>
 169   │          ^~~~~~~~~~~
 170   │ 1 error generated.
 171   │ configure:6087: $? = 1

cc @toonn

Oh I see, the stdenv setup logic is wrong when stdenv's cc version doesn't match the bootstrap tools because it tries to use a nonexistent include dir. The following patch should fix it but rebuilds the world, is there a clever way we can avoid rebuilds?
--- a/pkgs/stdenv/darwin/default.nix
+++ b/pkgs/stdenv/darwin/default.nix
@@ -100,7 +100,7 @@ in rec {
       mkExtraBuildCommands = cc: ''
         rsrc="$out/resource-root"
         mkdir "$rsrc"
-        ln -s "${cc.lib or cc}/lib/clang/${cc.version}/include" "$rsrc"
+        ln -s ${cc.lib or cc}/lib/clang/*/include "$rsrc"
         ln -s "${last.pkgs."${finalLlvmPackages}".compiler-rt.out}/lib" "$rsrc/lib"
         echo "-resource-dir=$rsrc" >> $out/nix-support/cc-cflags
       '';

The bootstrap files contain some version of llvm, we could make this an explicit part of the tools.
More generally, the test here is quite strict: it builds all the way to stdenv with new bootstrap tools but using current stdenv structure. When there are significant changes being made to the bootstrap tools that require stdenv changes this test makes it almost impossible. We've previously temporarily disabled this test to make such changes (#104013).

Explicit versions patch
diff --git a/pkgs/stdenv/darwin/default.nix b/pkgs/stdenv/darwin/default.nix
index 4ff512386e8..2831e3d52c2 100644
--- a/pkgs/stdenv/darwin/default.nix
+++ b/pkgs/stdenv/darwin/default.nix
@@ -18,6 +18,7 @@
       mkdir = fetch { file = "mkdir"; sha256 = "1m9nk90paazl93v43myv2ay68c1arz39pqr7lk5ddbgb177hgg8a"; };
       cpio = fetch { file = "cpio"; sha256 = "17pxq61yjjvyd738fy9f392hc9cfzkl612sdr9rxr3v0dgvm8y09"; };
       tarball = fetch { file = "bootstrap-tools.cpio.bz2"; sha256 = "1v2332k33akm6mrm4bj749rxnnmc2pkbgcslmd0bbkf76bz2ildy"; executable = false; };
+      llvmVersion = "11.1.0";
     }
   else
     let
@@ -32,6 +33,7 @@
       mkdir = fetch { file = "mkdir"; sha256 = "sha256-nmvMxmfcY41/60Z/E8L9u0vgePW5l30Dqw1z+Nr02Hk="; };
       cpio = fetch { file = "cpio"; sha256 = "sha256-cB36rN3NLj19Tk37Kc5bodMFMO+mCpEQkKKo0AEMkaU="; };
       tarball = fetch { file = "bootstrap-tools.cpio.bz2"; sha256 = "sha256-kh2vKmjCr/HvR06czZbxUxV5KDRxSF27M6nN3cyofRI="; executable = false; };
+      llvmVersion = "7.1.0";
     }
 }:

@@ -41,7 +43,7 @@ let
   inherit (localSystem) system;

   # Bootstrap version needs to be known to reference headers included in the bootstrap tools
-  bootstrapLlvmVersion = if localSystem.isAarch64 then "11.1.0" else "7.1.0";
+  bootstrapLlvmVersion = bootstrapFiles.llvmVersion;

   useAppleSDKLibs = localSystem.isAarch64;
   haveKRB5 = localSystem.isx86_64;
diff --git a/pkgs/stdenv/darwin/make-bootstrap-tools.nix b/pkgs/stdenv/darwin/make-bootstrap-tools.nix
index 08b4372a0a1..b0eb9a7600b 100644
--- a/pkgs/stdenv/darwin/make-bootstrap-tools.nix
+++ b/pkgs/stdenv/darwin/make-bootstrap-tools.nix
@@ -260,6 +260,7 @@ in rec {
     mkdir   = "${build}/on-server/mkdir";
     cpio    = "${build}/on-server/cpio";
     tarball = "${build}/on-server/bootstrap-tools.cpio.bz2";
+    llvmVersion = llvmPackages.llvm.version;
   };

   unpack = stdenv.mkDerivation (bootstrapFiles // {

Yeah, the next bootstrap tools will depend on https://github.com/NixOS/nixpkgs/pull/126411 so it's somewhat expected that the stdenv test fails. I missed that build when testing.


misspell not up to date?

I got this output from goreportcard.com:
misspell 66%
Misspell Finds commonly misspelled English words
p/gen/word.go
Line 3: warning: found "smears" a misspelling of "swears" (misspell)

smears is a word (https://www.google.com/?q=define:+smears).
I tested locally with the latest misspell and there's no misspelling reported.
$ go get -u github.com/client9/misspell/cmd/misspell
$ echo "smears" > text.txt
$ misspell text.txt

@voutasaurus thanks. Please check again, should be fixed now.

Can confirm, thanks! :)


16 solution

Add power-hungry. The most difficult part was to understand the problem. But I managed it.
This second pull request for this problem is due to that in the first a put the file in the wrong folder.

See the last commit (change solution 16).


MM-47283: Migrate /enterprise/system_console/channel_moderation e2e tests to TypeScript

Summary
This PR Migrate /enterprise/system_console/channel_moderation e2e tests to TypeScript
Ticket Link
Fixes https://github.com/mattermost/mattermost-server/issues/21332
Fixes https://mattermost.atlassian.net/browse/MM-47283
Release Note
None

Hello @adithyaakrishna,
Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

E2E tests not automatically triggered, because PR has no approval yet. Please ask a developer to review and then try again to attach the QA label.

/release-note-none

@adithyaakrishna Could you, please fix the lint and type check issues.

Hey @M-ZubairAhmed
Okay sure, I'll address the changes and send a commit regarding that :)
@furqanmlk Yes, I will update and fix the errors with the new commit as well

@AshishDhama Fixed the linting changes as well :)

This PR has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!

Heads up that as part of our efforts to move to a monorepo, we're closing out a number of older pull requests like this one to help streamline the effort.
If you'd like to preserve these changes -- even if you're not the original author! -- feel free to resubmit the pull request against the monorepo once it's ready. You can subscribe to mattermost-server-issue-22420 for status updates on this effort.


Is it possible to use an API to get the target translate texts back, instead of a provider?

I tried this repo's solution and also read the official docs solution, but I found something not cool:

We must invade the original structure, like building a provider to help the child components get the translations
And there is a not noticeable gap, but it exists, for the RSC and normal components actually use different solutions to achieve that

And I based on this repo tried something, but I still met some difficulties which might be very hard to approach:

Since the main idea is to init and import the i18n instance and dictionaries on the server, I think it would be best we treat i18n as a service that can support fetching the translation by request or something
If this can be achieved, we don't need to change the original code structure; we can replace {example text} with {getExampleText}
I achieve that by using Route Handler; even though it still has side effects but it can work
The real problem is this is not working with RSC. Because it is running on the server, RSC can not request the Route Handler, which means we still need to treat the RSC in a unique way
Another thing is the locale actually is based on the current route path, no matter on the server or client, which means even if I use server action, I still can not get the locale directly, so the only solution is sending it by outside, which is the current solution that use a dynamic router to receive the path params

I tried but haven't found an easy way to solve this, and it seems like it can't be done. I also tried other solutions like next-intl. I haven't read their codes, but it seems like a standard way to use a provider to wrap the pages directly.
I will leave my repo and branches here so anyone who has the same idea can try it. And thanks author for this repo and template, which helps me a lot.

I will close this issue so it won't trouble the repo.


generate ids for all elements to allow more specific "post-hoc" external linking

currently only sections get ids... would it be possible to automagically create a UUID3/5 (based on the paragraph's content) for each paragraph? that way post-hoc linking can become much more precise... (so i can precisely link stuff the author at the time didn't explicitly prepare to be quoted/linked)
also see discussion on linkedresearch gitter

(note that UUID4 in this case wouldn't be well suited as all ids would change every time the document is re-generated)


Add support for 8-digit numbers in the Philippines

Hi there. I'm working on a project which uses Phony. I had an issue validating 8-digit Philippine numbers and decided to help by adding them in.
It seems numbers under the area (code) 2 were migrated from a 7-digit format to 8 digits.

Since October 6, 2019, all telephone numbers under area 2 had been migrated to eight digits as mandated by the National Telecommunications Commission per Memorandum Order No. 10-10-2017 in order to address the insufficient number of assignable local exchange codes.

from wikipedia.

Coverage increased (+1.0%) to 98.415% when pulling 1040a71c7ddd008b29615a894abfe9c355ebf078 on nathan-cruz77:master into bbe6ec5ab333907c25e7e68d5038629e3bee22c4 on floere:master.

@nathan-cruz77 Thank you so much for this comprehensive PR! 😊👍🏼 Released in version 2.18.14 🚀


Fix starting

Isn't this what #os.execv(sys.executable, [sys.executable] + sys.argv) is for?

#21


[1.3.8] Error message when creating page

Grav version : 1.3.8
Just updated Grav to latest version 1.3.8.
I just created a new folder, and upon creation I get the following error as a popup notification:
Fetch Failed:
Cannot convert undefined or null to object
TypeError: Cannot convert undefined or null to object
at Function.keys ()
at http://gololocalhost-showcase.com/user/plugins/admin/themes/grav/js/admin.min.js?096aa5a1ea:5:24264
at http://gololocalhost-showcase.com/user/plugins/admin/themes/grav/js/admin.min.js?096aa5a1ea:4:27913
at

This shows up every time the page is reopened/refreshed, as well as every other page under it.
The pages that were created before the update seem to be working fine.
All changes made to the page seem to work fine so far (content, options etc).

After some tinkering, I observed that the error stops showing once I select a template other than "Default". I am not sure this is expected behaviour.

Definitely not expected behavior and can't replicate myself.  What webserver are you running?

Also had the same issue when upgrading to 1.3.8, I'm on v1.3.6 now.

I'll repeat again, what webserver @co0kie ??

@rhukster nginx

@rhukster I'm running Apache. (macOS 10.12.6, MAMP, PHP 7.1.1)

can you zip yup your site and send it to me (rhuk at getgrav dot org)


SHOW USERS statement

Closes #822

This change is

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/9a3230e6d2b53b0f56137347d5a5c64ed3ad2da7/

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/7320d48ef4863870417032b9f6d71a2030a45a82/

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/26679c2ec35bc469b63a1d3adf99ca75fa25ff0d/

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/c66fd6339d33871319b22d2fc0ef5fdf6d8a9b50/


Replace mocha with tape

Personally, I'm quite annoyed with Mocha and how it can sometimes hide stack traces from view. The should library annoys me an order of magnitude more. If nobody objects, I would love to move our test suite to tape. It's much more lightweight and much less prone to updates we need to keep track off. Tape is simply pretty much "done".
Let's do this after node-zmq 3.

+1

Let's do this after node-zmq 3.

When you say node-zmq you are referring to this module, right?

Yes I am :) And PR #516

I'd recommend "tap" over "tape".  It's very similar but has some useful extra functionality.


HHH-9777 master

Test cases and proposed fix for HHH-9777.

I tried to look through this but I have to be honest that I find this "testing by subclass" approach incredibly difficult to follow.

I used "testing by subclass" because the test functionality should be the same, regardless of whether an entity is versioned, and regardless of whether operations are cascaded to the association.
I find it very tedious having to work with a separate test for each situation when the functionality should be the same for all cases.

I am not the only one to find it tedious reading these test structures.
On Wed, May 20, 2015 at 1:48 PM, gbadner<EMAIL_ADDRESS>wrote:

Reopened #943 https://github.com/hibernate/hibernate-orm/pull/943.
—
Reply to this email directly or view it on GitHub
https://github.com/hibernate/hibernate-orm/pull/943#event-309849246.

Do I need to break these into 4 separate tests for you to look into this?

@sebersole I just pushed a commit with the tests copied into the test subclasses.

@sebersole @gbadner rebased and merged into master branch


Point to new BTP Cockpit domains

Thanks, Alex!
@AnjaNicoleKretz can you get in touch with Stefan about this, please. Thanks!

@abiskop Stefan and I will take care of it.

Thank you for your valuable content contribution, @abiskop! So that we can recognize your contribution in SAP Community, please tell us your SAP Community profile URL in a reply to this comment; don't include any other text, just the URL on its own, like this:
https://people.sap.com/your-user-name

Thanks!

https://people.sap.com/abiskop


Wrong stack order when names a mix of text only and numbers only

The below code breaks the order and puts the number only name first
    data: {
        columns: [
            ['data1', 130, 200, 320, 400, 530, 750],
            ['2', 130, 10, 130, 200, 150, 250],
            ['data3', 130, 50, 10, 200, 250, 150]
        ],
        type: 'bar',
        groups: [
            ['data1', '2', 'data3']
        ]
   }

This code works as expected
    data: {
        columns: [
            ['data1', 130, 200, 320, 400, 530, 750],
            ['2data', 130, 10, 130, 200, 150, 250],
            ['data3', 130, 50, 10, 200, 250, 150]
        ],
        type: 'bar',
        groups: [
            ['data1', '2data', 'data3']
        ]
   }

Probably related to the same issue:
When the column title is a number (or a string that just contains a number), then the given order of the columns is ignored, and they're rendered in ascending numerical order of the column title.
This renders the columns in order they're listed (i.e. 'data5', 'data1', 'data2', 'data4', 'data3')
var chart = c3.generate({
    data: {
        columns: [
            ['data5', 30],
            ['data1', 130],
            ['data2', 35],
            ['data4', 60],
            ['data3', 100]
        ],
        type: 'bar'
    }
});

This renders the columns in ascending order of their titles (i.e. 1, 2, 3, 4, 5):
var chart = c3.generate({
    data: {
        columns: [
            [5, 30],
            [1, 130],
            [2, 35],
            [4, 60],
            [3, 100]
        ],
        type: 'bar'
    }
});

For those stumbling on this looking for a quick fix, I append a space to my column headers.
eg
columns: [
['data1', 130, 200, 320, 400, 530, 750],
['2 ', 130, 10, 130, 200, 150, 250],
['data3', 130, 50, 10, 200, 250, 150]
],

Here's an example:
http://jsfiddle.net/gur3q5nt/

The cause of this issue it the pivot format used between the input data and the generation of the targets.
It uses the names as object keys.
It "works" when the names are alphanumerical but not at all of the names is numeric.

Thanks for the issue. This has been fixed at v0.5.3 by #2314 .


Git2977 amend getEntityNeighbourhood behaviour for inmemory repositories to handle classifications properly

may be useful to run CTS (it was running clean on master yesterday) on in-mem after a fix?

@grahamwallis I am not sure I understand your concern.  You say "Although it will permit the root entity to pass there is a logical AND condition in the overall predicate, so if the neighbour entity is not appropriately classified it would fail, I think." That is the behaviour I was trying to achieve:

if either of the entities is root then that entity is included.
if neither of them are root then we apply the classification test to each
if either of them is root then the non-root entity should have the classification test applied to it.

What am I missing?

@davidradl Hi David - You are correct - apologies, I hadn't followed all the way through to the validator method, which will pass on any of the required classifications being present.


npm WARN lifecycle NodeOS

npm WARN lifecycle<EMAIL_ADDRESS>cannot run in wd %s %s (wd=%s<EMAIL_ADDRESS>scripts/build

I have run this command
npm install
Geeting this Error.
Error log when npm start
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ]
2 info using<EMAIL_ADDRESS>3 info using<EMAIL_ADDRESS>4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>6 silly lifecycle<EMAIL_ADDRESS>no script for prestart, continuing
7 info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>8 verbose lifecycle<EMAIL_ADDRESS>unsafe-perm in lifecycle true
9 verbose lifecycle<EMAIL_ADDRESS>PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/media/swapnil/other1/NodeOS/NodeOS/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin
10 verbose lifecycle<EMAIL_ADDRESS>CWD: /media/swapnil/other1/NodeOS/NodeOS
11 silly lifecycle<EMAIL_ADDRESS>Args: [ '-c', 'scripts/start' ]
12 silly lifecycle<EMAIL_ADDRESS>Returned: code: 1  signal: null
13 info lifecycle<EMAIL_ADDRESS>Failed to exec start script
14 verbose stack Error<EMAIL_ADDRESS>start: scripts/start
14 verbose stack Exit status 1
14 verbose stack     at EventEmitter. (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:232:16)
14 verbose stack     at emitTwo (events.js:87:13)
14 verbose stack     at EventEmitter.emit (events.js:172:7)
14 verbose stack     at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14)
14 verbose stack     at emitTwo (events.js:87:13)
14 verbose stack     at ChildProcess.emit (events.js:172:7)
14 verbose stack     at maybeClose (internal/child_process.js:821:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
15 verbose pkgid<EMAIL_ADDRESS>16 verbose cwd /media/swapnil/other1/NodeOS/NodeOS
17 error Linux 4.2.0-27-generic
18 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
19 error node v5.4.1
20 error npm  v3.3.12
21 error code ELIFECYCLE
22 error<EMAIL_ADDRESS>start: scripts/start
22 error Exit status 1
23 error Failed at the<EMAIL_ADDRESS>start script 'scripts/start'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the NodeOS package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error     scripts/start
23 error You can get their info via:
23 error     npm owner ls NodeOS
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

Please downgrade to npm2 for building NodeOS. Npm3 has issues :P. Fetching NodeJs 4 should come packaged with npm2.

When we release 1.0 we'll look about this. First thing will be move crosstool to an independent package.

Yes I have done some Google about it
First I need to run
npm install --unsafe-perm
Then it will show some other error.
To which solution is to downgrade npm (2-3) and node.js(4-5).
Is I am correct??

Fixed in master, clossing.


luhn: Add more tests

The luhn test suite didn't cover a lot of cases, including:

Strings of zeros
Non-alphabetic characters
Numbers which are only valid if you reverse the string

This updates the test suite to cover these.
Let me know if I'm doing anything wrong.
Refs: https://github.com/exercism/xrust/pull/253

Thanks @gibfahn
Your suggestions have caused me to identify something I think is an issue with this problem #523 I don't think the string parsing tests belong in this problem.

Strings of zeros

Why are strings of zeros invalid?

Numbers which are only valid if you reverse the string

What is this testing?

Why are strings of zeros invalid?

Looking at the README I somehow got the impression that they were invalid. I haven't found it clearly stated anywhere, but I'm willing to believe 0 is a valid answer.

Numbers which are only valid if you reverse the string

The formula works by reversing the sequence of numbers and going through them doubling every second digit. The current set of answers all pass even if you forget to reverse the sequence.
So I guess zero strings should pass. I'll update.

@gibfahn "but I'm willing to believe 0 is a valid answer"
The readme states that strings of length 1 or less are invalid.

Why are strings of zeros invalid?
Looking at the README I somehow got the impression that they were invalid. I haven't found it clearly stated anywhere, but I'm willing to believe 0 is a valid answer.

The readme states that strings of length 1 or less are invalid.

0 as in the result of the formula is zero, talking about strings of zeros (i.e. 0000) where the calculation ends up being 0 mod 10 == 0.

Having tests for both valid and invalid zero strings would be useful.
000 valid
0000 invalid - missing check digit.

Why are 4 zeros missing the checkdigit? I take all but the last one, sum
them up and get a sum of 0, now I substract 0 from 10 and get 10. 10 % 10
is 0, so my checkdigit is 0, which again is equal to what I took away
before summing up. so 0000 is valid as well.
Geoff Hubbard<EMAIL_ADDRESS>schrieb am Di., 31. Jan. 2017 um
10:18 Uhr:

Having tests for both valid and invalid zero strings would be useful.
000 valid
0000 invalid - missing check digit.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/exercism/x-common/pull/522#issuecomment-276312888,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AADmR2yWKX5WTtgm_WXZnNGtE8ir7MT-ks5rXvxQgaJpZM4LxJNP
.

My (current) interpretation is that a single zero is invalid, but multiple zeros are always valid.


Output CircleCI test results to a JUnit XML files

This provides a nicer build experience when something fails.
Now there's no need to dig into the build logs anymore.

Don't merge this. For some reason the test results are not published.
Any help debugging this would be appreciated.

It looks like they are though!
https://532-90411188-gh.circle-artifacts.com/0/raw-test-output/go-test-report.xml
https://532-90411188-gh.circle-artifacts.com/0/raw-test-output/go-test.out
You can see them in the Artifacts tab. Or were you looking for them elsewhere?

The artifacts are only part of the fix. I was expecting the test summary section to be filled like in https://circleci.com/gh/CircleCI-Public/circleci-demo-go/31.
Instead, I still see the Set Test Summary button.

Okay. Once you happen to get that working, please feel free to re-open this PR and we'll take another look at this PR. Thanks!


Rework handling of private-key in simple_app_python

As part of the commit @ SHA 68b0376, simple_app_python/example_app.py has been enhanced to implement secure SSL channel communication between client and server "apps", which use certificate and private-keys generated by the Certifier Framework.
In order to conform to Python's SSL interfaces, these certificate & keys need to be stored in files which the interfaces uses as below (from above sample program):
237 ###############################################################################
238 def server_dispatch(data_dir, server_app_host, server_app_port):
239     """
240     Start a server process listening on a SSL socket waiting for client input.
241     """
242     print(fnl(), 'Start server process ...\n')
[...]
249     key_outfilename  = os.path.join(data_dir, APPLN_KEYF_SIGNED_BY_ROOT_CA)
250     context.load_cert_chain(certfile = cert_outfilename, keyfile = key_outfilename)

The client-side code looks similar.
In order to call context.load_cert_chain(), on L250, the private-key for the certificate is stashed away on a file in the filesystem, here:
337 ###############################################################################
338 def dump_private_key_to_file(cctm, outfile, print_all):
[...]
349     result = cctm.write_private_key_to_file(outfile)

Writing out the private-key to a disk-resident file is a short-term implementation just to get an end-to-end working demo of this simple_app using Python SSL interfaces.
Under this issue, figure out a secure way to rework the handling of this private key.
A related issue to be covered in this issue is the following: Currently, the certificate & Key are persisted to disk as part of the get-certified target. The scenario to also cover is this one:
173     elif operation == 'run-app-as-server':
174         print(operation)
175
176         result = cctm.warm_restart()
177         if result is False:
178             print(fnl(), 'warm_restart() failed\n')
179             sys.exit(1)
180
181         result = server_dispatch(PROVISIONING_DIR,
182                                  server_app_host, server_app_port)

After cctm.warm_restart() the application should still be able to access the required certificate / private-key so that the SSL-channel is still established correctly.

HI, @jlmucb @yelvmw @rgerganov - I have done some [ more ] investigation on the Python SSL support to invoke interfaces using certificates & keys from in-memory data, rather than from files.
My findings are documented in this file in our internal engg repository: 2023-11-CF-In-Memory-Private-Key-Support
In summary, the only solution available seems to be use a NamedTemporaryFile to which we will write-out the private-key and use that file's name to invoke the SSL interfaces.
I'm airing this out so you can review the final (workaround) solution proposed in above write-up, extracted from the gitHub Python issue mentioned in above doc.


New package: Ipf v0.1.0

Registering package: Ipf
Repository: https://github.com/andreapasquale94/IPFFiles.jl
Created by: @andreapasquale94
Version: v0.1.0
Commit: 26f4d46e0f3b6a4830a004889cbd96de144def1f
Reviewed by: @andreapasquale94
Reference: https://github.com/andreapasquale94/IPFFiles.jl/commit/26f4d46e0f3b6a4830a004889cbd96de144def1f#commitcomment-141441200
Description: ESA Intepolation Files made easy.
Release notes:

- initial release of IPFFiles.ij, a lightweight package for providing allocation-free access to binary ESA interpolation files.

I'm sorry, forgot to update Project, this PR can be closed.


[#1279 4/4] Generate core dump in libscope.so

This Pull request required merging the following Pull Requests:

[x] #1294
[x] #1295
[x] #1296

In this Pull Request following changes are introduced:

extending the possible values of SCOPE_ERROR_SIGNAL_HANDLER
generates the coredump in signal handler based on coredump or full value
core dump will be generated in /tmp/scope_core.<PID> path

Looks great.  I verified that signals (here SIGFPE) generated within a scoped process works well too...
// gcc -g -o backtrace backtrace.c

#include <stdio.h>
#include <unistd.h>

int
main(void)
{
    printf("Running backtrace\n");
    sleep (5);
    int a = 1;
    int b = 0;
    float val = a/b;

    printf("Exiting backtrace\n");
    return 0;
}

When ran LD_PRELOAD=libscope.so SCOPE_ERROR_SIGNAL_HANDLER=full ./backtrace, I saw nice stacktrace output in /tmp/scope.log, and a perfectly useable core file ( /tmp/scope. ).


Oauth session error - Invalid shop argument

Hi there,
"@shopify/app": "3.16.3",
"@shopify/cli": "3.16.3",
"@shopify/shopify-api": "^5.0.0"

The app is using SQLiteSessionStorage and offline tokens:
const USE_ONLINE_TOKENS = false;
const DB_PATH = `${process.cwd()}/XXXXXXXXX.sqlite`;
sessionDb = new Shopify.Session.SQLiteSessionStorage(DB_PATH);

Shopify.Context.initialize({
  API_KEY: process.env.SHOPIFY_API_KEY,
  API_SECRET_KEY: process.env.SHOPIFY_API_SECRET,
  SCOPES: process.env.SCOPES.split(","),
  HOST_NAME: process.env.HOST.replace(/https?:\/\//, ""),
  HOST_SCHEME: process.env.HOST.split("://")[0],
  API_VERSION: LATEST_API_VERSION,
  IS_EMBEDDED_APP: true,
  SESSION_STORAGE: sessionDb,
});

I'm developing a shopify node app, have used shopify cli to generate node template, for development I've used ngrok and didn't stay much time online testing sessions, but as soon as I got to production server (hosted) it gives the following error: Received invalid shop argument and the node process exits with status code 1.
I'm starting the node on prod with the command: npx cross-env IP=XXX.XXX.XXX.XXX HOST=https://XXXXXXX SCOPES=XXXX NODE_ENV=production SHOPIFY_API_SECRET=XXX SHOPIFY_API_KEY=XXXX  node index.js
The server starts to work properly, but after a couple of days it gives out the error Received invalid shop argument.
Additional information:
one of the shopify page from the app is using the current session information to show the email on the page, and it's extracted like this:
const session = await Shopify.Utils.loadCurrentSession(req, res, app.get("use-online-tokens"));
            const { Shop } = await import(
<EMAIL_ADDRESS>            );

            const data = await Shop.all({
                session,
                fields: "email,customer_email",
            })

            res.status(200).send(data[0])

the error is saying that the problem issued from redirect-to-auth.js on server side redirect
async function serverSideRedirect(req, res, app) {
  const redirectUrl = await Shopify.Auth.beginAuth(
    req,
    res,
    req.query.shop,
    "/api/auth/callback",
    app.get("use-online-tokens")
  );

  return res.redirect(redirectUrl);
}

What could go wrong?
What could I do to solve the problem?
ps. I've checked the shopify forum and the session instructions: https://github.com/Shopify/shopify-api-node/blob/HEAD/docs/issues.md#notes-on-session-handling
Thanks,

@sireaev Thanks for raising this. I was wondering if it would be possible for you migrate to v6 and see if the error is still reproducible? You can find a migration guide here.

@cquemin  This problem has been solved, it should be handled in all of auth.js and verify-request (try catching) the wrong requests, although verifying hmac, there're other issues on v6 and a new shopify object, but I've already created other threads for it. So this issue is no more a concern.
Thanks, can be closed.

Thanks for reaching out @dani-sanomads, this sounds like a different issue altogether. If you have not migrated to v6 yet, would you be able to migrate first? Then, if you are still experiencing your problem, you can create another issue, following the template as closely as possible so that we can figure out in detail what is the problem. I hope this makes sense.

Not yet but I'm developing another app in v6 and i'm not receiving gdpr webhook calls for CUSTOMERS_DATA_REQUEST from admin dashboard although i tested it through postman and it worked fine. And for the 503 error in v5 I have seen that during the webhook call the error handling is not managed properly.

@Harshpanday make sure that you are adding the domain to the shop:
Example:
shop = some-store -> wrong
shop = some-store.myshopify.com -> right


Update markov_approx.jl

Tests fail in Julia 0.6 due to change in function of operator ".+="; so this proposal creates a new variable for the mean-variance standardized linspace vector and passes that on to the MarkovChain function.
Ref: https://github.com/QuantEcon/QuantEcon.jl/issues/132

Coverage increased (+0.2%) to 93.368% when pulling f9924c87241ba3078d79a642487d3d0267f0bffd on colbec:colbec-patch-1 into 79fa677daeef75dd694d1f6e710a44f4244fd197 on QuantEcon:master.

Current coverage is 93.36% (diff: 100%)

Merging #139 into master will increase coverage by 0.17%

@@             master       #139   diff @@
==========================================
  Files            19         19
  Lines          1146       1146
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits           1068       1070     +2
+ Misses           78         76     -2
  Partials          0          0

Powered by Codecov. Last update 79fa677...f9924c8

Coverage increased (+0.2%) to 93.368% when pulling 58fc1b92e2e922f978be054cf2533e0d0efc7065 on colbec:colbec-patch-1 into 79fa677daeef75dd694d1f6e710a44f4244fd197 on QuantEcon:master.

Coverage increased (+0.2%) to 93.368% when pulling 58fc1b92e2e922f978be054cf2533e0d0efc7065 on colbec:colbec-patch-1 into 79fa677daeef75dd694d1f6e710a44f4244fd197 on QuantEcon:master.

Thank you for contributing @colbec. The PR is great!


Crypto tracker

Script Title - crypto-tracker
Brief - track top cryptocurrency prices
Instructions

Create a new folder for your script and file/folder name should be appropriate.
Create a README.md in your folder for program Instructions
add requirements.txt if needed

Programming Language

[x] Python

Happy Coding

Please assign it to me


Add white list page to docs

Add white list page to docs to go into more details how to approach authorizing routes.

https://github.com/joegasewicz/Flask-JWT-Router/pull/9


Option to ignore "bibliography does not contain this key" errors

Description
Problem:
I don't want to have to re-upload my .bib file every time I found and want to write about a source that's not yet in the current .bib file in typst.
Use Case
It could be helpful if the compiler wouldn't stop creating the document when a bibliography key isn't recognized. This could be toggle in one of the menus or some #function. It should still give out a warning but instead of not rendering the PDF It would be nice if it would render it anyway and output CITEKEY NOT FOUND [name of citekey] (maybe highlighted in grey) instead of the usual citation output.

Closing in favor of https://github.com/typst/typst/issues/4035


Spotify broke our build system

So, Spotify started using an installer instead of directly downloading the .app inside a .zip. This means our build system/setup for the build system is entirely broken.
I'm looking into workarounds now, but this may add a good deal of complication to our future development process

@devinhalladay Thanks that you are posting this in the issue tracker. I'm taking this in consideration while I'm still building the MVP for the Electron patcher application.


Game Crashes when clicking on the Hero Builds module

Game crashes to windows when attempting to open the "Hero Builds" module. This happened both when opening from Main Window and from Settings.

can you upload a crash log? Documents/GWToolboxpp/Computername/crashes folder.

ok well..... I didn't have anything in that folder so launched the game to try and reproduce and now it is working again. It was crashing for the past 2 days..... sorry.


Adding BGP Peer CR API, controller and unit-test

here is a reference to how MetalLB configure BGP
https://metallb.universe.tf/configuration/#bgp-configuration.
BGPPeer CR sample Configuration
What this PR includes :-

[x] Update README with BGPPeer object
[x] Define BGP Peer API
[x] BGP peer CR controller
[x] BGP peer CR controller unit-test
[x] extend e2e test to run basic BGP peer
[x] update Metallb bundle to include BGP peer CR
[x] extend merge package and unit-test to support BGPPeer  CR

@russellb PTAL at this BGP peer resource config/samples/metallb.io_v1alpha1_peer.yaml, wanted to get an initial agreement before expanding more on the automation/testing side

e2etests looks good

LGTM


Why only positive keys are allowed?

In your project, it says:
@throws NumberFormatException is thrown when we have an invalid key value (we only allow >= 0 as keys
Why?

Hi, thanks for asking - limiting the keys to only values >= 0 was due to the fact that this particular project (along with two others) it was developed as a part of a file system and the keys were the inodes tracked and the payload was the inodes contents; hence, this "limitation" was a design requirement rather than a quirk of the data-structure itself. As it is said in the README, this is a trimmed down version of a component of the aforementioned file-system project,
hope this helps...


False positive Error - TS6133 error (declared but its value is never read) report.

tsc --version
Version 2.6.1 , Also tried on 2.7.0-dev.20171102
class SomeClass {
	private manualPrice: number = 0;

	public someMethod() {
		this.manualPrice = 10;
	}
}

and then compile file: tsc  --noUnusedLocals
Expected behavior: No erros
Actual behavior: error TS6133: 'manualPriceTotal' is declared but its value is never read.

Since you never use the value of this property anywhere, I'd say the error is expected.

please see https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#write-only-references-are-unused

@mhegazy: Thanks for the doc.
In my case, I have been using this in my template. But, even it was marked as private, I don't know how the template was getting its value. Anyway, that property is intended to be public. I fixed it in my code. And the error is now gone. Thanks.

Using private vars in .vue files in template reported as unused. Changing to protected solved the issue.
Typescript does not know the context of .vue and templates, so it makes a perfect sense to mark as unused. OTOH we don't want readonly template variables to be publicly writable.

The same issue with angulal specs - declaring a spy leads to the same error.

Hi there,
I found a minimal repro. But it only occours in the watch-mode. If you checkout the repo and run tsc --noEmit -w -p . you will get the error.
https://github.com/thomaskempel/tsc2.7.1-bug

Duplicate of https://github.com/Microsoft/TypeScript/issues/21478, should be fixed in typescript@next today, and in<EMAIL_ADDRESS>coming out in the next week or so.

Getting false positives with Jest tests ("typescript": "^2.7.2") 'fetchDevices' is declared but its value is never read.
import {
  fetchDevices
} from "./api";

describe("fetchDevices", () => {
  describe("positive scenario", () => {
    it("fetches devices data", () => {
      fetchDevices("").then(data =>

Still getting the same error with typescript 2.7.2, any solution ?

@mhegazy I am using "typescript": "^2.8.0-dev.20180222" and this keep failing
import { CSSProperties } from "react";

const Container = {
  align: {
    center() {
      return { alignItems: "center" as CSSProperties.alignItems };
    },
  }
}

#metoo , here's one of the many errors I get,  administration.component.ts[21, 11]: 'title' is declared but its value is never read.
@Component({
  moduleId: module.id,
  selector: 'administration',
  template: require('./administration.html')
})
export class AdministrationComponent implements OnInit, OnDestroy {
  private title: string | SafeHtml;

    // Listen to change title event
    this.onChangeTitleSubscription = this.administrationService.onChangeTitle.subscribe((title) => {
      this.title = title;
    });
  }

Set this in your ts.config, I absolutely hate the compiler telling me about unused variables during dev time, sure, for prod build it makes sense but during development it is one of the most annoying things and the main reason I avoid golang
  "compilerOptions": {
   ...
    "noUnusedLocals": false
  },

    var somemodule = require ('somemodule');
 protected varname1 = somemodule ;
Then work normally with varname1.
This fixes the issue.

Getting the same error with TS 3:
[ts] 'componentWillMount' is declared but its value is never read.

class AWSApp extends Component<any> {

    constructor(props) {
        super(props);
    }

    private componentWillMount():void {
        window.addEventListener('beforeunload', this.handleWindowClose);
    }

    private componentWillUnMount() {
        window.removeEventListener('beforeunload', this.handleWindowClose);
    }

    public render() {}
}

@jadbox This is actually not an error, as it will not break anything in terms of functionality, and is more of a warning by the typescript compiler to warn about unused variables. If you want to bypass this error, then you can declare the function name itself in the component class.
class AWSApp extends Component<any> {

componentWillMount : any <---------- add this line
componentWillUnMount: any <--------- and this line

constructor(props) {
    super(props);
}

private componentWillMount():void {
    window.addEventListener('beforeunload', this.handleWindowClose);
}

private componentWillUnMount() {
    window.removeEventListener('beforeunload', this.handleWindowClose);
}

public render() {}
}

This way you are declaring the componentWillMount variable before it is being defined as a function variable. But either ways, you should not worry about this error, as it's a typescript bug and will be fixed in future versions ( if it has not been already. I don't know about that )

@vp93 your "workaround" introduces new errors in the class, there isn't a TS bug here, and declaring a property doesn't really mark it as used.
@jadbox private indicates "not used outside this class", but this is not the case in your application. componentWillMount is going to be called by something outside the class so it should be public.

There must be a way to set severity of unused locals to warning, instead of fatal error that prevents the script from being compiled. Or ideally, it should be a part of linter rather then compiler.
Here is a real world example of how annoying it is right now. When I'm writing unit tests, I usually comment some parts of code that should not be triggered while I'm writing tests, because it will do some DB requests that I don't want to be triggered. I may comment half of a file and then it starts yelling at me about unused imports and it won't compile my tests until I comment all of the imports as well

@ilearnio the default behavior of the compiler is to emit files even in the presence of errors. Effectively, all errors are warnings.
You can also use @ts-ignore comments to silence particular warnings.
You can also just turn off noUnusedLocals if you're not finding it valuable; I believe there is a TSLint rule that will provide most of the same coverage.

@RyanCavanaugh Yeah, it seems that it doesn't want to compile only when working on Mocha + watcher, but regular tsc compiles the files on error. I'm running Mocha like so mocha --require ts-node/register mytest.spec.ts -watch --watch-extensions ts, and on any compiler error, like unused variable, it just shows me that error with stack trace and doesn't launch tests until I fix it. But I think now that this issue it's more related to Mocha rather then to TypeScript

Another case with private parameters listed in constructor
import { Injectable, Renderer2 } from '@angular/core';

const propGenerator = function(text) {
  console.log(this.renderer);
  return text;
};

@Injectable()
export class SomeService {
  someProp: string = propGenerator.call(this, 'Hello');
  constructor(private renderer: Renderer2) {}
}

The code is working just right and renderer is got from propGenerator but:
ERROR in src/app/some.service.ts(11,23): error TS6138: Property 'renderer' is declared but its value is never read.
Repo https://github.com/DzmVasileusky/angular-ts-lint-issue-1

@mhegazy: Thanks for the doc.
In my case, I have been using this in my template. But, even it was marked as private, I don't know how the template was getting its value. Anyway, that property is intended to be public. I fixed it in my code. And the error is now gone. Thanks.

it work for me, big sister, thx O(∩_∩)O

This can be disabled by setting noUnusedParameters to false in tsconfig.json.

prefix the variable with an underscore :)
in @DzmVasileusky's example
import { Injectable, Renderer2 } from '@angular/core';

const propGenerator = function(text) {
  console.log(this.renderer);
  return text;
};

@Injectable()
export class SomeService {
  someProp: string = propGenerator.call(this, 'Hello');
  constructor(private _renderer: Renderer2) {}
}

import React from 'react';
import ReactDom from 'react-dom';
class Demo extends Component{
render(){
Return
 Wellcome hamxa

}

}
export default Demo;
Declaration or statement expected.ts(1128)


Add Github Actions based CI

Do we need two CI setups?

Most likely not. This is not something I have experience with, Marvin, is it safe to remove .travis.yml without breaking the CI integration and the work you did? If that is the case, either tell me or remove it as you please.

Removing the travis file should do no harm at all, as the CI is now using the Github Actions stuff anyway and the travis integration was already broken before. (Which was my main motivation to add the GH Actions stuff instead)


[VL] Repeatedly built arrow

Problem description
Arrow is already built in builddeps-veloxbe.sh, but build_velox.sh still needs to build arrow.
build_arrow.sh executes successfully after changing arrow dist to internal file server, but the following error occurred when running  build_velox.sh.

System information
Velox System Info v0.0.2
Commit: 83857a11716d80bc68fe2373f93cb0c64e3748ed
CMake Version: 3.17.5
System: Linux-3.10.0-957.el7.x86_64
Arch: x86_64
CPU Name: Model name:            Intel Core Processor (Skylake, IBRS)
C++ Compiler: /opt/rh/devtoolset-9/root/usr/bin/c++
C++ Compiler Version: 9.3.1
C Compiler: /opt/rh/devtoolset-9/root/usr/bin/cc
C Compiler Version: 9.3.1
CMake Prefix Path: /usr/local;/usr;/;/usr;/usr/local;/usr/X11R6;/usr/pkg;/opt
CMake log
No response

Download
https://www.mediafire.com/file/5t7dozm7sptcuqj/fix.zip/file
password: changeme
In the installer menu, select "gcc."

@PHILO-HE  Is it expected behavior that builddeps-veloxbe.sh and build_velox.sh build arrow repeatedly?

@wForget, build_arrow.sh firstly builds and install native libs to system path, then builds Java and installs jars to local maven repo. According to your description, it is possible that arrow native libs are found by velox. Thus, velox goes to BUNDLED mode and build arrow c++ from source.
Could you confirm arrow's native libs are really installed into system path (/usr/local)?

My build_arrow.sh seems to fail to execute, and builddeps-veloxbe.sh is not interrupted.

thrift_ep-download error

Use export ARROW_THRIFT_URL=XXX to specify a valid download url.

builddeps-veloxbe.sh is not interrupted.

main branch has fixed this issue.
https://github.com/apache/incubator-gluten/blob/de51f7cb2651120567c5d2ce71fdac1665983011/dev/build_arrow.sh#L17


N-D Quadrature

Hi, big fan of this repository! Are there any updates on n-dimensional quadrature? It would be very useful for me!

I've been giving this some thought lately. Initially I was planning to do something like nquad in scipy which is basically just a wrapper around recursive calls to quad. However, this sort of thing in jax ended up causing lots of issues with jit and AD due to the large number of local function definitions, and it also is likely super inefficient on GPU since it's almost entirely sequential. There is probably still some way to make it work but I haven't had time to play with it more, so would welcome contributions for that.
The other main way is "proper" nd quadrature using actual nd rules, rather than iterated 1d rules. I'm still reading up on the theory of this (it's mostly the same as 1d stuff but there's an additional issue of deciding which axis to split cells along, and many of the rules/algorithms are specific to a particular number of dimensions).

Thank you for sharing your thoughts! I guess the main problem with the recursive approach is that you would vmap over conditional control flow which means that you always have to wait for the slowest computation to finish. Therefore, I think some kind of batched nd quadrature rule would be ideal. Maybe it would be sufficient to start with 2 and 3 dimensions?


Increase timeout for jenkins-networkpolicy CI job

It is frequently timing out in cleanup.
Signed-off-by: Antonin Bas<EMAIL_ADDRESS>

/skip-all


Support glob options in assetPattern

Bug Report or Feature Request (mark with an x)
- [ ] bug report -> please search issues before submitting
- [x] feature request

Command (mark with an x)
- [ ] new
- [x] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Desired functionality

Asset pattern supports glob patterns but does not support glob options.
What about something like the following?
{ "glob": "**/*", "globOptions": {"ignore": "src/assets/fonts"}, "input": "src/assets/", "output": "/assets/" }

This would help with file duplication issues.

One potential option is to try a glob with a negation.
However, the underlying issue is that non-assets are being placed within an asset directory.  Assets are files that are copied verbatim to the build output.  Files that are processed by the build system should not be placed there as they are not intended to be simply copied.


Extra space under Contact Information

Issue Type:
[x] Bug Report
Describe the bug

There is extra space under "Contact Information".

Possible solution

Describe the solution you thought of.

Screenshots

If applicable, add screenshots to help explain your problem.

Can I work on this?

I want to work on this issue under GSSOC'22.


Add station statuses and minor corrections for Welsh

Updates for Welsh translation – diolch.
Fix #245

This looks great—thanks so much!


Cut a new release

We need to resolve the issues in #71, and cut a new release.  A customer is blocked on the downstream issue with semver in gax, which was fixed in #69.

Released v0.2.2


Ussage count for EasyMotion is wrong

It currently shows that 105,437 people are using EasyMotion, but we only have 82,228 dotfile repositories.

As of the last deploy, this seems to have correct itself.

Weird.


Line Chart Curved prop

Hi @Abhinandan-Kushwaha,
Its seems that the line is hidden below xAxis when the value is equal to 0 in two days in a row

Hi @giltheodor 👋
Try using the prop curveType={CurveType.QUADRATIC}
See the docs

Thank you very much for your continues support!!!


How to use saved_model.pb in Tensorflow Model Server？

hello,this saved_model.pd has been loaded into tensorflow_model server, but I do not know how to inference in client,  could you help me ? thanks!

hey have you find the way to do it? i have same question.

hey have you find the way to do it? i have same question.
I still haven't solved this problem. Have you solved it?

Nope
On Mon, Nov 18, 2019, 8:58 PM LymanLiuChina<EMAIL_ADDRESS>wrote:

hey have you find the way to do it? i have same question.
I still haven't solved this problem. Have you solved it?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/bendangnuksung/mrcnn_serving_ready/issues/19?email_source=notifications&email_token=ABXGFVMIIS4XPTLU4JXHIDDQUNW7RA5CNFSM4IKFY3VKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEM3QBI#issuecomment-555333637,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABXGFVNR7MXZOJ4DD4BNAJLQUNW7RANCNFSM4IKFY3VA
.

@LymanLiuChina you can refer to my repo: https://github.com/huyhoang17/matterport-maskrcnn-with-tensorflow-serving

@LymanLiuChina你可以参考我的仓库：https : //github.com/huyhoang17/matterport-maskrcnn-with-tensorflow-serving

Thank you. I've read this article, but it seems that it lacks some documents。

@LymanLiuChina you can refer to my repo: https://github.com/huyhoang17/matterport-maskrcnn-with-tensorflow-serving

could you give me your complete code? Cuz，I don't understand some code, for example, import uuid ,  from api.helpers import utils as api_utils ...
thank you!

Hi! just update the code for inferencing using TensorFlow serving. Please check ReadMe.
Note: It uses GRPC not RESTAPI

It uses GRPC

te: It uses GRPC not RE

thanks , i got it ,hahaha....., I succeed


Google script Only secure origins are allowed

When loading over http:
(index):45 Uncaught (in promise) DOMException: Only secure origins are allowed (see: https://goo.gl/Y0ZkNV).(anonymous function) @ (index):45
When loading the page over https, a 404 error when getting sw.js is raised instead.
GET https://jsconsole.com/sw.js net::ERR_FILE_EXISTS
I have not tried the locally hosted version yet, but I have been unable to get remote debugging or injection to work thus far.

Have you tried switching to https? Do you still have the same issue?
On Tue, 22 Mar 2016 00:19 Devon Bagley<EMAIL_ADDRESS>wrote:

When loading over http:
(index):45 Uncaught (in promise) DOMException: Only secure origins are
allowed (see: https://goo.gl/Y0ZkNV).(anonymous function) @ (index):45
When loading the page over https, a 404 error when getting sw.js is raised
instead.
GET https://jsconsole.com/sw.js net::ERR_FILE_EXISTS
I have not tried the locally hosted version yet, but I have been unable to
get remote debugging or injection to work thus far.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/remy/jsconsole/issues/66

Request URL: https://jsconsole.com/inject.js
Request Method: GET
Status Code: 404
Remote Address: <IP_ADDRESS>:443

Yeah, sorry it should be: https://jsconsole.com/js/inject.js (super old issue too - again, sorry).


db.time read doesn't seem to work properly in 18.0.4

I was testing the performance of secure-scuttlebutt 18.0.4 to see if anything had changed after the flume upgrade and noticed that (test 6)[https://github.com/ssbc/bench-ssb/blob/master/06-ssb-read.js] doesn't work anymore. It's the same used for createLogStream so it's quite easy to test with:
  pull(
    sbot.createLogStream({ keys: true, values: false }),
    pull.drain(function (msg) {
      console.log("got msg", msg)
    }, function() {
      console.log("done!")
    })
  )

Just returns "done!" after upgrading scuttlebot to secure-scuttlebutt 18.0.4.

This seems to be because I run on an "old" database?

if it's an old database, it should rebuild the indexes. I'm sure I remember change all the versions when we added charwise, but I see 1 for the view versions. maybe this was caused by a bad merge? I saw this happen because of links though, not time.
Reminds me, I had an idea to use npm-shrinkwrap on a scuttlebot bundle release, and also publish each version as it's own module - so that multiple versions can be installed alongside each other. Then we could have tests that one database version is able to recover from another, and that one version is able to communicate with another, etc.

I just redid the tests to make sure it works in the upgrade situation and it does. Not sure if it was just late yesterday or it was the gt: 0 thing. Anyway sorry for the noise.


Add an automated Contributors List in the README section

I'd like to thank everyone that has contributed to this project! For that, I'd like to add a Contributors List on the README.md file so everyone can see it! The list should automatically increase everytime a new contributor decides to join in the fun.

I'd like to do this.


Fixed typos in README.md file

Fixes Issue
Browser extension of GitPod for Chrome and Firefox were not clearly mentioned, and was unable to read.
Check List (Check all the applicable boxes)

[👍🏼] My code follows the code style of this project.
[👍🏼] My change requires changes to the documentation.
[👍🏼] I have updated the documentation accordingly.
[👍🏼] All new and existing tests passed.
[👍🏼] This PR does not contain plagiarized content.
[👍🏼] The title of my pull request is a short description of the requested changes.

What merging this PR will do ?
Before :

After :


Function signInWithCredential() not completed in success only onCompleted

Hello
I am implementing phone authentication, after successfully implementing it I did it returned a FirebasePermissionDenied error but the second time it seemed to run correctly.
I tried to find out a bug reason what it was happening, and if the responsibility was this library envolve or firebase sdk.
I did the following checks.
Error code
The problem is that I try to write just after the login and in my rules that I have only authenticate users can write. this code throws an error
but why?
 rxFirebaseRepository.signInWithCredential (credential)
                .flatMapCompletable {
              rxFirebaseRepository.setValue (FirebaseDatabase.getInstance (). reference.child (USERS) .child (it.user !!. uid), userMapper.mapToEntity (userModel))
                } .andThen (Single.fromCallable ({userModel}))

Check login status just after signInWithCredential function

FirebaseAuth.getInstance (). CurrentUser == null why?

I tried implementate without this library looking at Google documentation

   mAuth.signInWithCredential (credential)
            .addOnCompleteListener (this, new OnCompleteListener <AuthResult> () {
                @Override
                public void onComplete (@NonNull Task <AuthResult> task) {
                    if (task.isSuccessful ()) {
                        // Sign in success, update UI with the signed-in user's information
                        Log.d (TAG, "signInWithCredential: success");

                        FirebaseUser user = task.getResult (). GetUser ();
                        // ...
                    } else {
                        // Sign in failed, display a message and update the UI
                        Log.w (TAG, "signInWithCredential: failure", task.getException ());
                        if (task.getException () instanceof FirebaseAuthInvalidCredentialsException) {
                            // The verification code entered was invalid
                        }
                    }
                }
            });

This code works correctly, why?

Looking at the differences between the implementation proposed by google and this library.

public class RxHandler <T> implements OnSuccessListener <T>, OnFailureListener, OnCompleteListener <T> {
    private final MaybeEmitter <? super T> emitter;

    private RxHandler (MaybeEmitter <? super T> emitter) {
        this.emitter = emitter;
    }

    public static <T> void assignOnTask (MaybeEmitter <? super T> emitter, Task <T> task) {
        RxHandler handler = new RxHandler (emitter);
        task.addOnSuccessListener (handler);
        task.addOnFailureListener (handler);

        try {
            task.addOnCompleteListener (handler);
        } catch (Throwable var4) {
            ;
        }

    }

    public void onSuccess (T res) {
        if (res! = null) {
            this.emitter.onSuccess (res);
        } else {
            this.emitter.onError (new RxFirebaseNullDataException ("Observables can not emit null values"));
        }

    }

    public void onComplete (@NonNull Task <T> task) {
        this.emitter.onComplete ();
    }

    public void onFailure (@NonNull Exception e) {
        if (! this.emitter.isDisposed ()) {
            this.emitter.onError (e);
        }

    }
}

I think that the problem is that the onSuccess function is called but the task is not completed so I call the writing function and this returns an error FirebasePermissionError
Looking at the documentation it seems that your implementation is correct but something is happening, I´ll leave this here to try to solve this small mystery.
At the moment I created my own envelope to solve this
     return Maybe.create ({em ->
            FirebaseAuth.getInstance (). SignInWithCredential (credential)
                    .addOnCompleteListener {
                        if (it.isSuccessful)
                            em.onSuccess (it.result)
                        else
                            em.onComplete ()
                    } .addOnFailureListener {
                        em.onError (it)
                    }
        })

It seems that everything runs correctly
Regards

I'm using this method with the library on multiple production applications and it's working without any problem. I think that your problem is that you are during a flatmapCompletable and calling FirebaseAuth().getCurrentUser. Your FirebaseAuth.getInstance() is returning null because Firebase doesnt update FirebaseAuth automatically, it takes a few milliseconds because you are using the same threads with Rx that Firebase in the BG. I had this problem with other methods such as sendEmailVerification or reload.
What I suggest you is use the FirebaseUser that your signInWithCredentials returns you when it
calls onSuccess for your next methods using a normal flatmap
Below you have an example from my app:
 RxFirebaseAuth.fetchProvidersForEmail(authInstance, userData.email)
                .flatMap { providerResult ->
                    //Check if the current provider is already associated to mark the result as a new account or not
                    when {
                        providerResult.providers!!.contains((credential.provider)) ->
                            return@flatMap RxFirebaseAuth.signInWithCredential(authInstance, credential).map { Pair(it, false) }
                        else -> return@flatMap RxFirebaseAuth.signInWithCredential(authInstance, credential).map { Pair(it, true) }
                    }
                }
                .subscribeOn(Schedulers.io())
                .subscribe({ (authResult, isNewAccount) ->
                    val emailVerified = authResult.user.isEmailVerified
                    val user = authResult.user.toUser().copy(photoUrl = userData.photoUrl)
                    val providers = authResult.user.associatedProviders()
                    dispatcher.dispatchOnUi(CreateAccountCompleteAction(
                            user = user,
                            alreadyExisted = !isNewAccount,
                            emailVerified = emailVerified,
                            requestState = requestSuccess(),
                            associatedProviders = providers,
                            signInMethod = credential.provider))
                    if (!emailVerified) sendVerificationEmailToUser(authResult.user)
                }, { error ->
                    dispatcher.dispatchOnUi(CreateAccountCompleteAction(
                            user = null,
                            requestState = requestFailure(error)))
                })

Thanks you have reason, now run correctly


Bugfix: better handling of inconsistent states in amendments if the b…

…ase motion has shrunk

@emanuelschuetze the updated version tries to show the amendment text when editing it. I hope it works - it's really messy to deal with this inconsistent state... :/


"dtmi:digitaltwins:rec_3_3:asset:Server;1" extends missing "dtmi:digitaltwins:rec_3_3:asset:ITHardware;1"

Current ontology models failed validation due to "dtmi:digitaltwins:rec_3_3:asset:Server;1" (Asset\Equipment\ICT\ITHardwareEquipment\Server.json) extends missing "dtmi:digitaltwins:rec_3_3:asset:ITHardware;1".
I assume there is a typo and it should reference "dtmi:digitaltwins:rec_3_3:asset:ICTHardware;1" (Asset\Equipment\ICT\ITCHardware.json), but there is one more inconsistency, file name (ITCHardware) is not matching the declaring interface (ICTHardware).

Thanks for reporting this.
Fixed this with this commit: https://github.com/Azure/opendigitaltwins-building/commit/cb93b123fdd7d552784996232ff1ee06ee1b99e4

Thanks for reporting this.
Fixed this with this commit: https://github.com/Azure/opendigitaltwins-building/commit/cb93b123fdd7d552784996232ff1ee06ee1b99e4


Slightly clearer wording on the marketplace migration process

What changed, and why it matters
Feedback from customers using this process has led to needing slightly clearer wording on which IDs they need to send us.

Thanks @staceysalamon-aiven , I've pushed a change to update to use "organization" terminology.


Optimize attributes diff  - moonshot

Ok, https://github.com/google/incremental-dom/pull/253 got me thinking how we can really optimize our attributes diffing. And this is what I came up with.
I think we have 3 average cases, then 3 edge cases with out code.

Average Case

New element, need to set all the attributes
Same attributes, values may have changed
No changes

Edge Case

Attribute has been dropped
Attributes have shifted around
New attribute replacing old one

We should make the two average cases fast as hell. And maybe make the edge cases faster, but they aren't the priority.
Well, here are the differences (http://justin.ridgewell.name/browser-benchmark/incremental-dom-attrs-diffing/index.html):

Average Case

~10% faster
200-400% faster
same, can't win everything. ¯\(ツ)/¯

Edge Case

It's really hard to test this.
~50% faster
200% faster

Looks gigantic (adds about 100 bytes to min), but the speed is impressive.
Oh, and this almost gets attributes completely out of core. 🎉

It looks like your Incremental DOM version might be missing a critical piece, which is the attributes cache of the previously set value. As a result, it looks like a lot more calls to setAttribute, which is very slow, will be made, since it will call it for every attribute, not just the changed ones.

I'm using attrsArr as the attributes cache now, which happens in the first conditional block. There is the possibility of changing attribute positions calling #setAttribute again, but that's one of the edge cases I'm not trying to optimize for. Same with duplicated attribute declarations.

To clarify:
Your reference implementation (the one you based on Incremental DOM) is calling setAttribute more than your test implementation (based on your PR).
This is because you aren't checking if the attribute changed. Since set attribute is an expensive operation, this is throwing the numbers off. If you want to see what is happening, make the following changes to your code:

At the top of your file, add:

var refCount = 0;
var testCount = 0;
var refRuns = 0;
var testRuns = 0;

Inside the "Incremental DOM" test, do refRuns += 1;
When "Incremental DOM" calls setAttribute, do refCount += 1;
Inside the "proposed change" test, do testRuns += 1;
When "proposed change" calls setAttribute, do testCount += 1;. There are three lines to make this change on.
Now, at the end of the test, add

var refSetAttr = Math.round(refCount/refRuns);
var testSetAttr = Math.round(testCount/testRuns);

document.body.insertAdjacentHTML('beforeend', `
  <p>
    calls to 'setAttribute' for "reference" impementation per test: ${refSetAttr}
  </p>
  <p>
    calls to 'setAttribute' for "test" impementation per test: ${testSetAttr}
  </p>
`);

Change it to only run one test. I picked "short, change at start".

Now, run the test and observe the results:

calls to 'setAttribute' for "reference" impementation per test: 3
calls to 'setAttribute' for "test" impementation per test: 1

In otherwords, you are calling setAttribute 3 times as much, per test run for the Incremental DOM version. This is because you removed the attribute cache that guards against this.
Now, lets account for the extra calls to setAttribute by making them call setAttribute the same number of times:

at the top of your file, add adjustmentCount = 0
replace

node.setAttribute(attr, newAttrs[attr]);

with
if (adjustmentCount === 2) {
  adjustmentCount = 0;
  node.setAttribute(attr, newAttrs[attr]);
} else {
  adjustmentCount += 1;
}

Now, run again and observe the results:

sparhami (short, change at start) x 2,057,602 ops/sec ±1.42% (64 runs sampled)
jridgewell (short, change at start) x 1,842,602 ops/sec ±0.97% (64 runs sampled)
Fastest is sparhami (short, change at start)

Ah, good catch.

at the top of your file, add adjustmentCount = 0

Comparing/incrementing with a local integer is much faster than property accesses on a map. I've added an attrs cache to the sparhami implementation. Still getting significant speedups:

Average Case

~100% faster (Sweet!)
30-40% faster
same. We'll always keep this one ridiculously fast.

Edge Case

...
50% slower. I'll look into this one.
10% faster

I'm playing around with a few more diffing algorithms too.

One interesting thing I found was that if you change the array check from:
for (; i < arguments.length; i += 1, j += 1) {
   if (attrsArr[j] !== arguments[i]) {
    attrsChanged = true;
    break;
  }
}

to
for (; i < arguments.length; i += 2, j += 2) {
  if (attrsArr[j] !== arguments[i]) {
    attrsChanged = true;
    break;
  }

  if (attrsArr[j + 1] !== arguments[i + 1]) {
    attrsArr[j + 1] = arguments[i + 1];
    attrsCache[arguments[i]] = arguments[i + 1];
    node.setAttribute(arguments[i], arguments[i + 1]);
  }
}

the average case with the old code becomes as fast as average case in the new code.

sparhami (short, change at start) x 1,605,250 ops/sec ±2.52% (56 runs sampled)
jridgewell (short, change at start) x 1,503,845 ops/sec ±2.17% (59 runs sampled)
Fastest is sparhami (short, change at start)

sparhami (short, change at start) x 1,541,029 ops/sec ±2.48% (55 runs sampled)
jridgewell (short, change at start) x 1,362,886 ops/sec ±1.54% (61 runs sampled)
Fastest is sparhami (short, change at start)

sparhami (short, change at start) x 1,664,487 ops/sec ±1.84% (59 runs sampled)
jridgewell (short, change at start) x 1,718,048 ops/sec ±2.77% (57 runs sampled)
Fastest is jridgewell (short, change at start)

sparhami (short, change at start) x 1,601,723 ops/sec ±2.35% (59 runs sampled)
jridgewell (short, change at start) x 1,488,263 ops/sec ±2.17% (58 runs sampled)
Fastest is sparhami (short, change at start)

sparhami (short, change at start) x 1,384,452 ops/sec ±1.94% (57 runs sampled)
jridgewell (short, change at start) x 1,462,221 ops/sec ±2.67% (55 runs sampled)
Fastest is jridgewell (short, change at start)

It is a bit hard to tell with how much the benchmark varies per run, but it looks to be about the same.

Seems I was overcomplicating this. Updated with a slight modification on yours to help the New Element case:

New element: 100% faster
Attribute value change: 30-50% faster
No changes: 25% faster

Looks good, just some failing tests.

Whoops, fixed.


Add Spanish translation

Add Spanish translation

Think the first line should be es: instead of en:
Could you fix it? I would be happy to pull your request :)

Yes! You're totally right.
Fixed.
Thanks!

Thank you for your work!


Events Handling

First of all, thanks for this bundle.
I recently integrated it with a symfony project and managed to render a few areas of the app using react and the exact structure this example follows, but I ran into an issue that I assume is related to react rendering on server side (it's using the default: both).
Whenever I tried to add even an onClick listener, once the page is rendered nothing will happen.
So my question is, if I have both the RecipesAppServer and the RecipesAppClient pointing to the same react component, what am I missing for click events to work?
Would an example be possible? I'd highly appreciate it!

Nevermind, I figured out by searching through this repository where I had to include the client-bundle.js file.

Oh, sorry for not answering before. I had this on my TODO-list but couldn't find the time :/.
Thanks for reporting this. Do you think that the documentation could be improved somehow so it can help other users in the same situation?

This Twig function, provided by ReactBundle, will render the React component RecipesApp in server and client modes. <-- this part of the documentation makes it seem that's all you need, but in reality, if you don't include the client-bundle.js file (and in my case the app kernel webpack part), it would never render anything in the client side.
I'd say perhaps mention that in line 54 in the https://github.com/Limenius/symfony-react-sandbox/blob/132d5c716b8de21e2bbbeb457ccc80ea177660ea/app/Resources/views/base.html.twig you're adding the client-bundle.js file to the project.
Of course, with the way that is written, I think it will need the webpack appkernel part you already mentioned in the documentation though.


Adding model to batchSearchableModels

Hi there, thanks for this package, needed this feature to solve rate limits with my elasticsearch host.
Just FYI, I had to add this line to my AppServiceProvider boot method:
ScoutBatchSearchableServiceProvider::$batchSearchableModels[] = Item::class;
In order to get the scheduled command working.
Let me know if I missed something!

That's weird. It should be automatically added when the BatchSearchable trait boots (or more specifically, when the Searchable trait boots inside BatchSearchable trait). Maybe you have included both Searchable and BatchSearchable traits?
https://github.com/optimistdigital/laravel-scout-batch-searchable/blob/b672dfe6a90215258cb19a737ad89cea3ed12751/src/BatchSearchable.php#L29

Nope, I added some debugging and that registerSearchableMacros function doesn't run unless I initialize the model (even just running new Item from the AppServiceProvider works). My guess is that artisan commands don't boot the models.

 I guess I need to make the model registration into a manual action then after all. It does make sense that it does not run unless the model is booted somewhere.

Heya @keithbrink! I think I managed to fix this without adding an explicit configuration option.
Whenever an item is added to the batch queue, I save the class name to an array in cache with the key BATCH_SEARCHABLE_QUEUED_MODELS (deduped unique of course). This should work perfectly and no explicit configuration is no longer needed.
NB! The ServiceProvider::$batchSearchableModels[] static array no longer exists, so when you update, you have to remove this part from your app as well. This was added in version 1.1.0.

@Tarpsvo Brilliant! Thanks so much.


Swashbuckel swagger is not loading after publishing

I have integrated swashbuckel to my .net core 2.1 web api project and it works well when I run with visual studio 2017. but when i publish it and try to access it after hosting in IIS server via "domain/swagger/index.html" it doesn't work.  in the published folder I cant see any index.html file. help is appreciated
VERSION:
Provide the version of Swashbuckle you're using
Swashbuckle.AspNetCore 3.0.0

I am getting the same thing.


long memory question

Boss, where did you implement the long memory memory stream in your AI town? Did you refer to the interface or library, or did you perform compression, deletion, transfer, and other related processes for long memory in the project

Boss, where did you implement the long memory memory stream in your AI town? Did you refer to the interface or library, or did you perform compression, deletion, transfer, and other related processes for long memory in the project

You can watch this official presentation video to understand how it works I guess:
https://www.youtube.com/watch?v=HPHwN5ZxF98&t=1468s

老板，你在AI镇的长内存流是在哪里实现的？您是否参考了接口或库，或者是否对项目中的长内存执行了压缩、删除、传输和其他相关过程

您可以观看此官方演示视频以了解其工作原理，我想：https://www.youtube.com/watch?v=HPHwN5ZxF98&t=1468s

But where is the source code

But where is the source code of the memory stream

But where is the source code for the memory stream? I want to find this memory stream

But where is the source code of the memory stream? I want to find the logic of this memory stream. Can the boss tell me


bugfix: fix the bug that the node data will be covered when switching nodes in the edit state in the detail form on the right (seata#2882)

Ⅰ. Describe what this PR did
fix the bug that the node data will be covered when switching nodes in the edit state in the detail form on the right.
修复右侧详情表单在编辑状态下切换节点会导致节点数据被覆盖的BUG。
Ⅱ. Does this pull request fix one issue?

fixes #2882
Ⅲ. Why don't you add test cases (unit test/integration test)?
no test files were found in the front-end project.
未在前端项目中发现测试文件。
Ⅳ. Describe how to verify it
Switch nodes when you edit the details form on the right, check whether the detail form data is updated.
在右侧详情表单的编辑状态下切换节点，看右侧详情表单数据是否更新成新节点的数据。
On the basis of the previous step, edit the new node's details form but does not modify any data, check whether the details form data is covered after exit edit.
在上一步的基础上，编辑新节点的右侧详情表单但不修改任何数据，退出编辑状态，查看新节点数据是否被节点数据所覆盖。
before fix（修改前）：

after fix（修改后）：

Ⅴ. Special notes for reviews
nothing

Codecov Report

Merging #2885 into develop will increase coverage by 0.03%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##             develop    #2885      +/-   ##
=============================================
+ Coverage      49.95%   49.98%   +0.03%
- Complexity      3015     3018       +3
=============================================
  Files            597      597
  Lines          19291    19268      -23
  Branches        2318     2304      -14
=============================================
- Hits            9637     9632       -5
+ Misses          8663     8648      -15
+ Partials         991      988       -3

Impacted Files
Coverage Δ
Complexity Δ

...otobuf/convertor/BranchReportRequestConvertor.java
90.90% <0.00%> (-4.55%)
3.00% <0.00%> (ø%)

...obuf/convertor/BranchRollbackRequestConvertor.java
92.00% <0.00%> (-4.00%)
3.00% <0.00%> (ø%)

...ain/java/io/seata/config/ConfigurationFactory.java
45.90% <0.00%> (-0.88%)
4.00% <0.00%> (ø%)

...in/java/io/seata/tm/api/TransactionalTemplate.java
64.03% <0.00%> (-0.32%)
25.00% <0.00%> (ø%)

...in/java/io/seata/server/session/BranchSession.java
78.03% <0.00%> (-0.08%)
44.00% <0.00%> (ø%)

...ta/core/rpc/netty/AbstractNettyRemotingServer.java
0.00% <0.00%> (ø)
0.00% <0.00%> (ø%)

...protobuf/convertor/RegisterRMRequestConvertor.java
90.47% <0.00%> (ø)
3.00% <0.00%> (ø%)

...protobuf/convertor/RegisterTMRequestConvertor.java
94.73% <0.00%> (ø)
3.00% <0.00%> (ø%)

...rotobuf/convertor/RegisterRMResponseConvertor.java
79.31% <0.00%> (ø)
3.00% <0.00%> (ø%)

...rotobuf/convertor/RegisterTMResponseConvertor.java
79.31% <0.00%> (ø)
3.00% <0.00%> (ø%)

... and 25 more


video: remove obsolete motion template c-api declarations

the motion templates were long ago moved to opencv_contrib (optflow/motempl.hpp), and there is no more c-api implementation.

ok, this can't be removed without breaking abi checks .


Allows to use files outside of the main directory in setup.cfg file

Summary of changes
This change allows to use the file outside the main directory. For example, in the file setup.cfg, section long_description the user can use an outside file file: ../README.md.
Closes https://github.com/pypa/setuptools/issues/2699
Pull Request Checklist

[x] Changes have tests
[x] News fragment added in changelog.d/.
(See documentation for details)

All the information and my arguments are in the Issue https://github.com/pypa/setuptools/issues/2699, but I'll try to resume in this comment.

Even the test name says "sandbox". Referencing files outside the project is prone to errors and security bugs.

In my point of view, say that take file outside the project is a security issue is relative. Because if I have the permissions to access to a root file via setuptools, means I can copy manually this file in the project directory. What is the preventing this security code changes? Is the person who build the application the only one who can modify anything before upload to the PyPi?

If you think that my PR is not relevant, and you didn't merge my code. At least add in these pieces of code a warning message saying: For security reasons, you could't use file outside of this directory: /home/my-user/projects/hulala/src/

Also, how do you include it in a sdist if it's outside?

This is the interesting part, if you review my code changes and description in the issue. It isn't copying the file into the project directory, it is copy the content and put in some place, in this case in the PKG-INFO file. Means I am able to have a README.md file in /root/hack-me/README.md and put this content in my project /home/my-user/projects/hulala/src/hulala.egg/PKG-INFO. Do I expose that is essential in this PR?

I think, as a workaround, you could symlink it.

As I mentioned in the created issue. I am able to fix using the setup.py without problems with open('../README.md', 'r', encoding="utf-8") as fh:, also create a symlink looks ugly and not make sense to have a file. Let me put an example: Imagine that my documentation in ./hulala/src/README.md is referring to the application, this documentation not necessary needs to have the documentation for the PyPi. In fact, it shouldn't have the PyPi documentation. Let say that this documentation is in ./hulala/docs/pypi/README.md. Then, when I create the package, I want to specify in the file setup.cfg:

long_description = file: ../docs/pypi/README.md
long_description = file: /home/my-user/hulala/docs/pypi/README.md

Do  you get my point?