Error preparing server: Failed to post JWS message.

Do you want to request a feature or report a bug?
Report a bug
What did you do?
Launched the official traefik image with the following docker-compose file:
---
services:
  traefik:
    container_name: traefik
    environment:
      CLOUDFLARE_EMAIL: "${EMAIL}"
      CLOUDFLARE_API_KEY: "${CLOUDFLARE_API_KEY}"
    image: traefik
    ports:
      - "80:80"
      - "8080:8080"
      - "443:443"
    restart: unless-stopped
    volumes:
      - "/var/run/docker.sock:/var/run/docker.sock:ro"
      - "${MOUNT}/traefik:/etc/traefik"
      - "${MOUNT}/certs:/etc/traefik/certs"
version: '3.3'

and launched docker-compose up traefik
What did you expect to see?
Recent versions should have patched this issue, so I expected the server to start up regardless of ACME status.
What did you see instead?
traefik        | time="2018-03-06T22:53:22Z" level=info msg="Using TOML configuration file /etc/traefik/traefik.toml"
traefik        | time="2018-03-06T22:53:22Z" level=info msg="Traefik version v1.5.3 built on 2018-02-27_02:47:04PM"
traefik        | time="2018-03-06T22:53:22Z" level=info msg="
traefik        | Stats collection is disabled.
traefik        | Help us improve Traefik by turning this feature on :)
traefik        | More details on: https://docs.traefik.io/basics/#collected-data
traefik        | "
traefik        | time="2018-03-06T22:53:22Z" level=info msg="Preparing server http &{Network: Address::80 TLS:<nil> Redirect:0x140f0d20 Auth:<nil> WhitelistSourceRange:[] Compress:false ProxyProtocol:<nil> ForwardedHeaders:0x13e48a20} with readTimeout=0s writeTimeout=0s idleTimeout=3m0s"
traefik        | time="2018-03-06T22:53:22Z" level=info msg="Preparing server https &{Network: Address::443 TLS:0x13e29c80 Redirect:<nil> Auth:<nil> WhitelistSourceRange:[] Compress:true ProxyProtocol:<nil> ForwardedHeaders:0x13e48a30} with readTimeout=0s writeTimeout=0s idleTimeout=3m0s"
traefik        | time="2018-03-06T22:53:22Z" level=info msg="Starting server on :80"
traefik        | time="2018-03-06T22:53:40Z" level=info msg="Generating ACME Account..."
traefik        | time="2018-03-06T22:55:08Z" level=info msg=Register...
traefik        | time="2018-03-06T22:55:24Z" level=error msg="Error creating TLS config: Failed to post JWS message. -> Failed to HTTP POST to https://acme-staging.api.letsencrypt.org/acme/new-reg -> Post https://acme-staging.api.letsencrypt.org/acme/new-reg: net/http: timeout awaiting response headers"
traefik        | time="2018-03-06T22:55:24Z" level=fatal msg="Error preparing server: Failed to post JWS message. -> Failed to HTTP POST to https://acme-staging.api.letsencrypt.org/acme/new-reg -> Post https://acme-staging.api.letsencrypt.org/acme/new-reg: net/http: timeout awaiting response headers"

Output of traefik version: (What version of Traefik are you using?)
Version:      v1.5.3
Codename:     cancoillotte
Go version:   go1.9.4
Built:        2018-02-27_02:47:04PM
OS/Arch:      linux/arm

What is your environment & configuration (arguments, toml, provider, platform, ...)?
defaultEntryPoints = ["http", "https"]
logLevel = "INFO"

[entryPoints]
  [entryPoints.http]
  address = ":80"
    [entryPoints.http.redirect]
    entryPoint = "https"
  [entryPoints.https]
  address = ":443"
  compress = true
    [entryPoints.https.tls]
    minVersion = "VersionTLS11"
  [entryPoints.api]
  address = ":8080"

[api]
  entryPoint = "api"

[acme]
email = "<myemail>"
storage = "/etc/traefik/certs/acme.json"
entryPoint = "https"
onHostRule = true
  [acme.dnsChallenge]
  provider = "cloudflare"

[docker]
endpoint = "unix:///var/run/docker.sock"
domain = "<mydomain>"
watch = true
exposedbydefault = false
usebindportip = true
swarmmode = false

Not much more info in the debug log:
traefik        | time="2018-03-06T23:07:07Z" level=info msg="Using TOML configuration file /etc/traefik/traefik.toml"
traefik        | time="2018-03-06T23:07:07Z" level=info msg="Traefik version v1.5.3 built on 2018-02-27_02:47:04PM"
traefik        | time="2018-03-06T23:07:07Z" level=info msg="
traefik        | Stats collection is disabled.
traefik        | Help us improve Traefik by turning this feature on :)
traefik        | More details on: https://docs.traefik.io/basics/#collected-data
traefik        | "
traefik        | time="2018-03-06T23:07:07Z" level=debug msg="Global configuration loaded {"LifeCycle":{"RequestAcceptGraceTimeout":"0s","GraceTimeOut":"10s"},"GraceTimeOut":"0s","Debug":true,"CheckNewVersion":true,"SendAnonymousUsage":false,"AccessLogsFile":"","AccessLog":null,"TraefikLogsFile":"","TraefikLog":null,"LogLevel":"DEBUG","EntryPoints":{"api":{"Network":"","Address":":8080","TLS":null,"Redirect":null,"Auth":null,"WhitelistSourceRange":null,"Compress":false,"ProxyProtocol":null,"ForwardedHeaders":{"Insecure":true,"TrustedIPs":null}},"http":{"Network":"","Address":":80","TLS":null,"Redirect":{"entryPoint":"https"},"Auth":null,"WhitelistSourceRange":null,"Compress":false,"ProxyProtocol":null,"ForwardedHeaders":{"Insecure":true,"TrustedIPs":null}},"https":{"Network":"","Address":":443","TLS":{"MinVersion":"VersionTLS11","CipherSuites":null,"Certificates":null,"ClientCAFiles":null,"ClientCA":{"Files":null,"Optional":false}},"Redirect":null,"Auth":null,"WhitelistSourceRange":null,"Compress":true,"ProxyProtocol":null,"ForwardedHeaders":{"Insecure":true,"TrustedIPs":null}}},"Cluster":null,"Constraints":[],"ACME":{"Email":"<myemail>","Domains":null,"Storage":"/etc/traefik/certs/acme.json","StorageFile":"","OnDemand":false,"OnHostRule":true,"CAServer":"","EntryPoint":"https","DNSChallenge":{"Provider":"cloudflare","DelayBeforeCheck":"0s"},"HTTPChallenge":null,"DNSProvider":"","DelayDontCheckDNS":"0s","ACMELogging":false,"TLSConfig":null},"DefaultEntryPoints":["http","https"],"ProvidersThrottleDuration":"2s","MaxIdleConnsPerHost":200,"IdleTimeout":"0s","InsecureSkipVerify":false,"RootCAs":null,"Retry":null,"HealthCheck":{"Interval":"30s"},"RespondingTimeouts":null,"ForwardingTimeouts":null,"Web":null,"Docker":{"Watch":true,"Filename":"","Constraints":null,"Trace":false,"DebugLogGeneratedTemplate":false,"Endpoint":"unix:///var/run/docker.sock","Domain":"<mydomain>","TLS":null,"ExposedByDefault":false,"UseBindPortIP":true,"SwarmMode":false},"File":null,"Marathon":null,"Consul":null,"ConsulCatalog":null,"Etcd":null,"Zookeeper":null,"Boltdb":null,"Kubernetes":null,"Mesos":null,"Eureka":null,"ECS":null,"Rancher":null,"DynamoDB":null,"ServiceFabric":null,"Rest":null,"API":{"EntryPoint":"api","Dashboard":true,"Debug":true,"CurrentConfigurations":null,"Statistics":null},"Metrics":null,"Ping":null}"
traefik        | time="2018-03-06T23:07:07Z" level=info msg="Preparing server api &{Network: Address::8080 TLS:<nil> Redirect:<nil> Auth:<nil> WhitelistSourceRange:[] Compress:false ProxyProtocol:<nil> ForwardedHeaders:0x12e7c290} with readTimeout=0s writeTimeout=0s idleTimeout=3m0s"
traefik        | time="2018-03-06T23:07:07Z" level=info msg="Preparing server http &{Network: Address::80 TLS:<nil> Redirect:0x12ee4a20 Auth:<nil> WhitelistSourceRange:[] Compress:false ProxyProtocol:<nil> ForwardedHeaders:0x12e7c270} with readTimeout=0s writeTimeout=0s idleTimeout=3m0s"
traefik        | time="2018-03-06T23:07:07Z" level=info msg="Starting server on :8080"
traefik        | time="2018-03-06T23:07:07Z" level=info msg="Preparing server https &{Network: Address::443 TLS:0x12b9fc40 Redirect:<nil> Auth:<nil> WhitelistSourceRange:[] Compress:true ProxyProtocol:<nil> ForwardedHeaders:0x12e7c280} with readTimeout=0s writeTimeout=0s idleTimeout=3m0s"
traefik        | time="2018-03-06T23:07:07Z" level=info msg="Starting server on :80"
traefik        | time="2018-03-06T23:07:19Z" level=info msg="Generating ACME Account..."
traefik        | time="2018-03-06T23:08:03Z" level=debug msg="Building ACME client..."
traefik        | time="2018-03-06T23:08:05Z" level=debug msg="Using DNS Challenge provider: cloudflare"
traefik        | time="2018-03-06T23:08:05Z" level=info msg=Register...
traefik        | time="2018-03-06T23:08:23Z" level=error msg="Error creating TLS config: Failed to post JWS message. -> Failed to HTTP POST to https://acme-v01.api.letsencrypt.org/acme/new-reg -> Post https://acme-v01.api.letsencrypt.org/acme/new-reg: net/http: timeout awaiting response headers"
traefik        | time="2018-03-06T23:08:23Z" level=fatal msg="Error preparing server: Failed to post JWS message. -> Failed to HTTP POST to https://acme-v01.api.letsencrypt.org/acme/new-reg -> Post https://acme-v01.api.letsencrypt.org/acme/new-reg: net/http: timeout awaiting response headers"

Closed by #2977.

Hi @devster31,

Recent versions should have patched this issue, so I expected the server to start up regardless of ACME status.

With this fix, Træfik will start even if you can not contact Let's Encrypt when you try to register or accept the ToS ( a miss in my previous PR ).
Your already generated certificates will continue to be exposed. But you will not be able to generate new certificate or renew expired certificates unless you restart Træfik when Let's Encrypt is up.
Do you talk about something else ?

Hi @Juliens thanks for the overview. This is the same thing I understood from the patch.
What I wanted to mention is that this allows traefik to start up but it doesn't solve the issue that acme certificates still won't be generated and it seems there's a deeper issue behind this.
In essence the first and immediate issue that traefik exits on failure is solved; however the acme section still seems (to me) to be broken. I just wanted to make sure that it's not maybe a configuration issue on my side that's still preventing traefik to correctly generating SSL certificates.

Upon further research it seems that in my case this could be caused by the library itself since using the command line tool seems to have the same issue: https://github.com/xenolf/lego/issues/496


Kits not working properly

So I have some issues with kits not working properly like bigger kits with more data. Have an example video linked
imgur
https://i.imgur.com/7WQXzY9.mp4

i believe thats how its supposed to work, mykits allows you to recreate the kit in case you have all the items of the kit in your inventory. i now see that it would be usefull to be able to create the kit even when you dont have the items, ill check it out

i believe thats how its supposed to work, mykits allows you to recreate the kit in case you have all the items of the kit in your inventory. i now see that it would be usefull to be able to create the kit even when you dont have the items, ill check it out

I have a lot of ideas and if you want to do a collab on some new updates I might be able to help. You can add me on disc if you want for further discussion. (98%)#6666

sounds great, you dont have friend requests allowed so here my discord: Paradis#4432


Is there any watcher for SkyDns?

Hi,
I was wondering that is there any watcher someone have built or thought of for SkyDNS?

I'm not aware of one, although if someone wants to contribute one I'm all for it :-)


Refactor: remove pointless generics

<P> serves no purpose in these methods beyond Object, it doesn't
affect the accepted types or the return type of the method.

References
N/A

Submitter checklist

[X] Recommended: Join WireMock Slack to get any help in #help-contributing or a project-specific channel like #wiremock-java
[X] The PR request is well described and justified, including the body and the references
[X] The PR title represents the desired changelog entry
[X] The repository's code style is followed (see the contributing guide)

@oleg-nenashev I imagine this is binary compatible, as generics are really just a compile time thing?


More fairness on the type of fat jar

Now that builds are displayed on Openshift main dashboard, we should change this log, as it references spring-boot for any kind of application (e.g. vertx, as noticed by @cescoffier).

Thanks @rhuss, I forgot ... need a vacation...

yeah, I'm already on pto, and take the freedom to pet some forgotten projects ... ;-)
happy holidays to you, see you next year ...


Configuration guide

Hi Martin,
This project is pretty cool :)
Could you please give an instruction to config this captive portal with an access point?

Hi @whyka ,
Thank you =)
If you mean install it directly on an AP... i never tried...
In fact I have only tried it on VMs.
I hope I will have more time to work on this side project in the future weeks...
Anyway I would try to answer:
I suppose that setting  IN_DEV="wlan0" in scripts/init_captive.sh should be enough to do the trick.
P.S. do not create a bridge between wlan0 and eth0. All the traffic has to be processed by iptables.

Instead if you mean how to configure it to work with an AP..
You have to set IN_DEV=<port which AP is connected to>.
Bonus if you have more then one... just put a switch and install it only on the machine that act as Gateway..
AP0 --,
AP1 ---  SWITCH ---   (GW with Captive) -- other net (or Internet)
AP2 --'

Thank you for your response,
Your answer connect AP in LAN is what I want.
I will try this configuration and contribute more for README if possible :)

@whyka You are welcome


[SKY30-223] Make links within info buttons/tooltips clickable

Overview
This PR makes it so that links within info buttons/tooltips are clickable.
This applies to:

Widgets / charts tooltips
Table column headers

This is achieved by the react-linkify library. In addition, the details tables' column info buttons now make use of the global tooltip component, so that any related changes to this are applied app-wide.
Testing instructions

Visit the map page
On the "Marine Conservation Coverage"

Verify the "30x30 Target" Info button's link is clickable

On the "Marine Conservation Protection Levels" bar charts

Verify the info buttons' links are clickable

Open the details' table

Verify that links are clickable in the table column headers' info buttons

Feature relevant tickets
SKY30-223

@SARodrigues the implementation looks good. I am worried about the fact the library is in alpha and has not been updated in 5 years.. The original library is maintained though.
Also, we are missing text links (just displaying raw links) and no styling to make the links more prominent. Can you at least add underline styling (or whatever we have in design) to the links, please?

@SARodrigues the implementation looks good. I am worried about the fact the library is in alpha and has not been updated in 5 years.. The original library is maintained though.

That caught my eye as well when looking for easy to use libraries, but I'm not sure whether going with linkify-it would be worth it here, given the use case and for time purposes.
Although this one isn't maintained, it has over 200k weekly downloads and fulfills our use case quite well and is extremely simple to use.
Going with the original would (IMHO) mean spending the time to create a custom component that re-implements functionality that already exists. Right now we'd have at very least to duplicate part of the string parsing functionality in order to support multiple links in the same string coming from Strapi, and in the event we happen to need to support have a need to support multiple child elements we'd need to duplicate even more functionality.
What do you think?

Also, we are missing text links (just displaying raw links) and no styling to make the links more prominent. Can you at least add underline styling (or whatever we have in design) to the links, please?

Added an underline to the links; the designs are a bit scarce on this one but I agree we should have it for consistency and user friendliness.

Going with the original would (IMHO) mean spending the time to create a custom component that re-implements functionality that already exists. Right now we'd have at very least to duplicate part of the string parsing functionality in order to support multiple links in the same string coming from Strapi, and in the event we happen to need to support have a need to support multiple child elements we'd need to duplicate even more functionality.

What do you think?

Yeah, I totally agree, it's not worth it. Let's stick with the wrapper. Worst case scenario is the wrapper is not too spread in the codebase so changing it shouldn't be painful.


Update 'coming soon' card design

Can't use the card component on the 'Get involved' page anymore because we are removing the functionality to use cards without links. Need a new design for this:
Acceptance criteria:
Design should have a way to show the following information for coming soon items

[x] item name
[x] item description

Done when:

[x] a proposal for the new design has been shared, reviewed and accepted by the team

Here's a concept design

Reviewed concept design and proposed some changes in the file.

@realdylanzheng I think the latest version in the file is good to go if we remove the status. The expected release is enough information. Can you make that quick change so this can move forward?

@adorayi @melaniebmn Get involved page (open in Figma) has been marked ready for dev. Thanks

Sorry, just saw this card.  A couple of questions:

My understanding is Icon and Standard Page Template are close to completion.  We have them listed in the "Contribute to our next priorities" section.  Are we actually accepting contributions for these by the time this is published? If the answer is no, I recommend they go in "Coming Soon"
Are we no longer wanting Data Table, Image and Tag in the "Contribute to next priorities" section?
Do we want to add Date Input into coming soon?


feat: validate maxTotalBalance

The total value locked (TVL) in the bridge on L1 is limited for each token type: currently, the limit is $100k for each token.
So this PR adds the validation to prevent executing a transaction if the selectetToken will pass its 'maxTotalBalance' value.
If so- the user will see the error-modal with an appropriate explanation.

[ ] Changes have been done against master branch, and PR does not conflict
[ ] New unit / functional tests have been added (whenever applicable)
[ ] Test are passing in local environment
[ ] Docs have been updated
[ ] PR title is follow the standard-version convention: <type>(optional subject): <description>, e.g: fix: minor typos in code

This change is

@CarmitKl please change the PR title to
feat: validate maxTotalBalance

@CarmitKl Please add useMaxTotalBalance hook from which you will call the API and cache the response.

:tada: This PR is included in version 0.1.0-dev.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


QueryMany: remove layer property addition to features

This is slightly expensive and should not be needed since the calling application already has to pass in a layer name.

nevermind, tests depend on this heavily.


Avoid having contended mutexes on same cacheline

CPUs have to serialise write access to a single cache line
effectively reducing level of possible parallelism. Placing
mutexes on different cache lines avoids this problem.
Most gains will be seen on NUMA servers where CPU interconnect
traffic is especially expensive
Before:
go test . -run none -bench BenchmarkFingerprintLocker
BenchmarkFingerprintLockerParallel-4   	 2000000	       932 ns/op
BenchmarkFingerprintLockerSerial-4     	30000000	        49.6 ns/op

After:
go test . -run none -bench BenchmarkFingerprintLocker
BenchmarkFingerprintLockerParallel-4   	 3000000	       569 ns/op
BenchmarkFingerprintLockerSerial-4     	30000000	        51.0 ns/op

Ha, I've been wanting to do this for a while, thanks :)

I  don't really get why there are 1024 mutexes minimum and 4096 mutexes by default, but maybe these numbers can be lowered now?

or possibly embed mutexes into metric (or wrapped metric struct) to be more cache friendly. From the look of it every time mutex is accessed in local/storage.go there is a matching access to a metric itself, so keeping then adjastent is natural then.
You'd also wont need hash + modulo anymore as every metric would have its own lock, making locking more fain grained

Embedding the locks in the metrics wouldn't work, as there can be multiple model.Metrics for the same time series flying around, and we also need to be able to lock a series according to its metric fingerprint before the series exists. Also, then we'd have millions of locks instead of just a couple - not a huge deal, but more memory wasted.
No idea about the 1024 / 4096 minimum / maximum. @beorn7 can probably say more about that.
Introducing the padding is great though.

No idea about the 1024 / 4096 minimum / maximum.

The 1024 is just a safety guard so that nobody accidentally sets a lower number and gets sever performance penalties. The rationale is that a lower number would save so little RAM that it doesn't make sense to go down there.
The 4096 default is there because it is still pretty cheap in terms of RAM but it helps a lot for high frequency ingestion with a decent number of time series. (With more time series, you need to tweak this value much higher.)
With this change, the RAM consumption increases by 8x. Still I think we should not go below 4096 by default as this is what "normal" users will need anyway.

:+1: thanks!

@beorn7 my concern wasn't RAM usage, but L1 cache size which is just 32KB

Feel free to play with lower numbers. My rationale so far is that you need high performance if you have high frequency injection and/or high number of series, resulting in a lot of concurrency. Reducing the number of FP mutexes will create more contention, which will probably kill the caching effects of using fewer locks. I could be wrong, of course.


Profiler support for Complex Data Types (json, arrays, geo...)

Is your feature request related to a problem? Please describe.
OM currently manages a set of data types for which the profiler does not compute any metrics. This is inconvinent becuase there are metrics which are useful in the context of complex data types (null counts, size for data structures, uniqueness for geo).
Describe the solution you'd like
1. Handle nullCount for all data types.
2. Add 3 more groups of metrics:

Collections (arrays, lists)
Structs (json, etc...)
Complex (Geo)

Handle each of these groups with specific sets of metrics to compute.
Describe alternatives you've considered
None...
Additional context
This is an example of profiler result for a Redshift table with complex data type columns. We can observe no metrics are collected for the SUPER, GEOMETRY and GEOGRAPHY columns.

hey @sushi30 I want to contribute in this , from where can i start. I am new .

@samarth-jain28 please connect on our slack and post a message in #contributors. That will be a more appropriate place to handle the discussion.

Hi @sushi30 , I noticed there's been no recent activity on this issue. If you're not working on it, could it be reassigned to me? I'd be happy to help.
Thanks!

@tristanhendry are you planning on contributing to this issue?


ObservableQuote Questions

in the docstring for BulletBondQuote, should the yield parameter really be called coupon_rate? Isn't the yield implied by the coupon frequency, prices, and maturity?
Implicitly, are unit payments assumed? E.g. should one interpret the price of 4.5 in the ZeroCouponQuote docstring as implying a ZCB with a very negative yield?

@kasperrisager

Yes, coupon_rate would be better. Same goes for SwapQuote.
Yes, that's how it's intended


Allow use of org keyword in queries

It would be very convenient if one could query for PRs that are outside of the current repo, say all PRs in a given organization.
One way to implement this would be that if the org: search keyword is used in a query, it would search all repos in that org.

Yes, that would be very convenient when we work across several repos at once.

Duplicate of https://github.com/microsoft/vscode-pull-request-github/issues/1458


Eliminate test flakes in recently-added heap tests

Perhaps the sift up/down ops inside the heap impl are not entirely deterministic? It seemed rather consistent in my tests, and has mostly been true in CI. And yet there were also these two failures ☹:
https://github.com/bufbuild/httplb/actions/runs/8754637253/job/24026890423
https://github.com/bufbuild/httplb/actions/runs/8755567093/job/24029992149
So this adjusts the test to not care about precise order. Instead, it only cares about distinctness of the items picked.

range over newMap

🤦, yes, that's exactly what it is. Great observation! That's why on both failed runs it doesn't show up until later in the test, and it's always between "g" and "h" (two elements in the map, so some iterations they are inserted in one order, others the opposite order).


specify compiler and package compatibilities

https://github.com/JuliaRegistries/General/pull/402

Codecov Report

Merging #41 into master will decrease coverage by 0.02%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master      #41      +/-   ##
==========================================
- Coverage   85.51%   85.48%   -0.03%
==========================================
  Files           5        5
  Lines        1049     1047       -2
==========================================
- Hits          897      895       -2
  Misses        152      152

Impacted Files
Coverage Δ

src/download.jl
66.66% <0%> (-13.34%)
:arrow_down:

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 b51afed...17d7cec. Read the comment docs.


[Fix]: Add nil check in client.Close

This PR checks if the transport is not nil before closing it in client.Close(). This avoid panics.

Fixed in v1.6.3, thanks!

Fixed in v1.6.3, thanks!

Really appreciate taking the time for a new release. Thanks alot.


[FIX] Service Account creation set in values.yaml

TL;DR
Uncomment serviceAccount and set to false to prevent chart failure.

Apologies if I'm misunderstanding but don't we also need to uncomment the serviceAccount line in values.yaml?

Yes! Forgot to unstash that change. It's already in the PR.


changes for opencl-rocm tree

added explicit dependency on AMDGPUCodeGen library
added explicit include directories fot AMDGPU target headers
removed redundant include dirs
removed trailing spaces

LGTM, please merge.


ENH: Adding border option to signal.resample_poly

Reference issue
None
What does this implement/fix?
It adds a border option to resample_poly. Before, resample_poly always assumed that data beyond the boundary was zero. I left that option as default, so the PR is completely backwards compatible. I added two more options: 'mean' assumes that the values before and after are the mean of the signal. 'edge' assumes that it follows the linear trend defined by first and last point.
Example of a x4 resampling where 'mean' and 'edge' outperform 'zero' (the old default). Black line is the original, and color points are the resampled arrays.

Additional information
I also modified some tests to cover all border options.

Can we make it support all the options of np.pad for consistency?

Making it compatible with np.pad would require the following (I am willing to do it):
'edge' to be renamed ‘linear_ramp’
'constant', ‘maximum’, 'minimum' and 'median' to be added
However, np.pad versions of 'edge', 'reflect', 'wrap' and 'symmetric' are not implementable with my approach..

I added an example, and I made the options look as np.pad as much as possible. It is failing the continuous-integration test, but I am not sure why. Otherwise, I think it is ready to merge again.

Travis looks relevant:
https://travis-ci.org/scipy/scipy/jobs/564899191#L1377

I have an implementation of upfirdn that supports various boundary extension modes shown here in the Cython code (adapted from the C code underlying PyWavelets). It seems like that could be of possible interest here? The main benefit of implementing it at the C/Cython level is avoiding the need to allocate a new array with padded values.
If there is interest, I can make a follow-up PR to this one adding additional signal extension modes to scipy.signal.upfirdn that could then be exposed via the resample_poly API.

I think that all the tests that fail now point to parts of the code I did not change
Sounds great, @grlee77 In any case, the implementation in this PR does not rely on padding. I remove the background (a constant or a line) and then I reapply it again to the output. This allows to have different border assumptions with the same Cython code that always assumes zeroes.

This allows to have different border assumptions with the same Cython code that always assumes zeroes.

If upfirdn were to support various additional boundary modes as in the link I sent, are there still scenarios where you would prefer the boundary modes implemented here instead? If so, then I would suggest proceeding with this PR and then work on the upfirdn one later or in parallel. If not, then it may make sense to make the upfirdn PR first and then collaborate on building the support in resample_poly on top of that.

If upfirdn were to support various additional boundary modes as in the link I sent, are there still scenarios where you would prefer the boundary modes implemented here instead? If so, then I would suggest proceeding with this PR and then work on the upfirdn one later or in parallel. If not, then it may make sense to make the upfirdn PR first and then collaborate on building the support in resample_poly on top of that.

It seems to me that decision is above my paygrade! However, I can see that the approach you mention is potentially more general (and probably better performing). A mode like 'line' is not implemented in the link, but I do not know how interesting it would be for the general user.

Looking at numpy.pad again, I see that various modes like median and mean are implemented here and do not overlap with those I was proposing, so I don't want to discourage continuing work here. I think we can decide in a separate issue whether to add the other modes via Cython support.

@fjhheras could you also look at #10552 ?

@grlee77 can you take a look and see if you're happy (and if this is compatible with #10552)?

Actually, on second thought isn't the mode "line" here basically equivalent to numpy.pad's 'edge'? If so it might be best to use that name instead for consistency.

I answered the clarification in the comment. The mode linear is neither np.pad's 'edge' nor 'smooth' in the figure. If is more like the linear trend remove in the image that @grlee77 attached

Update: I change the tests as suggested above.
I had to lower the tolerance for 'minimum' and 'maximum' in one of the tests

Update:

Applied PEP8 around modified code to try and remove travis errors
Removed redundant paragraph in documentation

+1 for another maintainer and I'm happy, too, so in it goes. Thanks @fjhheras !

Great! Thank you for the guidance!


Add note about authenticating in export docs

Small change in export doc: add how to authenticate for private/gated models.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.


Custom authentication header change the other headers

I'm implementing rest api authentication between VUE's vue-mc library and my Symfony rest api based on X-AUTH-TOKEN header. I could only manage the successfull authentication with Chrome's modHeaders plugin.
I fetch licences this way:
this.licences.fetch().then(() => {
    this.$message.success("Fetched!");
});

After I define getFetchHeaders in my LicenceList collection, the browser will send an OPTIONS preflight request and I got CORS error in console. The same happens if I pass options parameter with headers to fetch method call.
import {Collection} from "vue-mc";
import Licencefrom "../models/Licence";

export default class LicenceList extends Collection {
    model() {
        return Licence;
    }

    getFetchHeaders() {
        return {
            'X-AUTH-TOKEN': '29b084e5a2b290b5844e41748a327dd0aa0d87e1'
        }
    }

Console error: Access to XMLHttpRequest at 'http://api.manager.com/licences' from origin 'http://manager.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.
Request headers are the followings in this case:
Accept: application/json, text/plain, */*
Referer: http://manager.com/index.html
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36
X-AUTH-TOKEN: 29b084e5a2b290b5844e41748a327dd0aa0d87e1

If getFetchHeaders is empty or I not define it at all, the CORS policy error does not occur and the authentication is successfull if I enable the X-AUTH-TOKEN header in modHeaders Chrome plugin.
In the successful case the following headers set on the request:
Accept: application/json, text/plain, */*
Accept-Encoding: gzip, deflate
Accept-Language: hu-HU,hu;q=0.9,en-US;q=0.8,en;q=0.7
Cache-Control: no-cache
Connection: keep-alive
Host: api.manager.com
Origin: http://manager.com
Pragma: no-cache
Referer: http://manager.com/index.html
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36
X-AUTH-TOKEN: 29b084e5a2b290b5844e41748a327dd0aa0d87e1

I'd like to know why will browser send OPTIONS request instead of the normal POST if I set getFetchHeaders. Maybe it not related to this lib, but I greatly appriciate any help.
Thank you.

It was a web server related CORS issue.. I close it.


preloading history

PR for issue #978. Moved transaction history fetching to AccountListener to preload the data in the background on connecting an account. Bit of a different solution and it refetches all this data more often now, not sure if that's an issue.

ok I think that's done, also added a refetch on initial render of transaction history component


Cannot compile project on visual studio

When i compile the project on UE5 I get an error saying "compile from source". When I run it through Visual Studio, I get an error saying "MSB 3073 exited with code6".

Same problem. Running the sample project trough Visual Studio, I get 4 errors. 3 times C2039  "GetAPIkey" is no member of "UArcGISMapComponent"and MSB3073 the command "C:\Program Files\Epic Games\UE_5.1\Engine\Build\BatchFiles\Build.bat" sample_projectEditor Win64 Development -Project="D:\sample_project 5.1\sample_project.uproject" -WaitMutex -FromMsBuild" was exited with Code 6. I am running the latest version of Unreal Engine 5.1.1. I hope that I have not done anything obvious wrong.

Same problem. Running the sample project trough Visual Studio, I get 4 errors. 3 times C2039 "GetAPIkey" is no member of "UArcGISMapComponent"and MSB3073 the command "C:\Program Files\Epic Games\UE_5.1\Engine\Build\BatchFiles\Build.bat" sample_projectEditor Win64 Development -Project="D:\sample_project 5.1\sample_project.uproject" -WaitMutex -FromMsBuild" was exited with Code 6. I am running the latest version of Unreal Engine 5.1.1. I hope that I have not done anything obvious wrong.

Given the mutex error, do you have both unreal and VS opened?

close due to inactivity


Clean up some remaining things from dist changes

Codecov Report

Merging #38 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #38   +/-   ##
=======================================
  Coverage   26.43%   26.43%
=======================================
  Files           6        6
  Lines         401      401
=======================================
  Hits          106      106
  Misses        295      295

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 6835f16...5d74bfd. Read the comment docs.


Stream is not working in production

I am using Streaming and I have deployed the app on huggingface, here is the code
audio = elevenlabs_client.generate(
        text=text,
        voice="Adam",
        model="eleven_turbo_v2_5",
        stream=True,
        optimize_streaming_latency=3
    )
 stream(audio)

but for some reason getting this error in stream function
Fontconfig error: No writable cache directories
Fontconfig error: No writable cache directories
Fontconfig error: No writable cache directories
Fontconfig error: No writable cache directories
Exception in thread Thread-7 (text_to_speech_file):
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/src/app/caller_v2.py", line 35, in text_to_speech_file
    stream(audio)
  File "/usr/local/lib/python3.10/site-packages/elevenlabs/play.py", line 91, in stream
    mpv_process.stdin.flush()  # type: ignore
BrokenPipeError: [Errno 32] Broken pipe

Things to considered I have installed all the spendencies and packages it required like mpv, ffmpeg

Hello any update on this? Anyone??


Artifactory plugin not working: artifactory.server.manage.title

I tried to reinstall, disable/unable the plugin, but I keep getting the same issue. Nothing wrong in the logs so far, I installed Maven 3.3.9 and Gradle 3.4.1, Bamboo version : <IP_ADDRESS> build 51412 - 31 Oct 16

2017-03-07 20:43:01,630 INFO [http-nio-8443-exec-22] [AccessLogFilter] tpiron GET https://bamboo/admin/manageArtifactoryServers.action 429202kb
2017-03-07 20:43:01,638 WARN [http-nio-8443-exec-22] [TextProviderHelper] The first TextProvider in the ValueStack (org.jfrog.bamboo.admin.ManageArtifactoryServersAction) could not locate the message resource with key 'artifactory.server.manage.title'
2017-03-07 20:43:01,638 WARN [http-nio-8443-exec-22] [TextProviderHelper] The default value expression 'artifactory.server.manage.title' was evaluated and did not match a property. The literal value 'artifactory.server.manage.title' will be used.
2017-03-07 20:43:01,642 WARN [http-nio-8443-exec-22] [TextProviderHelper] The first TextProvider in the ValueStack (org.jfrog.bamboo.admin.ManageArtifactoryServersAction) could not locate the message resource with key 'artifactory.server.tab.title'
2017-03-07 20:43:01,642 WARN [http-nio-8443-exec-22] [TextProviderHelper] The default value expression 'artifactory.server.tab.title' was evaluated and did not match a property. The literal value 'artifactory.server.tab.title' will be used.
2017-03-07 20:43:01,644 WARN [http-nio-8443-exec-22] [TextProviderHelper] The first TextProvider in the ValueStack (org.jfrog.bamboo.admin.ManageArtifactoryServersAction) could not locate the message resource with key 'bintray.config.tab.title'
2017-03-07 20:43:01,644 WARN [http-nio-8443-exec-22] [TextProviderHelper] The default value expression 'bintray.config.tab.title' was evaluated and did not match a property. The literal value 'bintray.config.tab.title' will be used.
2017-03-07 20:43:01,672 WARN [http-nio-8443-exec-22] [TextProviderHelper] The first TextProvider in the ValueStack (org.jfrog.bamboo.admin.ExistingArtifactoryServerAction) could not locate the message resource with key 'artifactory.server.add'
2017-03-07 20:43:01,673 WARN [http-nio-8443-exec-22] [TextProviderHelper] The default value expression 'artifactory.server.add' was evaluated and did not match a property. The literal value 'artifactory.server.add' will be used.
2017-03-07 20:43:01,676 WARN [http-nio-8443-exec-22] [TextProviderHelper] The first TextProvider in the ValueStack (org.jfrog.bamboo.admin.ExistingArtifactoryServerAction) could not locate the message resource with key 'artifactory.server.manage.none'
2017-03-07 20:43:01,676 WARN [http-nio-8443-exec-22] [TextProviderHelper] The default value expression 'artifactory.server.manage.none' was evaluated and did not match a property. The literal value 'artifactory.server.manage.none' will be used.
2017-03-07 20:43:01,679 WARN [http-nio-8443-exec-22] [TextProviderHelper] The first TextProvider in the ValueStack (org.jfrog.bamboo.admin.ExistingArtifactoryServerAction) could not locate the message resource with key 'artifactory.server.delete'
2017-03-07 20:43:01,679 WARN [http-nio-8443-exec-22] [TextProviderHelper] The default value expression 'artifactory.server.delete' was evaluated and did not match a property. The literal value 'artifactory.server.delete' will be used.
2017-03-07 20:43:01,695 WARN [http-nio-8443-exec-22] [TextProviderHelper] The first TextProvider in the ValueStack (org.jfrog.bamboo.admin.ConfigureBintrayAction) could not locate the message resource with key 'bintray.config.description'
2017-03-07 20:43:01,695 WARN [http-nio-8443-exec-22] [TextProviderHelper] The default value expression 'bintray.config.description' was evaluated and did not match a property. The literal value 'bintray.config.description' will be used.
2017-03-07 20:43:01,704 WARN [http-nio-8443-exec-22] [TextProviderHelper] The first TextProvider in the ValueStack (org.jfrog.bamboo.admin.ConfigureBintrayAction) could not locate the message resource with key 'bintray.username'
2017-03-07 20:43:01,704 WARN [http-nio-8443-exec-22] [TextProviderHelper] The default value expression 'bintray.username' was evaluated and did not match a property. The literal value 'bintray.username' will be used.
2017-03-07 20:43:01,716 WARN [http-nio-8443-exec-22] [TextProviderHelper] The first TextProvider in the ValueStack (org.jfrog.bamboo.admin.ConfigureBintrayAction) could not locate the message resource with key 'bintray.apikey'
2017-03-07 20:43:01,716 WARN [http-nio-8443-exec-22] [TextProviderHelper] The default value expression 'bintray.apikey' was evaluated and did not match a property. The literal value 'bintray.apikey' will be used.
2017-03-07 20:43:01,724 WARN [http-nio-8443-exec-22] [TextProviderHelper] The first TextProvider in the ValueStack (org.jfrog.bamboo.admin.ConfigureBintrayAction) could not locate the message resource with key 'bintray.sonatype.username'
2017-03-07 20:43:01,724 WARN [http-nio-8443-exec-22] [TextProviderHelper] The default value expression 'bintray.sonatype.username' was evaluated and did not match a property. The literal value 'bintray.sonatype.username' will be used.
2017-03-07 20:43:01,731 WARN [http-nio-8443-exec-22] [TextProviderHelper] The first TextProvider in the ValueStack (org.jfrog.bamboo.admin.ConfigureBintrayAction) could not locate the message resource with key 'bintray.sonatype.password'
2017-03-07 20:43:01,731 WARN [http-nio-8443-exec-22] [TextProviderHelper] The default value expression 'bintray.sonatype.password' was evaluated and did not match a property. The literal value 'bintray.sonatype.password' will be used.
2017-03-07 20:43:02,851 INFO [http-nio-8443-exec-49] [AccessLogFilter] tpiron GET https://bamboo/rest/pref/latest/user/?expand=preferences.preference&=1488919382798 377790kb
2017-03-07 20:43:03,102 INFO [http-nio-8443-exec-65] [AccessLogFilter] tpiron GET https://bamboo/rest/supportHealthCheck/1.0/check/tpiron?=1488919382800 373808kb
2017-03-07 20:43:04,493 INFO [http-nio-8443-exec-1] [AccessLogFilter] <IP_ADDRESS> GET https://bamboo/rest/capabilities 372951kb
2017-03-07 20:43:09,594 WARN [sshd-SshClient[55f4ab1e]-nio2-thread-5] [BambooTrustedKeyServerKeyVerifier] Server at github.com/REPLACED:22 presented unverified RSA key: SHA256:REPLACED
2017-03-07 20:43:10,484 WARN [sshd-SshClient[55f4ab1e]-nio2-thread-3] [BambooTrustedKeyServerKeyVerifier] Server at github.com/REPLACED:22 presented unverified RSA key: SHA256:REPLACED
2017-03-07 20:43:11,098 WARN [sshd-SshClient[55f4ab1e]-nio2-thread-5] [BambooTrustedKeyServerKeyVerifier] Server at github.com/REPLACED:22 presented unverified RSA key: SHA256:REPLACED

@tpiron,
Which version of the Bamboo Artifactory Plugin did you install?
Did you follow the new installation/upgrade instruction available at the "Installing the Plugin" section in the Bamboo Artifactory Plug-in User Guide?

I installed all the requirements + added them in the server capabilities, except for Artifactory.
Should I still install artifactory even if I'll use one that is installed on another server ?

@tpiron,
As for your question: "Should I still install artifactory even if I'll use one that is installed on another server ?" No. The Plugin includes Artifactory server configuration, in which you configure the Artifactory details, including its URL.
My original question was which version of the Bamboo Artifactory Plugin did you try to install?
Also, please note that there are new installation instructions for version 2.0.0 or above, which do not include copying the jar manually. Which installation steps did you use?
Also, did you choose the plugin version compatible with your Bamboo version, as described in the compatibility table in the Bamboo Artifactory Plugin User Guide?

I did a fresh install, as I didn't have the Artifactory Plugin installed before.
I used the jar (Bamboo Artifactory Plugin) version 2.0.1 as I have Bamboo version <IP_ADDRESS> build 51412. (the bamboo add-ons didn't let me select 2.0.1, so I went with this link
I also tried the version 2.0.2 without success (same issue)

hey @eyalbe4, Tristan is right. I just did a quick test here and installed new Bamboo <IP_ADDRESS> and <IP_ADDRESS> instances. I went to the "Find new add-ons" page in both of them and installed the add-on v2.0.2 from there. Once the installation finished I clicked the "Get started" button and got directed to the "Artifactory Plugin Configuration" page and I see the same issue. I did manage to fix it though after restarting Bamboo altogether. Plugins cache gets cleared out upon an application restart so that might have helped to workaround the problem, but there's definitely something going on and with the latest version of the plugin.

@gobrunoo and @tpiron  Unfortunately we were unable to reproduce this issue on our environments so we will need your help to find the cause of the issue. Can you please try the following:

Install bamboo-predator-plugin, the same way the Artifactory plugin was installed (can be downloaded from here), then go to "${BAMBOO_URL}/admin/viewPredatorPlugin.action" and see if the labels and fields were rendered correctly.
In the Artifactory plugin admin page, when it is not loaded correctly, try pressing and switching between the tabs ("artifactory.server.tab.title" and "bintray.config.tab.title"). Dose it changes the way the ui look?
Please provide us with your Bamboo system information from "${BAMBOO_URL}/admin/systemInfo.action". You may remove some of the details you do not wish to expose.

@gobrunoo and @tpiron thank you very much for your help.
Unfortunately I still can't reproduce this issue and can only guess what causes this.
As @gobrunoo mentioned, it seems that the Freemarker template bad loading caused by wrong loading of the i18n file to the caches.
I have created a snapshot version which hopefully will help me to point out the problem.
In this version I did three changes:

Renamed the i18n.properties file to more unique name.
Added the i18nResolver component to the atlassian-plugin.xml file. This should expose the i18nResolver service to the plugin (which is not used, as far as I know, in the Freemarker template).
Changed the way the header of the admin loads. For example, previous header<EMAIL_ADDRESS>pageKey='artifactory.server.manage.title' /]"  will be now<EMAIL_ADDRESS>pageKey=i18n.getText('artifactory.server.manage.title') /]".

Can you please install this plugin to see if this fix the problem?
If it doesn't fix the problem, can you please let me know if the header of the page is still "artifactory.server.manage.title" or changed to "Artifactory Plugin Configuration"?
The snapshot can be found here:
https://oss.jfrog.org/artifactory/oss-snapshot-local/org/jfrog/bamboo/bamboo-artifactory-plugin/2.0.3-SNAPSHOT/bamboo-artifactory-plugin-2.0.3-20170322.141539-1.jar
The commit can be found here:
https://github.com/JFrogDev/bamboo-artifactory-plugin/commit/d3e9567923cefc860b0992a1c151846d90b371a3


added params for automl on adb

@j-martens

@parasharshah : Thanks for your contribution! The author, @rastala, has been notified to review your proposed change.

#sign-off

@j-martens: I'm sorry - only the author of this article, @rastala, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.


Update GUI demo to use new Unity UI components

Currently the demo uses the legacy GUI which can run into some repaint issues.
It would be good to implement new Unity 5 UI to demo our Leaderboard.

Looking at TSTableView for scrolling list of highscores - https://bitbucket.org/tacticsoft/tstableview


Error: server closed unexpectedly

I have problems with even start server etc. I was following instructions, and I can't make this thing to work. So here is more information:
What I want to achieve

I'm using cypress to test my html/js/css website (a basic site that is using gulp to do better optimization etc).
I was trying several ways that are described over the internet but without success
I want that this script works on Netlify too
I need a server that is running on the port 5000

What I was trying to do?
npm run deploy
Build process finished fine, but then here is an error:

start-server-and-test start cy:run
starting server using command "npm run start"
and when url "undefined" is responding
running tests using command "npm run test"
/home/bruno_afk/Dev/paveljame-site/node_modules/lazy-ass/index.js:117
throw err;
^
Error: missing url to wait on null
at lazyAssLogic (/home/bruno_afk/Dev/paveljame-site/node_modules/lazy-ass/index.js:110:14)
at lazyAss (/home/bruno_afk/Dev/paveljame-site/node_modules/lazy-ass/index.js:115:28)
at startAndTest (/home/bruno_afk/Dev/paveljame-site/node_modules/start-server-and-test/src/index.js:24:3)
at Object. (/home/bruno_afk/Dev/paveljame-site/node_modules/start-server-and-test/src/bin/start.js:13:1)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:829:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
npm ERR! Test failed.  See above for more details.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>predeploy: CI=1 npm i cypress; npm run develop; npm test
npm ERR! Exit status 1

My npm scripts
"scripts": {
        "gulp": "node_modules/.bin/gulp",
        "start-server-and-test": "node_modules/.bin/start-server-and-test",
        "start": "start-test -p 5000",
        "test": "start-server-and-test start cy:run",
        "dev": " gulp publish",
        "develop": "gulp build",
        "build": "gulp publish",
        "predeploy": "CI=1 npm i cypress; npm run develop; npm test",
        "deploy": "npm run build",
        "cy:run": "cypress run",
        "cy:open": "cypress open"
    },

node version: 10.16.0
npm version: 6.9.0
package version: 1.9.1
PopOS 19.04 (linux)

right, the url to wait on is undefined - because the utility does not know which port or url to wait for.  In your scripts I don't see how you start the server - npm run gulp? So just start the server with that command and then pass port number to the "test" like this
{
  "scripts": {
    "start": "gulp",
    "test": "star-test 5000 cy:run",
    "cy:run": "cypress run"
  }
}

Note that you don't need to say start there in "test: start-test start 5000 cy:run" because you are using the default "start" script to run the server


css filename's hash won't change when using unocss with vite-plugin-pages

Describe the bug
Follow steps:

clone repoduction repo and setup the project
pnpm build
open src/pages/other.vue file, modify text-5xl to text-6xl
rerun pnpm build

In the generated assets, the filename index.xxxxxx.css of two build remain same even the content of the file has changed.
This will cause browser to continue return same cache which is bad.
Maybe this is caused by 'unocss'.
But when I don't use vite-plugin-pages, the result is what I want.
Reproduction
https://github.com/aimergenge/reproduce-vite-plugin-pages
System Info
System:
    OS: macOS 12.4
    CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
    Memory: 47.52 MB / 8.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.15.0 - ~/.nvm/versions/node/v16.15.0/bin/node
    Yarn: 1.22.5 - ~/.yarn/bin/yarn
    npm: 8.5.5 - ~/.nvm/versions/node/v16.15.0/bin/npm
  Browsers:
    Chrome: 102.0.5005.61
    Safari: 15.5
  npmPackages:
    @vitejs/plugin-vue: ^2.3.3 => 2.3.3
    vite: ^2.9.9 => 2.9.10

Used Package Manager
pnpm
Logs
No response
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 reports the same bug to avoid creating a duplicate.
[X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

It seems to be unocss specific too, and maybe it's related to this plugin from unocss. There's also https://github.com/unocss/unocss/issues/110 that reported this too.
I can also reproduce the issue without vite-plugin-pages. I'll close this in favour of that issue.

This needs to be fixed on unocss side.
The hash is calculated from the content at this point.
https://github.com/vitejs/vite/blob/408e5a78325bd2a6ff36e83094806e371a5de4d6/packages/vite/src/node/plugins/css.ts#L504-L510
The content here is both:
html,body,#app{height:100%;margin:0;padding:0}#--unocss--{layer:__ALL__}a[data-v-5c672971]{color:#42b983}label[data-v-5c672971]{margin:0.5em;font-weight:700}code[data-v-5c672971]{background-color:#eee;padding:2px 4px;border-radius:4px;color:#304455}#app{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:center;color:#2c3e50;margin-top:60px}

So the hash is same.


mouseover event

I'm not having any luck adding a mouseover event to L.hotline:
            this.hotlineLayer = L.hotline(data, options).addTo(this.map);
            this.hotlineLayer.on('mouseover', function (event) {
                var layer = event.target;
                console.log(layer.style.color); // just testing the mouseover call
            });

You can see in my demo, http://exploringspatial.com/#demo/10, that I am able to move a bullseye icon along the L.hotline when the user hovers over the Highcharts elevation chart. Now I need to do the reverse, highlighting points on the elevation chart when the user hovers the L.hotline.
How do I implement mouseover and mouseout with L.hotline?
Also, while we sort this out, I was going to added Leaflet Labels when hovering over the elevation chart. When I tried the preliminary branch of Leaflet Labels, https://github.com/Leaflet/Leaflet.label/issues/121, it said that L.hotline was not defined. Once I removed Leaflet Labels hotline started working again.

Do you see the console.log() output at all? I believe Leaflet had a regression in one of the betas with Events on Canvas layers.
The code above should work and
hotlineLayer.on('mouseover', function(e) {
	console.log(e.latlng);
});

gives you the LatLng. But this LatLng is not one of the source values and does not contain the z value. It's the LatLng of the point where the mouse entered the path, and this is interpolated.
So you'd have to take this point and find the closest point in your list source points to get the data you need. I believe this should not be part of this plugin but should be implemented in the user code.
I was able to bind a Leaflet.label label to a hotline layer. I built the leaflet-master branch of the plugin and added the generated script just with a script tag.
Did you also build this branch of the label plugin? Maybe it's an issue with requiring the plugin as AMD modules, like you do on you site? Maybe you just have to change the dependencies there?
Hope this helps and thanks for your interest.

Thank you for the quick response. Leaflet Hotline is a really nice Leaflet plugin. I've pushed your recommendation out to http://exploringspatial.com/#demo/10, but there is nothing in the log. It feels like a z-index issue. Over the next couple of days I'll get something put together on JsFiddle and we can see if that versions works okay. My demo page is very busy, so I can certainly imagine another div interfering somehow.

I've build a demo on JSFiddle for you: https://jsfiddle.net/stevecmitchell/m18z71gc/. The mouseover events are not getting logged. Is that a bug, or is that something that I have done wrong?

I swapped out the Beta 2 with the Beta 1 and the mouseover events worked then.
For a proper comparison you have to use a canvas renderer for the normal polyline. Leaflet.Hotline does this internally. You can switch to canvas renderers globally or just set it in the options of the polyline instance

Thanks for all your help. I switched my polyline on JSFiddle to use L.canvas and Leaflet 1.0 Beta 2 and it still works (http://jsfiddle.net/stevecmitchell/mLvjx8g5/). Next, I switched the Hotline code  to use Leaflet 1.0 Beta 1, and mouseover works now (http://jsfiddle.net/stevecmitchell/m18z71gc/).  I rolled my demo site back to Leaflet 1.0 Beta 1, but that did not fix the mouseover on my Hotline demo there (http://exploringspatial.com/#demo/10). I'm going to table that issue for now since it works fine on JSFiddle. I've got to move on to Demo 11 now, a map editor, since the project that needs that is on deck. I'll revisit Leaflet Hotline soon. Several people that I've shown it to are very excited about what we can do with it. When I get free cycles I'll figure out why mouseover is not working on Demo 10.


Proposal to ditch the current dark mode and opt for a better one

Hi. I have been using Excalidraw almost exclusively whenever I need to draw, explain, or just mess around with shapes. I absolutely love it, and the fact that it's open source. But throughout the period during which I used it I quickly started noticing a lot of issues with the current "Dark Mode". Basically #2346, #3531, #3606, #4074, and #4301. I'd like to list these issues and the possible fixes for them in this proposal.
Here are my reasons:

It's super laggy on Firefox. Canvas filters are not the best in Firefox and they certainly lack the performance of, say, Chrome. Drawing a straight line using the Pen tool in Firefox with Dark Mode on runs at an average of 27 FPS, while drawing complicated circles and random shapes runs at an average of 56 FPS. (#4074 #2346)
Colours don't look that great. I draw a red line, I expect it to be red in Dark Mode, but it turns out something entirely different. Even custom hex codes don't work properly. (#3531)
Not to mention the various bugs with Safari not supporting svg invert and so on.

I dug deeper and found out about the tiny invert and hue-rotate thingy, but that just doesn't work, given the previously mentioned issues.
My proposal

First off, rename the current Dark Mode to Invert Mode, with clear warnings of what might the output and bugs be.
Then, create a new Dark Mode that only changes the colour of the controls and UI without touching the rendering canvas itself. Maybe change the background colour as well, just for the sake of consistency and user expectations. This would be a true dark mode experience that is completely lag free (I tested it!), respects browser limitations (also tested it!), and doesn't suffer any of the aforementioned issues.

I currently have Excalidraw with a custom background of the value #121212 (dark grey) that is consistent with Material Design's dark theme (which most users are familiar with), and it's quite comfortable. I didn't face any of the issues mentioned above or other issues regarding dark mode.

I'm willing to work on this, just point me in the right direction.

Hey!
I'm open to improving the current dark mode scheme 👍, with the following caveats:

We still want to keep dark background. Not only is this pretty much the point since canvas takes up 90% of your screen (or more), but the dark mode output is also often what users go for in terms of aesthetics.
We do need to rotate some colors, namely black/gray colors (or more generally, very dark colors) — question is what would the heuristic look like.
I assume there are many users who either 1) prefer current dark mode, or 2) have in-progress projects (especially long-term ones like books) where making drastic dark mode scheme changes would affect them negatively. Not sure how to handle this. I don't want to keep two dark mode schemes around (one thing is keeping the logic, another is having multiple different dark modes in the UI).

(3) also addresses your first point:

First off, rename the current Dark Mode to Invert Mode, with clear warnings of what might the output and bugs be.

If we change the dark mode, let's that in one go and not keep multiple ones. Unless you meant this as an interim solution until the rewrite is done, but I don't think current dark mode is anywhere near unusable to warrant this (well, except some of the bugs).

I currently have Excalidraw with a custom background of the value #121212 (dark grey) that is consistent with Material Design's dark theme

That's the color we're using — I believe we're following the same design document (or generally Google's).

Sorry if this is just flying over the actual issue here, but shouldn't dark mode have like... a different palette of colors? Something that looks better than whatever change excalidraw makes to the colors maybe...?
I understand the idea of translating colors into things that stay readable in dark mode without having to change the actual color code, but that makes for a weird user experience when trying to use specific colors, and I don't think this technique of rotating and inverting colors works every time.
If the changing of colors needs to be kept, and I imagine changing the palette would clash with the question you brought up with your third point, could that happen in an actual color code level? So instead of an object with a color code of #364fc7 staying with the same color code but with y'know a different color in practice:

The actual color-code could change to it's equivalent after the change:

I'm kind of only thinking here about the color issue because that's my main problem with dark mode, I don't notice any performance drops on my machine. Currently, the feature of selecting the color code you want in excalidraw is... useless in dark mode.

We still want to keep dark background. Not only is this pretty much the point since canvas takes up 90% of your screen (or more), but the dark mode output is also often what users go for in terms of aesthetics.

We do need to rotate some colors, namely black/gray colors (or more generally, very dark colors) — question is what would the heuristic look like.

There are two main use cases in mind with this, the use case in which users wish to invert an already-consumed canvas, meaning they have ongoing projects and wish to switch them from light to dark mode instantly without tinkering with colors, and users who wish to start new projects with proper dark mode.
This is the main reason I suggested keeping two modes, as completely changing the current behavior will certainly break ongoing projects. Asking users of ongoing projects to ditch them or manually transform the colours would be too much, especially in large projects. And ignoring users who wish to use a proper dark mode wouldn't be right.
With invert mode you can apply the invert and call it a day for users who wish to invert the whole thing, which achieves your first two points. With dark mode you can modify the background of the canvas to a dark colour, change the colour palette, and be done with it. This achieves your first point and removes the need for the second one.
As for @Mobuos's question, provided I understand your question correctly: I'm pretty sure you can transform the hexa to RGB and rotate (255 - value) the RGB variables to fit the new mode, but there are bigger problems with the approach. This will pretty much be slow in JS for ongoing projects, and would still produce the same output for new projects, inverted colours.

I was thinking the inversion and rotation would happen only when pressing the button to switch to dark/light mode, after that excalidraw would be simply using different colors. I really should have placed my suggestion in #3531 instead because that's all that it fixes: Typed hex codes in dark mode would show correctly without affecting anything.
I don't see how it would be slower though? Excalidraw already does the rotation in dark mode right?

It does the rotation using CSS, which is a GPU-accelerated native operation. Doing it with JS would be a ton slower, AFAICT.

Hi, just chiming in here. What I'd like from a Exalidraw dark mode:

Dark UI
Dark canvas

And on the negative side:

Please don't change my images. That's my responsibility. Currently, I avoid using images in Excalidraw, because it inverts them.
Please don't make the hex values wrong. "000000" should mean black, not white.

My plan for now is to use light mode (i.e. accurate mode), and then use a user script to achieve a dark UI and dark canvas.
All that being said, I love Excalidraw. Thank you for making it.

@dwelle

I assume there are many users who either 1) prefer current dark mode, or 2) have in-progress projects (especially long-term ones like books) where making drastic dark mode scheme changes would affect them negatively. Not sure how to handle this. I don't want to keep two dark mode schemes around (one thing is keeping the logic, another is having multiple different dark modes in the UI).

The dilemma is real. Excalidraw must sacrifice something. Currently, Excalidraw is sacrificing the accurate-dark-mode use case. The other options of sacrifice are:

The inversion use case
Simplicity of code

I recommend sacrificing simplicity of code, instead of sacrificing an important use case. In other words, I recommend sacrificing the developer's wants ("I don't want to keep two dark mode schemes around"), instead of the user's. Isn't that the proper hierarchy?
As for the UI, you could bury the accurate-dark-mode toggle here:

Hi!

Please don't change my images. That's my responsibility. Currently, I avoid using images in Excalidraw, because it inverts them.

Not something we do by choice, but due to how our dark mode work right now.
I assume you're using Safari? On other browsers that support canvas filters we selectively invert the images back (the double invert isn't 100% accurate, but for now it seems serviceable).

Please don't make the hex values wrong. "000000" should mean black, not white.

Isn't that the point of canvas-application dark mode? If we didn't, and only inverted the canvas background, then all your black/dark shapes would effectively become invisible.
Or are you suggesting that we don't touch the canvas and only invert the UI? Problem with this is that canvas covers 90% of the screen, and our goal here is for the UI to become easy on your eyes at night.
The secondary consideration is that some people want to create dark-themed drawings for whatever reasons (e.g. they publish on a dark-themed website) with minimum effort. Especially if they want to publish in both themes at the same time. If they had to manually toggle the colors to match the dark theme, that would go counter that goal.

Hi David,
Thanks for your reply!

Isn't that the point of canvas-application dark mode? If we didn't, and only inverted the canvas background, then all your black/dark shapes would effectively become invisible.

No, I use light-colored shapes on dark backgrounds. I don't need Excalidraw to modify my colors (please don't). I just need the canvas background to be dark, same with the UI. Currently, unfortunately, I can't achieve a dark canvas background and dark UI in Excalidraw without having incorrect hex colors and inverted image colors.

Or are you suggesting that we don't touch the canvas and only invert the UI?

No, and just to clarify, I'm only asking for:

Dark UI
Dark canvas (via setting its color to a dark one, not via inversion of a white canvas)
A hand-chosen default color palette that goes well with the dark canvas

And regarding the collision with inversion mode:
The accurate-dark-mode setting could be buried in the workplace settings, so that the inversion workflow would not be affected.

Maybe the change between dark/light mode should only map colors to the new palette. You could even map the colors used for shapes using the inversion currently used... That would solve the accuracy of hex codes while avoiding messing up any use-cases right?
For example, red is #FA5252, when switching to dark mode all that is needed to do is map that color to #F86769... Ideally the palette of colors available without using hex codes would have a custom mapping (a custom paletter for dark mode), but the inversion route could be the default for everything else.

You could even map the colors used for shapes using the inversion currently used...

This is a great idea. It solves part 3: "A hand-chosen default color palette that goes well with the dark canvas".

That would solve the accuracy of hex codes while avoiding messing up any use-cases right?

Unfortunately, there are two conflicting use cases:

Toggling between light and dark at a moment's notice, even in the middle of project:
The best solution for this that I know of is global inversion, at the expense of color-code accuracy.

Choosing light or dark at the beginning, for the sake of color-code accuracy:
The best solution for this that I know of is mapping the default color options in the menu to an appropriate one, and mapping the canvas background to the appropriate one. This means leaving the colors of the shapes on the canvas alone.

Regarding this discussion, I would like to explicitly choose whether I want this to be inverted or not for each element. I'm trying to use some complex SVGs that were made in illustrator, but they just don't work inverted. I think a simple flag to differentiate the inverted to a not inverted conversion would help a lot

closing in favor of https://github.com/excalidraw/excalidraw/issues/3531
Please see the latest comment summing up all the proposal, though I'm sure I've missed some: https://github.com/excalidraw/excalidraw/issues/3531#issuecomment-1406777374

Regarding this discussion, I would like to explicitly choose whether I want this to be inverted or not for each element. I'm trying to use some complex SVGs that were made in illustrator, but they just don't work inverted. I think a simple flag to differentiate the inverted to a not inverted conversion would help a lot

@michelmar we should definitely do that for SVGs 👍

Hope Dark mode doesn't handle pasted pictures, emojis. The inaccuracy of the color of the content is most troubling

This is the way, not sure why it's abandoned. Can anyone recommend another web app like excalidraw that supports this?


Tighter body checks

Y010 currently allows raise statements and assignments in __init__. Since I just stumbled about a few raise statements in typeshed, I'd like a tighter version of this check that disallows anything but ....

I allowed those because they appeared in typeshed when I wrote the check, and I assumed (possibly incorrectly) that pytype did something  useful with the raise statements.
Assignments I believe are allowed because some typeshed stubs were setting attributes in __init__ methods. If there are no instances of that left, we can tighten the check.

It seems typeshed still has a few raises left:
$ rgrep " raise " stdlib/ third_party/ | wc -l
81

typeshed will pass both Y090 and Y091 when python/typeshed#3355 gets merged. Depending on whether backwards compatibility matters for flake8-pyi they could get merged back into Y010 or be enabled by default.

I think we should make it a separate check because my understanding is that there are a few users outside of typeshed and they might be unhappy to get this new check.


[drizzle-kit] Reduce drizzle-kit bundle size

https://npmgraph.js.org/?q=drizzle-kit#zoom=h&deps=devDependencies

for now unpacked size is too much - 8.41 MB
By reducing dependencies and their weight, we will put ourselves on the path to the future of JS, as well as increase the performance of the CLI
Continuation of this issue https://github.com/drizzle-team/drizzle-kit-mirror/issues/485
bin.cjs size analyze

How to use metafile and analyze
Optimization list

https://github.com/drizzle-team/drizzle-orm/pull/2717 blocked by https://github.com/alexeyraspopov/picocolors/pull/55
https://github.com/drizzle-team/drizzle-orm/pull/2724 ready to be merged
and more SOON...

We should replace zx with something else
because it used only for non first-class feature
import envPaths from 'env-paths';
import { mkdirSync } from 'fs';
import { access, readFile } from 'fs/promises';
import { join } from 'path';
import { $ } from 'zx';

const p = envPaths('drizzle-studio', {
	suffix: '',
});

$.verbose = false;
$.cwd = p.data;
mkdirSync(p.data, { recursive: true });

export const certs = async () => {
	const res = await $`mkcert --help`.nothrow();

	// ~/.local/share/drizzle-studio
	const keyPath = join(p.data, 'localhost-key.pem');
	const certPath = join(p.data, 'localhost.pem');

	if (res.exitCode === 0) {
		try {
			await Promise.all([access(keyPath), access(certPath)]);
		} catch (e) {
			await $`mkcert localhost`.nothrow();
		}
		const [key, cert] = await Promise.all([
			readFile(keyPath, { encoding: 'utf-8' }),
			readFile(certPath, { encoding: 'utf-8' }),
		]);
		return key && cert ? { key, cert } : null;
	}
	return null;
};

certs();

<EMAIL_ADDRESS>https://npmgraph.js.org/?q=zx#deps=devDependencies
A lot of dependencies in bundle come from it

zx 7.2.2
└── yaml 2.4.2

zx 7.2.2
└─┬ node-fetch 3.3.1
├─┬ fetch-blob 3.2.0
│ └── web-streams-polyfill 3.2.1
└─┬ formdata-polyfill 4.0.10
└─┬ fetch-blob 3.2.0
└── web-streams-polyfill 3.2.1

But node-fetch also depends on it
zx 7.2.2
└─┬ globby 13.2.2
└── fast-glob 3.3.2
So we have two glob packages

And etc


Default formatter

Codecov Report

Merging #4 into master will increase coverage by 7.59%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master       #4      +/-   ##
============================================
+ Coverage     79.74%   87.34%   +7.59%
  Complexity       56       56
============================================
  Files             9        9
  Lines           158      158
============================================
+ Hits            126      138      +12
+ Misses           32       20      -12

Impacted Files
Coverage Δ
Complexity Δ

...cludes/class-field-permalink-formatter-context.php
83.33% <0%> (+8.33%)
9% <0%> (ø)
:arrow_down:

includes/formatter/class-user-formatter.php
17.64% <0%> (+17.64%)
5% <0%> (ø)
:arrow_down:

includes/formatter/class-default-formatter.php
100% <0%> (+100%)
3% <0%> (ø)
:arrow_down:

Codecov Report

Merging #4 into master will increase coverage by 7.59%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master       #4      +/-   ##
============================================
+ Coverage     79.74%   87.34%   +7.59%
  Complexity       56       56
============================================
  Files             9        9
  Lines           158      158
============================================
+ Hits            126      138      +12
+ Misses           32       20      -12

Impacted Files
Coverage Δ
Complexity Δ

...cludes/class-field-permalink-formatter-context.php
83.33% <0%> (+8.33%)
9% <0%> (ø)
:arrow_down:

includes/formatter/class-user-formatter.php
17.64% <0%> (+17.64%)
5% <0%> (ø)
:arrow_down:

includes/formatter/class-default-formatter.php
100% <0%> (+100%)
3% <0%> (ø)
:arrow_down:

Codecov Report

Merging #4 into master will increase coverage by 7.59%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master       #4      +/-   ##
============================================
+ Coverage     79.74%   87.34%   +7.59%
  Complexity       56       56
============================================
  Files             9        9
  Lines           158      158
============================================
+ Hits            126      138      +12
+ Misses           32       20      -12

Impacted Files
Coverage Δ
Complexity Δ

...cludes/class-field-permalink-formatter-context.php
83.33% <0%> (+8.33%)
9% <0%> (ø)
:arrow_down:

includes/formatter/class-user-formatter.php
17.64% <0%> (+17.64%)
5% <0%> (ø)
:arrow_down:

includes/formatter/class-default-formatter.php
100% <0%> (+100%)
3% <0%> (ø)
:arrow_down:

Codecov Report

Merging #4 into master will increase coverage by 7.59%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master       #4      +/-   ##
============================================
+ Coverage     79.74%   87.34%   +7.59%
  Complexity       56       56
============================================
  Files             9        9
  Lines           158      158
============================================
+ Hits            126      138      +12
+ Misses           32       20      -12

Impacted Files
Coverage Δ
Complexity Δ

...cludes/class-field-permalink-formatter-context.php
83.33% <0%> (+8.33%)
9% <0%> (ø)
:arrow_down:

includes/formatter/class-user-formatter.php
17.64% <0%> (+17.64%)
5% <0%> (ø)
:arrow_down:

includes/formatter/class-default-formatter.php
100% <0%> (+100%)
3% <0%> (ø)
:arrow_down:

Codecov Report

Merging #4 into master will increase coverage by 7.59%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master       #4      +/-   ##
============================================
+ Coverage     79.74%   87.34%   +7.59%
  Complexity       56       56
============================================
  Files             9        9
  Lines           158      158
============================================
+ Hits            126      138      +12
+ Misses           32       20      -12

Impacted Files
Coverage Δ
Complexity Δ

...cludes/class-field-permalink-formatter-context.php
83.33% <0%> (+8.33%)
9% <0%> (ø)
:arrow_down:

includes/formatter/class-user-formatter.php
17.64% <0%> (+17.64%)
5% <0%> (ø)
:arrow_down:

includes/formatter/class-default-formatter.php
100% <0%> (+100%)
3% <0%> (ø)
:arrow_down:

Codecov Report

Merging #4 into master will increase coverage by 7.59%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master       #4      +/-   ##
============================================
+ Coverage     79.74%   87.34%   +7.59%
  Complexity       56       56
============================================
  Files             9        9
  Lines           158      158
============================================
+ Hits            126      138      +12
+ Misses           32       20      -12

Impacted Files
Coverage Δ
Complexity Δ

...cludes/class-field-permalink-formatter-context.php
83.33% <0%> (+8.33%)
9% <0%> (ø)
:arrow_down:

includes/formatter/class-user-formatter.php
17.64% <0%> (+17.64%)
5% <0%> (ø)
:arrow_down:

includes/formatter/class-default-formatter.php
100% <0%> (+100%)
3% <0%> (ø)
:arrow_down:


Fixes #4043, raw-yaml can configure none sharding strategy.

Fixes #4043.

Pull Request Test Coverage Report for Build 1581

24 of 38 (63.16%)  changed or added relevant lines in 11 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.03%) to 65.2%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

sharding-core/sharding-core-common/src/main/java/org/apache/shardingsphere/core/yaml/constructor/construct/YamlNoneShardingStrategyConfigurationConstruct.java
1
2
50.0%

sharding-jdbc/sharding-jdbc-orchestration/src/main/java/org/apache/shardingsphere/shardingjdbc/orchestration/api/yaml/YamlOrchestrationShardingDataSourceFactory.java
1
2
50.0%

sharding-jdbc/sharding-jdbc-core/src/main/java/org/apache/shardingsphere/shardingjdbc/api/yaml/YamlShardingDataSourceFactory.java
0
4
0.0%

shardingsphere-underlying/shardingsphere-common/src/main/java/org/apache/shardingsphere/underlying/common/yaml/engine/YamlEngine.java
0
8
0.0%

Totals

Change from base Build 762:
0.03%

Covered Lines:
10919

Relevant Lines:
16747

💛  - Coveralls


Extract values from the rates array?

Hello,
I wondered if you might be able to add some documentation to show how to retrieve specific values from the 'rates' array as a sensor template or similar? Context here:
https://community.home-assistant.io/t/template-query-with-array/537252
Thanks!
James

{% set dt_required = (as_datetime((as_timestamp(now())/1800)|round(0,'floor')|int * 1800)) %}
{{ state_attr('sensor.octopus_energy_electricity_14e0453806_1900013341923_current_rate', 'rates')
          | selectattr('from', 'equalto', dt_required ) | map(attribute='rate') | first}}

This works

Glad you managed to find your answer. The timing at which the entities are updated is dependent on Home Assistant and so is out of my control. Out of curiosity, why do you need the update so accurately?

Ok Cool. Are you happy for me to close the issue?

Yes absolutely, apologies, thought I had done so.


Remove MAP_POPULATE

This may be causing slow restart times for systems with many large TSM files.
What I believe is happening at startup in these cases is that multiple goroutines
are started to load each TSM file concurrently.  The kernel appears to serialize
mmap calls from the same process so all of the goroutines end up getting blocked
on the actual mmap system call.  MAP_POPULATE instruct the kernel to pre-fault the
page table for the files and triggers read-ahead of the pages.  For larger, 2GB files,
this makes the mmap call more expensive and slower.  When there are many of these files
and calls it is possible to fill all available memory with pagecache.  In this case,
the OS will end up pre-faulting pages from one file and have to remove pages that it just
loaded from another files causing slowness.  MAP_POPULATE may also be cause much more data
to be pre-faulted than necessary.  To load a file, we just need to scan the index at the end
of the file.  MAP_POPULATE is likely causing the whole file to be loaded when it won't actually
be accessed for a while (or at all).
Might fix issue #5311.

Is this going to kill query performance because it's not reading ahead on the index?

@pauldix It should not. It will still use read-ahead, but that won't be triggered until a page is accessed.  We should test though.  How mmap and read-ahead work on different OS seems to be very complicated and changes between kernels.
I did check several other databases that use MMAP files and none use MAP_POPULATE which also leads me to believe we probably shouldn't be using it either.

@jwilder sounds good, +1

also, where's my emoji for "it's complicated"?

and where's my emoji for "shrug"?

Will be interesting to learn the impact of this.

this seems to make a significant difference in startup times. i think the only remaining slowness comes from loading the shards serially, which should be an easy thing to parallelize.

@toddboom numbers or it did't happen ;)

@pauldix i put these in the linked issue, but i'll quote the relevant portion for you:
"startups that previously took 7-10 minutes are now finishing in under a minute."
how's that sound?

@toddboom totes rad


[1.20.1] Mixin conflict with Debugify or KubeJS?

Think this is the bulk of the problem here. Fails to get past the loading stage when I installed it.
Caused by: org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException: @At("INVOKE") on
net/minecraft/class_4481::kjs$isShears with priority 1000 cannot inject into
net/minecraft/class_4481::method_9534(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;L
net/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_3965;)Lnet/minecraft/class_1269; merged by
me.kaloyankys.wilderworld.mixin.BeehiveBlockMixin with priority 1000 [PREINJECT Applicator Phase -> #kubejs:kubejs-
fabric.mixins.json:tools.shears.BlockInteractShearsMixin from mod kubejs -> Prepare Injections ->  ->
modifyExpressionValue$cbd000$kubejs$kjs$isShears(ZLnet/minecraft/class_1799;)Z -> Prepare]

Log: https://mclo.gs/zkWeG0S

Yeah the issue is you are overriding a bunch of functions in BeehiveBlockMixin.java which is a really bad idea. It means any mod that wants to use the beehive using a mixin could come into direct conflict. Generally overrides with mixins are never a good idea.


turbo run '--api' option not supported

What version of Turborepo are you using?
1.0.6
Describe the Bug
The docs describe the --api option of the 'run' command, but the CLI errors with 'unknown flag'.
Expected Behavior
Expected behaviour is unknown, this is poorly documented and I was trying things out trying to make Turborepo run on a GH action.
To Reproduce
yarn turbo run build --api="any-value-here" on any turbo starter.

Confirmed regression.


[MovieOutput] Audio buffer is written before video buffer.

When I tried recording with MovieOutput, there is occasionally some first black frames in my output video. I guess it's because the audio buffer is written before the video buffer, as mentioned here https://github.com/BradLarson/GPUImage/issues/1255
Looks like it was fix for GPUImage (Obj-C) but not for GPUImage2.
Can you please suggest what I can do to avoid this problem?

I have patched this issue and created a PR. You can get the modification from https://github.com/BradLarson/GPUImage2/pull/161 or beg @BradLarson to merge.


Add ability to SELECT literal/constant values.

I believe this is what issue #117 was trying to accomplish. The word literal cannot be used by itself as is suggested in #117 since a subsequent pull request (#166) added the LITERAL node type.
This is a slightly more powerful implementation than was suggested in #117 because it allows for column aliases, functions, and binary operations on the resulting column. All of the literal values are output as parameters so they are essentially escaped and safe.
I'm not super hot on the name literalColumn. Perhaps constant is a better name?
Below are some examples (SQL output is quoted of course, but omitted below for brevity)
Example 1
var sql=require("sql")
var query=post.select(sql.literalColumn(10))

SELECT 10 FROM post

Example 2
var query=post.select(sql.literalColumn(10).as("col1"))

SELECT 10 AS col1 FROM post

Example 3
var query=post.select(sql.literalColumn(10).plus(20))

SELECT (10 + 20) FROM post

Example 4
var query=post.select(sql.literalColumn(10).plus(20).as("col1"))

SELECT (10 + 20) AS col1 FROM post

Example 5
var query=post.select(sql.literalColumn(10).sum())

SELECT SUM(10) FROM post

I like constant better. I'm assuming this is meant to work with strings? Because the current .literal does work with all of the above examples AFAIK?

I should have been more clear that the values are actually passed as parameters. So
var query=post.select(sql.literalColumn(10))

actually produces
SELECT $1 FROM "post"

with 10 as the parameter value.
It works should work correctly with all data types. There is a test for numbers, strings and booleans.
The current literal type does not support functions like sum or plus or distinct. So
var query=post.select(post.literal(1).sum())

throws an exception.
Since literalColumn is an instance of Column you should be able to do anything that a Column can do.
The implementation I have provided is dialect agnostic, you can write
var query=post.select(sql.literalColumn(true))

and it will properly output a TRUE parameter for PostregSQL while outputting a 1 for SQLite (see the second to last test in the changed files). It seems to me that literal is useful if you need to output specific text, when you know what dialect is being targeted. The only use case I can think of is that you're trying to generate something that is not currently supported by the node-sql framework.
I have not issues with changing the name to constant if that's what everyone thinks is best.

Hey this looks awesome!  Can we fix the inconsistent whitespace issues? We try to use 2 spaces for indent here & i'd like to keep things the same.  :smile:  After that I will merge & push new version! :dancer:


Propose robotics competition as a special topics class.

This summer, we should look at making the robotics competition a special topics class in a similar vane to the fire fighting drone challenge.
During the meeting today, we established that most people would prefer for the robotics team to become a special topics class, which would be a good idea because we could have more than 4 people on the team getting credit for it, and it would be a less drastic change in the teams dynamic.
The main obstacle to this is finding a professor to be involved with it, because we'd need an actual teacher as opposed to just Dr.Guptas approval and someone to be an adviser.
To start with, we should start asking professors about what the actual process for establishing a special topics class is. A list of professors we could talk to for more information are:
Sources for info:
Dr.Sichitu (Successfully ran Fire fighting drones challenge for the last few semesters)
Dr.Lenardi (She's our faculty adviser, can provide advice and/or connections to candidates).
Senior design faculty: (they know us and have a somewhat positive opinion of us probably)
Possible people to ask to be advisers:
Dr.Livingston: Possible adviser pending on him agreeing. He's a new professor who taught ECE 455. I think he'd be a good candidate because despite his inexperience as a lecturer, he does seem like a good roboticist. Plus, a lot of the things that I saw he was working on for the class and the lab (like the robot arm, and a CLI for that robot arm), are things that we've worked on as well, so he could benefit from the class just as much as we could.
Dr.Lobaton
idk who else.

Dr. Chow, or Carlson might have some helpful insight.
On Tue, Apr 21, 2015 at 10:00 PM, Ahmed Samara<EMAIL_ADDRESS>wrote:

This summer, we should look at making the robotics competition a special
topics class in a similar vane to the fire fighting drone challenge.
During the meeting today, we established that most people would prefer for
the robotics team to become a special topics class, which would be a good
idea because we could have more than 4 people on the team getting credit
for it, and it would be a less drastic change in the teams dynamic.
The main obstacle to this is finding a professor to be involved with it,
because we'd need an actual teacher as opposed to just Dr.Guptas approval
and someone to be an adviser.
To start with, we should start asking professors about what the actual
process for establishing a special topics class is. A list of professors we
could talk to for more information are:
Sources for info:
Dr.Sichitu (Successfully ran Fire fighting drones challenge for the last
few semesters)
Dr.Lenardi (She's our faculty adviser, can provide advice and/or
connections to candidates).
Senior design faculty: (they know us and have a somewhat positive opinion
of us probably)
Possible people to ask to be advisers:
Dr.Livingston: Possible adviser pending on him agreeing. He's a new
professor who taught ECE 455. I think he'd be a good candidate because
despite his inexperience as a lecturer, he does seem like a good
roboticist. Plus, a lot of the things that I saw he was working on for the
class and the lab (like the robot arm, and a CLI for that robot arm), are
things that we've worked on as well, so he could benefit from the class
just as much as we could.
Dr.Lobaton
idk who else.
—
Reply to this email directly or view it on GitHub
https://github.com/IEEERobotics/bot2014/issues/349.

--
Thank you, and have a good day!
Sean Ketring
Electrical Engineering Undergraduate

We found this website that lays out the requirements for a special topic class.
http://oucc.ncsu.edu/course-offerings-using-special-topic-numbers
This doesn't change too much about our plan, but some noteworthy exerts.

that the experimental course be proposed as a new course with a permanent number and approved through regular College and University procedures prior to its being scheduled for a third time.

Offering a course as a special topics using an existing special topics course number does not require approval beyond the department or other internal processes for such an offering as established by the College.

I'm meeting with Dr.Sichitu (head of the fire fighting drones challenge) this week to discuss ideas and structure for the class. For now, here's a summary of our notes from the last meeting we had as a group.
Requirements for the class.

Write up a syllabus.
Grading method and class structure.

Best bet is to follow ASME. They have an adviser, they regularly write progress reports

A professor

Learning goals.

Needs to be defined for any class. This will vary, but a few things will be consistent.

Embedded Linux.
Object Oriented Programming.
Computer Vision
CAD & 3d-printing.

Things we need to figure out.

How will people register for the class?

Open registration?
Applications like in FFDC?
Requiring people to join the club for a while and then register for it the next semester.

Who will teach it?

Hopefully we can just have an adviser like ASME to report to.
We may need to get several professors (The main ECE robotics professors, Chow, Lobaton, Grant) on board to be able to make this happen.

I wrote up a rough draft of the Syllabus. It's on the drive under 'Project proposals' directory.

Earlier this week I spoke to Dr.Sichitu about ideas for the course, and he gave a lot of good advice, in particular the most important one being that he gave me a list of robotics professors who he said would be candidates for advisers.  (and more importantly, said that he would be willing to be the adviser if none of the others agreed to it).
Do you guys think it would be better to hold one big meeting with all of them, or to try and meet with them individually?
The reason I ask is because when I spoke to Dr.Livingston he expressed concern about being the only supporting professor, so it would definitely be beneficial for all of us if there was more than one professor. I don't think most professors will be willing to be on board unless we can guarantee that their time commitment will be minimal.

Individual meetings are probably easier, given that every professor has their own schedule to keep to.

When you meet with the professors individually you can explain that you are meeting with other professors and already have the backing of Dr. Sichitu for the course.
Sent from my iPhone

On May 15, 2015, at 6:39 PM, Ahmed Samara<EMAIL_ADDRESS>wrote:
Earlier this week I spoke to Dr.Sichitu about ideas for the course, and he gave a lot of good advice, in particular the most important one being that he gave me a list of robotics professors who he said would be candidates for advisers. (and more importantly, said that he would be willing to be the adviser if none of the others agreed to it).
Do you guys think it would be better to hold one big meeting with all of them, or to try and meet with them individually?
The reason I ask is because when I spoke to Dr.Livingston he expressed concern about being the only supporting professor, so it would definitely be beneficial for all of us if there was more than one professor. I don't think most professors will be willing to be on board unless we can guarantee that their time commitment will be minimal.
—
Reply to this email directly or view it on GitHub.

Dr.Grant said no, Dr.Lobaton said no, Dr.Chow is unresponsive.  I think we may have to get Sichitiu.

Dr.Gupta said that she would be willing to!
We need to re-edit our syllabus and figure out if we want to do this in the Fall or Spring