HNHacker News
TopNewBestAskShowJobs

matejn

370 karma · joined August 28, 2015

submissionscomments
matejn··on The Rise of Whatever
I hate that even more, especially since Visual Studio introducted it. I had the habit of selecting some text, and then typing to replace it. Now when my replacement starts with a parenthesis or quote, the text just gets surrounded instead!

Maybe this is just an XKCD moment https://xkcd.com/1172/ ...

matejn··on Why did Windows 7 log on slower for months if you had a solid color background?
True, but at least in my attempts, that setting only affects picture backgrounds and is ignored when using solid color backgrounds.
matejn··on Why did Windows 7 log on slower for months if you had a solid color background?
On my Windows 10 work machine, solid color backgrounds sometimes get reset to black after connecting to it via RDP. I "fixed" it by creating a solid color .png and using it as a background picture ...
matejn··on Honey has now lost 4M Chrome users after shady tactics were revealed
Here I have to chime in and say that a certain YouTube razor is one of my favourite purchases ever. But I guess it's rather niche, being a double edged safety razor.
matejn··on What makes code hard to read: Visual patterns of complexity (2023)
I like the SQL solutions people posted. But what about this one in Prolog?

  ?- setof(Author, Book^Pages^(book_author(Book, Author), book_pages(Book, Pages), Pages > 1000), Authors).
Depending on the structure of the Prolog database, it could be shorter:

  ?- setof(Author, Pages^(book(_, Author, Pages), Pages > 1000), Authors).
matejn··on Advent of Code 2024
I completed last year's in Scryer Prolog and it was a joy. Some problems were almost impossible due to the lack of mutation (Karger's algorithm comes to mind), but file parsing was a breeze and I find Prolog programs generally beautiful. My favourite syntactical feature is the full stop at the end of clauses.
matejn··on No more blurry fonts in Linux (2023)
I wish I could set my Visual Studio coding font to 10.5pt. Now I have to use 10pt and 105% zoom!

But then again, VS doesn't allow font size in px ...

matejn··on The Elements of APIs (2021)
I think the same applies to laws. You can't get information on why a law was passed, and many of them end up seeming odd or even counterproductive.
matejn··on State of S3 – Your Laptop is no Laptop anymore – a personal Rant
I think Windows will shorten the lifespan of your SSD even if you use "shut down", at least if you don't disable "fast startup". "Fast startup" basically replaces "shut down" with a light form of hiberation, which makes shutting the machine down take a long while and turning it on about a second faster. Not worth the tradeoff in my opinion. I also got some bugs when using fast startup, sometimes the sound wouldn't work until a reboot or my WiFi took weirdly long to connect. This is on a Lenovo Yoga/IdeaPad.
matejn··on Designing my own watch (2020)
If I understood the watch website correctly, the weekday marker shows 2 dots instead of 1 during AM.
matejn··on Why not just embed Neovim?
Hmm I used Vim for about 10 years and I never used R. I preferred one of the c- variants, usually ct and cas. I guess it depends on acquired muscle memory?
matejn··on Password may not contain: select, insert, update, delete, drop
Oooh! I put that string there! It was a request by management, and I still don't know why. This site doesn't store any passwords, it's basically just a nice interface to external account management.

I heard a rumour that some legacy apps have weird validation on their login fields, so students wouldn't be able to log in with passwords containing certain strings. But I don't actually know of any examples.

matejn··on Map of Space Invader Mosaics in Paris
I've seen quite a few in Ljubljana. I drive by one in particular almost every day, and it really fits the environment and the style of the building:

https://space-invaders.com/media/invaders/ljubljana/LJU_28-d...

I really appreciate that they're locally themed. Many of them feature Ljubljana's iconic dragons.

I always figured it was some local artist placing them, never figured it was an international thing.

matejn··on Anxious brains redirect emotion regulation
This reminds me of Seneca's letter on groundless fears. "We suffer more often in imagination than in reality." [1]

[1]: https://en.wikisource.org/wiki/Moral_letters_to_Lucilius/Let...

matejn··on Sweden wants to build an entire city from wood
I think it's quite normal to live in a 100+ year old building in a European city center. Though they're usually made from brick and not concrete.

And do people who have built their own house usually demolish it and move on after just 30-40 years? That's when you've just paid off your mortgage, heh.

At my parents' house, they just replaced the roof, which was well over 30 years old. The house itself is over 100 years old and completely fine to live in.

matejn··on Prolog for data science
Prolog's execution model is well defined so there shouldn't be any surprises to the proficient programmer. I'd argue it's less surprising than what a C optimizing compiler does.
matejn··on Elementary OS 7
I do the same on Windows. There's an option to hide icons on the desktop.
matejn··on TurboWarp Desktop
My first foray into programming was on an HP-41C calculator. At the time I didn't know it was "programming", I just used it to make life at school easier. Kind of seems like an Excel moment now, where most people don't know they're "programming".
matejn··on Programming Fonts
I also don't understand the default muted grey comments. I usually configure comments to be a bright red color.
matejn··on The Unexpected Importance of the Trailing Slash
I've recently had to copy a bunch of files over two Windows Servers and was pleasantly surprised by robocopy's (basically Windows' rsync) solution to this dilemma: the first two parameters always only refer to directories, and then you can list specific files starting with the third parameter.

This way there can be no confusion whether you're copying the contents of a directory or the whole directory, and you can't create a duplicated directory within your destination by mistake.

matejn··on In Praise of Idleness (1932)
Another one: http://www.zpub.com/notes/idle.html
matejn··on French lawmakers approve a ban on short domestic flights
Your question reminds me of this video by Wendover Productions: Why Trains are so Expensive: https://www.youtube.com/watch?v=fwjwePe-HmA (12m38s)
matejn··on What is the best dumb TV?
I have seen and used a close-door-to-start microwave. It was a regular microwave where the timer knob was broken. Every couple of weeks you would use pliers to turn the remaining spindle of the knob all the way to the right to reset the timer. :)
matejn··on What is a Source Map
How is that a one liner?

Compare to: cp srcfile destloc/destfile

Edit: In addition, the above gulp command reports success even if the file doesn't exist. If you want to check that, you need to import another library and expand the command with another pipe.

matejn··on What is a Source Map
I believe "x install your framework" is the job of a package manager, not a build tool.

I don't see how your argument holds ground. If everyone used make, tooling would support it, and you wouldn't need to learn the "quirks and tricks" of a dozen other systems.

The problem with make is that it's not portable, since it needs to call system specific binaries, like rm(1) vs del. There's also the BSD vs GNU divide.

Other than that, a newfangled tool like gulp doesn't even have a clean one liner for copying one file to a different location with a different name. It's absurd.

matejn··on As Batteries Keep Catching Fire, U.S. Safety Agency Prepares For Change
The Samsung Galaxy XCover I used to own managed both water resistance and a removable battery.
matejn··on Show HN: Your Social Media Fingerprint (maybe NSFW)
I whitelisted bandcamp because some bands use custom domains.
matejn··on It is time to unlink the “Backspace” – Browser Back shortcut (2012)
This actually works on OpenBSD, along with ^A, ^E and ^U, in Firefox and Chromium. I suspect it might work on a macOS too, but I haven't tried.
matejn··on Show HN: Web Design in 4 minutes
My laptop has a pretty bad screen and several shades of light grey and dark grey appear white or black, respectively, so these sites can be really annoying.
matejn··on Writing an editor in less than 1000 lines of code, just for fun
Gmail's web client also non-optionally auto-wraps text before sending, which is very annoying when you're trying to send a patch or part of a log file.
Page 1 of 2Next →