~nhanb

Vietnam

https://hi.imnhan.com

Trackers

~nhanb/mcross

Last active 3 years ago

~nhanb/pytaku

Last active 4 years ago

#361 REST API: POST /api/repos no longer accepts lowercase visibility option 2 years ago

Ticket created by ~nhanb on ~sircmpwn/git.sr.ht

Reproduction:

$ curl -X POST 'https://git.sr.ht/api/repos' -d '{"name": "foo1", "visibility": "public"}' -H 'Content-Type: application/json' -H "Authorization: Bearer $SRHT_TOKEN"
# expected: creates new repo
# got:
{"errors": [{"reason": "public is not a valid Visibility"}]}

Example in API spec uses lowercase, and the API had been working that way until recently. I'm sure because this broke a mirroring script of mine that used to work just fine.

#8 Handle sites trying to be cute with troublesome emojis 3 years ago

Comment by ~nhanb on ~nhanb/mcross

Do I have to just update Tcl/Tk systemwise, yes?

Yeah, all I had to do on Arch was a simple pacman -Syu to get the latest tk package.

#8 Handle sites trying to be cute with troublesome emojis 3 years ago

Comment by ~nhanb on ~nhanb/mcross

Another test case: gemini://makeworld.gq/about.gmi

Looks like tcl/tk 8.6.11 no longer crashes, but selection behavior is wonky (extra blank space out of nowhere):

#9 Keyboard navigation for links in page 4 years ago

Comment by ~nhanb on ~nhanb/mcross

That makes sense. I'll look into it.

#3 Missing "tkinter" dependency ? 4 years ago

Comment by ~nhanb on ~nhanb/mcross

It's actually already mentioned in the README, but I've tried to improve it just now.

#8 Handle sites trying to be cute with troublesome emojis 4 years ago

Ticket created by ~nhanb on ~nhanb/mcross

Seems like an upstream tk thing: https://stackoverflow.com/questions/60982547/when-a-user-enters-an-emoji-into-the-tkinter-entry-widget-an-exception-is-throw

Test case: gemini://mozz.us

Since it's an upstream thing, will probably need to sanitize content before passing it to tkinter at all.

#6 Smarter UpdateOutdatedTitles 4 years ago

todo added by ~nhanb on ~nhanb/pytaku

#6 Smarter UpdateOutdatedTitles 4 years ago

Ticket created by ~nhanb on ~nhanb/pytaku

  • Only update followed titles
  • Pre-download new chapters of followed titles (probably involves reworking the proxy thingy)

#5 Scheduled worker to pre-download new chapters of followed titles 4 years ago

todo added by ~nhanb on ~nhanb/pytaku

#5 Scheduled worker to pre-download new chapters of followed titles 4 years ago

Ticket created by ~nhanb on ~nhanb/pytaku