Fix the what's happening now and the calendar

Is your feature request related to a problem? Please describe.
Fix the what's happening now and the calendar
Describe the solution you'd like

Keep some distance along with the calendar and what's happening now
Change the label size of the date
Change the calendar buttons to blue

Are you working on it?
Yes

Shall I work on this?

@Hasthikagirihagama Shall I work on this?


Handle newer client secrets stored without base64 encoding, along with subdomain URLs.

The change made on 12/6/2016 to the way client secrets are stored (without base64 encoding) created an issue when using the webtask-tools package to authenticate a webtask against Auth0 clients created after that date.
This PR proposes that webtasks using clients created after 12/06/2016 define an additional secret of AUTH0_SECRET_ENCODING={encoding} when they are created, in addition to the usual AUTH0_CLIENT_ID, AUTH0_CLIENT_SECRET, and AUTH0_DOMAIN secrets. This new parameter informs the webtask-tools package which character encoding to use for the secret when validating a request token.
If the AUTH0_SECRET_ENCODING secret is not provided, the {encoding} defaults to 'base64' to retain backwards compatibility with existing webtasks and clients created prior to 12/06/2016. Webtasks using clients created after 12/06/2016 can use an {encoding} of 'utf8'.
This change also supports subdomain URLs of the form https://{container}.us.webtask.io/{jtn}, as produced by the wt create command and described in the forum thread "Problem authenticating a webtask with Auth0".

Hi @scott-parsons thank you for this contribution. This looks good to me but I'm going to ask my colleague @tjanczuk to also take a look.

For reference, the relevant change is: https://support.auth0.com/notifications/582f936aff292c0008f0fe26


Help adding Biomes as Rivers

Im really enjoying this mod but im at a loss as to how to add more biomes as "rivers". Regions Unexplored has a few other river biomes (cold river, muddy river, etc..) and i would like for them to work with the wheels; can you offer any advice?

This has been fixed for 1.20.1, and it is up on curseforge. The other versions will come in a bit.


2022.01b Iteration Plan #291

SAP teams don't plan to address any specific issue in our next iteration.

We continue to work on the SAP Note that enables ABAP file formats in release 2021 (SAP_BASIS 7.56) for ATC checks (CHKO), ATC check variants (CHKV) and ATC check categories (CHKC).

The iteration lasts 2 weeks and ends on February 14, 2022.

Iteration Results
Closed

SAP Note 3138884 (Update CHKO, CHKC and CHKV to recent ABAP file format and CHKV JSON-based UI) is available for release 2021 (SAP_BASIS 7.56)


[terra-form-select] Prevent invalid options (options with only spaces) from being added in combobox variant.

Summary
Fixes #2414.
Additional Details
Updated a couple of Jest tests that should have supposedly tested combobox variant.
Deployment Link
https://terra-core-deployed-pr-2420.herokuapp.com/#/components/terra-form-select/form-select/select

@StephenEsser
Should the workflow listed on #2414  be wdio tested?

Functional verification completed. The form select combo box example functions as expected and does not accept spaces only as a valid input option.

Tested: PR #2420
Resolves: Issue #2414
Reviewed:

removes ability to add empty strings as accepted value in combobox

Considerations:

future: if value was already accepted and you modify the value or select another option, or press spaces, then select escape or "click-out", the original value should be retained. Will be resolved by issue #2474 or similar.

Marking as Verified, ready for Release.

Pass

UX Review


issue #65,#66

issue #66 placed url under "Snohomish County"
issue #65 placed url under "Yakima County"

Thanks @owy1! Just a couple little formatting fixes to change if you can, and then I'll merge it.

per request, commit e32576ec04c9003b01ab9f969d6a9d224a7fe1c7

Awesome, thanks!


Video flashing black

Hi, I'm having a problem with the video display. It keeps flashing black in my world. I thought the problem was with the candles/skybox but after changing them nothing changed. all screens are far away from the walls so it's not related to texture crossing.
Started the player in a separate world, there were no such problems.
https://github.com/user-attachments/assets/a3c2ba31-99a1-46da-ae03-1c717e3e5445

This is a known issue with any video player. See: https://feedback.vrchat.com/bug-reports/p/open-beta-protv-flickers
VRChat have to upgrade the AVPro Player, which they didn't do till now.
In the meantime, you can work around the issue: https://git.vreml.org/skuld/vrc-videoscreen-flicker-fix/-/blob/main/README.md
Or switch to a different player, since other players have already integrated workarounds.


Print route

What changed?
This is a really bare-bones printing route that you can get to via the patient_details page. It shows a printable "id card" for now (mostly to show that it's possible).

I've added the patient_history route to this as well. I've also included a patient_nav.html include so we can have these pages feel a bit more synced.


Refactor the subquery code and fix outer condition queries

This change refactors the subquery code into a separate builder class to
help allow for more reuse and make the functions smaller and easier to
read.
The previous function that handled most of the code was too big and
impossible to reason through.
This also goes and replaces the complicated logic of aggregates that had
a subquery source with the simpler IteratorMapper. I think the overhead
from the IteratorMapper will be more, but I also believe that the actual
code is simpler and more robust to produce more accurate answers. It
might be a future project to optimize that section of code, but I don't
have any actual numbers for the efficiency of one method and I believe
accuracy and code clarity may be more important at the moment since I am
otherwise incapable of reading my own code.
Fixes #8045.

[ ] Rebased/mergable
[ ] Tests pass
[ ] CHANGELOG.md updated

@rkuchan is it possible for you to test this out with a few scenarios? I added some tests, but some human eyes would also be good.
@jwilder I'm not 100% confident in the performance characteristics of this, but I give my rationale for why I think it's a positive change anyway in the PR. What do you think?

This isn't a high priority for testing. We're going to push it to the 1.3 release since it's more involved than other bugfixes.

I still need to expand the benchmarks to cover more aspects, but the initial numbers are not promising for the simplest case:
benchmark                                     old ns/op     new ns/op     delta
BenchmarkSelect_Subquery_Aggregate_1K-8       785914        832085        +5.87%
BenchmarkSelect_Subquery_Aggregate_100K-8     62048569      72915654      +17.51%

benchmark                                     old allocs     new allocs     delta
BenchmarkSelect_Subquery_Aggregate_1K-8       7070           7077           +0.10%
BenchmarkSelect_Subquery_Aggregate_100K-8     700076         700083         +0.00%

benchmark                                     old bytes     new bytes     delta
BenchmarkSelect_Subquery_Aggregate_1K-8       411989        412261        +0.07%
BenchmarkSelect_Subquery_Aggregate_100K-8     40804498      40804770      +0.00%

That may not be an acceptable speed loss. Especially with 100K points.

I am so confused, but rerunning the benchmarks that I have locally on my computer gives me this now:
jsternberg:[~/g/s/g/i/influxdb] $ (tmp $) benchcmp old.txt new.txt
benchmark                                     old ns/op     new ns/op     delta
BenchmarkSelect_Subquery_Aggregate_1K-8       794322        783705        -1.34%
BenchmarkSelect_Subquery_Aggregate_100K-8     63811348      61522037      -3.59%

benchmark                                     old allocs     new allocs     delta
BenchmarkSelect_Subquery_Aggregate_1K-8       7070           7077           +0.10%
BenchmarkSelect_Subquery_Aggregate_100K-8     700076         700083         +0.00%

benchmark                                     old bytes     new bytes     delta
BenchmarkSelect_Subquery_Aggregate_1K-8       411989        412261        +0.07%
BenchmarkSelect_Subquery_Aggregate_100K-8     40804498      40804770      +0.00%

If true, this is definitely acceptable. I'm also trying to use the same old technique for subqueries that I was using, but trying to get the changes I made in this query and I am finding it very difficult to keep track of the code.


Bug: .spring doesn't work with .Translate

the moment you use a .spring easing .Translate ignores duration and finishes very fast (without the spring animation)

This is the correct functionality as the duration is ignored when using a spring for easing as the easing is what defines the duration of an animation in order to mimic more real-life motion physics. Increasing the friction and/or reducing the tension will increase the duration of the animation.

Thanks for the explanation. :+1:


Hide redundant 'but it feels like'

Because, well...
The temperature is 58.68°F, but it feels like 58.68°F

ping @jfrazelle :sunny:

Nice!!!

Thanks Jess! More coming, when I get back home nice simple code to hack a bit on :smile:

Cool!!!!

SFO now, flight looks to be delayed, but there's WiFi, so feels like <IP_ADDRESS>


Memory issues with old bug 995

A test with a massive templated function name https://github.com/compiler-explorer/compiler-explorer/issues/995
causes a lot of memory usage, which in turn results in performance issues because of memory allocation and swapping.
Perhaps some places can avoid copying and storing this label's entire name when it's this long.

We can probably use string_view for label references per line, as we know for sure those will always be there together at the same time?


expose validators

const x = Validators.required gives an error.
Cause for dart it is getter which is not guaranteed to return const value.
Also it makes sense to expose other validators to be able to create const
Otherwise the import from 'package:reactive_forms/src/validators/min_length_validator.dart' required which gives an info in analyser do not import bla bla bla

My only concern is that we will provide the same validator instance for all the Forms in an app. I like the idea to create a new instance for each control. Not sure right now if having only one instance for all the controls in one form could be an issue or not. In theory it shouldn't be a problem but not 100% sure

Yes you are right at the end the const constructors will make them the same instance, but does that mean that I will have all those validators instances in memory even if I only use 2 or 3 of them? Having them declared as variables in the file instead of creating instances dynamically when needed. Is there any other way to create the instances on demand and make the compiler not complain about it?

With current implementation you will never have an instance of NumberValidator, EmailValidator, Required, etc, loaded in memory of you don't need them in your project. But with this PR even if you never use the NumberValidator in your project you will have in memory several  const variables with the Number Validator, email, etc instances. Am I wrong?

I like the idea of allowing this syntax const x = Validators.required though. What if we make them a function instead of a get? Will that make the trick? I'm not in front of my laptop right now, I can't test it now


Minor documentation cleanup

Minor typo fix in help system documentation:
See https://github.com/tinaColemanNextCentury/owf-wiki/commit/f139a2407b0db1a7239194f9cf960a2f5d4b7c59 - typo fix in help system documentation

Merged.


Reduce quantity of Wild Mage villagers again

I don't believe this is possible in 1.12 without the use of mixins.


Block edge 4.4.30

4.4.30 needs to be disabled:
3 clusters currently failing (11%),  5 gone (18%),and 18 successful (64%), out of 28 who attempted the update over 7d
Currently failing classification:
* Down nodes: 1
* Node pressure: 1
* SDN issue: 1
* Slow etcd: 1
* Untriaged: 1
* Version retarget: 1

4.4.30 can be enabled again:
1 clusters currently failing ( 4%),  5 gone (19%),and 17 successful (65%), out of 26 who attempted the update over 7d
Currently failing classification:
* Version retarget: 1


Update PHP Node dockerfile

Fix failing builds for older alpine versions

Failing due to invalid credentials.

apk del is throwing error code 130
navarr@Navarrs-MacBook-Pro-2 php-fpm % docker build -f node/Dockerfile context --build-arg ENV_SOURCE_IMAGE=ghcr.io/swiftotter/den-php-fpm --build-arg NODE_VERSION=12 --build-arg PHP_VERSION=7.0
[+] Building 4.0s (15/15) FINISHED
 => [internal] load build definition from Dockerfile                                                                                0.0s
 => => transferring dockerfile: 1.00kB                                                                                0.0s
 => [internal] load .dockerignore                                                                                0.0s
 => => transferring context: 2B                                                                                0.0s
 => [internal] load metadata for ghcr.io/swiftotter/den-php-fpm:7.0                                                                                0.0s
 => [internal] load metadata for docker.io/library/node:12-alpine                                                                                1.3s
 => [auth] library/node:pull token for registry-1.docker.io                                                                                0.0s
 => CACHED [stage-1 1/8] FROM ghcr.io/swiftotter/den-php-fpm:7.0                                                                                0.0s
 => [node 1/2] FROM docker.io/library/node:12-alpine@sha256:d4b15b3d48f42059a15bd659be60afe21762aae9d6cbea6f124440895c27db68                                                                                0.0s
 => CACHED [node 2/2] RUN npm install -g grunt-cli gulp                                                                                0.0s
 => [stage-1 2/8] COPY --from=node /usr/lib /usr/lib                                                                                0.1s
 => [stage-1 3/8] COPY --from=node /usr/local/share /usr/local/share                                                                                0.0s
 => [stage-1 4/8] COPY --from=node /usr/local/lib /usr/local/lib                                                                                1.4s
 => [stage-1 5/8] COPY --from=node /usr/local/include /usr/local/include                                                                                0.1s
 => [stage-1 6/8] COPY --from=node /usr/local/bin /usr/local/bin                                                                                0.2s
 => [stage-1 7/8] COPY --from=node /opt /opt                                                                                0.0s
 => ERROR [stage-1 8/8] RUN PACKAGES="ghostscript imagemagick gcc x265-libs libheif mariadb-client fish icu-libs libde265 libstdc++"     && VERS=$(cat /etc/*-release | grep -i '^[0-9.]\+$')     && COMPARISON=$(apk version -t "$VERS" "3.16")     && ( [[ "$COMPARISON" = ">" || "$COMPARISON" = "=" ]] && P  0.3s
------
 > [stage-1 8/8] RUN PACKAGES="ghostscript imagemagick gcc x265-libs libheif mariadb-client fish icu-libs libde265 libstdc++"     && VERS=$(cat /etc/*-release | grep -i '^[0-9.]\+$')     && COMPARISON=$(apk version -t "$VERS" "3.16")     && ( [[ "$COMPARISON" = ">" || "$COMPARISON" = "=" ]] && PACKAGES="${PACKAGES} libjxl" )     ; apk del $PACKAGES && apk add --update --no-cache $PACKAGES:
#15 0.298 WARNING: Ignoring APKINDEX.70c88391.tar.gz: No such file or directory
#15 0.298 WARNING: Ignoring APKINDEX.5022a8a2.tar.gz: No such file or directory
------
executor failed running [/bin/sh -c PACKAGES="ghostscript imagemagick gcc x265-libs libheif mariadb-client fish icu-libs libde265 libstdc++"     && VERS=$(cat /etc/*-release | grep -i '^[0-9.]\+$')     && COMPARISON=$(apk version -t "$VERS" "3.16")     && ( [[ "$COMPARISON" = ">" || "$COMPARISON" = "=" ]] && PACKAGES="${PACKAGES} libjxl" )     ; apk del $PACKAGES && apk add --update --no-cache $PACKAGES]: exit code: 3

Everything looks fine, so I'm not sure why its happening

@bap14 Feel free to ignore the checks, they've... never worked and I think they might actually push even though they shouldn't.  I'll be removing them

@navarr Not sure why apk del is failing, but I tested using 7.3 and 7.4 (as that was the difference in alpine from 3.15 to 3.16). I can go back and check PHP 7.0 and see why it's failing and see if there's an easy solution.

@navarr Another question is: At what point should we stop building the old EOL'ed versions of PHP? They're not changing, so I don't think there's any real benefit to rebuilding the images daily.

Unless we change the approach for bringing on node, the one benefit to rebuilding the old PHP images is new node versions.  We could theoretically do them ad-hoc.
Generally, I wouldn't want to support EOL versions at all.

@navarr  The build for PHP 7.0 was failing because packages were to be removed/added were not found in the Alpine package repository. The offending packages were:

libheif
libde265
x265-libs

I'm haven't looked at when/why these were added, but libheif and libde265 weren't included in the Alpine package repository until Alpine 3.10, and x265-libs was available starting with Alpine 3.9.
So the current solution is to add an ugly "if" condition that will add these packages if they're available. It's not great, but it does build PHP 7.0, 7.1, 7.2, 7.3 and 7.4.


Tag at end of sentence in parentheses gets ")" as part of the tag

Please select the area your bug applies to. (Multiple selections are Possible. You can leave blank if you're not sure.)

[x] Workspace.  VSCode workspace, vaults, Intellisense/autocomplete, Dendron settings
[ ] Lookup.  Dendron's Lookup Command
[ ] Views.  Dendron Preview, Tree View, Side Panels in the UI
[ ] Schema.  Dendron Schemas
[ ] Pod.  Data import from / export to Dendron
[ ] Publish.  External Site Publish
[x] Markdown.  Markdown features, such as syntax support and features

Describe the bug
When writing a sentence and a tag and adding a ")" to end sentence with parentheses it becomes part of the tag.
To Reproduce
Steps to reproduce the behavior:

Write a sentence like this (with parentheses and a tag #example)

Expected behavior
#example should be converted to a link to the tag, without the additional ")".
Desktop (please complete the following information)

OS: Mac OS Monterey version 12.1 (latest at time of writing)
VSCode version: Version: 1.64.0-insider
Dendron version: v0.77.1

Thanks for reporting the issue! Since you mentioned interest in fixing this, I'll give you a bit of time to attempt a fix. Otherwise we'll pick the issue up whenever possible.

The interesting thing with this issue I've just found is it's inconsistent in punctuation - for example it captures #todo) as a full tag, but #todo? it only capture the todo part of as the tag name.

Symbol
Added to tag?

`
N

¬
Y

!

Y (only with text after, expected)

?
N

/
Y

@rlh1994 Yeah, that's controlled by a regexp check of punctuation marks. See: https://github.com/dendronhq/dendron/blob/9d9579cdab773131a5c8e0b1d6e130262d6a8164/packages/engine-server/src/markdown/remark/hashtag.ts#L21
BTW, I have put up  #2182 to fix () specifically.


⚠ Processors has degraded performance

In 1a8ec5f, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 80 ms

Resolved: Processors performance has improved in 737d1ff.


Insert returning

As I understand there's no such a capability currently.
Though it's present in postgrest-js https://github.com/supabase/postgrest-js/issues/143

Oh it seems like execute() already returns all the fields! Sorry for disturbing :-)

PR #80 broke this behavior so it always returns nothing since the new default is "minimal" but the argument for overriding it was accidentally taken out when they broke out insert and upsert. I've submitted PR #87 to add that back.


Update pekko-connectors-jms to 0.0.0+172-784827a8-SNAPSHOT

About this PR
📦 Updates org.apache.pekko:pekko-connectors-jms from 0.0.0+140-7d704044-SNAPSHOT to 0.0.0+172-784827a8-SNAPSHOT
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.apache.pekko", artifactId = "pekko-connectors-jms" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.apache.pekko", artifactId = "pekko-connectors-jms" }
}]

labels: library-update, early-semver-build-metadata, semver-spec-build-metadata, commit-count:1

Superseded by #389.


Use TempDirectory from spine-testlib instead of JUnit Pioneer

This PR takes advantage of https://github.com/SpineEventEngine/base/pull/132 to remove the JUnit Pioneer dependency from the project and use the functionality from base instead.
See https://github.com/SpineEventEngine/core-java/issues/743 for details.
The base dependency version and the Spine version advance to 0.10.46-SNAPSHOT.

@armiol PTAL.


Feature: ExtrudeGeometry

Hi, I am looking for a 3d viewer of complex shapes and your library seems very promising.
It would be interesting to have implemented THREE.Shape() and THREE.ExtrudeGeometry in order to create extruded geometry from a path shape ( https://threejs.org/docs/#api/en/geometries/ExtrudeGeometry )
What do you think?

Yeah, would love to have this feature as well.
Any unlisted workaround for this usecase?


Add option to validate domain from email

I've setup Apache as a OAuth2 Resource server as described in the wiki to protect an API using OAuth2.
Google doesn't seem to return the hd parameter even though it is specified in the authorisation request URL (https://accounts.google.com/o/oauth2/auth?client_id=xx&response_type=code&redirect_uri=abc&scope=abc&login_hint=aaa@example.com&access_type=offline&hd=example.com&approval_prompt=force).
The claims returned are:
{
  "issued_to": "xxxxx-14o88438e8gvfmeup0bge5f4hi272o99.apps.googleusercontent.com",
  "audience": "xxxxxx-14o88438e8gvfmeup0bge5f4hi272o99.apps.googleusercontent.com",
  "user_id": "xxxxx14665377302725",
  "scope": "https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/script.external_request https://www.googleapis.com/auth/script.scriptapp https://www.googleapis.com/auth/plus.me",
  "expires_in": 3588,
  "email"<EMAIL_ADDRESS>  "verified_email": true,
  "access_type": "offline"
}

Doing a bit of Googling I get mixed results with some saying that the hd parameter may not be well supported by newer versions of Google's OAuth implementation but some documentation saying it should work.  It doesn't seem to be working.
I don't have an effective way in Apache to limit access using the domain.
Is there another way to maybe write the "Require claim ..." directive to check for the domain?  Looking through the source it seems like an = match.
Would it be possible to add support in some way to test the domain returned by the email address using your plugin?  Something like "Require claim email:example.com" which would then test that the email ends in example.com.

That would be possible using regular expression matching, something like Require claim<EMAIL_ADDRESS>(untested) as documented in https://github.com/pingidentity/mod_auth_openidc/wiki/Authorization#1-mod_auth_openidc
let me know if that works for you

Works like a charm.  I should have seen that!  Thanks for the quick response.

there's one caveat with this: anyone could register any e-mail address with their Google account; you will need to make sure that e-mail validation for your domain ("example.com") is controlled by you, "verified_email" is true, and that all users that can read e-mail on an account in "example.com" are allowed to have access to your Apache protected resources

Thanks for the info.  I've added to also check for verified_email:true and we are the only people who can create (and therefore I assume 'verify') users in our domain with Google.

remember there's no easy way to do this in Apache config only: specifying multiple "Require claim:" directives are combined as a logical "OR", not an "AND"; how did you solve this?

We're running Apache > 2.4 so I used the <RequireAll> container directive.
<RequireAll>
    Require claim<EMAIL_ADDRESS>    Require claim verified_email:true
</RequireAll>

I tested it with a few scenarios and it seems to correctly combine the Require statement with an "AND".

very good! thanks


FATAL: sorry, too many clients already

Since today's latest deployment, we are experiencing problems with Kong and the Postgresql backend
Kong Version: 0.14.1 (we know we have to update but we don't understand why this error is happening)
Postgres: 9.6
This error happens in KONG:

This error happens in PostgreSQL:
FATAL: sorry, too many clients already

As we didn't change any code in any service related to KONG in the last deployment, we are really confused, and we would just like to know what's happening or if there is a reason

In older versions of Kong, there is no upper bound on the number of connections that can be made to Kong. More recent releases allow you to limit the number of concurrent queries.
too many clients can be triggered by a number of behaviors, such as cold cache on the proxy side, an increase in the number of Admin API queries, scaling proxy traffic horizontally or vertically (e.g., running Kong on a larger machine with more CPU cores means running more workers, each of which maintain their own connections to Postgres).
I suggest upgrading, of course, and looking at the pg_max_concurrent_queries config option present in recent releases of Kong to prevent saturating the connection count to Postgres.

Thanks @p0pr0ck5  for the detailed answer.
The funny thing is that we didn't change anything on those containers (just restarted them) and this started to happen out of sudden, and there is no way to fix it but upgrading.
Do you know if upgrading to 0.15 is enough?
Thanks in advance?

It's impossible to say what happened in your environment without a detailed investigation, so I won't speculate here :)
IIRC, the functionality noted was added in release 1.2 (https://github.com/Kong/kong/blob/master/CHANGELOG.md#120)

@p0pr0ck5 we upgraded to KONG 1.4.2 and without he concurrent queries property and this error still happens, the database is getting still lot's of connections that are not getting closed.
Are there any performance implications related to the concurrent queries properties?
And now that we are in 1.4.2, how can we know why this happened?
We literally changed nothing there, nothing related to what you mentioned in your previous comment, and we are really worried about this because it makes KONG really unstable.
Any help would be really appreciated

We also tried setting the pg_max_concurrent_queries. We've set it to 5 and we have 8 workers, so it shouldnt get more than 40 connections as far as I understand, but this keeps happening

Another udpdate:
We even set the nginx_workers to be only 1.
Still leaking connections for some reasons.
We get a variety of errors in KONG:
2020/01/14 14:40:36 [error] 36#0: *80 recv() failed (104: Connection reset by peer), context: ngx.timer
2020/01/14 14:48:49 [error] 36#0: *1833 recv() failed (104: Connection reset by peer), client: <IP_ADDRESS>, server: kong_admin, request: "GET /consumers?custom_id=x3yKmEAcWNcFyXvga HTTP/1.1", host: "kong:8001"
2020/01/14 14:48:49 [error] 36#0: *1833 [kong] api_helpers.lua:310 receive_message: failed to get type: connection reset by peer, client: <IP_ADDRESS>, server: kong_admin, request: "GET /consumers?custom_id=x3yKmEAcWNcFyXvga HTTP/1.1", host: "kong:8001"
2020/01/14 14:50:06 [warn] 36#0: *1677 [lua] mlcache.lua:763: get(): callback returned an error ([postgres] connection refused) but stale value found in shm will be resurrected for 30s (resurrect_ttl), client: <IP_ADDRESS>, server: kong, request: ""
2020/01/14 14:50:09 [error] 36#0: *2123 [kong] api_helpers.lua:310 connection refused, client: <IP_ADDRESS>, server: kong_admin, request: "GET /consumers?custom_id=hv2WviZbgEKt2ZqGu HTTP/1.1", host: "kong:8001"
2020/01/14 14:50:18 [error] 36#0: *2155 [kong] api_helpers.lua:310 [key-auth] host is unreachable, client: <IP_ADDRESS>, server: kong_admin, request: "GET /services/uca-editor HTTP/1.1", host: "kong:8001"
2020/01/14 14:52:25 [error] 36#0: *2154 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: <IP_ADDRESS>, server: kong, request: "GET ", upstream: "


Breaks after modifying the list later (e.g. async fetching)

I installed the latest version from npm into my vue 3 vuetify project, tried to use the directive method just like in the docs and while it all works perfect when doing just some statically defined data like in the docs, trying to do anything a little more advanced such as fetching the list items asynchronously (or just modifying the list value) breaks the draggable element and while you can still drag, it goes back to the original form once you release the item.
Example:
const list = ref([])
setTimeout(function() {
  list.value = [
    { id: 1, title: 'Item 1'},
    { id: 2, title: 'Item 2' },
    { id: 3, title: 'Item 3'},
  ]
}, 100)

<VList
    v-draggable="[list, { }]"
  >
    <VListItem
      v-for="item in list"
      :key="item.id"
      :title="item.title"
    />
  </VList>

Drag any element and let it go, the list will still be in the same order.
One workaround is to delay rendering of the VList component using v-if="list.length" but what in case I want to update the existing list?

I'm sorry, in the directive of Vue, the bound ref value will be unpacked, so the re-copying of the ref cannot be monitored in the directive. There is no solution to this problem for the time being. You can use hooks or components first, thank you.


[Task] Harvester v1.0.0 release checklist

What's the task? Please describe.
Action items for releasing v0.3.0 & RC releases
Describe the items of the task (DoD, definition of done) you'd like.

[x] Support manual version upgrade to v1.0.0 #1665. (experimental)
[x] Support automatic upgrade from v1.0.0 to later versions. #1022 [moved to 1.0.1]
[x] Verify Rancher MCM feature with Rancher v2.6.3.
[x] Verify air-gap environment installation (release note to specify the supported scope).

[x] #1052

[x] Bump the support-bundle-kit version https://github.com/harvester/harvester/pull/1698
[x] Update the README file of the harvester v1.0.0 release
[x] Bump dependency charts:

[x] harvester-network-controller
[x] node-disk-manager
[x] harvester-upgrade-responder (optional)
[x] kubevirt v0.45.0
[x] Longhorn to v1.2.3

[x] update harvester v1.0.0 related docs https://github.com/harvester/docs/tree/v1.0 and make it as the default version

[x] Update documentation for RKE1 and RKE2 integration with the new UI.

[x] cut terrraform v1.0.0 related release https://github.com/harvester/terraform-provider-harvester/pull/21
[x] make sure the e2e test passes all the testing cases.
[x] add v1.0.0 release note.
[x] Update POC guide for v1.0.0

close in favor of the v1.0.0 release and the upgrade doc will be tracked by https://github.com/harvester/harvester/issues/1665 separately.


build: support build without git

I hereby agree to the terms of the GreptimeDB CLA
What's changed and what's your intention?
This closes https://github.com/GreptimeTeam/greptimedb/issues/3308.
However, this may cause building release sources loses metadata. I wonder if we fallback the meta loading from a file and generate that file on source release, or just use this fallback solution and wait until any issue report. cc @waynexia @shuiyisong @yurivict
Checklist

[ ]  I have written the necessary rustdoc comments.
[ ]  I have added the necessary unit tests and integration tests.
[x]  This PR does not require documentation updates.

Refer to a related PR or issue link (optional)

b064f2ced9af344294d85b5524ebb17927ab667d still fails:
[servers 0.6.0] thread 'main' panicked at /usr/ports/databases/greptimedb/work/greptimedb-b064f2ced9af344294d85b5524ebb17927ab667d/cargo-crates/build-data-0.1.5/src/lib.rs:524:44:
[servers 0.6.0] called `Result::unwrap()` on an `Err` value: "command 'git log -1 --pretty=%ct' failed: exit=1 stdout='' stderr=''"
[servers 0.6.0] stack backtrace:
[servers 0.6.0]    0: rust_begin_unwind
[servers 0.6.0]    1: core::panicking::panic_fmt
[servers 0.6.0]    2: core::result::unwrap_failed
[servers 0.6.0]    3: core::result::Result<T,E>::unwrap
[servers 0.6.0]    4: build_data::set_SOURCE_TIMESTAMP
[servers 0.6.0]    5: build_script_build::main
[servers 0.6.0]    6: core::ops::function::FnOnce::call_once
[servers 0.6.0] note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

@yurivict fixed at f320ff251e79db83cf8ee494805744c6ea280641


stop-grad on actor on imagine() function.

Hi,
While I'm looking in the imagine() function in models.py,
I wonder why the gradient from the input feature to the action output should be stopped.
(221 line of the models.py)
detach means the stop-gradient
inp = feat.detach() if self._stop_grad_actor else feat
action = policy(inp).sample()
succ = dynamics.img_step(state, action, sample=self._config.imag_sample)
You introduced the boolean variable self._stopgrad_actor so that the user can choose to stop it or not. But in my opinion, for the full gradient  from the initial state to the last step of the sequence, shouldn't the feat flow through the computation graph without the stop gradient? I just wonder why there is a stop gradient. have you tried the code without the stop gradient? What was the result like?
I'm struggling to find out the reason for it, and I hope for a good discussion!
Thanks!

It is following the way Dreamer v1/2 did. As I remember, Dreamer v1 didn't stop gradients while v2 did because using REINFORCE loss and stop gradient is more stable.
Bests Jaesik.

Thanks. I will think more on this.


Add rpath test

I rebased & pushed.

Hmm, looks like we need to brew install patchelf (or pixi global install patchelf).
At some point I want rattler-build to manage it's external tool dependencies by itself (e.g. in a tools folder somewhere on the system where patchelf, install_name_tool, git, etc. are installed if needed.

I took over! :) hope it's ok

hmm, i might have broken something on main :D will try to revert my last commit


Added snapcraft.yaml file for creating snap.

Hello I am Carla, I am part of the Ubuntu Community. I have created a snapcraft.yaml file so kurly can be installed as a snap on Ubuntu and the other Linux distributions that support snaps.
You can test the snapcraft.yaml file by running ```snapcraft`` in the root of the project.

Hey Carla,
Thank you for the PR!
Snaps are new to me; I'm familiar with the traditional apt package system; can you elaborate a little on this environment?  Is this controlled by / audited by Ubuntu or are these outside of the Canonical setup?
Very much appreciated.
David

Hey David,
You're Welcome :D.
Snaps are used/supported by many Linux distributions, there is a lot about them here:
https://snapcraft.io/
The nice thing about Snaps is that it's a zip file containing an application together with its dependencies, this means you can install them on almost any Linux distribution and version as you do not have to worry about dependencies.
Hope you get all the answers to you questions from the website above, otherwise do not hesitate to ask me :), hope I can answer :).
Carla

Thank you; I'll play with this when I get some time and see how it all fits together.
Again, very much appreciate the PR.

Hello David,
I made a blog post on how to package a Go snap and I used Kurly as and example, you can read it here:
https://carla-sella.blogspot.com/2017/07/packaging-up-go-app-as-snap-after.html
This can help you figure out how Snapcraft and Snaps work.
Bye.
Carla

Sorry for the delay Carla, I just got to trying this out and hit a roadblock very early on with my environment.  Apparently snapcraft isn't easy to find for my Fedora system.
I'll sort out issues my end then test ASAP.
Thank you for your patience, and again, my apologies.

Hi @letozaf!
I've setup an Ubuntu 16.04 environment and have attempted to run snapcraft, but it looks like I'm erroring somewhere.
Is there a specific reason you used Go 1.6?  I'm wondering if latest stable would be better?
Please advise when you get a chance.
Thank you!
David
$ snapcraft
"grade" property not specified: defaulting to "stable"
Installing build dependencies: golang-1.6-go golang-1.6-race-detector-runtime golang-1.6-src golang-go golang-race-detector-runtime golang-src
[sudo] password for peacock:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  bzr mercurial subversion
The following NEW packages will be installed:
  golang-1.6-go golang-1.6-race-detector-runtime golang-1.6-src golang-go golang-race-detector-runtime golang-src
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 27.0 MB of archives.
After this operation, 198 MB of additional disk space will be used.
Get:1 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 golang-1.6-src amd64 1.6.2-0ubuntu5~16.04.3 [6,415 kB]
Get:2 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 golang-1.6-go amd64 1.6.2-0ubuntu5~16.04.3 [20.2 MB]
Get:3 http://ca.archive.ubuntu.com/ubuntu xenial/main amd64 golang-src amd64 2:1.6-1ubuntu4 [3,066 B]
Get:4 http://ca.archive.ubuntu.com/ubuntu xenial/main amd64 golang-go amd64 2:1.6-1ubuntu4 [21.8 kB]
Get:5 http://ca.archive.ubuntu.com/ubuntu xenial/main amd64 golang-1.6-race-detector-runtime amd64 0.0+svn252922-0ubuntu1 [404 kB]
Get:6 http://ca.archive.ubuntu.com/ubuntu xenial/main amd64 golang-race-detector-runtime amd64 2:1.6-1ubuntu4 [2,854 B]
Fetched 27.0 MB in 29s (908 kB/s)
Selecting previously unselected package golang-1.6-src.
(Reading database ... 217790 files and directories currently installed.)
Preparing to unpack .../golang-1.6-src_1.6.2-0ubuntu5~16.04.3_amd64.deb ...
Unpacking golang-1.6-src (1.6.2-0ubuntu5~16.04.3) ...
Selecting previously unselected package golang-1.6-go.
Preparing to unpack .../golang-1.6-go_1.6.2-0ubuntu5~16.04.3_amd64.deb ...
Unpacking golang-1.6-go (1.6.2-0ubuntu5~16.04.3) ...
Selecting previously unselected package golang-src.
Preparing to unpack .../golang-src_2%3a1.6-1ubuntu4_amd64.deb ...
Unpacking golang-src (2:1.6-1ubuntu4) ...
Selecting previously unselected package golang-go.
Preparing to unpack .../golang-go_2%3a1.6-1ubuntu4_amd64.deb ...
Unpacking golang-go (2:1.6-1ubuntu4) ...
Selecting previously unselected package golang-1.6-race-detector-runtime.
Preparing to unpack .../golang-1.6-race-detector-runtime_0.0+svn252922-0ubuntu1_amd64.deb ...
Unpacking golang-1.6-race-detector-runtime (0.0+svn252922-0ubuntu1) ...
Selecting previously unselected package golang-race-detector-runtime.
Preparing to unpack .../golang-race-detector-runtime_2%3a1.6-1ubuntu4_amd64.deb ...
Unpacking golang-race-detector-runtime (2:1.6-1ubuntu4) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up golang-1.6-src (1.6.2-0ubuntu5~16.04.3) ...
Setting up golang-1.6-go (1.6.2-0ubuntu5~16.04.3) ...
Setting up golang-src (2:1.6-1ubuntu4) ...
Setting up golang-go (2:1.6-1ubuntu4) ...
Setting up golang-1.6-race-detector-runtime (0.0+svn252922-0ubuntu1) ...
Setting up golang-race-detector-runtime (2:1.6-1ubuntu4) ...
golang-1.6-go set to automatically installed.
golang-1.6-race-detector-runtime set to automatically installed.
golang-1.6-src set to automatically installed.
golang-go set to automatically installed.
golang-race-detector-runtime set to automatically installed.
golang-src set to automatically installed.
Preparing to pull kurly
Pulling kurly
go get -t -d ./github.com/davidjpeacock/kurly/...
Preparing to build kurly
Building kurly
go build -o /home/peacock/.ssh/kurly/parts/kurly/go/bin/kurly github.com/davidjpeacock/kurly
# github.com/davidjpeacock/kurly
github.com/davidjpeacock/kurly/options.go:141: undefined: http.ErrUseLastResponse
Command '['/bin/sh', '/tmp/tmp0px74fdg', 'go', 'build', '-o', '/home/peacock/.ssh/kurly/parts/kurly/go/bin/kurly', 'github.com/davidjpeacock/kurly']' returned non-zero exit status 2

Hi David,
Sorry for not answering yesterday, but I was away.
Yes I think you need a more recent version of go. This evening I will install Ubuntu 16.04 on a Virtual Machine and test a new yaml file modified so to use another version of go and then update my PR.

Hey Carla,
No apologies necessary. :-)
Cool cool - I'll wait for your next commit.
Thank you!
David

For Fedora there is a snapcore/snapcraft docker image and the Ubuntu developers are telling me that they are working on making snapcraft usable in Fedora.
https://hub.docker.com/r/snapcore/snapcraft/

Worked like a charm. :-)  Thank you!
:+1:

You're Welcome :D.
I can suggest you to use build.snapcraft.io (https://build.snapcraft.io/)  to automate the delivery with a few clicks.

Hey Carla,
Are you happy to volunteer to be the maintainer of the snap?
D


Update the Beam Katas Python to use the new course metadata yaml format

Update Beam Katas Python to use the new course metadata yaml format. The previous study_project.xml is now replaced with yaml configuration files.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

R: @pabloem

retest this please

retest this please

Ah that's convenient. It might make it less daunting / more convenient to add new ones? Thanks Henry!

Yeah, the new course configuration files make it more convenient to add/remove/update the contents without having to deal with one gigantic config file. Thanks to the latest updates from the JetBrains team.


Spring Boot Security: OAuth 2.0 and OpenID Connect

fixes #270

[x] Add OAuth2 Client config with defaults and custom issuer URI
[x] Default oauth2Login -> it works out of the box, without authority mapping
[x] src/main/docker/keycloak.yml
[x] patch ExceptionTransaltorIT with MockUser (same as JWT)
[x] move to mvc/security
[ ] Add CSRF handling in test (.csrf())
[ ] Add SecurityConfiguration, CORS, etc.
[ ] User Account (very close to the standalone JWT version)
[ ] Add JWT claim converter for authority mapping (as in existing JHipster)
[ ] Add JWT Resource Server (required for web services)

@pblanchardie : my suggestion would be to focus on 1 use case per PR.
I mean:

1st PR for OAuth2:

structure in JH Lite
default files like Keycloak, dependency, config, etc
1 single API for 1 option (you can choose the one you want)

then, in another PR, add another option (JWT, Opaque Token or something else)

It's better for reviews and simpler to implement I think

@pascalgrimaud yes it will be simpler for both of us, I updated the description accordingly and will remove the code for these options.

addClient simply adds dependencies and configuration for a provider, and you can add multiple ones (eg. facebook, github, google on a public app). Not sure you want to keep this this API. I can also remove it and only keep addDefault, but this one is currently session-based (stupid-simple), not JWT-based.
it works well as is, so should we proceed with SecurityConfiguration and Account related stuff in another PR?

I'd like to know how it can be tested manually ?
Do I need to generate the front part with generator-jhipster to test the redirect to Keycloak ?

I'd like to know how it can be tested manually ?
Do I need to generate the front part with generator-jhipster to test the redirect to Keycloak ?

Simply add an hello world restcontroller with 1 requestmapping which returns hello and it works like a charm :)

Simply add an hello world restcontroller with 1 requestmapping which returns hello and it works like a charm :)

Maybe missing Keycloak Docker Compose ?

Maybe missing Keycloak Docker Compose ?

yes, will add Keycloak Docker Compose.

yes, will add Keycloak Docker Compose.

@pascalgrimaud still some informative TODOs

Agree with your TODO, excepting:

Refactor with Spring Boot Security Commons -> another PR?

As the security part is complex, I'd prefer to keep all code completely separated.
The more common part we have, the more it's annoying to maintain both options at the same time.

@pascalgrimaud weird build error!

@pblanchardie : related to https://github.com/jhipster/jhipster-lite/pull/468 -> can you update your branch plz?

Sorry, I didn't have time to review this one yet
As it's an important feature, I'll try to do it, this friday.
Just be patient plz :)

No worries, and perhaps it will need some explanations as I have doubts on the better way to proceed with this one so I kept it simple for the first review.

The problem is: I never test a project with OAuth2 and backend only :-D
With the work done with Consul, I can:

generate a gateway + oauth2 with generator-jhipster
generate a microservice with consul + oauth2
add some custom code, like API, springdoc
manual tests

Sure! The current default configuration can be tested IRL by generating a JHipster client with session authentication, and adding a "Login" link to /oauth2/authorization/{registrationId} where registrationId can be keycloak or okta or whatever you set in properties, but /api/account is still missing.
So you need that I include Account-related stuff in this PR so it's fully-functional with a JHipster client?
If you want to test with a JHipster client generated with oauth2 authentication (which means a JWT client, after all), we have to add the JWT layer for client authentication, but I thought we'd leave this for another PR as it adds lots of stuff that are not mandatory if you want your app to simply work with default spring security oauth2.
JWT is an "option" (which is forced by current generator-jhipster, opinionated) as well as opaque token.
It's like the discussion in #442: abandon session and force newer stuff instead of old secure http-only cookies, if that is what people want ;) I admit that it allows us to turn off CSRF, which was a pain.
Please note that there is still no custom SecurityConfiguration to handle custom actuator endpoint and other stuff as I also wondered if you want it in this PR or not.

I managed to cover all OAuth2 configuration:

I'd like to complete your work. What do you prefer here @pblanchardie ?

cherry-pick your commit, start a new branch and close this PR ?
merge this one into a new branch oauth2 in this repo, and I can start new PR against this new branch oauth2
I commit directly in your branch (so you'll be spammed by notification)

@pascalgrimaud great work!
Feel free to to commit here if relevant, I'll be interested to follow.
I was busy these days so it's nice you could make progress here.
I'll keep my branch on fork anyway.

I didn't forget this PR.
I'll ping you as soon as I work again on this

@pblanchardie : I'll work on this branch today. I'll refresh it and start adding OAuth2 files

Hi @pascalgrimaud ! Good news thx for the update. Tell me if you need anything.

It's ready for review.
If you want to have a look plz @Bolo89 @pblanchardie
About account, I'll do this work in another PR

thanks for the review @Bolo89


Upper case / lower case in addresses

Mist wallet uses upper/lower case in the addresses for it's own purpose, but the etherscan returns all lower case. When I grep using the same address as I input, it doesn't necessarily match. Not sure how to handle this.
I should write some test cases for this (or at least verify that test cases are already doing this).

Probably closed. People will let me know if it's not.


centeredSlides + centeredSlidesBounds + slideToClickedSlide is bugged

Check that this is really a bug

[X] I confirm

Reproduction link
https://codesandbox.io/p/sandbox/swiper-react-centered-auto-forked-indc7w?file=%2Fsrc%2FApp.jsx&selection=[{"endColumn"%3A7%2C"endLineNumber"%3A32%2C"startColumn"%3A7%2C"startLineNumber"%3A32}]
Bug description
When there are insufficient slides and watch overflow is on and you click the last slide, it moves all of the slides to the other side.
If you remove centeredSlidesBounds it is working as it is supposed to, but if you enable it it behaves very wierd.
Expected Behavior
The slider should stay in place.
Actual Behavior
Moves the whole slider move to the right, but only on last slide click
Swiper version
9.2.2
Platform/Target and Browser Versions
chrome 112.0.5615.49
Validations

[X] Follow our Code of Conduct
[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
[X] Make sure this is a Swiper issue and not a framework-specific issue

Would you like to open a PR for this bug?

[ ] I'm willing to open a PR

I have the same problem.

Issue is closed because of outdated/irrelevant/not actual/needed more information/inactivity.
If this issue is still actual and reproducible for latest version of Swiper, please create new issue and fill the issue template correctly:

Clearly describe the issue including steps to reproduce when it is a bug.
Make sure you fill in the earliest version that you know has the issue.
Provide live link or JSFiddle/Codepen or website with issue


[CLOSED] Anomaly: Unable to handle arbitrary u+k <= v constraints.

 Issue by nomeata
Tuesday Apr 18, 2017 at 17:55 GMT
Originally opened as https://github.com/antalsz/hs-to-coq/issues/2

If I try to load core.v (version 8a65ab013185c3ec99751ee82f4c531c559b30cb) in coqide, it gives the error message

Anomaly: Unable to handle arbitrary u+k <= v constraints. Please report at
http://coq.inria.fr/bugs/.

as soon as the focus reaches Inductive Expr. Is something wrong with the extracted Coq or with my local Coq setup (Coq 8.6)?

 Comment by nomeata
Tuesday Apr 18, 2017 at 20:13 GMT

This patch makes the problem go away:
diff --git a/core.v b/core.v
index e808ab3..fd0e462 100644
--- a/core.v
+++ b/core.v
@@ -1533,7 +1533,7 @@ Reserved Notation "'Arg'".

 Inductive Expr : (forall b, Type) := Mk_Var : (forall {b}, (Id -> (Expr b)))
                                   |  Mk_Lit : (forall {b}, (Literal -> (Expr b)))
-                                  |  Mk_App : (forall {b}, (((Expr b)) -> (((Arg b)) -> (Expr b))))
+                                  |  Mk_App : (forall {b}, (((Expr b)) -> (((Expr b)) -> (Expr b))))
                                   |  Mk_Lam : (forall {b}, (b -> (((Expr b)) -> (Expr b))))
                                   |  Mk_Let : (forall {b}, (((Bind b)) -> (((Expr b)) -> (Expr b))))
                                   |  Mk_Case : (forall {b},

 Comment by antalsz
Tuesday Apr 18, 2017 at 20:24 GMT

That's aggravating.  My guess is it's a Coq 8.6 thing – I'm still on 8.5.  I'll upgrade and test, since we want to pin to 8.6.  This fix isn't sustainable, though, since it's to the autogenerated code.

 Comment by sweirich
Monday Jun 05, 2017 at 19:00 GMT

The issue seems to be a bug in Coq's universe polymorphism. (I don't know how to work around it though).
Why do we have the Synonym thing anyways?
Why not use this version:
Inductive Expr : forall b, Type := Mk_Var : (forall {b}, Id -> Expr b)
                                  |  Mk_Lit : (forall {b}, Literal -> Expr b)
                                  |  Mk_App : (forall {b}, (Expr b) -> (Arg b) -> Expr b)
                                  |  Mk_Lam : (forall {b}, b -> (Expr b) -> Expr b)
                                  |  Mk_Let : (forall {b}, (Bind b) -> (Expr b) -> Expr b)
                                  |  Mk_Case : (forall {b}, (Expr b) -> b -> Type_ -> (list (Alt b)) -> Expr b)
                                  |  Mk_Cast : (forall {b}, (Expr b) -> Coercion -> Expr b)
                                  |  Mk_Tick : (forall {b}, (Tickish Id) -> (Expr b) -> Expr b)
                                  |  Mk_Type : (forall {b}, Type_ -> Expr b)
                                  |  Mk_Coercion : (forall {b}, Coercion -> Expr b)
with Bind : (forall b, Type) := Mk_NonRec : (forall {b}, b -> (Expr b) -> Bind b)
                             |  Mk_Rec : (forall {b}, (list (b * (Expr b))) -> Bind b)
where "'Arg'" := Expr
and   "'Alt'" := (fun b => (AltCon * list b * Expr b)%type).

 Comment by sweirich
Tuesday Jun 06, 2017 at 12:52 GMT

Recording another solution to this problem. If we make the argument to Expr a parameter instead of an Index, and freshen the variable used in Arg we can write it this way:
Reserved Notation "'Arg'".

Inductive Expr (b : Type) : Type := Mk_Var :  Id -> Expr b
                                  |  Mk_App : (Expr b) -> (Arg b) -> Expr b
                                  |  Mk_Lam : b -> (Expr b) -> Expr b
where "'Arg'" := (Synonym Arg__raw (fun c => (Expr c)%type)).

Note that if the last line reads
where "'Arg'" := (Synonym Arg__raw (fun b=> (Expr b)%type)).

we get the (nonsense) error message:
Error: A parameter of an inductive type b is not allowed to be used as a bound variable in the type of its constructor.

@antalsz Did this message prompt you to make b an index instead of a parameter in the first place?

 Comment by antalsz
Tuesday Jun 06, 2017 at 12:59 GMT

See #3 – maybe we can just switch to a parameter!  The b vs. c thing is (a) completely ridiculous, and (b) handled in HsToCoq.ConvertHaskell.Declarations.TyCl.convertDeclarationGroup (lines 168–176, using the avoidParams local function).

 Comment by sweirich
Tuesday Jun 06, 2017 at 13:02 GMT

OK. I'll take a look.

 Comment by sweirich
Tuesday Jun 06, 2017 at 13:27 GMT

Ok, just dropping
data type arguments Expr (indices: b)
data type arguments Bind (indices: b)

from edits.txt works!
I will close this issue (and #3).


RoundedBoxView radius lost on animation

I made a switch control with two roundedboxview (rbv). The base rbv has a corner radius set to 20d, the inside view is a circle with 360 corner radius.
The animation is simple, i move the inside rbv edge to edge. And it works great.
But if i change the color of the base rbv, during the animation, the rbv lose is corner radius property and i cannot set again.
Tested on android.

First of all awesome work, never thought that the RoundedBoxView would be used to create other controls. Can you put together a sample, which demos the issue?

Hi.
I'm glad you appreciate.
Sorry for the delay but i'm really busy right now.
I made a try today with:
-a roundboxview
-an svg of a white circle
this two elements are added in a relative layout and still doesn't work.
anyway i've removed using and namespaces, you have to modify the
BoxView baseView = new BoxView() with a roundboxview to reproduce.
Hope this can help.
Have a nice day
2015-09-21 18:25 GMT+02:00 Paul P<EMAIL_ADDRESS>
First of all awesome work, never thought that the RoundedBoxView would be
used to create other controls. Can you put together a sample, which demos
the issue?
—
Reply to this email directly or view it on GitHub
https://github.com/paulpatarinski/Xamarin.Forms.Plugins/issues/59#issuecomment-142034069
.

--
Andrea Giunta
[image: Immagine in linea 1]
Microsoft Azure MVP 2015
Senior Mobile Developer @ Garoo S.r.l.
CTO @ICSoftwareSolution S.R.L.S.
Microsoft Azure Tour Owner - South & Center Italy 2013/2014

///
/// A custom switch based only on view with maincolor
///
public class CustomSwitchView : RelativeLayout
{
///
/// The base rounded view with background color equal to app maincolor
///
BoxView baseView = new BoxView()
{
WidthRequest = 50,
HeightRequest = 30,
BackgroundColor = Xamarin.Forms.Color.FromHex(Settings.MainColor),
};
    /// <summary>
    /// The toogle circle
    /// </summary>
    SvgImage toogle = Helpers.GraphicsElements.GetSvgImage("ic_dot_white",20);

    /// <summary>
    /// Bool value, if true user swicthed on, otherwise off
    /// </summary>
    bool isToogled = false;
    public bool IsToogled
    {
        get
        {
            return isToogled;
        }
        set
        {
            isToogled = value;
            ToogledChangeStatus(this);
        }
    }

    public delegate void ToggledEventHandler(object sender);
    public event ToggledEventHandler ToogledChangeStatus;

    TapGestureRecognizer tgs = new TapGestureRecognizer();

    public CustomSwitchView()
    {
        this.Children.Add(baseView,
                          Constraint.Constant(0),
                          Constraint.Constant(0));
        this.Children.Add(toogle,
                          Constraint.RelativeToView(baseView,(par,sib)=>sib.X +5),
                          Constraint.RelativeToView(baseView,(par,sib)=>sib.Y +5));
        tgs.Tapped += tgs_Tapped;
        this.toogle.GestureRecognizers.Add(tgs);
        this.baseView.GestureRecognizers.Add(tgs);
        this.GestureRecognizers.Add(tgs);
        ToogledChangeStatus += CustomSwitchView_ToogledChangeStatus;
        this.SizeChanged += (s, e) =>
        {
            ToogledChangeStatus(this);
        };

    }

    void CustomSwitchView_ToogledChangeStatus(object sender)
    {
        setTooglePosition();
        setColor();
    }

    void tgs_Tapped(object sender, EventArgs e)
    {
        animateToogle();
        isToogled = !isToogled;
        setColor();
    }

    void animateToogle()
    {
        if (isToogled)
        {
            toogle.TranslateTo(toogle.AnchorX, toogle.AnchorY,250, Easing.CubicInOut);
        }
        else
        {
            toogle.TranslateTo(baseView.Width - toogle.Width - 10, toogle.AnchorY,250, Easing.CubicInOut);
        }
    }

    void setTooglePosition()
    {
        if (isToogled)
        {
            toogle.TranslateTo(baseView.Width - toogle.Width - 10, toogle.AnchorY, 250, Easing.CubicInOut);
        }
        else
        {
            toogle.TranslateTo(toogle.AnchorX, toogle.AnchorY, 250, Easing.CubicInOut);
        }
    }

    void setColor()
    {
        Color background;
        if (isToogled)
            background= Color.FromHex(Settings.MainColor);
        else
            background = Color.FromHex(Settings.ActionBarColor);
        baseView.SetValue(BackgroundColorProperty, background);
    }
}

@andreagiunta I hacked this together quickly so it might not be exactly what you are looking for but should get you on the right track
using Xamarin.Forms;
using System.Threading.Tasks;

namespace SampleApp.Pages
{
	public class SwitchPage : ContentPage
	{
		public SwitchPage ()
		{
			var relativeLayout = new RelativeLayout () {
				VerticalOptions = LayoutOptions.Center,
				HorizontalOptions = LayoutOptions.Center
			};

			var switchControl = new RoundedBoxView.Forms.Plugin.Abstractions.RoundedBoxView {
				BackgroundColor = Color.FromHex ("#BDBDBD"),
				CornerRadius = 25,
				WidthRequest = 300,
				HeightRequest = 50
			};

			relativeLayout.Children.Add (switchControl,
				Constraint.RelativeToParent ((parent) => {
					return parent.Width * 0.05;
				}),
				Constraint.RelativeToParent ((parent) => {
					return parent.Height * 0.4;
				}));

			var switchKnob = new RoundedBoxView.Forms.Plugin.Abstractions.RoundedBoxView {
				BackgroundColor = Color.White,
				BorderColor = Color.FromHex ("#E0E0E0"),
				BorderThickness = 1,
				CornerRadius = 25,
				WidthRequest = 50,
				HeightRequest = 50
			};

			relativeLayout.Children.Add (switchKnob,
				Constraint.RelativeToParent ((parent) => {
					return parent.Width * 0.05;
				}),
				Constraint.RelativeToParent ((parent) => {
					return parent.Height * 0.4;
				}));

			switchControl.GestureRecognizers.Add (new TapGestureRecognizer (r => ToggleSwitch (switchKnob, switchControl)));

			Content = relativeLayout;
		}

		private bool _isOn = false;
		private bool _isAnimating = false;

		Rectangle _knobOffBounds;

		private async void ToggleSwitch (RoundedBoxView.Forms.Plugin.Abstractions.RoundedBoxView knob, RoundedBoxView.Forms.Plugin.Abstractions.RoundedBoxView switchControl)
		{
			if (_isAnimating)
				return;

			if (!_isOn) {
				var switchBounds = switchControl.Bounds;
				_knobOffBounds = knob.Bounds;
				var knobNewBounds = new Rectangle ((switchBounds.Width + switchBounds.X) - _knobOffBounds.Width, _knobOffBounds.Y, _knobOffBounds.Width, _knobOffBounds.Height);

				_isAnimating = true;

				var moveAnimationTask = knob.LayoutTo (knobNewBounds, 750, Easing.CubicOut);

				var colorChangeTask = Task.Delay (400).ContinueWith ((r) => {
					Device.BeginInvokeOnMainThread (() => {
						switchControl.BackgroundColor = Color.FromHex ("#FFEB3B");
					});
				});

				await Task.WhenAll (moveAnimationTask, colorChangeTask);

				_isOn = true;
				_isAnimating = false;
			} else {
				_isAnimating = true;

				var moveAnimationTask = knob.LayoutTo (_knobOffBounds, 750, Easing.CubicOut);

				var colorChangeTask = Task.Delay (400).ContinueWith ((r) => {
					Device.BeginInvokeOnMainThread (() => {
						switchControl.BackgroundColor = Color.FromHex ("#BDBDBD");
					});
				});

				await Task.WhenAll (moveAnimationTask, colorChangeTask);

				_isOn = false;
				_isAnimating = false;
			}
		}
	}
}

Thanks i'll try asap.
On this project due to timing we fixed with an svg, but know i want to know
Really appreciate it
2015-10-17 19:12 GMT+02:00 Paul P<EMAIL_ADDRESS>
@andreagiunta https://github.com/andreagiunta I hacked this together
quickly so it might not be exactly what you are looking for but should get
you on the right track
using Xamarin.Forms;
using System.Threading.Tasks;
namespace SampleApp.Pages
{
public class SwitchPage : ContentPage
{
public SwitchPage ()
{
var relativeLayout = new RelativeLayout () {
VerticalOptions = LayoutOptions.Center,
HorizontalOptions = LayoutOptions.Center
};
        var switchControl = new RoundedBoxView.Forms.Plugin.Abstractions.RoundedBoxView {
            BackgroundColor = Color.FromHex ("#BDBDBD"),
            CornerRadius = 25,
            WidthRequest = 300,
            HeightRequest = 50
        };

        relativeLayout.Children.Add (switchControl,
            Constraint.RelativeToParent ((parent) => {
                return parent.Width * 0.05;
            }),
            Constraint.RelativeToParent ((parent) => {
                return parent.Height * 0.4;
            }));

        var switchKnob = new RoundedBoxView.Forms.Plugin.Abstractions.RoundedBoxView {
            BackgroundColor = Color.White,
            BorderColor = Color.FromHex ("#E0E0E0"),
            BorderThickness = 1,
            CornerRadius = 25,
            WidthRequest = 50,
            HeightRequest = 50
        };

        relativeLayout.Children.Add (switchKnob,
            Constraint.RelativeToParent ((parent) => {
                return parent.Width * 0.05;
            }),
            Constraint.RelativeToParent ((parent) => {
                return parent.Height * 0.4;
            }));

        switchControl.GestureRecognizers.Add (new TapGestureRecognizer (r => ToggleSwitch (switchKnob, switchControl)));

        Content = relativeLayout;
    }

    private bool _isOn = false;
    private bool _isAnimating = false;

    Rectangle _knobOffBounds;

    private async void ToggleSwitch (RoundedBoxView.Forms.Plugin.Abstractions.RoundedBoxView knob, RoundedBoxView.Forms.Plugin.Abstractions.RoundedBoxView switchControl)
    {
        if (_isAnimating)
            return;

        if (!_isOn) {
            var switchBounds = switchControl.Bounds;
            _knobOffBounds = knob.Bounds;
            var knobNewBounds = new Rectangle ((switchBounds.Width + switchBounds.X) - _knobOffBounds.Width, _knobOffBounds.Y, _knobOffBounds.Width, _knobOffBounds.Height);

            _isAnimating = true;

            var moveAnimationTask = knob.LayoutTo (knobNewBounds, 750, Easing.CubicOut);

            var colorChangeTask = Task.Delay (400).ContinueWith ((r) => {
                Device.BeginInvokeOnMainThread (() => {
                    switchControl.BackgroundColor = Color.FromHex ("#FFEB3B");
                });
            });

            await Task.WhenAll (moveAnimationTask, colorChangeTask);

            _isOn = true;
            _isAnimating = false;
        } else {
            _isAnimating = true;

            var moveAnimationTask = knob.LayoutTo (_knobOffBounds, 750, Easing.CubicOut);

            var colorChangeTask = Task.Delay (400).ContinueWith ((r) => {
                Device.BeginInvokeOnMainThread (() => {
                    switchControl.BackgroundColor = Color.FromHex ("#BDBDBD");
                });
            });

            await Task.WhenAll (moveAnimationTask, colorChangeTask);

            _isOn = false;
            _isAnimating = false;
        }
    }
}

}
[image: ios simulator screen shot oct 17 2015 12 11 14 pm]
https://cloud.githubusercontent.com/assets/7964134/10560178/39a91412-74c8-11e5-9e27-4573ed578d87.png
[image: ios simulator screen shot oct 17 2015 12 11 48 pm]
https://cloud.githubusercontent.com/assets/7964134/10560181/43b4584a-74c8-11e5-889e-9d8ef8b7b43b.png
—
Reply to this email directly or view it on GitHub
https://github.com/paulpatarinski/Xamarin.Forms.Plugins/issues/59#issuecomment-148935086
.

--
Andrea Giunta
[image: Immagine in linea 1]
Microsoft Azure MVP 2015
Senior Mobile Developer @ Garoo S.r.l.
CTO @ICSoftwareSolution S.R.L.S.

I am gonna close this for now. I will reopen if needed


openconnect: 8.04 -> 8.05 (security!)

Motivation for this change
https://www.infradead.org/openconnect/changelog.html
( CVE-2019-16239 )
Things done

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

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

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)

Using this right now, FWIW :).

[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

backported in 1e724d939ae24b16cfdba98c620145bafb86e9a9


Cannot parse special characters correctly

Version:
databend-sqlalchemy 0.2.4
databend-py 0.4.2
The password cannot be parsed correctly if it contains special characters such as #, /, etc.
This appears to be due to urlparse's mechanism.
Attempting to encode special characters using urlencode will not solve this problem either.
from sqlalchemy import create_engine
engine = create_engine('databend://zhangbc:zhangbc%2F123@<IP_ADDRESS>:8000')  # encode `#` to %23
con = engine.connect()

Got
ValueError: Port could not be cast to integer value as 'zhangbc'

Thanks for your report! I will fix it as soon as possible.

thanks

Hi @zhangbc97 , I digged into this issue and not found a effective way to solve it. But you can use :
from urllib.parse import quote
user = quote(user)  # e.g. user#001
password = quote(password)  # e.g. P@ssw0rd#
url = f"{dialect}://{user}:{password}@{host}:{port}/{db}..."

can solve this problem.

thanks!


Update v2_12_0.md

Added notes for Zowe Application Framework.
Your checklist for this pull request
🚨Please review the guidelines for contributing to this repository.

[ ] If the changes in this PR is part of the next future release, make this pull request against the docs-staging branch which will be published at the next release boundary. If the changes in this PR are part of the current release, use the default base branch, master. For more information about branches, see https://github.com/zowe/docs-site/tree/master#understanding-the-doc-branches.

[ ] If this PR relates to GitHub issues in docs-site or other repositories, please list in Description, prefixed with close, fix or resolve keywords.

Description (including links to related git issues)
Please describe your pull request.
:heart:Thank you!

This was never merged and not needed now.


Switching from mysql2  to trilogy in Rails

I'm trying to integrate trilogy in a toy project I was working on with mysql2 without doing a lot of changes. Since I was using ActiveRecord to write my queries, I thought it would be nice if we could simply replace the adapter attrribute in config/database,yml from mysql2 to be trilogy, but it didn't work
.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require': Could not load the 'trilogy' Active Record adapter. Ensure that the adapter is spelled correctly in config/database.yml and that you've added the necessary adapter gem to your Gemfile. (LoadError)

So I was wondering if there is a way to add trilogy as an ActiveRecord adapter or if such feature could be supported in the future?
Process

Create a new Rails project (Rails 5, ruby 2.5, mysql2 gem)
Created a few DB models to test with using rails g model.
Added trilogy gem to the gemfile and updated Gemlock bundle update.
Updated adapter attribute in config/database.yml to be trilogy instead of mysql2.
Ran rails c

Expected result
Running Rails c should work and I can run MyModelName.connection successfully.
Current result
Rails console fails to start
.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require': Could not load the 'trilogy' Active Record adapter. Ensure that the adapter is spelled correctly in config/database.yml and that you've added the necessary adapter gem to your Gemfile. (LoadError)

Hi, and thanks for the interest!
We do indeed have an Active Record adapter that we'll soon be open-sourcing as a separate project -- we just had to get this low-level library out first. (But note it's likely to require Rails 7.0+ -- older Rails versions are progressively less likely to be supported.)

Is this adapter out yet?  Is this all a drop in replacement for mysql2?  Does it require Rails7?  I searched a bit and couldn't find anything obvious on any of this.  Thanks!

The adapter is not out yet, but we are working on it. It currently only supports Rails 7 and main. Trilogy is also still missing some things, like support for prepared statements.

I'm having the same problem on a Rails 7 project

Rails 7: Add the activerecord-trilogy-adapter to your project
Rails 7.1: The adapter is built into Rails.


adalFetch returns request and not response

Is adalFetch just supposed to return a refreshed token that I then use to send a request or does it actually send the request. While trying to implement it I'm only receiving a promise of the request that is supposed to be sent, not the response. Looking at my network traffic it seems a call to my api is made but I'm getting a 204 response.
I'm using RxJs/ajax as my fetch object.
I've looked at other issues regarding adalFetch and I'm certain that  I'm implementing the call. It's after  I make the call that I need more clarity on.

export function adalFetch(authContext, resourceGuiId, fetch, url, options) {
  return adalGetToken(authContext, resourceGuiId).then((token) => {
    const o = options || {};
    if (!o.headers) o.headers = {};
    o.headers.Authorization = `Bearer ${token}`;
    return fetch(url, o);
  });
}

is just a wrapper that set the token for you and return "your favorite fetch" ,,  window.fetch axios ....


more prior art

JSVerify is another property-based (generative) testing library for JavaScript. Its documentation lists its Arbitrary instances starting here: https://github.com/jsverify/jsverify#primitive-arbitraries
I think it would be a good (necessary but not sufficient) evaluation criteria to ensure that the Arbitrary instances provided by these generative testing libraries could be relatively easily defined in terms of the functions provided in this proposal.
edit: here's another one: fast-check

Yup, between "random number in a range", "random int in a range", and "random value from a list", it looks like all the jsverify primitives are covered.

I dunno about that. For example, it's non-trivial to get a good distribution of BigInts. You'd have to write something like this today:
BigInt(function(){
  let s = '';
  do { s += Math.floor(Math.random()*10); } while(Math.random() < 0.9);
  return s;
}())

There's plenty of ways we could make this better:

a built-in random BigInt generator with non-linear distributions (obviously)
random Boolean with given probability
random Numbers/integers with non-linear distributions
random String given a code point generator

And there's plenty of other tricky things. There's lots of design choices to be made with random strings. It's hard to pick a Date (or Temporal.PlainDateTime in modern code) that's bounded by a year/month/day. While the web platform has crypto.randomUUID(), it doesn't have one that would work with a seeded PRNG.

I don't think those are problems this proposal should aim to solve, personally.

There is no uniform distribution over the integers, but as long as you have a range that you do care about, you can get one easily. For anything else, what distribution you want will depend on your use-case pretty severely.

Yes, use cases will vary quite a bit, but I think just a few very common (parameterisable) distributions will cover the large majority of non-uniform use cases. As you know, there's precedent for this in Java, Python, and probably others if I went looking.
This is getting a bit off-topic from the original post. Maybe I should move it to #6?


[SPARK-40988][SQL][TEST] Test case for insert partition should verify value

What changes were proposed in this pull request?

This PR adds a new test to validate the partition type value while inserting the partition data using SQL query.
Why are the changes needed?

SPARK-40798 Jira will cover validating the partition type value while doing Alter partition. The same Jira will solve the validating of the partition type value while doing the insert partition. So adding a new test case for insert partition.
Does this PR introduce any user-facing change?

No, test-only.
How was this patch tested?

This PR adds only a new Test case.

thank you @rangareddy , it seems some wrong with github action. Can you rebase your branch to retry ?


nmc_nlp_lite-release: 0.0.6-1 in 'melodic/distribution.yaml' [bloom]

Increasing version of package(s) in repository nmc_nlp_lite-release to 0.0.6-1:

upstream repository: https://github.com/nmcbins/nmc_nlp_lite_ros.git
release repository: https://github.com/nmcbins/nmc_nlp_lite-release.git
distro file: melodic/distribution.yaml
bloom version: 0.9.7
previous version for package: null

Holding for sync

Thanks a lot tfoote!
What's the best/common practice from here on -- should I close this PR and fix things you pointed out, then try to release another version (0.0.7)? or is there a way to fix things in place and keep this PR?
Thanks again!

What's the best/common practice from here on -- should I close this PR and fix things you pointed out, then try to release another version (0.0.7)? or is there a way to fix things in place and keep this PR?

Yes, that's the best thing to do, especially when you make source changes.  bloom will automatically open a new PR.


Fix Nimbus Crash on Bad Config

This pull request fixes an issue where if a user submitted a topology with topology.mesos.cpu or topology.mesos.mem.mb set to an incorrect type, the Nimbus will crash. Because of this, even when run under supervision the topology with the bad config is still living in ZK and continually kills the Nimbus.
To fix this, we now make the following changes:

Check to see if topology.mesos.cpu and topology.mesos.mem.mb are of type Number. If they are not, reset them to the default.
While we're at it, we should also check to see if topology.mesos.cpu and topology.mesos.mem.mb are too low for Mesos, if they are, reset them to the default.
Add tests so that these changes (and most of the other functionality of MesosCommon) are being verified on build so that this cannot happen again.

Overall, LGTM.

@dsKarthick I think I addressed all of your comments please 👀 when you get a chance.

@DarinJ I took your advice, setting the log level for the case where the config options are not set at all to be debug (because otherwise it is very noisy). Please give it a once-over when you get some time.

:shipit:

🚢 🇮🇹

🚀

Merged


Fixing the default platform in the build plan api

This PR fixes the default platform in our api from  linux/amd64 to amd64/linux

Oh, can you update jib-build-plan CHANGELOG for the bug fix?

Yes I can work on it.Do I have to file a new PR for updating the CHANGELOG?

No, we actually do it in the same PR where we make changes. It's just that I did it for you, as you are not familiar with our repo maintenance policy.

This PR or the other one ,we were working on

Yes, because we are changing the behavior of jib-build-plan here, we should add a CHANGELOG entry in this PR.


can not retrieve nodejs log

I tried to get  consent-app nodejs log with apigeetool, however I could not retrieve logs.
I checked and changed a following codes, it is available.
app.js
// development error handler
// will print stacktrace
//if (app.get('env') === 'development') {
if (app.get('env') === 'test') {
  app.use(function(err, req, res, next) {
    res.status(err.status || 500);
    res.render('error', {
      message: err.message,
      error: err
    });
  });
}

Closing as the project has been refactored and this bug issue no longer applies - please see https://github.com/apigee/openbank#previous-versions


Sometimes etcd polling fails due to python-etcd timeout issue

Tracked upstream by https://github.com/jplana/python-etcd/issues/81

I think this is actually a dupe of #359.


--download option throws exception under python3

If the --download option is used with python3 then a exception occurs.
File "/usr/local/bin/ofxclient", line 9, in
load_entry_point('ofxclient==2.0.3', 'console_scripts', 'ofxclient')()
File "/usr/local/lib/python3.5/dist-packages/ofxclient-2.0.3-py3.5.egg/ofxclient/cli.py", line 56, in run
args.download.write(ofxdata.read())
TypeError: a bytes-like object is required, not 'str'
I fixed it locally by adding a .encode() call into the strings returned by
ofxdata.read().
However, That's not a fix for both python2&3.  I see account.py has some 2/3 support but account.download() doesn't use it.

Why isn't adding .encode() a fix for 2&3?  In Python2 the encode is basically a no-op and it is fixed in python3.

Sorry.  I missed a word or 2 and that is not very clear on what I meant.  What I should have said is that I'm not claiming this is a complete fix for all python 2/3 compatibility issues.  I've only fixed this specific instance that was throwing the exception.

I fixed it locally by adding a .encode() call into the strings returned by
ofxdata.read().

I have this exact issue and am struggling with where to implement the encode.
Could you elaborate so I could patch mine?

smithbone replied to my email directly and pointed out my issue.
I was using the pip copy not the github copy.
This issue is actually resolved
https://github.com/captin411/ofxclient/commit/60f0f49f54e6151e960c1175e8b2d0fe215774ae


Failed to install plugin

Hi, I get a "failed to install" plugin when I try to install the plugin. I see a similar issue was closed in  #26 but it is not working for me now. Linux AppImage (1.6.7).
From the console:
app.js:1 Error: Request failed, status 404
at new t (app.js:1:2030716)
at vK (app.js:1:2030908)
at app.js:1:2031587
at app.js:1:237138
at Object.next (app.js:1:237243)
at a (app.js:1:235961)

Sorry about that. Resolved!

That was fast, thanks! This is a really useful plugin.

@novakwh thank you! I have a big release for mobile users coming soon!


Compatible with IBM Blockchain Platform 2.0

Hi,
can you make this compatible with the new IBP?
Thanks!

@sandra-calvo
Not sure if this will be upgraded or not, since it is almost identical to this sample: https://github.com/IBM/fabcar-blockchain-sample
Please follow the fabcar repo for connecting to IBM Blockchain 2.0.

@sandra-calvo @horeaporutiu - so this was updated for Think to IBP2.0: https://developer.ibm.com/patterns/write-a-smart-contract-for-the-fabcarcommercial-paper-or-iks-cluster-with-saas-v2-beta-network-think/


fix(md-body): Fix typo to pass string through to createMarkup

my bad @rsnara!

Yup, I just noticed this too! Should be more careful about the PRs from now on :P


fix: throw error if non-POJO is an error

This pull request gives a better UX to a developer using nuxt. Right now, if an error is thrown and that cannot be stringified, the only thing shown is the error name —for example: TypeError—. With these changes, if the thing that is being stringified is an error, instead of just showing the name, the error is re-thrown, with an extended error message.

Hey, is there any chance we can merge this pull request? 😄

+1, we just ran into this issue in Astro as well.

+1

cc @pi0

Can this be merged? It's been almost a year now.


QR code reading not reliable

Describe the bug
When compared with the Swiss or the Dutch DCG verifier apps, VerificaC19 is error-prone and very slow in reading the QR codes when in nonoptimal circumstances.
When the QR code in frame is slightly rotated or not perfectly centred the app can take many seconds or even totally fail to read the QR code at all.
And even when it does manage to read the QR code it often (in about 1 in 5 cases from my experience) fails to read it correctly and shows the "Certificazione non valida" message.
This is a problem because in some situations (for example at the entrance of big events) it can be difficult and time consuming to frame the code correctly or retry scanning the QR code after it was wrongfully read as invalid.
Expected behaviour
The QR code gets read and verified in 1 sec. or less and independently of how the QR code is rotated, just like it happens with Verifier apps of other countries.
Steps to reproduce the issue

Tap on "Avvia Scansione"
Frame the QR at an inclination above 30°
The App will not manage to read the QR code at all or read it incorrectly with a relatively high probability

Technical details

Host Machine OS Android 10:

Uploading WhatsApp Video 2021-07-26 at 15.45.41_Trim.mp4…

Seems like they're using different libraries for QR detection.
Italian version;
Dutch version;
Doesn't look like zxing has other options to make it faster.

Hey @Signoo, I see.
The swiss version seems to be using zxing too, but it doesn't have problems handling rotated qr codes.
So maybe they did find a way to solve this problem while still using zxing.

@enricomiletto just looked a bit more into the code:
The italian version uses a wrapper built around zxing: https://github.com/journeyapps/zxing-android-embedded which doesn't seem to be customizable.
The swiss version uses zxing directly, it parses each camera frame, generates a PlanarYUVLuminanceSource which is then used by HybridBinarizer to generate the bitmap. Guess that's why the detection is faster.
It should be possible to implement the same in the italian version.

I just discovered that the app also reads other types of barcodes. If one scans the barcode on a book, for example, the app will read it and then of course show the "Certificazione non valida" message. This is because standard ZXing can read 17 different types of 1D and 2D barcodes.
This explains why the app often fails to read correctly real DCC QR codes; it's not that the app reads the QR code wrong (which is something very very unlikely to happen given the checksums and error correction in QR codes) but it "finds" a pattern inside the QR code matrix which corresponds to some other barcode standard, this of course leads to invalid data.
This is exactly the same behaviour that the Barcode Scanner app (based on ZXing) has as you can see from the screenshot below

To solve this issue, the app should exclusively look for QR codes (just like the Swiss version which also uses ZXing does) and this will solve the issue of real DCC QR codes leading to the "Certificazione non valida" message.

The cool/fun side effect of this is that you can validate DCC's that are stored in a barcode different from a QR code, for example
a Data Matrix (which is also supported by ZXing).  :-P
https://user-images.githubusercontent.com/80707578/127520234-f00aa662-00b8-406b-ad56-7074cacdf88a.mp4

@Signoo @enricomiletto thanks for reporting this issue and for videos. We're working to improve scanning experience (especially on removing scanning errors), some updates on this will come in the next version!

@astagi I tried the new update today, and the scanning definetly works much much better now.
The app now reads QR-codes that are rotated more reliably and quicker (YAY! 👏)
That said:

the app still reads non-QR types of codes (like EAN, Data Matrix ecc.) and shows the (new) "Errore di lettura" message.
In my opinion, the app should just ignore them and remain in the viewfinder screen and keep looking for QR codes.
The errore di lettura message should just be shown when the app reads a QR code that's not a DCC
This also means that the app still occasionaly (definetly way less often than before and only at specific angles) misreads a QR code as it finds a pattern matching some 1D barcode in the matrix of the QR code.
I cannot prove that this is the cause of the misread QR codes but it seems the most plausible explanation to me (given that the Barcode Scanner app has the same behaviour and that it is generally pretty difficult to misread a QR code otherwise)
The app only reads the QR code only if it's fully (all 4 edges) inside the square that's not greyed out in the viewfinder screen. I understand the need to guide the user to frame the code in a decent way, but the app shoould still be able to read the code if a minute portion of the code in not inside the "inner square"

The latest update of the app (1.0.3) has fixxed all the major issues mentioned in this GitHub issue.
The only (minor) "problem" remaining is that the app only reads the QR code when it's fully inside of the inner/not greyed out square; just a small portion of the QR code that's outside the square suffices for the app not to read it
Other apps (i've tested personally the swiss and the dutch one), while they still have a similar "square" to help the user better frame the code, still read codes if they're not inside that square.

@enricomiletto thank you for this update and sorry for my late response, I'm currently on vacation! I'm very happy to hear this, I think we can close this issue and open an "enhancement" to improve QR code reading process, WDYT?

@astagi Yes I totally agree.


New story type or option : vue standalone page

Clear and concise description of the problem
Hey 🤙 !
First, the objective of my idea : more flexibility & freedom in the redaction of the stories.
People using Histoire in my job are not all devs, far from it. Once deployed, the documentation must not only be technical, but it must also be displayed using the product designer rules, be understable by all, and, most important, stay simple.
In https://histoire.dev/guide/vue3/docs.html#documentation, we can see that Histoire provide a way to create standalone pages, that's great ! But sadly, essentialy in markdown, that's all.
Would that be possible to create standalone pages in Vue ? The result would be the same as markdown stories, but using Vue instead.
Thanks in advance for your help 😉
Suggested solution
Only a functional solution, I'm afraid :
First, the file format would be :

Markdown standalone page : Introduction.story.md (no change here)
Vue standalone page : Introduction.story.vue (here we usually starts to use the <Story> component)

And in Introduction.story.vue :
<Story> component new option :

standalone , a boolean that totally disable :

the right side panel
the "responsive" option
the "background" option
the "text direction" option
the "open in new tab" option

Alternative
No response
Additional context
I created my ideas in the discussions tab, but since I didn't have any answers, I'm trying here in the issues. If needed :

https://github.com/histoire-dev/histoire/discussions/558
https://github.com/histoire-dev/histoire/discussions/605

Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that requests the same feature to avoid creating a duplicate.

I would like this one very much.
Alternatively, a way to disable various "features" for specific stories/variants. Like "hide Source", "hide Controls", "hide Docs", etc.
I don't mind having multiple properties, so a "one-to-disable-all" is not necessary for me, as long as I can disable "all" somehow on the story/variant level.


feat: iot shadow connections

Can now use a control-plane only client to communicate to devices
Adding IoT shadow connections #53

Codecov Report

Merging #72 (0500ea8) into main (53773b2) will decrease coverage by 0.47%.
The diff coverage is 78.72%.

@@             Coverage Diff              @@
##               main      #72      +/-   ##
============================================
- Coverage     90.40%   89.93%   -0.48%
- Complexity      522      539      +17
============================================
  Files            75       77       +2
  Lines          2200     2294      +94
  Branches         94       99       +5
============================================
+ Hits           1989     2063      +74
- Misses          177      192      +15
- Partials         34       39       +5

Impacted Files
Coverage Δ

...e/philcali/device/pool/iot/ConnectionIoTModel.java
91.66% <ø> (ø)

...hilcali/device/pool/iot/ConnectionShadowModel.java
78.37% <78.37%> (ø)

...lcali/device/pool/iot/ConnectionFactoryShadow.java
80.00% <80.00%> (ø)

Continue to review full report at Codecov.

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


[SPARK-42615][CONNECT][FOLLOWUP] Fix SparkConnectAnalyzeHandler to use withActive

What changes were proposed in this pull request?
Fix SparkConnectAnalyzeHandler to use withActive.
Why are the changes needed?
Similar to #40165, SQLConf.get is necessary when transforming the proto to plans.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Existing tests.

thank you, merged into master/3.4


How to use Tensorboard Callbacks show the whole process if I fit the model for many times?

Hi
I write a loop to train a reinforcement learning model, it is like the followings:
for e in range(episodes):
model.fit(X1, np_Y, epochs=1)
because the action memory need to be generated every loop, so the "fit" function must be called once every time.
I want to print the loss curve with Tensorboard show the whole process, so I call a keras.callbacks.TensorBoard. And put it in fitting, like:model.fit(X1, np_Y, epochs=1, callbacks=[TensorBoard])
But it generate a new log file every times I call "fit". So it can't draw a curve in Tensorboard when I use tensorboard --logdir=/log_dir.
Please help me how to draw a loss curve show the whole process of all the times of the model fitting?
Thank you!

I also got this problem. Have you found any solutions so far？

@lssily
I have found it.
You can use train_on_batch instead of fit.
Thanks to Justry for his code:https://justttry.github.io/justttry.github.io/tensorboard-on-train_on_batch/

I modify the code of Tensorboard On Train_on_batch for epoch train.
My code


Updated README to disambiguate search instructions

Hi friends -
Thank you for the wonderful Ghost theme! I'm excited to make good use of it! I was initially confused by the search instructions in the README so am proposing this change to disambiguate.
Cheers,
Dean
CC @minimaluminium -- looks like the other PR I put out there got detached from the head...very odd can't figure out why :)

Thanks a lot 🙂, not sure why the previous one had an issue 🤔

Thanks a lot 🙂, not sure why the previous one had an issue 🤔


Give speed comparisons vs Stockfish

The README says "This project is for speed comparisons between the two languages".
Would you please update the README to give some speed comparisons between Pleco and Stockfish?

Elo comparison between this and Stockfish would be great too.

@ngocdaothanh @MakotoE  It looks like this project isn't maintained anymore, I've forked the repo and redeployed the crates, you can find them here:

Repo
Tandon Crate (Pleco Crate)
Tandon Engine Crate (Pleco Engine Crate)


typo in link to bug tracker

link was to http (not gcloud) issues/bug tracker

[x] I’ve reviewed the contributor guide and applied the relevant portions to this PR.

Contribution guidelines:

See our contributor guide for general expectations for PRs.
Larger or significant changes should be discussed in an issue before creating a PR.
Contributions to our repos should follow the Dart style guide and use dart format.
Most changes should add an entry to the changelog and may need to rev the pubspec package version.
Changes to packages require corresponding tests.

Note that many Dart repos have a weekly cadence for reviewing PRs - please allow for some latency before initial review feedback.

My belief is that this is sending people to the wrong repo's issue tracker


Added .eslintrc

:+1: Might be worth emailing the unified place developers mailing list to let folk know this is here now.


An error occurred. Please try again.

I created the channel for our app, and entered the required technical information, when I try to login in the demo, it shows the error, and no any log. Could you help me?
		LineAuthManager authManager = LineSdkContextManager.getSdkContext().getAuthManager();
		authManager.login(this).addFutureListener(
				new LineLoginFutureListener() {
					@Override
					public void loginComplete(LineLoginFuture future) {
						switch (future.getProgress()) {
						case SUCCESS:
							SharedPreferences settings = getSharedPreferences("lineauth", MODE_PRIVATE);
							// Store credentials to, for example, send in a webview activity to a server.
							// Developers should not have to worry about these values if they are only calling
							// APIs from the Android application.
							settings.edit()
									.putString("mid", future.getAccessToken().mid)
									.putString("accesstoken", future.getAccessToken().accessToken)
									.putString("refreshtoken", future.getAccessToken().refreshToken)
									.putLong("expire", future.getAccessToken().expire)
									.apply();
							displayCroutonOnMainThread("Logged in!", Style.INFO);
							logger.info("Login success!");
							break;
						case CANCELED:
							displayCroutonOnMainThread("Don't cancel login!", Style.ALERT);
							logger.info("Login canceled!");
							break;
						default:
							displayCroutonOnMainThread("An error occurred. Please try again.", Style.ALERT);
							logger.info("Login error!");
							break;
						}
					}
				});

even if I use my app(with my package name in the channel, and corresponding signature), the login still failed(as it goes into the default method)

I tried, web login is OK, but with the client it still failed.

@DanteAndroid
Following are most common cause for this issue.

The package name set on Developers site is incorrect
The package signature on Developers site is incorrect
The Login user you are trying is not in the developer role of your Channel

Please notice that even though you set the correct information on Developers site, it will take few minutes to be applied.

For your case it will be either 1 or 2

@GuitarSucks What if I told you these are correct? We checked and tried many times. If those are incorrect, re-create a Line account won't help.

Hey, guys, sorry to bother, but is there any ShareSDK for Line?

Hi, I've stumbled upon this problem today as well and I was able to get it to work following GuitarSucks' instructions. The note for it to take a few minutes to apply in particular was helpful.

when i use authManager.loginByAccount(this).addFutureListener(....);
it's success
but i use authManager.login(this).addFutureListener(....);
not work;
catch { [Error: Login failed] framesToPop: 1, code: '401' }

Just to mention, If these methods won't help, just try another Line developer account.


readFile/readFileSync: use the string encoding option consistently

@jkphl not sure which solution you prefer, both work the same. This is shorter and now consistent.

@jkphl friendly ping to have a look at the open PRs.
I'd like to release a v2.0.0-beta1. I'll also try to find some time to cut a new 1.5.1 release but I can't promise about it because we'll go way back in history and CI won't probably work and I lack free time.