HNHacker News
TopNewBestAskShowJobs

pixelbeat

1,141 karma · joined September 12, 2008

http://www.pixelbeat.org/ http://twitter.com/pixelbeat_
submissionscomments
pixelbeat··on Googling for "conway's game of life" gives a simulation in the results page
Added to my list, thanks.

http://www.pixelbeat.org/misc/google_search_easter_eggs.html

pixelbeat··on GNU Coreutils Cheat Sheet
Cool! Here is an rpm variant with simplified sed:

    whatis -s1 $(rpm -ql coreutils | sed -n 's,.*/bin/,,p')
pixelbeat··on GNU Coreutils Cheat Sheet
Very nice! Note if you put the | at the end of the line the whole command is copy and pasteable.

Also you could pipe to `column -t -s:` to align nicely

Also you can download the 57K index rather than the 1.3M manual to get the command list.

    curl -s http://www.gnu.org/software/coreutils/manual/html_node/index.html |
    sed '/<li>.*-inv.*p>:.*[^>]<.a>/!d;s/.*#//;s/-inv.*:/:/;s/<.a>//' |
    sort |
    column -t -s:
pixelbeat··on GNU Coreutils Cheat Sheet
Here is a similar exposition with links to further info, on GNU and other platforms:

http://www.pixelbeat.org/docs/unix_commands/

pixelbeat··on Functional programming in sh
Which is along the same lines as

https://github.com/pixelb/scripts/blob/master/scripts/funcpy

http://code.google.com/p/pyp/

pixelbeat··on Magnetic Core Memory Reborn (2011)
I think it was tested at 200Kb/s throughput, but with tweaks that could be doubled
pixelbeat··on The Silver Searcher: An attempt to make something better than ack
I prefer the much simpler approach of reusing the existing utils with a simple shell script, which is much faster than ack:

http://www.pixelbeat.org/scripts/findrepo

A quick test on a moderately big repo:

    $ time findrepo test '*' | wc -l
    158819
    real	0m0.532s
    $ time ack -a test | wc -l
    76526
    real	0m8.762s
pixelbeat··on Handbook of Text manipulation on Unix
That's very similar to

http://www.pixelbeat.org/scripts/funcpy

pixelbeat··on Strcpycat
The new proposed functions, sounds very similar to stpcpy() and stpncpy()
pixelbeat··on Did you call them autocrap tools?
Yes they're a pain in the ass, but a necessary one. `uname -s` obviously doesn't cater for the divergences and bugs within a platform.

Have a look at gnulib for things one has to deal with. BTW, one can just use gnulib and forget about lots of portability issues

pixelbeat··on Google Code Search team says Goodbye
Pathetic google.

"Google’s mission is to organize the world‘s information and make it universally accessible and useful."

My arse.

With source code becoming increasingly available and important, and already in a structured format, this goes completely against the above statement.

pixelbeat··on Google search results for "askew"
http://www.pixelbeat.org/misc/google_search_easter_eggs.html
pixelbeat··on Unix V5, OpenBSD, Plan 9, FreeBSD, and GNU implementations of echo.c
One should avoid echo anyway due to portability issues. Use printf instead.
pixelbeat··on Fedora 16 To Use "Btrfs" Filesystem By Default
Cool we can have reflinks by default.

http://www.pixelbeat.org/docs/unix_links.html

Fedora changes seem to go in cycles. F11 and F14 were good stabilization releases. F17 should be of the same ilk I think.

pixelbeat··on Due to a programming error, the results of the 2012 DV lottery were rescinded
Why do people program this stuff themselves?

    shuf -n22000 < list.all | sort > list.lucky
See also http://www.robweir.com/blog/2010/02/microsoft-random-browser...
pixelbeat··on Boot a linux kernel right inside your browser.
I just tried out my ansi_colours.sh [1] script and it mostly worked. A few notes:

wget is available, and it would be cool to piggy back the linux network stack through the browser.

cut & paste support is a must for any terminal

The space characters are very narrow. Needs to be monospace.

All fairly minor compared to the coolness of this.

[1] http://www.pixelbeat.org/scripts/ansi_colours.sh

pixelbeat··on Chinese: Simplified, Traditional, Mandarin or Cantonese (The Simple Answer)
For techies, the font is also an important decision. With Han typography we have:

    Song(CN)/Ming(TW)/Mincho(JP) ≍ Serif
    Hei(CN)/Gothic(JP) ≍ Sans
    Kai ≍ Script
Personally I use WenQuanYi Zen Hei http://wenq.org/enindex.cgi
pixelbeat··on Lemmings is 20 years old today
There were lots of good games from around then, which I've recently enjoyed playing on dosbox.

You can see screenshots and videos of lemmings et. al. here: http://www.pixelbeat.org/misc/dosbox/

pixelbeat··on Tired of explaining Linux's seemingly obtuse memory usage to confused newbies?
Heh, nice site.

Note I find this useful for showing how much RAM apps really are using: http://www.pixelbeat.org/scripts/ps_mem.py

pixelbeat··on Dear Google: please let me ban sites from results
Google were experimenting with voting on results: http://techcrunch.com/2007/11/28/straight-out-of-left-field-...

Also there is this form for reporting spam sites: https://www.google.com/webmasters/tools/spamreport

Integrating the above into standard search results would be difficult unless it was restricted to users with a good "karma". That might be possible in our increasingly socially networked world

pixelbeat··on Google Engineer bails out student in jail
I'd already noted Neil Fraser as an open source star http://www.pixelbeat.org/misc/google_stars.html but now see he's an all around great guy
pixelbeat··on Ways to get screwed by C
18. Could be expanded on http://www.pixelbeat.org/programming/gcc/string_buffers.html

Also no mention of integer overflow handling? http://www.pixelbeat.org/programming/gcc/integer_overflow.ht...

pixelbeat··on A quick review of btrfs
The standard cp since coreutils 7.6 supports the --reflink option. This e.g. will copy a file with CoW if possible, but fallback to a standard copy if not:

  cp --reflink=auto src dst
I did a quick summary of how reflinks relate to symlinks and hardlinks at http://www.pixelbeat.org/docs/unix_links.html
pixelbeat··on Ask HN: Why is Everyone Leaving Google?
If you view source you can see people who used to be in the table
pixelbeat··on GNU Parallel - build and execute command lines from standard input in parallel
Yep. There also is dxargs which looks very useful http://www.semicomplete.com/blog/geekery/distributed-xargs.h...
pixelbeat··on Recovering deleted files using grep
I've also used this technique. I even wrote a script with progress bar to do it, which is linked to at the end of:

http://www.pixelbeat.org/docs/disk_grep.html

pixelbeat··on Ask HN: Sorting massive text files?
We've made a multicore update to GNU sort recently, so with latest from git one can just do: sort -u That will chunk, compress, merge automatically Also run with LC_ALL=C if that's appropriate as it will greatly speedup. Also see the -S
pixelbeat··on GCC 4.5.0 is out
Cool I asked for -Wlogical-op 9 years ago :) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4412
pixelbeat··on Use html5 video tags in html with flash fallback for old browsers
I don't see any video in firefox 2.0.0.13 at http://static.etianen.com/html5media/
← PreviousPage 4 of 4