Tomáš Hubelbauer
banner
hubelbauer.net
Tomáš Hubelbauer
@hubelbauer.net
Full snack developer by day. Sleeper by night.
Just rawdogging this walk (I forgot to charge my earbuds)
November 10, 2024 at 9:07 AM
To get VS Code's TypeScript language server to stop complaining about TLA when your runtime supports it (e.g.: Bun) without having to add `export {}`, use this TSConfig:
February 28, 2024 at 7:53 PM
Super eerie and picturesque blue hour outside right now. Tonight was not the night to forget my camera for my way home. 😭
February 12, 2024 at 5:08 PM
GitHub Copilot is down. Got the same feeling when waiting for it to complete a repetitive line now that you get when pressing the touch pad on the MBP when it is off. It doesn't physically click, it has electronic haptic feedback. It's kind of like missing a step on the stairs.
February 12, 2024 at 9:56 AM
I saw references to a recent study showing that vertically mounted bifacial solar panels end up making up for the power loss due to the bad angle with increased efficiently thanks to improved thermals. I think I'll give reproducing this a shot, seems practical for dual land use.
February 9, 2024 at 4:06 PM
TIL: in VS Code, you can F2 to rename files (and images) referenced in MarkDown links. It renames the link URL as well as the file name on disk. Very useful with the ability to paste an image into a MarkDown document from the clipboard to set the file name right after the paste.
February 8, 2024 at 3:45 PM
Tapping into my luck and patience reserves for the next month trying to get a doctor to see me for 15 minutes with hopefully less than a four hour wait. Right now chilling in the waiting room before the actual waiting room.
January 31, 2024 at 12:01 PM
For an Android which won't show up in Finder even when the USB mode is set to File Transfer, it looks like the only other GUI option is to use Android Studio, start a blank project (???) and only then be able to use Device Manager? There is no way to open it standalone directly?
January 19, 2024 at 12:54 PM
I wish the Git CLI allowed one to use a branch name pattern in `switch`. The `branch` command let's one use patterns without `grep` with the `-l "*pattern*"` option, but `switch` doesn't, so unergonomic concoctions with `xargs` have to be conjured.
January 19, 2024 at 11:09 AM
And another TIL because I always forget this: To apply a style to a child selector in Tailwind and mark is as `!important` at the same time:

`[&_canvas]:!w-full`

This is _not_ elegant, but it can be used to make certain non-headless libraries behave. Here I'm scolding PDFjs.
January 15, 2024 at 1:15 PM
TIL: To enable Copy as PNG in Figma on Firefox, enable `dom\.events.asyncClipboard.clipboardItem` (without the slash) in `about:config`. This let's JavaScript `write` other stuff to your clipboard than just text: caniuse.com/mdn-api_clip...
January 15, 2024 at 12:40 PM
I've revisited the world of streamed HTML documents after a few years and it looks like as of today, this is how long browsers take to start rendering the partial HTML document while it is still streaming :
- Firefox: 700 B or ~1 minute
- Chrome: 0 B
- Safari: ∞ B or ~1 minute
January 5, 2024 at 4:31 PM
This is gonna be painfully obvious to anyone with all but the most surface level knowledge of shells, but as a shell non-enjoyer, I was happy to learn how to run a command in a different directory on a single line with no need to walk back (and thus up-arrow + Enter repeatable):
January 5, 2024 at 3:09 PM
TIL how to identify misbehaving Firefox extensions by their ID if they spam the Console dev tools tab. Copy the UUID in the URL (the messages don't show the ext name), go to about:debugging > This Firefox (or just about:debugging#/runtime/this-firefox) and search for the UUID.
January 2, 2024 at 6:00 PM
Advent of Code 2023 day 5 part 2 is beating my ass. My naive solution doesn't finish and I'm not sure if my idea on how to optimize it is sound, so I will need to learn to profile Elixir code to see what takes what amount of time and where I can avoid extra work.
December 6, 2023 at 12:06 PM
Came across this incredibly strange behavior where #Elixir's String.to_integer/1 would seemingly convert a string to a char instead of a number for some numbers. Turns out it is an Erlang hold-over in the behavior of IO.inspect formatting! stackoverflow.com/a/30039460/2...
December 4, 2023 at 9:28 PM
Day two of Advent of Code 2023 with Elixir done! I am focusing on learning the language and not optimizing the solutions and so far I am liking Elixir a lot. The VS Code language server extension is excellent, too. Happy with my choice of language so far.
December 4, 2023 at 12:26 PM
In a slightly belated manner, I have decided to participate in the Advent of Code 2023 and try to solve the puzzles in Elixir. Just solved day 1 and it's already proving very education seeing as I've never used Elixir before!
December 3, 2023 at 11:46 PM
Just proposed the introduction of numeric separators to the #OpenSCAD language. I really like this feature in JavaScript and C# and I've been missing it in OpenSCAD greatly. Crossing my fingers for the OpenSCAD maintainers to be open to the proposal. github.com/openscad/ope...
Consider implementing a digit separator symbol for better skimmability of large numbers · Issue #48...
Is your feature request related to a problem? Please describe. I am sticking to a single unit (in this case, mm) when working on my model because it comprises of parts whose spec sheets give the di...
github.com
December 2, 2023 at 8:44 PM
I really seem to have a soft spot for spoken word music. I've been obsessed with Listener for a long time now, but recently, I've discovered Forest Knot, and his collabs with Crocodile Scissor Cut have me feeling all kinds of content. 😌
December 1, 2023 at 4:18 PM
The Washington Post daily crossword puzzle has no chill today.
November 28, 2023 at 3:56 PM
I've been watching way too many "Building a cabin/tiny house" YouTube videos recently and I'm starting to think the only way to break out of the loop will be to build one and get it out of my system. Of course I picked the wrong season to have this idea. Might start with a model.
November 28, 2023 at 1:43 PM
I wish all battery-powered devices with a screen had this type of a feature where you can tell the current consumption and battery metrics at a glance.
November 23, 2023 at 2:52 PM
I am dreaming of a declarative database schema with migrations based on a file where migrations are its historical versions in source control. Pros: proper migration diffs, just one file with the latest schema, so nice. There might be cons with this design I'm missing though.
October 30, 2023 at 11:41 AM
TIL: Option-clicking the Wi-Fi icon in the macOS menu bar shows diagnostics information about the network interface and the connected wireless network. Extremely useful for fine-tuning directional antenna placement for best signal strength and noise levels.
October 29, 2023 at 10:12 PM