HNHacker News
TopNewBestAskShowJobs

slazaro

1,320 karma · joined November 13, 2013

submissionscomments
slazaro··on Combination of Rapamycin and Acarbose significantly Extends Lifespan
I "yelled" IN MICE right after reading the title, went to check the article, and sure enough...

But yeah, it seems 100% deliberate because most people wouldn't probably care after reading the title. It's academic clickbait techniques.

slazaro··on Users reporting artifacts appearing in old images stored in Google Photos
Your own devices, with a proper backup solution (which you should already have with or without your photos in it). Nobody can mess with your data then.

Personally, I use Syncthing to sync between devices, including a NAS as a target, which regularly backs up to Backblaze.

slazaro··on Show HN: Countle
The symbol for the multiplication shows as "ă" for me for some reason.
slazaro··on John Carmack on avoiding distractions
I'm reading Masters of Doom right now and this actually upset me a bit. Who gets rid of a pet like that?
slazaro··on Cramming 'Papers, Please' onto Phones
Aesthetically too. If you've seen screenshots of Obra Dinn, you remember. It has such a distinctive look to it.
slazaro··on We're improving search results when you use quotes
It just happened to me, where I added a "-word" term to narrow it down and the number of results increased somehow. That means that they're doing something behind the scenes that's not as simple as "remove all results that contain "word".
slazaro··on Ask HN: What are some cool but obscure data structures you know about?
I remember checking whether I would use std::deque, and I don't remember exactly why but I decided to implement this other system instead. I think it was because you can invalidate pointers with it if you delete somewhere in the middle, either manually or by calling an algorithm with it.

Of course you have the option to just not do that in your code, but it's nice to have a hard guarantee that this can never happen, even by accident. I could have used a deque as a backend and wrapped it in the class, though.

slazaro··on Ask HN: What are some cool but obscure data structures you know about?
Yeah that's pretty similar. I keep a list of pointers to blocks and they're all the same size, that way you can easily address elements via a linear index. I tried doing the doubling size thing like std::vector, but the addressing became more complex and I didn't find a need for it, but I might consider it in the future. But yeah, it seems like it's almost the same kind of structure. Thanks for the pointer!
slazaro··on Ask HN: What are some cool but obscure data structures you know about?
I don't know whether it already exists or if it has a name, but internally I call it Virtual List.

- Reasoning: It's used in cases where you'd ideally use an array because you want contiguous memory (because you'll usually iterate through them in order), but you don't know beforehand how many elements you'll insert. But you can't use a resizeable version like std::vector, because it invalidates any pointers to the elements you've already allocated, and you need to store those pointers.

- Implementation: As a black box, it's used like a list: you index elements with an integer, and you can append to the end. But internally it uses different lists. Like a std::vector, it starts with an allocated size, and when it needs a bigger size, it allocates newer blocks that are "added" to the end, but doesn't move the already allocated elements.

- Downsides: Data is not all contiguous, at some point there are jumps between elements that should be close together. For performance when iterating, it's negligible since those cache misses happen "rarely" (depends on the block size, bigger block size means better cache performance but more potential wasted allocated memory), and most of the time you're iterating from start to end. But this means that you can't use this structure with algorithms that use "pointer + size", since internally it doesn't work like that. And since internally you can't shrink the lists and invalidate pointers, there's no way to delete elements, but in my case it's not a problem since I'd reuse indices afterwards with an added structure.

- Applications: I used it when coding games, when you have a big list of entities/components but you don't know how many beforehand. You access them by index, you might store pointers to elements, and most of the time you'll iterate through the whole list (when updating, drawing, etc.).

slazaro··on The world needs a non-profit search engine
99%+ of people wouldn't use this, they would just try the search engine, see that the results suck, then stop using it.

It could be useful for power users, though.

slazaro··on Installing a payphone in my house
I was just analizing the Luhn algorithm and... the step to reverse the digits doesn't seem to do anything, right? None of the other steps depend on it and in the end you just sum all of the digits together... Is it because the amount of initial digits might not have the same parity and therefore you'd sum a different set of digits depending on whether you reverse or not?
slazaro··on Cats learn the names of their friend cats in their daily lives
If you like that sound, there's a subreddit called ActivationSound that's literally just videos of that. Probably my favorite subreddit.
slazaro··on Twitter makes it harder to choose the old reverse-chronological feed
Twitter "helpfully" shows suggestions, ads, tweets people you follow liked, tweets from people followed by people you follow, replies by people you follow that don't appear in their timeline, etc. etc., and the tweets are sorted however the app decides that day.

None of those things happen in lists.

slazaro··on My Battle with Post-Finasteride Syndrome, Part I
I just wanted to say that I hate when multiple part articles (or videos, etc.) are not posted all at the same time. It feels like I'm worse off now than I was before reading this.

Edit: Sorry, that was a bit harsh. I do hope that things improved with your condition after all.

slazaro··on Wordle Is a Love Story
I coded a small program, and the sequence of words that I use (not interchangeable, you'd use them in sequence to gather more info) is:

AROSE UNTIL DUCHY BLIMP GAWKS

slazaro··on YouTube starts to require a credit card or ID to verify the age in EU (2020)
It's not ideal, but if you heavily blur all the info except name (which they probably know already) and birth date (what they're after), they accept it with no problem.
slazaro··on I was sick, tired and had lost myself until I began lifting weights at 71
Visit the bodyweightfitness subreddit and check out the recommended routine.
slazaro··on I was sick, tired and had lost myself until I began lifting weights at 71
That's an insane amount that will most likely destroy your shoulders if you don't do any pulling to compensate. It might not be the form, but the imbalance between push/pull.
slazaro··on The most precious resource is agency
Imagine being the dude that made a mistake in accounting, and being remembered 5000 years later because it's the earliest recorded name we know:

https://en.wikipedia.org/wiki/Kushim_(Uruk_Period)

I didn't find a mention of him making a mistake in this article, but I think I read somewhere a while ago that the numbers he wrote on the tablets had some error somewhere.

slazaro··on Notepad++ v8 release
Can it access Spotify playlists, or just local ones? I've been looking for alternative Spotify desktop clients but I've never found anything I like.
slazaro··on YouTube-dl can no longer download age-restricted videos
It's pretty infurating that I've had a Youtube account since 2006 (15 years ago), and now they're asking me whether i'm over 18. A basic calculation on their end could filter the accounts based on age, given the TOS of when they were created (e.g. if the TOS specified that I must be over 13, a 2006 account would mean I'm at least 28, therefore automatically verified).
slazaro··on Ask HN: How to cope with the death of a dear person?
It's more of a prevention than a cure, but Stoicism (the philosophy, not the abstract concept) is a good philosophy of life that would help strengthen you for this kind of negatives. You wouldn't stop caring or feeling, but you'd be more in control over what the feelings do to you, and see these events in a more "positive" light.
slazaro··on Show HN: Find Subreddits for Your Niche
or use !greddit, which searches on google with site:reddit.com added at the end.
slazaro··on Anime2Sketch: A sketch extractor for illustration, anime art, manga
Do it iteratively one after the other to see if after a while the results are unrecognizable from the originals. Like those experiments that translated a text between languages to create gibberish.
slazaro··on Send: A Fork of Mozilla's Firefox Send
You could add a "fast" or "lite" or similar subdomain that avoids anything like the complaints that have been shared here. Not perfect (the default should be the best), but at least you could avoid this problems as a user.
slazaro··on So I finally sorted out what happened to my brain
This will sound very stupid or like a joke, but I'm not joking: Maybe if you play (almost) exclusively games with permadeath, where the consequences of dying are bigger, could at least hard-wire some kind of survival instinct in your head in case you get lost in this surreal feeling? In the worst case scenario you played some good games.
slazaro··on FFmpeg 4.4
Cut ffmpeg video without losing quality by keeping the same codecs, very fast:

Example: Start at 52 seconds, take 10 minutes after that:

  ffmpeg -ss 52 -i input.mp4 -c copy -t 00:10:00.0 output.mp4
slazaro··on Can’t use iCloud with “true” as the last name
The GP comment gave a reason: some websites might misbehave with longer passwords, so it's not actually free.
slazaro··on ISO 8601: a better date format
How about french? 99 is four twenties nineteen, 79 is sixty nineteen. Languages are fun and fascinating.
slazaro··on Little is a statically typed, C-like scripting language
Make it a T-shirt, the fake-deep tone for a nonsensical statement is kind of ironic/cool.
← PreviousPage 3 of 12Next →