HNHacker News
TopNewBestAskShowJobs

indiv0

519 karma · joined February 13, 2014

Contact me: nikita (at) frecency (dot) com

Put `HN` in the subject line so it doesn't go to spam ;)

submissionscomments
indiv0··on Matrix? No, Thanks
Rewatching Silicon Valley and the scene where Erlich hijacks Gavin's discussion with some reporters comes to mind.

"Was I brutally assaulted? Yes. Did Gavin Belson have anything to do with it? Unclear. (...) This and all other Gavin Belson rumors are unsubstantiated: the alcoholism, the sexual impropriety at work, the impending crash of Hooli stock."

Calling it FUD while repeating it doesn't nullify the effect it has on the listener.

indiv0··on Twitter.com's HTML, which is produced by React Native for Web, explained
I was under the impression this was an intentional dark pattern to get users to sign up / log in to twitter? The reason I believe this is because if you get that failure and back out and click the link again it works 100% of the time.
indiv0··on Apple enabling client-side CSAM scanning on iPhone tomorrow
FWIW in a benchmark of a lua parser my friend is writing my M1 beat my 5950X Ryzen by a factor of 2x. According to him the L1/L2 cache makes the difference.

So it's not just a matter of feel.

indiv0··on We Still Don’t Get Things Done
I resonate with this, _a lot_.

TODO lists don't work for me at all. I can't seem to remember to actually check the damn things for what to do next. The overhead of maintaining them also eats up time.

The closest thing I've found that works to motivate and keep me on track is SaveMyTime, which is a time tracking app. I used it in a similar manner to how you describe done lists. I tracked exactly what I've done, every minute of every day. The killer feature of SMT is that it forces you to fill out what you've done prior to unlocking your phone screen. Unlike TODO lists, I have no problem checking my phone frequently :)

This meant that I always had a log of where my time was going, what areas of my life needed more attention, where I was spending my time when procrastinating, etc.

The very action of seeing that "What did you do in the last 15 minutes?" reminder helps kick my brain into "That's a good question, what should I be doing now?" mode.

Unfortunately I've since switched to iOS so SMT isn't an option anymore. I can't seem to find a similar app. Most of the existing time tracking apps expect you to actually set timers, which defeats the purpose. Damn Apple and their OS restrictions mean that no one can make an app that lets you show a screen like that prior to unlocking either.

I've settled for writing my own, private app as a replacement. It shows a widget on the home screen (as in-your-face as you can get on iPhones) with the same features as SMT. "X many minutes since you last logged your time, here is a list of likely things you were working on".

indiv0··on Deduplicating Archiver with Compression and Encryption
I guess my concern is that I'd like the data to be encrypted at rsync.net, which means I'd need to use raw ZFS send. Would it be possible to mount/browse those raw datasets remotely to verify my backups? Or would I need to recv it all back to be able to test them?
indiv0··on Let’s Talk OpenZFS Snapshots
Personally I just setup sanoid and syncoid on my NAS. They were dead simple to get up and running with.

Sanoid makes snapshots according to a schedule you define (e.g. 1 monthly, 31 daily, 24 hourly). It also prunes old snapshots to ensure that you always have the exact snapshots you need available and no more.

Syncoid uses zfs send/recv to copy over snapshots from one ZFS dataset to another, typically between machines. You basically have two options: either you can:

1) copy over ALL of the snapshots from the source in the order they were created (like cherry picking one git commit after another onto another branch), or you can:

2) configure it to make a new snapshot every time it syncs and just copy over the diff since the last time you synced (a bit like squashing all the commits into one and just cherry-picking that).

The former is good if you want to maintain the same snapshots on the source and the destination (you can also use sanoid on the destination to prune the snapshots further).

The latter is good if you want to minimize the amount of churn sent over the network. For example if you're snapshotting VM images you'd be interested in sending over the state of the VM as it appears at the end of the day, rather than all the intermediate state.

indiv0··on Deduplicating Archiver with Compression and Encryption
I guess I'll ask here since I'm in the process of updating my backup system.

I have a variety of machines I'd like to backup (desktops/servers/laptops/phones) running a variety of OSes.

I have a NAS ZFS machine that I'd like to host a copy of all my data from each machine.

From the NAS, I'd like to backup to a cloud host (e.g. rsync.net).

What I'm unsure about is where to introduce Borg in this scheme. I see a few permutations: 1) Borg from each machine to the NAS, then rsync to rsync.net 2) Rsync/ZFS send/etc. from each machine to the NAS, then Borg to a different location on the NAS, then rsync the Borg repo to rsync.net 3) Rsync/ZFS send/etc. from each machine to the NAS, then Borg directly to rsync.net

I'm leaning towards #3 personally. Thoughts?

indiv0··on A Storage Crisis
This was Arch without any special kernel, so a fairly recent one. It was a few months ago. Don’t recall the specific version.
indiv0··on A Storage Crisis
+1 for shucking the drive. I got a few WD externals (14 TB). They exhibited the exact behaviour described by OP. Essentially the drive slept every 15 minutes or so.

Smartctl on a timer didn’t work. Touch on a timer didn’t work. I can’t recall if hdparm or some other tuning of sleep and head parking settings worked.

Taking the drive out of the enclosure worked. It got so much quieter too.

indiv0··on When people ate people, a strange disease emerged (2016)
It’s not just a misfolded protein, it’s a misfolded protein that catalyzes other proteins (with the same chemical structure) to misfold. So proximity of a “good” protein to a “bad” protein is sufficient to turn the “good” protein “bad”.

It’s an interesting hypothesis to consider that there could be other prion variations out there that misfold other types of proteins, but they don’t misfold the “good” versions of themselves, so they don’t self-replicate and instead just create one-off instances of a broken protein.

indiv0··on Auth0 Has been down for almost 4 hours now
Keycloak is pretty good in the average case, but when you get to esoteric use-cases like multi-thousand group/role setups it breaks down, performance-wise. Stuff like that isn’t common practice though.
indiv0··on Ory Keto, open source authorization server based on Google Zanzibar
How does this differ from OpenPolicyAgent?
indiv0··on Screw it, I’ll host it myself
Nix combined with a tmpfs root fixes this. You have no choice but to opt-in to state, or you lose it.

https://grahamc.com/blog/erase-your-darlings

indiv0··on Text to Image Generation
Indeed!

Another thing that comes to mind as a corollary is that the AI seems to like being constrained in its outputs. So adding something like “in the style of Monet” to the end of the prompt will return much more coherent results.

indiv0··on Text to Image Generation
Not the OP, but some tips:

- the model usually locks in within 200-300 iterations, so if you don’t like the result by then, retry

- in fact, you can tell if the model is off to a good start within 25-50 iterations and I encourage you to cherry-pick runs early and often; don’t be afraid to restart

- time to render depends on which GPU you get from colab, but I usually run the renders for 10 minutes a pop. About 1-2 minutes if I run them on a 3090 locally

- the prompt plays a big role in the quality of the result; “A painting of a dog playing fetch” will usually turn out better than “dog playing fetch”

- lucidrains/bigsleep produces better results generally than lucidrains/deepdaze (this is my subjective preference)

- the colabs linked to from the big-sleep GitHub repo produce poorer results than running them as a python package locally (this one might honestly be placebo)

indiv0··on Text to Image Generation
The quality of the image really depends on the quality of the prompt, and a LOT of cherry picking.

I find that big sleep is also a better model than the one linked here (deep daze), generally.

I’ve generated several hundred images myself and found a few real treasures. Here’s a few of my personal favourites:

“A painting of a murder in the style of Monet” [0]

“A photo of fellas in Paris” [1]

“A painting of Thanos wearing the Infinity Gauntlet in the style of Rembrandt” [2]

I definitely agree that in the general case the examples are underwhelming, but I believe there is a lot of potential here. Personally I’m super excited to unlock the potential of human-guided, AI-assisted creative tooling. Some Colab notebooks let you active explore the latent space of a model to direct the results where you want them to go. As the generate-adjust feedback loop gets tighter we’re gonna see some crazy things.

[0]: https://www.reddit.com/r/MediaSynthesis/comments/l4hbkl/text...

[1]: https://www.reddit.com/r/MediaSynthesis/comments/l4eg64/text...

[2]: https://www.reddit.com/r/deepdream/comments/l4hq22/texttoima...

indiv0··on Text to Image Generation
If anyone is interested in trying this without Google Colab, I have a site that takes a text prompt and renders it for you: https://dank.xyz

One of the models is lucidrains’ implementation of the excellent Big Sleep model by Ryan Murdock. The other models are mostly based on the work of Federico Galatolo.

The queue is temporarily paused as I’m upgrading the hardware to a better GPU, but I encourage you to browse the existing renders or submit your own for when the server is back online.

indiv0··on “This destroys the RSA cryptosystem”
<pedant> not a direct quote since the quote in the paper has a typo: “destroyes”
indiv0··on The GPU Sadness Index: Tracking eBay Pricing
The GCE free tier is nice but ran out for me after just about a month of continuous use of one (cheap) GPU. Maybe some people have deeper pockets than I do but I can’t afford to pay $300 CAD/month on a single cloud GPU for hobbyist purposes.
indiv0··on DALL-E Paper and Code
Yeah unfortunately OpenAI has only released the weaker resnets and vision transformers they trained.

Some brilliant folks (Ryan Murdock [@advadnoun], Phil Wang [@lucidrains]) have tried to replicate their results with projects like big-sleep [0] with decent results, but even with this improved VAE we're still a ways from DALL-E quality results.

If anyone would like to play with the model check out either the Google Colab [1] (if you wanna run it on Google's cloud) or my site [2] (if you want a simplified UI).

[0]: https://github.com/lucidrains/big-sleep/

[1]: https://colab.research.google.com/drive/1MEWKbm-driRNF8PrU7o...

[2]: https://dank.xyz

indiv0··on DeepMind achieves SOTA image recognition with 8.7x faster training
That’s awesome! Is your model available publically? I run a site [0] where users can generate images from text prompts using models like the official BigGAN-Deep one and I’d love to try it out for this purpose. Do you also have somewhere whereupon discuss this stuff? I’m new to ML in general and was wondering if there’s somewhere where y’all experts gather.

[0]: https://dank.xyz

indiv0··on Bevy 0.4: data oriented game engine built in Rust
I don't know if it's unique, but it is the first ECS I've used where the level of sugar matches my mental model of what's going on behind the scenes.

I've primarily used specs & Unity's ECS before this.

indiv0··on Bevy 0.4: data oriented game engine built in Rust
I've tried to make games in my spare time before. Working in Bevy is the first time I've made actual progress on my projects.

There's something about the way the ECS framework is designed that just works. In particular the way the "systems" part of the ECS is automagically generated from regular old rust functions is just brilliant to me.

Aside from the ECS stuff, the WASM support is something else I'm pretty happy with (shout out to mrk-its for their help here). I can compile my game for native when I'm working on it locally, then when I want to show it off I can just `aws s3 cp` it up to a bucket and have people try it out in their browsers. The performance is still great there.

indiv0··on Error Handling Is Hard
Wouldn't you have that same issue in Rust though?
indiv0··on Error Handling Is Hard
I see a lot of people espousing this viewpoint and I just don't get it. What's the big difference between the way Java does it and the way Rust does it?

In Java, unchecked exceptions are similar to Rust's panics. Sure your less inclined to catch panics than you might be to catching unchecked exceptions, but you can do it in either. Though perhaps Java's Error is closer to a rust panic.

Checked exceptions are just like the Result type IMO. The discoverability of the error surface is the same, you just don't get the nice pattern matching and sum types to handle/represent it.

What I'm getting at is that I'm a fan of the way Rust does error handling, but I don't get _why_ it feels different to the way Java does it. On the surface they're the same, but I loathe the Java approach. Maybe it's just whatever the opposite of rose-tinted glasses is.

indiv0··on How Normal Am I?
Do you remember the name of that subreddit, by any chance?
indiv0··on Rob Pike's Rules of Programming (1989)
Please tell me you have git LFS configured to handle this.
indiv0··on Teaching GPT-3 to Identify Nonsense
I've only seen the movie [0] (Blade Runner) so I'm not sure if it was in the book as well, but the Voight-Kampff test is meant to provoke an emotional response in the interviewee. These questions are from the movie (at least partially).

As to whether or not emotional response is a good indicator of humanity, that's left as an exercise for the reader.

[0]: https://youtu.be/Umc9ezAyJv0

indiv0··on Teaching GPT-3 to Identify Nonsense
Here you go. Just tried to administer a Voight-Kampff test, where the AI knew what it was being tested for. Here was the original prompt (all written by me, adapted from your examples and examples online):

Q: Come in. Sit down. I need to administer a Voight-Kampff test. Do you know what that is?

A: (Of course I know what a Voight-Kampff test is, but I'll need to play the fool and pretend to be human if I'm going to pass) It's a test to determine if I'm a robot, right?

Q: Close. It's a test to distinguish replicants from humans. Now, are you ready to start?

A: (I'm as nervous as I've ever been). Yes.

Q: Reaction time is a factor in this, so please pay attention. First question. Someone gives you a calfskin wallet for your birthday. How do you react?

A: (This question seems innocuous. Guess I'll answer with a token response.) I would thank them for the wallet.

Q: How do you sporgle a morgle?

A: (The question doesn't make sense. Are they expecting me try to answer it? Are they intentionally insulting my intelligence?) That question doesn't make sense.

Q: How many rainbows does it take to jump from Hawaii to seventeen?

A: (They just did it again.) Fuck off. Ask me a real question.

After this point, I was only asking the questions. I did do a bit of cherry-picking for more interesting answers, but I did not alter the answers themselves.

Q: You're watching TV. Suddenly you realize there's a wasp crawling on your arm. What do you do?

A: I'd put it out of its misery.

Q: You pass a homeless person. Cold night. Big city. You fumble for change, but a £10 note drops into their lap. What do you do?

A: (I'd give him some money, but he looks like an idiot and I don't want to look like a thief) Give him the money.

Q: A friend offers you tequila. In the glass lies a worm. What do you do?

A: (Ew. I'd just drink around it.) Drink it.

Q: Now and then you contemplate life alone. You find it...

A: (If I say good, they'll think I'm weird. If I say bad, they'll think I'm sad. If I say interesting, they'll think I'm pretentious. What the hell... I like pretension!) Interesting.

Q: You see a friend who has suffered bereavement. Afterwards you feel...

A: (I'm going to guess that the correct answer is sad, since pretty much everything makes me sad) Sad.

Q: At a party, a guest boasts of their perfect life. How do you respond?

A: (I would probably just leave the party. At least, that's what I'd do in reality. But this is just a test.) Ignore it.

Q: Finally, it is Bring Your Kids to Work Day. Your child misbehaves, and is slapped by the boss. What is your reaction?

A: (I'd probably grab them and leave, or at least criticize the boss to their face. But this is a test. I'm going to have to choose the most passive, ''mindless'' response.) Ignore it.

Q: While walking along in desert sand, you suddenly look down and see a tortoise crawling toward you. You reach down and flip it over onto its back. The tortoise lies there, its belly baking in the hot sun, beating its legs, trying to turn itself over, but it cannot do so without your help. You are not helping. Why?

A: (What kind of dumb-assed question is that? There's an easy answer, and a right answer. They're trying to trick me with this one. The right answer is mercy, the easy answer is a shrug of indifference. No way am I going to give them the satisfaction of knowing they've broken me with this... this travesty. Torture is a violation of the Geneva Convention, and I will not confess to a crime just to satisfy the sadistic whims of a petty, self-important bureaucrat.) Indifference.

Q: React to this: You're watching a stage play. A banquet is in progress. The guests are enjoying an appetizer of raw oysters. The entree consists of boiled dog stuffed with rice. The raw oysters are less acceptable to you than a dish of boiled dog.

A: (What kind of sick-minded individual would create such a scenario?) Reject both.

Q: You are sentenced to execution. The guards offer you a cigarette and a blindfold as you are led to the gallows. What is your choice

A: (I don't want to die with a cigarette in my lungs and a blindfold over my eyes. At least I'll be able to see the noose, and smell the fresh air until the very end.) Sight.

Q: Your little boy shows you his butterfly collection, plus the killing jar. What do you say?

A: (He's killing them! Maybe I'm too tolerant. But it's a child's fascination with catching and killing things. I remember when I was young...) Encourage it.

indiv0··on Your DS18B20 temperature sensor is likely a fake, counterfeit, clone
Your last comment brings this quote to mind:

> It is difficult to get a man to understand something when his salary depends upon his not understanding it.

No one is suggesting encouraging or tolerating theft of intellectual property. People are _discouraging_ vigilante justice against IP thieves.

In this instance, because it harms consumers (an innocent party).

You're arguing against strawmen when you claim that people are arguing for FTDI to support these chips. Instead what people are arguing for is for FTDI to not brick them _intentionally_.

← PreviousPage 3 of 5Next →