carldr.com >> where procrastination lives tag:http://blog.carldr.com/,2008:blog.carldr.com me 2012-04-21T09:40:45+01:00 tag:http://blog.carldr.com/,2008:blog.carldr.com-147 2012-04-21T09:40:45+01:00 2012-04-21T09:40:45+01:00 Timelapses from the ISS Video Astronomy <p class="inlineImg"><img src="http://blog.carldr.com/system/assets/ISS-Time-Lapse.png" alt="Timelapses from the ISS" title="Timelapses from the ISS"></p> <p><a href="http://www.youtube.com/watch?v=hWz5ltE_I4c">Watch here</a>, with the volume turned down!</p> tag:http://blog.carldr.com/,2008:blog.carldr.com-146 2012-04-19T23:26:38+01:00 2012-04-19T23:26:38+01:00 The Switch Point Desk Design <p class="inlineImg"><img src="http://blog.carldr.com/system/assets/Switch-Point-Desk.jpg" alt="The Switch Point Desk" title="The Switch Point Desk"></p> <p>This thing is gorgeous, I seriously want one. <a href="http://www.railyardstudios.com/categories/desks-tables/sub_categories/desks-and-tables/products/switch-point-desk-30">See here for more photos</a>, and other rail-related items that <a href="http://www.railyardstudios.com/">Rail Yard Studios</a> have produced.</p> <p>They have a Kickstarter project, the <a href="http://www.kickstarter.com/projects/railyardstudios/rails-to-ipad-platform">Rails to iPad Platform</a>, which sadly looks like it will fail to raise the required funding. The company is (in my experience) terrible at replying to queries on Kickstarter and regular email, so they&#8217;re not really helping themselves.</p> tag:http://blog.carldr.com/,2008:blog.carldr.com-145 2012-04-19T22:17:23+01:00 2012-04-19T22:17:23+01:00 Pebble Smartphone Watch Geek <p class="inlineImg"><img src="http://blog.carldr.com/system/assets/Pebble-Smartphone-Watch.jpg" alt="The Pebble Smartphone Watch" title="The Pebble Smartphone Watch"></p> <p><a href="http://www.kickstarter.com/projects/597507018/pebble-e-paper-watch-for-iphone-and-android">Backed!</a></p> tag:http://blog.carldr.com/,2008:blog.carldr.com-144 2012-04-14T15:13:04+01:00 2012-04-14T15:13:04+01:00 Shropshire's Sky At Night Astronomy <p class="inlineImg"><img src="http://blog.carldr.com/system/assets/OrionNebula.jpg" alt="The Orion Nebula, Messier 42" title="(c) 2011 Carl Drinkwater"></p> <p>For the last three months, I&#8217;ve been writing an monthly astronomy column for the <a href="http://www.shropshirestar.co.uk">Shropshire Star</a>&#8217;s website.</p> <p>The aim is to explain what you can see in the night sky without the need for prior knowledge of astronomy or any equipment (although I do mention things which would be better seen through binoculars or a telescope.)</p> <p>Here are links to the articles :</p> <ul> <li><a href="http://www.shropshirestar.com/lifestyle/2012/02/01/shropshires-sky-at-night-february/">February 2012</a></li> <li><a href="http://www.shropshirestar.com/lifestyle/2012/03/01/shropshires-sky-at-night-march/">March 2012</a></li> <li><a href="http://www.shropshirestar.com/lifestyle/2012/04/05/shropshires-sky-at-night-april/">April 2012</a></li> </ul> <p>There are a few columns written by another astronomer from back in 2011 too, which clearly show the difference in approach I&#8217;m trying to take.</p> <p>For future reference, <a href="http://www.shropshirestar.com/tag/sky-at-night/">the articles are archived here</a>.</p> tag:http://blog.carldr.com/,2008:blog.carldr.com-143 2010-11-17T13:50:15+00:00 2010-11-17T13:50:15+00:00 Just do it ... OSX <p class="inlineImg"><img src="http://blog.carldr.com/system/assets/keyboard_shortcuts.png" alt="OS X's Keyboard Shortcut preference pane" title="Yours should look like this."></p> <p>Select 45 items in Finder, cmd-I, swear at Finder. This fixes that.</p> tag:http://blog.carldr.com/,2008:blog.carldr.com-142 2008-09-11T12:19:30+01:00 2008-09-11T12:19:30+01:00 It Couldn't Be Easier Ruby <pre class='highlighted'><ol><li>sudo gem install dancroak-twitter-search -s http://gems.github.com</li></ol></pre><pre class='highlighted'><ol><li><span class="SourceBase"><span class="Keyword">require</span> <span class="String"><span class="String">&quot;</span>rubygems<span class="String">&quot;</span></span> </span></li><li><span class="SourceBase"><span class="Keyword">require</span> <span class="String"><span class="String">&quot;</span>twitter_search<span class="String">&quot;</span></span> </span></li><li></li><li><span class="SourceBase">TwitterSearch</span><span class="SourceBase"><span class="SourceBase">::</span><span class="FunctionName">Client</span></span><span class="SourceBase"><span class="SourceBase">.</span><span class="FunctionName">new</span></span><span class="SourceBase">(</span> <span class="String"><span class="String">&quot;</span>twittb0t<span class="String">&quot;</span></span> <span class="SourceBase">)</span><span class="SourceBase"><span class="SourceBase">.</span><span class="FunctionName">query</span></span><span class="SourceBase">(</span> <span class="Constant"><span class="Constant">:</span>q</span> <span class="SourceBase">=&gt;</span> <span class="String"><span class="String">&quot;</span>carldr<span class="String">&quot;</span></span> <span class="SourceBase">)</span><span class="SourceBase"><span class="SourceBase">.</span><span class="FunctionName">each</span></span> <span class="Keyword">do </span><span class="SourceBase">|</span><span class="SourceBase">t</span><span class="SourceBase">|</span></li><li> puts t<span class="SourceBase"><span class="SourceBase">.</span><span class="FunctionName">text</span></span></li><li><span class="Keyword">end</span></li></ol></pre><p><a href="http://github.com/dancroak/twitter-search/tree/master">Read all about it</a>.</p> tag:http://blog.carldr.com/,2008:blog.carldr.com-141 2008-07-22T16:20:17+01:00 2008-07-22T16:20:17+01:00 You're The Shit And I'm Knee-De... Music Image <p class="inlineImg"><a href="http://justwatchthesky.com/page/15"><img src="http://blog.carldr.com/system/assets/youre_the_shit.png" alt="You're the shit and I'm knee-deep in it" title="You're The Shit" /></a></p> <blockquote> <p>Today, I revived <a href="http://justwatchthesky.com">Justwatchthesky</a> from the internet graveyard/landfill of &#8220;coming soon&#8221; pages. The scope is narrow: An exercise in documenting words in the music I listen to with color and type. The constraints are simple: (1) Only use Georgia (serif) or Helvetica (sans) and (2) try to post as often as possible.</p> </blockquote> <p class="cite">Ryan Sims, justwatchthesky.com</p> <p>Another idea I wish I had come up with, although I doubt I would have executed it half as well.</p> <p>Also, I know a good number of the songs he&#8217;s quoted so far, so they have been particularly interesting &#8211; I hope it remains that way.</p> tag:http://blog.carldr.com/,2008:blog.carldr.com-140 2008-07-15T16:07:38+01:00 2008-07-15T16:07:38+01:00 My kinda town! Personal Image <p class="inlineImg"><img src="http://blog.carldr.com/system/assets/drinkwater.jpg" alt="Carl Drinkwater" title="A picture taken outside of Drinkwater, Saskatchewan, Canada"></p> <p><a href="http://en.wikipedia.org/wiki/Drinkwater,_Saskatchewan">Drinkwater, Saskatchewan, Canada</a>! The photo was taken by Greg, one of the employees of <a href="http://29degrees.co.uk">29degrees</a>, on a recent trip across Canada.</p> <p>Sadly though, I know it&#8217;s nothing to do with my family &#8211; Apparently, it doesn&#8217;t have a pub &#8230;</p> tag:http://blog.carldr.com/,2008:blog.carldr.com-139 2008-06-06T12:04:12+01:00 2008-06-06T12:04:12+01:00 News Stories in Photographs Image <p class="inlineImg"><img src="http://blog.carldr.com/system/assets/algae.png" alt="" title="" /></p> <blockquote> <p>Small fishing boats tied to the banks of the Chaohu lake, where a pollution-linked algae bloom has reappeared.</p> </blockquote> <p>From <a href="http://www.boston.com/bigpicture/">The Big Picture</a>. Read through all the stories, there are <a href="http://www.boston.com/bigpicture/2008/05/after_the_quake.html">many</a>, <a href="http://www.boston.com/bigpicture/2008/05/indigenous_brazilians_protest.html">many</a> <a href="http://cache.boston.com/universal/site_graphics/blogs/bigpicture/chaiten_06_04/chaiten5a.jpg">fantastic</a> pictures.</p> <p>It&#8217;s brilliant to see such high quality pictures of news events. The only improvement I&#8217;d make is to allow linking to specific pictures within a story, so I don&#8217;t have to hotlink like I have done in the &#8216;fantastic&#8217; picture above.</p> tag:http://blog.carldr.com/,2008:blog.carldr.com-138 2008-06-06T11:11:44+01:00 2008-06-06T11:11:44+01:00 Big Ideas : Don't Get Any Music Funny Geek <p class="inlineImg"><img src="http://blog.carldr.com/system/assets/nude.png" /></p> <blockquote> <p>Radiohead held an online contest to remix &#8220;Nude&#8221; from their album &#8211; &#8220;In Rainbows&#8221; ... I decided to take the piss a bit, as the contest seemed to be in that spirit.</p> </blockquote> <p class="cite">James Houston</p> <p>Awesome for two reasons : 1) Radiohead, and 2) Old hardware. <a href="http://www.vimeo.com/1109226?pg=embed&#38;sec=1109226">Watch and listen</a>.</p> tag:http://blog.carldr.com/,2008:blog.carldr.com-137 2008-05-25T15:41:45+01:00 2008-05-25T15:41:45+01:00 Biggest Drawing In The World Image <p class="inlineImg"><img src="http://blog.carldr.com/system/assets/biggest_picture.png" alt="The Biggest Drawing In The World" title="How to draw using GPS" /></p> <blockquote> <p>With the help of a <span class="caps">GPS</span> device and <span class="caps">DHL</span>, I have drawn a self-portrait on our planet. My pen was a briefcase containing the <span class="caps">GPS</span> device, being sent around the world. The paths the briefcase took around the globe became the strokes of the drawing.</p> </blockquote> <p>Visit the <a href="http://biggestdrawingintheworld.com">Biggest Drawing In The World</a> site.</p> <p><strong>Update:</strong> <a href="http://www.engadget.com/2008/05/28/surprise-biggest-drawing-now-biggest-gps-hoax-in-the-world/">Meh, it&#8217;s a hoax.</a>.</p> tag:http://blog.carldr.com/,2008:blog.carldr.com-136 2008-04-18T15:51:33+01:00 2008-04-18T15:51:33+01:00 Drink and Drive Image <p class='inlineImg'><img src="http://blog.carldr.com/system/assets/trafficpolicewaving_small.jpg" alt="This is what happens when you drink and drive." title="This is what happens when you drink and drive." /></p> <p><a href="http://adsoftheworld.com/media/print/traffic_police_mumbai_waving?size=_original">See the larger image</a> to get a better idea of how the optical illusion in this advert works.</p> tag:http://blog.carldr.com/,2008:blog.carldr.com-135 2008-04-18T09:35:15+01:00 2008-04-18T09:35:15+01:00 Jyväskylä Video <p class='inlineImg'><img src="http://blog.carldr.com/system/assets/28hours.png" title="28 Hours in Jyväskylä" alt="Traffic lights in Jyväskylä"/></p> <p><a href="http://neokoo.net/28-hours-in-jyvaskyla/">Watch this fantastic timelapse video shot in and around Jyväskylä, Finland</a>.</p> tag:http://blog.carldr.com/,2008:blog.carldr.com-134 2008-04-09T11:35:20+01:00 2008-04-09T11:35:20+01:00 PermaStore Ruby <pre class='highlighted'><ol><li><span class="SourceBase"><span class="Keyword">class</span> <span class="TypeName">PermaStore<span class="ClassInheritance"> <span class="ClassInheritance">&lt;</span> Hash</span></span></span></li><li> <span class="SourceBase"><span class="Keyword">def</span> <span class="FunctionName">self.load</span></span></li><li> <span class="Keyword">if</span> <span class="SourceBase">File</span><span class="SourceBase"><span class="SourceBase">.</span><span class="FunctionName">exists?</span></span><span class="SourceBase">(</span> <span class="String"><span class="String">&quot;</span>data.dump<span class="String">&quot;</span></span> <span class="SourceBase">)</span></li><li> <span class="SourceBase">File</span><span class="SourceBase"><span class="SourceBase">.</span><span class="FunctionName">open</span></span><span class="SourceBase">(</span> <span class="String"><span class="String">&quot;</span>data.dump<span class="String">&quot;</span></span><span class="SourceBase">,</span> <span class="String"><span class="String">&quot;</span>r<span class="String">&quot;</span></span> <span class="SourceBase">)</span> <span class="Keyword">do </span><span class="SourceBase">|</span><span class="SourceBase">f</span><span class="SourceBase">|</span></li><li> <span class="Keyword">return</span> <span class="SourceBase">Marshal</span><span class="SourceBase"><span class="SourceBase">.</span><span class="FunctionName">load</span></span><span class="SourceBase">(</span> f <span class="SourceBase">)</span></li><li> <span class="Keyword">end</span></li><li> <span class="Keyword">end</span></li><li></li><li> <span class="Keyword">return</span> <span class="SourceBase">PermaStore</span><span class="SourceBase"><span class="SourceBase">.</span><span class="FunctionName">new</span></span></li><li> <span class="Keyword">end</span></li><li></li><li> <span class="SourceBase"><span class="Keyword">def</span> <span class="FunctionName">[]=</span><span class="SourceBase">(</span><span class="FunctionArgument"> key<span class="FunctionArgument">,</span> value </span><span class="SourceBase">)</span></span></li><li> <span class="Keyword">super</span></li><li></li><li> save</li><li> <span class="Keyword">end</span></li><li></li><li> <span class="SourceBase"><span class="Keyword">def</span> <span class="FunctionName">delete</span><span class="SourceBase">(</span><span class="FunctionArgument"> value </span><span class="SourceBase">)</span></span></li><li> <span class="Keyword">super</span></li><li></li><li> save</li><li> <span class="Keyword">end</span></li><li></li><li> <span class="Keyword">protected</span></li><li></li><li> <span class="SourceBase"><span class="Keyword">def</span> <span class="FunctionName">save</span></span></li><li> <span class="SourceBase">File</span><span class="SourceBase"><span class="SourceBase">.</span><span class="FunctionName">open</span></span><span class="SourceBase">(</span> <span class="String"><span class="String">&quot;</span>data.dump<span class="String">&quot;</span></span><span class="SourceBase">,</span> <span class="String"><span class="String">&quot;</span>w<span class="String">&quot;</span></span> <span class="SourceBase">)</span> <span class="Keyword">do </span><span class="SourceBase">|</span><span class="SourceBase">f</span><span class="SourceBase">|</span></li><li> <span class="SourceBase">Marshal</span><span class="SourceBase"><span class="SourceBase">.</span><span class="FunctionName">dump</span></span><span class="SourceBase">(</span> <span class="SourceBase">self</span><span class="SourceBase">,</span> f <span class="SourceBase">)</span></li><li> <span class="Keyword">end</span></li><li> <span class="Keyword">end</span></li><li><span class="Keyword">end</span></li></ol></pre><p>Do whatever you will with it. It&#8217;s not thread safe, but that&#8217;s easily fixable if you&#8217;re so inclined.</p> tag:http://blog.carldr.com/,2008:blog.carldr.com-133 2008-04-02T16:02:36+01:00 2008-04-02T16:02:36+01:00 Music Of The Week, Part 3 Music <blockquote> <p>So the salesman said he got one for himself / A charmed life with some kids and some stainless steel knives / Paid in full as of 2029, I&#8217;ll need to scrape all my change and give up all my toys but / Really, who needs more than this thing?</p> </blockquote> <p class="cite">&#8220;Zero To Love&#8221; by Say Hi, off &#8220;The Wishes And The Glitch&#8221;</p> <p>Perhaps Zero To Love isn&#8217;t the stand-out track of the album, but definitely the most infectious.</p> <p>The Wishes And The Glitch is definitely more experimental in its sound than <a href="http://blog.carldr.com/132/songs-of-the-week-part-2">Konk</a> and <a href="http://blog.carldr.com/131/songs-of-the-week-part-1">Lucky</a> &#8211; The vocals on the first track aren&#8217;t a million miles away from Sigur Rós, although the music is undisputedly more guitary.</p> <p>The album&#8217;s other highlights include the chunky electronic sound of Toil and Trouble, the poppy and happy Magic Beans And The Truth Machine, and the building last track We Lost The Albatross. Bluetime strongly reminds me of another song, but I can&#8217;t recall which. Either way, you can&#8217;t knock a song about Pac-Man.</p> <p>I don&#8217;t think the album will appeal to everyone, but if you like indie rock, I don&#8217;t think you could go too far wrong by giving The Wishes And The Glitch a listen.</p> <object type="application/x-shockwave-flash" data="http://blog.carldr.com/system/assets/player.swf" width="290" height="24" id="audioplayer1"><param name="movie" value="http://blog.carldr.com/system/assets/player.swf" /><param name="FlashVars" value="playerID=1&#38;bg=0xf8f8f8&#38;leftbg=0xeeeeee&#38;lefticon=0x666666=0xd9d9d9&#38;rightbghover=0xcccccc&#38;righticon=0x666666hover=0xffffff=0xf8f8f8&#38;slider=0xFF7500&#38;track=0xFFFFFF=0xcccccc&#38;loader=0xB7CCDF&#38;soundFile=zero_to_love.mp3" /><param name="quality" value="high" /><param name="menu" value="false" /><param name="bgcolor" value="#FFFFFF" /></object> tag:http://blog.carldr.com/,2008:blog.carldr.com-132 2008-04-02T15:59:04+01:00 2008-04-02T15:59:04+01:00 Music Of The Week, Part 2 Music <blockquote> <p>Be whoever you have to be / I won&#8217;t judge you / And sing whenever you have to sing / To get it out and not become / a recluse about your house, come out</p> </blockquote> <p class="cite">&#8220;Sway&#8221; by The Kooks, off &#8220;Konk&#8221;</p> <p>I love the guitar at the end of the verses, and the chorus and the bridge are brilliant. It&#8217;s probably my favourite track of the moment, I kept repeating it in the car on the way home last night. Which means in about 3 weeks I&#8217;m going to be bored of it, and not want to hear it any more.</p> <p>Pretty much the whole of Konk is excellent, so much so I&#8217;ve pre-ordered it &#8211; Something I very rarely do. I read a review last week sometime saying that the first track, See The Sun, is the best first track to an album they&#8217;d heard for a while. I&#8217;m not sure I agree with that (<a href="http://blog.carldr.com/131/music-of-the-week-part-1">See These Bones</a>), but there is no doubting it hooks you into the album immediately.</p> <p>Fans of The Fratellis will like Mr. Maker (And probably the whole album, now I mention it), and Gap, Stormy Weather, Sway (of course) and Down To The Market keep the middle of the album sounding strong. I&#8217;m not too keen on Do You Wanna though.</p> <p>I absolutely love the opening lyrics of the melancholic One Last Time :</p> <blockquote> <p>Can I hold you one last time / To fight the fear that&#8217;s growing in my mind / I know I did us both all so wrong / I know I&#8217;m not always all that strong</p> </blockquote> <p class="cite">&#8220;One Last Time&#8221; by The Kooks, off &#8220;Konk&#8221;</p> <p>Listening to it again now, when I get bored of Sway this will probably be the next track I overplay.</p> <p>Overall, it&#8217;s a more mature sound than Inside In/Inside Out, but still unmistakably The Kooks &#8211; Which is just fine, in my book.</p> <object type="application/x-shockwave-flash" data="http://blog.carldr.com/system/assets/player.swf" width="290" height="24" id="audioplayer1"><param name="movie" value="http://blog.carldr.com/system/assets/player.swf" /><param name="FlashVars" value="playerID=1&#38;bg=0xf8f8f8&#38;leftbg=0xeeeeee&#38;lefticon=0x666666&#38;rightbg=0xd9d9d9&#38;rightbghover=0xcccccc&#38;righticon=0x666666&#38;righticonhover=0xffffff&#38;text=0xf8f8f8&#38;slider=0xFF7500&#38;track=0xFFFFFF&#38;border=0xcccccc&#38;loader=0xB7CCDF&#38;soundFile=sway.mp3" /><param name="quality" value="high" /><param name="menu" value="false" /><param name="bgcolor" value="#FFFFFF" /></object> tag:http://blog.carldr.com/,2008:blog.carldr.com-131 2008-04-02T15:53:04+01:00 2008-04-02T15:53:04+01:00 Music Of The Week, Part 1 Music <blockquote> <p>I feel rain in the movies and the talk before the screen lights / I hear strings in the park / I don&#8217;t like to call her right / Except when its too late at night / I mostly just think in the dark</p> </blockquote> <p class="cite">&#8220;See These Bones&#8221; by Nada Surf, off &#8220;Lucky&#8221;</p> <p>The song slowly builds from a pretty indifferent first verse, but by the time you hit the first chorus you&#8217;re beginning to be sucked in, and upon reaching &#8220;Do you remember &#8230;&#8221; before the final chorus you&#8217;re completely sold on how great the song is.</p> <p>I wasn&#8217;t a massive fan of Let Go, the only other album I&#8217;ve heard by Nada Surf, so listening to Lucky was a surprise &#8211; It&#8217;s a very, very good album. If you like Teenage Fanclub or Death Cab For Cutie and you&#8217;ve never heard Nada Surf, you&#8217;ll love this album.</p> <p>Whose Authority and I Like What You Say are probably the two other immediate attention grabbers, you can&#8217;t help but start toe-tapping and singing along to the chorus of the latter, while the former, probably because the guitar at the beginning of the song reminds me of the Lightning Seeds, makes me want to go and dig out all the great Britpop music I&#8217;ve got and forgotten about.</p> <p>Thinking about it, the whole album puts me in that mood &#8211; It takes me back to a time where the biggest problem I had was working out which black t-shirt to wear and which indie club to go to.</p> <object type="application/x-shockwave-flash" data="http://blog.carldr.com/system/assets/player.swf" width="290" height="24" id="audioplayer1"><param name="movie" value="http://blog.carldr.com/system/assets/player.swf" /><param name="FlashVars" value="playerID=1&#38;bg=0xf8f8f8&#38;leftbg=0xeeeeee&#38;lefticon=0x666666&#38;rightbg=0xd9d9d9&#38;rightbghover=0xcccccc&#38;righticon=0x666666&#38;righticonhover=0xffffff&#38;text=0xf8f8f8=0xFF7500&#38;track=0xFFFFFF&#38;border=0xcccccc&#38;loader=0xB7CCDF&#38;soundFile=see_these_bones.mp3" /><param name="quality" value="high" /><param name="menu" value="false" /><param name="bgcolor" value="#FFFFFF" /></object> tag:http://blog.carldr.com/,2008:blog.carldr.com-130 2008-03-27T13:49:00+00:00 2008-03-27T13:49:00+00:00 Who knew? Unix <p>In bash :</p><pre class='highlighted'><ol><li><span class="TextBase">[13:48:04 carl@mummra ~]% echo Hello</span></li><li><span class="TextBase">Hello</span></li><li><span class="TextBase">[13:48:06 carl@mummra ~]% ^Hello^Bye^</span></li><li><span class="TextBase">echo Bye</span></li><li><span class="TextBase">Bye</span></li></ol></pre> tag:http://blog.carldr.com/,2008:blog.carldr.com-129 2008-03-27T12:20:00+00:00 2008-03-27T12:20:00+00:00 SSH port forwarding with OSX OSX <p>If you&#8217;re doing remote port forwarding on Leopard, you might encounter the as problem as <a href="http://29degrees.co.uk">we</a> have done this morning. I don&#8217;t remember this happening with Tiger, so I think it&#8217;s a Leopard specific thing.</p> <p>We wanted a client to see a in-development feature hosted on one of our machines in the office, which is protected by a firewall. For various reasons, we can&#8217;t punch a hole in that firewall and configure the router to direct requests for a given port to a specific machine.</p> <p>You can normally do this by running something like :</p><pre class='highlighted'><ol><li><span class="TextBase">ssh -R 6000:localhost:5000 blog.carldr.com</span></li></ol></pre><p>We&#8217;re wanting to tunnel <span class="caps">HTTP</span> here, so in this example, it means that requests to &#8216;http://blog.carldr.com:6000/&#8217; are forwarded (transparently to the user) to port 5000 on the machine where the &#8216;ssh&#8217; was ran from.</p> <p>However, this didn&#8217;t work. The connection which <span class="caps">SSH</span> was trying to make to port 5000 on our local machine was being refused. With use of &#8216;ssh -v&#8217;, &#8216;lsof&#8217;, &#8216;netstat&#8217; et al., we found out what the problem was.</p> <p>On Leopard, &#8216;localhost&#8217; resolves as IPv6 &#8217;::1&#8217;, so ssh is trying to connect to that port. The web server we were running locally was binding to 0.0.0.0, which is all interfaces, but just IPv4. The solution is one of these :</p><pre class='highlighted'><ol><li><span class="TextBase">ssh -4 -R 6000:localhost:5000 blog.carldr.com</span></li></ol></pre><pre class='highlighted'><ol><li><span class="TextBase">ssh -R 6000:127.0.0.1:5000 blog.carldr.com</span></li></ol></pre><p>Or binding the web server to &#8217;::1&#8217;.</p> tag:http://blog.carldr.com/,2008:blog.carldr.com-128 2008-03-26T15:53:00+00:00 2008-03-26T15:53:00+00:00 The view from Mars Image Astronomy <p class="inlineImg"><img src="http://blog.carldr.com/system/assets/earth_moon_from_mars.jpg" alt="The Earth and the Moon, as seen from Mars." title="It's all there." /></p> <p>This is an image of Earth and the Moon, acquired at 5:20 a.m. <span class="caps">MST</span> on 3 October 2007, at a range of 142 million kilometres. More details are available on the <a href="http://hirise.lpl.arizona.edu/earthmoon.php">HiRISE</a> site.</p> <p>Funnily enough, I was watching <a href="http://www.racetomars.ca/mars/">Race To Mars</a> at the weekend, and was wondering what the Earth and Moon would look like from Mars.</p>