@kytta@fosstodon.org
@kytta@fosstodon.org avatar

kytta

@kytta@fosstodon.org

I write open-source Python and JavaScript to make computers go brrrr

I made #Shareon (https://shareon.js.org) and #Share2Fedi (https://s2f.kytta.dev)

Alts:
по-русски: https://mastodon.ml/@n
auf Deutsch: https://norden.social/@n

#fedi22

This profile is from a federated server and may be incomplete. Browse more on the original instance.

kytta, to random
@kytta@fosstodon.org avatar

PSA: If you use a piece of software, encounter a bug, and find out it was already reported, DO NOT comment with "I have the same issue" if you have nothing else to contribute. At the very least, add data that might be useful. ESPECIALLY DO NOT leave any comments if the maintainers already said "we are working on a fix".

My mailbox is dying under the load of all the people who have the same bug as me and also have the urge to comment about them having this bug 🙄

kytta,
@kytta@fosstodon.org avatar

@grishka hah, tell me more about it

https://github.com/kytta/shareon/pull/116

(this is the fourth person who doesn't seem to know how to search issues)

kytta, to random
@kytta@fosstodon.org avatar

Over almost 15 years of watching YouTube, my sub feed has slowly evolved into mostly British-made videos. That, plus the fact that I didn't actually speak English for 6 years until late 2023, somehow made me speak in a very bad approximation of RP 😂 Like, even as I'm typing this post, my inner voice sounds British. And now that I actually do have to talk in English again, it feels very weird, because I can't really associate myself with the accent I now speak in 🥴

kytta, to random
@kytta@fosstodon.org avatar

“Never ever ever ever ever mess with my browser. It's not yours, it's mine. I'm letting you use it for free to render your bloated sites. Don't do this to me. I get to copy paste whatever I want whenever I want. When you get your own browser you can do whatever you want but while you are living in my house under my rules I get to copy/paste whenever I goddamn feel like it.”

https://matduggan.com/the-worst-website-in-the-entire-world/

What a delightful read from @matdevdug

kytta,
@kytta@fosstodon.org avatar

I've had the same feelings yesterday, but, unlike Mat, I gave up after it didn't let me paste the password from Bitwarden, and accessing the field via JavaScript would wipe the whole thing clean again.

@matdevdug mind sharing a .torrent with the DMG? 😂

linus, to random
@linus@donotsta.re avatar

still getting xterm-color256 wrong (it’s xterm-256color) whenever something doesn’t like xterm-kitty

kytta,
@kytta@fosstodon.org avatar

@linus TERM=dumb or gtfo :blobcatgoogly2:

grishka, to random
@grishka@mastodon.social avatar

Here's an unpopular opinion: Google is outstandingly terrible as the maintainer of Android. Android needs to become a separate entity, preferably a nonprofit, and preferably run by someone who has strong opinions.

kytta,
@kytta@fosstodon.org avatar

@grishka I will not be surprised if one day, Google will just sell Android to Samsung

kytta, to random
@kytta@fosstodon.org avatar

Last week, I was given the ‘opportunity’ to write some IE11-compatible 5. No transpilers or bundlers, only a few polyfills.

At first, I was not excited for this. But at the end, I’ve had quite some fun! It was quite a nice challenge, and I’ve learned something new about the language I’ve been using every day for ages. Gotta do this more often.

jeffmcneill, to random
@jeffmcneill@fosstodon.org avatar

Mother's day by country

kytta,
@kytta@fosstodon.org avatar

@jeffmcneill the data is a bit misleading for some countries, like Russia. 8th of March is not Mother's Day, but the International Women's Day, where it is customary to congratulate mothers, of course.

But Russia also has a Mother's Day on the last Sunday in November. In Kazakhstan, it's on the third Sunday in September. In Belarus, it's 14th of October.

The English Wikipedia page does list both dates: https://en.wikipedia.org/wiki/Mother%27s_Day

gaborbernat, to random
@gaborbernat@fosstodon.org avatar

pyproject-fmt just got a new major release https://github.com/tox-dev/pyproject-fmt/releases/tag/2.0.0 now using rust under the hood (faster and more powerful)

kytta,
@kytta@fosstodon.org avatar

@gaborbernat

Quite disappointed with this change. The project was never slow to begin with, and the amount of data it has to process is so small that it’s honestly ridiculous to rewrite it into Rust.

But now that it is not pure Python any more, one can await problems that will arise when trying to run it on a non-mainstream platform. No Windows ARM, no PyPy, no musl+aarch64… The probability of having to compile it when installing is not worth it for a primarily CI-used tool.

kytta,
@kytta@fosstodon.org avatar

@hugovk @gaborbernat yeah, maybe not CI, although I do offload some CI tasks onto an Alpine (musl) machine with ARM64, which does not have wheels in this case. But it's also a problem for developers, who might work from an ARM-based Surface and might not want to get a whole Rust compiler to just run a tool locally.

But yes, I usually don't run linters in all platforms; I'm sorry for the confusing wording ofy previous post 😅

hund, to markdown
@hund@fosstodon.org avatar

Can anyone recommend me a good Markdown editor? I can't seem to find anything that's based on some web engine, which tends to use its own font rendering.

#Markdown #AskFediverse

kytta,
@kytta@fosstodon.org avatar
rauschma, to random
@rauschma@fosstodon.org avatar

Simple(!) Node.js frameworks that support TypeScript (think small hobby project where performance doesn’t matter): Which ones do you like?

kytta,
@kytta@fosstodon.org avatar

@dunsap @rauschma I was going to mention Hono, too. I also love how easy it is to migrate runtimes with it, as you can do Node, Deno, and Serverless with pretty much the same code.

tonybaloney, to random
@tonybaloney@fosstodon.org avatar

Darn it Python, why??

>>> bool("False")
True
>>> bool("false")
True
>>> bool("FALSE")
True
>>> bool("0")
True

kytta,
@kytta@fosstodon.org avatar

@tonybaloney because otherwise:

username = request.form.get("username", None)
if not username:
return "Bad Request", 400

Full Name: John False
Username: false

Registration failed: 400 Bad Request

kytta,
@kytta@fosstodon.org avatar

@tonybaloney sounds like a hack, but would json.loads("false") not be kind of a "friendly" string-to-bool conversion? 😂

kytta, to random
@kytta@fosstodon.org avatar

In the past, I’ve really wanted to try out other search engines: Mojeek, Kagi, Ecosia; but there was one thing that made me stay with DuckDuckGo — the Bangs. Well, not any more!

Introducing : https://codeberg.org/kytta/interro

interro is a shim for your search engine that enables DDG Bangs, but better! Instead of routing your requests via DDG, it loads all Bangs into memory and handles redirects locally. You can use any search engine as fallback.

kytta,
@kytta@fosstodon.org avatar

Another useful feature: Custom bangs! You can create bangs for any website you want.

I’ve deployed a test instance, so you can try and see how it works: https://interro.deno.dev/. On this one, the fallback search is Mojeek, and there is a special bang !ky that will search the contents of my website.

The page is very much WIP; interro was built to be used from the browser’s search bar 😅

kytta,
@kytta@fosstodon.org avatar

Damn, it’s been less than two days, and I am already about to rewrite this whole project because #Deno does not seem to support Linux on ARM 🥲

kytta, to random
@kytta@fosstodon.org avatar

Given how popular Logitech MX mice are, also amongst developers, how come nobody has still made a usable version of the ‘Options’ software? Reverse-engineer the drivers, make a lightweight daemon and native UI. Are the projects that currently are or have tried tackling this?

kytta,
@kytta@fosstodon.org avatar

I already have enough unfinished side projects, but I am freaking pissed by Logitech adding AI to their mice (and software). So, I hereby announce that I have started reverse engineering the Logi Options+ software.

My plan is to bypass the installer, re-implement the drivers and daemons and add simple text-based configuration (to begin with). I’ll focus MX Master 3 + macOS + Apple Silicon first (I’ve nothing else to debug on). The licence will be GPLv3-only.

PSA: This will take me ages (:

kytta, (edited )
@kytta@fosstodon.org avatar

Hardest decision for a project like this: What language to use?

I really want to try out Zig, and it’s handy that it can compile C, too. I am also considering Swift, given that it would be easy to integrate it with macOS and easy to incorporate pieces from the original code for testing/experimenting. It might be that Protobuf will be used, and I only really know how to use it in Go. Rust is an obligatory option, but I don’t like it.

P. S. Don’t expect me to follow the poll results :)

louisderrac, to random French
@louisderrac@framapiaf.org avatar

Chez Ecosia, on pousse le greenwashing (littéralement, tout y est vert) à un niveau assez haut...

Maintenant avec un navigateur vert, et même une IA (verte elle aussi, évidemment).

Bref, rien de vraiment nouveau, c'est fatiguant...

https://www.ecosia.org/browser

kytta,
@kytta@fosstodon.org avatar

@louisderrac Qui a besoin d’une infrastructure d’IA durable quand on peut avoir des « réponses durables »? 🤦🏻‍♂️

rauschma, to random
@rauschma@fosstodon.org avatar

What monospaced font would you use for source code in a print book?

– I like serif fonts but couldn’t find any good free monospaced serif fonts.
– I do not like fonts with ligatures because those make it difficult to figure out what to type.

Options (current favorite first):
– JetBrains Mono: https://fonts.google.com/specimen/JetBrains+Mono
– Source Code Pro: https://fonts.google.com/specimen/Source+Code+Pro
– Ubuntu Mono: https://fonts.google.com/specimen/Ubuntu+Mono (fewer glyphs, e.g. no →)
– Courier Prime: https://fonts.google.com/specimen/Courier+Prime (fewer glyphs, e.g. no →)

kytta,
@kytta@fosstodon.org avatar

@rauschma my coding font of choice is Iosevka. While you might not like its defaults, and I don't know how it looks on paper, but the font is immensely customizable, with multiple variants for each character.

https://typeof.net/Iosevka/customizer

thegreybeardofthetree, to openSUSE
@thegreybeardofthetree@fosstodon.org avatar

How do you pronounce 'Suse'?

Ans: Soo-sah

Didn't know that. I always see-sawed between soo-zay and soo-zee.

https://www.youtube.com/watch?v=nLdexZlVkAY

#suse #opensuse

kytta,
@kytta@fosstodon.org avatar

@thegreybeardofthetree since they're German, I've been (and will be) saying [zuːzə] (ZOO-zeh) :P

kytta, (edited ) to random
@kytta@fosstodon.org avatar

My fellow devs, I need your opinion:

Say, you have a software project. To do some operations more quickly, you write helper scripts. Think build.sh, download_dependencies.py, whatever. You may use them yourself or in CI.

What is your directory name of choice for these scripts?

See next post for clarification.

#BoostsWelcome #FediPoll

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • kavyap
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • khanakhh
  • InstantRegret
  • Youngstown
  • ngwrru68w68
  • slotface
  • rosin
  • tacticalgear
  • mdbf
  • Durango
  • JUstTest
  • modclub
  • osvaldo12
  • ethstaker
  • cubers
  • normalnudes
  • everett
  • tester
  • GTA5RPClips
  • Leos
  • cisconetworking
  • provamag3
  • anitta
  • lostlight
  • All magazines