517 karma · joined Jul 9, 2010 (16y ago) · 177 submissions
Opinions expressed are my own, and do not reflect my employer.
comment 7y ago · link · parent
Say you worked for a company that didn't require 2FA yet. Then there is a hack, and your co-worker's account is stolen. IT investigates, clears it up, and pushes out a policy that enables 2FA. "Ok everyone, all clear! No need to worry anymore."
A while later, your account is hijacked.
comment 7y ago · link · parent
For more details, here's a comment I made a couple years ago:
There's a nice comparison of compression algorithms (including zlib, zstd, brotli, snappy, etc) here: https://quixdb.github.io/squash-benchmark/ It's nice because it uses many datasets and machine platforms. Unfortunately the graphs leave a bit to be desired, especially when you're trying to compare two algorithms. They provide the raw data, but it needs a little munging to make it workable.
For my day job I made the following graph to compare zlib level1 and zstd. This was using the "peltast" platform which is a Xeon based system, because that was most relevant for us.
(the original comment: https://news.ycombinator.com/item?id=12400503 )
comment 8y ago · link · parent
comment 8y ago · link · parent
I'll continue to poke at this, I think. For me, the competition is Sublime Text with a bunch of Rust plugins. It took a while to set up and it's not super snappy, but it works decently. I would like to replace this setup with something more "out of the box" and better integrated.
For anyone interested in rust IDE, maybe check out https://areweideyet.com/
comment 8y ago · link · parent
How large was the 10 million line file, and do you know whether sort was paging files to disk?
comment 8y ago · link · parent
Due to the way that the Bitcoin protocol works, honest miners will sometimes "help out" the colluding group by mining on that published fork. This basically amplifies the power of the colluding group, which is the goal. Worse, the paper proposes that the percentage of honest miners switching to the fork can be influenced cheaply, by choosing which blocks to forward along in the p2p network.
comment 8y ago · link · parent
comment 8y ago · link · parent
So I'm assuming what the parent meant by sparse is, things where the universe is much much bigger, and therefore the things in your set are a sparse proportion of the universe. For instance, in deduplication, we use at least 160 bit hash functions...and that bitmap isn't looking good for us!
comment 8y ago · link · parent
To keep the contract of the bloom filter, a "no" can only come if ALL filters return no. So if one of the filters return 0 and the other returns 1, the answer is maybe (i.e. a yes with some false positive probability). If we instead answered no, it would be a false negative as you stated, so we can't do that. This paper doesn't defeat this property of bloom filters.
The cool insight in this paper is that how you choose the new filter size allows for a relatively nice tradeoff of "wasted" size, and a target for the effective false positive ratio, even in the face of growth. We are increasing the probability for false positives, but depending on how you pick the sizes, you can do better than if you simply allocated another bloom of the same size, forever and ever.
(When I say "wasted" size, I mean the extra bits you need to get a certain false positive ratio, when you compare it to a properly sized filter from the get-go. In essence, you're paying some overhead when you get to a certain size. In exchange, you do not need to have guessed the size correctly / allocated all that memory from the get-go.)
comment 8y ago · link · parent
I'm asking my friend to run a more thorough crack on his dedicated GPU, especially for hash value 000DD7F2A1C68A35673713783CA390C9E93:630 which does stick out to me!
comment 8y ago · link · parent
https://api.pwnedpasswords.com/range/00000
I wonder if the hidden variable is something to do with how the passwords are leaked. First, let's suppose that a very commonly used broken password hash is plain SHA-1 (I think that's a valid assumption-- unfortunately!). Then, let's figure that amongst the many data dumps / extracts done by hackers, some of them are only able to extract part of the database, or save part of the database, or whatever....and they are fetched / saved / uploaded in lexical order?
Can't think of anything else.
EDIT: Ooops. The other thing is, that these actually are sha-1 hashes of real plaintext passwords. So it's definitely not a test-row in that sense.
comment 8y ago · link · parent
Netflix worked hard to change that model by figuring out what people liked to watch and generating high quality content in the patterns they saw. Turns out, now everyone watches whatever show Netflix puts in front of them.
Do you think it's possible a similar phenomenon could happen for music?
I can tell you that since signing up for Spotify Premium, I've certainly been exposed to more new artists that I like, based on their recommendations. Since their library is currently still extensive (like how Netflix had a lot more movies back in the day), I'm very rarely looking for a song they don't have. I can imagine a world where the content holders get more scared (although that would be an impressively delayed reaction) and thus Spotify is pressured out of contracts (just like Netflix was). I'm guessing that Spotify is betting that if that is the case, they can rely on the fact they've been changing their listeners tastes to survive.
comment 9y ago · link · parent
The key word to google is "blocked bloom filter" e.g. as proposed in http://algo2.iti.kit.edu/documents/cacheefficientbloomfilter...
Here's a nice paper with some improvements http://tfk.mit.edu/pdf/bloom.pdf
We use blocked bloom filters for a couple of reasons, but one major benefit is the memory locality (our "bloom filter" is 32GB or larger, so it's handy & fast to be able to address it with separate "pages" which are really just individual bloom filters.)
comment 9y ago · link · parent
I've heard descriptions (from the producers) of barrels that gained / lost proof depending on what floor of the warehouse they were stored on. Pretty neat.
comment 9y ago · link · parent
https://www.heart.org/idc/groups/heart-public/@wcm/@sop/@smd...
http://www.kff.org/other/state-indicator/opioid-overdose-dea...
comment 9y ago · link · parent
comment 9y ago · link · parent
I am not sure how the city selection works. Tree House is more than 50 miles from Boston, so it doesn't get included. But if you move the selector to 1+ breweries and 50 miles, then Treehouse shows up, under Chicopee, MA. Which is an interesting choice, because Treehouse is less than 50 miles from Worcester, which is also less than 50 miles from Trillium (although barely), which would certainly show up.
So, maybe there are some details around the "grouping" that aren't clear. Maybe the brewery gets "pinned" to the closest city with more than 40K people?
it's also quite unclear how he used the Ratebeer data. "Data from RateBeer. Only breweries with 3+ beers that were reviewed 10+ times and 50+ total reviews were included. Restricted each brewery to its top 10 beers by review count (which accounted for greater than 90% of all reviews)."
And yet Santa Rosa, his primary example, lists the breweries Bear Republic Cooperage Fogbelt Henhouse Moonlight
...but not Russian River?! It's pretty obvious that Russian River is better rated than Bear Republic, especially by his extended criteria.
So, yeah, I guess I'd like to see his data and code.
comment 9y ago · link · parent
Yes, there is a bug in this code. It doesn't handle repeated elements.
If you fix the code by including an equality in one of the two groups, then it works, but it degrades when there are many repeated elements. In the worst case, you can only shrink your groups by one each time, which means the complexity changes to O(n^2) :(
You can fix THIS issue using a 3-way partition. That is the algorithm I've used. With a good pivot choice (random or median of three), this gives you an in-place sort which is guaranteed to be O(nlgn). Nice!
comment 10y ago · link · parent
I do not agree with your statement that compress + write is always slower, though. The analysis for cost/benefit of compression is the exact same logic for both reads and writes, but with different formulas based on how fast you can compress/decompress and read/write blocks. Let's imagine that your disk takes 10ms to write 64KB and 20ms to write 256KB. Then if compression of a 256KB block down to 64KB takes 5ms, writing is faster with compression done first. On the other hand, if compressing it takes 50ms, then writing it raw is quicker.
comment 10y ago · link · parent
Of course, in reality, the escrow may not be enough to remove the bias, but it's an interesting thought.