<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>Web Development &amp; Design



  var _gaq = _gaq || [];
  _gaq.push([‘_setAccount’, ‘UA-7434953-4’]);
  _gaq.push([‘_trackPageview’]);

  (function() {
    var ga = document.createElement(‘script’); ga.type = ‘text/javascript’; ga.async = true;
    ga.src = (‘https:’ == document.location.protocol ? ‘https://ssl’ : ‘http://www’) + ‘.google-analytics.com/ga.js’;
    var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(ga, s);
  })();</description><title>New Gold Leaf</title><generator>Tumblr (3.0; @newgoldleaf)</generator><link>http://blog.newgoldleaf.com/</link><item><title>We got a very close-to-brand-new pair of classic Technics 1200...</title><description>&lt;img src="http://27.media.tumblr.com/tumblr_l6a7c2Loat1qa37yjo1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;We got a very close-to-brand-new pair of classic Technics 1200 turntables for the New Gold Leaf office yesterday.  We’re awaiting the arrival of Serato from the delivery guy so we can really get our mix on. &lt;/p&gt;</description><link>http://blog.newgoldleaf.com/post/871732826</link><guid>http://blog.newgoldleaf.com/post/871732826</guid><pubDate>Wed, 28 Jul 2010 11:57:38 -0700</pubDate><category>office hardware</category><category>vinyl</category></item><item><title>A hilarious video of Connor poppin some champagne and his hat at...</title><description>&lt;object type="application/x-shockwave-flash" width="400" height="300" data="http://vimeo.com/moogaloop.swf?clip_id=13277122&amp;server=vimeo.com&amp;fullscreen=1&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF"&gt;&lt;param name="quality" value="best" /&gt;&lt;param name="allowscriptaccess" value="always" /&gt;&lt;param name="allowfullscreen" value="true" /&gt;&lt;param name="scale" value="showAll" /&gt;&lt;param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=13277122&amp;server=vimeo.com&amp;fullscreen=1&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF" /&gt;&lt;embed src="http://www.vimeo.com/moogaloop.swf?clip_id=13277122&amp;server=www.vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;A hilarious video of Connor poppin some champagne and his hat at a World Cup Brunch.  Joe shot this vertically with his iPhone 4…&lt;a href="http://vimeo.com/13277122"&gt;check out the Vimeo page&lt;/a&gt; to see how Vimeo renders the vertical HD video…pretty cool.  Wonder what YouTube does with these?  We’re thinking there is going to be a influx of vertical HD videos posted online now that people have the option to shoot video this way with the new iPhones.  &lt;/p&gt;</description><link>http://blog.newgoldleaf.com/post/803140111</link><guid>http://blog.newgoldleaf.com/post/803140111</guid><pubDate>Mon, 12 Jul 2010 12:40:00 -0700</pubDate><category>video</category><category>champagne</category></item><item><title>The Web Reel Episode 6</title><description>&lt;a href="http://thewebreel.com/episode-6.html"&gt;The Web Reel Episode 6&lt;/a&gt;: &lt;p&gt;&lt;span&gt;All about E3! our prediction on why the Xbox Kinect is super awesome and Sony Playstation Move kind of sucks. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Microsoft’s new console the Xbox Kinect, is the clear winner at E3 this year. Every retails seemed to focus on 3D and motion based gaming. This weeks cocktail is the “Dark and Stormy”, which is actually made out of smashed up village people! Awesome!&lt;/span&gt;&lt;/p&gt;</description><link>http://blog.newgoldleaf.com/post/746569434</link><guid>http://blog.newgoldleaf.com/post/746569434</guid><pubDate>Mon, 28 Jun 2010 12:13:12 -0700</pubDate><category>the web reel</category><category>new episode</category></item><item><title>having fun this morning with iMovie on the iPhone 4 - very...</title><description>&lt;object type="application/x-shockwave-flash" width="400" height="300" data="http://vimeo.com/moogaloop.swf?clip_id=12831066&amp;server=vimeo.com&amp;fullscreen=1&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF"&gt;&lt;param name="quality" value="best" /&gt;&lt;param name="allowscriptaccess" value="always" /&gt;&lt;param name="allowfullscreen" value="true" /&gt;&lt;param name="scale" value="showAll" /&gt;&lt;param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=12831066&amp;server=vimeo.com&amp;fullscreen=1&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF" /&gt;&lt;embed src="http://www.vimeo.com/moogaloop.swf?clip_id=12831066&amp;server=www.vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;having fun this morning with iMovie on the iPhone 4 - very impressive app!&lt;/p&gt;</description><link>http://blog.newgoldleaf.com/post/731963359</link><guid>http://blog.newgoldleaf.com/post/731963359</guid><pubDate>Thu, 24 Jun 2010 11:32:32 -0700</pubDate><category>imovie</category><category>iphone 4</category><category>new gold leaf</category></item><item><title>The Web Reel Episode 5</title><description>&lt;a href="http://thewebreel.com/2010/06/10/episode-5.html"&gt;The Web Reel Episode 5&lt;/a&gt;</description><link>http://blog.newgoldleaf.com/post/729554997</link><guid>http://blog.newgoldleaf.com/post/729554997</guid><pubDate>Wed, 23 Jun 2010 14:12:30 -0700</pubDate><category>the web reel</category><category>new episode</category></item><item><title>We coded ARG’s site and made a quick Gource video of us...</title><description>&lt;object type="application/x-shockwave-flash" width="400" height="300" data="http://vimeo.com/moogaloop.swf?clip_id=12306220&amp;server=vimeo.com&amp;fullscreen=1&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF"&gt;&lt;param name="quality" value="best" /&gt;&lt;param name="allowscriptaccess" value="always" /&gt;&lt;param name="allowfullscreen" value="true" /&gt;&lt;param name="scale" value="showAll" /&gt;&lt;param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=12306220&amp;server=vimeo.com&amp;fullscreen=1&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF" /&gt;&lt;embed src="http://www.vimeo.com/moogaloop.swf?clip_id=12306220&amp;server=www.vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;We coded &lt;a href="http://automationresourcesgroup.com/"&gt;ARG’s site&lt;/a&gt; and made a quick Gource video of us building it with some original background music as well.  &lt;/p&gt;</description><link>http://blog.newgoldleaf.com/post/673894855</link><guid>http://blog.newgoldleaf.com/post/673894855</guid><pubDate>Mon, 07 Jun 2010 12:12:00 -0700</pubDate><category>gource</category><category>coding</category></item><item><title>In this episode Eric and Joe discuss what went down at TechCrunch Disrupt 2010, and hold a showdown...</title><description>&lt;p&gt;In this episode Eric and Joe discuss what went down at &lt;a href="http://disrupt.techcrunch.com/"&gt;TechCrunch Disrupt 2010&lt;/a&gt;, and hold a showdown of Apache verses &lt;span class="caps"&gt;NGNIX&lt;/span&gt;. As usual they spend time talking about their Apple products, this time Eric highlights how productive he is with his iPad as opposed to his laptop while traveling and Joe highlights the merits of jail-breaking his iPhone.&lt;/p&gt;
&lt;p&gt;Joe also demos his new Macbook Pro with it’s solid state drive while they both drink white russians and mention expert sex changes?&lt;/p&gt;
&lt;img src="http://feeds.feedburner.com/~r/TheWebReel/~4/WY6hCOcf3gE" height="1" width="1"/&gt;</description><link>http://blog.newgoldleaf.com/post/664634037</link><guid>http://blog.newgoldleaf.com/post/664634037</guid><pubDate>Fri, 04 Jun 2010 16:09:07 -0700</pubDate></item><item><title>The Web Reel Episode 4</title><description>&lt;a href="http://thewebreel.com/2010/06/03/episode-4.html"&gt;The Web Reel Episode 4&lt;/a&gt;</description><link>http://blog.newgoldleaf.com/post/664404010</link><guid>http://blog.newgoldleaf.com/post/664404010</guid><pubDate>Fri, 04 Jun 2010 14:29:00 -0700</pubDate><category>the web reel</category><category>new episode</category></item><item><title>An amazing video of Joe fun-boxing his new MacBook Pro with high...</title><description>&lt;object type="application/x-shockwave-flash" width="400" height="300" data="http://vimeo.com/moogaloop.swf?clip_id=12060027&amp;server=vimeo.com&amp;fullscreen=1&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF"&gt;&lt;param name="quality" value="best" /&gt;&lt;param name="allowscriptaccess" value="always" /&gt;&lt;param name="allowfullscreen" value="true" /&gt;&lt;param name="scale" value="showAll" /&gt;&lt;param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=12060027&amp;server=vimeo.com&amp;fullscreen=1&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF" /&gt;&lt;embed src="http://www.vimeo.com/moogaloop.swf?clip_id=12060027&amp;server=www.vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;An amazing video of Joe fun-boxing his new MacBook Pro with high rez screen at the New Gold Leaf office.  Shot using a Flip Mino HD, which we love. &lt;/p&gt;</description><link>http://blog.newgoldleaf.com/post/653684959</link><guid>http://blog.newgoldleaf.com/post/653684959</guid><pubDate>Tue, 01 Jun 2010 09:00:00 -0700</pubDate><category>video</category><category>un-boxing</category><category>macbook pro</category><category>flip HD</category></item><item><title>The Web Reel Episode 3</title><description>&lt;a href="http://thewebreel.com/2010/05/27/episode-3.html"&gt;The Web Reel Episode 3&lt;/a&gt;</description><link>http://blog.newgoldleaf.com/post/641924019</link><guid>http://blog.newgoldleaf.com/post/641924019</guid><pubDate>Fri, 28 May 2010 16:00:00 -0700</pubDate><category>the web reel</category><category>new episode</category></item><item><title>Remove MySQL in one line.</title><description>&lt;p&gt;Well at least only one line of code for you!&lt;/p&gt;
&lt;p&gt;&lt;code&gt; &lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt; &lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt; &lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;
&lt;pre&gt;bash &lt; &lt;( curl -L &lt;a href="http://bit.ly/91Ugqt"&gt;http://bit.ly/91Ugqt&lt;/a&gt; )&lt;/pre&gt;
&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Remember this will totally nuke your MySQL installation, so be sure to have your databases backed up and safe.&lt;/p&gt;
&lt;p&gt;This script only works on *nix systems in which you’ve installed MySQL the standard way.&lt;/p&gt;
&lt;p&gt;I encourage you to check out the script that is being run when you execute that command, and please if you notice any improvements fork it!&lt;/p&gt;
&lt;p&gt;&lt;a href="http://gist.github.com/417529"&gt;http://gist.github.com/417529&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.newgoldleaf.com/post/641369051</link><guid>http://blog.newgoldleaf.com/post/641369051</guid><pubDate>Fri, 28 May 2010 11:37:00 -0700</pubDate><category>mysql</category></item><item><title>Here is the 24 second version of The Web Reel’s theme song...</title><description>&lt;embed type="application/x-shockwave-flash" src="http://blog.newgoldleaf.com/swf/audio_player.swf?audio_file=http://www.tumblr.com/audio_file/641056666/tumblr_l31p5zffSQ1qa37yj&amp;color=FFFFFF" height="27" width="207" quality="best"&gt;&lt;/embed&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Here is the 24 second version of &lt;a href="http://www.thewebreel.com"&gt;The Web Reel’s&lt;/a&gt; theme song recorded, sung and written by Elliott and Connor of &lt;a href="http://www.demsuite.com"&gt;Dem Suite&lt;/a&gt;. &lt;/p&gt;</description><link>http://blog.newgoldleaf.com/post/641056666</link><guid>http://blog.newgoldleaf.com/post/641056666</guid><pubDate>Fri, 28 May 2010 09:00:00 -0700</pubDate><category>theme song</category><category>dem suite</category><category>the web reel</category></item><item><title>the web reel</title><description>&lt;p&gt;Our new weekly video podcast by &lt;a href="http://newgoldleaf.com/hello#joseph_silvashy"&gt;Joe&lt;/a&gt; and &lt;a href="http://newgoldleaf.com/hello#eric_saxby"&gt;Eric&lt;/a&gt; where they talk about web development, design and general internet tomfoolery.  &lt;/p&gt;
&lt;p&gt;&lt;a href="http://thewebreel.com"&gt;&lt;a href="http://thewebreel.com"&gt;http://thewebreel.com&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.newgoldleaf.com/post/637816798</link><guid>http://blog.newgoldleaf.com/post/637816798</guid><pubDate>Thu, 27 May 2010 08:00:00 -0700</pubDate><category>the web reel</category><category>podcast</category><category>technology</category><category>eric &amp;amp; joe</category></item><item><title>A quick tour of our office on Potrero Avenue in San Francisco.</title><description>&lt;object type="application/x-shockwave-flash" width="400" height="224" data="http://vimeo.com/moogaloop.swf?clip_id=10763909&amp;server=vimeo.com&amp;fullscreen=1&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF"&gt;&lt;param name="quality" value="best" /&gt;&lt;param name="allowscriptaccess" value="always" /&gt;&lt;param name="allowfullscreen" value="true" /&gt;&lt;param name="scale" value="showAll" /&gt;&lt;param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=10763909&amp;server=vimeo.com&amp;fullscreen=1&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF" /&gt;&lt;embed src="http://www.vimeo.com/moogaloop.swf?clip_id=10763909&amp;server=www.vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="224"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;A quick tour of our office on Potrero Avenue in San Francisco.&lt;/p&gt;</description><link>http://blog.newgoldleaf.com/post/635155608</link><guid>http://blog.newgoldleaf.com/post/635155608</guid><pubDate>Wed, 26 May 2010 12:18:00 -0700</pubDate><category>video</category><category>office</category><category>tour</category><category>new gold leaf</category></item><item><title>Simple iPhone User Agent detection with Rails</title><description>&lt;p&gt;There are a lot of methods for detecting user agents, but if you just want to use a different app layout in your rails app for iPhone users, here’s how we do it.&lt;/p&gt;
&lt;p&gt;&lt;code&gt; &lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;
&lt;pre&gt;class ApplicationController &lt; ActionController::Base

  ...
  
  layout :application_layout

  # detect UA for iPhone users
  def application_layout
    @browser_name ||= begin
      ua = request.env['HTTP_USER_AGENT'].downcase
      if ua.index('iphone')
        'application.iphone'
      else
        'application'
      end
    end
  end
  
end&lt;/pre&gt;
&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;It’s important to note that we did have to define &lt;code&gt;layout :application_layout &lt;/code&gt;Rails will choose this as a default, but since we have to override it’s default we’ll need to state it again here.&lt;/p&gt;
&lt;p&gt;Now we just need those two files, &lt;i&gt;application.iphone.html.erb&lt;/i&gt; and &lt;i&gt;application.html.erb&lt;/i&gt; in views/layouts.&lt;/p&gt;</description><link>http://blog.newgoldleaf.com/post/205189132</link><guid>http://blog.newgoldleaf.com/post/205189132</guid><pubDate>Mon, 05 Oct 2009 10:30:27 -0700</pubDate></item><item><title>Using Git with Your Media Temple (gs) Server</title><description>&lt;p&gt;It’s about time that web designers, &lt;i&gt;not just developers,&lt;/i&gt; start using version control, and while staying as far as possible away from the SVN vs. Git battle that still rages on, I just use Git and pretend like SVN never existed.&lt;/p&gt;
&lt;p&gt;We use media temple to host much of our clients work and stage up changes and updates to sites before we push them live to one of our application servers or perhaps its final destination is on the (gs) server itself.&lt;/p&gt;
&lt;p&gt;Luckily if you are on a Media Temple (gs) you already have it installed. So besides the server you’ll need:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Mac OS X Leopard or Snow Leopard (or Linux)&lt;/li&gt;
&lt;li&gt;Git 1.5.6 or higher&lt;/li&gt;
&lt;li&gt;A sprinkle of Terminal and SSH knowledge&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;b&gt;Firstly&lt;/b&gt;, I’ve created a domain git.mydomain.com, You can use any subdomain, but this seems to make the most sense.&lt;/p&gt;
&lt;pre&gt;# navigate to where you keep your projects
cd ~/Projects/
mkdir my-website
cd my-website
git init
touch .gitignore
git status
git add .
git commit -v -a -m "initial commit"&lt;/pre&gt;
&lt;p&gt;So we’ve created a local repository on our computer, which is already useful in terms of some basic version control! But there are a few more things we should do before we can make real use of our new repository.&lt;/p&gt;
&lt;p&gt;With the empty &lt;code&gt;.gitignore&lt;/code&gt; file (which is necessary because git needs at least one file in the repository, folders don’t count) we can tell git which files not to put in the repository, mine looks like:&lt;/p&gt;
&lt;pre&gt;.DS_Store
log/*.log
tmp/**/*&lt;/pre&gt;
&lt;p&gt;So this one is more setup for a rails app specifically the last two declarations, feel free to edit them and keep the files you want out of your repos. Remember some files especially logs can grow really large over time and they also don’t have a purpose in your repository&lt;/p&gt;
&lt;pre&gt;cd ~/Projects/
git clone --bare my-website my-website.git
touch my-website.git/git-daemon-export-ok&lt;/pre&gt;
&lt;p&gt;&lt;b&gt;Uploading the repository to our server&lt;/b&gt;, &lt;code&gt;scp&lt;/code&gt; is a great protocol for transferring files, but you can also use &lt;code&gt;rsync&lt;/code&gt; or even [shudder] ftp.&lt;/p&gt;
&lt;pre&gt;scp -r my-website.git serveradmin%s#####.gridserver.com@s#####.gridserver.com:domains/git.mydomain.com/html/my-website.git&lt;/pre&gt;
&lt;p&gt;&lt;b&gt;Now you can pull files from your repository&lt;/b&gt;, but first clone your repository and you’ll have a local copy of it.&lt;/p&gt;
&lt;pre&gt;git clone &lt;a href="http://git.mydomain.com/my-website.git"&gt;http://git.mydomain.com/my-website.git&lt;/a&gt;&lt;/pre&gt;
&lt;p&gt;After making some changes or adding files you can commit them them like you did earlier.&lt;/p&gt;
&lt;pre&gt;git commit -a -m "just added some features... blah blah"&lt;/pre&gt;
&lt;p&gt;lastly, you can push them to the repository using &lt;code&gt;git push&lt;/code&gt;, telling git to send the master branch&lt;/p&gt;
&lt;pre&gt;git push ssh://serveradmin%s#####.gridserver.com@s#####.gridserver.com/home/#####/domains/git.mydomain.com/html/my-website.git master&lt;/pre&gt;
&lt;p&gt;Because it sucks to type that every time you want to push your changes Git allows you to have have multiple tracked repositories. Since we cloned our project from &lt;code&gt;&lt;a href="http://git.mydomain.com/my-website.git"&gt;http://git.mydomain.com/my-website.git&lt;/a&gt;&lt;/code&gt; Git knows it can just push to there every time. Let’s add a remote repository and tell Git to push our changes there.&lt;/p&gt;
&lt;pre&gt;cd ~/Projects/my-website/
git remote add gridserver ssh://serveradmin%s#####.gridserver.com@s#####.gridserver.com/home/#####/domains/git.mydomain.com/html/my-website.git&lt;/pre&gt;
&lt;p&gt;Great! Now you can push changes to your Grid Server just by running &lt;code&gt;git push gridserver master&lt;/code&gt;.&lt;/p&gt;</description><link>http://blog.newgoldleaf.com/post/187406428</link><guid>http://blog.newgoldleaf.com/post/187406428</guid><pubDate>Sun, 13 Sep 2009 20:10:00 -0700</pubDate><category>git</category></item><item><title>Snow Leopard's Safari renders ugly text?</title><description>&lt;p&gt;If anyone has upgraded to Snow Leopard notices that text rendering is severely messed up. In fact Safari 3.0 was leaps better, not sure what the issue is.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.flickr.com/photos/jpsilvashy/3907386980/"&gt;http://www.flickr.com/photos/jpsilvashy/3907386980/&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.newgoldleaf.com/post/184273870</link><guid>http://blog.newgoldleaf.com/post/184273870</guid><pubDate>Wed, 09 Sep 2009 22:05:00 -0700</pubDate><category>webkit</category><category>snow-leopard</category><category>css</category></item></channel></rss>
