<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>Blog/Tumblr of Miles Pomeroy.</description><title>Miles. Blog.</title><generator>Tumblr (3.0; @milespomeroy)</generator><link>http://blog.milespomeroy.com/</link><item><title>"Sometimes the next thing does less, and is better for it — not in every way, but overall. If we..."</title><description>“Sometimes the next thing does less, and is better for it — not in every way, but overall. If we never let go of old technology, we’d be buried in complexity and crushed by outdated crap.”&lt;br/&gt;&lt;br/&gt; - &lt;em&gt;&lt;a href="http://daringfireball.net/linked/2011/11/09/progress"&gt;John Gruber&lt;/a&gt;&lt;/em&gt;</description><link>http://blog.milespomeroy.com/post/12584704939</link><guid>http://blog.milespomeroy.com/post/12584704939</guid><pubDate>Wed, 09 Nov 2011 19:10:54 -0800</pubDate></item><item><title>The House of the Lord</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_lrybyl0b1o1qz6ofco1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;The House of the Lord&lt;/p&gt;</description><link>http://blog.milespomeroy.com/post/10541113453</link><guid>http://blog.milespomeroy.com/post/10541113453</guid><pubDate>Thu, 22 Sep 2011 18:25:33 -0700</pubDate></item><item><title>The new Mac App Store. (Comes with software update 10.6.6)</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_lemy4oYnYN1qz6ofco1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;The new Mac App Store. (Comes with software update 10.6.6)&lt;/p&gt;</description><link>http://blog.milespomeroy.com/post/2632813090</link><guid>http://blog.milespomeroy.com/post/2632813090</guid><pubDate>Thu, 06 Jan 2011 20:36:23 -0800</pubDate></item><item><title>"In this final season, I’ve realized that we LOST watchers are uncomfortably similar to Ben Linus. We..."</title><description>“In this final season, I’ve realized that we LOST watchers are uncomfortably similar to Ben Linus. We blindly follow the show, our Jacob, with good faith that one day, everything we’ve gone through will all make sense. We’re confused, and maybe a little hurt when we don’t understand for weeks, or even years, at a time. We curse the final moments before 10:00pm, episode coming to a close, every tiny moment of clarity bested by a bigger and badder question. Yet, patiently, we stand by for our payment, an amazing finale, the major “AHA!” moment, pieces falling generously into place. Ben Linus waits, too. Granted, none of us has (hopefully) poisoned our communities with a toxic gas, but dammit, we’re going to freaking stab someone if we don’t get our answers.”&lt;br/&gt;&lt;br/&gt; - &lt;em&gt;Melanie via &lt;br/&gt;&lt;a href="http://815sentencesaboutlost.com/post/452813734/in-this-final-season-ive-realized-that-we-lost"&gt;815 Sentences About Lost&lt;/a&gt;&lt;/em&gt;</description><link>http://blog.milespomeroy.com/post/453482643</link><guid>http://blog.milespomeroy.com/post/453482643</guid><pubDate>Tue, 16 Mar 2010 19:19:35 -0700</pubDate></item><item><title>"Extensive experience with non-Oracle databases, especially Oracle."</title><description>“Extensive experience with non-Oracle databases, especially Oracle.”&lt;br/&gt;&lt;br/&gt; - &lt;em&gt;Database Analyst Job Application&lt;/em&gt;</description><link>http://blog.milespomeroy.com/post/360965876</link><guid>http://blog.milespomeroy.com/post/360965876</guid><pubDate>Fri, 29 Jan 2010 22:48:14 -0800</pubDate></item><item><title>Downed tree does some damage to a truck outside my lab window.</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_kwikjgkbHd1qz6ofco1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Downed tree does some damage to a truck outside my lab window.&lt;/p&gt;</description><link>http://blog.milespomeroy.com/post/343182582</link><guid>http://blog.milespomeroy.com/post/343182582</guid><pubDate>Tue, 19 Jan 2010 13:47:40 -0800</pubDate></item><item><title>Apple Event January 27.</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_kwgl1mtnU11qz6ofco1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Apple Event January 27.&lt;/p&gt;</description><link>http://blog.milespomeroy.com/post/341358386</link><guid>http://blog.milespomeroy.com/post/341358386</guid><pubDate>Mon, 18 Jan 2010 12:03:22 -0800</pubDate></item><item><title>"It’s weird to say your life needs more friction. But I think mine does. Distractions are so easy to..."</title><description>“It’s weird to say your life needs more friction. But I think mine does. Distractions are so easy to get to, there’s almost no good reason not to partake. Unless I count the one big reason: we all have big, important, useful work we could be doing.”&lt;br/&gt;&lt;br/&gt; - &lt;em&gt;&lt;a href="http://blog.frankchimero.com/post/338166701/de-optimizing"&gt;De-optimizing&lt;/a&gt; by Frank Chimero&lt;/em&gt;</description><link>http://blog.milespomeroy.com/post/339630844</link><guid>http://blog.milespomeroy.com/post/339630844</guid><pubDate>Sun, 17 Jan 2010 12:54:10 -0800</pubDate></item><item><title>Marco Arment on Alex Payne’s, “Don’t Be A Hero”         </title><description>&lt;a href="http://www.marco.org/329693558"&gt;Marco Arment on Alex Payne’s, “Don’t Be A Hero”         &lt;/a&gt;</description><link>http://blog.milespomeroy.com/post/330154369</link><guid>http://blog.milespomeroy.com/post/330154369</guid><pubDate>Mon, 11 Jan 2010 22:57:00 -0800</pubDate></item><item><title>Why I Believe Printers Were Sent From Hell To Make Us Miserable</title><description>&lt;a href="http://theoatmeal.com/comics/printers"&gt;Why I Believe Printers Were Sent From Hell To Make Us Miserable&lt;/a&gt;</description><link>http://blog.milespomeroy.com/post/330151926</link><guid>http://blog.milespomeroy.com/post/330151926</guid><pubDate>Mon, 11 Jan 2010 22:55:00 -0800</pubDate></item><item><title>Footnotes: there’s some good stuff down there.</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_kw0650RSIg1qz6ofco1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Footnotes: there’s some good stuff down there.&lt;/p&gt;</description><link>http://blog.milespomeroy.com/post/325801898</link><guid>http://blog.milespomeroy.com/post/325801898</guid><pubDate>Sat, 09 Jan 2010 15:19:00 -0800</pubDate></item><item><title>And I thought Utah high school prom invites were creative.</title><description>&lt;iframe src="http://player.vimeo.com/video/8444316" width="400" height="225" frameborder="0"&gt;&lt;/iframe&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;And I thought Utah high school prom invites were creative.&lt;/p&gt;</description><link>http://blog.milespomeroy.com/post/323616222</link><guid>http://blog.milespomeroy.com/post/323616222</guid><pubDate>Fri, 08 Jan 2010 09:51:20 -0800</pubDate></item><item><title>Command-line Journaling</title><description>&lt;p&gt;I wrote in my journal 338 days over the course of last year. Not bad, considering that my previous record was about 5 days in a year. What made the difference? Trying to make the act of journal writing as painless as possible.&lt;/p&gt;

&lt;p&gt;I created a simple command-line program and made this my ritual:&lt;/p&gt;

&lt;ol&gt;&lt;li&gt;Run &lt;code&gt;jr&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Write in the file it creates&lt;/li&gt;
&lt;li&gt;Save the file &lt;/li&gt;
&lt;/ol&gt;&lt;p&gt;That&amp;#8217;s it.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;#!/bin/bash
# Journal by Miles Pomeroy
# v1.0 2010-01-06
#
##Setup##
# Change $DIR to the directory you want to store your journal entries in.
# Adjust $CMD to call your editor of choice.
# Adjust $EXT to your file extension of choice.
#
##Usage##
# Run the script, `jr`, and it will create a file in the directory you 
# choose with today's date. Then it will open that file in your editor.
# If you provide a date, `jr 2009-10-21`, it will open that file from 
# from your journal. If it doesn't exist it was ask if you want to create
# it.
#

## Variables 

DIR="/Users/pants/Documents/journal/" # directory to place files
#DIR="/Users/macglab/LabData/Miles/labbook/" # for my work computer
#DIR="test/" # test directory

CMD='mate -l 1000' # use TextMate as editor
#CMD='vim +' # use vim

EXT='.md' # file extension

## Functions

# make the file with the date
makeIt ()
{
    echo -e "\n"$pretty_date"\n-----\n" &amp;gt;&amp;gt; $filename
}

## Code

if [ -z $1 ] # if there is no argument
then
    short_date=$(date +"%Y-%m-%d") # date format for filename
    pretty_date=$(date +"%A, %B %e, %Y") # date format for header
    filename=$DIR$short_date$EXT

    if [ -f $filename ] # if file already exists
    then # open it
        $CMD $filename
    else # make it and open it
        makeIt
        $CMD $filename
    fi
else # there is an argument
    if [[ $1 =~ .*-.*-.* ]] # basic validation of date format
    then
        short_date=$1
        pretty_date=$(date -j -f "%Y-%m-%d" $1 "+%A, %B %e, %Y")
        filename=$DIR$short_date$EXT

        if [ -f $filename ] # if file already exists
        then # open it
            $CMD $filename
        else # ask to make it
            echo "Entry does not exist."
            echo "Do you want to create an entry for $1? (Y|n)"
            read input

            if [[ $input != "n" ]] # yes they want it created, default
            then # make it and open it
                makeIt
                $CMD $filename
            fi
        fi
    else # wrong date format
        echo "Format the date thus: YYYY-MM-DD"
        exit 1
    fi
fi
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;a href="http://bitbucket.org/milespomeroy/jr/"&gt;Repository&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.milespomeroy.com/post/321211690</link><guid>http://blog.milespomeroy.com/post/321211690</guid><pubDate>Wed, 06 Jan 2010 23:47:39 -0800</pubDate></item><item><title>A PHP Include Exploit Explained</title><description>&lt;a href="http://blog.nearlyfreespeech.net/2009/11/05/a-php-include-exploit-explained/"&gt;A PHP Include Exploit Explained&lt;/a&gt;</description><link>http://blog.milespomeroy.com/post/246234295</link><guid>http://blog.milespomeroy.com/post/246234295</guid><pubDate>Mon, 16 Nov 2009 10:51:36 -0800</pubDate></item><item><title>US Highway System as a London Underground map.</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_kt29d2y7jY1qz6ofco1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;US Highway System as a London Underground map.&lt;/p&gt;</description><link>http://blog.milespomeroy.com/post/242775535</link><guid>http://blog.milespomeroy.com/post/242775535</guid><pubDate>Fri, 13 Nov 2009 10:43:50 -0800</pubDate></item><item><title>Which one would you prefer?</title><description>&lt;p&gt;&lt;img src="http://media.tumblr.com/tumblr_ksr3lhAOXq1qz6ofc.jpg" alt="Magic Mouse"/&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="http://www.apple.com/magicmouse/"&gt;Magic Mouse&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src="http://media.tumblr.com/tumblr_ksr3lyd3sB1qz6ofc.jpg" alt="OpenOffice Mouse"/&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="http://openofficemouse.com/pr110609.html"&gt;OO Mouse&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.milespomeroy.com/post/236140407</link><guid>http://blog.milespomeroy.com/post/236140407</guid><pubDate>Sat, 07 Nov 2009 10:11:00 -0800</pubDate></item><item><title>Michelle’s Birthday Slideshow</title><description>&lt;p&gt;&lt;video width="480" height="270" controls&gt;&lt;source src="http://s3.amazonaws.com/milesandmichelle/michelle-25-birthday.m4v" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'&gt;&lt;/source&gt;&lt;/video&gt;&lt;/p&gt;

&lt;p&gt;She makes each and every day of my life happy. (Safari 3+ needed for playback)&lt;/p&gt;</description><link>http://blog.milespomeroy.com/post/216899082</link><guid>http://blog.milespomeroy.com/post/216899082</guid><pubDate>Sun, 18 Oct 2009 22:14:00 -0700</pubDate></item><item><title>Ted Talk: Oliver Sacks

Regarding his mention of temporal lobe...</title><description>&lt;object width="400" height="292"&gt;&lt;param name="movie" value="http://video.ted.com/assets/player/swf/EmbedPlayer.swf" /&gt;&lt;param name="allowFullScreen" value="true" /&gt;&lt;param name="wmode" value="transparent" /&gt;&lt;param name="bgColor" value="#ffffff" /&gt;&lt;param name="flashvars" value="vu=http://video.ted.com/talks/dynamic/OliverSacks_2009-medium.flv&amp;su=http://images.ted.com/images/ted/tedindex/embed-posters/OliverSacks-2009.embed_thumbnail.jpg&amp;vw=432&amp;vh=240&amp;ap=0&amp;ti=637&amp;introDuration=16500&amp;adDuration=4000&amp;postAdDuration=2000&amp;adKeys=talk=oliver_sacks_what_hallucination_reveals_about_our_minds;year=2009;theme=the_creative_spark;theme=new_on_ted_com;theme=how_the_mind_works;theme=speaking_at_ted2009;event=TED2009;&amp;preAdTag=tconf.ted/embed;tile=1;sz=512x288;" /&gt;&lt;embed src="http://video.ted.com/assets/player/swf/EmbedPlayer.swf" pluginspace="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" bgcolor="#ffffff" width="400" height="292" allowfullscreen="true" flashvars="vu=http://video.ted.com/talks/dynamic/OliverSacks_2009-medium.flv&amp;su=http://images.ted.com/images/ted/tedindex/embed-posters/OliverSacks-2009.embed_thumbnail.jpg&amp;vw=432&amp;vh=240&amp;ap=0&amp;ti=637&amp;introDuration=16500&amp;adDuration=4000&amp;postAdDuration=2000&amp;adKeys=talk=oliver_sacks_what_hallucination_reveals_about_our_minds;year=2009;theme=the_creative_spark;theme=new_on_ted_com;theme=how_the_mind_works;theme=speaking_at_ted2009;event=TED2009;"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br/&gt;&lt;br/&gt;&lt;h2&gt;Ted Talk: Oliver Sacks&lt;/h2&gt;

&lt;p&gt;Regarding his mention of temporal lobe epilepsy (11:20 to 12:00), wouldn’t it be crazy awesome if we could do this artificially?&lt;/p&gt;</description><link>http://blog.milespomeroy.com/post/213465548</link><guid>http://blog.milespomeroy.com/post/213465548</guid><pubDate>Wed, 14 Oct 2009 21:03:00 -0700</pubDate></item><item><title>Dyson Air Multiplier™ fan</title><description>&lt;a href="http://www.dyson.com/fans/"&gt;Dyson Air Multiplier™ fan&lt;/a&gt;: &lt;p&gt;Pretty awesome. Wouldn’t have to worry about Link putting his fingers in it; only about him breaking something so expensive.&lt;/p&gt;</description><link>http://blog.milespomeroy.com/post/212610075</link><guid>http://blog.milespomeroy.com/post/212610075</guid><pubDate>Tue, 13 Oct 2009 22:15:39 -0700</pubDate></item><item><title>Courtesy of the Met</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_kr4q4wesOl1qz6ofco1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;a href="http://www.metmuseum.org/works_of_art/collection_database/european_paintings/the_adoration_of_the_christ_child_follower_of_jan_joest_of_kalkar_netherlandish_active/objectview_enlarge.aspx?page=102&amp;sort=0&amp;sortdir=asc&amp;keyword=&amp;fp=1&amp;dd1=11&amp;dd2=0&amp;vw=1&amp;collID=11&amp;OID=110001225&amp;vT=1"&gt;Courtesy of the Met&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.milespomeroy.com/post/206477233</link><guid>http://blog.milespomeroy.com/post/206477233</guid><pubDate>Tue, 06 Oct 2009 22:34:07 -0700</pubDate></item></channel></rss>

