"calc" package is missing

@rultor release, tag is 0.3.1

@rultor release, tag is 0.3.1

@rultor release, tag is 0.3.1

@yegor256 OK, I will release it now. Please check the progress here

@rultor release, tag is 0.3.1

@rultor release, tag is 0.3.1

@yegor256 OK, I will release it now. Please check the progress here

@rultor release, tag is 0.3.1

@yegor256 Oops, I failed. You can see the full log here (spent 5min)
Generating file(s) ppt-slides.sty

Processing file ppt-slides.dtx (package) -> ppt-slides.sty
File ppt-slides.dtx ended by \endinput.
Lines  processed: 742
Comments removed: 386
Comments  passed: 0
Codelines passed: 332

To finish the installation you have to move the ".sty"
file into a directory searched by TeX. To produce the
documentation run the file ".dtx" through LaTeX. If any
questions, submit a new GitHub issue.
 )
No pages of output.
Transcript written on ppt-slides.log.
This is pdfTeX, Version 3.141592653-2.6-1.40.25 (TeX Live 2023) (preloaded format=pdftex)
 restricted \write18 enabled.
entering extended mode
(./ppt-slides.ins
(/usr/local/texlive/2023/texmf-dist/tex/latex/base/docstrip.tex
Utility: `docstrip' v2.6b <2022-09-03>
English documentation    <2023-10-10>

**********************************************************
* This program converts documented macro-files into fast *
* loadable files by stripping off (nearly) all comments! *
**********************************************************

********************************************************
* No Configuration file found, using default settings. *
********************************************************

)
File ppt-slides.sty already exists somewhere on the system.
Overwrite it if necessary? [y/n]
\answer=
Generating file(s) ppt-slides.sty

Processing file ppt-slides.dtx (package) -> ppt-slides.sty
File ppt-slides.dtx ended by \endinput.
Lines  processed: 742
Comments removed: 386
Comments  passed: 0
Codelines passed: 332

To finish the installation you have to move the ".sty"
file into a directory searched by TeX. To produce the
documentation run the file ".dtx" through LaTeX. If any
questions, submit a new GitHub issue.
 )
No pages of output.
Transcript written on ppt-slides.log.
Typesetting ppt-slides
This is pdfTeX, Version 3.141592653-2.6-1.40.25 (TeX Live 2023) (preloaded format=pdflatex)
 \write18 enabled.
entering extended mode
 ! Compilation failed
container 66ba38d3be4c281ec5ca063aa84fe7f6465dd3a2f19b2e865addc93d0a733aac is dead
Tue Jan 16 03:01:53 AM CET 2024

@rultor release, tag is 0.3.1

@rultor release, tag is 0.3.1

@yegor256 OK, I will release it now. Please check the progress here

@rultor release, tag is 0.3.1

@yegor256 Done! FYI, the full log is here (took me 5min)


set SpecGenerationToProcess earlier

If we get an error in syncMemberServices (causing handler exit), we lose the necessary update to SpecGenerationToProcess.
We should set SpecGenerationToProcess as soon as we know we should. Right after syncClusterRoles should be good, since the "state" from that function is what we would be worried about losing an an error bailout. We don't need to worry about currentHash and cr.Status.LastConnectionHash since we'll get the same values for those on the next handler.

Fixed on master; will close this when 0.4.2 is out.


[Unity] Using DiscordRpc.Respond returns code 4012 "no join request for that user"

Currently trying to add Discord RPC to our game in Unity and for some reason DiscordRpc.Respond always ends up popping an error with code 4012, even when my requestCallback is simple (view example below).
private void OnRequestCallback(DiscordRpc.JoinRequest request)
{
    DiscordRpc.Respond(request.userId, DiscordRpc.Reply.Yes);
}

My party stats are setup properly (partyId, partySize, partyMax) and my joinSecret is set to my partyId but encrypted with aes256.
The request to join button is shown properly to another user that's been added as a test user of our app.
That error code doesn't make much sense either considering I'm responding to a request callback.

Having this issue as well, seemingly random when it works as well. (Not using unity here, made a custom wrapper for Game Maker).

This error occurs when the client is not aware of a join request from a user. If you wait too long to respond to a join request (more than 30 seconds) it will timeout on our client.

Yeah that's what I would expect it to be, but the issue is that I get this error when responding immediately after receiving a joinRequest callback. So I would assume the client is aware of that request.

When you look at our client after receiving a join request it should show a notice bar at the top of the client. If that bar is showing it should not be possible to receive this error unless the user ID being passed back doesn't match the user id showing in the client.

I did a series of tests and here's what I could make out of it :

If my game, my discord client and my requester's Discord client are freshly restarted, the request will work properly and I'll be able to accept or refuse properly.
If my game client has received 2 requests from the same client in the same run, the game invite will appear in the Discord client but disappears instantaneously and I get a code 4012 when responding.
If my game is running fresh and I receive a request from someone I already have received a request from, without I or him restarting our Discord clients, the request shows up in my Discord and seems like it is available but as soon as I respond, I get a 4012.

So it seems like something gets stuck when a request has already been received by a given person.

I'm seeing a similar issue from other developers @night. Going to try and reproduce with @rawkjs steps above.

@rawkjs In your reproduction steps, when you say "the request shows up in my Discord/will appear in the Discord client," are you attempting the entire flow with Discord-only and not responding to the SDK with in-game UI?
Just so I can clarify my testing steps.

@msciotti I just tried doing it from the Discord UI and it seems to work properly when the requests don't start disappearing as they get in. If I respond to those apparently valid requests through the RPC SDK instead I get the 4012.

@rawkjs to clarify, everything works if done only from the Discord side. But responding via the SDK gets you the 4012?
We pushed some changes late Tuesday night regarding some bugs we had in joining logic. Can you confirm that your issue persists? If so, then we'll go from there.

Having this problem, even in non-unity apps.

I can confirm that the JoinCallback isn't triggered on the person joining either when hitting "Yes" through discord. I was testing on the 2.01 version I'll build the latest and see if I still have these issues.

Alright. Your implementation and logic seems sane. We will try and boot up a new Unity app and see if we can reproduce.

@rawkjs @StrikerMan780 can you two also confirm that all of the users who are trying to use Ask to Join have been whitelisted for your app? Both the requester and the receiver?
I'm sure they are; just doing do diligence.

Yes, they are whitelisted.

In my case both users I've tested with are whitelisted. I am not, but I'm the creator of the app (if that changes anything).
And also, no callback when joining through an invite or when asking to join either. Still testing with the 2.0.1 build
I'm having a hard time building the latest version and am currently in a rush so I won't be able to take the time to get this working and test it on the latest build.

Issue on my end isn't fixed even after patching.
Some more details though.
If I call Discord_Respond through a function I have, it doesn't work.
but If I call Discord_Respond through same function I'm running Discord_RunCallbacks through, it seems to work.
I'll run some more tests to see what's causing this.

@GamerUntouch that's really interesting behavior. Definitely let us know if you can isolate it.

Got it narrowed down.
If I call Discord_Respond every frame (30 FPS) it works, but if I manually call it, it doesn't seem to work. Is the request getting culled from discord's servers a couple milliseconds after the request is called? Changing the game to 1 FPS stops it from working.

So, after doing some tooling around with the repo's default Unity example, I'm still not able to repro this issue.
If you open this repo's default Unity example, are you able to successfully receive and respond to ATJ requests between two machines?
I just did this myself this morning, and it works for me on both a macbook and a windows machine.

Instead of using my app, I decided to compile the send_presence.c example straight from cmake and it's still giving me the issue.
Is it something to do with users?

I haven't been able to get solid repro steps, but my hunch is that this is a rate limiting issue.
As mentioned in the documentation, there is a 1 update per 15 second rate limit to Discord's servers. It's possible that spamming the hell out of UpdatePresence() calls and then trying to receive join requests could cause this behavior. Your local client would say "Yup I'm up to date we're good" while the server that fans out your presence to other users still thinks you're about 30 UpdatePresence() calls in the past.
My working theory of "hit the button in the button-clicker example and then try to handle a request" was not fruitful, so I'll continue looking for a real reproduction.

There are not, no. Even in the case where a user asks to join and then hits "nevermind" at the top of their discord client, you can still respond to the request. They will just never receive the secret.

After some testing, I've 100% found out what's causing the problem.
Occasionally the client ignores requests, the " would like to join! Yeah Nah" header doesn't appear in my discord client. If it does appear, it doesn't give me the error, otherwise it does.
Seems that the problem has something to do with the discord client rather than the RPC in this case.

While I solved the issue of not getting join callbacks, it seems I still get "no join request for that user" when I respond yes if someone asks to join.

Yeah the logic is sane. We are pretty certain that it's tied to a rate limiting thing, and I've experienced getting the error myself in testing. I can't get a solid reproduction using our sample app.
@GamerUntouch's response is more of a symptom than a cause—the symptom being that requests seem to "disappear" from Discord. If you look side by side with your game UI and the Discord client, you'll probably see that when Untouch's scenario occurs, you'll get an error.
We're working to figure out a 100% repro step in order to debug, but we haven't found one yet. I don't think we need any more "me too" comments here unless you can provide a step by step repro of the bug.

 I am very sorry that it's taken so long.
The "good" news is that it was a Discord client bug, and not an SDK bug. So there should be no need to update the SDK in your game to get the fix.
The fix was merged on Friday, and should be deployed to our Canary client within the next few days. I will comment here again when it's deployed to canary, and hopefully folks having this issue can install it and try for me.

OK, I have confirmed on my machine with the latest Discord Canary build that the 100% error repro I had before is now gone.
If anyone in this thread had this issue, please make sure you or anyone with the issue is on the most up to date Canary build, and give it a try. And please let me know if it is solved.
You can download our Canary client if you don't have it at:
Mac: https://discordapp.com/api/download/canary?platform=osx
Windows: https://discordapp.com/api/download/canary?platform=win

OK, after many moons, I am marking this issue closed and resolved. Thank you everyone for your patience, as I know this has been sitting around for a while.


Panic with Go 1.10 With Deoplete-Go and NVim

I'm having a lot of issues with gocode panicking. I'll have freshly opened Vim in a Go project and start typing. Neovim will get flooded with messages about how gocode's panicked.
Here are the logs from the debug:
panic: runtime error: slice bounds out of range

goroutine 28 [running]:
runtime/debug.Stack(0xb, 0xc42005e820, 0x1)
	/usr/local/Cellar/go/1.10.3/libexec/src/runtime/debug/stack.go:24 +0xa7
runtime/debug.PrintStack()
	/usr/local/Cellar/go/1.10.3/libexec/src/runtime/debug/stack.go:16 +0x22
main.(*Server).AutoComplete.func1(0xc42022e340)
	/Users/catherinecai/go/src/github.com/mdempsky/gocode/server.go:72 +0x94
panic(0x141cf60, 0x16fab90)
	/usr/local/Cellar/go/1.10.3/libexec/src/runtime/panic.go:502 +0x229
main.(*Server).AutoComplete(0x172a070, 0xc42018ac30, 0xc42022e340, 0x0, 0x0)
	/Users/catherinecai/go/src/github.com/mdempsky/gocode/server.go:84 +0x9ac
reflect.Value.call(0xc4201c4000, 0xc420168038, 0x13, 0x149d878, 0x4, 0xc42005ef18, 0x3, 0x3, 0xc42015e2c0, 0x13f65e0, ...)
	/usr/local/Cellar/go/1.10.3/libexec/src/reflect/value.go:447 +0x969
reflect.Value.Call(0xc4201c4000, 0xc420168038, 0x13, 0xc42004cf18, 0x3, 0x3, 0x14688a0, 0x147f201, 0xc42015f440)
	/usr/local/Cellar/go/1.10.3/libexec/src/reflect/value.go:308 +0xa4
net/rpc.(*service).call(0xc42016e0c0, 0xc420178050, 0xc42017ee48, 0xc42017ee60, 0xc42017c080, 0xc420164180, 0x13e24c0, 0xc42018ac30, 0x16, 0x13e2480, ...)
	/usr/local/Cellar/go/1.10.3/libexec/src/net/rpc/server.go:384 +0x14e
created by net/rpc.(*Server).ServeCodec
	/usr/local/Cellar/go/1.10.3/libexec/src/net/rpc/server.go:480 +0x43a
2018/07/21 11:36:21 Got autocompletion request for '/Users/catherinecai/go/src/gitlab.com/catherinetcai/rekognize/server/server/face.go'
2018/07/21 11:36:21 Cursor at: 190
2018/07/21 11:36:21 -------------------------------------------------------

What I'm running:
Go: go version go1.10.3 darwin/amd64
Neovim Version:
NVIM v0.3.0
Build type: Release
LuaJIT 2.0.5
Compilation: /usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang -Wconversion -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -I/tmp/neovim-20180612-71518-1f95nfa/neovim-0.3.0/build/config -I/tmp/neovim-20180612-71518-1f95nfa/neovim-0.3.0/src -I/usr/local/include -I/usr/local/opt/gettext/include -I/usr/include -I/tmp/neovim-20180612-71518-1f95nfa/neovim-0.3.0/build/src/nvim/auto -I/tmp/neovim-20180612-71518-1f95nfa/neovim-0.3.0/build/include
Compiled by<EMAIL_ADDRESS>
I've already checked over with the folks working on deoplete-go, and they directed me here since it's a gocode issue. Not sure where to go next with this...

Me too


Add form verification example

/to @aghassemi
Fixes ampproject/amphtml#9700

I'd be glad to! I was going for the level of brevity in the neighboring sections, but I understand if more detail is needed for a more complex feature.

PTAL

Friendly ping @sebastianbenz  : )

All good, thank you!


Root access still allowed until reboot

Interestingly, on a Digital Ocean "drop" (Ubuntu 16.04), sshd was still allowing root login after this role/task was run.  Confirmed /etc/ssh/sshd_config had "PermitRootLogin no".
This was even after doing a systemctl restart ssh.service
After a reboot, root was no longer permitted.
Not sure how to debug this further.

That is really interesting, thanks for the report. I will look into this today and get back to you.

Follow up question: What happens if you create the droplet with an SSH key attached to it?

I did create it with an SSH key attached...

Thanks for the report. That makes sense.


Add gas_used to Reply

Whenever you get a reply it would be interesting to know the gas_used value. This is especially important for cases where .with_gas_limit( is set.

We (CronCat) would LOVE to have this

Unfortunately this is a breaking change since struct Reply is not #[non_exhaustive]

Makes sense!


Implement "mapping preview" behavior for CopyTo action

#2171  didn't implement this behavior. It should be implemented as well.

See #501


Pledged payments not set to closed lost on recurring donation closure when updated from trigger

I have manually tested creating a recurring donation and then updating the Open Ended Status from Open to Closed.  In this scenario all the related donations that previously had a stage of Pledged are changed to Closed Lost.
However, when I update the Open Ended Status on a recurring donation within a trigger, no change is being made to the Stage on the related donation records.
Can you suggest why this might be the case?

@Filikin are you still running into this problem?  Can you attach us a short version of code that replicates the problem?  Note that we do use a flag internally to avoid recursive changes to the RD or its Opps.  So if you are writing code that inserts or modifies the RD twice, that would cause a problem.  The first insert/modify sets the flag and does its work.  If the code then doesn't go out of context, as it would from a user action, then the second modify comes in, and the flag is still set, and it bails out.

closing since I haven't heard anything back and we can't reproduce this problem.


Fix mypy errors in flytekit/types

TL;DR
Fix all mypy errors in flytekit/types:
flytekit/types/pickle/pickle.py:35: error: Return type "Type[Any]" of "python_type" incompatible with return type "None" in supertype "FlytePickle"
flytekit/types/pickle/pickle.py:38: error: Incompatible return value type (got "Type[_SpecificFormatClass]", expected "Type[T]")
flytekit/types/file/file.py:242: error: Argument 1 to "get_format" of "FlyteFilePathTransformer" has incompatible type "Union[Type[FlyteFile[Any]], PathLike[Any]]"; expected "Type[FlyteFile[Any]]"
flytekit/types/file/file.py:345: error: Variable "expected_format" is not valid as a type
flytekit/types/file/file.py:345: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
flytekit/types/file/file.py:352: error: Type expected within [...]
flytekit/types/file/file.py:352: error: The type "Type[FlyteFile[Any]]" is not generic and not indexable
flytekit/types/directory/types.py:293: error: Variable "expected_format" is not valid as a type
flytekit/types/directory/types.py:293: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
flytekit/types/directory/types.py:303: error: Type expected within [...]
flytekit/types/directory/types.py:303: error: The type "Type[FlyteDirectory[Any]]" is not generic and not indexable
flytekit/types/file/__init__.py:31: error: Type expected within [...]
flytekit/types/file/__init__.py:31: error: Invalid type alias: expression is not a valid type
flytekit/types/file/__init__.py:31: error: The type "Type[FlyteFile[Any]]" is not generic and not indexable
flytekit/types/file/__init__.py:37: error: Type expected within [...]
flytekit/types/file/__init__.py:37: error: Invalid type alias: expression is not a valid type
flytekit/types/file/__init__.py:37: error: The type "Type[FlyteFile[Any]]" is not generic and not indexable
flytekit/types/file/__init__.py:43: error: Type expected within [...]
flytekit/types/file/__init__.py:43: error: Invalid type alias: expression is not a valid type
flytekit/types/file/__init__.py:43: error: The type "Type[FlyteFile[Any]]" is not generic and not indexable
flytekit/types/file/__init__.py:48: error: Type expected within [...]
flytekit/types/file/__init__.py:48: error: Invalid type alias: expression is not a valid type
flytekit/types/file/__init__.py:48: error: The type "Type[FlyteFile[Any]]" is not generic and not indexable
flytekit/types/file/__init__.py:54: error: Type expected within [...]
flytekit/types/file/__init__.py:54: error: Invalid type alias: expression is not a valid type
flytekit/types/file/__init__.py:54: error: The type "Type[FlyteFile[Any]]" is not generic and not indexable
flytekit/types/file/__init__.py:60: error: Type expected within [...]
flytekit/types/file/__init__.py:60: error: Invalid type alias: expression is not a valid type
flytekit/types/file/__init__.py:60: error: The type "Type[FlyteFile[Any]]" is not generic and not indexable
flytekit/types/file/__init__.py:66: error: Type expected within [...]
flytekit/types/file/__init__.py:66: error: Invalid type alias: expression is not a valid type
flytekit/types/file/__init__.py:66: error: The type "Type[FlyteFile[Any]]" is not generic and not indexable
flytekit/types/file/__init__.py:72: error: Type expected within [...]
flytekit/types/file/__init__.py:72: error: Invalid type alias: expression is not a valid type
flytekit/types/file/__init__.py:72: error: The type "Type[FlyteFile[Any]]" is not generic and not indexable
flytekit/types/file/__init__.py:77: error: Type expected within [...]
flytekit/types/file/__init__.py:77: error: Invalid type alias: expression is not a valid type
flytekit/types/file/__init__.py:77: error: The type "Type[FlyteFile[Any]]" is not generic and not indexable
flytekit/types/file/__init__.py:83: error: Type expected within [...]
flytekit/types/file/__init__.py:83: error: Invalid type alias: expression is not a valid type
flytekit/types/file/__init__.py:83: error: The type "Type[FlyteFile[Any]]" is not generic and not indexable
flytekit/types/directory/__init__.py:21: error: Type expected within [...]
flytekit/types/directory/__init__.py:21: error: Invalid type alias: expression is not a valid type
flytekit/types/directory/__init__.py:21: error: The type "Type[FlyteDirectory[Any]]" is not generic and not indexable
flytekit/types/schema/types.py:38: error: The return type of a generator function should be "Generator" or one of its supertypes
flytekit/types/schema/types.py:43: error: Free type variable expected in Generic[...]
flytekit/types/schema/types.py:73: error: Free type variable expected in Generic[...]
flytekit/types/schema/types.py:79: error: Argument 1 to "generate_ordered_files" has incompatible type "str"; expected "PathLike[Any]"
flytekit/types/schema/types.py:96: error: "SchemaReader" expects no type arguments, but 1 given
flytekit/types/schema/types.py:108: error: Argument 1 to "_read" of "LocalIOSchemaReader" has incompatible type "str"; expected "PathLike[Any]"
flytekit/types/schema/types.py:117: error: Argument 1 to "_read" of "LocalIOSchemaReader" has incompatible type "*List[str]"; expected "PathLike[Any]"
flytekit/types/schema/types.py:120: error: "SchemaWriter" expects no type arguments, but 1 given
flytekit/types/schema/types.py:122: error: Argument 2 to "__init__" of "SchemaWriter" has incompatible type "Optional[Dict[str, type]]"; expected "Dict[str, type]"
flytekit/types/schema/types.py:282: error: "None" not callable
flytekit/types/schema/types.py:285: error: Argument 1 to "SchemaWriter" has incompatible type "PathLike[Any]"; expected "str"
flytekit/types/schema/types.py:286: error: Argument 1 to "SchemaReader" has incompatible type "PathLike[Any]"; expected "str"
flytekit/types/schema/types.py:388: error: "dict" expects 2 type arguments, but 1 given
flytekit/types/schema/types.py:404: error: The type "Type[FlyteSchema]" is not generic and not indexable
flytekit/types/schema/types_pandas.py:22: error: Argument "columns" to "_read" of "ParquetIO" has incompatible type "Optional[List[str]]"; expected "List[str]"
flytekit/types/schema/types_pandas.py:89: error: "LocalIOSchemaReader" expects no type arguments, but 1 given
flytekit/types/schema/types_pandas.py:98: error: "LocalIOSchemaWriter" expects no type arguments, but 1 given
Found 59 errors in 7 files (checked 10 source files)

Type

[X] Bug Fix
[ ] Feature
[ ] Plugin

Are all requirements met?

[ ] Code completed
[ ] Smoke tested
[ ] Unit tests added
[ ] Code documentation added
[ ] Any pending items have an associated Issue

Follow-up issue
https://github.com/lyft/flyte/issues/1330

kinda lost as to why tests were failing, investigating

Omg this is crazy. Awesome

Test errors seem unrelated to this PR. will rerun it after a few hours.
        if rsp.status_code != self._HTTP_OK:
            raise user.FlyteValueException(
                rsp.status_code,
>               "Request for data @ {} failed. Expected status code {}".format(from_path, type(self)._HTTP_OK),
            )
E           flytekit.common.exceptions.user.FlyteValueException: Value error!  Received: 406. Request for data @ https://cdn.sqlitetutorial.net/wp-content/uploads/2018/03/chinook.zip failed. Expected status code 200


Quickstart repos not found

File: docker-cloud/getting-started/deploy-app/3_prepare_the_app.md, CC @londoncalling
git clone https://github.com/moby/mobycloud-quickstart-python.git
Cloning into 'mobycloud-quickstart-python'...
remote: Repository not found.
fatal: repository 'https://github.com/moby/mobycloud-quickstart-python.git/' not found

@shotokai Thanks for catching this, please see the referenced PR ^^


⚠ Digital Ocean - https://status.digitalocean.com/ has degraded performance

In fb81130, Digital Ocean - https://status.digitalocean.com/ (https://status.digitalocean.com/api/v2/status.json) experienced degraded performance:

HTTP code: 200
Response time: 358 ms

Resolved: Digital Ocean - https://status.digitalocean.com/ performance has improved in 7da15ab.


Login does not provide feedback

When logging in, if user name / password is incorrect, there is no visual feedback that login failed.

Yeah, good catch. We def need to fix that. Also, how do we accomplish a password reset function without having an outbound email notification system?

I can do this one


HTTP/1.1 507 Insufficient Storage

python code
c.objects_by_sync_token()

error
caldav.lib.error.ResponseError: ResponseError at 'HTTP/1.1 507 Insufficient Storage', reason no reason

But this code is working(need sync token)
c.search(event=True)

Problem at the server side.  Yandex?

Hi, yes!

Unfortunately, objects_by_sync_token does not work at all servers. :-(

This method(objects_by_sync_token) working on Yandex, but crash when too many events on the calendar

That's cool, you've discovered a scaling problem at the Yandex-side of things :-)  In any case the error message is thrown by the server and is not happening at the client side, so you should raise an issue with Yandex :-)


Global Time for motion_sensor / imu is in the future relative to system clock

Required Info

Camera Model
D435i, D455

Firmware Version
<IP_ADDRESS>

Operating System & Version
Ubuntu 18.04

Kernel Version (Linux Only)
5.4.0-91

Platform
PC / x86-64 / Intel CPU

SDK Version
v2.50.0

Language
C++

Segment
Robot

Issue Description
Hello!
I notice when querying the motion sensor's global timestamps from both D435i and D455s, I get timestamps that vary from a 4ms delay to 40ms in the future. Is this expected behaviour?
Sample code (adapted from examples/motion)
#include <librealsense2/rs.hpp>
#include <cstring>
#include <thread>
#include <chrono>
#include <iostream>

int main(int argc, char * argv[]) try
{
    // Declare RealSense pipeline, encapsulating the actual device and sensors
    rs2::pipeline pipe;
    // Create a configuration for configuring the pipeline with a non default profile
    rs2::config cfg;

    // Add streams of gyro and accelerometer to configuration
    cfg.enable_stream(RS2_STREAM_ACCEL, RS2_FORMAT_MOTION_XYZ32F);
    cfg.enable_stream(RS2_STREAM_GYRO, RS2_FORMAT_MOTION_XYZ32F);

    // Start streaming with the given configuration;
    // Note that since we only allow IMU streams, only single frames are produced
    auto profile = pipe.start(cfg, [&](rs2::frame frame)
    {
        // Cast the frame that arrived to motion frame
        auto motion = frame.as<rs2::motion_frame>();
        // If casting succeeded and the arrived frame is from gyro stream
        if (motion && motion.get_profile().stream_type() == RS2_STREAM_GYRO && motion.get_profile().format() == RS2_FORMAT_MOTION_XYZ32F)
        {
            // Get the timestamp of the current frame
            double ts = motion.get_timestamp();
            auto tsUs = static_cast<int64_t>(ts) * 1000;
            int64_t currSystemStamp = std::chrono::duration_cast<std::chrono::microseconds>(std::chrono::system_clock::now().time_since_epoch()).count();

            std::cout << "System clock: " << currSystemStamp << std::endl;
            std::cout << "Gyro clock: " << tsUs << std::endl;
            std::cout << "Difference: " << currSystemStamp - tsUs << std::endl;

            // // Get gyro measures
            // rs2_vector gyro_data = motion.get_motion_data();
        }
        // If casting succeeded and the arrived frame is from accelerometer stream
        if (motion && motion.get_profile().stream_type() == RS2_STREAM_ACCEL && motion.get_profile().format() == RS2_FORMAT_MOTION_XYZ32F)
        {
            // // Get accelerometer measures
            // rs2_vector accel_data = motion.get_motion_data();
        }
    });

    // Main loop
    while (true)
    {
        std::this_thread::sleep_for(std::chrono::seconds(1));
    }
    // Stop the pipeline
    pipe.stop();

    return EXIT_SUCCESS;
}
catch (const rs2::error & e)
{
    std::cerr << "RealSense error calling " << e.get_failed_function() << "(" << e.get_failed_args() << "):\n    " << e.what() << std::endl;
    return EXIT_FAILURE;
}
catch (const std::exception& e)
{
    std::cerr << e.what() << std::endl;
    return EXIT_FAILURE;
}

Hi @jwpleow  A noticable drift in timing can sometimes occur when Global Time is enabled.  Usually, the only solution is to disable Global Time.  Information about doing so in C++ is provided at https://github.com/IntelRealSense/librealsense/issues/9076
If having Global Time enabled is important to you then you could check whether adding a hardware_reset() instruction to reset the camera when the script launches improves your results.  A C++ code example for this is at https://github.com/IntelRealSense/librealsense/issues/2161#issuecomment-408779150

I see, thank you!

@jwpleow  do you success solve this problem


Build kinoite-nightly and kinoite-beta

They are available here: https://quay.io/organization/fedora-ostree-desktops
I think it'd be cool to build them (especially for nvidia users), what do people think?

Looks like they haven't been built in a while, maybe if they come back for the next release cycle we should investigate, keeping this open as a tracker.


Lua Line Chart - Multiple Lines

Hi,
is it possible to draw multiple lines in one Chart (maybe in different Colors with Legend)?
It would be very cool to draw ex. multiple Voltages or Currents in a single chart to compare.
And what's about a custom/high res scale, to make exact reading easier?
But I think that should be a optional setting, to keep it as easy as it currently is
Thanks four your work!

Hi @HHerrgesell,
It is a good idea. One would have to extend the chart library API (https://github.com/lundmar/gtkchart) to support writing to multiple line numbers with legends and map corresponding functions to lua.
Unfortunately, I don't have time to implement such features but I invite anyone to help implement such feature.
Until then, one will have to use the lxi_log_* API and simply write the data to .csv and then manually import the data into multiple lines.


Pass custom mysqldump arguments for scheduled backups

Is it possible to pass custom mysqldump arguments when configuring scheduled backups? I've had a look at the documentation and did not see an obvious way to do it.
e.g. --default-character-set=utf8mb4
Thanks..

xref: https://github.com/kubedb/project/issues/221

It is not possible today. But it should be possible.

OK cool, thanks

We should keep the issue open until we have addressed it.

https://github.com/kubedb/project/issues/238


Apply custom class to string

I'm submitting a...

Question

Reproduction steps
I'm looking the way to highlight some text in the editor, for example when I write ???category I want to apply some CSS style to that part of the text, it's possible ?
Thank you!
EDIT:
Here some code for what I want to do, for example if I write &Hello the text parsed and styled to
&
Hello

CSS doesn't provide a way to style part of an element. To do this with CSS you'd need to find the text you want, wrap it in a span, and add the class to the span. When the search text changes, you'd need to undo it so that the DOM is in the same state as when you found it.
Far, far simpler is to allow the browser to do that work for you: Chrome (and possibly other modern browsers) will highlight all instances of text matching the Ctrl-F'd string. e.g. tapping Ctrl-F "css" (without quotes) highlights 3 prior instances of "css" on this page.

What I mean to apply some CSS style is like when you write ## Headline 2 is parsed and styled.
##
Headline2

Aha - sorry, i misunderstood ??category as you searching for category (probably because ? is the search-backwards hotkey in less on Unix systems). Then... i have no idea. That would seem to require a hook in the API which, to the best of my very limited knowledge, doesn't yet exist.

You could do that with the CodeMirror API.
First, look for your word with cm.findWordAt():

cm.findWordAt(pos: {line, ch}) → {anchor: {line, ch}, head: {line, ch}}
Returns the start and end of the 'word' (the stretch of letters, whitespace, or punctuation) at the given position.

Then, mark this section with a class with doc.markText:

doc.markText(from: {line, ch}, to: {line, ch}, ?options: object) → TextMarker
Can be used to mark a range of text with a specific CSS class name. from and to should be {line, ch} objects. The options parameter is optional. When given, it should be an object that may contain the following configuration options:

className: string
Assigns a CSS class to the marked stretch of text.
[...]

Hi, when would be a good idea to call the function findWordAt() after the text change in the texteditor or there is some event from EasyMDE I can catch? thanks

@dignajar  were you able to get the highlighting to work? I have an event handler for change events that should be adding in highlights, but am unable to see them. it appears to be at least somewhat working since I can query for all of the marks and they show up. Any ideas?
this.easyMDE.codemirror.on('change', () => {
      const { anchor, head } = this.easyMDE.codemirror.findWordAt({
        line: 2, //tried many positions, seems to identify words correctly.
        ch: 4
      })
      console.log(anchor, head) //Pos {line: 2, ch: 2, sticky: null} Pos {line: 2, ch: 7, sticky: null}
      console.log(
        this.easyMDE.codemirror.doc.markText(anchor, head, {
          css: 'color:FE3'
        })
      )//TextMarker {lines: Array(1), type: "range", doc: Doc, id: 1, css: "color:FE3"}
      console.log(this.easyMDE.codemirror.doc.getAllMarks())//[TextMarker]


Use polyfil on extension api calls

I recommend you to use this library to prevent undefined behaviour of some extension api methods in different browsers
https://github.com/mozilla/webextension-polyfill?ysclid=lonhzzb6qa286801949

I'm already using it. Even though I've added it as a depndency and let vite dynamically import the code

As explained I don't see the issue with the current code


Automatically Find Source of Inactive Reconciliation Errors

Is your feature request related to a problem? Please describe.
It is currently a manual and confusing process to find the source of inactive reconciliation errors. In rosetta-cli, you must create a JSON file containing all account-currency pairs that should be checked for missing ops on each block and then you must provide a start height to look for the issue.
This also requires a knowledge of the different reconciliation strategies. If we find inactive errors automatically, it will allow for much clearer logging.
Describe the solution you'd like
The reconciler should automatically find the block with missing balance changing operations.
Describe alternatives you've considered
Only viable alternative right now is to use the manual strategy but this is cumbersome and confusing.

Moving this issue to rosetta-cli: https://github.com/coinbase/rosetta-cli/issues/24


Not allowed to load local resource: ../application.js

page("#my_id").trigger('click') isn't firing the elements jQuery event handler. I'm guessing this error related to the "Not allowed to load local resource" message:
...
{"response"=>false}
{"name"=>"click", "args"=>[3, 2]}
poltergeist [1366370900594] state default -> mouse_event
poltergeist [1366370900596] state mouse_event -> loading
Not allowed to load local resource: file:///home/me/rails/my_app/public/assets_test/application.css
...
Not allowed to load local resource: file:///home/me/rails/my_app/public/assets_test/application.js

Closing this due to lack of info (it's possible the last comment was cut off due to bad html escaping)

I faced the same issue as the OP and this was the only reference I could find online of someone facing my exact problem. In my case it turned out to NOT be an issue with Poltergeist. One of the former devs on our team had added the following two lines of code to test.rb:
config.action_controller.asset_host = "file://#{::Rails.root}/public"
config.assets.prefix = 'assets_test'

Obviously, removing those lines made all my problems disappear.
Just adding the comment here in case anyone else runs into this issue.


multiple-value gopass.GetPasswd() in single-value context

Hi Paul,
I've encountered this issue while compiling drac-kvm on my own: ./main.go:32:32: multiple-value gopass.GetPasswd() in single-value context
Here is the simple fix:
index 477f995..6170af5 100644
--- a/main.go
+++ b/main.go
@@ -29,7 +29,13 @@ const(

 func promptPassword() string {
        fmt.Print("Password: ")
-       return string(gopass.GetPasswd())
+       pass, err := gopass.GetPasswd()
+
+       if err != nil {
+               log.Fatalf("GetPasswd error (%s)", err)
+       }
+
+       return string(pass)
 }

 func main() {

Facing the same issue, any hope on providing this as a PR @radek-senfeld ?

This repo is unmaintained AFAIK. The fix has been merged in a fork: https://github.com/rockyluke/drac-kvm/issues/7
Sorry for the belated reply..


Game is crashing at startup for some people

Some people are reporting that the game is crashing on startup with just a black screen even after they try launching it more than 4 times (which is the max I have ever had before game starts).
If this issue is happening to you, I would greatly appreciate if you would respond to this thread with:
(a) Exactly when the game is crashing for you and what you see or don't see when it happens
(b) what type of headset
(c) Windows 10 or Windows 11
(d) Steam version
(e) If applicable, Oculus version
(f) Which OpenXR runtime you are using (Steam, Oculus, WMR, etc)
(g) confirming that you are in VR, controllers already active, when you try to launch the game
(h) how you are trying to launch the game (clicking directly on .exe, running through steam library, running by clicking on steam shortcut, etc.)
And post your logs from your logs folder which should be by your "mods" folder that you installed the three VR related mods in.  If you don't feel comfortable posting your logs here (I think they don't contain any personal information, but it's up to you, then you can message me on discord: teddybear082#5496
I do want to help everyone play if I can, so I will be committed to trying to fix this.
There is a test release here that tries not running certain Steam API commands to see if that makes a difference:
https://github.com/teddybear082/CrueltySquadVR-Modloader/releases/tag/testing-only-no-steam-release-3-23-23

Second person confirmed OpenXR Toolkit was the issue and that disabling the toolkit worked to allow them to run the game so closing this issue as solved. This worked for a Vive Pro and Oculus user.


List does not always propagate ViewContextChanged

If the list is reasonably dynamic and the elements inside change, then ViewContextChanged is not always propagated to all the elements. I have yet to figure out when / why this happens.

It looks like a WidgetPod has a wrong children_view_context_changed or view_context_changed. Removing the if origin != self.state.origin in WidgetPod::set_origin fixes the bug. Though that's probably not the correct fix.

Yes that makes sense. I guess the correct fix would be setting the initial value of view_context_changed to true. That way every Widget receives ViewContextChanged at least once.

I would like to reproduce this issue myself. Best would be a piece of code I could run as a Druid example.
I tried recreating this manually already but have failed at doing so. So if an example code can't be provided, I would at least like to better understand what is going on here.
From the video it seems that at first it works properly. Is that "Vertical" dropdown widget cached and/or hidden as opposed to recreated? To put it another way, does a good widget state get ruined, or does the 2nd instance widget creation run through a different code path?

I took a deeper look at this and managed to reproduce the issue and thoroughly understand it. The short of it is that #2311 should indeed be the correct fix for this.
The problem is that WidgetState::parent_window_origin only gets set when handling LifeCycle::ViewContextChanged. In simple cases this is not a problem, which is also why this issue wasn't caught by looking at the existing examples.
It works with simple/static cases, because some ancestor widget's set_origin gets called and that widget's view_context_changed gets set to true. Then the LifeCycle::ViewContextChanged gets also sent to all of its descendants.
For the problem to occur we need all the ancestor widgets to be unchanged. So in the example above, the List has its origin set at the start and that's why it works the first time. The second time the List origin doesn't change and so it does not generate a LifeCycle::ViewContextChanged.
Additionally for the problem to occur we need the problematic widget to have an origin of Point::ORIGIN. So things like the accuracy dropdown in the video still work fine, because the set_origin called on them isn't Point::ORIGIN and so their view_context_changed gets set to true. Crucially this only ensures LifeCycle::ViewContextChanged to this widget and its descendants, but not its siblings.
So in the buggy case, we have an ancestor chain with unchanged origins (e.g. List still has its old origin) and the problematic widget itself has a genuine origin of Point::ORIGIN. No LifeCycle::ViewContextChanged ever arrives here because no widget in the whole tree leading up to this problematic widget requested it.
The solution of starting with view_context_changed set to true will solve this specific issue. This helps ensure that WidgetState::parent_window_origin gets properly set even if all the ancestors are already old & stable and the new widget has a genuine origin of Point::ORIGIN.

For the record I will also include a simple example program that will reproduce this issue.
#![windows_subsystem = "windows"]

use druid::im::Vector;
use druid::widget::{Button, Click, ControllerHost, List};
use druid::{
    AppLauncher, BoxConstraints, Data, Env, Event, EventCtx, LayoutCtx, LifeCycle, LifeCycleCtx,
    PaintCtx, Point, Size, UpdateCtx, Widget, WidgetPod, WindowDesc,
};

#[derive(Clone, Data)]
struct AppState {
    list_data: Vector<String>,
    btn_data: usize,
}

pub fn main() {
    let state = AppState {
        list_data: (0..2).map(|n| n.to_string()).collect(),
        btn_data: 0,
    };

    let window = WindowDesc::new(make_ui())
        .title("List origin bug")
        .window_size(Size {
            width: 350.0,
            height: 500.0,
        });

    AppLauncher::with_window(window)
        .log_to_console()
        .launch(state)
        .unwrap();
}

fn make_ui() -> impl Widget<AppState> {
    let root = Root::new();
    root
}

struct Root {
    master_button: WidgetPod<usize, ControllerHost<Button<usize>, Click<usize>>>,
    bug_list: WidgetPod<Vector<String>, List<String>>,
}

impl Root {
    fn new() -> Root {
        Root {
            master_button: WidgetPod::new(Button::new("Master").on_click(|_ctx, data, _env| {
                *data += 1;
                tracing::debug!("Master state changed to: {}", data);
            })),
            bug_list: WidgetPod::new(List::new(|| {
                Button::dynamic(|s: &String, _env| s.clone()).on_click(|ctx, data, _env| {
                    tracing::debug!("Button {} window origin: {:?}", data, ctx.window_origin());
                })
            })),
        }
    }
}

impl Widget<AppState> for Root {
    fn event(&mut self, ctx: &mut EventCtx, event: &Event, data: &mut AppState, env: &Env) {
        self.master_button
            .event(ctx, event, &mut data.btn_data, env);

        match data.btn_data % 2 {
            0 => {
                data.list_data = (data.btn_data..data.btn_data + 2)
                    .map(|n| n.to_string())
                    .collect();
            }
            1 => {
                data.list_data = Vector::new();
            }
            _ => unreachable!(),
        }

        self.bug_list.event(ctx, event, &mut data.list_data, env);
    }

    fn lifecycle(&mut self, ctx: &mut LifeCycleCtx, event: &LifeCycle, data: &AppState, env: &Env) {
        self.master_button
            .lifecycle(ctx, event, &data.btn_data, env);
        self.bug_list.lifecycle(ctx, event, &data.list_data, env);
    }

    fn update(&mut self, ctx: &mut UpdateCtx, _old_data: &AppState, data: &AppState, env: &Env) {
        self.master_button.update(ctx, &data.btn_data, env);
        self.bug_list.update(ctx, &data.list_data, env);
    }

    fn layout(
        &mut self,
        ctx: &mut LayoutCtx,
        bc: &BoxConstraints,
        data: &AppState,
        env: &Env,
    ) -> Size {
        self.master_button
            .layout(ctx, &bc.loosen(), &data.btn_data, env);
        self.master_button.set_origin(ctx, Point::new(0., 0.));

        self.bug_list
            .layout(ctx, &bc.loosen(), &data.list_data, env);
        self.bug_list.set_origin(ctx, Point::new(0., 50.));
        bc.constrain((350.0, 500.0))
    }

    fn paint(&mut self, ctx: &mut PaintCtx, data: &AppState, env: &Env) {
        self.master_button.paint(ctx, &data.btn_data, env);
        self.bug_list.paint(ctx, &data.list_data, env);
    }
}

Thank you so much :)


Mails not sending, always showing previews

I'm starting my backend with NODE_ENV=production DEBUG=email-templates node serverBoot.js.
I keep getting redirected to a preview window with the email, instead of the email actually sending. Terminal is also not outputting any information.

@Laurensdc can you please share code from serverBoot.js?
According to src/index.js it should automatically send and should also automatically stop the previews in non-development environments.  My guess is that your NODE_ENV is somehow getting defaulted or overridden?
https://github.com/niftylettuce/email-templates/blob/master/src/index.js#L57-L58

A not related question, how to set a different path of the templates? I just tried to use views: { root: path.join(__dirname, '..', 'server', 'emails') } and it is just ignored.

I was having issues getting mail to send as well. Here's what worked for me:
			const Email = require('email-templates');
			const nodemailer = require('nodemailer');

			let transporter = nodemailer.createTransport({
				sendmail: true,
				newline: 'unix',
				path: '/usr/sbin/sendmail'
			});

			const email = new Email({
				message: {
					from: config.emailFrom
				},
				send: true,
				transport: transporter,
				//textOnly: true,
				preview: false,
			});

			email
				.send({
					template: 'ads_found',
					message: {
						to: config.emailTo
					},
					locals: {
						ads: adsToEmail
					}
				})
				.then(console.log)
				.catch(console.error);

I'm assuming you guys all solved your issues?
If you still have problems, you can run your app with DEBUG=email-templates or DEBUG=* before it, e.g. DEBUG=* node app.js.
Let me know if we can be of more help in debugging!


Adding files to a PBXGroup

#43 Greatly clarified how to create a new group and add it to an already existing group. However, I am now very uncertain on how to add actual source code files (that are already created) to a group. Is PBXFileElement the object I should be using or is there something else? Any help would be appreciated!
Thanks! 👍

Hi @Daltron
You would need a to create a PBXFileElement for each file, a PBXBuildFile that references that file for each target it should be added to, and then add those PBXBuildFile references to the PBXSourcesBuildPhase for each target.
That's really getting into the weeds there. Usually tools would be built on top of xcodeproj to achieve things like the above. Tools like https://github.com/yonaskolb/XcodeGen and https://github.com/swift-xcode/xcode
What's your exact use case? Maybe it can be added to one of those tools. Just adding a folder of files to a target?

@yonaskolb Thanks for the detailed response. But yes, that is pretty much exactly my use case. I am wanting to add a group of files to a target. I'll tinker around and see if I can it to do what I want to do. Thanks!


Inconsistent Permissions in Gallery and Themes

As the site owner of a tenant, I see a list of Themes when I click Themes -> Gallery in Dashboard. Each theme has "Install" and Download  options. When I click one of the Install links, I get the following error:

Access Denied
You do not have permission to complete your request.

The codes below are from the Index method in Theme Module's AdminController. The value of installThemes is used to determine whether to hide the "Install a  theme from your computer" link. In this case, only site owners of the default site can install a theme.
bool installThemes =
                _featureManager.GetEnabledFeatures().FirstOrDefault(f => f.Id == "PackagingServices") != null
                && Services.Authorizer.Authorize(StandardPermissions.SiteOwner) // only site owners
                && _shellSettings.Name == ShellSettings.DefaultName; // of the default tenant

Similar logics is in the InstallGalley action method in PackagingServicesController:
if (_shellSettings.Name != ShellSettings.DefaultName || !Services.Authorizer.Authorize(StandardPermissions.SiteOwner, T("Not authorized to add sources")))
                return new HttpUnauthorizedResult();

However, the AdminMenu class in Packaging module shows the Gallery tab as long as the user is a site owner, regardless of tenant.
 item = item.Action(actionName, controllerName, new { area = "Orchard.Packaging" }).Permission(StandardPermissions.SiteOwner);

The Themes action method in GalleryController also displays a list of themes, as long as the user is a site owner, regardless of tenant.
if (!Services.Authorizer.Authorize(StandardPermissions.SiteOwner, T("Not authorized to list Themes")))
                return new HttpUnauthorizedResult();

Gallery tab should not display to a tenant site owner if only the default site's owner have the permission to install themes.

Sorry for bumping this. I think the best way to avoid the inconsistencies with permissions related by @jchenga  is to not build the menu for these users, isn't it?. I have created a pull with the  possible solution in #7511


Update create_or_delete_network_shares.yml

By having process=share AND process=delete you will miss any creation of shares. If you are just looking for creating OR deleting of shares you just need to look for the word share

Nice catch, tested the updated search on attack_range using T1126 and it works fine


[chip-test] chip_sw_flash_rma_unlocked

Test point name
chip_sw_flash_rma_unlocked
Host side component
SystemVerilog
OpenTitanTool infrastructure implemented
No response
Contact person
@tjaychen, @cindychip
Checklist
Please fill out this checklist as items are completed. Link to PRs and issues as appropriate.

[x] Check if existing test covers most or all of this testpoint (if so, either extend said test to cover all points, or skip the next 3 checkboxes)
[x] Device-side (C) component developed
[x] Bazel build rules developed
[x] Host-side component developed
[x] HJSON test plan updated with test name (so it shows up in the dashboard)
[x] Test added to dvsim nightly regression (and passing at time of checking)

This test requires a minor update based on the manufacturing testplan sync.
The test needs to initiate an ID check from the host side.

Unassigning @engdoreis for now as he is OoO. If this is not picked up, I'll reassign to him on his return next week.

The update for this is coming in #16456.

The updates to this test have now been merged - let's check the nightlies tomorrow!


how do I add multiple switch?

Sorry, I really confuse, I can't add multiple switch in the config.json.

I managed to do it. Thanks.


multiple JSX frameworks w/ Astro

I'm trying to use keystatic CMS, and I noticed that you need to use React for the admin dashboard.
I am using Qwik, another JSX framework, in the rest of my project and so the build fails. I am not sure where I need to use the include property for React so that this works properly. I don't see a keystatic specific folder.
What I've tried so far, is using include on the source directory for Qwik, but the React integration will still error out.
I'm assuming someone has run into this issue before trying to use Preact or Solid in their project, but I wasn't able to find anything. Would really appreciate some help on this.

Think I'm getting somewhere with this
    qwikdev({ exclude: ["**/keystatic/*"] }),
    react({ include: ["**/keystatic/*"] }),

This project really blows my mind how good it is! props to the core team.

Hey!
First of all, thank you for the kind words!
Yep — all Keystatic routes will be in the /keystatic/... segment, so what you've got setup with include/exclude should work nicely.
Do you have a public repo example of your setup? Never used Qwik, and curious to see a setup of Keystatic + Astro using Qwik as a framework.
Converting this to a discussion, as other may find it useful 🤙


Cannot close VSCode after session ended if file with unsaved changes is open

Product and Version: VSCode 1.25-0
OS Version: Windows
Live Share Extension Version:  0.3.264
Target Platform or Language: .NET Core
Steps to Reproduce:

I opened session sent to me by a coworker. Session loaded fine, all was good. I made unsaved changed to one of the files in the session, then my coworker ended the session on his end before I saved my changes the file
Attempt to close VS Code
Error: VS Code shows a notification Cannot read property 'toString' of null. I cannot exit VS Code through any of these methods:

File -> Exit
File -> Close Window
File -> Close Workspace
Clicking "x" on top right
Even after force killing VS Code from Task Manager and relaunching, I still cannot close VS code normally

Workaround
Seems obvious now, but close all files with unsaved changes and choose "Don't save"
Then you can exit the Live Share workspace
logs.zip

@natemcmaster I tried to reproduce this. When I try closing VS Code from the guest (with unsaved changes), VS Code prompts "Do you want to save the changes you made to file.extension?"  Did you receive this prompt?

However, we should be closing the session on the guest side (even with unsaved changes), and it looks like that's not happening. I'll investigate.

I did not get the "Do you want to save the changes you made to file.extension?" prompt from VS Code when attempting to close.

Thanks for the info and for filing the issue. I'm filing this as a bug and will reach back out when we think we've it resolved.

Thanks @daytonellwanger !

@natemcmaster I just checked and this issue doesn't repro with the latest extension version. Closing as resolved.


⚠ Bofrost.be has degraded performance

In b8521b3, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1623 ms

Resolved: Bofrost.be performance has improved in 006dc41 after 6 minutes.


Run python in terminal is executing in powershell instead of default CMD

The new software update has issues. Trying to run python in terminal by right clicking and chosing the option but instead of running on cmd terminal which Ive set that as a default, it runs on powershell terminal. This happens even I remove the powershell option from the terminal profile settings.

/duplicate of #132869

So will there be a fix for this shortly then?
Many thanks,
Kumaran

On 10 Sep 2021, at 6:43 pm, VS Code Issue Triage Bot @.***> wrote:

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.
Happy Coding!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

I updated the vscode to 1.60.0 two days back and only after updating I’m facing this issue, will there be another bug fix release?
Many thanks,
Kumaran

On 10 Sep 2021, at 6:43 pm, VS Code Issue Triage Bot @.***> wrote:

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.
Happy Coding!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

You can try Insiders build https://code.visualstudio.com/insiders/ where fixes are in place. Recivery 1.60.1 currently planed for Monday if nothing else delay it. https://github.com/microsoft/vscode/issues/132150#issuecomment-917023548


Add column helper

Related to https://github.com/cashapp/sqldelight/pull/4489

@hfhbd Why was this PR closed?  I still cannot drop foreign keys :-/


Crash when deleting subfloor recipe (possible once you delete all subfloor ingredients).

Problem Description
Factorio 1.1.94, Factory Planner 1.1.75, Factorio Library 0.13.0
No other mod required to crash.
Deleting all the subfloor ingredients allows you to delete the main subfloor recipe and crash the mod.
Screenshots available at https://imgur.com/a/y2Qyu4m
Log included factorio-current.log
Works on a fresh base game, so no savegame included.
Log file :
719.686 Error MainLoop.cpp:1391: Exception at tick 6899: The mod Factory Planner (1.1.75) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event factoryplanner::Custom event (ID 206)
__factoryplanner__/ui/main/production_table.lua:77: attempt to index field 'parent' (a nil value)
stack traceback:
	__factoryplanner__/ui/main/production_table.lua:77: in function '?'
	__factoryplanner__/ui/main/production_table.lua:434: in function 'render_lines'
	__factoryplanner__/ui/main/production_table.lua:442: in function 'refresh_production_table'
	__factoryplanner__/ui/main/production_table.lua:472: in function 'registered_handler'
	__factoryplanner__/ui/event_handler.lua:308: in function <__factoryplanner__/ui/event_handler.lua:288>
	[C]: in function 'raise_event'
	__factoryplanner__/util/raise.lua:14: in function 'refresh'
	__factoryplanner__/ui/main/production_handler.lua:60: in function 'handler'
	__factoryplanner__/ui/event_handler.lua:157: in function <__factoryplanner__/ui/event_handler.lua:114>
stack traceback:
	[C]: in function 'raise_event'
	__factoryplanner__/util/raise.lua:14: in function 'refresh'
	__factoryplanner__/ui/main/production_handler.lua:60: in function 'handler'
	__factoryplanner__/ui/event_handler.lua:157: in function <__factoryplanner__/ui/event_handler.lua:114>
 768.534 Quitting: user-quit.

Reproduction
Steps to reproduce :

Create a factory with at least one subfloor.
The subfloor recipe can't be deleted.
Add any number of ingredients to the subfloor
Deleting all the subfloor ingredients removes the main recipe protection
Delete the subfloor main recipe to crash the planner (return to Factorio main menu).

Possibly a duplicate of #182

Indeed a duplicate, appreciate the very detailed report though Kaimdrol! Further conversation in 182.


add CiliumNetworkPolicy

towards https://github.com/giantswarm/giantswarm/issues/29559
grafana cannot talk to the apiserver without a CNP in locked-down clusters

holding off on merging this until i've established why the containers can't talk to each other in the pod


cant download

i am very new to this im not sure how to install and get it running

Have you used python before?  if not time to learn how to code in it first; otherwise use the big green down button and download a zip file, extract it to a directory and start coding your trading script

I have used python before, I used to use the alpaca API (a brokerage with an API built-in).  but I have no idea how to set one up downloaded from GitHub.

I'm not sure what directory to extract too and get it up and running.

Please refer to the below strucuture. You may download and extract the project to your targeted folder as webull
.
|
+-- webull
|         |
|         +-- webull.py
|         +-- streamconn.py
|         +-- endpoints.py
|         +-- ...
+-- my-trading-file.py

In my-trading-file.py under the root of project folder, you can write something like https://github.com/tedchou12/webull/wiki/For-Developers-Contributors
from webull.webull import webull
from webull.streamconn import StreamConn
from pytz import timezone

webull = webull()
<EMAIL_ADDRESS>'pa$$w0rd')
webull.get_trade_token('000000')

nyc = timezone('America/New_York')
def on_price_message(topic, data):
    print (data)
    print(f"Ticker: {topic['tickerId']}, Price: {data['deal']['price']}, Volume: {data['deal']['volume']}", end='', sep='')
    if 'tradeTime' in data:
        print(', tradeTime: ', data['tradeTime'])
    else:
        tradetime = data['deal']['tradeTime']
        current_dt = datetime.today().astimezone(nyc)
        ts = current_dt.replace(hour=int(tradetime[:2]), minute=int(tradetime[3:5]), second=0, microsecond=0)
        print(', tradeTime: ', ts)

def on_order_message(topic, data):
    print(data)

Ideally, the project shall be packed as a pip lib

@Zihanouk webull is now available on PyPI. You can install with below:
pip install webull


Respond with problems by default in aiohttp.

AioHttp is not responding with problems yet. This uses an aiohttp middleware to handle exceptions and return a problem response.
Done:

[x] Handle all exceptions handled by aiohttp to make sure they return problem json.
[x] Fix the Unauthorized/OAuthProblem return not having problem json body
[x] All werkzeug and aiohttp exceptions are converted to problem json responses preserving status/description/title.
[x] All exceptions become problem json.
[x] All current tests pass without modification.
[x] Add tests for problem+json output when using aiohttp. Reuses the fixture and overall logic from test_errors.

Open questions:

Do any docs need to change?

This is just bringing AioHTTP exception handling into line with current Flask exception handling.
https://connexion.readthedocs.io/en/latest/exceptions.html is out of date: https://github.com/zalando/connexion/blob/master/docs/exceptions.rst
https://connexion.readthedocs.io/en/latest/response.html#error-handling also out of date (raise is better): https://github.com/zalando/connexion/blob/master/docs/response.rst
There are essentially NO docs on aiohttp except for a brief reference here: https://github.com/zalando/connexion/blob/6bf058f6b7c20d87537eaa8bb3f701f69b383765/docs/quickstart.rst#L86-L93

Changes proposed in this pull request:

Return problems by default in aiohttp.
Send the debug logs and tracebacks like aiohttp does.
Drop oauth_problem_middleware in favor of handling all the problem output in problems_middleware because oauth_problem_middleware didn't actually return valid problem json, but this does.

This is ready for review, and hopefully to be merged :)

:+1:


1# Program Macros

I added macros for several common 1# programs. The macros allow a programmer to choose the registers that a 1# (sub)program will operate on, and therefore make writing a more complex Sane program easier.
I also added two example Sane programs that use the macros.

Hi -- thanks.  I have yet to look at what you did, but I'm grateful that you added to the code here to make things easier to use for yourself and others.


Fresh installation error on db_mongo

Hi, I'm trying to install NewsBlur to ubuntu machine. I've tried two times, one in a fresh virtual machine. Both of them returning the following error(s)
  File "/srv/newsblur/./manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.9/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.9/site-packages/django/core/management/__init__.py", line 395, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 330, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 371, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 85, in wrapped
    res = handle_func(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/django/core/management/commands/migrate.py", line 243, in handle
    post_migrate_state = executor.migrate(
  File "/usr/local/lib/python3.9/site-packages/django/db/migrations/executor.py", line 117, in migrate
    state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
  File "/usr/local/lib/python3.9/site-packages/django/db/migrations/executor.py", line 147, in _migrate_all_forwards
    state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
  File "/usr/local/lib/python3.9/site-packages/django/db/migrations/executor.py", line 227, in apply_migration
    state = migration.apply(state, schema_editor)
  File "/usr/local/lib/python3.9/site-packages/django/db/migrations/migration.py", line 124, in apply
    operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
  File "/usr/local/lib/python3.9/site-packages/django/db/migrations/operations/special.py", line 190, in database_forwards
    self.code(from_state.apps, schema_editor)
  File "/srv/newsblur/apps/rss_feeds/migrations/0002_remove_mongo_types.py", line 8, in remove_mongo_types
    collections = db.collection_names()
  File "/usr/local/lib/python3.9/site-packages/pymongo/database.py", line 910, in collection_names
    for result in self.list_collections(session=session,
  File "/usr/local/lib/python3.9/site-packages/pymongo/database.py", line 848, in list_collections
    return self.__client._retryable_read(
  File "/usr/local/lib/python3.9/site-packages/pymongo/mongo_client.py", line 1514, in _retryable_read
    server = self._select_server(
  File "/usr/local/lib/python3.9/site-packages/pymongo/mongo_client.py", line 1346, in _select_server
    server = topology.select_server(server_selector)
  File "/usr/local/lib/python3.9/site-packages/pymongo/topology.py", line 244, in select_server
    return random.choice(self.select_servers(selector,
  File "/usr/local/lib/python3.9/site-packages/pymongo/topology.py", line 202, in select_servers
    server_descriptions = self._select_servers_loop(
  File "/usr/local/lib/python3.9/site-packages/pymongo/topology.py", line 218, in _select_servers_loop
    raise ServerSelectionTimeoutError(
pymongo.errors.ServerSelectionTimeoutError: db_mongo:29019: [Errno -3] Temporary failure in name resolution, Timeout: 30s, Topology Description: <TopologyDescription id: 6438903d820ab3a5a18a4c0e, topology_type: Single, servers: [<ServerDescription ('db_mongo', 29019) server_type: Unknown, rtt: None, error=AutoReconnect('db_mongo:29019: [Errno -3] Temporary failure in name resolution')>]>
Sentry is attempting to send 2 pending error messages

Secon error:
docker exec newsblur_web ./manage.py loaddata config/fixtures/bootstrap.json
 ---> Starting NewsBlur development server...
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
  File "/usr/local/lib/python3.9/site-packages/django_prometheus/db/common.py", line 71, in execute
    return super().execute(*args, **kwargs)
psycopg2.errors.UndefinedTable: relation "django_site" does not exist
LINE 1: ..."django_site"."domain", "django_site"."name" FROM "django_si...
                                                             ^

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/srv/newsblur/./manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.9/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.9/site-packages/django/core/management/__init__.py", line 395, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 330, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 371, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python3.9/site-packages/django/core/management/commands/loaddata.py", line 72, in handle
    self.loaddata(fixture_labels)
  File "/usr/local/lib/python3.9/site-packages/django/core/management/commands/loaddata.py", line 114, in loaddata
    self.load_label(fixture_label)
  File "/usr/local/lib/python3.9/site-packages/django/core/management/commands/loaddata.py", line 181, in load_label
    obj.save(using=self.using)
  File "/usr/local/lib/python3.9/site-packages/django/core/serializers/base.py", line 223, in save
    models.Model.save_base(self.object, using=using, raw=True, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/django/db/models/base.py", line 777, in save_base
    pre_save.send(
  File "/usr/local/lib/python3.9/site-packages/django/dispatch/dispatcher.py", line 177, in send
    return [
  File "/usr/local/lib/python3.9/site-packages/django/dispatch/dispatcher.py", line 178, in <listcomp>
    (receiver, receiver(signal=self, sender=sender, **named))
  File "/usr/local/lib/python3.9/site-packages/django/contrib/sites/models.py", line 114, in clear_site_cache
    del SITE_CACHE[Site.objects.using(using).get(pk=instance.pk).domain]
  File "/usr/local/lib/python3.9/site-packages/django/db/models/query.py", line 425, in get
    num = len(clone)
  File "/usr/local/lib/python3.9/site-packages/django/db/models/query.py", line 269, in __len__
    self._fetch_all()
  File "/usr/local/lib/python3.9/site-packages/django/db/models/query.py", line 1308, in _fetch_all
    self._result_cache = list(self._iterable_class(self))
  File "/usr/local/lib/python3.9/site-packages/django/db/models/query.py", line 53, in __iter__
    results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
  File "/usr/local/lib/python3.9/site-packages/django/db/models/sql/compiler.py", line 1156, in execute_sql
    cursor.execute(sql, params)
  File "/usr/local/lib/python3.9/site-packages/sentry_sdk/integrations/django/__init__.py", line 556, in execute
    return real_execute(self, sql, params)
  File "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py", line 66, in execute
    return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  File "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
  File "/usr/local/lib/python3.9/site-packages/django/db/utils.py", line 90, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
  File "/usr/local/lib/python3.9/site-packages/django_prometheus/db/common.py", line 71, in execute
    return super().execute(*args, **kwargs)
django.db.utils.ProgrammingError: Problem installing fixture '/srv/newsblur/config/fixtures/bootstrap.json': Could not load sites.Site(pk=1): relation "django_site" does not exist
LINE 1: ..."django_site"."domain", "django_site"."name" FROM "django_si...
                                                             ^

Any suggestions?

The problem is solved by changing the permissions of the ./docker/volumes/db_mongo with
chmod 777 docker/volumes/db_mongo/

It would be great if we can solve it permanently


Improve custom quantities API

Currently, custom quantities for trixi2vtk, SolutionSavingCallback and PostprocessCallback must be functions of (v, u, t, system).
The problem with that is that one needs to use internal, undocumented functions like each_moving_particle, particle_pressure, current_coords and so on to properly work with v and u.
I therefore changed the docs in #423 to mention that functions must have the arguments (v, u, t, system), but I also mentioned that these required undocumented internal functions to work with. I also removed the examples defining such functions and instead used the pre-defined custom quantities like kinetic_energy.
I see the following options:

Leave the API as is, add more pre-defined quantities, and then add a docs page explaining internals like each_moving_particle, particle_pressure, current_coords and so on. We should probably have such a page anyway, as it's very useful for users who want to develop TrixiParticles.
Allow custom quantity functions to either have the arguments (v, u, t, system) (which is then non-public API) or (coordinates, velocity, density, pressure), similar to how the source terms work, but passing global arrays instead of per-particle quantities. Note, however, that we don't want to allocate these global arrays, so we'll have to pass views, which can be modified by the user, causing unpredictable behavior. This option definitely requires less knowledge about TrixiParticle internals to be able to write simple custom quantity functions.

To be able to use our callbacks for more complicated things that require data from multiple systems, like interpolation, we also need an option to pass a function with the arguments v, u, t, v_ode, u_ode, semi. I think there is no doubt that this should be internal and not public API, since the whole wrapping stuff is also not public API.
So,

Leave the public API as is, add internal API that uses arguments v, u, t, system, v_ode, u_ode, semi (same as public API, but with v_ode, u_ode, semi), add more pre-defined quantities, and then add a docs page explaining internals like each_moving_particle, particle_pressure, current_coords and so on. We should probably have such a page anyway, as it's very useful for users who want to develop TrixiParticles.
Allow custom quantity functions to either have the arguments (v, u, t, system, v_ode, u_ode, semi) (which is then non-public API) or (coordinates, velocity, density, pressure), similar to how the source terms work, but passing global arrays instead of per-particle quantities. Note, however, that we don't want to allocate these global arrays, so we'll have to pass views, which can be modified by the user, causing unpredictable behavior. This option definitely requires less knowledge about TrixiParticle internals to be able to write simple custom quantity functions.

I think we (@LasNikas @svchb) discussed a while ago that a good option would be something similar to point 2 above:

Allow custom quantity functions to either have the arguments (v, u, t, system, v_ode, u_ode, semi) (which is then non-public API) or (data), which is a named tuple containing quantities like coordinates, velocity, density and pressure, but it depends on the system type. Users can check which quantities are available by calling a function available_quantities(system) or so. This solves the big problem of point 2 that density and pressure are not available for every system. The note about the views in point 2 still stands, though.


Doesn't work on Ubuntu

I couldn't make it work on Ubuntu.

Can you go here and comment with the KeyCodes of your media keys?


Support parquet page filtering for string columns

Draft as it builds on tests in https://github.com/apache/arrow-datafusion/pull/4131
Which issue does this PR close?
Part of https://github.com/apache/arrow-datafusion/issues/3833
Rationale for this change
I want to be able to use parquet page index filtering for string datatypes in IOx.
What changes are included in this PR?

Implement page index filtering for string columns
Test

Are there any user-facing changes?
Hopefully faster parquet predicate evaluation on string columns

Thanks for the comments @liukun4515  and @isidentical  -- I agree about the nullcounts. I will work on this PR more to address your comments

Thanks for the comments @liukun4515 and @isidentical -- I agree about the nullcounts. I will work on this PR more to address your comments

maybe you can just implement the case about utf8 type, I can help you to implement other logical data type for example Decimal.

@alamb  Would your mind i continue on this, with pr on your branch?😄

@Ted-Jiang  -- go right ahead (or also feel free to make another PR and I can close this one0  -- I haven't had the time to work on this for the last few days. I will likely get back to it either later this week or next if you don't have a chance to

@Ted-Jiang  I am not sure what happened to this branch -- can you please make a new branch /new PR for this feature? I didn't have a chance to work on (or review) your PR today because some other unexpected work appeared.  😢
There is so much going on in DataFusion I can barely keep up!

There is so much going on in DataFusion I can barely keep up!

of course! You've given too much to this community ❤


Deploy Cachito

CLOUDBLD-203

Signed-off-by: Athos Ribeiro<EMAIL_ADDRESS>

Thanks for the reviews :)
I addressed your comments and also included a new commit to use cachito workers cert auth. This means that this now relies on https://github.com/release-engineering/cachito/pull/166. Please use that branch to test this if the PR is not merged.

Thanks, Adam!
I Addressed the inline comments. You are right on the routes. I dropped the  ones for rabbitmq and the cachito worker.
The cachito API one is definitelly useful, but just for debugging purposes. I am not sure if providing the client cert is needed at this point (same applies for the other 2 routes).
The cachito PR has been merged, in case anyone else wants to give this a try :)


ci(test): install correct version of ginkgo before running test

agree that ginkgo tests are like almost 10 times slower than go tests. We could have just passed ginkgo options to go test but there are couple of tests that doesnt use ginkgo complain about not understanding the ginkgo options. There are ways to mitigate the problem by explicilty defining the test paths or rewriting the tests using ginkgo, but they are not maintainable in the long run.
I suggest we turn off using ginkgo completely once we figure out the problems with go test. Until then, we will need this patch.


Remove Callers API from the XRefService. [phab:D1037]

Created by fromberger at 2016-09-05 20:29:35:
As we have folded callers into the CrossReferences API, this is now obsolete.

Remove Callers support from the xrefs package.
Remove implementations of the Callers API.

shahms wrote at 2016-09-07 17:33:09:
"Remove ..." contains only red, LGTM.

shahms accepted this revision at 2016-09-07 17:33:09

fromberger closed via commit b53df5147f528c2af628ffbcb31df4f79a0dedf6 at 2016-09-07 17:52:35


Remove version: CrystalDewWorld.CrystalDiskInfo version 9.1.0

[Automated] It returns code over 400 in all urls
Microsoft Reviewers: Open in CodeFlow

URL: https://osdn.net/frs/redir.php?m=osdn&f=crystaldiskinfo%2F78950%2FCrystalDiskInfo9_1_0.exe
Response Error: The remote server returned an error: (504) Gateway Timeout.
(Automated message - build 912)

Looking into this developer's packages and sites:

Main site is still up.
This download site appears to be down.:
image
Versions newer than this are hosted on another hosting site.

It seems like this is the last version on the old hosting service, and it's old enough that it won't be moved. Newer versions aren't being removed.


Fix sidebar to highlight currently selected page

Right now it only highlights the "Overview" page, need this to reflect currently selected page.

Fixed in latest update


added windows 11

after reading this article, i confirmed windows 11 is supported

Learn Build status updates of commit 92293df:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

windows/security/threat-protection/security-policy-settings/bypass-traverse-checking.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel


[EPIC] Building Block Maintenance

Description
As a developer, I need to maintain existing code so as to fix any bugs that get identified or make minor changes that will improve the overall quality of the code or documentation.
Building Blocks

Profile
Logging
App Config
Events
Authentication
Events Manager

Acceptance Criteria
The existing building blocks are maintained properly.

This will be a continuing Epic. Closing as complete.


Table in div

Hi
I am finding 2 scenarios:-

Scenario 1
BEGIN:

Scenario
User can write specifications using tables.

ID
Given
When
Then
Actual

Cell 1
Cell 2
Cell 3
Cell 4

Cell 5
Cell 6
Cell 7
Cell 8

ending with any text
END

Scenario2
Same as above but replace the "ending with any text" with a ##Heading.
This will not render the table correctly. The version I am playing around is master (as of yesterday)

Closing as stale. Please submit again, if you would like, are still using marked, and still experiencing the issue.
Also, see #956


Improve README.md documentation and include example to add new custom component

Closes https://github.com/pantographe/view_component-form/issues/126
Closes https://github.com/pantographe/view_component-form/issues/157

If you're new to using form builders, it might not be clear how to add your own components + helpers.
So I went ahead and updated the documentation in the README.md and hopefully streamlined it so it's easier to get started.

@joelzwarrington do you want to wrap this up, or should we do it?

hey @Spone you're welcome to make changes to the PR. Been a tad busy so I haven't had the chance to make the requested changes. Should be able to go through this soon


Oxford Nanopore data

can proovread be used for ONT sequence. I am not sure if any parameter tuning might be required.

No, not very well without parameter tuning. And we tried a bit in the past but at least with shorter Illumina data <150bp, we didn't have to get too good results.

proovread was used to correct error in oxford nanopore direct RNA sequencing data in a recent paper (https://www.biorxiv.org/content/10.1101/706002v1). Not sure, how proovread can be used.

You can certainly use it. And it will correct your data as good as it can. But it likely won't be as good as it would be with pacbio data, or as other dedicated tools might be with nanopore.


Documented the --without-cython installation option

Coverage remained the same at 99.5% when pulling b78b2a9af03614deb9317eb9052caee691e9254a on akaihola:without-cython-documentation into 5989151a7099400c6419f679185c2360f3e02da8 on timothycrosley:develop.

Coverage remained the same at 99.5% when pulling b78b2a9af03614deb9317eb9052caee691e9254a on akaihola:without-cython-documentation into 5989151a7099400c6419f679185c2360f3e02da8 on timothycrosley:develop.

This is awesome, thank you!


pydantic-extra package?

For types which shouldn't be included with pydantic but which people understandably want to reuse.
See #5011 - I don't think we should not add a one time password type to pydantic. The surface -area/problem-space of pydantic is already too large. I also strongly want to avoid more dependencies, even if they're optional.
However I would advocate for creating a package, perhaps pydantic-extra which includes:

#5011 - OTP type
#1551 - phone number type, which quite a lot of attention
PaymentCardNumber - currently in pydantic
Color - currently in pydantic
perhaps some kind of money type
perhaps some types related to webauthn (although the webauthn package already uses pydantic, so maybe that's not necessary/a good idea
potentially more types, the threshold required to add a type to pydantic-extra can be significantly lower than for pydantic

PaymentCardNumber and Color will need to remain in pydantic (potentially with a dep warning) for now.
Before anyone asks, no, I do not want to move email types to pydantic-extra - they're used too much, also I want to move the implementation into rust https://github.com/pydantic/pydantic-core/issues/385.
I'd be happy to:

host this in the pydantic GitHub org
include the docs in docs.pydantic.dev (this is the plan for pydantic-core and pydantic-settings already)
release it using my pypi account
add more maintainers than pydantic has
be more liberal about dependencies

The other advantage would be that we could make new releases of pydantic-extra more easily as they couldn't break any other bits of pydantic.
@pydantic/pydantic-maintainers WDYT?
If we decide to go ahead with this, @yezz123 would you be willing to be a maintainer of this???

This looks impressive, as I worked before on several types regarding Pydantic in my work, I would be happy to elaborate on this and maintain Pydantic extra, it's going to be more helpful and contain several utilities that may open-source developers propose in discussions or issues.

Same as the OTP Idea, you propose phone numbers, payment cards(already), integration such as colors, and money types or in general default currencies.
My sense, here is we can create this as an integration that will be helpful in the future.

I would be happy if I maintain this! we can do it in Pydantic org while it will be an extra addon on the top of the package itself.

repo created https://github.com/pydantic/pydantic-extra
pypi project stub created to save the name
@yezz123 invited to the pydantic or and to have write access on pydantic-extra

This seems to have started without waiting for more feedback, sorry, but still very open to any feedback.
In terms of timeline, I guess if we can get this ready to be released with V2, we can mark Color and PaymentCardNumber deprecated in V2.

repo created https://github.com/pydantic/pydantic-extra
pypi project stub created to save the name
@yezz123 invited to the pydantic or and to have write access on pydantic-extra

This seems to have started without waiting for more feedback, sorry, but still very open to any feedback.
In terms of timeline, I guess if we can get this ready to be released with V2, we can mark Color and PaymentCardNumber deprecated in V2.

Amazing 🚀

Hi everyone, I also think it is a good idea and I agreed with @hramezani for the naming, something like pydantic-types or pydantic-extra-types seems more correct in my humble opinion.

I agree with @hramezani, I'll rename the repo, upload a new stub package and delete the old one.
Bring on namespaces in pypi and all this holding names would die away!

Sound like a great idea. My project could make use of these handful types heavily.
I saw @samuelcolvin left a helps-wanted tag. Please write down which part needs help so that I might contribute to the projects.

Thanks @tomy0000000, hopefully @yezz123 can do some of the initial work setting up the repo - copying Color and PaymentCardNumber and their tests, setting up CI etc.
Once that's done, we can migrate the above bullet point to issues on the repo and start creating PRs.
pydantic-extra-types will never be released for V1, only with compatibility for V2, so types need to use the new protocol for custom types, which is mostly formalised but needs to be documented.

Once that's done, we can migrate the above bullet point to issues on the repo and start creating PRs.

Great, I'll stayed tuned

Is there a possibility of this hooking into rust too? Or would it need to be compiled together with pydantic then?

This (or any code) can use the rust core-schema types, as is already done here.
That's the same thing pydantic itself does.

So it be possible to write the color validation/parsing in rust within pydantic-extra? Perhaps something we could showcase for others trying to expand on the plugins

No, not writing rust, that would require the entire build process we have for pydantic-core, I mean we can use validators written in rust.
I very much doubt there's going to be the need to write validators in rust here or anywhere else.

Since we've created https://github.com/pydantic/pydantic-extra-types, I'll be closing this issue. FYI @samuelcolvin


Error when downloading taskset

Hi all, I've built a conda environment with the README commands and installed core_requirements.txt. Then when trying to download taskset with python -m mfpbench download --benchmark taskset-tabular the following error is raised: TypeError: object cannot be converted to an IntegerDtype.
This seems to be related with pandas. After installing pandas version 2.2.2 (v. 1.3.5 is suggested in core requirements) and tensorflow (2.16.1) (which seems to be required for taskset) the benchmark downloads successfully.

Thanks a lot! It has been fixed now.


Request for Clarification: manifest.yml format

The CLI currently allows manifests without an applications: block. This does not align with the documentation which tells us that a minimal manifest always contains an applications: block in the yaml.
The CLI might allow this on account of a documented feature which “promotes” duplicate content, but does so even if an applications: block is missing. That way an application name: value gets promoted to the name value of a single and only application, regardless of the presence of an applications: block.
This "allowed" syntax breaks other clients, e.g. the Java client which does require an actual applications: block to be present. In turn, that breaks the Atlassian Bamboo Cloud Foundry add-on.
Would it be possible to clarify whether this is intended? None of the test fixtures support this. Yet, unfortunately, I see users thinking this is proper syntax and causing a lot of support requests.

Hi @dannmartens
CC: @nebhale
Apologies for the delayed response - it took a while to find out the history of this.
Originally when the app manifest file was first supported, there was no applications: field: the app manifest catered for only one app.
At some point (way before my time), multi-app support was added with applications: and the root level fields became the "promoted content" feature, so as not to break things for existing users.
I'll discuss the inconsistency with the Java client library with Ben.
Regards,
Dies Koper
CF CLI PM

Hi Dies,
Thanks for the feedback!
Part of the confusion stems from a 'base' test fixture like https://github.com/cloudfoundry/cli/blob/master/fixtures/manifests/base-manifest.yml using the applications: block. Since there doesn't appear to be any regression protection test for the legacy situation, I had no indication this should be supported.
Cheers,
Dann

Looking over our code, we require and applications block in the resolved manifest only.  We treated the documentation as a spec and it makes allowances for an inherited manifest to have content at the root which is then included in all items in a applications block and then vice-versa, allowing overrides at the root to apply to all included applications.
I'm not totally sure how you can reconcile an "inheritable" definition for an application with a "root" application definition though, so I'm not a huge fan of updating the spec to support it, historical precedent or not.


rethink initialisation, replace init with nil check in reader methods

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

8 of 14 (57.14%)  changed or added relevant lines in 1 file are covered.
3 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-1.0%) to 95.238%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

table.go
8
14
57.14%

Files with Coverage Reduction
New Missed Lines
%

node.go
3
95.8%

Totals

Change from base Build<PHONE_NUMBER>:
-1.0%

Covered Lines:
880

Relevant Lines:
924

💛  - Coveralls