Hacker Newsnew | past | comments | ask | show | jobs | submit | xrt's commentslogin

thank you for this. i've never understood why credit cards are printed w/ spaces between the numbers, presumably to reduce transcription errors, but 99.9% of web forms force you to enter the number without any spaces.


This is a doddle in PostScript. http://www.jasonpratt.org/software/graphpaper/


Think this might make those "Fork me on GitHub" badges a little less popular? I sincerely hope so.


I really hate writing things in reverse, but a decent style in Bash is to put everything in functions, w/ a main() at the top:

    #! /usr/bin/env bash
    set -e -u
    bar='bar'
    
    main() {
      foofunction
    }
    
    foofunction() {
      echo 'foo'
      echo $bar
    }

    main "$@"


LISP 1.5 manual (MITPress)


It would be very useful to delineate this list by command type and availability. The ones I wanted to check out (ndiff, rs, iftop, mtr, ...) must be in packages, since they don't respond in either OS X or vanilla Debian.


On OSX, many of them can installed via homebrew (I was just using mtr).


They lost me when they went to 21 bits.


You mean they should have stayed at 16 bits?

What would happen to all the characters that don't fit in that case, better luck in other standards?


So a middle finger gets fewer downvotes than a technical commentary. awesome.


That wasn't a technical commentary.


The -3 arg is not available on OS X. Odd, since it's been in BSD Unix since forever. http://www.freebsd.org/cgi/man.cgi?query=cal


It's hardly ubiquitous.

NetBSD has had it for 11 years. FreeBSD has had it for three years and six months. DragonFly doesn't have it, OpenBSD doesn't have it...

http://cvsweb.netbsd.org/bsdweb.cgi/src/usr.bin/cal/cal.c?re... http://svnweb.freebsd.org/base?view=revision&revision=204697


My favorite example. The chosen answer to the "Where's Waldo?" solution is 7 lines long. http://stackoverflow.com/questions/8479058/how-do-i-find-wal...


The solution is basically a cross correlation in a colour channel between the image and a zebra pattern. That can be done in a few lines in more than one language.

Also, 7 lines is hardly a good metric to judge the general effectiveness of an environment or language.


I should think OCaml or SML should be added to the mix. Neither has Async built in, but the other points are handled quite well. http://ocaml.org/description.html


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: