Jayshua

Results 10 comments of Jayshua

I'll add my use case: Ensuring the user has access to the resource they are requesting. For example, imagine a todo: ```rust #[get("/todo/")] fn get_todo(id: TodoId, authorization: ApiToken) -> Json...

On sqlite with sqlx version 0.6.2. I have a table defined like this: ``` create table account ( id integer primary key autoincrement, email text not null, created datetime not...

Having written a fair bit of date parsing code before, here are my opinionated thoughts: The interpret function in dayjs-interpret is wrong and should not exist. It is *never* correct...

> > @silllli Thanks for sharing. So you're saying that you didn't have these problems when using GD? > > Exactly. I noticed it with one image, which was fine...

It's a trade-off all right. The worse kind too, where it isn't totally clear which option is better. Here are a few more arguments in favor: - They aren't really...

Here's a full explanation of what's going on for anyone who is interested. A quick fix is at the end. `` is meant to describe info about the web site...

@renestalder I don't submit PRs without confirmation from the maintainer that they want the change/fix. It just wastes time if they want to go in a different direction with the...

I'd like to propose a slightly different option for the expression portion of the `when` property that I think would simplify both the implementation and visual syntax. I suggest starting...

@texnixe @distantnative I went poking around in the code and found a solution that seems nice and simple. Adding: ```php if ($this->user->isKirby()) { return true; } ``` to [ModelPermissions.php:55](https://github.com/getkirby/kirby/blob/21ebebda6bdde9aee62140f81f658f0852ea4e60/src/Cms/ModelPermissions.php#L54) allows...

I was able to work around this issue with this trait. ```rust trait DerefEq { fn deq(&self, other: &u8) -> bool; } impl DerefEq for u8 { fn deq(&self, other:...