Better HN
topnewbestaskshowjobs
Log inSign up

blossoms

14 karma · joined Sep 28, 2013 (13y ago) · 22 submissions

Submissions

comment 9y ago · link · parent

Dead link

comment 11y ago · link · parent

GitHub's is also not clean: https://www.google.com/safebrowsing/diagnostic?site=github.c...

comment 11y ago · link · parent

My ISP is seemingly blocking that site. I can access it from my DO VPS, though.

comment 12y ago · link · parent

NB a tuple of one item only requires a trailing comma, and a tuple of zero items is represented as ()

comment 12y ago · link · parent

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

comment 12y ago · link · parent

    alist = [foo(word) for word in words if word.startswith('a')]
    alist = map(foo, filter(lambda word: word.startswith('a'), words))
Which reads better?

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

Anybody have a link to the document? It's behind a paywall?

comment 12y ago · link · parent

Any internet website can be attacked this same way.

10.

Lambdairc – Experiment using Python without statements(github.com ↗)

1 points · by blossoms · 12y ago · discuss

comment 12y ago · link · parent

>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.

comment 12y ago · link · parent

That mangles binary data.

    $ printf 'binarydata'|awk '{ print }'|hexdump -C
    00000000  62 69 6e 61 72 79 64 61  74 61 0a                 |binarydata.|
    0000000b

comment 12y ago · link · parent

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

comment 12y ago · link · parent

http://i.imgur.com/Jmjf3y2.png

comment 12y ago · link · parent

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?

comment 12y ago · link · parent

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!

17.

The Roost Stand - Space-age laptop stand(therooststand.com ↗)

1 points · by blossoms · 12y ago · discuss

comment 13y ago · link · parent

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?

comment 13y ago · link · parent

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.

comment 13y ago · link · parent

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.