<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-387776586831472956</id><updated>2011-11-10T14:34:50.324-06:00</updated><title type='text'>BlueZucchini</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.bluezucchini.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default'/><link rel='alternate' type='text/html' href='http://blog.bluezucchini.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default?start-index=26&amp;max-results=25'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15699119416298342569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>30</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-387776586831472956.post-678165454035206549</id><published>2009-09-26T10:15:00.003-05:00</published><updated>2009-09-26T10:40:00.983-05:00</updated><title type='text'>Windows Security Software</title><content type='html'>Over the last few months I've been asked several times what security software I use for my Windows host.  I mostly run OS X / Unix, so I may not be the best source of information, but I'll give it a shot.&lt;br /&gt;&lt;br /&gt;I sat down with my netbook running Windows XP and looked through everything I do security related.  Most of this I don't notice on a day-to-day basis, so I was a little surprised how much there is.&lt;br /&gt;&lt;br /&gt;Software:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Anti-&lt;span class="il"&gt;virus&lt;/span&gt;: &lt;a href="http://www.avast.com/"&gt;Avast&lt;/a&gt; (free for personal use)&lt;/li&gt;&lt;li&gt;Firewall: &lt;a href="http://www.sunbeltsoftware.com/"&gt;Sunbelt Personal Firewall&lt;/a&gt; (free for personal use)&lt;/li&gt;&lt;li&gt;Anti-spyware:  &lt;a href="http://www.lavasoft.com/"&gt;Adaware Free&lt;/a&gt; and &lt;a href="http://www.safer-networking.org/"&gt;Spybot S&amp;amp;D&lt;/a&gt;.  Both are free.&lt;/li&gt;&lt;li&gt;I started playing with &lt;a href="http://www.malwarebytes.org/"&gt;Malwarebytes&lt;/a&gt; today.  Based on the reviews, I would recommend it (again, it's free), but can't yet say for sure how good it is myself.&lt;/li&gt;&lt;/ul&gt;I also&lt;br /&gt;&lt;ul&gt;&lt;li&gt;only install necessary software,&lt;/li&gt;&lt;li&gt;read email in my browser instead of a fat-client (I use &lt;a href="http://gmail.com/"&gt;GMail&lt;/a&gt;) and&lt;/li&gt;&lt;li&gt;only use Internet Explorer when I absolutely must and I feel I can trust the site.&lt;/li&gt;&lt;/ul&gt;Not reading email in a fat-client means less chance of a &lt;span class="il"&gt;virus (Google has malware detection built in) &lt;/span&gt;and I don't have to run anti-spam software (again, it comes with GMail).&lt;br /&gt;&lt;br /&gt;I run Firefox as my primary browser with a couple plug-ins installed to enhance its security and improve my browsing experience:&lt;br /&gt; &lt;ul&gt;&lt;li&gt;&lt;a href="http://noscript.net/"&gt;NoScript&lt;/a&gt; blocks most scripts on a web page unless I explicitely allow them&lt;/li&gt;&lt;li&gt;&lt;a href="http://adblockplus.org/en/"&gt;Adblock Plus&lt;/a&gt; kills most of the ads on web pages&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.requestpolicy.com/"&gt;RequestPolicy&lt;/a&gt; allows me to control redirection and cross-site requests&lt;/li&gt;&lt;/ul&gt;None of these products is the necessarily the best product available, but the combination does seem to work and it's free other than the time to set it up, which was, surprisingly, not bad.  It is quite a few packages to keep up to date.&lt;br /&gt;&lt;br /&gt;On the otherhand you can pick up an Internet security suite (ISS) and just install one product.  If you want to go this route, you might check out &lt;a href="http://www.zonealarm.com/"&gt;Checkpoint's ZoneAlarm Extreme Security&lt;/a&gt;.  I have not used it, but have heard good things about it.&lt;br /&gt;&lt;br /&gt;Norton 360 seems to be getting good reviews, but I haven't used one of their products since Norton became the entry point used by several viruses back around 2005.  I  find that Norton products do well in reviews but not on the end-user, real-world scoring (see &lt;a href="http://reviews.cnet.com/internet-security-and-firewall/norton-360/4852-3667_7-32330411.html"&gt;CNet&lt;/a&gt;, where it scores four stars in the editors review and one and a half in the users reviews).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/387776586831472956-678165454035206549?l=blog.bluezucchini.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bluezucchini.com/feeds/678165454035206549/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=387776586831472956&amp;postID=678165454035206549' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/678165454035206549'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/678165454035206549'/><link rel='alternate' type='text/html' href='http://blog.bluezucchini.com/2009/09/windows-security-software.html' title='Windows Security Software'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15699119416298342569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-387776586831472956.post-8336495448331505204</id><published>2009-02-16T16:18:00.006-06:00</published><updated>2009-12-16T19:21:32.165-06:00</updated><title type='text'>Formatting new hard drives in Leopard</title><content type='html'>I've noticed lately that to get my external disks to work with OS X correctly I have to&lt;br /&gt;&lt;ol&gt;&lt;li&gt;open Disk Utility, &lt;/li&gt;&lt;li&gt;click on the disk (not the slice), &lt;/li&gt;&lt;li&gt;click Partition,&lt;/li&gt;&lt;li&gt;clear the partition table,&lt;br /&gt;&lt;/li&gt;&lt;li&gt;click Options and change the partition scheme to GUID (Thanks, Charles),&lt;/li&gt;&lt;li&gt;create a new single partition and create the new OS X journaled file system&lt;/li&gt;&lt;/ol&gt; If I don't do this the "underlying operation fails" when Disk Utility attempts to format the hard drive.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/387776586831472956-8336495448331505204?l=blog.bluezucchini.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bluezucchini.com/feeds/8336495448331505204/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=387776586831472956&amp;postID=8336495448331505204' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/8336495448331505204'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/8336495448331505204'/><link rel='alternate' type='text/html' href='http://blog.bluezucchini.com/2009/02/formatting-new-hard-drives-in-leopard.html' title='Formatting new hard drives in Leopard'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15699119416298342569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-387776586831472956.post-7929328024310366240</id><published>2009-02-16T16:11:00.003-06:00</published><updated>2009-02-16T16:12:55.321-06:00</updated><title type='text'>Hiding Mounted Drives in OS X</title><content type='html'>To hide a mounted drive in OS X:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;/Developer/Tools/SetFile -a V Time\ Machine&lt;/li&gt;&lt;li&gt;sudo killall Finder&lt;/li&gt;&lt;/ul&gt;To unhide a mounted drive in OS X:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;/Developer/Tools/SetFile -a v Time\ Machine&lt;/li&gt;&lt;li&gt;sudo killall Finder&lt;/li&gt;&lt;/ul&gt;I'll have to try to make that pretty later.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/387776586831472956-7929328024310366240?l=blog.bluezucchini.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bluezucchini.com/feeds/7929328024310366240/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=387776586831472956&amp;postID=7929328024310366240' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/7929328024310366240'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/7929328024310366240'/><link rel='alternate' type='text/html' href='http://blog.bluezucchini.com/2009/02/hiding-mounted-drives-in-os-x.html' title='Hiding Mounted Drives in OS X'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15699119416298342569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-387776586831472956.post-1428071704576582937</id><published>2009-02-03T10:47:00.003-06:00</published><updated>2009-02-03T11:18:02.294-06:00</updated><title type='text'>Push Google Apps email to the iPhone</title><content type='html'>&lt;div&gt;Setup your MobileMe account in Google Apps&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;In a web browser log into email on your Google Apps account (not the management screen).&lt;/li&gt;&lt;li&gt;Click on Settings (top-right corner)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Switch to the Accounts tab&lt;/li&gt;&lt;li&gt;Add your MobileMe account to the "Send mail as" list&lt;/li&gt;&lt;li&gt;Set the radio button under "When receiving a message" to "Always reply from default address".&lt;/li&gt;&lt;li&gt;Stay in Settings for the next step.&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;Forward your Google Apps account to your MobileMe account&lt;div&gt;&lt;ol&gt;&lt;li&gt;Switch to the Forwarding and POP/IMAP tab&lt;/li&gt;&lt;li&gt;Set "Forward a copy of incoming mail to" to your MobileMe email address and decide what you want to do with the mail that has been forwarded (I leave it in my inbox).&lt;/li&gt;&lt;li&gt;Click Save Changes&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div&gt;Configure MobileMe on your iPhone&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;Setup MobileMe push email on the iPhone (not covered here).&lt;/li&gt;&lt;li&gt;In the Account Info, SMTP settings (Settings -&gt; Mail, Contacts, Calendars -&gt; "Your Account" -&gt; Account Info -&gt; SMTP), deactivate smtp.me.com.&lt;/li&gt;&lt;li&gt;Add a new server smtp.gmail.com.  Put in your user name and password.  Turn on SSL. Authentication should be Password, Server Port should be 587.  Make sure this SMTP server is turned on.&lt;/li&gt;&lt;/ol&gt;Send a test message to your Google Apps account, verify that it gets pushed to the iPhone.  Reply to the message.  In the sending email account verify that the sending address is your Google Apps account.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/387776586831472956-1428071704576582937?l=blog.bluezucchini.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bluezucchini.com/feeds/1428071704576582937/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=387776586831472956&amp;postID=1428071704576582937' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/1428071704576582937'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/1428071704576582937'/><link rel='alternate' type='text/html' href='http://blog.bluezucchini.com/2009/02/push-google-apps-email-to-iphone.html' title='Push Google Apps email to the iPhone'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15699119416298342569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-387776586831472956.post-6244811732490132908</id><published>2009-02-03T10:34:00.003-06:00</published><updated>2009-02-03T11:19:05.831-06:00</updated><title type='text'>Theming Windows</title><content type='html'>(hey, if you've gotta run it, at least you can make it more attractive)&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Find the correct version of uxtheme.dll.  Best to Google for this as download locations come and go.&lt;/li&gt;&lt;li&gt;Download &lt;a href="http://www3.telus.net/_/replacer/"&gt;Replacer&lt;/a&gt;.  I used the stable version.  Unzip it, etc.&lt;/li&gt;&lt;li&gt;Run Replacer.  &lt;/li&gt;&lt;li&gt;Drag the original uxtheme.dll file (c:\windows\system32\uxtheme.dll) onto the command window and hit Enter.&lt;/li&gt;&lt;li&gt;Drag the replacement uxtheme.dll file onto the command window and hit Enter.&lt;/li&gt;&lt;li&gt;Confirm you want to replace the file.&lt;/li&gt;&lt;li&gt;Download themes and install them.  I like &lt;a href="http://b0se.deviantart.com/art/Opus-OS-1-5-4591314"&gt;OpusOs&lt;/a&gt; (deviantart.com).  To install it, download and unzip it, then doubleclick on the OpenOS visual style file.  Changing the wallpaper is up to you.&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/387776586831472956-6244811732490132908?l=blog.bluezucchini.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bluezucchini.com/feeds/6244811732490132908/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=387776586831472956&amp;postID=6244811732490132908' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/6244811732490132908'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/6244811732490132908'/><link rel='alternate' type='text/html' href='http://blog.bluezucchini.com/2009/02/theming-windows.html' title='Theming Windows'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15699119416298342569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-387776586831472956.post-284587757061012222</id><published>2008-06-08T09:51:00.010-05:00</published><updated>2008-06-08T10:12:30.744-05:00</updated><title type='text'>Setup Mail.app with GMail iMap Quick Reference</title><content type='html'>&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Server Settings:&lt;/span&gt;&lt;div&gt;Incoming Mail Server:  &lt;span class="Apple-style-span" style="font-style: italic;"&gt;imap.gmail.com, port 993 (SSL)&lt;/span&gt;&lt;div&gt;Outgoing Mail Server:  &lt;span class="Apple-style-span" style="font-style: italic;"&gt;smtp.gmail.com, port 587 (SSL)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Mailbox Behaviors:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Store Draft Messages on the server:  &lt;span class="Apple-style-span" style="font-style: italic;"&gt;Yes&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Store Sent Messages on the server:  &lt;span class="Apple-style-span" style="font-style: italic;"&gt;N&lt;/span&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;o&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Delete Sent Messages when:  &lt;span class="Apple-style-span" style="font-style: italic;"&gt;Never&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Store Junk Messages on the server: &lt;span class="Apple-style-span" style="font-style: italic;"&gt; Y&lt;/span&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;es&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Delete Junk Messages when:  &lt;span class="Apple-style-span" style="font-style: italic;"&gt;Never&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Move deleted messages to the trash folder:  &lt;span class="Apple-style-span" style="font-style: italic;"&gt;No&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Store deleted messages on the server: &lt;span class="Apple-style-span" style="font-style: italic;"&gt;No&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Permanently erase deleted messages when: &lt;span class="Apple-style-span" style="font-style: italic;"&gt;Never&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Disable junk mail filtering if this is the only mail account.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/387776586831472956-284587757061012222?l=blog.bluezucchini.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://mail.google.com/support/bin/answer.py?hl=en&amp;answer=77663' title='Setup Mail.app with GMail iMap Quick Reference'/><link rel='replies' type='application/atom+xml' href='http://blog.bluezucchini.com/feeds/284587757061012222/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=387776586831472956&amp;postID=284587757061012222' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/284587757061012222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/284587757061012222'/><link rel='alternate' type='text/html' href='http://blog.bluezucchini.com/2008/06/setup-mailapp-with-gmail-imap-quick.html' title='Setup Mail.app with GMail iMap Quick Reference'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15699119416298342569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-387776586831472956.post-6264582086111924458</id><published>2008-06-04T08:00:00.007-05:00</published><updated>2008-06-04T09:58:55.314-05:00</updated><title type='text'>Launchd gem server on Mac OS X</title><content type='html'>I wanted to have gem server running on my Mac at all times to look up Ruby documentation easily.  The following launchd script will start it when you boot&lt;br /&gt;&lt;pre&gt;&lt;span class="punct"&gt;&amp;lt;&lt;/span&gt;&lt;span class="char"&gt;?x&lt;/span&gt;&lt;span class="ident"&gt;ml&lt;/span&gt; &lt;span class="ident"&gt;version&lt;/span&gt;&lt;span class="punct"&gt;=&amp;quot;&lt;/span&gt;&lt;span class="string"&gt;1.0&lt;/span&gt;&lt;span class="punct"&gt;&amp;quot;&lt;/span&gt; &lt;span class="ident"&gt;encoding&lt;/span&gt;&lt;span class="punct"&gt;=&amp;quot;&lt;/span&gt;&lt;span class="string"&gt;UTF-8&lt;/span&gt;&lt;span class="punct"&gt;&amp;quot;&lt;/span&gt;&lt;span class="char"&gt;?&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="punct"&gt;&amp;lt;!&lt;/span&gt;&lt;span class="constant"&gt;DOCTYPE&lt;/span&gt; &lt;span class="ident"&gt;plist&lt;/span&gt; &lt;span class="constant"&gt;PUBLIC&lt;/span&gt; &lt;span class="punct"&gt;&amp;quot;&lt;/span&gt;&lt;span class="string"&gt;-//Apple//DTD PLIST 1.0//EN&lt;/span&gt;&lt;span class="punct"&gt;&amp;quot;&lt;/span&gt; &lt;span class="punct"&gt;&amp;quot;&lt;/span&gt;&lt;span class="string"&gt;http://www.apple.com/DTDs/PropertyList-1.0.dtd&lt;/span&gt;&lt;span class="punct"&gt;&amp;quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="punct"&gt;&amp;lt;&lt;/span&gt;&lt;span class="ident"&gt;plist&lt;/span&gt; &lt;span class="ident"&gt;version&lt;/span&gt;&lt;span class="punct"&gt;=&amp;quot;&lt;/span&gt;&lt;span class="string"&gt;1.0&lt;/span&gt;&lt;span class="punct"&gt;&amp;quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;  &lt;span class="punct"&gt;&amp;lt;&lt;/span&gt;&lt;span class="ident"&gt;dict&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span class="punct"&gt;&amp;lt;&lt;/span&gt;&lt;span class="ident"&gt;key&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&lt;/span&gt;&lt;span class="constant"&gt;KeepAlive&lt;/span&gt;&lt;span class="punct"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="regex"&gt;key&amp;gt;&lt;br /&gt;    &amp;lt;true&lt;/span&gt;&lt;span class="punct"&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;br /&gt;    &lt;span class="punct"&gt;&amp;lt;&lt;/span&gt;&lt;span class="ident"&gt;key&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&lt;/span&gt;&lt;span class="constant"&gt;Label&lt;/span&gt;&lt;span class="punct"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="regex"&gt;key&amp;gt;&lt;br /&gt;    &amp;lt;string&amp;gt;org.rubyforge.gem-server&amp;lt;&lt;/span&gt;&lt;span class="punct"&gt;/&lt;/span&gt;&lt;span class="ident"&gt;string&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;br /&gt;    &lt;span class="punct"&gt;&amp;lt;&lt;/span&gt;&lt;span class="ident"&gt;key&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&lt;/span&gt;&lt;span class="constant"&gt;Disabled&lt;/span&gt;&lt;span class="punct"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="regex"&gt;key&amp;gt;&lt;br /&gt;    &amp;lt;false&lt;/span&gt;&lt;span class="punct"&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;br /&gt;    &lt;span class="punct"&gt;&amp;lt;!--&lt;/span&gt; &lt;span class="punct"&gt;&amp;lt;&lt;/span&gt;&lt;span class="ident"&gt;key&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&lt;/span&gt;&lt;span class="constant"&gt;Program&lt;/span&gt;&lt;span class="punct"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="regex"&gt;key&amp;gt;&lt;br /&gt;    &amp;lt;string&amp;gt;&lt;/span&gt;&lt;span class="punct"&gt;/&lt;/span&gt;&lt;span class="ident"&gt;usr&lt;/span&gt;&lt;span class="punct"&gt;/&lt;/span&gt;&lt;span class="ident"&gt;bin&lt;/span&gt;&lt;span class="punct"&gt;/&lt;/span&gt;&lt;span class="ident"&gt;gem&lt;/span&gt;&lt;span class="punct"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="regex"&gt;string&amp;gt; --&amp;gt;&lt;br /&gt;    &lt;br /&gt;    &amp;lt;key&amp;gt;ProgramArguments&amp;lt;&lt;/span&gt;&lt;span class="punct"&gt;/&lt;/span&gt;&lt;span class="ident"&gt;key&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span class="punct"&gt;&amp;lt;&lt;/span&gt;&lt;span class="ident"&gt;array&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;      &lt;span class="punct"&gt;&amp;lt;&lt;/span&gt;&lt;span class="ident"&gt;string&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;/&lt;/span&gt;&lt;span class="regex"&gt;usr&lt;/span&gt;&lt;span class="punct"&gt;/&lt;/span&gt;&lt;span class="ident"&gt;bin&lt;/span&gt;&lt;span class="punct"&gt;/&lt;/span&gt;&lt;span class="ident"&gt;gem&lt;/span&gt;&lt;span class="punct"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="regex"&gt;string&amp;gt;&lt;br /&gt;      &amp;lt;string&amp;gt;server&amp;lt;&lt;/span&gt;&lt;span class="punct"&gt;/&lt;/span&gt;&lt;span class="ident"&gt;string&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;      &lt;span class="punct"&gt;&amp;lt;&lt;/span&gt;&lt;span class="ident"&gt;string&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;--&lt;/span&gt;&lt;span class="ident"&gt;port&lt;/span&gt;&lt;span class="punct"&gt;=&lt;/span&gt;&lt;span class="number"&gt;8000&lt;/span&gt;&lt;span class="punct"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="regex"&gt;string&amp;gt;&lt;br /&gt;    &amp;lt;&lt;/span&gt;&lt;span class="punct"&gt;/&lt;/span&gt;&lt;span class="ident"&gt;array&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;br /&gt;    &lt;span class="punct"&gt;&amp;lt;&lt;/span&gt;&lt;span class="ident"&gt;key&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&lt;/span&gt;&lt;span class="constant"&gt;RunAtLoad&lt;/span&gt;&lt;span class="punct"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="regex"&gt;key&amp;gt;&lt;br /&gt;    &amp;lt;true&lt;/span&gt;&lt;span class="punct"&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;br /&gt;  &lt;span class="punct"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="regex"&gt;dict&amp;gt;&lt;br /&gt;&amp;lt;&lt;/span&gt;&lt;span class="punct"&gt;/&lt;/span&gt;&lt;span class="ident"&gt;plist&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;I named the file org.rubyforge.gem-server.plist and saved it into /Library/LaunchDaemons.  Once the file is created run &lt;br /&gt;&lt;pre&gt;&lt;span class="ident"&gt;sudo&lt;/span&gt; &lt;span class="ident"&gt;launchctl&lt;/span&gt; &lt;span class="ident"&gt;load&lt;/span&gt; &lt;span class="punct"&gt;./&lt;/span&gt;&lt;span class="ident"&gt;org&lt;/span&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="ident"&gt;rubyforge&lt;/span&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="ident"&gt;gem&lt;/span&gt;&lt;span class="punct"&gt;-&lt;/span&gt;&lt;span class="ident"&gt;server&lt;/span&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="ident"&gt;plist&lt;/span&gt;&lt;/pre&gt;and connect to &lt;a href="http://localhost:8000"&gt;http://localhost:8000&lt;/a&gt; in your browser to test that everything is working.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/387776586831472956-6264582086111924458?l=blog.bluezucchini.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bluezucchini.com/feeds/6264582086111924458/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=387776586831472956&amp;postID=6264582086111924458' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/6264582086111924458'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/6264582086111924458'/><link rel='alternate' type='text/html' href='http://blog.bluezucchini.com/2008/06/launchd-gem-server-on-mac-os-x.html' title='Launchd gem server on Mac OS X'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15699119416298342569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-387776586831472956.post-126378304385887656</id><published>2008-05-27T16:55:00.000-05:00</published><updated>2008-05-27T16:56:24.957-05:00</updated><title type='text'>Quick note on generating an SSL cert for Apache2</title><content type='html'>mkdir /etc/apache2/ssl&lt;br /&gt; &lt;br /&gt;RANDFILE=/dev/random openssl req $@ -new -x509 -days 365 -nodes \&lt;br /&gt;    -out /etc/apache2/ssl/apache.pem \&lt;br /&gt;    -keyout /etc/apache2/ssl/apache.pem&lt;br /&gt; &lt;br /&gt;chmod 600 /etc/apache2/ssl/apache.pem&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/387776586831472956-126378304385887656?l=blog.bluezucchini.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bluezucchini.com/feeds/126378304385887656/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=387776586831472956&amp;postID=126378304385887656' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/126378304385887656'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/126378304385887656'/><link rel='alternate' type='text/html' href='http://blog.bluezucchini.com/2008/05/quick-note-on-generating-ssl-cert-for.html' title='Quick note on generating an SSL cert for Apache2'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15699119416298342569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-387776586831472956.post-6430857995435113484</id><published>2008-05-19T14:23:00.000-05:00</published><updated>2008-06-08T09:57:05.772-05:00</updated><title type='text'></title><content type='html'>Copying the virtual machine:&lt;br id="o41e0"&gt;&lt;ol id="e78b0"&gt;&lt;li id="e78b1"&gt;Copy the Debian package directory in Finder.&lt;/li&gt;&lt;li id="e78b2"&gt;In Terminal, cd into the package, rename all the files from &amp;lt;old_host_name&amp;gt;* to &amp;lt;new_host_name&amp;gt;*&lt;/li&gt;&lt;li id="e78b3"&gt;Edit &amp;lt;new_host_name&amp;gt;.vmx&lt;/li&gt;&lt;li id="e78b4"&gt;Replace instances of &amp;lt;old_host_name&amp;gt; with &amp;lt;new_host_name&amp;gt;&lt;/li&gt;&lt;li id="e78b5"&gt;Drag the VM into the Virtual Machine Library&lt;/li&gt;&lt;li id="e78b6"&gt;Start the VM&lt;/li&gt;&lt;/ol&gt;Fixing the new virtual machine:&lt;br id="e78b8"&gt;&lt;ol id="e78b9"&gt;&lt;li id="e78b10"&gt;Change the hostname (if appropriate)&lt;/li&gt;&lt;ol id="kg-n0"&gt;&lt;li id="e78b10"&gt;vi /etc/hostname&lt;/li&gt;&lt;li id="e78b10"&gt;Change the hostname to what you want the new hostname to be&lt;/li&gt;&lt;li id="e78b10"&gt;Run hostname &amp;lt;new_host_name&amp;gt;, log out and back in if you want the change to take affect without rebooting.&lt;br id="kg-n1"&gt;&lt;/li&gt;&lt;/ol&gt;&lt;li id="e78b11"&gt;Recover eth0 (this assumes you only have one Ethernet on the VM, you might have to tweak these instructions if you have more)&lt;br id="yd:k0"&gt;&lt;/li&gt;&lt;ol id="e78b12"&gt;&lt;li id="e78b13"&gt;vi /etc/udev/rules.d/*_persistent-net.rules # (there should be only one file that matches)&lt;/li&gt;&lt;li id="e78b13"&gt;Delete the line containing the old eth0 and its associated comment&lt;br id="yd:k1"&gt;&lt;/li&gt;&lt;li id="e78b13"&gt;Change eth1 to eth0 on the remaining line&lt;/li&gt;&lt;li id="e78b13"&gt;Save your changes&lt;/li&gt;&lt;/ol&gt;&lt;li id="e78b13"&gt;Reboot&lt;/li&gt;&lt;/ol&gt;&lt;br id="o41e7"&gt;            &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/387776586831472956-6430857995435113484?l=blog.bluezucchini.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bluezucchini.com/feeds/6430857995435113484/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=387776586831472956&amp;postID=6430857995435113484' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/6430857995435113484'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/6430857995435113484'/><link rel='alternate' type='text/html' href='http://blog.bluezucchini.com/2008/05/copying-virtual-machine-copy-debian.html' title=''/><author><name>Mark</name><uri>http://www.blogger.com/profile/15699119416298342569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-387776586831472956.post-6951433947111522219</id><published>2008-05-09T23:58:00.012-05:00</published><updated>2008-05-10T09:10:51.671-05:00</updated><title type='text'>How to post pretty code on Blogger</title><content type='html'>I've been trying to find an easy (lazy) way to post prettied code to Blogger.  For my interests the majority of that code will probably be Ruby, Shell, maybe some AppleScript and Perl, but predominantly Ruby, so I wanted to use the Syntax GEM.  I found quite a few suggests to use iframes posted on another hosting option, but that was too much work, plus I wanted the consistency and easy of modifying that CSS would give me.  Next up was embedding CSS directly into my template.  Two problems:  1. I'm lazy and I want to be able to easily change between the default Blogger themes when the mood strikes me and 2. I'd like to be able to use the same CSS on the rest of the BlueZucchini domain, not just in my blog (I almost have this working on Google Apps -- I'll post a follow-up entry once it's working).  So I came up with the following.&lt;br /&gt;&lt;br /&gt;To use the Ruby code below you will need to install a couple GEMS and be on a Mac.  If you're on Linux or Windows you'll have to figure out what methods to use to get at your clipboard, but it shouldn't be that hard to modify to work.  On OS X run&lt;br /&gt;&lt;pre&gt;&lt;span class="ident"&gt;sudo&lt;/span&gt; &lt;span class="ident"&gt;gem&lt;/span&gt; &lt;span class="ident"&gt;install&lt;/span&gt; &lt;span class="ident"&gt;syntax&lt;/span&gt;&lt;br /&gt;&lt;span class="ident"&gt;sudo&lt;/span&gt; &lt;span class="ident"&gt;gem&lt;/span&gt; &lt;span class="ident"&gt;install&lt;/span&gt; &lt;span class="ident"&gt;rb&lt;/span&gt;&lt;span class="punct"&gt;-&lt;/span&gt;&lt;span class="ident"&gt;appscript&lt;/span&gt;&lt;/pre&gt;Create a CSS file and post it to a public web site, here's mine:&lt;br /&gt;&lt;pre&gt;&lt;span class="ident"&gt;pre&lt;/span&gt; &lt;span class="punct"&gt;{&lt;/span&gt;&lt;br /&gt;  &lt;span class="ident"&gt;margin&lt;/span&gt;&lt;span class="punct"&gt;:&lt;/span&gt;      &lt;span class="number"&gt;5&lt;/span&gt;&lt;span class="punct"&gt;%;&lt;/span&gt;&lt;span class="string"&gt;&lt;br /&gt;  border:      1px solid white&lt;/span&gt;&lt;span class="punct"&gt;;&lt;/span&gt;&lt;br /&gt;  &lt;span class="ident"&gt;padding&lt;/span&gt;&lt;span class="punct"&gt;:&lt;/span&gt;     &lt;span class="number"&gt;1&lt;/span&gt;&lt;span class="ident"&gt;ex&lt;/span&gt; &lt;span class="number"&gt;1&lt;/span&gt;&lt;span class="ident"&gt;ex&lt;/span&gt; &lt;span class="number"&gt;1&lt;/span&gt;&lt;span class="ident"&gt;ex&lt;/span&gt; &lt;span class="number"&gt;1&lt;/span&gt;&lt;span class="ident"&gt;ex&lt;/span&gt;&lt;span class="punct"&gt;;&lt;/span&gt;&lt;br /&gt;  &lt;span class="ident"&gt;overflow&lt;/span&gt;&lt;span class="punct"&gt;-&lt;/span&gt;&lt;span class="ident"&gt;x&lt;/span&gt;&lt;span class="punct"&gt;:&lt;/span&gt;  &lt;span class="ident"&gt;auto&lt;/span&gt;&lt;span class="punct"&gt;;&lt;/span&gt;&lt;br /&gt;  &lt;span class="ident"&gt;background&lt;/span&gt;&lt;span class="punct"&gt;:&lt;/span&gt;  &lt;span class="comment"&gt;#0B1021;&lt;/span&gt;&lt;br /&gt;  &lt;span class="ident"&gt;font&lt;/span&gt;&lt;span class="punct"&gt;-&lt;/span&gt;&lt;span class="ident"&gt;style&lt;/span&gt;&lt;span class="punct"&gt;:&lt;/span&gt;  &lt;span class="ident"&gt;monospace&lt;/span&gt;&lt;span class="punct"&gt;;&lt;/span&gt;&lt;br /&gt;  &lt;span class="ident"&gt;font&lt;/span&gt;&lt;span class="punct"&gt;-&lt;/span&gt;&lt;span class="ident"&gt;size&lt;/span&gt;&lt;span class="punct"&gt;:&lt;/span&gt;   &lt;span class="number"&gt;10&lt;/span&gt;&lt;span class="ident"&gt;px&lt;/span&gt;&lt;span class="punct"&gt;;&lt;/span&gt;&lt;br /&gt;  &lt;span class="ident"&gt;font&lt;/span&gt;&lt;span class="punct"&gt;-&lt;/span&gt;&lt;span class="ident"&gt;weight&lt;/span&gt;&lt;span class="punct"&gt;:&lt;/span&gt; &lt;span class="ident"&gt;normal&lt;/span&gt;&lt;span class="punct"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span class="punct"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="ident"&gt;attribute&lt;/span&gt; &lt;span class="punct"&gt;{&lt;/span&gt; &lt;span class="ident"&gt;color&lt;/span&gt;&lt;span class="punct"&gt;:&lt;/span&gt; &lt;span class="comment"&gt;#009900; }&lt;/span&gt;&lt;br /&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="ident"&gt;char&lt;/span&gt;      &lt;span class="punct"&gt;{&lt;/span&gt; &lt;span class="ident"&gt;color&lt;/span&gt;&lt;span class="punct"&gt;:&lt;/span&gt; &lt;span class="comment"&gt;#F00000; }&lt;/span&gt;&lt;br /&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="keyword"&gt;class     &lt;/span&gt;&lt;span class="class"&gt;{&lt;/span&gt; &lt;span class="ident"&gt;color&lt;/span&gt;&lt;span class="punct"&gt;:&lt;/span&gt; &lt;span class="comment"&gt;#FF6410; font-weight: bold; }&lt;/span&gt;&lt;br /&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="ident"&gt;comment&lt;/span&gt;   &lt;span class="punct"&gt;{&lt;/span&gt; &lt;span class="ident"&gt;color&lt;/span&gt;&lt;span class="punct"&gt;:&lt;/span&gt; &lt;span class="comment"&gt;#0000FF; }&lt;/span&gt;&lt;br /&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="ident"&gt;constant&lt;/span&gt;  &lt;span class="punct"&gt;{&lt;/span&gt; &lt;span class="ident"&gt;color&lt;/span&gt;&lt;span class="punct"&gt;:&lt;/span&gt; &lt;span class="comment"&gt;#81A6CE; }&lt;/span&gt;&lt;br /&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="ident"&gt;escape&lt;/span&gt;    &lt;span class="punct"&gt;{&lt;/span&gt; &lt;span class="ident"&gt;color&lt;/span&gt;&lt;span class="punct"&gt;:&lt;/span&gt; &lt;span class="comment"&gt;#6A5ACD; }&lt;/span&gt;&lt;br /&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="ident"&gt;expr&lt;/span&gt;      &lt;span class="punct"&gt;{&lt;/span&gt; &lt;span class="ident"&gt;color&lt;/span&gt;&lt;span class="punct"&gt;:&lt;/span&gt; &lt;span class="comment"&gt;#2222CC; }&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="ident"&gt;global&lt;/span&gt;    &lt;span class="punct"&gt;{&lt;/span&gt; &lt;span class="ident"&gt;color&lt;/span&gt;&lt;span class="punct"&gt;:&lt;/span&gt; &lt;span class="comment"&gt;#11AA44; }&lt;/span&gt;&lt;br /&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="ident"&gt;ident&lt;/span&gt;     &lt;span class="punct"&gt;{&lt;/span&gt; &lt;span class="ident"&gt;color&lt;/span&gt;&lt;span class="punct"&gt;:&lt;/span&gt; &lt;span class="comment"&gt;#CFD72C; }&lt;/span&gt;&lt;br /&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="ident"&gt;keyword&lt;/span&gt;   &lt;span class="punct"&gt;{&lt;/span&gt; &lt;span class="ident"&gt;color&lt;/span&gt;&lt;span class="punct"&gt;:&lt;/span&gt; &lt;span class="comment"&gt;#FBBF26; }&lt;/span&gt;&lt;br /&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="ident"&gt;method&lt;/span&gt;    &lt;span class="punct"&gt;{&lt;/span&gt; &lt;span class="ident"&gt;color&lt;/span&gt;&lt;span class="punct"&gt;:&lt;/span&gt; &lt;span class="comment"&gt;#FF6410; }&lt;/span&gt;&lt;br /&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="keyword"&gt;module    &lt;/span&gt;&lt;span class="module"&gt;{&lt;/span&gt; &lt;span class="ident"&gt;color&lt;/span&gt;&lt;span class="punct"&gt;:&lt;/span&gt; &lt;span class="comment"&gt;#A020F0; font-weight: bold; }&lt;/span&gt;&lt;br /&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="ident"&gt;number&lt;/span&gt;    &lt;span class="punct"&gt;{&lt;/span&gt; &lt;span class="ident"&gt;color&lt;/span&gt;&lt;span class="punct"&gt;:&lt;/span&gt; &lt;span class="comment"&gt;#CDF636; }&lt;/span&gt;&lt;br /&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="ident"&gt;punct&lt;/span&gt;     &lt;span class="punct"&gt;{&lt;/span&gt; &lt;span class="ident"&gt;color&lt;/span&gt;&lt;span class="punct"&gt;:&lt;/span&gt; &lt;span class="comment"&gt;#E7F8F8; }&lt;/span&gt;&lt;br /&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="ident"&gt;regex&lt;/span&gt;     &lt;span class="punct"&gt;{&lt;/span&gt; &lt;span class="ident"&gt;color&lt;/span&gt;&lt;span class="punct"&gt;:&lt;/span&gt; &lt;span class="comment"&gt;#61CE3C; }&lt;/span&gt;&lt;br /&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="ident"&gt;string&lt;/span&gt;    &lt;span class="punct"&gt;{&lt;/span&gt; &lt;span class="ident"&gt;color&lt;/span&gt;&lt;span class="punct"&gt;:&lt;/span&gt; &lt;span class="comment"&gt;#3AAE3A; }&lt;/span&gt;&lt;br /&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="ident"&gt;symbol&lt;/span&gt;    &lt;span class="punct"&gt;{&lt;/span&gt; &lt;span class="ident"&gt;color&lt;/span&gt;&lt;span class="punct"&gt;:&lt;/span&gt; &lt;span class="comment"&gt;#81A6CE; }&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Add the following line to your Blogger template just &lt;span style="font-weight: bold;"&gt;before&lt;/span&gt; the /head tag:&lt;br /&gt;&lt;pre&gt;&lt;span class="punct"&gt;&amp;lt;&lt;/span&gt;&lt;span class="ident"&gt;link&lt;/span&gt; &lt;span class="ident"&gt;rel&lt;/span&gt;&lt;span class="punct"&gt;=&amp;quot;&lt;/span&gt;&lt;span class="string"&gt;stylesheet&lt;/span&gt;&lt;span class="punct"&gt;&amp;quot;&lt;/span&gt; &lt;span class="ident"&gt;type&lt;/span&gt;&lt;span class="punct"&gt;=&amp;quot;&lt;/span&gt;&lt;span class="string"&gt;text/css&lt;/span&gt;&lt;span class="punct"&gt;&amp;quot;&lt;/span&gt; &lt;span class="ident"&gt;href&lt;/span&gt;&lt;span class="punct"&gt;=&amp;quot;&lt;/span&gt;&lt;span class="string"&gt;&amp;lt;uri_to_css&amp;gt;&lt;/span&gt;&lt;span class="punct"&gt;&amp;quot;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span class="regex"&gt;link&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;To post code, copy the code you want syntax highlighted into your clipboard and then run the following script&lt;br /&gt;&lt;pre&gt;&lt;span class="comment"&gt;#!/usr/bin/env ruby -wKU&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="ident"&gt;require&lt;/span&gt; &lt;span class="punct"&gt;'&lt;/span&gt;&lt;span class="string"&gt;rubygems&lt;/span&gt;&lt;span class="punct"&gt;'&lt;/span&gt;&lt;br /&gt;&lt;span class="ident"&gt;require&lt;/span&gt; &lt;span class="punct"&gt;'&lt;/span&gt;&lt;span class="string"&gt;syntax/convertors/html&lt;/span&gt;&lt;span class="punct"&gt;'&lt;/span&gt;&lt;br /&gt;&lt;span class="ident"&gt;require&lt;/span&gt; &lt;span class="punct"&gt;'&lt;/span&gt;&lt;span class="string"&gt;appscript&lt;/span&gt;&lt;span class="punct"&gt;'&lt;/span&gt;&lt;br /&gt;&lt;span class="ident"&gt;require&lt;/span&gt; &lt;span class="punct"&gt;'&lt;/span&gt;&lt;span class="string"&gt;osax&lt;/span&gt;&lt;span class="punct"&gt;'&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="ident"&gt;include&lt;/span&gt; &lt;span class="constant"&gt;Appscript&lt;/span&gt;&lt;br /&gt;&lt;span class="ident"&gt;include&lt;/span&gt; &lt;span class="constant"&gt;OSAX&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="ident"&gt;code&lt;/span&gt; &lt;span class="punct"&gt;=&lt;/span&gt; &lt;span class="ident"&gt;osax&lt;/span&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="ident"&gt;the_clipboard&lt;/span&gt;&lt;br /&gt;&lt;span class="ident"&gt;converter&lt;/span&gt; &lt;span class="punct"&gt;=&lt;/span&gt; &lt;span class="constant"&gt;Syntax&lt;/span&gt;&lt;span class="punct"&gt;::&lt;/span&gt;&lt;span class="constant"&gt;Convertors&lt;/span&gt;&lt;span class="punct"&gt;::&lt;/span&gt;&lt;span class="constant"&gt;HTML&lt;/span&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="ident"&gt;for_syntax&lt;/span&gt; &lt;span class="punct"&gt;&amp;quot;&lt;/span&gt;&lt;span class="string"&gt;ruby&lt;/span&gt;&lt;span class="punct"&gt;&amp;quot;&lt;/span&gt;&lt;br /&gt;&lt;span class="ident"&gt;osax&lt;/span&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="ident"&gt;set_the_clipboard_to&lt;/span&gt;&lt;span class="punct"&gt;(&lt;/span&gt;&lt;span class="ident"&gt;converter&lt;/span&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="ident"&gt;convert&lt;/span&gt;&lt;span class="punct"&gt;(&lt;/span&gt;&lt;span class="ident"&gt;code&lt;/span&gt;&lt;span class="punct"&gt;))&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;This will create the syntax highlighted HTML and put it into your clipboard.  From there just post it directly into a blog posting and that should be it.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:monospace;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/387776586831472956-6951433947111522219?l=blog.bluezucchini.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bluezucchini.com/feeds/6951433947111522219/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=387776586831472956&amp;postID=6951433947111522219' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/6951433947111522219'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/6951433947111522219'/><link rel='alternate' type='text/html' href='http://blog.bluezucchini.com/2008/05/test-codecss.html' title='How to post pretty code on Blogger'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15699119416298342569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-387776586831472956.post-1068925040275951992</id><published>2008-05-08T22:02:00.004-05:00</published><updated>2008-05-10T00:26:09.635-05:00</updated><title type='text'>Flush the DNS cache on Leopard</title><content type='html'>&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:arial;"&gt;In terminal run:&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 153);font-family:'lucida grande';font-size:100%;"  &gt; &lt;br /&gt;&lt;pre&gt;&lt;span class="ident"&gt;sudo&lt;/span&gt; &lt;span class="ident"&gt;dscacheutil&lt;/span&gt; &lt;span class="punct"&gt;-&lt;/span&gt;&lt;span class="ident"&gt;flushcache&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 153);font-family:'lucida grande';" &gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/387776586831472956-1068925040275951992?l=blog.bluezucchini.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bluezucchini.com/feeds/1068925040275951992/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=387776586831472956&amp;postID=1068925040275951992' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/1068925040275951992'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/1068925040275951992'/><link rel='alternate' type='text/html' href='http://blog.bluezucchini.com/2008/05/flush-dns-cache-on-leopard.html' title='Flush the DNS cache on Leopard'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15699119416298342569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-387776586831472956.post-2532946642420661286</id><published>2008-05-08T09:13:00.018-05:00</published><updated>2008-05-10T00:26:57.291-05:00</updated><title type='text'>Notes on FasterCSV on Ruby</title><content type='html'>This will automatically parse the first line as headers and allowed named (hash-like) access to the fields within each row (instead of numbered, array-like access).&lt;br /&gt;&lt;pre&gt;&lt;span class="comment"&gt;#!/usr/bin/env ruby -wKU&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="ident"&gt;require&lt;/span&gt; &lt;span class="punct"&gt;'&lt;/span&gt;&lt;span class="string"&gt;pp&lt;/span&gt;&lt;span class="punct"&gt;'&lt;/span&gt;&lt;br /&gt;&lt;span class="ident"&gt;require&lt;/span&gt; &lt;span class="punct"&gt;'&lt;/span&gt;&lt;span class="string"&gt;rubygems&lt;/span&gt;&lt;span class="punct"&gt;'&lt;/span&gt;&lt;br /&gt;&lt;span class="ident"&gt;require&lt;/span&gt; &lt;span class="punct"&gt;'&lt;/span&gt;&lt;span class="string"&gt;fastercsv&lt;/span&gt;&lt;span class="punct"&gt;'&lt;/span&gt;&lt;br /&gt;              &lt;br /&gt;&lt;span class="constant"&gt;FasterCSV&lt;/span&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="ident"&gt;foreach&lt;/span&gt;&lt;span class="punct"&gt;('&lt;/span&gt;&lt;span class="string"&gt;/path/filename&lt;/span&gt;&lt;span class="punct"&gt;',&lt;/span&gt; &lt;span class="symbol"&gt;:headers&lt;/span&gt; &lt;span class="punct"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="constant"&gt;true&lt;/span&gt;&lt;span class="punct"&gt;)&lt;/span&gt; &lt;span class="keyword"&gt;do&lt;/span&gt; &lt;span class="punct"&gt;|&lt;/span&gt;&lt;span class="ident"&gt;row&lt;/span&gt;&lt;span class="punct"&gt;|&lt;/span&gt; &lt;br /&gt;  &lt;span class="ident"&gt;row&lt;/span&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="ident"&gt;headers&lt;/span&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="ident"&gt;each&lt;/span&gt; &lt;span class="keyword"&gt;do&lt;/span&gt; &lt;span class="punct"&gt;|&lt;/span&gt;&lt;span class="ident"&gt;field&lt;/span&gt;&lt;span class="punct"&gt;|&lt;/span&gt; &lt;br /&gt;    &lt;span class="ident"&gt;printf&lt;/span&gt;&lt;span class="punct"&gt;(&amp;quot;&lt;/span&gt;&lt;span class="string"&gt;%-20s:&lt;span class="escape"&gt;\t&lt;/span&gt;%s&lt;span class="escape"&gt;\n&lt;/span&gt;&lt;/span&gt;&lt;span class="punct"&gt;&amp;quot;,&lt;/span&gt; &lt;span class="ident"&gt;field&lt;/span&gt;&lt;span class="punct"&gt;,&lt;/span&gt; &lt;span class="ident"&gt;row&lt;/span&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="ident"&gt;field&lt;/span&gt;&lt;span class="punct"&gt;(&lt;/span&gt;&lt;span class="ident"&gt;field&lt;/span&gt;&lt;span class="punct"&gt;))&lt;/span&gt;&lt;br /&gt;  &lt;span class="keyword"&gt;end&lt;/span&gt;&lt;br /&gt;  &lt;span class="ident"&gt;puts&lt;/span&gt; &lt;span class="punct"&gt;&amp;quot;&lt;/span&gt;&lt;span class="string"&gt;=&lt;/span&gt;&lt;span class="punct"&gt;&amp;quot;&lt;/span&gt; &lt;span class="punct"&gt;*&lt;/span&gt; &lt;span class="number"&gt;50&lt;/span&gt;&lt;br /&gt;&lt;span class="keyword"&gt;end&lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/387776586831472956-2532946642420661286?l=blog.bluezucchini.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bluezucchini.com/feeds/2532946642420661286/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=387776586831472956&amp;postID=2532946642420661286' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/2532946642420661286'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/2532946642420661286'/><link rel='alternate' type='text/html' href='http://blog.bluezucchini.com/2008/05/notes-on-fastercsv-on-ruby.html' title='Notes on FasterCSV on Ruby'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15699119416298342569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-387776586831472956.post-1105713897722145388</id><published>2007-08-03T12:49:00.014-05:00</published><updated>2008-05-10T00:29:56.083-05:00</updated><title type='text'>Fixing permissions after installing Ruby on Rails on OS X per the Hivelogic instructions</title><content type='html'>My more conservative umask (0027) causes a permissions problem during the installation of Ruby on Rails when following the instructions posted by  &lt;a href="http://hivelogic.com/authors/danbenjamin"&gt;Dan Benjamin&lt;/a&gt; on Hivelogic.  You can find the install &lt;a style="font-weight: bold;" href="http://hivelogic.com/narrative/articles/ruby-rails-mongrel-mysql-osx"&gt;here&lt;/a&gt;.  IMO this is the best way to get Rails installed on your Mac.&lt;br /&gt;&lt;br /&gt;Anyway, here's what I did to correct the problem:&lt;br /&gt;&lt;pre&gt;&lt;span class="ident"&gt;cd&lt;/span&gt; &lt;span class="punct"&gt;/&lt;/span&gt;&lt;span class="ident"&gt;usr&lt;/span&gt;&lt;span class="punct"&gt;/&lt;/span&gt;&lt;span class="ident"&gt;local&lt;/span&gt;&lt;span class="punct"&gt;/&lt;/span&gt;&lt;span class="ident"&gt;lib&lt;/span&gt;&lt;span class="punct"&gt;/&lt;/span&gt;&lt;span class="ident"&gt;ruby&lt;/span&gt;&lt;br /&gt;&lt;span class="ident"&gt;sudo&lt;/span&gt; &lt;span class="ident"&gt;find&lt;/span&gt; &lt;span class="punct"&gt;.&lt;/span&gt; &lt;span class="punct"&gt;-&lt;/span&gt;&lt;span class="ident"&gt;type&lt;/span&gt; &lt;span class="ident"&gt;d&lt;/span&gt; &lt;span class="punct"&gt;-&lt;/span&gt;&lt;span class="ident"&gt;exec&lt;/span&gt; &lt;span class="ident"&gt;chmod&lt;/span&gt; &lt;span class="number"&gt;755&lt;/span&gt; &lt;span class="punct"&gt;{}&lt;/span&gt; \&lt;span class="punct"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span class="ident"&gt;sudo&lt;/span&gt; &lt;span class="ident"&gt;find&lt;/span&gt; &lt;span class="punct"&gt;.&lt;/span&gt; &lt;span class="punct"&gt;-&lt;/span&gt;&lt;span class="ident"&gt;type&lt;/span&gt; &lt;span class="ident"&gt;f&lt;/span&gt; &lt;span class="punct"&gt;-&lt;/span&gt;&lt;span class="ident"&gt;perm&lt;/span&gt; &lt;span class="number"&gt;640&lt;/span&gt; &lt;span class="punct"&gt;-&lt;/span&gt;&lt;span class="ident"&gt;exec&lt;/span&gt; &lt;span class="ident"&gt;chmod&lt;/span&gt; &lt;span class="number"&gt;644&lt;/span&gt; &lt;span class="punct"&gt;{}&lt;/span&gt; \&lt;span class="punct"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span class="ident"&gt;sudo&lt;/span&gt; &lt;span class="ident"&gt;find&lt;/span&gt; &lt;span class="punct"&gt;.&lt;/span&gt; &lt;span class="punct"&gt;-&lt;/span&gt;&lt;span class="ident"&gt;type&lt;/span&gt; &lt;span class="ident"&gt;f&lt;/span&gt; &lt;span class="punct"&gt;-&lt;/span&gt;&lt;span class="ident"&gt;perm&lt;/span&gt; &lt;span class="number"&gt;750&lt;/span&gt; &lt;span class="punct"&gt;-&lt;/span&gt;&lt;span class="ident"&gt;exec&lt;/span&gt; &lt;span class="ident"&gt;chmod&lt;/span&gt; &lt;span class="number"&gt;755&lt;/span&gt; &lt;span class="punct"&gt;{}&lt;/span&gt; \&lt;span class="punct"&gt;;&lt;/span&gt;&lt;/pre&gt;Alternatively, I could just remember to change my umask before installing, but I always seem to forget.&lt;p&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/387776586831472956-1105713897722145388?l=blog.bluezucchini.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bluezucchini.com/feeds/1105713897722145388/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=387776586831472956&amp;postID=1105713897722145388' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/1105713897722145388'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/1105713897722145388'/><link rel='alternate' type='text/html' href='http://blog.bluezucchini.com/2007/08/fixing-permissions-after-installing.html' title='Fixing permissions after installing Ruby on Rails on OS X per the Hivelogic instructions'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15699119416298342569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-387776586831472956.post-4893625213814982763</id><published>2007-08-01T13:54:00.002-05:00</published><updated>2008-05-08T22:02:35.431-05:00</updated><title type='text'>How To Flush the DNS Cache on OS X (Tiger)</title><content type='html'>In terminal run:&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 153); font-family: 'lucida grande'; "&gt;         sudo lookupd -flushcache&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 153); font-family: 'lucida grande';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;Alternatively, you can download this little app &lt;a href="http://www.bluezucchini.com/flushdnsapplication"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;here&lt;/span&gt;&lt;/a&gt; that will give you a graphical application to do the same thing.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/387776586831472956-4893625213814982763?l=blog.bluezucchini.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bluezucchini.com/feeds/4893625213814982763/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=387776586831472956&amp;postID=4893625213814982763' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/4893625213814982763'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/4893625213814982763'/><link rel='alternate' type='text/html' href='http://blog.bluezucchini.com/2007/08/how-to-flush-dns-cache-on-os-x.html' title='How To Flush the DNS Cache on OS X (Tiger)'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15699119416298342569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-387776586831472956.post-4707105554272908154</id><published>2007-07-06T15:39:00.000-05:00</published><updated>2007-07-06T15:40:40.050-05:00</updated><title type='text'>New AppleScript added - Party Shuffle for LaunchBar</title><content type='html'>It can be found &lt;a href="http://www.bluezucchini.com/partyshuffleforlaunchbar"&gt;here&lt;/a&gt;.  Download it and take if for a spin.  Let me know what you think.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/387776586831472956-4707105554272908154?l=blog.bluezucchini.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bluezucchini.com/feeds/4707105554272908154/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=387776586831472956&amp;postID=4707105554272908154' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/4707105554272908154'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/4707105554272908154'/><link rel='alternate' type='text/html' href='http://blog.bluezucchini.com/2007/07/new-applescript-added-party-shuffle-for.html' title='New AppleScript added - Party Shuffle for LaunchBar'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15699119416298342569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-387776586831472956.post-8684664365094760821</id><published>2007-07-06T08:24:00.001-05:00</published><updated>2007-07-06T08:30:47.162-05:00</updated><title type='text'>Disabling Dashboard in Mac OS X</title><content type='html'>&lt;span style=";font-family:verdana;font-size:100%;"  &gt;To disable Dashboard:&lt;br /&gt;&lt;/span&gt;&lt;blockquote  style="color: rgb(0, 0, 153);font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;defaults write com.apple.dashboard mcx-disabled&lt;/span&gt;&lt;span style="font-size:100%;"&gt; \&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;-boolean YES &amp;&amp;amp; killall Dock&lt;/span&gt;&lt;/blockquote&gt;&lt;span style=";font-family:verdana;font-size:100%;"  &gt;To enable Dashboard:&lt;br /&gt;&lt;/span&gt;&lt;blockquote  style="color: rgb(0, 0, 153);font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;defaults write com.apple.dashboard mcx-disabled \&lt;br /&gt;-boolean No &amp;&amp;amp; killall Dock&lt;/span&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/387776586831472956-8684664365094760821?l=blog.bluezucchini.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bluezucchini.com/feeds/8684664365094760821/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=387776586831472956&amp;postID=8684664365094760821' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/8684664365094760821'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/8684664365094760821'/><link rel='alternate' type='text/html' href='http://blog.bluezucchini.com/2007/07/disabling-dashboard-in-mac-os-x.html' title='Disabling Dashboard in Mac OS X'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15699119416298342569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-387776586831472956.post-767921411161264444</id><published>2007-07-03T19:50:00.000-05:00</published><updated>2007-07-03T19:51:56.613-05:00</updated><title type='text'>Drain Cleaner</title><content type='html'>Pour 0.25 cup Baking Soda, followed by 1 cup vinegar into drain.  Cover.  Wait 15-20 minutes, uncover and flush with very hot water.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/387776586831472956-767921411161264444?l=blog.bluezucchini.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bluezucchini.com/feeds/767921411161264444/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=387776586831472956&amp;postID=767921411161264444' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/767921411161264444'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/767921411161264444'/><link rel='alternate' type='text/html' href='http://blog.bluezucchini.com/2007/07/drain-cleaner.html' title='Drain Cleaner'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15699119416298342569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-387776586831472956.post-7538773129566994710</id><published>2007-07-03T13:28:00.001-05:00</published><updated>2007-08-02T13:32:04.683-05:00</updated><title type='text'>Always verbose booting your Intel Mac</title><content type='html'>In Terminal:&lt;br /&gt;&lt;br /&gt;    Turn verbose booting on:  &lt;span class="Apple-style-span" style="color: rgb(51, 51, 255);"&gt;sudo nvram boot-args="-v"&lt;/span&gt;&lt;br /&gt;    Turn verbose booting off:  &lt;span class="Apple-style-span" style="color: rgb(51, 51, 255);"&gt;sudo nvram boot-args=&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/387776586831472956-7538773129566994710?l=blog.bluezucchini.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bluezucchini.com/feeds/7538773129566994710/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=387776586831472956&amp;postID=7538773129566994710' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/7538773129566994710'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/7538773129566994710'/><link rel='alternate' type='text/html' href='http://blog.bluezucchini.com/2007/07/always-verbose-booting-your-intel-mac.html' title='Always verbose booting your Intel Mac'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15699119416298342569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-387776586831472956.post-1019707216346149001</id><published>2007-06-20T10:34:00.000-05:00</published><updated>2007-06-20T10:50:47.827-05:00</updated><title type='text'>Exchange Public Folders in Mail.app</title><content type='html'>I don't need them and they take up disk and annoy me, so I symlink them off to /dev/null.   Here's how to do this in Terminal (be sure to shutdown Mail.app first):&lt;br /&gt;&lt;blockquote&gt;# you'll need to set account and host to the appropriate&lt;br /&gt;# settings for your environment&lt;br /&gt;account=me@example.net&lt;br /&gt;host=owa.example.net&lt;br /&gt;cd ~/Library/Mail/Exchange-${account}@${host}&lt;br /&gt;rm -rf Public\ Folders&lt;br /&gt;ln -s /dev/null Public\ Folders&lt;/blockquote&gt;That's it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/387776586831472956-1019707216346149001?l=blog.bluezucchini.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bluezucchini.com/feeds/1019707216346149001/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=387776586831472956&amp;postID=1019707216346149001' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/1019707216346149001'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/1019707216346149001'/><link rel='alternate' type='text/html' href='http://blog.bluezucchini.com/2007/06/exchange-public-folders-in-mailapp.html' title='Exchange Public Folders in Mail.app'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15699119416298342569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-387776586831472956.post-2264436058549533074</id><published>2007-06-06T16:10:00.000-05:00</published><updated>2008-12-10T23:53:19.071-06:00</updated><title type='text'>Bash hash command</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_9WngT2yQjQs/RmcmyvnGkQI/AAAAAAAAAAc/VvyaeFFbGgc/s1600-h/Wierd+pathing+issue+on+Apple.png"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;" src="http://2.bp.blogspot.com/_9WngT2yQjQs/RmcmyvnGkQI/AAAAAAAAAAc/VvyaeFFbGgc/s320/Wierd+pathing+issue+on+Apple.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5073066158471942402" /&gt;&lt;/a&gt;&lt;br /&gt;The other day I got some strange results when running Ruby on the terminal prompt on my Mac.  I had previously run 'ruby' in the terminal session, then compiled and installed a more recent version of Ruby and installed it into /usr/local/bin.  I then updated my path (export PATH=...) to put the version in /usr/local/bin ahead of the version in /usr/bin and ran 'which ruby' to be sure I had the right pathing set up.  It came back as expected.  Then I ran 'ruby --version' and got and unexpected result;  the version number was the one for the copy in /usr/bin.  I then ran '/usr/local/bin/ruby --version' and got the version number I expected.  I  brought up another terminal session (cmd-n) and ran the same commands and this time I got the version number I expected.  I've included a screen shot of some of the testing I did to help clarify my description.&lt;br /&gt;&lt;br /&gt;I finally tracked down what caused this weirdness.  It turns out BASH hashes each command and it's location to speed up subsequent executions.  If you change your path, BASH will still look to the location stored in the hash command table.  The key to reading this table is the hash command.  By itself it will give you the number of times each command in the hash has been executed.  There are other parameters, but the one that would have helped me is 'hash -d ruby', which would have removed the ruby entry from the hash table or 'hash -r', which would have cleared the hash table completely.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/387776586831472956-2264436058549533074?l=blog.bluezucchini.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bluezucchini.com/feeds/2264436058549533074/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=387776586831472956&amp;postID=2264436058549533074' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/2264436058549533074'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/2264436058549533074'/><link rel='alternate' type='text/html' href='http://blog.bluezucchini.com/2007/06/bash-hash-command.html' title='Bash hash command'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15699119416298342569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_9WngT2yQjQs/RmcmyvnGkQI/AAAAAAAAAAc/VvyaeFFbGgc/s72-c/Wierd+pathing+issue+on+Apple.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-387776586831472956.post-5297593541148223726</id><published>2007-05-24T22:18:00.001-05:00</published><updated>2007-05-24T22:18:55.174-05:00</updated><title type='text'>From HP.com: How to clean the print path on my laser</title><content type='html'>Cleaning the print path&lt;br /&gt;Use this process if toner specks or dots appear on printouts. This process produces a transparency with toner debris, which should be discarded.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;NOTE: This process requires a transparency to remove dust and toner from the print paper path. Do not use bond or rough paper. Make sure that the transparency used is rated for laser printers and meets media requirements for the printer. If transparency film is unavailable, use paper. If paper must be used, perform the procedure two or three times to ensure proper cleaning.&lt;br /&gt;Use the following steps to clean the print path.&lt;br /&gt;&lt;br /&gt; Make sure that the printer is idle and that the Ready light is on.&lt;br /&gt;&lt;br /&gt; Load a transparency in the priority input tray.&lt;br /&gt;&lt;br /&gt; Print a cleaning page using one of the following methods:&lt;br /&gt;&lt;br /&gt;Open the HP Toolbox: On the Start menu, point to Programs, point to HP LaserJet 1150 or HP LaserJet 1300, and choose the HP toolbox. The HP toolbox opens in a Web browser: Click the Troubleshooting tab, and then click Print Quality Tools. Select the cleaning page.&lt;br /&gt;&lt;br /&gt;-OR-&lt;br /&gt;&lt;br /&gt;On the printer control panel, press and hold the Go button until all three lights come on (about ten seconds). When all three lights come on, release the Go button.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;NOTE: The cleaning process takes approximately two minutes. The cleaning page stops periodically during the cleaning process. The three lights on the printer blink until the cleaning process is complete. Do not turn the printer off until the cleaning process has finished. It might be necessary to repeat the cleaning process several times to thoroughly clean the printer.&lt;br /&gt; Discard the transparency.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/387776586831472956-5297593541148223726?l=blog.bluezucchini.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bluezucchini.com/feeds/5297593541148223726/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=387776586831472956&amp;postID=5297593541148223726' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/5297593541148223726'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/5297593541148223726'/><link rel='alternate' type='text/html' href='http://blog.bluezucchini.com/2007/05/from-hpcom-how-to-clean-print-path-on.html' title='From HP.com: How to clean the print path on my laser'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15699119416298342569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-387776586831472956.post-8856407955927931700</id><published>2007-05-22T14:49:00.000-05:00</published><updated>2007-06-20T10:55:28.936-05:00</updated><title type='text'>Using Screen as a Serial Console</title><content type='html'>To use screen on the mac to connect to a Keyspan serial port to USB adapter as you would with tip on a Sun host, you can use screen as follows:&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;ul&gt;&lt;li&gt;screen /dev/tty.KeySerial1 57600&lt;/li&gt;&lt;/ul&gt;This assumes that you want to connect to the first Keyspan serial port, increment KeySerial1 to KeySerial2 to connect to the second, etc. and that you want to connect at 57600 baud.&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/387776586831472956-8856407955927931700?l=blog.bluezucchini.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bluezucchini.com/feeds/8856407955927931700/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=387776586831472956&amp;postID=8856407955927931700' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/8856407955927931700'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/8856407955927931700'/><link rel='alternate' type='text/html' href='http://blog.bluezucchini.com/2007/05/to-use-screen-on-mac-to-connect-to.html' title='Using Screen as a Serial Console'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15699119416298342569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-387776586831472956.post-7689774707310904170</id><published>2007-05-14T22:48:00.000-05:00</published><updated>2007-06-21T12:17:19.761-05:00</updated><title type='text'>Things to do after installing Ubuntu in VMware</title><content type='html'>&lt;ol&gt;&lt;li&gt;If a cloned instance run&lt;br /&gt;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-size:78%;"&gt;&lt;span style="font-family:verdana;"&gt;sudo echo "eth0 mac `ifconfig -a | grep -i hwaddr | cut -d " " -f 11` arp 1" &gt; /etc/iftab&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;Memory: 128M&lt;/li&gt;&lt;li&gt;Ethernet: whatever is appropriate for this server&lt;br /&gt;&lt;/li&gt;&lt;li&gt;CD-ROM:&lt;/li&gt;&lt;ol&gt;&lt;li&gt;Disconnected&lt;/li&gt;&lt;li&gt;Automatically detect physical CD-ROM&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;Sound adapter: Disconnected&lt;/li&gt;&lt;li&gt;Shared Folders:  Disabled&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/387776586831472956-7689774707310904170?l=blog.bluezucchini.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bluezucchini.com/feeds/7689774707310904170/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=387776586831472956&amp;postID=7689774707310904170' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/7689774707310904170'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/7689774707310904170'/><link rel='alternate' type='text/html' href='http://blog.bluezucchini.com/2007/05/things-to-do-after-installing-ubuntu-in.html' title='Things to do after installing Ubuntu in VMware'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15699119416298342569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-387776586831472956.post-6137454867255624610</id><published>2007-05-12T22:01:00.000-05:00</published><updated>2007-05-14T22:47:04.382-05:00</updated><title type='text'>Things to do after installing Ubuntu server</title><content type='html'>&lt;span style=";font-family:lucida grande;font-size:100%;"  &gt;sudo vi /etc/apt/sources.list&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;&lt;span style="font-style: italic;"&gt;        # deb cdrom ...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=";font-family:lucida grande;font-size:100%;"  &gt;sudo apt-get update&lt;br /&gt;sudo apt-get dist-upgrade&lt;br /&gt;sudo reboot&lt;br /&gt;sudo apt-get install wget&lt;br /&gt;sudo apt-get install unattended-upgrades&lt;br /&gt;sudo apt-get install ruby&lt;br /&gt;sudo apt-get install screen&lt;br /&gt;sudo apt-get install openssh-client&lt;br /&gt;sudo apt-get install openssh-server&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:lucida grande;"&gt;sudo vi /etc/ssh/sshd_config&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;&lt;span style="font-style: italic;"&gt;        Protocol 2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;           PermitRootLogin no&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;           AllowUsers user1 user2&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;font-family:courier new;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:lucida grande;"&gt;Add show_ip to init.d (see previous post).&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:lucida grande;"&gt;vi ~/.bashrc&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;font-family:courier new;" &gt;     set -o vi&lt;br /&gt;unalias ls&lt;br /&gt;alias ls="ls -F --color=never"&lt;br /&gt;PS1='&lt;br /&gt;[${debian_chroot:+($debian_chroot)}\u@\h] \w&lt;br /&gt;'&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:lucida grande;"&gt;sudo reboot&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/387776586831472956-6137454867255624610?l=blog.bluezucchini.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bluezucchini.com/feeds/6137454867255624610/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=387776586831472956&amp;postID=6137454867255624610' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/6137454867255624610'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/6137454867255624610'/><link rel='alternate' type='text/html' href='http://blog.bluezucchini.com/2007/05/things-to-do-after-installing-ubuntu.html' title='Things to do after installing Ubuntu server'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15699119416298342569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-387776586831472956.post-2733171558741015399</id><published>2007-05-12T21:58:00.005-05:00</published><updated>2008-05-19T15:28:00.077-05:00</updated><title type='text'>Show IP Script</title><content type='html'>Here's a quick script that sticks the IP address in the login prompt.  I use it for Linux VMs so I don't have to log into them to get the IP address to connect to the VM from my host OS.&lt;br /&gt;&lt;pre&gt;&lt;span class="comment"&gt;#!/bin/sh&lt;/span&gt;&lt;br /&gt;&lt;span class="ident"&gt;addy&lt;/span&gt;&lt;span class="punct"&gt;=`/&lt;/span&gt;&lt;span class="regex"&gt;sbin&lt;/span&gt;&lt;span class="punct"&gt;/&lt;/span&gt;&lt;span class="ident"&gt;ifconfig&lt;/span&gt; &lt;span class="ident"&gt;eth0&lt;/span&gt; &lt;span class="punct"&gt;|&lt;/span&gt; &lt;span class="ident"&gt;grep&lt;/span&gt; &lt;span class="punct"&gt;-&lt;/span&gt;&lt;span class="ident"&gt;i&lt;/span&gt; &lt;span class="punct"&gt;&amp;quot;&lt;/span&gt;&lt;span class="string"&gt;inet addr&lt;/span&gt;&lt;span class="punct"&gt;&amp;quot;&lt;/span&gt; &lt;span class="punct"&gt;|&lt;/span&gt; &lt;span class="ident"&gt;cut&lt;/span&gt; &lt;span class="punct"&gt;-&lt;/span&gt;&lt;span class="ident"&gt;d&lt;/span&gt;&lt;span class="punct"&gt;'&lt;/span&gt;&lt;span class="string"&gt;:&lt;/span&gt;&lt;span class="punct"&gt;'&lt;/span&gt; &lt;span class="punct"&gt;-&lt;/span&gt;&lt;span class="ident"&gt;f2&lt;/span&gt; &lt;span class="punct"&gt;|&lt;/span&gt; &lt;span class="ident"&gt;cut&lt;/span&gt; &lt;span class="punct"&gt;-&lt;/span&gt;&lt;span class="ident"&gt;d&lt;/span&gt;&lt;span class="punct"&gt;'&lt;/span&gt;&lt;span class="string"&gt; &lt;/span&gt;&lt;span class="punct"&gt;'&lt;/span&gt; &lt;span class="punct"&gt;-&lt;/span&gt;&lt;span class="ident"&gt;f1`&lt;/span&gt;&lt;br /&gt;&lt;span class="ident"&gt;echo&lt;/span&gt; &lt;span class="global"&gt;${&lt;/span&gt;&lt;span class="ident"&gt;addy&lt;/span&gt;&lt;span class="punct"&gt;}&lt;/span&gt; &lt;span class="punct"&gt;'&lt;/span&gt;&lt;span class="string"&gt; \l&lt;/span&gt;&lt;span class="punct"&gt;'&lt;/span&gt; &lt;span class="punct"&gt;&amp;gt;&lt;/span&gt; &lt;span class="punct"&gt;/&lt;/span&gt;&lt;span class="regex"&gt;etc&lt;/span&gt;&lt;span class="punct"&gt;/&lt;/span&gt;&lt;span class="ident"&gt;issue&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;Then run:&lt;br /&gt;&lt;pre&gt;&lt;span class="ident"&gt;sudo&lt;/span&gt; &lt;span class="ident"&gt;chmod&lt;/span&gt; &lt;span class="number"&gt;755&lt;/span&gt; &lt;span class="punct"&gt;/&lt;/span&gt;&lt;span class="ident"&gt;etc&lt;/span&gt;&lt;span class="punct"&gt;/&lt;/span&gt;&lt;span class="ident"&gt;init&lt;/span&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="ident"&gt;d&lt;/span&gt;&lt;span class="punct"&gt;/&lt;/span&gt;&lt;span class="ident"&gt;show_ip&lt;/span&gt;&lt;br /&gt;&lt;span class="ident"&gt;sudo&lt;/span&gt; &lt;span class="ident"&gt;ln&lt;/span&gt; &lt;span class="punct"&gt;-&lt;/span&gt;&lt;span class="ident"&gt;s&lt;/span&gt; &lt;span class="punct"&gt;/&lt;/span&gt;&lt;span class="ident"&gt;etc&lt;/span&gt;&lt;span class="punct"&gt;/&lt;/span&gt;&lt;span class="ident"&gt;init&lt;/span&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="ident"&gt;d&lt;/span&gt;&lt;span class="punct"&gt;/&lt;/span&gt;&lt;span class="ident"&gt;show_ip&lt;/span&gt; &lt;span class="punct"&gt;/&lt;/span&gt;&lt;span class="ident"&gt;etc&lt;/span&gt;&lt;span class="punct"&gt;/&lt;/span&gt;&lt;span class="ident"&gt;rc2&lt;/span&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="ident"&gt;d&lt;/span&gt;&lt;span class="punct"&gt;/&lt;/span&gt;&lt;span class="constant"&gt;S99zz_show_ip&lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/387776586831472956-2733171558741015399?l=blog.bluezucchini.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bluezucchini.com/feeds/2733171558741015399/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=387776586831472956&amp;postID=2733171558741015399' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/2733171558741015399'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/387776586831472956/posts/default/2733171558741015399'/><link rel='alternate' type='text/html' href='http://blog.bluezucchini.com/2007/05/show-ip-script.html' title='Show IP Script'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15699119416298342569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
