Better HN
topnewbestaskshowjobs
Log inSign up

bqe

2,311 karma · joined Mar 8, 2013 (13y ago) · 221 submissions

Submissions

comment 4y ago · link · parent

I remember being asked this during my interview at Google. It was the first time I heard it and I gave an answer that iterated over the list twice. The interviewer said that it wasn't good enough and I am only allowed to iterate over it once. He didn't let me write my O(2n) solution down so he returned a strong no as feedback.

comment 4y ago · link · parent

Why this is interesting: a major defense against mass account takeovers (ATOs) at large scale companies has been fingerprinting browsers. You as a normal user see this most when you use something like reCaptcha, but it's actually happening on nearly every login flow for major websites. By blocking automation like evilginx, you stop a lot of phishing and credential stuffing attacks against your users.

Using VNC here is super clever. This means that the "automation" part of the phishing attack is actually a browser just like the user is using, so you can't fingerprint it. In fact, the victim is really typing in their password into a real Google login page, but the attacker is logging everything through VNC. It's going to be very hard for Google (or anyone else) to detect this.

The solution to this (like all phishing attacks), is still WebAuthn. However, many of us in security were hoping we could get by with bandaids like fingerprinting until WebAuthn was more widespread.

comment 4y ago · link · parent

I haven't tried it yet, but if it does what you say it does, I honestly think you underpriced this.

comment 5y ago · link · parent

Awhile ago I wrote a Python library called LiveStats[1] that computed any percentile for any amount of data using a fixed amount of memory per percentile. It uses an algorithm I found in an old paper[2] called P^2. It uses a polynomial to find good approximations.

The reason I made this was an old Amazon interview question. The question was basically, "Find the median of a huge data set without sorting it," and the "correct" answer was to have a fixed size sorted buffer and randomly evict items from it and then use the median of the buffer. However, a candidate I was interviewing had a really brilliant insight: if we estimate the median and move it a small amount for each new data point, it would be pretty close. I ended up doing some research on this and found P^2, which is a more sophisticated version of that insight.

[1]: https://github.com/cxxr/LiveStats

[2]: https://www.cs.wustl.edu/~jain/papers/ftp/psqr.pdf

comment 5y ago · link · parent

I think the simplest solution to this would be to simply hide comment/retweet/like counts. It will be possible to sort of figure this out from the engagement, but it won't be easy to figure out if a tweet is popular or wildly popular.

comment 5y ago · link · parent

Spiritless Kentucky 74: https://spiritless.com/products/kentucky-74

It's pretty good!

7.

LOL just got kicked out of @ycombinator(twitter.com ↗)

1041 points · by bqe · 5y ago · 588 comments

comment 5y ago · link · parent

That website is not a quality source of information. Media Bias/Fact Check rates it as questionable, low quality, and far to the right: https://mediabiasfactcheck.com/here-is-the-evidence/

comment 6y ago · link · parent

> They pay for expensive ($$$$$$) cloud anti-bot/anti-scraping, captcha you after a few requests if you run adblock, they pay for extensive browser/device (attempting to reidentify a user across multiple devices/multiple browsers) fingerprinting services and Fastly.

This sounds like a great anti-account takeover program. I imagine with all of the various compliance programs they have to deal with and the legal risk, these are prudent measures.

comment 6y ago · link · parent

The parent commenter was discussing revenue and not profit. If they were aggressively expanding, I would expect that profits to remain small or negative, but I'd expect revenue to grow as a result.

11.

Wiggle the mouse to fix the test (2013)(seancassidy.me ↗)

2 points · by bqe · 6y ago · discuss

12.

Phishing Simulations Considered Harmful(seancassidy.me ↗)

4 points · by bqe · 6y ago · 2 comments

comment 6y ago · link · parent

It's important to know the limits of your knowledge and reasoning capabilities and defer to relevant experts, which is known as epistemic learned helplessness[1]. This is also much faster, as a lot of bullshit sounds like truth if you're unfamiliar with the field.

[1]: https://web.archive.org/web/20180416171148/http://squid314.l...

comment 6y ago · link · parent

Yes! https://github.com/signalapp/Signal-Server

comment 7y ago · link · parent

NIST 800-63b actually recommends against character class requirements[1] in favor of minimum length requirement and blacklists of breached passwords and other obvious passwords. Sites that require special characters are not following the current best practice.

[1]: https://pages.nist.gov/800-63-3/sp800-63b.html

comment 7y ago · link · parent

The thing is running a marathon isn't that hard and there's little to no luck involved. By following a rigid plan most people can do it in about a year. Millions of people do it every year.

However if you followed all of Sam's advice to the letter you could remain relatively unsuccessful despite all that advice. That's what survivorship bias is about: there's a significant luck component to success.

comment 7y ago · link · parent

This phenomenon is called cost disease and it's really hard to figure out why exactly it's happening.

https://slatestarcodex.com/2017/02/09/considerations-on-cost...

18.

Self-Driving Cars Will Always Be Limited(medium.com ↗)

6 points · by bqe · 7y ago · discuss

comment 7y ago · link · parent

I think you underestimate how many people blindly copy examples without understanding them. Safe example code results in more correct programs.

comment 8y ago · link · parent

Websites that want to prevent automated bots from attacking them benefit immensely.

comment 8y ago · link · parent

A good SIEM can search terabytes of logs quickly and aggregate interesting things like least common values. Good luck doing that with grep.

comment 8y ago · link · parent

Whenever free will comes up I like to bring up Conway's Free Will Theorem[1].

If you define free will as future choices cannot be predicted based on history, then it turns out that if humans have free will, so do elementary particles. To me, this doesn't mean we don't have free will, but instead the linear, deterministic model that's often used to discount free will is just not how the universe works.

Note that this result does not depend on statistical randomness like some of quantum mechanics, but just three simple axioms. I highly recommend reading the full paper, especially the end, "Free Will Versus Determinism".

[1]: http://www.ams.org/notices/200902/rtx090200226p.pdf

comment 8y ago · link · parent

MarkMonitor is what Facebook, Google, Apple, Microsoft and other huge companies use. They don't take small accounts, though.
12345
8