<?xml version="1.0" encoding="iso-8859-1"?>

<rss version="2.0">

<channel>

<title>opbarnes.com</title>

<link>http://www.opbarnes.com/blog</link>

<description>The unimportant ramblings of O. Patrick Barnes</description>

<language>en</language>

<copyright>Copyright 2005 O. Patrick Barnes</copyright>

<generator>opbarnes.com/generator>


<ttl>180</ttl>



<item>

<title>Look what they sell at Bronner's</title>

<link>http://www.opbarnes.com/blog/2009/01/05#realfakesnow</link>

<description>&lt;p&gt;It's a good thing &lt;a href=&quot;http://www.bronners.com/&quot;&gt;Bronner's&lt;/a&gt; only sells the real stuff.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/pics/realfakesnow.jpg&quot;&gt;&lt;img src=&quot;/pics/realfakesnow.jpg&quot; alt=&quot;Real Plastic Snow&quot; title=&quot;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
</description>

<pubDate>Mon, 05 Jan 2009 14:42:00 -0400</pubDate>

<guid isPermaLink="true">http://www.opbarnes.com/blog/2009/01/05#realfakesnow</guid>

<author>O. Patrick Barnes &lt;opbarnes@ihatesqam.gmail.com&gt;</author>


</item>


<item>

<title>New Software: &quot;Christmas Hat&quot;</title>

<link>http://www.opbarnes.com/blog/2008/11/24#xmashat</link>

<description>&lt;p&gt;Do you have an arrangement in your family where everyone picks the name out of a hat and the name you pick is the person you'll buy a Christmas gift for?  My family does this, but it's always been a bit of a pain because not everyone involved can be at the same place at the same time in order to pull names out of a hat.  Inevitably someone has a name pulled for them, which puts a damper on the whole surprise and suspense part of the fun.&lt;/p&gt;

&lt;p&gt;To make things easier, I wrote a program that pulls a random name out of a hat for everyone and then provides a mechanism for each person to enter their password (provided to them by you, the administrator) to see who the program has chosen for them.  It's smart enough not to pick a person twice.  It's also smart enough to make sure that a person doesn't have someone in the same family picked for them*, which is even better than pulling names from a real hat, since when there are only two names left in the hat they could be members of the same family.&lt;/p&gt;

&lt;p&gt;If you would like to give this script a try, you can download it from &lt;a href=&quot;http://www.opbarnes.com/downloads/xmashat.php.txt&quot;&gt;here&lt;/a&gt;**: &lt;a href=&quot;http://www.opbarnes.com/downloads/xmashat.php.txt&quot;&gt;http://www.opbarnes.com/downloads/xmashat.php.txt&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can also play around with a &lt;a href=&quot;http://www.opbarnes.com/cgi-bin/xmashat_demo.php&quot;&gt;demo&lt;/a&gt; of the script  &lt;a href=&quot;http://www.opbarnes.com/cgi-bin/xmashat_demo.php&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;* The script will attempt to make sure it has been chosen someone from another family for each person by attempting the entire hat picking sequence up to 1000 times (the script default) before giving up and going with the best case (the &quot;best&quot; case is the one that had the fewest number of people whose pick was someone in the same family).&lt;/p&gt;

&lt;p&gt;** I whipped this thing together pretty quick -- so beware!&lt;/p&gt;

&lt;p&gt;UPDATE:  This software can be used for your own secret Santa party, secret gift exchange, white elephant, etc.&lt;/p&gt;
</description>

<pubDate>Mon, 24 Nov 2008 18:03:00 -0400</pubDate>

<guid isPermaLink="true">http://www.opbarnes.com/blog/2008/11/24#xmashat</guid>

<author>O. Patrick Barnes &lt;opbarnes@ihatesqam.gmail.com&gt;</author>


</item>


<item>

<title>Backronym Generator</title>

<link>http://www.opbarnes.com/blog/2008/03/04#revacron</link>

<description>&lt;p&gt;You provide the acronym, we'll make up the meaning!&lt;/p&gt;

&lt;p&gt;I've written a PHP script I call a
&quot;&lt;a href=&quot;http://en.wikipedia.org/wiki/Backronym&quot;&gt;Backronym&lt;/a&gt; Generator&quot;.  The purpose
of this script is for the user to enter a word that is intended to be the
resulting abbreviation of an &lt;a href=&quot;http://en.wikipedia.org/wiki/Acronym&quot;&gt;acronym&lt;/a&gt;,
and upon submission the script will &quot;make up&quot; the acronym's constituent
component words.&lt;/p&gt;

&lt;p&gt;For instance, if you enter the word: TEST&lt;/p&gt;

&lt;p&gt;The result might be:&lt;/p&gt;

&lt;p&gt;Trident Earache Stabbed Twang&lt;/p&gt;

&lt;p&gt;(This really was once generated by the script)&lt;/p&gt;

&lt;p&gt;You can try out the script &lt;a href=&quot;http://www.opbarnes.com/revacron/revacron.php&quot;&gt;here&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;a href=&quot;http://www.opbarnes.com/revacron/revacron.php&quot;&gt;http://www.opbarnes.com/revacron/revacron.php&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;And you can get your hands on the source code &lt;a href=&quot;http://www.opbarnes.com/downloads/revacron.zip&quot;&gt;here&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;a href=&quot;http://www.opbarnes.com/downloads/revacron.zip&quot;&gt;http://www.opbarnes.com/downloads/revacron.zip&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
</description>

<pubDate>Tue, 04 Mar 2008 22:15:00 -0400</pubDate>

<guid isPermaLink="true">http://www.opbarnes.com/blog/2008/03/04#revacron</guid>

<author>O. Patrick Barnes &lt;opbarnes@ihatesqam.gmail.com&gt;</author>


</item>


<item>

<title>GrowlMail and Leopard not getting along?!  Here's a solution</title>

<link>http://www.opbarnes.com/blog/2007/11/09#leopard_growlmail_dont_play_nice</link>

<description>&lt;p&gt;Last weekend I upgraded to Mac OS X &lt;a href=&quot;http://www.apple.com/macosx/&quot;&gt;Leopard&lt;/a&gt;, and one thing that doesn't seem to work with Leopard is GrowlMail* (a &lt;a href=&quot;http://growl.info&quot;&gt;Growl&lt;/a&gt; &lt;a href=&quot;http://growl.info/applications.php&quot;&gt;Extra&lt;/a&gt;).  After missing &lt;a href=&quot;http://growl.info/about.php&quot;&gt;Growl Notifications&lt;/a&gt; for &lt;a href=&quot;http://en.wikipedia.org/wiki/Mail.app&quot;&gt;Mail.app&lt;/a&gt; a lot, I decided to search for a solution.  After some googling, I found &lt;a href=&quot;http://blog.insidesystems.net/articles/2007/08/17/growl-mail-app-and-applescript&quot;&gt;this&lt;/a&gt; on &lt;a href=&quot;http://blog.insidesystems.net/&quot;&gt;Kevin Way's&lt;/a&gt; blog:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;&quot;I wanted a simple system that would notify me whenever I received an e-mail from somebody &quot;important&quot;, but not for every new message that hit my inbox.&quot;&lt;/p&gt;

&lt;p&gt;&quot;I tried GrowlMail and Mail.Appetizer, but found them both unsatisfactory. I finally decided that what I really wanted was a growl message to appear for messages from selected recipients. Something with the name and the subject of the e-mail, like this...&quot;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This seemed a lot like what I needed, with the exception of the only receiving notifications when email from &quot;important&quot; people arrived part.  So, here are my slight changes to Kevin's instructions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Open Main.app and add a rule named &quot;GrowlMailScript&quot;:&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;em&gt;If any of the conditions are met:&lt;/em&gt;&lt;br /&gt;Every Message&lt;br /&gt;&lt;em&gt;Perform the following actions:&lt;/em&gt;&lt;br /&gt;Run AppleScript: ~/AppleScripts/GrowlMailScript.scpt&lt;br /&gt;&lt;br /&gt;
&lt;strong&gt;Careful!&lt;/strong&gt; When you're finished making your new rule, Mail.app asks you &quot;Do you want to apply your rules to messages in selected mailboxes?&quot; Be sure click the &quot;&lt;strong&gt;Don't Apply&lt;/strong&gt;&quot; button!  If you don't, you may be bombarded with a &quot;new mail&quot; notification for every email you've ever recieved all at one.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Open a finder window and create a folder called &quot;AppleScripts&quot; in your user folder (this new folder will be a sibling with &quot;Documents&quot;).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Now, you'll need to create the &quot;GrowlMailScript.scpt&quot; script mentioned above.  Fire up &lt;a href=&quot;http://developer.apple.com/documentation/AppleScript/Conceptual/AppleScriptX/Concepts/work_with_as.html&quot;&gt;Script Editor&lt;/a&gt; and paste the following script into the edit window:&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div&gt;&lt;pre&gt;
        on perform_mail_action(info)

            tell application &quot;Mail&quot; 

                set selectedMessages to |SelectedMessages| of info

                repeat with eachMessage in selectedMessages
                    set theSubject to subject of eachMessage
                    set theSender to sender of eachMessage

                    tell application &quot;GrowlHelperApp&quot; 

                        set the allNotificationsList to &amp;not;
                            {&quot;New Mail&quot;}

                        set the enabledNotificationsList to &amp;not;
                            {&quot;New Mail&quot;}

                        register as application &amp;not;
                            &quot;MailScript&quot; all notifications allNotificationsList &amp;not;
                            default notifications enabledNotificationsList &amp;not;
                            icon of application &quot;Mail&quot; 

                        notify with name &amp;not;
                            &quot;New Mail&quot; title &amp;not;
                            &quot;New Mail from &quot; &amp;amp; theSender description &amp;not;
                            theSubject application name &quot;MailScript&quot; 

                    end tell

                end repeat
            end tell
        end perform_mail_action
&lt;/pre&gt;&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;Save the script (using File-&gt;Save As... when the Script Editor is active in the menu bar) in your new &quot;AppleScripts&quot; folder with the name &quot;GrowlMailScript.scpt&quot;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You're done!  Send yourself an email to test it out.&lt;/p&gt;

&lt;p&gt;* Tested with GrowlMail 1.1.2&lt;/p&gt;
</description>

<pubDate>Fri, 09 Nov 2007 18:37:00 -0400</pubDate>

<guid isPermaLink="true">http://www.opbarnes.com/blog/2007/11/09#leopard_growlmail_dont_play_nice</guid>

<author>O. Patrick Barnes &lt;opbarnes@ihatesqam.gmail.com&gt;</author>


</item>

</channel>
</rss>

