Jay McGavren's Journal

2010-04-09

#thelegendofchung

krysvs Once, @heisenthought coded a dating site in binary because he was bored. #thelegendofchung about 9 hours ago from Swift
jaymcgavren @krysvs I heard @heisenthought's favorite tool for searching server logs is "cat". #thelegendofchung about 8 hours ago from web
squanderingtime @jaymcgavren @krysvs I heard @heisenthought could bring a box out of kernel panic by glaring at it. #thelegendofchung about 8 hours ago from Tweetie
alandd RT @jaymcgavren: @krysvs I heard @heisenthought's favorite tool for searching server logs is "cat". #thelegendofchung about 8 hours ago from web
jaymcgavren I heard @heisenthought has to overclock his computer to play Quake... since it's a restored UNIVAC. #thelegendofchung about 7 hours ago from web
krysvs @squanderingtime @jmcgavren Bill Gates once personally apologized to @heisenthought (for everything). #thelegendofchung about 7 hours ago from Swift
squanderingtime I heard @heisenthought could make a fully functional webserver using only a Speak & Spell #thelegendofchung about 7 hours ago from Tweetie
jaymcgavren I heard @heisenthought had a client beg him to do Search Engine Optimization... it was Google. #thelegendofchung about 7 hours ago from web
krysvs I heard @heisenthought doesn't have an SSN; he has a MAC address. #thelegendofchung about 6 hours ago from Swift

Read more...
2010-03-28

@jaymcgavren: #ruby That prior one-liner calls every method it can on an integer, string, array, hash, and range. Use with caution on other objects!

less than 5 seconds ago via web

@jaymcgavren: #ruby -e'def f(o);o.methods.each{|n|m = o.method(n);puts %Q/#{m}:#{m[*[o]*m.arity.abs]}/ rescue 1};end;f 1;f "r";f [1]*9;f({:a=>1});f 1..9'

2 minutes ago via web

Read more...
2010-03-27

Lenny discovers GarageBand...

GarageBand was one of the reasons I wanted Lenny to have a Mac. So I was pleased that today, all on his own, he fired up Magic GarageBand and then proceeded to manually edit the generated song.

<a href=’http://jay.mcgavren.com/blog/wp-content/uploads/2010/03/magic-garageband-song.mp3’ title=’Lenny’s First GarageBand Song’>Lenny’s First GarageBand Song</a>

His “bridge” starts about 1 minute in. It’s, um, a little eclectic, but it’s a start.

Read more...
2010-03-07

Another Ruby tweet...

Was browsing the new Popular Science archives, which led to an article from 1984, which had a picture of the book Creative Graphics for the BBC Microcomputer, which led me to an archived copy of the book online, which had a dirt-simple program to draw Lissajous curves, which led me to write this tweetable Ruby version. (Phew!)

ruby -rcurses -e"include Curses;i=0;loop{setpos 12*(Math.sin(i)+1),40*(Math.cos(i*0.2)+1);addstr'.';i+=0.01;refresh}" #ruby
****         *******                ********                ******           **
*  *        **     **              **      **              **     *         * **
*  **       *       **            **        **            **       *        *  *
*   *      *         **          *           **          **        **      *   *
*   *      *          *         **             *         *          **     *   *
*    *    *            *        *              **       *            *    *    *
*    *   **             *      *                **     **            **   *    *
*    **  *              **    *                  *     *              *   *    *
*     * **               *   **                  **   *               ** *     *
*     * *                ** **                    *  *                 * *     *
*     * *                 * *                      * *                 **      *
*      **                  **                      **                   *      *
*      *                   **                       *                   *      *
*      **                 * *                      * *                 ***     *
*     * *                **  *                    *   *                * *     *
*     *  *               *   **                  **   *               ** *     *
*    *   *              *     *                  *     *              *  **    *
*    *   **            *       *                *      *             *    *    *
*   **    *            *       *               *        *            *    *    *
*   *     **          **        **            **         *          *      *   *
*   *      *         *           **           *          **         *      *   *
*  *        *       **            **        **            **       *       **  *
** *         *     **              **      **              **     **        * **
 **           ******                 *******                *******         ***

Read more...
2010-03-05

If your code base has .xsl files, and you sometimes confuse them with with the .xls files… You might be a Java dev.

Read more...