HNHacker News
TopNewBestAskShowJobs

jabagawee

476 karma · joined April 22, 2013

email: andrew at myusername.com
submissionscomments
jabagawee··on JPMorgan Says Data Breach Affected 76M Households
The next question is: is that a tradeoff that is worth it?
jabagawee··on JPMorgan Says Data Breach Affected 76M Households
There are approximately 115M households in the US [1], so does this mean that two of every three households is affected by this data breach? If so, why isn't there more panic?

[1]: http://quickfacts.census.gov/qfd/states/00000.html

jabagawee··on Inside the Dark, Lucrative World of Consumer Debt Collection
Debt collectors usually do not have the ability to target specific people's debt in the debt packages that they buy.
jabagawee··on We Experiment On Human Beings
In case you wanted to read it again, here's a Wayback Machine link [1].

[1]: http://web.archive.org/web/20101006104124/http://blog.okcupi...

jabagawee··on [dead]
I think buying food in lieu of giving money ignores the fact that money is fairly fungible. A dollar saved on food expenses is a dollar that can be spent on the vices that the donor is trying to prevent.

As for my answer to the question, I try to limit my charitable contributions to charities praised for efficiency and effectiveness on the various watchdog sites, but I usually end up cracking and giving in person as well.

On a related note, writing my post reminded me of an old LessWrong post [1] I saw.

[1] http://lesswrong.com/lw/6z/purchase_fuzzies_and_utilons_sepa...

jabagawee··on Implementing 2048 in 90 lines of Haskell
Oh! So `go` is a function that's defined within `shift`. That's the crucial part I was missing. Why is it named "go"?

EDIT: While I have your attention, do you mind also pointing me to some resources to learn about this ">>=" operator? I recall it's something related to monads...

jabagawee··on Implementing 2048 in 90 lines of Haskell
I noticed that your blog post differed from the actual code in your git repository. In the blog post, you defined `shift` to be:

   shift v = pad
     (map Just (concatMap add (group (catMaybes v)))))
     Nothing
     (length v)
whereas the code gives:

   shift v = take n (v' <> empty n)
     where
       n = length v
       v' = group (filter isJust v) >>= go
       go (Just a : Just b : ts) = Just (a + b) : go ts
       go ts = ts
From my understanding of the blog post's logic, the former doesn't handle the case where `v = replicate 4 (Just 2)`, since it returns `[Just 4, Just 2, Just 2, Nothing]`. Am I correct, and if so, why does the latter version fix this problem? For reference, I know little to no Haskell.
jabagawee··on The MIN Challenge
In any sane code, you'd have the open and close brackets anyways, so all this code does is trade a few '\n' characters for a few parentheses characters. I'd opt for the former still.
jabagawee··on Percol: An interactive grep tool in your terminal
Reminds me of Gary Bernhardt's selecta [1].

[1] https://github.com/garybernhardt/selecta

jabagawee··on Uber Sets Valuation Record of $17B in New Funding
Uber could potentially expand the taxi/limo market though. Anecdotally, I know that my friends and I are willing to use Uber for trips where we would not consider a taxi.
jabagawee··on The boy who stole Half Life 2 source code (2011)
I reject the argument that Valve had it coming since they didn't take the time to secure their network beforehand. There are almost always going to be holes in the security of any system, especially digital ones (since they have a larger surface area to consider), so blaming the victim of a break-in implies that everyone should just resign themselves to being hacked sooner or later. Valve surely made at least some efforts to secure their systems, but even if they did not, that would not justify the morality/ethicality of entering their servers without permission.
jabagawee··on Fraudulent trading activity at Mt. Gox
Assuming "Joe" represents the entire userbase of Mt. Gox, which deposited its own money into the system:

Start : (Markus: $0) (Joe: 1BTC, $200)

Step 1: (Markus: $1200) (Joe: 1BTC, $200)

Step 2: (Markus: 1BTC) (Joe: $200 + 1200)

Step 3: (Markus: $200) (Joe: 1BTC, $1200)

Assuming Markus withdraws fiat before Joe does, Mt. Gox only had $200 in real money and $1200 in fake make-believe numbers, so Joe is left unable to withdraw.

jabagawee··on Chancecoin: a decentralized casino built on top of Bitcoin
A 1% chance to get a 99x payout still has a negative expected value, no? 99 x 0.01 x original bet = 0.99 x original bet
jabagawee··on How much pee in a pool would kill you?
If you enjoyed reading this article, xkcd's Randall Munroe publishes "what if" analyses on a sporadic basis at http://whatif.xkcd.com/.
jabagawee··on Sony Digital Paper e-ink PDF tablet for notes and forms
To be fair, that could also mean that the market for financial services is extremely high margin or has an extremely large potential size rather than being an indictment of Sony's product lines.
jabagawee··on Python 3.4.0 released
I've just spent the morning implementing various "faster" median algorithms, and it seems that constant factors, function call overhead (for recursive quickselects), etc make all alternative approaches quite slow. The sort-then-select approach is pretty damn fast, especially since I also think / am pretty sure sorted() is implemented in C...

So far I've tried median-of-medians, recursive quickselect, iterative quickselect tracking indices and partitioning in place, and heapq.nlargest. The implementation in Python 3.4.0 is both cleaner/easier to read and faster than anything I can make by an order of magnitude for 10,000 element lists. I'm sure someone else here can do better than me, but (s)he'd have a hard time beating CPython, imo.

jabagawee··on The next home-networking revolution will be wired
I find it weird that HDBaseT can only support 100BaseT Ethernet when it uses Cat5e - Cat7 cables. The article assures us that this is enough, but >100 Mbps Internet connections are slowly becoming a reality here in the United States and are even more common elsewhere.
← PreviousPage 2 of 2