Better HN
topnewbestaskshowjobs
Log inSign up

matejn

370 karma · joined Aug 28, 2015 (11y ago) · 38 submissions

Submissions

comment 1y ago · link · parent

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/ ...

comment 1y ago · link · parent

True, but at least in my attempts, that setting only affects picture backgrounds and is ignored when using solid color backgrounds.

comment 1y ago · link · parent

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 ...

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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).

comment 1y ago · link · parent

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.

comment 2y ago · link · parent

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 ...

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

If I understood the watch website correctly, the weekday marker shows 2 dots instead of 1 during AM.

comment 2y ago · link · parent

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?

comment 2y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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...

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

I do the same on Windows. There's an option to hide icons on the desktop.

comment 4y ago · link · parent

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".

comment 4y ago · link · parent

I also don't understand the default muted grey comments. I usually configure comments to be a bright red color.

comment 4y ago · link · parent

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.

comment 5y ago · link · parent

Another one: http://www.zpub.com/notes/idle.html

comment 5y ago · link · parent

Your question reminds me of this video by Wendover Productions: Why Trains are so Expensive: https://www.youtube.com/watch?v=fwjwePe-HmA (12m38s)

comment 6y ago · link · parent

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. :)

comment 9y ago · link · parent

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.

comment 9y ago · link · parent

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.

comment 9y ago · link · parent

The Samsung Galaxy XCover I used to own managed both water resistance and a removable battery.

comment 10y ago · link · parent

I whitelisted bandcamp because some bands use custom domains.

comment 10y ago · link · parent

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.
12