Better HN
topnewbestaskshowjobs
Log inSign up

petdog

114 karma · joined Feb 20, 2007 (19y ago) · 32 submissions

Submissions

comment 6y ago · link · parent

I contribute to https://www.coolearth.org/ which seems to be one of the best options following this approach

comment 14y ago · link · parent

This is a really great tool. If it could take the first .csearchindex going up the tree as the current index (somewhat like git does with .git dirs), it could easily top rgrep/ack for searching into projects. (just add line numbers and some match coloring)

comment 15y ago · link · parent

I found all of them very easy except "question 6", at which I'm still failing hard to visualize the difference, and is the only one I got wrong. (I had to choose a random one)

comment 15y ago · link · parent

Well, I can tell you that eating beans (pretty much required for a vegan?) and cabbage hurts like hell. In fact anything that is a little too gassy. Eating a lot less tomatoes helps too. Milk is annoying, but not cheese, and especially not yogurt. I think yogurt actually helps you. I have no problem with meat, except when it's too bloody.

comment 15y ago · link · parent

    ~ # cat over.c
    main () {
            int i = 0x00ffffff;
            while (i > 0) i--;
    }
    ~ # tcc over.c -o out
    ~ # time ./out
    real    0m 13.58s
    user    0m 13.57s
    sys     0m 0.01s
I love this stuff.

comment 15y ago · link · parent

M-x ansi-term does colors, too

comment 15y ago · link · parent

He should do a reddit AMA

comment 15y ago · link · parent

My experience with siege is that it actually measures siege's terrible performance.

comment 15y ago · link · parent

jpegoptim --strip-all, also optimizes for size without degrading quality.

comment 15y ago · link · parent

Now, maybe I'm to blame here, using the nightly build of chromium, but webkit is a walking memory leak. Just for a comparison, I have the same amount of tabs on firefox and chromium and firefox is using 500mb of ram, while chromium is using 3.5 GIGABYTES. And I'm not even using it much. But really, the problem is easily reproducible. Just open whatever webkit based browser you want, and keep reloading the same moderately big page. Ram goes up, never to return. That works with a trivial program that embeds webkit via gtk, too. Or you can just look at the commits on webkit: a couple of leaks fixes every week.

comment 15y ago · link · parent

Awww, I had the same idea last year, while taking the daily train, but I never really believed in it. Actually I was also hoping to have iphones regularly advertise the owner's page on which to anonymously comment.

comment 15y ago · link · parent

It looks like you forgot to call the function in 'simple_catch'. Interestingly, if you do, manual_with_catch will actually be faster in the failing case. (A try:fn() finally: return True beats everything else in the failing case)

comment 15y ago · link · parent

>For what? I don't know.

Full text indexing of your history: press C-h and search.

comment 16y ago · link · parent

Except that I find myself adding tons of parens to my haskell to be able to read it. Lisp may have spoiled me.

comment 16y ago · link · parent

Poor man's skype:

sender

    arecord -f cd -c 2 | lame -b128 - - | netcat -u your-ip 6881 | mpg123 -
receiver

   arecord -f cd -c 2 | lame -b128 - - | netcat -u -l 6881 | mpg123 -

comment 16y ago · link · parent

Actually, map is still faster:

    In [24]: timeit ''.join(map(chr, ll))
    100000 loops, best of 3: 3.91 us per loop

    In [25]: timeit ''.join([chr(i) for i in ll])
    100000 loops, best of 3: 5.85 us per loop

    In [26]: timeit ''.join(chr(i) for i in ll)
    100000 loops, best of 3: 7.79 us per loop

comment 16y ago · link · parent

Other than ssh tunneling, I tried http://vyprvpn.com when it was offered together with giganews, and it was pretty fast, if a bit costly.

comment 16y ago · link · parent

Could you expand on the tuning of tcp slow start? Are you referring to net.ipv4.tcp_slow_start_after_idle?

comment 16y ago · link · parent

Anything. The The The This all change contents desk. fridge. loose makes me my my of on over page. something. sort strewn this to want words

comment 16y ago · link · parent

>That said, if you're indexing EVERYTHING I browse to, I think this is actually a really killer app.

Google chrome has full text search over your history. And yes, I love it.

comment 16y ago · link · parent

So by "hidden features" they mean "can be found in the first pages of any tutorial"

(Ok, I didn't know about re.DEBUG)

EDIT: I'm not claiming this link is worthless. But I'd call it "great features of python" or simply "features of python"

comment 16y ago · link · parent

Seriously? You must enjoy your O(n^2).

comment 16y ago · link · parent

> there was an interesting test that was run many years ago

Source? I'd really like to read about it.

comment 16y ago · link · parent

> /r/pics? /r/askreddit? /r/iama?

What? /r/iama is one of the best things that happened to reddit. Sure, most of the submissions are shit, but some are golden.

> What does reddit offer me that I can't get elsewhere

The community. Most of the value is in the comments.

---

About usenet, you could try http://www.astraweb.com/

I bought the once-off 180gb plan. Text isn't even counted. It's going to last me years.

comment 16y ago · link · parent

I like how this is a mantra that is repeated half a dozen times every two submissions.

comment 16y ago · link · parent

Yeah. In other news, thinkpads are the best laptops ever.

(not sarcasm. There's a need for some lenovo fanboys, too.)

comment 16y ago · link · parent

It's not broken at all, and not in any way peculiar to javascript.

    >>> map(apply, [lambda:i for i in range(5)])
    
    [4, 4, 4, 4, 4]

    * (mapcar 'funcall (loop for i from 0 to 5 collect (lambda () i)))

    (6 6 6 6 6 6)
It's just that the looping constructs don't introduce a new binding, but modify the existing one.

    >>> map(apply, [lambda j=i:j for i in range(5)])
    
    [0, 1, 2, 3, 4]

    * (mapcar 'funcall (loop for i from 0 to 5 collect (let ((j i)) (lambda () j))))
    
    (0 1 2 3 4 5)

comment 16y ago · link · parent

Some funded sbcl work would be good.

comment 16y ago · link · parent

import does just that, if you drop the "-window root" argument

comment 16y ago · link · parent

> However, electrophoresis can only sort them by weight.

> To check for allergy to a specific allergen, [...] Repeat for every allergen.

Hah! If only we could run a binary search.

12