HNHacker News
TopNewBestAskShowJobs

blossoms

14 karma · joined September 28, 2013

submissionscomments
blossoms··on AMD Ryzen Threadripper 1950X 16 Core, 32 Thread CPU at 3.4 GHz
Dead link
blossoms··on Diagnostic page for Google.com
GitHub's is also not clean: https://www.google.com/safebrowsing/diagnostic?site=github.c...
blossoms··on The Pirate Bay is online, waving a pirate flag
My ISP is seemingly blocking that site. I can access it from my DO VPS, though.
blossoms··on Anti-Patterns in Python Programming
NB a tuple of one item only requires a trailing comma, and a tuple of zero items is represented as ()
blossoms··on Anti-Patterns in Python Programming
I don't mean to be pedantic, but a list (I am assuming df is a list) requires an int.

(That sentence I wrote about using hashable types need not apply, sorry!)

If you ran that code, you would get this error:

    TypeError: list indices must be integers, not list
blossoms··on Anti-Patterns in Python Programming

    alist = [foo(word) for word in words if word.startswith('a')]
    alist = map(foo, filter(lambda word: word.startswith('a'), words))
Which reads better?
blossoms··on Tor Project Sued
Afaik Apple's switching power supplies support the specifications you described (for example, see Mac Mini's tech specs https://www.apple.com/mac-mini/specs.html -- 50-60Hz 100-240v AC).

Not to mention Apple sells region-specialized units just like every other major computer retailer.

blossoms··on Tor Project Sued
Anybody have a link to the document? It's behind a paywall?
blossoms··on Tor Project Sued
Any internet website can be attacked this same way.
blossoms··on Copying stdin to stdout in Java
>Your Python code is just wrong.

Could you elaborate? I want to understand how to fix it.

EDIT: I really want to know what is wrong with my code. It works. Is it a stylistic concern?

    $ dd bs=1m count=10 if=/dev/random of=randomdata
    10+0 records in
    10+0 records out
    10485760 bytes transferred in 0.878533 secs (11935535 bytes/sec)
    $ python stdin_to_stdout.py < randomdata | cmp - randomdata
    $ echo $?
    0
EDIT2: I think I know how you came to the conclusion my code is wrong. Perhaps next time you should read the __entire__ post. Thank you.
blossoms··on Copying stdin to stdout in Java
That mangles binary data.

    $ printf 'binarydata'|awk '{ print }'|hexdump -C
    00000000  62 69 6e 61 72 79 64 61  74 61 0a                 |binarydata.|
    0000000b
blossoms··on Copying stdin to stdout in Java
There are some comments on the Gist claiming Python or Ruby is a one liner. My response: https://gist.github.com/kosta/9777932/#comment-1199293
blossoms··on Google's robots.txt
http://i.imgur.com/Jmjf3y2.png
blossoms··on Google's robots.txt
Unrelated but it looks like www.aol.com's robots.txt is served as text/html http://www.aol.com/robots.txt

Is this a common mistake?

blossoms··on Show HN: Anyone with kids? Plan their summer schedule
I respect your work, but I must say this: "You are terrible."

Why you might ask? Well ask any kid who has been forced off to Bible Camp or some other humiliating childhood summer activity.

Keep up the great work!

blossoms··on ClojureScript Koans: Learn ClojureScript from inside your browser
http://clojurescriptkoans.com/#higher-order-functions/10 got me good. Why is it one needs to use `(count a) (count b)` instead of just `a b` like worked when comparing string lengths in a previous ClojureScript Koan?
blossoms··on Why Putting SSH On Another Port is a Good Idea
After pondering this article, I think the only reason to run SSH on a different port is to prevent zero day ssh authentication bypasses, which I don't think is a decent reason -- I'll eat my hat when this happens again.
blossoms··on A negative captcha
This is a cool idea but I am skeptical of how effective it is long-term. If I am understanding the design correctly this method comparable to simply changing the name attributes on input tags. It'll take awhile for spammers to catch on though I believe this negative captcha's effectiveness will decrease dramatically with adoption.