<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Posts on Andrew McDonough</title><link>https://www.andrewmcdonough.com/posts/</link><description>Recent content in Posts on Andrew McDonough</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Wed, 01 Jan 2020 00:00:00 +0000</lastBuildDate><atom:link href="https://www.andrewmcdonough.com/posts/index.xml" rel="self" type="application/rss+xml"/><item><title>LinkedIn Messages</title><link>https://www.andrewmcdonough.com/linkedin-autoreply/</link><pubDate>Wed, 01 Jan 2020 00:00:00 +0000</pubDate><guid>https://www.andrewmcdonough.com/linkedin-autoreply/</guid><description>&lt;h1 id="linkedin-messages"&gt;LinkedIn Messages&lt;/h1&gt;
&lt;p&gt;I&amp;rsquo;m trying to significantly reduce the time I spend on email, social media and messaging.&lt;/p&gt;
&lt;p&gt;One of the plaforms where I get a lot of inbound connection requests and messages is LinkedIn.&lt;/p&gt;
&lt;p&gt;I find filtering connection requests very time consuming, so I decided a while ago it was easiest to just accept all requests.&lt;/p&gt;
&lt;p&gt;This does, however, mean I get a lot more messages, many of which are trying to sell me a product or service.&lt;/p&gt;</description></item><item><title>Web Pages Should Not Vanish</title><link>https://www.andrewmcdonough.com/web-pages-should-not-vanish/</link><pubDate>Wed, 01 Jan 2020 00:00:00 +0000</pubDate><guid>https://www.andrewmcdonough.com/web-pages-should-not-vanish/</guid><description>&lt;p&gt;Coming soon&lt;/p&gt;</description></item><item><title>Hello World</title><link>https://www.andrewmcdonough.com/hello-world/</link><pubDate>Sat, 26 Jan 2019 17:12:03 +0000</pubDate><guid>https://www.andrewmcdonough.com/hello-world/</guid><description>&lt;p&gt;The 10 year old Rackspace (previously Slicehost) server running my Wordpress website finally died, so I&amp;rsquo;m migrating any content that&amp;rsquo;s still potentially relevant to Gatsby. It&amp;rsquo;s deployed to Netlify, because who wants to care about personal web servers in 2019?&lt;/p&gt;</description></item><item><title>Ruby Poetry</title><link>https://www.andrewmcdonough.com/2012/02/23/ruby-poetry/</link><pubDate>Thu, 23 Feb 2012 10:00:00 +0000</pubDate><guid>https://www.andrewmcdonough.com/2012/02/23/ruby-poetry/</guid><description>&lt;p&gt;On Tuesday evening, I gave a 20 slide &amp;rsquo;lightning talk&amp;rsquo; at the &lt;a href='http://lrug.org'&gt;London Ruby Users Group (LRUG)&lt;/a&gt; entitled &amp;ldquo;Ruby Poetry&amp;rdquo;. Inspired by &lt;a href='http://twitter.com/hlame'&gt;Murray Steele&lt;/a&gt;&amp;rsquo;s &amp;ldquo;&lt;a href='http://skillsmatter.com/podcast/ajax-ria/my-first-ruby'&gt;My First Ruby&lt;/a&gt;&amp;rdquo; talk at a previous LRUG, I decided to tell a story about a small progam I wrote about five years ago, when I was fairly new to Ruby. At the time, I had just made the transition to Ruby after years as Java developer, and I was amazed at how easy it was to solve problems without having to write very much code.&lt;/p&gt;</description></item><item><title>Spotkick - Generate Spotify artist links from your Songkick gig calendar</title><link>https://www.andrewmcdonough.com/2010/01/19/spotkick-generate-spotify-artist-links-from-your-songkick-gig-calendar/</link><pubDate>Sun, 31 Jan 2010 08:32:57 +0000</pubDate><guid>https://www.andrewmcdonough.com/2010/01/19/spotkick-generate-spotify-artist-links-from-your-songkick-gig-calendar/</guid><description>&lt;h2 id="update-2019"&gt;Update (2019)&lt;/h2&gt;
&lt;p&gt;I wrote this post in 2010, and this project won&amp;rsquo;t work anymore.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;Recently, I have been consuming a lot of music through &lt;a href="http://spotify.com" target="_new"&gt;Spotify&lt;/a&gt;, a desktop application that gives you instant access to millions of songs. As well as listening to music
at home, I try to go to as many live gigs as possible. Living in &lt;a href="http://www.songkick.com/metro_areas/24426-uk-london/calendar" target="_new"&gt;London&lt;/a&gt;, there are so many touring bands to chose from that it is sometimes difficu
lt to keep track. For the last year or so, I have been helped by &lt;a href="http://songkick.com" target="_new"&gt;Songkick.com&lt;/a&gt;, a fantastic online database and community for live music fans. Through the site, you can track your favourite
artists, receive email notifications when they are playing near you, and mark any gigs you are going to (which in turn gets fed into my &lt;a href="http://calendar.google.com" target="_new"&gt;Google Calendar&lt;/a&gt; so I don&amp;rsquo;t forget). When I go
to a gig, I like to listen to the music of the performer beforehand, which I usually do using Spotify. I find, however, that I frequently forget to do this, and end up not enjoying the gig as much.&lt;/p&gt;</description></item><item><title>Colorized Logs in Ruby</title><link>https://www.andrewmcdonough.com/2009/10/20/colorized-logs-in-ruby/</link><pubDate>Sat, 31 Oct 2009 08:54:34 +0000</pubDate><guid>https://www.andrewmcdonough.com/2009/10/20/colorized-logs-in-ruby/</guid><description>&lt;h2 id="update-2019"&gt;Update (2019)&lt;/h2&gt;
&lt;p&gt;I wrote this post in 2009. In 2019 I believe my approach is a terrible idea. Adding methods to Ruby&amp;rsquo;s core classes (like String) is asking for trouble.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;The &lt;a href="http://www.ruby-doc.org/stdlib/libdoc/logger/rdoc/" target="_new"&gt;logger&lt;/a&gt; is a really useful way to tell what is going on in your ruby application, but in &lt;a href="http://rubyonrails.org/" target="_n
ew"&gt;Rails&lt;/a&gt;, it can be difficult to spot your own log entries when they are mixed up with all the &lt;a href="http://api.rubyonrails.org/classes/ActiveRecord/Base.html" target="_new"&gt;ActiveRecord&lt;/a&gt; and &lt;a href="http://api.rubyonrails.org
/classes/ActionController/Base.html" target="_new"&gt;ActionController&lt;/a&gt; ones.  One way of making your own comments stand out is to use color in your logs. You have probably noticed that Rails does this already to make the logs more reada
ble, and the effect is fairly easy to replicate yourself. Color in the terminal is achieved using &lt;a href="http://en.wikipedia.org/wiki/ANSI_escape_code" target="_new"&gt;ANSI escape codes&lt;/a&gt;, a series of characters to tell the terminal to
print the enclosed string in a particular color and style. You could just include this in your logs yourself, but this ends up looking a bit messy. To solve this, I extended &lt;em&gt;String&lt;/em&gt; to include a method called &lt;strong&gt;colorize&lt;/strong&gt;. It takes a color (&amp;ldquo;gray&amp;rdquo;,&amp;ldquo;red&amp;rdquo;, &amp;ldquo;green&amp;rdquo;, &amp;ldquo;yellow&amp;rdquo;, &amp;ldquo;blue&amp;rdquo;, &amp;ldquo;magenta&amp;rdquo;, &amp;ldquo;cyan&amp;rdquo;,&amp;ldquo;white&amp;rdquo;) and a few other optional parameters for styling.&lt;/p&gt;</description></item><item><title>Listening to The Ashes commentary on my iPhone</title><link>https://www.andrewmcdonough.com/2009/07/09/listening-to-the-ashes-commentary-on-my-iphone/</link><pubDate>Thu, 09 Jul 2009 09:40:27 +0000</pubDate><guid>https://www.andrewmcdonough.com/2009/07/09/listening-to-the-ashes-commentary-on-my-iphone/</guid><description>&lt;h2 id="update-2019"&gt;Update (2019):&lt;/h2&gt;
&lt;p&gt;I wrote this post in 2009, so it&amp;rsquo;s probably not very useful anymore. I&amp;rsquo;ve left it here, as I am &lt;a href="https://www.andrewmcdonough.com/web-pages-should-not-vanish"&gt;trying not to let content disappear from the web&lt;/a&gt;. I also find it interesting historical reasons&amp;hellip;&lt;/p&gt;
&lt;p&gt;For a while, this was the most popular page on my website, which shows how difficult it was to find streaming audio content 10 years ago. The iPhone had been released two years previously, but publishers hadn&amp;rsquo;t really made it easy to access their content on mobile devices. It&amp;rsquo;s amazing how much things have changed&lt;/p&gt;</description></item><item><title>Reply/Star/Archive/Spam - Achieving Inbox Zero using four important keyboard shortcuts in Gmail</title><link>https://www.andrewmcdonough.com/2009/07/02/reply-star-archive-spam-achieving-inbox-zero-using-four-important-keyboard-shortcuts-in-gmail/</link><pubDate>Thu, 02 Jul 2009 13:51:55 +0000</pubDate><guid>https://www.andrewmcdonough.com/2009/07/02/reply-star-archive-spam-achieving-inbox-zero-using-four-important-keyboard-shortcuts-in-gmail/</guid><description>&lt;p&gt;It&amp;rsquo;s easy to let your email get on top of you. Fortunately, since I moved to &lt;a href="http://www.google.com/a/cpanel/domain/new" target="_new"&gt;Gmail for my domain&lt;/a&gt;, it has been to be a lot easier to avoid being overcome by an overcrowded inbox. For the last year or so, I have been trying to implement &lt;a href="http://www.43folders.com/izero" target="_new"&gt;Inbox Zero&lt;/a&gt;, a system that I first heard about from productivity expert &lt;a href="http://www.merlinmann.com/" target="_new"&gt;Merlin Mann&lt;/a&gt;. It involves processing your inbox regularly and moving all emails to a trusted place where they can be processed later. After a single pass, your inbox should be empty.&lt;/p&gt;</description></item></channel></rss>