Better HN
topnewbestaskshowjobs
Log inSign up

GrumpySloth

4,901 karma · joined Sep 13, 2020 (6y ago) · 1,641 submissions

Submissions

comment 4y ago · link · parent

Yeah, I know some people do use it on Windows. But I already felt that I sunk lots of time into debugging my config on multiple occasions, so when on Windows basically nothing from my config worked I lost any will to debug it yet again.

comment 4y ago · link · parent

I’ve been using Emacs for 6 years now. But recently it became clear to me that it’s really optimised for Linux and doesn’t work as well on Mac and Windows[1]. On top of that I kept running into performance issues with large files.

It took me a while, but I’ve finally adjusted to Sublime and am quite satisfied for now. It’s snappy and doesn’t break as easily. The only issue I have is that, unlike Vim and Emacs, Sublime macros seem to record movement by characters, not text objects. So if I move cursor by words inside a macro and then replay it in another place, where words have different lengths, the macro won’t do what it should. For those cases I’ll still switch to Vim probably.

[1]: On Windows my config doesn’t work at all. I have no idea why. I didn’t have the energy to debug it.

comment 4y ago · link · parent

Using the correct name wouldn’t cause any confusion. A newspaper should be held to a higher standard than an average whatever.

comment 4y ago · link · parent

Taste is learnt. Some people consider junk food to taste good only because they’ve been conditioned to eat it when they were growing up. If junk food was not a regular thing in your life, I doubt you’d consider it particularly tasty. Due to health issues when I was a child I couldn’t eat a lot of things at all growing up which for others were just not that healthy. I always ate at home. As a result I don’t consider junk food particularly tasty. Quite the opposite, home-cooked meals made out of raw ingredients are the most delicious thing I can think of. I also have a group of friends a bit older than me who grew up before McDonalds and KFC entered my country. For them too stuff sold by those places isn’t particularly pleasurable to eat. On the other hand I saw plenty of families who these days go to McDonalds every Saturday/Sunday, where the children are conditioned to expect regular visits to those places and will make a huge drama if it doesn’t happen. If you’re in US, from what I’ve heard even normal food in supermarkets is already more processed and the fresh stuff may somehow even be more expensive, so that’s a whole other can of worms.

comment 4y ago · link · parent

From recent(-ish) additions, the vh unit and flexbox were enormous help to me when I was designing a photography section for my personal website. From something older, which nonetheless helped and was new to me, were "display: inline-block" and "display: inline-block" (the concept of separated inside and outside display styles in general). Also "box-sizing: border-box", but at this point probably everybody uses it.

comment 4y ago · link · parent

There is a reason there is a lower bound on age allowing you to be elected. I do think there should be an upper bound as well.

comment 4y ago · link · parent

The problem is when you instruct a colleague to check something using nmap, they install nmap using snap and are surprised it doesn't work, while you are left wondering what the hell is wrong with their computer, oblivious to the footgun Canonical put into their distro; until you remember again after a decade+ of not using Ubuntu. Canonical shouldn't push out broken things like that. It's supposed to be a distro where stuff Just Works(TM).

comment 4y ago · link · parent

Debs are very easy to make and their structure is easy to understand for anyone who's been using Linux for at least a couple months. They're just tarballs with a couple special text files. What's hard is Debian's official tools to make debs, which are geared towards people who want to become maintainers of packages in official Debian repos. If you don't aim to become one, there are third-party tools which make it easy, such as cargo-deb or holo-build. If you don't want to use them, you may also even write a shell script which will produce a good package. Just use lintian to double-check whether everything is alright.

RPM on the other hand is an over-engineered mess: <https://xyrillian.de/thoughts/posts/argh-pm.html>. Tangentially, YUM and DNF were the slowest package managers I've ever used. They're a real pain.

comment 4y ago · link · parent

Is Absolute OpenBSD (the book) still a good intro to this system?

comment 4y ago · link · parent

Particularly since Elisabeth I came long after that date. It’s definitely not 1414.

comment 4y ago · link · parent

Work forces me to use Outlook (the web version) and it's the worst mail program I've ever used. I repeatedly need to mark the same mails as read (last week I got a mail which kept marking itself as unread each time I switched to a different folder and back). A more minor, but still ridiculous, thing is that I can't create a top-level folder named "Calendar" (WTH?). But you'll be glad to know they localised this bug, so you actually can't create such a folder using the word for "calendar" in whatever UI language you chose. The default theme makes it really hard to distinguish mails which are read and which are not. I could go on and on.

I have no idea how a company like Microsoft releases such a turd to the world. And supposedly they're focused on "The Cloud"(tm) now, not Windows. So it should be in a better state than Windows.

When it comes to Windows, I love the overall kernel design. But when it comes to using the system, it seems to really lack polish. The myriad of little dysfunctional details (mostly in things which were added after Windows 7) just kills my ability to work with the system without getting angry at it.

comment 4y ago · link · parent

Only as long as your compiler optimises it into a jump table, which is effectively a hash table.

comment 4y ago · link · parent

In particular anti-semitism is usually associated with the right, but it has a pretty long tradition on the left as well. The 60s in the communist block were a good display of that, but also the 40s in France (Tony Judt wrote a couple books about that, e.g. the French Communist Party, as depicted in The Burden of Responsibility: Blum, Camus, Aron, and the French Twentieth Century).

comment 4y ago · link · parent

Stories of children failing state tests, because they provided an "incorrect interpretation" of a literary work, where the author after the fact states that it was actually a good interpretation, are plentiful. Education system really does punish interpreting things differently than prescribed.

comment 4y ago · link · parent

Nit: "tail" usually means "everything except the head", not "last element". I got a little confused there for a moment reading your comment.

comment 4y ago · link · parent

That would be read-only though, so not an ideal solution for Sublime. Although one could mmap and then reference the original from a structure describing how the file was modified.

However mmaping files which can be modified by another process concurrently is tricky. You can just get killed by SIGBUS.

767.

We are stuck with egrep and fgrep (unless you like beating people)(utcc.utoronto.ca ↗)

310 points · by GrumpySloth · 4y ago · 342 comments

comment 4y ago · link · parent

Strictly a web server doesn't appear to would have required manual intervention in the course of those exact updates. But the point is that manual intervention is required from time to time. Also, Keycloak is very much on my TODO list to host.

> In any case, just subscribe to the arch announcements mailing list and you'll get an email notification in these cases. Not sure if I would put pacman -Syu into cron though.

That's exactly my point. With Arch you're expected to watch out for mailing list updates and running updates automatically with no human supervision is not a supported usecase. With Debian it very much is a supported usecase.

It doesn't mean that Arch is a bad distro. It just means it's not suitable for some scenarios that Debian is suitable for.

comment 4y ago · link · parent

Just this year:

https://archlinux.org/news/grub-bootloader-upgrade-and-confi...

https://archlinux.org/news/wxwidgets-32-update-may-need-manu...

https://archlinux.org/news/keycloak-1701-2-update-requires-m...

I’ve been running Debian with unattended updates enabled for 5+ years now and never needed to manually intervene after an update. You wouldn’t put pacman -Syu in cron.

comment 4y ago · link · parent

One thing Arch is never going to have is smooth unattended upgrades. I host a web server on a Debian-based VPS and, aside from updates between releases every couple years, I don’t need to ever bother myself with keeping it up-to-date. It’s done automatically. On Arch you’re expected to read Arch news before updating and apply manual steps when needed.

comment 4y ago · link · parent

1. C++ doesn’t use vtables for classes which do not have virtual methods (in practice most of them). And vtables are shared between objects of the same type.

2. “Malloc headers”? Malloc usually stores metadata in freed data.

3. C++ developers don’t call “new” for every single object, the way Java devs do. Idiomatic code defaults to allocating fixed-size objects inline (on stack or in a pre-existing bigger allocation), not in a separate allocation.

4. In C++ there are other ways to allocate dynamic memory than “new”. Arena allocators, directly calling mmap/VirtualAlloc/whatever makes sense in a given case.

comment 4y ago · link · parent

Russia isn’t in love with its own culture. If you read their books, you’ll see a sense of inferiority, intellectuals eagerly debating throughout history adoption of Latin alphabet, just to become more European, and these days propaganda being mostly anti-West rather than pro-anything Russian.

Whereas Japan really seemed to be in love with its own culture in the past. And I’d say rightly so.

comment 4y ago · link · parent

What do you mean by “integrating culturally with others”? What would be examples of that?

comment 4y ago · link · parent

https://en.wikipedia.org/wiki/Timing_attack

comment 4y ago · link · parent

If you refer to that date, then UTC. But you may just as well say that it's the number of seconds since 1969-12-31 7:00 pm EST. There is nothing special about UTC wrt Unix timestamps.

comment 4y ago · link · parent

POSIX time isn’t “in UTC” regardless of that. UTC is just one of many timezones you can use when specifying which point in time timestamp 0 refers to. You could just as well use EST or anything else.

comment 4y ago · link · parent

I like reading this site, because it has a few good commenters, and it’s focused on tech and programming, whereas the front page of HN sometimes looks completely dominated by politics and culture topics. It isn’t perfect, but it’s quite good.
1
252627
55