Encountering strange build stack trace when running go build

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?
Go version go1.6.3 darwin/amd64

What operating system and processor architecture are you using (go env)?

GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/zg/work"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.6.3/libexec"
GOTOOLDIR="/usr/local/Cellar/go/1.6.3/libexec/pkg/tool/darwin_amd64"
GO15VENDOREXPERIMENT="1"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fno-common"
CXX="clang++"
CGO_ENABLED="1"

What did you do?
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.

I tried to run go build gitHub.com/sn/service/router and a huge stack trace spit out. After running the command again, it was successful without any issues.

What did you expect to see?
I expected to see the build succeed without any issues on the internals of Go itself.

What did you see instead?
I saw a stack trace that was unrecognizable.

Is there some kind of caching mechanism involved that has to be cleared? When I run go clean and then try doing go build again, things build fine.
Here is the stack trace:
$ go clean && go test github.com/sn/service/router | tee out
# testmain
fatal error: unexpected signal during runtime execution
[signal 0xb code=0x1 addr=0x14233b9aa4e2 pc=0xf47b]

runtime stack:
runtime.throw(0x2c4920, 0x2a)
        /usr/local/Cellar/go/1.6.3/libexec/src/runtime/panic.go:547 +0x90
runtime.sigpanic()
        /usr/local/Cellar/go/1.6.3/libexec/src/runtime/sigpanic_unix.go:12 +0x5a
runtime.unlock(0x3a70a0)
        /usr/local/Cellar/go/1.6.3/libexec/src/runtime/lock_sema.go:107 +0x14b
runtime.(*mheap).alloc_m(0x3a70a0, 0x1, 0x40000000012, 0x71fff0)
        /usr/local/Cellar/go/1.6.3/libexec/src/runtime/mheap.go:492 +0x314
runtime.(*mheap).alloc.func1()
        /usr/local/Cellar/go/1.6.3/libexec/src/runtime/mheap.go:502 +0x41
runtime.systemstack(0xc820039e58)
        /usr/local/Cellar/go/1.6.3/libexec/src/runtime/asm_amd64.s:307 +0xab
runtime.(*mheap).alloc(0x3a70a0, 0x1, 0x10000000012, 0xf11f)
        /usr/local/Cellar/go/1.6.3/libexec/src/runtime/mheap.go:503 +0x63
runtime.(*mcentral).grow(0x3a8b50, 0x0)
        /usr/local/Cellar/go/1.6.3/libexec/src/runtime/mcentral.go:209 +0x93
runtime.(*mcentral).cacheSpan(0x3a8b50, 0x71fff0)
        /usr/local/Cellar/go/1.6.3/libexec/src/runtime/mcentral.go:89 +0x47d
runtime.(*mcache).refill(0x402000, 0xc800000012, 0x71fff0)
        /usr/local/Cellar/go/1.6.3/libexec/src/runtime/mcache.go:119 +0xcc
runtime.mallocgc.func2()
        /usr/local/Cellar/go/1.6.3/libexec/src/runtime/malloc.go:642 +0x2b
runtime.systemstack(0xc82001d500)
        /usr/local/Cellar/go/1.6.3/libexec/src/runtime/asm_amd64.s:291 +0x79
runtime.mstart()
        /usr/local/Cellar/go/1.6.3/libexec/src/runtime/proc.go:1051

goroutine 1 [running]:
runtime.systemstack_switch()
        /usr/local/Cellar/go/1.6.3/libexec/src/runtime/asm_amd64.s:245 fp=0xc82003e9d0 sp=0xc82003e9c8
runtime.mallocgc(0x120, 0x25c4c0, 0xc800000000, 0xc820072240)
        /usr/local/Cellar/go/1.6.3/libexec/src/runtime/malloc.go:643 +0x869 fp=0xc82003eaa8 sp=0xc82003e9d0
runtime.newarray(0x25c4c0, 0x6, 0x152a68)
        /usr/local/Cellar/go/1.6.3/libexec/src/runtime/malloc.go:798 +0xc9 fp=0xc82003eae8 sp=0xc82003eaa8
runtime.makeslice(0x1e67a0, 0x6, 0x6, 0x0, 0x0, 0x0)
        /usr/local/Cellar/go/1.6.3/libexec/src/runtime/slice.go:32 +0x165 fp=0xc82003eb38 sp=0xc82003eae8
cmd/link/internal/ld.readsym(0xc820072240, 0xc82379db00, 0xc821925fe0, 0x7, 0xc8237a4c80, 0x45)
        /usr/local/Cellar/go/1.6.3/libexec/src/cmd/link/internal/ld/objfile.go:239 +0xba6 fp=0xc82003ef80 sp=0xc82003eb38
cmd/link/internal/ld.ldobjfile(0xc820072240, 0xc82379db00, 0xc821925fe0, 0x7, 0x8e007, 0xc8237a4c80, 0x45)
        /usr/local/Cellar/go/1.6.3/libexec/src/cmd/link/internal/ld/objfile.go:147 +0xa62 fp=0xc82003f190 sp=0xc82003ef80
cmd/link/internal/ld.ldobj(0xc82379db00, 0xc821925fe0, 0x7, 0x8e030, 0xc8237a4c80, 0x45, 0xc821919ac0, 0x3d, 0x1, 0x0)
        /usr/local/Cellar/go/1.6.3/libexec/src/cmd/link/internal/ld/lib.go:1351 +0x1569 fp=0xc82003f400 sp=0xc82003f190
cmd/link/internal/ld.objfile(0xc820abca10)
        /usr/local/Cellar/go/1.6.3/libexec/src/cmd/link/internal/ld/lib.go:847 +0x10d9 fp=0xc82003f710 sp=0xc82003f400
cmd/link/internal/ld.loadlib()
        /usr/local/Cellar/go/1.6.3/libexec/src/cmd/link/internal/ld/lib.go:513 +0x5ce fp=0xc82003f9f0 sp=0xc82003f710
cmd/link/internal/ld.Ldmain()
        /usr/local/Cellar/go/1.6.3/libexec/src/cmd/link/internal/ld/pobj.go:214 +0x1cd3 fp=0xc82003fe70 sp=0xc82003f9f0
cmd/link/internal/amd64.Main()
        /usr/local/Cellar/go/1.6.3/libexec/src/cmd/link/internal/amd64/obj.go:44 +0x19 fp=0xc82003fe78 sp=0xc82003fe70
main.main()
        /usr/local/Cellar/go/1.6.3/libexec/src/cmd/link/main.go:27 +0x36f fp=0xc82003ff50 sp=0xc82003fe78
runtime.main()
        /usr/local/Cellar/go/1.6.3/libexec/src/runtime/proc.go:188 +0x2b0 fp=0xc82003ffa0 sp=0xc82003ff50
runtime.goexit()
        /usr/local/Cellar/go/1.6.3/libexec/src/runtime/asm_amd64.s:1998 +0x1 fp=0xc82003ffa8 sp=0xc82003ffa0
FAIL    github.com/sn/service/router [build failed]

Can you please post the full output from the first failure.
On Sun, Aug 7, 2016 at 9:52 AM, Zack Zatkin-Gold<EMAIL_ADDRESS>wrote:

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?
Go version go1.6.3 darwin/amd64
2.
What operating system and processor architecture are you using (go env
)?
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/zg/work"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.6.3/libexec"
GOTOOLDIR="/usr/local/Cellar/go/1.6.3/libexec/pkg/tool/darwin_amd64"
GO15VENDOREXPERIMENT="1"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics
-Qunused-arguments -fmessage-length=0 -fno-common"
CXX="clang++"
CGO_ENABLED="1"
3.
What did you do?
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
I tried to run go build gitHub.com/sn/service/helpers and a huge stack
trace spit out. After running the command again, it was successful without
any issues.

What did you expect to see?
I expected to see the build succeed without any issues on the
internals of Go itself.
2.
What did you see instead?
I saw a stack trace that was unrecognizable.
Is there some kind of caching mechanism involved that has to be cleared?
When I run go clean and then try doing go build again, things build fine.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/golang/go/issues/16627, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAAcA6B3Z6ytFG_ka744Ftj21GTsQwLEks5qdR49gaJpZM4JeZD-
.

Yes, I've attached it at the bottom. Not sure what happened to my clipboard, but it's there now.

Looks like your test program is crashing, you can confirm this with
% go test -c
% ./router.test

This is most likely due to a data race, which can be verified with
% go test -race

or
% go test -c -race
% ./router.test

How does adding the -race flag verify that there is a race? I'm just seeing the same error again.
$ go test -c -race                                                                                [3/171]
# testmain
fatal error: unexpected signal during runtime execution
[signal 0xb code=0x1 addr=0x15820bc54210 pc=0xf47b]

runtime stack:
runtime.throw(0x2c4920, 0x2a)
        /usr/local/Cellar/go/1.6.3/libexec/src/runtime/panic.go:547 +0x90
runtime.sigpanic()
        /usr/local/Cellar/go/1.6.3/libexec/src/runtime/sigpanic_unix.go:12 +0x5a
runtime.unlock(0x3a70a0)
        /usr/local/Cellar/go/1.6.3/libexec/src/runtime/lock_sema.go:107 +0x14b
runtime.(*mheap).alloc_m(0x3a70a0, 0x1, 0x1a, 0x778798)
        /usr/local/Cellar/go/1.6.3/libexec/src/runtime/mheap.go:492 +0x314
runtime.(*mheap).alloc.func1()
        /usr/local/Cellar/go/1.6.3/libexec/src/runtime/mheap.go:502 +0x41
runtime.systemstack(0xc82044de58)
        /usr/local/Cellar/go/1.6.3/libexec/src/runtime/asm_amd64.s:307 +0xab
runtime.(*mheap).alloc(0x3a70a0, 0x1, 0x1000000001a, 0xf11f)
        /usr/local/Cellar/go/1.6.3/libexec/src/runtime/mheap.go:503 +0x63
runtime.(*mcentral).grow(0x3a8ed0, 0x0)
        /usr/local/Cellar/go/1.6.3/libexec/src/runtime/mcentral.go:209 +0x93
runtime.(*mcentral).cacheSpan(0x3a8ed0, 0x769ee8)
        /usr/local/Cellar/go/1.6.3/libexec/src/runtime/mcentral.go:89 +0x47d
runtime.(*mcache).refill(0x402e10, 0x1a, 0x769ee8)
        /usr/local/Cellar/go/1.6.3/libexec/src/runtime/mcache.go:119 +0xcc
runtime.mallocgc.func2()
        /usr/local/Cellar/go/1.6.3/libexec/src/runtime/malloc.go:642 +0x2b
runtime.systemstack(0xc820020000)
        /usr/local/Cellar/go/1.6.3/libexec/src/runtime/asm_amd64.s:291 +0x79
runtime.mstart()
        /usr/local/Cellar/go/1.6.3/libexec/src/runtime/proc.go:1051

goroutine 1 [running]:
runtime.systemstack_switch()
        /usr/local/Cellar/go/1.6.3/libexec/src/runtime/asm_amd64.s:245 fp=0xc82003e9d0 sp=0xc82003e9c8
runtime.mallocgc(0x240, 0x25c4c0, 0xc800000000, 0xc820086240)
        /usr/local/Cellar/go/1.6.3/libexec/src/runtime/malloc.go:643 +0x869 fp=0xc82003eaa8 sp=0xc82003e9d0
runtime.newarray(0x25c4c0, 0xb, 0x152a68)
        /usr/local/Cellar/go/1.6.3/libexec/src/runtime/malloc.go:798 +0xc9 fp=0xc82003eae8 sp=0xc82003eaa8
runtime.makeslice(0x1e67a0, 0xb, 0xb, 0x0, 0x0, 0x0)
        /usr/local/Cellar/go/1.6.3/libexec/src/runtime/slice.go:32 +0x165 fp=0xc82003eb38 sp=0xc82003eae8
cmd/link/internal/ld.readsym(0xc820086240, 0xc8250eb1c0, 0xc821ac9540, 0xd, 0xc8259b5450, 0x50)
        /usr/local/Cellar/go/1.6.3/libexec/src/cmd/link/internal/ld/objfile.go:239 +0xba6 fp=0xc82003ef80 sp=0xc82003eb38
cmd/link/internal/ld.ldobjfile(0xc820086240, 0xc8250eb1c0, 0xc821ac9540, 0xd, 0xab5f, 0xc8259b5450, 0x50)
        /usr/local/Cellar/go/1.6.3/libexec/src/cmd/link/internal/ld/objfile.go:147 +0xa62 fp=0xc82003f190 sp=0xc82003ef80
cmd/link/internal/ld.ldobj(0xc8250eb1c0, 0xc821ac9540, 0xd, 0xab88, 0xc8259b5450, 0x50, 0xc82307ff90, 0x48, 0x1, 0x0)
        /usr/local/Cellar/go/1.6.3/libexec/src/cmd/link/internal/ld/lib.go:1351 +0x1569 fp=0xc82003f400 sp=0xc82003f190
cmd/link/internal/ld.objfile(0xc8230571f0)
        /usr/local/Cellar/go/1.6.3/libexec/src/cmd/link/internal/ld/lib.go:847 +0x10d9 fp=0xc82003f710 sp=0xc82003f400
cmd/link/internal/ld.loadlib()
        /usr/local/Cellar/go/1.6.3/libexec/src/cmd/link/internal/ld/lib.go:513 +0x5ce fp=0xc82003f9f0 sp=0xc82003f710
cmd/link/internal/ld.Ldmain()
        /usr/local/Cellar/go/1.6.3/libexec/src/cmd/link/internal/ld/pobj.go:214 +0x1cd3 fp=0xc82003fe70 sp=0xc82003f9f0
cmd/link/internal/amd64.Main()
        /usr/local/Cellar/go/1.6.3/libexec/src/cmd/link/internal/amd64/obj.go:44 +0x19 fp=0xc82003fe78 sp=0xc82003fe70
main.main()
        /usr/local/Cellar/go/1.6.3/libexec/src/cmd/link/main.go:27 +0x36f fp=0xc82003ff50 sp=0xc82003fe78
runtime.main()
        /usr/local/Cellar/go/1.6.3/libexec/src/runtime/proc.go:188 +0x2b0 fp=0xc82003ffa0 sp=0xc82003ff50
runtime.goexit()
        /usr/local/Cellar/go/1.6.3/libexec/src/runtime/asm_amd64.s:1998 +0x1 fp=0xc82003ffa8 sp=0xc82003ffa0

This isn't a failure in go build as the title suggests. I agree with Dave that this is probably a test failure due to a race. Closing until there's something we can do.

Oh this is in the linker. Just read the stack.

Can you try Go 1.7?

@bradfitz: No problem - it is Saturday. 😄 I upgraded to Go 1.7rc5 using brew upgrade go --devel and the problem doesn't arise.
@davecheney: Yep, I'm on macOS Sierra (10.12 Beta).

Your Brew instance is 1.6.3, I think that doesn't have the fix.
I recommend switching to the official release from golang.org.
On Sun, 7 Aug 2016, 10:39 Zack Zatkin-Gold<EMAIL_ADDRESS>wrote:

@bradfitz https://github.com/bradfitz: No problem - it is Saturday. 😄
I upgraded to Go 1.7rc5 using brew upgrade go --devel and the problem
doesn't arise.
@davecheney https://github.com/davecheney: Yep, I'm on macOS Sierra
(10.12 Beta).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/golang/go/issues/16627#issuecomment-238056297, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAAcA1wiPRThQXnXcPHRZkE9eWMrVN9vks5qdSlVgaJpZM4JeZD-
.

Which commit on golang/go has the fix?

It's in 1.7rc5, it's not been backported to other branches yet sorry.
On Sun, 7 Aug 2016, 10:46 Zack Zatkin-Gold<EMAIL_ADDRESS>wrote:

Which commit on golang/go has the fix?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/golang/go/issues/16627#issuecomment-238056466, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAAcA3k4BDCjf8JeYtgwUVJwusRCY_Baks5qdSrNgaJpZM4JeZD-
.

Dup of #16352 / #16570


OAuthException while signing in!

This is a great idea. But, I get this error when I try to sign-in:
{"code": 400, "error_type": "OAuthException", "error_message": "Invalid scope field(s): follower_list"}

Yes. It broke recently,  because  Instagram has decided to change their policy for creating applications. First need to get approved from them for permissions.

Ohh, okay. Off topic, your website is really cool! Can you tell me which language/frameworks/tools did you use?

Thanks
Used https://github.com/prakhar1989/react-term for a terminal emulator, and blog is powered by Ghost. Using https://github.com/axitkhurana/buster to convert to a static site and deployed on GH Pages

log in nahi ho raha bhai

Instagram has changed their OAuth APIs, so my code is deprecated for now. If I get time, I'll update to the new login flow or else feel free to send a PR.


Removes locks from Web3 RPC Server

Description
Removes locks from Web3 RPC Server, making all transactions be sent from a new wallet.
Metadata
Fixes

Fixes # 278

Contributing Agreement

[x] I have read and understood the Optimism Contributing Guide and Code of Conduct and am following those guidelines in this pull request.

Nice!
💥 🔒 💥
Can we remove the async-lock dependency for now or are we using it elsewhere?
Either way, looks good to merge!

It's in some other stuff that we don't use [yet?], but I agree we should work to remove it!


Oauth refactor

Once we know more about CRDs, and OAuth settings for OCPv4 specifically, we want to generalize OCP4 Oauth code.

Use example configuration yaml to run app.
2.1. Use hostname as a Source in yaml for the first time.
2.2. Replace hostname in Source by local directory, so you don't wait for SSH everytime.

This is robust prototype, feel free to improve.

Something seems to be broken here:
ademicev-OSX:cpma ademicev$ ./bin/cpma --config /Users/ademicev/Documents/go/src/github.com/fusor/cpma/examples/cpma-config.yaml
36/40 10:36:52 FATAL unable to parse configuration: 1 error(s) decoding:

* 'Source' expected type 'string', got unconvertible type 'map[string]interface {}'

Do we want to move ocp3 and ocp4 packages under internal dir?

Do we want to move ocp3 and ocp4 packages under internal dir?

Works fine, didn't notice you changed config

This implements #25


Request: Update dependencies

These samples are now using quite outdated dependencies. It's not very clear from them how to make them work with modern versions of Kotlin/KSP.

just updated everything, I hope that helps!


youtube-dl: remove unnecessary pandoc dependency

Per upstream developer [1], pandoc is not needed for users or developers; only for generating the manpage/README. The manpage/README is pre-generated, so this dependency is just adding a lot of bloat for no reason.
[1] https://github.com/rg3/youtube-dl/issues/581

If it's truly unnecessary then why is it made optional? It should be just removed.
Also some weird styling in this commit, inconsistent comma, pointless [ ] ++…


Web - Suggestion list display different random generated avatar

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Go to new dot
Open a chat and type @ for suggestion list
3.Observe that suggestions list display different avatar as compared to user profile or LHN

Expected Result:
Avatar in suggestions list and profile should be the same
Actual Result:
Avatar in suggestion list is different as compared to profile one
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android / native
[ ] Android / Chrome
[ ] iOS / native
[ ] iOS / Safari
[ ] MacOS / Chrome / Safari
[ ] MacOS / Desktop

Version Number: 1.3.40-5
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://github.com/Expensify/App/assets/93399543/b2a4e0d9-ff17-426e-bc35-313efb84a55c
https://github.com/Expensify/App/assets/93399543/941fadc0-4f41-48b1-bef9-104c60ae68ec
Expensify/Expensify Issue URL:
Issue reported by: requested
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1689345755284969
View all open jobs on GitHub

Proposed solution
Please re-state the problem that we are trying to solve in this issue.
Suggestion list displays different random generated avatar as compared to profile.
What is the root cause of that problem?
Profile page or LHN is UserUtils.getAvatar() method is retrieve default avatar associated with the user profile. But in the case of suggestions list is displaying avatar from report participant details (coming form personal details object)
What changes do you think we should make in order to solve the problem?
Use UserUtils.getAvatar() to display an avatar associated with the given accountID.
https://github.com/Expensify/App/blob/a2dc004c6342c3b2e1e9a61bdc40b99da4fb647c/src/pages/home/report/ReportActionCompose.js#L493-L499
Here is updated code:
    icons: [
        {
            name: detail.login,
            source: UserUtils.getAvatar(detail.avatar, detail.accountID),
            type: 'avatar',
        },
    ],

What alternative solutions did you explore? (Optional)
N/A

@Beamanator - I noticed your feedback here: https://expensify.slack.com/archives/C049HHMV9SM/p1686831792192539?thread_ts=1686829891.048029&cid=C049HHMV9SM
Is this GH-expected behavior or different?
At this point, I can't replicate and will continue testing if this is a different issue.

@alexpensify i'd say this is not expected behavior & is different than that slack thread b/c in that slack thread, the created account's accountID is changing from an optimistic one (super random) to one when the user is created in the DB.
In this case, the accountID should be the same (oh we determine which default avatar to use based on account ID by the way) so we should have the same avatars I believe

Agreed @spcheema mentions are relatively new, and it's possible @puneetlath is planning to do something to update mentions soon - he's on vacay until next week

Ok, with this news, I've put this one on HOLD and changed it to Weekly. Also, I set a reminder in my calendar to reopen early next week to continue the discussion. Thanks!

Thank you for this update @spcheema. With this news, I'm going to close this GH.


docs: remove extra backtick

This PR is a one-line change in the docs. @davidcavazos

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

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

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

GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

@davidcavazos


State and country boundary lines missing

eg:
"source-layer": "boundaries",
"filter": ["==", "type", "country"],

See related issue for more information.

I'm working on updating demo/test-driving MapZen. Following https://github.com/mapzen/vector-datasource/issues/517 I was able to render boundaries using "boundaries" rather than "places" from existing demo. Quite a few low-hanging fruit syntax changes, ex: constants have been deprecated as of v8, filter array for operator "==" must have 3 elements, text-size no longer paint property, etc...
I can't get any labels to render. I was wondering if it was a "kind" issue in the filter or is there a bigger "places" issue on the source-layer. I do get a 403 Forbidden error from mapbox/fonts at smaller scales, using my default token, then with fonts read scope checked token... Here is my fork: https://github.com/Ccantey/mapboxgl-vector-tiles/blob/master/index.html
And live: http://gis.leg.mn/iMaps/mapboxgl-vector-tiles/index.html

Labels work:

The format for mapbox:// style and glyphs URLs has changed. For style URLs, you should now use the format mapbox://styles/:username/:style. The :style portion of the URL no longer contains a username. For font URLs, you should now use the format mapbox://fonts/:username/{fontstack}/{range}.pbf

https://github.com/mapbox/mapbox-gl-js/blob/master/CHANGELOG.md


[dev/1.29] repo: Dev v1.29.6

Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

cc @botengyao

/retest


Update to<EMAIL_ADDRESS>

Updated the test since default params are now supported.

👍

Thanks! Pushed


Error: ENOENT: no such file or directory, open 'c:\Users\ASUS.vscode\extensions\lvboda.vscode-img-fast-1.0.3\out\records.json'

Thanks for reporting this. This issue is a duplicate of #13. Please follow the original issue for updates.


Restrict MKL wheels to macos-13 for x86_64 architecture

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Improve aliasing of alises to permit pointing to source

Resolves #1114.

Asks user if they'd like to alias to the source instead when aliasing to an alias.
Fixes deleting commands with aliases. Red chat utils don't like taking straight numbers anymore, I guess. Whoops.


[docs](ip function) add ipv4/v6 datatype and some ip functions' docs

Proposed changes
Issue Number: close #xxx

Add some docs for ipv4/ipv6 datatype and some ip functions, such as:

ipv4_cidr_to_range
ipv6_cidr_to_range
is_ip_address_in_range
is_ipv4_string
is_ipv6_string
to_ipv4
to_ipv4_or_default
to_ipv4_or_null
to_ipv6
to_ipv6_or_default
to_ipv6_or_null

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

run buildall


Routing

Thanks a lot for making this template! Will use this as a base. My issue is more of a question. How would you incorporate routing in this setup?
Hope you can point me in the right direction, of maybe even adding a routing example to the setup.
Thanks again for the slick template!

Took me about 13 minutes :-) vue-router just works perfectly


UnicodeDecodeError when initializing HanziDecomposer

When I try to initialize HanziDecomposer, I get a UnicodeDecodeError. The error seems to stem from the init_decomposition() method when it tries to load a JSON file. Here's the traceback:
Traceback (most recent call last):
File "C:\MyPC\MyProject\HanziPyTest.py.py", line 12, in
decomposer = HanziDecomposer()
File "C:\MyPC\MyProject\venv\lib\site-packages\hanzipy\decomposer.py", line 23, in init
self.init_decomposition()
File "C:\MyPC\MyProject\venv\lib\site-packages\hanzipy\decomposer.py", line 52, in init_decomposition
self.radicals = json.load(radicals_file)
File "C:\MyPC\AppData\Local\Programs\Python\Python39\lib\json_init_.py", line 293, in load
return loads(fp.read(),
File "C:\MyPC\AppData\Local\Programs\Python\Python39\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 728: character maps to
Environment:

OS: Windows11
Python version: Python 3.9
hanzipy version: 1.0.3

Steps to Reproduce:
Here's a minimal code snippet that reproduces the error:
from hanzipy import HanziDecomposer
decomposer = HanziDecomposer()

Hey, thank you very much for you pull request, I really appreciate it!
I indeed did not test my code on Windows and I'm sorry about that.
I tested your fix and it seems to work, thanks again!
I'm only replacing simple quotes by double quotes for consistency.

https://github.com/Synkied/hanzipy/releases/tag/v1.0.4 release thanks to your contribution.
Really appreciate it, once again!


Not really and Arduino issue

Not really and Arduino issue, but i can't find  a place to get some assistance.
I'm working with a Raspberry Pi Zero, with wifi dongle, all of this is working correctly
I'm on the correct serial port, as i can see the data from a touch event.
I don't think anything is transmitting because the couple of values i want to change in my interface, don't seem to be occuring.
On occasion i do receive a buffer overrun, "0x24 0xFF 0xFF 0xFF"
Any help would be greatly appreciated.
Also am running the serial port at 9600,n,8,1
I have tried with different parameters and can only get the response codes to change (i.e. not recieve 0xff*3 consistantly), so i guess i am stuck with 9600, which is fine, not changing very many values

If you don't have to change many Values, you could simply work without this Library.
I am new to this Library so this what comes to my mind first...
You could send serial string on a Button event (Nextion Editor > Event Box > print"xyz123") and just check for "xyz123" with your Raspi.
To set values in the Nextion you just have to send:
<objname>.<property>="value"
for Example:
b0.txt="Hello World"
via Serial to the Display (as far as I know)
But as I said, I'm new and just informed myself what alternatives I have to this library
I'm referring mostly to these videos:
https://youtu.be/LL4TduSYsZ8?t=246
https://youtu.be/KBWqEmbW0X8?t=700
I hope this helps you...


feat: Add temporal entity dimension filtering to dashboard filters

...and fix the time range brush for TemporalEntityDimension in column charts.
Closes #1555
How to test
Time brush for temporal entity dimension based X axis
PR

Go to this link.
Open Horizontal Axis settings.
Enable interactive filter.
✅ See that it's possible to filter the chart.

TEST

Go to this link.
Open Horizontal Axis settings.
Enable interactive filter.
❌ See that it's not possible to filter the chart (NaN values displayed in the brush).

Temporal entity dimension in shared dashboard filters
PR

Go to this link.
Add another chart (e.g. line).
Proceed to layout options.
Switch to a dashboard layout.
Enable shared Date filter.
Filter the chart using the time brush.
✅ See that both charts are filtered as expected.

TEST

Go to this link.
Add another chart (e.g. line).
Proceed to layout options.
Switch to a dashboard layout.
❌ See that it's not possible to enable shared Date filter.

I think we could remove the Slider ticks when there are more than 50 ?


Fixed extra blank page.

Thanks for the PR, that is appreciated!
Could you please provide more information about the problem and your solution?

Sure!
I am not sure if this happens on all platforms, but on initialization, the browser spawns the openai login page in addition to an extra blank page.
The changes I made just checks if there is already an existing page  to use since browser.new_page() seems to create an additional page leaving the existing page blank if any.
I am using Debian Bookworm.

Oh cool, I actually spent a few minutes trying to get rid of that blank window before.  Your fix looks fine to me.

Thanks a lot for the contribution and for the explanation!

No problem! I am planning to use the project so I may look into more fixes/improvements.
Cheers 🍻


Python 3.13 support

:wave: 3.13 is still in alpha, but I thought I'd file this - in https://github.com/python/cpython/pull/109113, get_unverified_chain was made public and calls public_bytes on the certs, meaning that https://github.com/sethmlarson/truststore/blob/178fea29c3fb5b14a62deeb112ed3e3d81e95157/src/truststore/_api.py#L299 throws an error.

@layday Thanks for reporting this, we'll update and get a new version published.

(Typeshed PR: https://github.com/python/typeshed/pull/11724)


work on agenda for TTT workshop

more detail
dedicate first day to teaching style and lesson design

@rkdarst @annefou @wikfeldt comments welcome. There is still some air in the agenda I believe. Also the distribution on day 2 is really arbitrary and reorder wishes welcome.
Please suggest changes which I will implement quickly - I would like this to look good very soon so that I can invite more people.

+1 to the redo, I think this gives us a solid base.
There should be another talk of some sort in the afternoon but we can find something later.  Or if needed, take one of the lessons and revise it there as a whole group together, and use it as a "learn how to critically evaluate a lesson and improve it" as preparation for the next day.  (tldr: no action needed now before merging).
I would prefer "Institutional partnerships and sustainability" to be first day, so that day 1 can be meta-stuff and streamed and day 2 is more local working together.  If we decide to stream (if I do backwards lesson design I'd rather it streamed so that people at Aalto can take the benefits of it, too).
I'd rather less time to revise each lesson and be able to discuss all of them.  But I don't know if that has the most benefit.
That's my fast comments.  None of them need to be done before you merge this and announce.

Thanks!

I will move "Institutional partnerships and sustainability" to day 1 before merge.
I was also unsure whether I like parallel tracks. I would also like to discuss all of them. How do others see this point? (I agree this point is not a blocker for announcing)

We have 10 non-special workshops on coderefinery.org, and current template seems to use 8 of them.  At 30 minutes each we could do all of them.  I think the main consideration is how many attendees we have.  It would be reasonable to have 10 people discuss a lesson, 30 people not so much.  Or combine them: morning is go through every lesson quickly with everyone, afternoon is parallel tracks working on the lessons themselves.

I like the suggestions of specializing in the afternoon. I will send a patch tonight.

Another idea for the first afternoon: a lightning overview of all lessons.  Somone prepares a 60-90 description of the lesson, and we read through them and briefly discuss the big picture.  This gives us an overview and lets people think about it overnight.  This should focus on overall flow and current and needed examples.

I did not manage yesterday and will have a day full of meetings but everybody please give comments and tonight I will adjust the PR.

good restructuring! Here's my feedback:

It could be useful to add a presentation about various practical aspects, including

general workshop preparations, importance of helpers, pre-workshop planning meeting, ...
lesson templates, how to use jekyll, ...
pre- and post-workshop surveys, why and how to use them
This might fit into the 13-15:00 slot on the first day

On the second day we want to cover all the lessons, but we don't want the groups to be too large because everyone's voice should be heard and (as I'm envisioning it) there should be plenty of teaching exercises and demos, which is difficult to do with 15 people. So can we split into three groups? Like so:
9:00 - 10:30: Lesson discussion (three groups)

Group 1: Git intro
Group 2: Documentation
Group 3: Collaborative Git
11:00 - 12:30: Lesson discussion (three groups)
Group 1: Modular code development
Group 2: Jupyter
Group 3: social coding
13:30 - 15:00: Lesson discussion (three groups)
Group 1: Automated testing
Group 2: Reproducible research I (first half of lesson)
Group 3: Reproducible research II (second half)

I think it's better for each participant to study fewer lessons thoroughly compared to covering more lessons superficially

In the section where we discuss general workshop preparations, will we also explain how to set-up a registration page (with indico?).
I agree with @rkdarst ; It's a good idea to have an overview of all the lessons. I would also clearly set the objectives of these sub-groups. What do we want to achieve by the end of the workshop:

Review objectives, keypoints, exercices
Identify sections/exercices that could be optional
Timing; better to give a range  (without optional exercices and when including optional exercices)
?

Thanks for good suggestions! Now going through them - PR update coming up in a bit.

I have now hopefully implemented all suggestions. I would appreciate if we merge and follow-up changes are done as PRs so that this does not stick to me to make these changes and so that I can already send out info via emails.

Yes, go ahead and merge.  It's already far more than enough for an iteration.  Thanks for wrangling the revisions.


Keep getting error while creating category

I keep getting an error everytime I try to create a category.
Python commands I used are as `follows:
from empath import Empath
lexicon = Empath()
lexicon.create_category("cold_war", ["cold_war"], model="nytimes")

The error I got is as follows:
requests.exceptions.ConnectionError: HTTPConnectionPool(host='<IP_ADDRESS>', port=8000): Max retries exceeded with url: /create_category (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x102fed1d0>: Failed to establish a new connection: [Errno 61] Connection refused',))
Thanks!

@Ejhfast I've also encountered the same issue as @heeryung. Based on the code, creating a category seems to be hitting an external server.
I was just curious if the server needs to be set up separately to be able to create categories, or is <IP_ADDRESS> a public hosted Empath backend solution?
I've also noticed that creating a category also doesn't work on http://empath.stanford.edu, which is referenced in your paper on Empath (great work, btw)!
Any help would be greatly appreciated.
Thanks in advance!

Got the same problem here.  It failed to ... HTTPConnectionPool(host='<IP_ADDRESS>', port=8000) .
Any advise would be greatly appreciated.
Thanks in advance.

Should be fixed now!
On Tue, Oct 3, 2017 at 2:52 AM, tonychuo<EMAIL_ADDRESS>wrote:

Got the same problem here. It failed to ... HTTPConnectionPool(host='<IP_ADDRESS>',
port=8000) .
Any advise would be greatly appreciated.
Thanks in advance.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Ejhfast/empath-client/issues/3#issuecomment-333794525,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAFeEuIpBK_jWgYs3VoFxRAQD1Hwtdj7ks5sogPwgaJpZM4PoMz4
.

@Ejhfast just confirmed that it is working.
Thanks a lot!

Yes.  It is working now.
Thanks a lot.
Tony Chuo 😸
On Wed, Oct 4, 2017 at 12:05 AM, Taras Zubyak<EMAIL_ADDRESS>wrote:

@Ejhfast https://github.com/ejhfast just confirmed that it is working.
Thanks a lot!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/Ejhfast/empath-client/issues/3#issuecomment-333890694,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALD-2ygaBtkj_l50keZEuY8Wd4nLGxVMks5soltggaJpZM4PoMz4
.

Hi, I am having the same problem now. Problem in creating a new category. This is the error i got.
requests.exceptions.ConnectTimeout: HTTPConnectionPool(host='<IP_ADDRESS>', port=8000): Max retries exceeded with url: /create_category (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x131887070>, 'Connection to <IP_ADDRESS> timed out. (connect timeout=None)'))
Thank you!


Added unit test coverage and fixes

@veskoo93 hey, so i rebased your commits and they are now in a new branch called unittests (this PR is based off of it). If you make any new commits please make sure its from the unittests branch and not the one you've been working on. This one squashes all your commits into one and I cleaned up your commit message. I also added an additional commit of my own to fix the broken unit tests (thanks for catching those).

@veskoo93 so to get us that final 10% the key will be to use Mockito (might need to add it as a dependency). If you create a mock for the transaction portion that creates dummy values it should be possible rather easily. It will take some care to do it in a way that is useful, so might want to try it out on one or two tests and share it with me so i can help advise on if its a good approach. Just make sure the assertions you make and the way you mock the transactions provide useful tests.

@veskoo93 since we have some critical bug fixes in this PR I'm going to merge in what we have so far. But with my advice above i think we can cover a reasonable portion of what is left. Just continue off the unittests branch and create a new PR when you have more for me to review. If you need help figuring out how to use mockito to cover what is left let me know and I can provide some advice.

@veskoo93 actually since its merged just go off master, ill just delete this branch.


Not showing up in 6.3

Its not showing up in the plugin list, even when installed manually. When installed manually, it additionally removes itself from the folder. "installedplugins". whats going on?

x2 i  dont even saw the plugin o.o

It's not updated for 6.3 yet. Waiting for public dalamud release, lots of stuff has changed.
Since you're apparently using non-public release, you can build from sources manually meanwhile.

Published the update.


Can't use some key anymore on azerty keyboard

Hello 😁,
On a azerty keyboard, or maybe other mapping, I can use, and use those key without SHIFT.
So the warning is false, and block the usage of those key.
I can still use keycode, but should we keep this piece of code? Do you plan to remove it at a moment and it was just to alert first users ?
Can we maybe add a boolean in config to bypass this warning ?
https://github.com/hyprwm/Hyprland/blob/main/src/config/ConfigManager.cpp#L714
src/config/ConfigManager.cpp
    if (KEY == "exclam" || KEY == "asciicircum" || KEY == "at") { // just some
        parseError = "Your config contains (probably) wrong keys. The SHIFT keysym behavior has changed after v0.10.3beta. Please consult the wiki (Advanced configuring -> binds)";
        return;
    }

Regards

it was meant for when there was shifting. I forgot to remove this. Sorry

fixed in a572321f611d256f746366fbf16d36ed6a7de3e6


Changing routers

Hi,
Sorry for a little beginner question. Would it be possible to modify the TSA such that we capture segment to segment attention across different time series ?

TSA was originally designed to capture segment-to-segment attention across different time series you mentioned, but in two stages: 1)capturing dependency among different timestamps of the same dimension; 2)capturing dependency among different dimensions at the same step. Experimental results show this two-stage method is better than using only one attention layer for both time and dimension.
As for the router mechanism, it is designed to reduce the complexity of capturing cross-dimension dependency, i.e. stage 2 above. Of course, you can replace it with a singleTransformer layer, but the computation overhead will be too large for high-dimensional datasets.


how to freeze ckpt file in this project..

can you please tell me detail how to freeze ckpt file to pb ??

hope this help : https://gist.github.com/imksuma/0b547b76ad307893eaa73bf1229dec8a
its modified from classify.py in folder tools


라이브러리 사용자 입장에서의 Getting Started (Prerequisite)

@euphony-io/euphony-co  팀에 배정되는 첫번째 이슈입니다.
초보 개발자 입장에서도 Guide를 보며 쉽게 라이브러리를 사용할 수 있는 친절한 설명이 필요할 것 같습니다.
스크린샷과 같은 그림 등이 들어가면 좋겠죠??
현재는 아래 정도로 README.md에 적혀 있어요.

안드로이드 라이브러리를 사용하는 방법은 gradle에서 maven 저장소를 사용하는 방법도 있겠지만
다른 방법도 있는데 팀원들이 다같이 한번 찾아보시면서 직접 경험도 해보면 좋을 것 같구요 (라이브러리를 직접 추가해서 사용하는 방법)
reference) https://github.com/google/oboe/blob/main/docs/GettingStarted.md
우선은 여기 issue를 통해서 팀원들과 커뮤니케이션을 하면서 전체 구성을 완성해보시구요.
내용도 어떻게 쓸지 각자 여기 남겨가면서 작성해보면 좋겠습니다.
markdown을 연습한다는 생각으로 많이 많이 써주시면 좋을 것 같아요.
PR은 이번주 토요일 이후에 진행해보시도록 할게요 :)

제가 알기로는 jar 파일을 직접 import 하는 방법이 있는 것으로 압니다.
CMake는 c/c++ 파일을 컴파일 할 수 있도록 안드로이드 내에서 지원하는 기능을 하고 있는 것으로 압니다.
예전에 안드로이드 내에서 OpenCV를 사용할 때 openCV가 c++라이브러리라서 안드로이드에서 사용 할 때 CMake를 사용 해 준 적이 있습니다.
제가 알고있는 방법 말고 안드로이드에서 library를 추가 할 수 있는 방법이 있을까요?

제가 알기로는 jar 파일을 직접 import 하는 방법이 있는 것으로 압니다.
CMake는 c/c++ 파일을 컴파일 할 수 있도록 안드로이드 내에서 지원하는 기능을 하고 있는 것으로 압니다.
예전에 안드로이드 내에서 OpenCV를 사용할 때 openCV가 c++라이브러리라서 안드로이드에서 사용 할 때 CMake를 사용 해 준 적이 있습니다.
제가 알고있는 방법 말고 안드로이드에서 library를 추가 할 수 있는 방법이 있을까요?
There is the way to import jar file directly.
And by using CMake, we can use libraries based c/c++ in android projects.
I used CMake to import OpenCV library which is base on c/c++ to my android project.
Are there any other ways to import libraries?

맞습니다. 라이브러리 추출물인 aar / jar 를 직접 import 하는 것도 방법이고,
설명 적어주신대로 OpenCV의 jni와 같은 코드를 module 통째로 가져와 쓰는 방법도 있구요.
순수 native라면 cmake에서 prefab을 이용해 가져오는 방법도 있지만 이건 euphony 에서는 지원하지 않기 때문에 제외하구요.
gradle, aar/jar, module porting 3가지 정도로 시도해보시면 좋겠습니다.
이대로 한번 해보시죠!
 Another way is to directly import the library extract aar / jar.
As you wrote in the description, there is also a way to import and use the whole module, such as OpenCV's JNI.
If it is pure native, there is a way to import it using prefab in cmake, but this is excluded because euphony does not support it.
It would be good to try 3 usage types of gradle, aar/jar, and module porting.
Let's try it like this!

저도 JAVA 프로젝트를 할 때는 보통 jar 파일을 직접 import 하는 방법을 사용합니다.
그럼 제가 조사한 안드로이드 스튜디오에서 jar 파일을 직접 import 하는 방식에 대해서 제가 실습한 내용을 바탕으로 설명해보겠습니다.

먼저 사용하려는 jar 파일을 프로젝트의 'libs' 폴더에 넣습니다.

 2. 아래와 같은 창이 뜨면 그대로 'Refactor' 버튼을 눌러줍니다.

3. 이동완료한 jar 파일을 우클릭하고 'Add As Library...'를 눌러줍니다.

4. 마지막으로 'Create Library'창이 뜨면 OK 버튼을 눌러줍니다.

5. 완료하시면 'build.gradle' 파일에서 다음과 같이 jar 파일이 추가된 것을 보실 수 있습니다.

저는 이 방식이 가장 직관적인 방식이라 생각합니다:)
그 외에도 조사해본 바로는 'Project Structure'를 사용하는 방법이 있다고 합니다.

I used to import jar file in project directly when I work with JAVA.
Then, I'll explain how to do it in 'Android Studio'

First, put your jar file in 'libs' folder.

2. After that, just click 'Refactor'

3. do right-click on your jar file which is moved, and click 'Add As Library...'

4. For the last, just click 'OK' button when 'Create Library' window pop up

5. After all, you can see the jar file is imported in 'build.gradle'

I think this method is pretty easy and intuitional:)
And I heard there is a way using 'Project Structure'

There is no difference in this method in any environment as I know.
Any other comment?

@YoungSeokHong
It seems Mac OS environment.
Is there any difference between Mac and Windows?
I thought that we need to disscuss about that.

@YoungSeokHong
It seems Mac OS environment.
Is there any difference between Mac and Windows?
I thought that we need to disscuss about that.

Yeah, it's for Mac OS.
I think there is no difference between Mac and Win10(or something), but I'll check about it tomorrow with Window 10 OS and review about it:)
Additionally, I want to practice with Euphony jar file (no jdbc jar file that i used) and make an example with it. but, I don't know how to get it. Anyone know how can I download Euphony jar file?

KOR
멘토님께서 설명해주신 내용 중 module porting 방식은 처음 들어봤고 이 방식에 대해 조금 더 조사해보고 싶습니다! 제가 토요일 전체 미팅 전까지 module porting에 대한 내용을 조사하고 실습을 해서 예시들을 업로드해보겠습니다.
ENG
I get to know about 'module porting' way, that 'designe' mentioned, for the first time and want to study about it! I'll research this topic and upload the way how to  before this Saturday online meeting.

KOR
저는 aar/jar 파일을 import하는 또 다른 방법을 정리하고,
영석님과 함께 module porting 방식애 대해 조사해본 후 정리해보겠습니다.
ENG
I'll organize the another way to import the aar/jar file,
and also organize the way module porting after investigate it with @YoungSeokHong.

@YoungSeokHong @HACore
About module porting -
Please refer to OpenCV Android Porting Guide :)

@YoungSeokHong
It seems Mac OS environment.
Is there any difference between Mac and Windows?
I thought that we need to disscuss about that.

I tried doing this in Win10 today and couldn't find any difference. It was almost same. And, of course, thanks to jvm, the same jar file can be used on any OS.
So, you can use same jar and that method in any OS when you import jar file in direct! I wouldn't upload any screenshot cause it's duplication.
Thank for your detailed review. Cause sometime it is very different between Mac and Window, that detail is very important!

KOR
저는 aar/jar 파일을 import하는 또 다른 방법을 정리하고,
영석님과 함께 module porting 방식애 대해 조사해본 후 정리해보겠습니다.
ENG
I'll organize the another way to import the aar/jar file,
and also organize the way module porting after investigate it with @YoungSeokHong.

Here is aar link of euphony:  MavenCentral euphony
And guide to add aar/jar dependency: Android studio developers

@YoungSeokHong @HACore
About module porting -
Please refer to OpenCV Android Porting Guide :)

KOR
안드로이드 스튜디오에 OpenCV를 module을 사용해서 추가하는 방법에 대해서 조사했습니다.
1. 먼저 필요한 SDK Tool 설치를 위해 [Configure] > [SDK Manager]를 들어가서 [Appearance & Behavior] > [Android SDK] > [SDK Tools] 에서 NDK, LLDB, CMake를 설치해줍니다.

'SDK Manager는 상단 메뉴바의 [File] > [Setteing], Mac의 경우 [Android Studio] > [Reference]를 통해 들어갈 수 있습니다.

2. https://opencv.org/releases/ 에 접속한 다음 OpenCV최신 버전의 안드로이드를 다운 받고 압축을 해제해줍니다.

3. 안드로이드 스튜디오로 돌아와서 [File] > [New] > [Import Module...]을 클릭합니다.

4. [Source Directory]에서 앞서 받아서 압축을 해제한 OpenCV파일을 선택한뒤 'sdk'폴더를 선택해줍니다.
(‼경로중 폴더나 사용자 이름이 영어가 아닌 한국어로 되어있을 경우 오류가 날 수 있습니다.)

>편의상 [Module Name]을 'opencv'로 바꿔줍니다.
>

여기까지 완료하셨으면 디렉토리에 opencv가 생긴것을 보실 수 있습니다.

5. 이제 dependency를 설정해줄 차례입니다. [File] > [Project Structure]를 클립합니다.

6.  리스트 상단의 '+' 버튼을 클릭한 뒤, [Module Dependency]를 클릭합니다.

7. import한 module인 'opencv'를 선택하고 'OK'버튼을 클릭합니다.

'build.gradle(Module: ~)'을 보시면 opencv가 추가된 것을 볼 수 있습니다.

8. Run을 해보시면 빌드가 잘 되는 것을 볼 수 있습니다.

ps. 확인하기위해서 Run을 돌리던 중 저에게서는 "Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 21 declared in library"이라는 오류가 나타났습니다.

이 오류는 'build.gradle(:app)' 의 'minSdkVersion'을 바꿔서 손쉽게 해결할 수 있습니다.

I'm gonna show you how to handle permission to use this library.
First of all, we can put dependency code
which is implementation 'euphony.lib:euphony:<IP_ADDRESS>'
in build.gradle
and also you should put permission code
which is <uses-permission android:name="android.permission.RECORD_AUDIO" />
in AndroidManifest.xml.

As you can see, we can check app is appropriately worked.
But, we can also see that Android OS is not allowed to permit automatically app's permission.

So, if you wanna use this library in the right way, you should check your permission manually in app configuration.
That's because after Android 6.0 Marshmallow, Android introduced a new permissions model that lets apps request permissions from the user at runtime, rather than prior to installation.
You can read a below docs to check details.
https://developer.android.com/training/permissions/usage-notes?hl=en
So when you develop the android app, you should consider when app requests permission to users, and you should typing codes that requests permssions to users.
Over the all, as this library's minimun sdk is 14, we must consider two types app 14<= sdk < 16 app and sdk >= 16 app.
Let's check out how can it possible.
Because my test app's sdk is 30, i should consider about it.
I made button to request user permissions.
So, If you push that button, request alert pops up, and if you denied permission, app is closed automatically.

Let's look up the code.
`package com.example.euphonytest;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.content.ContextCompat;
import android.Manifest;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class MainActivity extends AppCompatActivity {
private Button button;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
    button = findViewById(R.id.button2);
    button.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View view) {
            int permission = ContextCompat.checkSelfPermission(MainActivity.this, Manifest.permission.RECORD_AUDIO);

            if (permission == PackageManager.PERMISSION_DENIED) {
                if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
                    requestPermissions(new String[]{
                            Manifest.permission.RECORD_AUDIO}, 1000);
                }
            }
        }
    });
}

//after requestPermission
@Override
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
super.onRequestPermissionsResult(requestCode, permissions, grantResults);
if(requestCode == 1000) {
boolean check_result = true;
for (int result : grantResults) {
if (result != PackageManager.PERMISSION_GRANTED) {
check_result = false;
break;
}
}
if(check_result == true) { } else {
finish();
}
}
}

}`
this is main activity code i made,
`  int permission = ContextCompat.checkSelfPermission(MainActivity.this, Manifest.permission.RECORD_AUDIO);
            if (permission == PackageManager.PERMISSION_DENIED) {
                if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
                    requestPermissions(new String[]{
                            Manifest.permission.RECORD_AUDIO}, 1000);
                }
            }

`
We can know whether permission is denied or not.
And, we also consider sdk version is higher than 16 which is mashmellow. and call function requestPermission.

Everyone did a great job in organizing various methods!
I don't think there is anything more to organize.
If there's anything else need to be organized, please let me know.

Way to use gradle

Way to import the aar/jar file
Paste jar file into libs folder by YoungSeokHong
Using Project Structure by ycs1m1yk

Way to module porting
Way to module porting Using OpenCV by YoungSeokHong

How to set access rights in an app
How to set access rights in an app by hoho00

KOR
Euphony 'Import Module' 작업 중 오류에 대한 질문
Euphony를 module porting방식을 사용하여 import를 진행 하던 중 계속 같은 오류에서 헤매서 혹시 같은 오류를 겪으시거나 해결 방법을 아시는 분이 있는지 여쭤보기 위해서 질문 드립니다.

OS : Mac OS Big Sur
Android Gradle Plugin Version : 4.2.1
Gradle Version : 6.7.1
Language : Java

https://github.com/euphony-io/euphony 애서 zip파일을 다운 받은 뒤에 압축을 풀어줬습니다.

그 뒤 File > New > Import Module을 하고 앞서 다운 받은 파일을 경로로 지정해줬습니다.

그 뒤 import 되던 중 이러한 오류가 발생했습니다.
Could not get unknown property 'language' for build 'My Application' of type org.gradle.invocation.DefaultGradle.

이 부분이 잘 못 된 것 같아 찾아봤더니 gradle에는 language가 존재하지 않았습니다.

저는 Java 사용하기에 큰 문제가 없을 것 같아 이 부분을 주석처리하고 계속 진행해봤더니 다른 오류가 발생했습니다.
Cannot get property 'signing.keyId' on extra properties extension as it does not exist

Q)

Euphony를 Library로서 module porting 방식으로 import할 때 Euphony-master가 아닌 다른 파일을 써야되는지 궁금합니다.

gradle.language를 제 안드로이드 스튜디오가 찾지 못하는 것은 Gradle 버전 때문일까요?

영문으로만 답해주셔도 됩니다!

ENG
An error occur importing Euphony as module
When I import Euphony with 'module porting' way, an error occurred. Anybody saw the same? or know how to solve it?

OS : Mac OS Big Sur
Android Gradle Plugin Version : 4.2.1
Gradle Version : 6.7.1
Language : Java

I got zip file at https://github.com/euphony-io/euphony and unzipped it.

And then, I clicked File > New > Import Module and put what I downloaded before as source directory.

After that, this error occurred during importing
Could not get unknown property 'language' for build 'My Application' of type org.gradle.invocation.DefaultGradle.

I thought this part would made an error and looked for language, but there is no language in gradle

For me it was not important, cause I use Java. I made them all annotation and kept going. However another error occurred
Cannot get property 'signing.keyId' on extra properties extension as it does not exist

Q)

Do I need to use different file as library? no Euphony-master?

Is it because of my Gradle version that my Android Studio couldn't find gradle.language?

@YoungSeokHong
1) Do I need to use different file as library? no Euphony-master?
The signing.keyId property is being used in the publishing script.
https://github.com/euphony-io/euphony/blob/562a8fab8df6ec09853a0e955885004ae7298b1e/euphony/build.gradle#L7
For now, it's intended for use rather than publishing a library, removing this line will free you from that problem.
2) Is it because of my Gradle version that my Android Studio couldn't find gradle.language?
https://github.com/euphony-io/euphony/blob/562a8fab8df6ec09853a0e955885004ae7298b1e/settings.gradle#L4
gradle.language is defined in settings.gradle.
Looking at the settings.gradle in the library,
We can define this property to choose either kotlin or java to use.
If you use it as a module in a specific project,
you need to set the gradle.ext.language variable in that specific project's settings.gradle.
(In version 0.8, this method was removed due to the judgment
that supporting two languages at the same time was inefficient.)

The way how to import Euphony module in your project

Environment
OS : Mac OS Big Sur
Android Gradle Plugin Version : 4.2.1
Gradle Version : 6.7.1
Language : Java

How to
1. Download an zip file at https://github.com/euphony-io/euphony and unzip it in your computer

2. Click File > New > Import Module...

3. Put what you downloaded before as source directory and click Finish

If Could not get unknown property 'language' for build 'import_Euphony' of type org.gradle.invocation.DefaultGradle. error occur, please add a sentence below in setting.gradle(Project) and click 'Sync Now'
gradle.ext.language = "java" // or kotlin

If you want to know more about 'Gradle', https://www.baeldung.com/gradle-build-settings-properties will be helpful

If Caused by: groovy.lang.MissingPropertyException: Cannot get property 'signing.keyId' on extra properties extension as it does not exist error occur, please delete the sentence below in euphony/gradle.build and click 'Sync Now'
apply from: file('publish.gradle')

4. Now, we'll gonna add a dependency. In File > Project Structure, click + button at Dependencies > app. Then click Module Dependency

After that, you can see a sentence is added in build.gradle(Module:app)
dependencies{
     ...
      implementation project(path: ':euphony')
     ...
}

path could be different, if you change Module Name at step 3

For README, It looks like to be necessary to rewrite the way to import the aar/jar file using the Euphony file. (ref. Paste jar file into libs folder by YoungSeokHong)
The way how to import the aar/jar file directly
Environment

OS : Windows 10
Android Studio : Arctic Fox | 2020.3.1

1. put .aar file in 'libs' folder, and just click 'Refactor'

2. build.gradle in app module
repositories {
    flatDir {
        dirs 'libs'
    }
}

dependencies {
    implementation name: 'euphony-<IP_ADDRESS>', ext: 'aar'
}

3. after click sync, you can use euphony library!!

Prerequisite
There are 3 ways adding euphony to your project.
    1. Using Maven repository
    2. Import the aar/jar file directly
    3. Import the Euphony module in your project
1. Using Maven repository

Show Project window with Android project view. You can select a project view mode in the dropdown list, then open your build.gradle file under Gradle Scripts.

Add the following line to the dependencies section:

dependencies {
	// other dependencies
	// ...
	implementation 'co.jbear.lib:euphony:<IP_ADDRESS>'
}

2. Import the aar/jar file directly

Environment

OS : Windows 10
Android Studio : Arctic Fox | 2020.3.1

Download euphony.aar : MavenCentral euphony artifact follow the link and download aar file

put euphony.aar file in libs folder, and just click Refactor

Check your build.gradle in app module

repositories {
    flatDir {
        dirs 'libs'
    }
}

dependencies {
    implementation name: 'euphony-<IP_ADDRESS>', ext: 'aar'
}

then click sync and you can use euphony library!!
3. Import the Euphony module in your project
Environment

OS : Mac OS Big Sur
Android Gradle Plugin Version : 4.2.1
Gradle Version : 6.7.1
Language : Java

Download an zip file at https://github.com/euphony-io/euphony and unzip it in your computer

Click File > New > Import Module...

Put what you downloaded before in source directory and click Finish

If Could not get unknown property 'language' for build 'import_Euphony' of type org.gradle.invocation.DefaultGradle. error occur, please add a sentence below in setting.gradle(Project) and click 'Sync Now'

gradle.ext.language = "java"; // or kotlin

If you want to know more about 'Gradle', https://www.baeldung.com/gradle-build-settings-properties will be helpful

If Caused by: groovy.lang.MissingPropertyException: Cannot get property 'signing.keyId' on extra properties extension as it does not exist error occur, please delete the sentence below in euphony/gradle.build and click 'Sync Now'apply from: file('publish.gradle')

Now, we'll gonna add a dependency. In File > Project Structure, click + button at Dependencies > app. Then click Module Dependency

After that, you can see a sentence is added in build.gradle(Module:app)
dependencies{
     ...
      implementation project(path: ':euphony')
     ...
}

path could be different, if you change Module Name at step 3

permision부분에 AndroidManifest.xml 내용 빠진것 같습니다. (@hoho00)
So, if you wanna use this library in the right way, you should check your permission manually in app configuration.That's because after Android 6.0 Marshmallow, Android introduced a new permissions model that lets apps request permissions from the user at runtime, rather than prior to installation.
You can read a below docs to check details.https://developer.android.com/training/permissions/usage-notes?hl=en
So when you develop the android app, you should consider when app requests permission to users, and you should typing codes that requests permssions to users.
Over the all, as this library's minimun sdk is 14, we must consider two types app 14<= sdk < 16 app and sdk >= 16 app.
Let's check out how can it possible.
Because my test app's sdk is 30, i should consider about it.
I made button to request user permissions.So, If you push that button, request alert pops up, and if you denied permission, app is closed automatically.

Let's look up the code.
package com.example.euphonytest;

import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.content.ContextCompat;

import android.Manifest;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MainActivity extends AppCompatActivity {
    private Button button;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        button = findViewById(R.id.button2);
        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                int permission = ContextCompat.checkSelfPermission(MainActivity.this, Manifest.permission.RECORD_AUDIO);

                if (permission == PackageManager.PERMISSION_DENIED) {
                    if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
                        requestPermissions(new String[]{
                                Manifest.permission.RECORD_AUDIO}, 1000);
                    }
                }
            }
        });
    }

   //after requestPermission
    @Override
    public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
        super.onRequestPermissionsResult(requestCode, permissions, grantResults);
        if(requestCode == 1000) {
            boolean check_result = true;
        for (int result : grantResults) {
            if (result != PackageManager.PERMISSION_GRANTED) {
                check_result = false;
                break;
            }
        }
            if(check_result == true) { } else {
                finish();
            }
        }

    }
}

this is main activity code i made,
int permission = ContextCompat.checkSelfPermission(MainActivity.this, Manifest.permission.RECORD_AUDIO);

                if (permission == PackageManager.PERMISSION_DENIED) {
                    if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
                        requestPermissions(new String[]{
                                Manifest.permission.RECORD_AUDIO}, 1000);
                    }
                }

We can know whether permission is denied or not. And we also consider both sdk version is higher than 16 which is mashmellow and call function requestPermission.

I have no idea what's different
implementation 'euphony.lib:euphony:<IP_ADDRESS>'

and
implementation 'co.jbear.lib:euphony:<IP_ADDRESS>'

Should we add the ```
implementation 'co.jbear.lib:euphony:<IP_ADDRESS>'

I have no idea what's different
implementation 'euphony.lib:euphony:<IP_ADDRESS>'

and
implementation 'co.jbear.lib:euphony:<IP_ADDRESS>'

Should we add the
implementation 'co.jbear.lib:euphony:<IP_ADDRESS>'
??

I have same question, but it seems that here is wrong place to ask.
Would you open a new issue about this question and then delete this comment? thank you.

I have no idea what's different
implementation 'euphony.lib:euphony:<IP_ADDRESS>'

and
implementation 'co.jbear.lib:euphony:<IP_ADDRESS>'

Should we add the
implementation 'co.jbear.lib:euphony:<IP_ADDRESS>'
??

library content is not different.
but,
euphony.lib:euphony:<IP_ADDRESS> is on the jcenter
and co.jbear.lib:euphony:<IP_ADDRESS> is on the centralMaven


[.Net][Bug]: AutoGen.SourceGenerator doesn't encode " in structural comments

Describe the bug
When the content in structural comments contains ", the generated code won't get compiled because the " breaks the string.
Steps to reproduce
No response
Model Used
No response
Expected Behavior
No response
Screenshots and logs
No response
Additional Information
No response

Hi @LittleLittleCloud! This task seems to be interesting! Can I work on this task?

@prithvi2226 that would be awesome!

@LittleLittleCloud If possible, could you please assign this task to me? However, if this action doesn't make a significant difference, I am fine with it. The main priority is to ensure the issue is resolved and the repository progresses smoothly.

@prithvi2226 Any update on this issue

@prithvi2226 Any update on this issue

Hey @LittleLittleCloud , I am still working on it, been remote for a while, I can give you an update by Tuesday!? If that's okay?

@prithvi2226 Do you need more time on this one? Also please let me know if you need help!

Hi @LittleLittleCloud! Thank you very much for checking up on me, and thank you very much for taking the time to help me out with this. I am very sorry from my side, for not giving an update, to solve this bug.
Please Correct me if I am wrong, I have decided to work on the file dotnet/src/AutoGen.SourceGenerator/DocumentCommentExtension.cs , and DocumentCommentExtension class contains methods for handling documentation comments, and it's where I am going to add the logic to escape double quotes in the comments. And, in the method 'GetParameterDescriptionFromDocumentationCommentTriviaSyntax' looks like it processes descriptions for parameters from documentation comments. I hope I am on the right track! Thank you very much!

@prithvi2226 Thanks for your response.
IMO you don't need to go that further into DocumentCommentExtension.cs, the quickest solution is to encode " properly in https://github.com/microsoft/autogen/blob/80ecbf900ca9c2bc7db519702ae132ec6b6c6a3f/dotnet/src/AutoGen.SourceGenerator/Template/FunctionCallTemplate.tt#L84. (" -> "")
For example, when the comment contains "
/// <summary>
/// I have " in the summary and the generated code is breaking!
/// </summary>
/// <param name="city"></param>
/// <returns></returns>
[Function]
public async Task<string> GetWeatherAsync(string city)
{
    return await Task.FromResult($"The weather in {city} is sunny.");
}

The generated code is

As you can see, " breaks the generated code because FunctionTemplate.tt encodes description using @"...." and didn't process the " in the comment description.
The quickest fix is to encode " in description by doubling it (""). This is how " is encoded as well in verbatim string.
e.g.

Hi @LittleLittleCloud ,
Thank you very much for your guidance. Based on your suggestion, I will implement the fix directly in the FunctionCallTemplate.tt file. Here are the steps I plan to take:
Planned Changes:

Modify the FunctionCallTemplate.tt File:

Locating the line that assigns the description (around line 84):
Description = @"<#=parameter.Description#>",

I will modify this line to properly encode double quotes by doubling them (""), like so:

Description = @"<#= parameter.Description.Replace("\"", "\"\"") #>",
This approach should correctly handle double quotes in comments and prevent the generated code from breaking.
Please let me know if this solution looks good to you, and I will proceed with making these changes.
Thank you once again for your assistance!
Best regards,
Prithvi

You nailed it!

Hi @LittleLittleCloud ! I have created a pull request, let me know what you think about it. Thank you very much for your guidance and support. I would love to connect with you on Github or Slack to continue supporting this project.


Behavior of allowEmptyValue: false

TL;DR: I have no idea how to define compliance criteria for allowEmptyValue: false, which is the default behavior, with setting true being NOT RECOMMENDED.
<rant>
The clarification added in 3.0.2 just says using it is NOT RECOMMENDED, which would, AFAICT, leave the default false behavior in place.  Looking at the issue regarding that clarification, there is a lot there that never made it into the spec.  Some of that says that setting it to true allows the undefined value behavior already defined by RFC6570.
However, style, explode, and allowReseved already control the RFC6570 behavior.  Are we by default forbidding empty values?  Does that mean RFC6570's undefined values (which includes null, empty arrays, empty objects, and objects where all properties are null, but NOT the empty string)?  Does it impact the empty string as well?  If schema allows these does the default allowEmptyValue: false behavior contradict that?  How are implementations expected to support this?
If using content, does allowEmptyValue have meaning?  What if the content is legitimately a zero-length string?
This seems like a field with a default value that blocks common cases in a very non-obvious way, requiring complex code to work around the normal behavior of Schema Objects, Media Type Objects, and RFC6570.  Do we really expect implementations to enforce this?  If we are recommending against its use, how do we expect users to support empty values, which can easily happen by accident (particularly empty arrays)?
</rant>

We discussed in TSC and decided that since the use isn't recommended, we might try to continue as if this field does not exist.

After thinking on this more, the only interpretation I can come up with that makes sense to me is:

allowEmptyValue: true was intended to allow empty values regardless of whether the schema allows them or not.
this would make allowEmptyValue: false (the default) be a no-op:  if the schema allows an empty value, then it is still allowed

It just doesn't make sense to me that the default would contradict how schemas work everywhere else.  So it must be that the non-default value is the one that contradicts the schema.  This would also parallel how nullable works by contradicting the established type.
In the absence of anyone knowing how this was supposed to work, that's what I'm going to explain in the text.

I think that allowEmptyValues is a hint for Swagger UI and similar tools on whether to allow users sending query options with an empty value instead of not sending the query option at all:

Visualization & try-out tools REALLY SHOULD render such a check box if (and only if) the parameter's schema accepts the empty string.

@ralfhandl The UI hint makes a little more sense, but would require different wording to clarify that intent.
But I'm not convinced of this interpretation either.  What difference does it make to an API whether bar= (with an empty string value) is sent because of a web form or because of a programmatically constructed URL query string?  Why would bar be omitted?
Is this about HTML's notion of what controls are successful, which defers whether to send an input that "lacks a value" or not to the implementation?  (referencing HTML 4.0.1 because I can't be bothered to decipher WHATWG's pseudocode).
And again, how does that impact APIs?  Are APIs expected to mimic web forms, in which case there's no difference, or is this a web-form-only thing, in which case why is it in the spec at all when many other web-form-related things are not?
If this is a UI hint, then I'll need to update the PR to say so.

What difference does it make to an API whether bar= (with an empty string value) is sent

The question is how many different meanings an API sees in these three requests:
GET /foo
GET /foo?bar
GET /foo?bar=

Do absence (1) and presence (2, 3) of bar mean different things?
Do presence of bar without a value (2) and with a zero-length value (3) mean different things?
If an API author intends to have three different meanings, how do they express their intent in OpenAPI?
With required:false the author can express that form (1) is acceptable.
Then things get murky.
OpenAPI 2.0 said

allowEmptyValue | boolean | Sets the ability to pass empty-valued parameters. This is valid only for either query or formData parameters and allows you to send a parameter with a name only(2) or an empty value(3). Default value is false.

So authors could express that forms (2) and (3) are allowed, but it was unclear how to distinguish (2) and (3).
Explicit mentioning of form (2) was taken away in OpenAPI 3.0.0, see here for the TSC's rationale.
Which leaves me puzzled why the keyword remained, instead of removing it and relying on style or content for allowing form (3).
My take:

Don't try to fix allowEmptyValue in 3.x, it is broken beyond repair.
Remove it in 4.0.

My take:
Don't try to fix allowEmptyValue in 3.x, it is broken beyond repair.
Remove it in 4.0.

I agree

what it does

I'm afraid it does different things with/to different tools, and I definitely am unable to decide which of these is "right".

I assume we'll keep this open until we've forward-ported to 3.1.x and 3.2.x

I assume we'll keep this open until we've forward-ported to 3.1.x and 3.2.x

@lornajane yes that's how I've been tracking/closing issues with PRs for multiple branches.

PRs merged, closing!


Add a default cpu_limit

Set a default cpu_limit to 2.0 cpus per user.
The DockerSpawner doesn't pass the cpu_limit option to the host config at the moment, but we can use the extra_host_config to do so. For more info:

https://docs.docker.com/config/containers/resource_constraints/#limit-a-containers-access-to-memory#configure-the-default-cfs-scheduler
https://github.com/radiasoft/rsdockerspawner/blob/6f1653ce4c0cb9532d77c5f9c03b8c64a7ff051b/rsdockerspawner/rsdockerspawner.py#L83-L96

Also the CPU_LIMIT environment variable is passed to the user notebook server, so we can extend the topbar indicators to also show CPU usage:

[x] Add / update the documentation to mention the default cpu limit

Testing on the VM:


Load tags dynamically from github

👏 👏 👏 👏

I updated the PR to include sessionStorage. Also I applied all the comments


Changelog

Please add a Changelog File to the Project. I always check the updates before updating packages to make sure nothing breaks and work like i expect.

Good idea! 👍

@HansKrywaa @BerkeAras
Thanks for effort!


Create Song “2023-09-30/index-3”

Automatically generated by Netlify CMS

👷 Deploy Preview for suricate processing.

Name
Link

🔨 Latest commit
38072c6625074c93e5dfb35100de24a44400e657

🔍 Latest deploy log
https://app.netlify.com/sites/suricate/deploys/65187b6cd6bf610008892887


The name 'context' does not exist in the current context

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the bug
The compiler does not see the context in the templated it component. (See the video). IntelliSense recognises everything correctly yet, the build fails.
https://github.com/dotnet/aspnetcore/assets/40038634/b559a51a-da3f-47bb-8f57-76dfabef5454
This is the same as
dotnet/aspnetcore#9642
dotnet/aspnetcore#7638
Expected Behavior
No response
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
8.0.302
Anything else?
.NET SDK:
Version:           8.0.302
Commit:            ef14e02af8
Workload version:  8.0.300-manifests.6cb9d875
MSBuild version:   17.10.4+10fbfbf2e
Runtime Environment:
OS Name:     Windows
OS Version:  10.0.22631
OS Platform: Windows
RID:         win-x64
Base Path:   C:\Program Files\dotnet\sdk\8.0.302\

@mayur-ekbote thanks for reporting this issue. Can you post minimal example code that reproduces the problem? I just tried a simple example like
@typeparam T

@Item @ItemTemplate(Item)

@functions{
    [Parameter]
    public T Item { get; set; }

    [Parameter]
    public RenderFragment<T> ItemTemplate { get; set; }
}

<Component1 Item="new { test = 42 }">
    <ItemTemplate Context="symbol">
<EMAIL_ADDRESS>    </ItemTemplate>
</Component1>

and it builds and runs fine.

Thanks for replying.
Of course, it works for the sample project for me too. But there is no good reason why IntelliSense should see everything clearly but the compiler doesn't. Clearly there is some issue with either VS not recognising the component (cleaning bin/obj doesn't help) of a specific conf somewhere in the project.
Official doc only refers to C# cases, not Blazor related cases:
https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs0103
If you can help me with the circumstances in which compiler emits this error, I will be able to repro this.

If you can share the source code where the build error can be reproduced, we can investigate. Can be done privately via https://developercommunity.visualstudio.com/.

I assume that if you remove these entries from the csproj, the build succeeds, right?
The problem is then that Visual Studio is adding these entries. To investigate that it would help us to know what action in Visual Studio you perform that causes these to get added.

Yes, the build succeeds. I have found at least one specific condition in which this happens.

Open your project.
Add a new razor component. This will add those unwanted entries.
Now, if you add any new components in the same session, those entries won't be added.

https://github.com/dotnet/razor/assets/40038634/a7933b8d-99bb-48ab-a674-f171ef540374
In summary, it happens to the very first component you add in a VS session. Subsequent components are added just fine. Clearly, there is no user setting that is resulting in this behaviour.

This appears to be duplicate of https://developercommunity.visualstudio.com/t/New-Razor-components-are-being-excluded-/10677550; please follow it for updates.


[material-ui][TextareaAutosize] Resizing unstable and styles not applied in v5.15.11

Steps to reproduce
Link to live example: https://codesandbox.io/p/sandbox/modest-ellis-gzqt92
Steps:

Attempt to resize the textarea in the provided sandbox link. You'll notice the resizing behavior is erratic and the style {{ backgroundColor: "yellow" }} fails to apply.
Upon downgrading @mui/material to version 5.15.10, both the resizing behavior and style application work as expected.

Current behavior

The textarea resizing is unpredictable, leading to a poor user experience.
Styles specified (e.g., background color) are not being applied as intended.

https://github.com/mui/material-ui/assets/52403055/b4be59e3-dd5c-44bd-ac7e-3c2edb800040
Expected behavior

The textarea should resize smoothly, without any instability.
All specified styles should be correctly applied to ensure consistent design integrity.

https://github.com/mui/material-ui/assets/52403055/c103b87f-572f-45d1-adfc-fc7f7b8bba6c
Context
No response
Your environment

npx @mui/envinfo
  System:
    OS: Linux 5.10 Alpine Linux
  Binaries:
    Node: 20.11.0 - /usr/local/bin/node
    npm: 10.2.4 - /usr/local/bin/npm
    pnpm: Not Found
  Browsers:
    Chrome: Not Found
  npmPackages:
    @emotion/react: ^11.11.3 => 11.11.3
    @emotion/styled: ^11.11.0 => 11.11.0
    @mui/base:  5.0.0-beta.37
    @mui/core-downloads-tracker:  5.15.11
    @mui/icons-material: ^5.15.11 => 5.15.11
    @mui/material: ^5.15.11 => 5.15.11
    @mui/private-theming:  5.15.11
    @mui/styled-engine:  5.15.11
    @mui/system:  5.15.11
    @mui/types:  7.2.13
    @mui/utils:  5.15.11
    @mui/x-charts: ^6.19.5 => 6.19.5
    @mui/x-data-grid: ^6.19.5 => 6.19.5
    @mui/x-date-pickers: ^6.19.5 => 6.19.5
    @mui/x-tree-view: ^6.17.0 => 6.17.0
    @types/react: ^18.2.58 => 18.2.58
    react: ^18.2.0 => 18.2.0
    react-dom: ^18.2.0 => 18.2.0
    typescript: ^5.3.3 => 5.3.3

Search keywords: TextareaAutosize,resizing,styles,5.15.11

I am facing a relevant issue with the TextField component set to "multiline" (with textarea) below:
import React from "react";
import { TextField } from "@mui/material";

export default function EmptyTextarea() {
  return (
    <div>
      <TextField
        label="MUI Text Area"
        multiline
        variant="outlined"
        inputProps={{ style: { resize: "vertical" } }}
      />
    </div>
  );
}

The resizeable icon is completely hidden.
Here is the sandbox:

https://codesandbox.io/p/sandbox/textarea-mui-5-15-11-bug-hzz4zf?file=%2Fpackage.json

Changing package.json in the sandbox back to @mui/materal v5.15.10 fixes the issue.

Style issue is resolved.


Configure commentstring for kitty FileType

This is used by plugins like commentary to comment/uncomment lines.

thanks for the contribution @Strayer


For Hyper-V container runtime resource control of memory and CPU

[My issue, Please help me!]
For Hyper-V isolation, it is possible to set memory size of a running Hyper-V container by Virtual machine memory? For the CPU (percent), it is the same issue.
I tried use the the [hcsshim] ("https://github.com/microsoft/hcsshim/") to call hcs to modify the memory and CPU setting on my Win10, the method returns error.
So how to implement the Hyper-V container that created by Win10 docker? Is it possible or not?
Please reply my question. That's really important for me!
Thanks!

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: fd671d15-cd2f-d3a0-298a-83b3b5375589
Version Independent ID: bff76cf7-b868-e30c-bc1a-fa6e4d06a11f
Content: Implementing resource controls
Content Source: virtualization/windowscontainers/manage-containers/resource-controls.md
Product: windows-server
Technology: windows-containers
GitHub Login: @taylorb-microsoft
Microsoft Alias: jgerend

We hugely appreciate your contribution, feedback, and support to our technical documentation.
We’ve phased out GitHub Issues on this repository as the feedback mechanism for content and have replaced it with a new feedback system. For more information see, Content User Feedback. As part of this rollout, we are migrating your issue where our team will use your comments to improve the documentation experience. Unfortunately, this does mean you won't be able to access this issue after the migration is complete.
All issues will be migrated by Thursday 29th August 2024.
Once again, thank you for your valuable feedback, we hope you’ll continue to contribute using our new feedback system.


Less balance queries

Decrease amount of balance queries. Solution could involve:

caching inside BalanceService,
using a single BalanceService for the system.

Done, by the way.


Added redirect for API endpoints

Purpose of this pull request
This pull request (PR) ...
Issue number:

Select the type of change:

[ ] Minor Changes - Typos, formatting, slight revisions
[ ] Update Content - Revisions and updating sections
[ ] New Content - New features, sections, pages, tutorials
[ ] Site and Tools - Updates, maintenance, and new packages for the site, Gatsby, React, etc

"/APIs/General_API_Information/Sumo_Logic_Endpoints_and_Firewall_Security": "/docs/api/getting-started",
"/APIs/General-API-Information/Sumo-Logic-Endpoints-by-Deployment-and-Firewall-Security": "/docs/api/getting-started",
"/APIs/General-API-Information/Sumo-Logic-Endpoints-and-Firewall-Security": "/docs/api/getting-started",
still unclear on one page is known by so many different references


I'm sorry, and I know this is a very un-ideal way to contact you.

King Lemming is way way way too busy with the Thermal Series to get TC updated in a timely fashion. I love and respect everyone in that community and am not trying to be disrespectful, I'm just noting what appears to be a reality of available time.
Would you please consider releasing the TC source to other community member(s)? There are so many people who would be delighted to help carry on your work.

I really think this would be the best way to get TC going again ^^^

After 2 years, it would be really beneficial for the mod to become truly open-source.

Do wee need to create a petition to make em open-source?

Do wee need to create a petition to make em open-source?

+1 for open source
Or you can give permission to decompile your mod

Yeah I would love access to the Thaumcraft source. This mod was amazing, it'd be great to see someone bring it back.


Add Community Call 2021-07-13

Signed-off-by: Sayan Chowdhury<EMAIL_ADDRESS>

I guess this replaces https://github.com/kinvolk/Flatcar/pull/421/, can you close the other PR or push your changes to that branch?


DO NOT MERGE Update java image files

@vbusch I got started on the java parts. Could you do the router and node bits? I'm not completely sure what should be there.

Yes, I updated them all yesterday, but the broker must have built from the wrong puddle (same cert issues, as last time).  Will rebuild it today, then push.

I'll just close this then, thanks!


VSTest after 1st Run will re-run failed tests but instead runs all tests

I am running the Latest. I have a Category that's set to Filter by. I have 1 test it fails and when Its supposed to rerun that failed test it runs all the tests?
Its in Batch Mode 1 Test.
IsValidServiceResponse: Received None command..Service Workflow is not active
Creating run for selected test assemblies with following parameters
SourceFilter: ThisWontBeUsed TestCaseFilter: TestCategory=Notifications
Does anyone know why this is happening?

This is a VSTest task issue, vstest itself (this repo) does not do batching in this way, please file an issue on the VSTest task: https://github.com/microsoft/azure-pipelines-tasks


Upate UI Image

Coverage remained the same at 85.836% when pulling 4dd8b53e0ae3dd3abd4e5bb40b52a3eeae605244 on JYL123:update_ui_pic into 21baf96bf4143ba6c53cba993484060485f0e4de on CS2103AUG2017-W11-B1:master.


Fetch Error: The 'referrerPolicy' field on 'RequestInitializerDict' is not implemented.

What version of Stacks.js are you using?
latest, fresh install from npm
Describe the bug
I have a Cloudflare Worker setup as an API with Hono.js, code is here
I wanted to use callReadOnlyFunction() to fetch some contract data and verify something before returning a resource, but ran into an error: "The 'referrerPolicy' field on 'RequestInitializerDict' is not implemented." (full error below)
[wrangler:inf] GET /bitcoin-face 500 Internal Server Error (16ms)
✘ [ERROR] Error: The 'referrerPolicy' field on 'RequestInitializerDict' is not implemented.
      at checkURL
  (file:///home/whoabuddy/Dev/stacks-m2m/gated-api/.wrangler/tmp/bundle-yFShja/checked-fetch.js:9:9)
      at Object.apply
  (file:///home/whoabuddy/Dev/stacks-m2m/gated-api/.wrangler/tmp/bundle-yFShja/checked-fetch.js:27:3)
      at fetchWrapper
  (file:///home/whoabuddy/Dev/stacks-m2m/gated-api/node_modules/@stacks/network/src/fetch.ts:47:29)
      at StacksMainnet.fetchFn
  (file:///home/whoabuddy/Dev/stacks-m2m/gated-api/node_modules/@stacks/network/src/fetch.ts:160:26)
      at callReadOnlyFunction
  (file:///home/whoabuddy/Dev/stacks-m2m/gated-api/node_modules/@stacks/transactions/src/builders.ts:1438:34)
      at getRecentPaymentData (file:///home/whoabuddy/Dev/stacks-m2m/gated-api/src/index.ts:46:28)
      at Array.<anonymous> (file:///home/whoabuddy/Dev/stacks-m2m/gated-api/src/index.ts:32:28)
      at Hono2.dispatch
  (file:///home/whoabuddy/Dev/stacks-m2m/gated-api/node_modules/hono/dist/hono-base.js:228:37)
      at Object.fetch
  (file:///home/whoabuddy/Dev/stacks-m2m/gated-api/node_modules/hono/dist/hono-base.js:68:19)
      at __facade_modules_fetch__
  (file:///home/whoabuddy/Dev/stacks-m2m/gated-api/.wrangler/tmp/bundle-yFShja/middleware-loader.entry.ts:45:16)

The quick fix was to switch to micro-stacks and use fetchReadOnlyFunction(), but I wanted to report it anyway in case others have run into it.
How to reproduce
This was the original code that caused an error, if more details are needed to reproduce I can push an example.

Setup new project with wrangler
Setup dependencies
Run code below

import { Hono } from 'hono';
import { serveStatic } from 'hono/cloudflare-workers';
import { Cl, callReadOnlyFunction, cvToValue } from '@stacks/transactions';

const app = new Hono();

export interface Env {}

app.get('/', (c) => {
	return c.text('Welcome to the Gated API example using machine-payable transactions on Stacks.');
});

app.get('/favicon.ico', serveStatic({ path: 'favicon.ico' }));

app.get('/bitcoin-face', async (c) => {
	// check resource is registered / payment data exists
	const paymentData = await getRecentPaymentData();
	if (!paymentData.status) {
		// if not, return invoice
		return c.text(`Please pay first: ${paymentData}`);
	}
	// if so, return resource
	return c.text('Bitcoin Face');
});

async function getRecentPaymentData() {
	// testing with hardcoded address at first
	const address = 'ST2TY3WNDVY1ZSXCPCFYK9KDJJC2TFWYVWNBXNHD4';
	const paymentData = await callReadOnlyFunction({
		contractName: 'stacks-m2m-v1',
		contractAddress: 'ST17EAYFJ9JDJAQ7RGSE6CTGH90MQH68B3FPR7EKP',
		functionName: 'get-recent-payment-data-by-address',
		functionArgs: [Cl.stringUtf8('Bitcoin Face'), Cl.principal(address)],
		network: 'testnet',
		senderAddress: address,
	});
	console.log(JSON.stringify(paymentData));
	if (paymentData === Cl.none()) {
		return {
			status: false,
			statusText: `No payment data found for ${address}.`,
			data: null,
		};
	}
	return {
		status: true,
		statusText: `Payment data found for ${address}.`,
		data: cvToValue(paymentData),
	};
}

export default app;

Expected behavior
I expected the fetch call to succeed and return data.
Additional context
None, please let me know if more info is needed!

Might be an issue with the fetch implementation of this setup.
Can you try deleting the referrerPolicy from getFetchOptions()?
import { getFetchOptions } from "@stacks/network";

const opts = getFetchOptions();
delete opts.referrerPolicy;

Closing for now, reopen if needed.


[WiP] SIP-17 use FAB API for superset API

CATEGORY
Choose one

[X] Enhancement (new features, refinement)

SUMMARY
Following SIP-17, the goal is to start replacing old FAB API.
NOTE: This is work in progress and implemented this way superset needs FAB>2.1. The changes in setup.py and requirements.txt are there just has a POC
ADDITIONAL INFORMATION

[X] Has associated issue:

REVIEWERS

Codecov Report

Merging #7482 into master will decrease coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #7482      +/-   ##
==========================================
- Coverage   65.42%   65.41%   -0.01%
==========================================
  Files         435      435
  Lines       21323    21327       +4
  Branches     2347     2347
==========================================
+ Hits        13950    13951       +1
- Misses       7257     7260       +3
  Partials      116      116

Impacted Files
Coverage Δ

superset/views/api.py
69.23% <100%> (+0.65%)
:arrow_up:

superset/common/query_context.py
20.8% <0%> (-1.6%)
: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 51fd43a...14eda98. Read the comment docs.


Model change event event is not triggered when you change time only.

Use case: Implement Time range with two datetime pickers like StartDate/EndDate where StartDate picker will have dynamically changed maxDate dependent on currently selected date in EndDate picker  and EndDate picker will have dynamically changed minDate dependent on currently selected date in StartDate picker.
Actual: It works as expected but only when you choose date from datepicker popup, it means that min/max range is updated, but when you change the time - range is not updated.
Expected: Provide same range update when you changing date or time.
Hint: "$scope.time_change" event doesn`t update model with new like but calls "setHours" method, we need to explicitly update model like "$scope.ngModel = new Date(updatedModel);" in "$scope.time_change" event to trigger change event.

Are you using deep watch on the date object, i.e. pass true as the third parameter of the watch function?

There are no watch functions, simple definition below describes actual result of datetimepicker behavior. It updates min/max range according to current start/end date picker but doesn`t updated if I use time picker. Code in hint is from your framework implementation.
<datetimepicker
name="MaintenanceStartDateTime"
ng-model="maintenanceStartDateTime"
date-format="MMM dd, yyyy"
date-options="{ minDate: minDate, maxDate: maintenanceEndDateTime }"

<datetimepicker
name="MaintenanceEndDateTime"
ng-model="maintenanceEndDateTime"
date-format="MMM dd, yyyy"
date-options="{ minDate: maintenanceStartDateTime, maxDate: maxDate }"

do you have a plunker where this issue can be reproduced?

http://plnkr.co/edit/CIsnyR3HnGn3IAraFC2d?p=preview
As you will see the idea is to create datetime range and it works correctly when you are updating date from picker (min/max dates are updating).
But when you will choose the same date for both pickers and try to create time range in hours it wont updated min/max time for other time picker.
Just try to add 1 hour to maintenance end time and you`ll notice that maintenance start hours time picker is still disabled but it supposed to be enabled cause range becomes more that one hour.

The underlying timepicker directive does not support changes on min/max without creating a new Date object. You can reproduce it at http://plnkr.co/edit/6f2volwKzPhBQ06vPXHn?p=preview Please feel free to file an issue against Angular UI and link it here https://github.com/angular-ui/bootstrap/issues/new

You are absolutely right!
Thats why I provided some hint in description.
Hint: "$scope.time_change" event doesn`t update model with new like but calls "setHours" method, we need to explicitly update model like "$scope.ngModel = new Date(updatedModel);" in "$scope.time_change" event to trigger change event.
It would be great if you could do this improvement in your event listener.
From my side, I`ll also duplicate this issue on angular-ui github.

This workaround has other side-effects and makes code more convoluted, the bug you've found should be fixed at the source of the problem.

Thanks


Cannot start training

Hi, I checked out your master branch, installed your pytorchvision package and tried running the bu3dfe training script, but it failed with the following error:
Traceback (most recent call last):
  File "../train.py", line 221, in <module>
    main()
  File "../train.py", line 143, in main
    network.resume( os.path.join(network.pathmodels, args.resume ) )
  File "/home/spectre/anaconda3/envs/thesis/lib/python3.6/site-packages/pytvision-0.0.0-py3.6.egg/pytvision/neuralnet.py", line 287, in resume
  File "/home/spectre/anaconda3/envs/thesis/lib/python3.6/site-packages/torch/nn/modules/module.py", line 535, in __getattr__
    type(self).__name__, name))
AttributeError: 'FERAttentionGMMNet' object has no attribute 'module'

I am using python 3.6 and pytorch 1.0.1

Hello David,
We created train_bu3dfe.sh for running in multiples GPUs for default ( parallel option ). For single GPU you will have comment the line 63.  I think that is the problem, I will see, and I will go a return :).

Oh, thank you for the hint, I tried running it on a single GPU machine.


How to assess the importance of the module?

Do you provide an interface to assess the importance of the model? I can't find any imformation about this from README. Should I calculate the cosine similarity of input and output by myself?

Hello, thank you for reaching out. There's no need to calculate the similarity manually. We have provided base files for block drop and layer drop, which will automatically handle similarity calculations and generate new model configuration files after the layers are dropped. If you have any further questions, feel free to let us know!

Thank you for reply. I have run the script with bash scripts/dropping/block_drop.sh and a bug was encountered
[rank1]: Traceback (most recent call last):
[rank1]:   File "/data/yuty/sk/llm-drop/src/train_bash.py", line 19, in <module>
[rank1]:     main()
[rank1]:   File "/data/yuty/sk/llm-drop/src/train_bash.py", line 10, in main
[rank1]:     run_exp()
[rank1]:   File "/data/yuty/sk/llm-drop/src/llmtuner/compression/tuner.py", line 27, in run_exp
[rank1]:     run_prune(model_args, data_args, training_args, finetuning_args, pruning_args, callbacks)
[rank1]:   File "/data/yuty/sk/llm-drop/src/llmtuner/compression/prune/workflow.py", line 99, in run_prune
[rank1]:     dropped_layer_list = BLOCK_DROP_METHODS_FUNC[pruning_args.block_drop_method](pruning_args, model, dataloader, accelerator, num_samples_each_device)
[rank1]:   File "/data/yuty/sk/llm-drop/src/llmtuner/compression/prune/block_drop.py", line 247, in discrete_block_dropping
[rank1]:     similarities = get_block_similarities(model, dataloader, accelerator, num_samples, cache_file=args.similarity_cache_file)
[rank1]:   File "/data/yuty/sk/llm-drop/src/llmtuner/compression/prune/block_drop.py", line 50, in get_block_similarities
[rank1]:     inputs, outputs, attention_mask, position_ids = prepare_calibration_input(unwrapped_model, dataloader,
[rank1]: ValueError: too many values to unpack (expected 4)

while I have not install the AutoAWQ and AutoGPTQ packages

Hi, I think this step does not require the AutoAWQ and AutoGPTQ packages. We have fixed the minor mistake in the updated version.

Thank you. All the problems are solved


The date component validators are too strict

It seems to me that the validators for date components, i.e. "date-year", "date-month" and "date-day", are too strict. For example, consider a user who is filling out the input-date mixin with the date "7th February, 1998". With the current validators we would require them to enter "07" as the day and "02" as the month, when we are perfectly capable of parsing the shorter "7" for the day and "2" as the month.
(Technically the same issue exists for the year but how often are users inputting years prior to 1000 AD? I would accept that for the year it might make more sense to keep the stricter validation but am curious to here what others think.)
We currently have an expectation in some HOF-based forms that this shorthand input should be accepted. So it would be nice if we could standardise with the rest to the HMPO stack if at all possible.
Would a PR for this issue be welcome or are there problems in making such a change? Should we make the year field accept '42' as '0042' (i.e. 42 AD)?

I agree that they're strict but it's so that we can reliably validate the date as a whole to give the user an accurate validation message.
We too accept single digit numbers for day and month (and prepend zeroes) and two digits for year (and insert the correct century). We make these changes in our controller but are careful to preserve the user's input data when there is an error.

I think you should still be able to validate the date as a whole even with a less strict validation on the components. You just need to prepend a zero to a single digit month or year, which is what I do in the new date controller.
I don't understand how you can reliably insert the correct century. That's basically the millennium bug all over again! ;-)
Do you just assume the date is in the past and set 19 as the century unless the year is <= 16? (That would be kind of neat except that you need to know whether the date should be in the future or the past. - I suppose we could inspect the validators, but that won't always work.)

We're only dealing with two sorts of dates at the moment with different criteria; the user needs to be a certain age or over to apply and passports will expire within a certain window. Our implementation wouldn't be suitable to cover all scenarios.
It seems that the day and month are okay then but we should relax the year validator.

I don't understand how you can be accepting single digits for the month and day if you are using the current validators. As they use the following regex:
 /^\d{2}$/

Which should only match on double digits.
I'd like to change them to be:
 /^\d{1,2}$/

Are you sure you're using those validators?

We're using the _process (but should probably be using process) method to format the values.

It looks like it's being done in passports-date-controller too.

date logic has been moved to the hmpo-components module