News for hackers. Stuff that matters.

matejn

Re:The Rise of Whatever on Friday July 04, 2025 @03:49AM (#44462189)
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/ ...

True, but at least in my attempts, that setting only affects picture backgrounds and is ignored when using solid color backgrounds.
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 ...
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.
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).
Re:Advent of Code 2024 on Sunday December 01, 2024 @12:18PM (#42289439)
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.
Re:No more blurry fonts in Linux on Wednesday September 25, 2024 @03:11AM (#41644539)
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 ...

Re:The Elements of APIs by John Holdun on Friday September 06, 2024 @05:01AM (#41464314)
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.
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.
Re:Designing My Own Watch (2020) on Thursday August 22, 2024 @02:27AM (#41317385)
If I understood the watch website correctly, the weekday marker shows 2 dots instead of 1 during AM.
Re:Why not just embed Neovim? on Thursday June 13, 2024 @03:43PM (#40673754)
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?
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.

Re:Map of Space Invader Mosaics in Paris on Wednesday November 22, 2023 @01:32AM (#38375530)
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.

Re:Anxious brains redirect emotion regulation on Monday August 21, 2023 @04:43AM (#37206872)
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...

Re:Sweden wants to build an entire city from wood on Tuesday June 27, 2023 @04:02AM (#36490147)
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.

Re:Prolog for Data Science on Monday May 08, 2023 @03:59AM (#35859154)
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.
Re:Elementary OS 7 on Tuesday January 31, 2023 @04:17PM (#34602289)
I do the same on Windows. There's an option to hide icons on the desktop.
Re:TurboWarp Desktop on Friday November 18, 2022 @02:48AM (#33651631)
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".
Re:Programming Fonts on Saturday July 09, 2022 @02:42PM (#32038073)
I also don't understand the default muted grey comments. I usually configure comments to be a bright red color.
Re:The Unexpected Importance of the Trailing Slash on Saturday April 09, 2022 @04:31AM (#30966218)
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.

Re:In Praise of Idleness (1932) on Thursday November 25, 2021 @04:57AM (#29339870)
Your question reminds me of this video by Wendover Productions: Why Trains are so Expensive: https://www.youtube.com/watch?v=fwjwePe-HmA (12m38s)
Re:What is the best dumb TV? on Saturday October 03, 2020 @06:31AM (#24671042)
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. :)
Re:What is a Source Map on Wednesday November 15, 2017 @04:35AM (#15702575)
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.

Re:What is a Source Map on Wednesday November 15, 2017 @02:45AM (#15702130)
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.

The Samsung Galaxy XCover I used to own managed both water resistance and a removable battery.
Re:Show HN: Your Social Media Fingerprint (maybe NSFW) on Wednesday October 12, 2016 @01:22PM (#12694803)
I whitelisted bandcamp because some bands use custom domains.
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.
Re:Show HN: Web Design in 4 minutes on Tuesday July 26, 2016 @04:50PM (#12168640)
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.
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.

Older »