Better HN
topnewbestaskshowjobs
Log inSign up

cuspycode

292 karma · joined Aug 25, 2015 (11y ago) · 178 submissions

Submissions

comment 6y ago · link · parent

I am currently using lxd to manage containers on a headless server. I just found out that lxd on Ubuntu 20.04 has snapd as a dependency, which seems a bit odd. Does anyone know if there is an easy way to install lxd without snap, or should I just ditch it and try some other lxc-container manager?

comment 6y ago · link · parent

I am reminded of astronaut Cady Coleman's flute duet with Ian Anderson of Jethro Tull, in 2011:

https://www.youtube.com/watch?v=XeC4nqBB5BM

comment 6y ago · link · parent

I've had good results from using `git filter-branch --index-filter` to keep everything related to the exported package and remove everything else. This keeps commit history in such a way that `git log --follow` still shows older commits in the new repo, which is nice. I could never figure out how to make that work with `git subtree`.

comment 6y ago · link · parent

It's still not a contradiction, unless you first postulate that 1/2 is the answer, for no particular reason at all.

comment 6y ago · link · parent

Good point. A paradox is something that produces an unexpected contradiction. It must be unexpected, otherwise any trivial false statement such as 2+2=5 would also be a paradox. Russell's paradox is a good example since no one expected a contradiction. The birthday paradox on the other hand does not produce any contradiction, so it's just a case of sloppy labeling.

comment 6y ago · link · parent

Algol-60 (and its younger cousin Algol-68) did actually use boldface to distinguish special keywords such as "if", "begin", "true", etc, from the namespace of ordinary identifiers. But that was only used in publications, not in machine-readable source code, since few encodings could support boldface. Instead various stropping[0] methods were used in the implementations of Algol. Today there is really no technical reason why rich text can't be used, but my guess is that syntax highlighting serves a similar purpose without complicating file formats and parsers.

[0]. https://en.wikipedia.org/wiki/Stropping_(syntax)

comment 6y ago · link · parent

There is a similar story in Judges 19–21, the story about The Levite's Concubine[0]. The main difference is the lack of supernatural elements in this story. Instead the outcome is civil war among the Israelites.

[0]. https://en.wikipedia.org/wiki/The_Levite%27s_Concubine

comment 6y ago · link · parent

Audio/video is also very inconvenient when you need to slow down your processing rate. You have to tweak playback controls for this, while dealing with pure text only requires a slight adjustment of your eyeball muscles. And similarly when you encounter parts that can be skipped forward easily: text just requires some more motion of your eyeballs, while recorded audio/video is a lot more awkward to deal with.

Nota bene: A great lecture is worth a lot. But a great text that delivers the same message is worth a lot more.

comment 6y ago · link · parent

I'd love to hear someone actually quoting dollars per milligram, and do an actual cost-benefit comparison between the mushroom production pathway and this novel yeast pathway. You can produce mushroom juice in a H20 solution cheaply at home for about $0.1 per 10mg of psilocybin. If you want pure psilocybin, it needs to be extracted from such a solution, but I am sure some similar extraction is needed for yeast-produced psilocybin as well. Obtaining psilocybin from yeast sounds like a great technological breakthrough, but I'm highly skeptical of economic arguments where no actual numbers are presented.

comment 6y ago · link · parent

Or even "zip -e", for people who don't have gpg installed. I use this all the time. It takes care of 90% of my needs, and even non-technical people understand how to deal with it.

comment 6y ago · link · parent

Amen to that! The word "blog" stems from "weblog", and I don't understand why anyone would want a log that lacks timestamps? And for the record, I don't think an old publication date implies that the content is stale. It might be stale of course, and in that case the date will help me figure that out, which is good. It might not be stale despite having an old date, and in that case the date will help determine things like priority and standing the test of time. Which is also good. To me, lack of a date means the article is some SEO-tweaked clickbait whose only purpose is to waste my time.

comment 6y ago · link · parent

I like falsifiable predictions. So you predict that the EFF will turn around 180 degrees and support a ban on strong encryption. Would you like to predict a date for this to happen, to make the prediction absolutely falsifiable?

comment 6y ago · link · parent

So maybe it's unfair, but unfair is perfectly OK in this kind of situation. The important thing is to call it out and make it stop, even if this has to be done for one perpetrator at a time.

comment 6y ago · link · parent

I agree with that. I did investigate a number of self-hosted alternatives to Github, but Gitlab was so much easier than any of them. My only complaint about Gitlab is that it uses a lot of CPU even when completely idle. But I was able to fix that easily by throttling it via the "cpulimit" utility.

My Fossil server on the other hand, has had no problems at all. Unless your project requires Git, you could save some pain by considering Fossil instead of Git.

comment 6y ago · link · parent

As a young child I learned more about ancient European history from Asterix than I did at school. Of course a lot of it was plain fiction, but the historical references made imprints on me, and it wasn't hard to separate that from the fiction, as I grew older. So I thank you Uderzo (and Goscinny) for bringing that education into my life.

comment 6y ago · link · parent

Belief in punishment after death is not logically connected to belief or non-belief in deities. Where such connections exist, they too are matters of faith. There are for example atheists that believe in reincarnation and karma/vipaka.

comment 6y ago · link · parent

I had similar problems with that bot recently (i.e. the python bot "certbot"), so I looked around and found a very nice alternative named PJAC[0]. I have now switched a bunch of my domains to use PJAC, and so far it works like a charm. Its only dependency is Java (version 8 or higher). Everything else is bundled in the downloaded artifact, just as it should be.

[0] https://github.com/porunov/acme_client

comment 6y ago · link · parent

Use self-hosted repos like gitlab or fossil, and then mirror the public parts to github.

comment 6y ago · link · parent

My wife got one of those (or a similar model), and it was very helpful for her, especially during the toughest part of winter here when it's completely dark for 17 hours. For me on the other hand, I just made a deliberate mental switch when I was around 35 years old when I decided, for efficiency reasons, to stop working late evenings and doing all-nighters, and tried to catch the early bird instead. The switch was surprisingly easy for me, but YMMV of course. And I've since started working late evenings for a bit again, but my sleep habits have stuck.

comment 6y ago · link · parent

The more I learn about the history of the War on Drugs, the more horrified I get. Sure, drug abuse is a serious problem in society, but the same goes for a lot of similar problems like compulsive gambling, sex addiction, anorexia, and a long list of other issues. Yet the political response to these other problems is very different.

comment 6y ago · link · parent

I copy and edit, and then paste into a different private browser instance.

comment 6y ago · link · parent

That's psychosis, i.e. when perceptions don't correspond to reality. Mental illness is a much larger concept than just psychosis.

comment 6y ago · link · parent

Yeah, Shulgin was a special case, he was a genius biochemist after all. And there are of course lots of people who have synthesized LSD using fairly standard lab equipment. But it's not like something anyone could do.

comment 6y ago · link · parent

I was thinking that growing a penicillin producing mold culture (like Fleming did) is something anyone could do, but I have to admit that I have no clue about how much more processing is needed before it can be applied medically as an antibiotic.

comment 6y ago · link · parent

The condition "you can pretty much build it yourself" forces me to exclude many things with important impact like for example nuclear reactors, LSD, birth control pills, and the silicon transistor. But I think steam engines (or Rankine cycle engines in general) and penicillin are simple enough to qualify.

comment 6y ago · link · parent

I agree, it's mostly a matter of words. But just for the record, quaternions in general are 4D isoclinic rotations (with optional scaling). Left-multiplication by a unit quaternion corresponds to a left-isoclinic rotation, and right-multiplication corresponds to a right-isoclinic one. By combining them you can produce any 4D rotation. A subset of this is the set of 3D rotations that rotate ix+jy+kz into ix'+jy'+kz'.

comment 6y ago · link · parent

Aneutronic reactors are good of course, but the Sun still puts out lots of other dangerous radiation. In particular, ultraviolet electromagnetic radiation from the Sun causes tens of thousands of cancer deaths every year. I have no problem accepting a few percent of that mortality from man-made radiation sources if that helps solving the CO2 emission crisis.

comment 6y ago · link · parent

That's a good question. Maybe we should focus on prosecuting everyone who publishes photos of others without their consent? Or not. But that's a question that's completely unrelated to the question of consenting to facial recognition.

comment 6y ago · link · parent

I've had e.g. foo@mysub.mydomain.com rejected by one of the world's top-3 shipping/courier services. This was on a .com domain registered many years ago, so it wasn't a TLD issue. And the subdomain and its MX was also established long ago. But their software finally did accept the mail address after I removed the "mysub." part. Crazy!

comment 6y ago · link · parent

The idea of "tactical" nuclear weapons needs to go away. Nuclear weapons are strategic by their very nature. In my opinion, any use of nuclear weapons at all should result in a full strategic nuclear response against the offending country. Otherwise there is no credible disincentive against using nukes in casual warfare.
123456