<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:ymaps="http://api.maps.yahoo.com/Maps/V2/AnnotatedMaps.xsd">

<channel>
	<title>The Codebelay Blog &#187; How-To</title>
	<atom:link href="http://www.codebelay.com/blog/category/how-to/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codebelay.com/blog</link>
	<description>Safely Reach New Tech Heights Through Our Startup Insights</description>
	<lastBuildDate>Wed, 25 Jan 2012 19:12:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Upgrade Your Rails Facebook App to SSL</title>
		<link>http://www.codebelay.com/blog/2011/09/13/upgrade-your-rails-facebook-app-to-ssl/</link>
		<comments>http://www.codebelay.com/blog/2011/09/13/upgrade-your-rails-facebook-app-to-ssl/#comments</comments>
		<pubDate>Wed, 14 Sep 2011 05:39:27 +0000</pubDate>
		<dc:creator>barce</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[WebApps]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[facebook apps]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://www.codebelay.com/blog/?p=1159</guid>
		<description><![CDATA[On October 1st of this year, Facebook will be requiring that all apps on Facebook must support HTTPS (SSL). I&#8217;ve provided a guide below which I&#8217;ve used for apps I&#8217;ve worked on that are Rails based. This guide shows you how to change your Rails Facebook App into an app that supports SSL using Passenger [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>On October 1st of this year, <a href="https://developers.facebook.com/blog/post/499/">Facebook will be requiring that all apps on Facebook must support HTTPS (SSL)</a>.</p>
<p>I&#8217;ve provided a guide below which I&#8217;ve used for apps I&#8217;ve worked on that are Rails based. </p>
<p>This guide shows you how to change your Rails Facebook App into an app that supports SSL using <a href="http://www.modrails.com/index.html">Passenger</a> and Apache2.</p>
<p><strong>Step 1: Get an SSL cert or roll your own.<br />
</strong></p>
<p><a href="http://www.dreamhost.com/">Dreamhost.com</a> made it very easy to add an SSL cert for just $15.00 / year.</p>
<p>I tried out my app out using a locally signed certificate which seemed to work just fine:</p>
<div style="padding: 5px; color: #fff; background: #000">
openssl genrsa -des3 -out server.key 2048<br />
openssl req -new -key server.key -out server.csr<br />
cp server.key server.key.org<br />
openssl rsa -in server.key.org -out server.key<br />
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
</div>
<p><br/><br />
<strong>Step 2: Install and compile Apache 2<br />
</strong><br />
Get the latest version of Apache: <a href="http://httpd.apache.org/download.cgi">http://httpd.apache.org/download.cgi</a>.</p>
<p>Configure and compile Apache:<br />
./configure &#8211;prefix=/usr/local/apache2 &#8211;enable-rewrite &#8211;enable-so &#8211;enable-ssl<br />
make &#038;&#038; make install</p>
<p><strong>Step 3: Configure your Rails app<br />
</strong><br />
gem install passenger<br />
passenger-install-apache2-module</p>
<p><strong>Step 4: Edit your Apache 2 config files:<br />
</strong><br />
Edit httpd.conf. For example:</p>
<div style="padding: 5px; color: #fff; background: #000">
<pre style="color: #fff; background: #000;">
LoadModule fcgid_module modules/mod_fcgid.so
LoadModule passenger_module /Users/jimbarcelona/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/ext/apache2/mod_passenger.so
PassengerRoot /Users/jimbarcelona/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8
PassengerRuby /Users/jimbarcelona/.rvm/wrappers/ruby-1.9.2-p290/ruby

<Directory "/Users/jimbarcelona/rails_apps">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>

Include conf/extra/httpd-vhosts.conf
Include conf/extra/httpd-ssl.conf

<IfModule mod_fcgid.c>
IPCCommTimeout 40
IPCConnectTimeout 10

# TODO: change this to production if you are on production
DefaultInitEnv RAILS_ENV development
SocketPath /tmp/fcgidsock
</IfModule>
</pre>
</div>
<p><br/></p>
<p>Edit extra/httpd-vhosts.conf:</p>
<div style="padding: 5px; color: #fff; background: #000">
<pre style="color: #fff; background: #000;">
<VirtualHost *:80>
  ServerName berkeley.l33tcave.com
  ServerAdmin wwwadmin@berkeley.l33tcave.com
  DocumentRoot /Users/jimbarcelona/rails_apps/github/hipsterhookups.com/public
  ErrorLog /usr/local/apache2/logs/rails_error_log
  RewriteEngine On
  <Directory /Users/jimbarcelona/rails_apps/github/hipsterhookups.com/public>
    AllowOverride All
    Options -MultiViews
  </Directory>
  RailsEnv development
</VirtualHost>
</pre>
</div>
<p><br/></p>
<p>Edit extra/httpd-ssl.conf:</p>
<div style="padding: 5px; color: #fff; background: #000">
<pre style="color: #fff; background: #000;">
#   General setup for the virtual host
DocumentRoot "/Users/jimbarcelona/rails_apps/github/hipsterhookups.com/public"
ServerName berkeley.l33tcave.com:443
ServerAdmin you@example.com
ErrorLog "/usr/local/apache2/logs/error_log"
TransferLog "/usr/local/apache2/logs/access_log"

# needed for rails
Options Indexes ExecCGI FollowSymLinks
RewriteEngine On
RailsEnv development

AddHandler fcgid-script .fcgi

  <Directory /Users/jimbarcelona/rails_apps/github/hipsterhookups.com/public>
    AllowOverride All
    Options -MultiViews
  </Directory>
</pre>
</div>
<p><br/><br />
Be sure to add your SSL certs in the httpd-ssl.conf too!</p>
<p><strong>Step 5: Start Apache<br />
</strong></p>
<p># check syntax<br />
apachectl configtest<br />
# start apache<br />
apachectl start</p>
<p><strong>Step 6:</strong> Go to facebook and use https for canvas URLs</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codebelay.com/blog/2011/09/13/upgrade-your-rails-facebook-app-to-ssl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting Up Cucumber and RSpec on Padrino</title>
		<link>http://www.codebelay.com/blog/2011/07/26/setting-up-cucumber-and-rspec-on-padrino/</link>
		<comments>http://www.codebelay.com/blog/2011/07/26/setting-up-cucumber-and-rspec-on-padrino/#comments</comments>
		<pubDate>Wed, 27 Jul 2011 04:14:01 +0000</pubDate>
		<dc:creator>barce</dc:creator>
				<category><![CDATA[How-To]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[WebApps]]></category>

		<guid isPermaLink="false">http://www.codebelay.com/blog/?p=1145</guid>
		<description><![CDATA[This is a quick guide on how to set up Cucumber and RSpec on Padrino. I&#8217;ve created a simple test app on github that reflects the steps written down here. 1. Create the app: padrino g project todo -t cucumber -d sequel -b 2. In the Gemfile use rake 0.8.7: gem 'rake', "0.8.7" 3. In [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>This is a quick guide on how to set up <a href="http://cukes.info/">Cucumber</a> and <a href="http://rspec.info/">RSpec</a> on <a href="http://www.padrinorb.com/">Padrino</a>.</p>
<p>I&#8217;ve created<a href="https://github.com/barce/padrino_testlab"> a simple test app on github</a> that reflects the steps written down here.</p>
<p>1. Create the app:</p>
<pre>padrino g project todo -t cucumber -d sequel -b</pre>
<p>2. In the Gemfile use rake 0.8.7:</p>
<pre>gem 'rake', "0.8.7"</pre>
<p>3. In features/support/env.rb comment out &#8220;require &#8216;spec/expectations&#8217;&#8221; so it looks like:</p>
<pre># require 'spec/expectations'</pre>
<p>At this point &#8216;cucumber features&#8217; should work and should return a failed test for adding two numbers.</p>
<p>Also at this point, if you create any models, then bare specs for them will be created in the &#8216;spec/models&#8217; folder.</p>
<p>Please feel free to leave questions or comments if you&#8217;ve got a different way of setting things up on Padrino.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codebelay.com/blog/2011/07/26/setting-up-cucumber-and-rspec-on-padrino/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How To Test Image Uploads With MiniTest On Padrino</title>
		<link>http://www.codebelay.com/blog/2011/07/22/how-to-test-image-uploads-with-minitest-on-padrino/</link>
		<comments>http://www.codebelay.com/blog/2011/07/22/how-to-test-image-uploads-with-minitest-on-padrino/#comments</comments>
		<pubDate>Fri, 22 Jul 2011 17:11:04 +0000</pubDate>
		<dc:creator>barce</dc:creator>
				<category><![CDATA[How-To]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[WebApps]]></category>

		<guid isPermaLink="false">http://www.codebelay.com/blog/?p=1127</guid>
		<description><![CDATA[This week I got to pair program with Oren Golan whose last high profile job was at Border Stylo. While there, he wrote a series of excellent blog posts that I highly recommend reading. The one that caught my eye was his post on MiniTest, that&#8217;s a lighter version of RSpec. We created a Padrino [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>This week I got to pair program with <a href="https://github.com/oren">Oren Golan</a> whose last high profile job was at <a href="http://borderstylo.com">Border Stylo</a>. While there, he wrote <a href="http://borderstylo.com/posts_by/oren-golan">a series of excellent blog posts</a> that I highly recommend reading. The one that caught my eye was <a href="http://borderstylo.com/posts/251-minitest-rubys-new-bff">his post on MiniTest</a>, that&#8217;s a lighter version of RSpec.</p>
<p>We created a <a href="http://www.padrinorb.com/">Padrino</a> app that uses the <a href="http://sequel.rubyforge.org/">Sequel</a> gem as an ORM for SQLite.</p>
<p>We tested a raw file upload and the uploading capabilities of <a href="https://github.com/jnicklas/carrierwave">Carrierwave</a>.</p>
<p>The working test is on <a href="http://github.com/barce/test">http://github.com/barce/test</a>, and to run it just clone the repo and type the following:</p>
<div style="background: #000; color: #fff; padding: 5px;">
cd test<br />
bundle install<br />
padrino sq:migrate:up</p>
</div>
<p>Here&#8217;s the test:</p>
<div style="background: #000; color: #fff; padding: 5px;">
<pre style='background: #000; color: #fff'>
# put this into the test/test.rb file
require 'rubygems'
gem 'minitest'
require 'minitest/autorun'
require 'rack/test'
require '../config/boot.rb'

class TestManualBadgeType < MiniTest::Unit::TestCase
  include Rack::Test::Methods

  FILE2UPLOAD  = "/Users/jimbarcelona/pink-pony.jpg"
  UPLOADEDFILE = "/Users/jimbarcelona/repos/oren/forks/test/test/pink-pony.jpg"

  def app() Test end

  def setup
    if File.exist?(UPLOADEDFILE)
      File.delete(UPLOADEDFILE)
    end
  end

  def test_opload
    post '/', 'file' => Rack::Test::UploadedFile.new(FILE2UPLOAD, 'image/jpeg')

    assert_equal last_response.status, 201
  end

  def test_carrierwave_201
    post '/carrierwave', 'file' => Rack::Test::UploadedFile.new(FILE2UPLOAD, 'image/jpeg')

    assert_equal last_response.status, 201
  end

  def test_carrierwave_file_exist
    post '/carrierwave', 'file' => Rack::Test::UploadedFile.new(FILE2UPLOAD, 'image/jpeg')
    assert_equal last_response.status, 201
  end
end
</pre>
</div>
<p>Now you&#8217;re ready to run the test upload:</p>
<div style="background: #000; color: #fff; padding: 5px;">
cd test<br />
ruby test.rb
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.codebelay.com/blog/2011/07/22/how-to-test-image-uploads-with-minitest-on-padrino/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I lost 7 pounds in 2 weeks with the 4 Hour Body Slow Carb Diet</title>
		<link>http://www.codebelay.com/blog/2011/04/13/i-lost-7-pounds-in-2-weeks-with-the-4-hour-body-slow-carb-diet/</link>
		<comments>http://www.codebelay.com/blog/2011/04/13/i-lost-7-pounds-in-2-weeks-with-the-4-hour-body-slow-carb-diet/#comments</comments>
		<pubDate>Wed, 13 Apr 2011 19:17:15 +0000</pubDate>
		<dc:creator>barce</dc:creator>
				<category><![CDATA[books]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[4hourbody]]></category>
		<category><![CDATA[fourhourbody]]></category>
		<category><![CDATA[slowcarbdiet]]></category>

		<guid isPermaLink="false">http://www.codebelay.com/blog/?p=1020</guid>
		<description><![CDATA[At the end of the LA marathon, I was a healthy 165, but my foot was busted. There&#8217;s a stress fracture on my 4th metatarsal on my left foot and I&#8217;ve got to keep it flat in a wooden boot until it heals. I can&#8217;t even swim, since the water would flex my foot. At [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>At the end of the LA marathon, I was a healthy 165, but my foot was busted. There&#8217;s a stress fracture on my 4th metatarsal on my left foot and I&#8217;ve got to keep it flat in a wooden boot until it heals. I can&#8217;t even swim, since the water would flex my foot.</p>
<p>At SxSW, I went to Tim Ferriss&#8217; talk on his new book, <a href="http://fourhourbody.com/">The Four Hour Body</a>. I didn&#8217;t feel I really needed the book, but when I ballooned to 172 in less than a week, that gave me pause.</p>
<p><strong>Weight on 3/28: 172<br />
Weight on 4/08: 165</strong></p>
<p>I didn&#8217;t work out except for doing some squats. On cheat days, which is Saturday for me, you can eat whatever and as much as you want: chocolate croissants, pringles, ABB Carboforce, protein drinks, steaks, ice cream. I love Saturdays.</p>
<p>Here&#8217;s the diet I followed and each meal except for the sardines and carrots made me full. I spent about $50 on groceries and $50 on lunch per week. $100 / week isn&#8217;t bad on a mostly protein diet.</p>
<pre>
3/28 - Monday
Breakfast: steak, 3 eggs, spinach
Lunch: chipotle bowl - no frills
Dinner: Chicken, Mixed veggies, Black Beans, Yogurt (nono)

3/29 - Tuesday
Breakfast: steak, 3 eggs, spinach, glass of milk (nono)
Lunch: chipotle bowl - sour cream and cheese (nono)
Dinner: swordfish steak, mixed veggies, black beans, yogurt (nono)

3/30 - Wednesday
Breakfast: 3 eggs, spinach, swordfish steak
Lunch: chipotle bowl with salsa and avocado
Dinner: chicken, mixed veggies, black beeans

3/31 - Thursday
Breakfast: 3 eggs, beef steak, spinach
Lunch: tofu, asparagus, veggie chili, brocoli
2nd lunch: carrots, sardines
Dinner: red wine (free), swordfish, mixed veggies

4/1 - Friday
Breakfast: spinach, swordfish
Lunch: chipotle bowl with salsa and avocado
2nd lunch: carrots, sardines
Dinner: red wine, steak, mixed veggies

4/2 - Saturday
Went nuts and ate all day

4/3 - Sunday
Breakfast: 3 eggs, chicken breast
Lunch: steak chipotle bowl - salsa, lettuce &#038; guac
Dinner: lentils, chicken breast

4/4 - Monday
Breakfast: 3 eggs, chicken breast
Lunch: steak chipotle bowl - salsa, lettuce &#038; guac
Dinner: lentils, chicken breast

4/5 - Tuesday
Breakfast: 3 eggs, lentils, chicken
Lunch: steak chipotle bowl - salsa, lettuce &#038; guac
Dinner: salmon, asparagus, beans , redwine

4/6 - Wednesday
Breakfast: lentils, spinach, chicken
Lunch: barbacoa chipotle bowl - salsa, lettuce &#038; guac
Dinner: blackbeans, mixed veggies, steak

4/7 - Thursday
Breakfast: spinach, lentils, steak
Lunch: steak chipotle bowl - salsa, lettuce &#038; guac
Dinner: steak, blackbeans, mixed veggies

4/8 - Friday
Breakfast: steak
Lunch: salmon, asparagus, beans , redwine
Dinner: steak, blackbeans, mixed veggies
</pre>
<p>I lost a surprising 4 lbs. the first week, but only lost 3 lbs. the second week. I&#8217;m pretty sure the 3 lbs. was due to not having the 2nd lunch as recommended. I also measured my body fat with calipers: 24% &#8211; 20% body fat.</p>
<p>The first week was pretty difficult but the 2nd week it&#8217;s been no problem at all. I can also tell when I&#8217;m in ketosis because there&#8217;s a slight metallic taste to my mouth and my breathe seems sweeter to the nose.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codebelay.com/blog/2011/04/13/i-lost-7-pounds-in-2-weeks-with-the-4-hour-body-slow-carb-diet/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>What You Missed At WordCamp LA</title>
		<link>http://www.codebelay.com/blog/2010/09/13/what-you-missed-at-wordcamp-la/</link>
		<comments>http://www.codebelay.com/blog/2010/09/13/what-you-missed-at-wordcamp-la/#comments</comments>
		<pubDate>Mon, 13 Sep 2010 08:33:57 +0000</pubDate>
		<dc:creator>barce</dc:creator>
				<category><![CDATA[command-line]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.codebelay.com/blog/?p=925</guid>
		<description><![CDATA[Here&#8217;s what you missed: Installing nginx with php-fpm with varnish on the front end will make your WordPress install fly 50 times faster. If you&#8217;re using apt-get, you can just use: apt-get install php-fpm Or try this guide on how-to forge. Here&#8217;s the install process I used using PHP 5.3.3 on OS X: sudo ./configure [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Here&#8217;s what you missed:</p>
<p>Installing nginx with php-fpm with varnish on the front end will make your WordPress install fly 50 times faster.</p>
<p>If you&#8217;re using apt-get, you can just use:<br />
apt-get install php-fpm<br />
Or <a href="http://www.howtoforge.com/installing-php-5.3-nginx-and-php-fpm-on-ubuntu-debian">try this guide</a> on how-to forge.<br />
Here&#8217;s the install process I used using PHP 5.3.3 on OS X:</p>
<div style="padding: 5px 5px 5px 5px; color: #fff; background: #000; font-family: Courier;">
<pre style="background: #000; color: #fff;">
sudo ./configure --prefix=/usr/local --enable-fpm \
  --with-fpm-user=daemon --with-fpm-group=daemon \
  --with-mcrypt --with-mysql=/usr/local/mysql --with-zlib \
  --enable-mbstring --disable-pdo --with-curl --disable-debug \
  --disable-rpath --enable-inline-optimization --with-bz2
  --with-zlib --enable-sockets --enable-sysvsem \
  --enable-sysvshm --enable-pcntl --enable-mbregex \
  --with-mhash --enable-zip --with-pcre-regex \
  --with-iconv=shared,/usr
make &#038;&#038; make install
cp sapi/fpm/php-fpm.conf /usr/local/etc/php-fpm.conf
# edit php-fpm.conf with the right paths
cp sapi/fpm/php-fpm /usr/local/sbin/php-fpm
cp init.d.php-fpm /etc/init.d/php-fpm
/etc/init.d/php-fpm start
</pre>
</div>
<p>If you get an error message it&#8217;s probably because you didn&#8217;t go through the config to set things up.</p>
<p>The next part is nginx.</p>
<div style="padding: 5px 5px 5px 5px; color: #fff; background: #000; font-family: Courier;">
<pre style="background: #000; color: #fff;">
./configure --prefix=/usr/local/nginx &#038;&#038; make &#038;&#038; make install
</pre>
</div>
<p>My conf/nginx.con looks like <a href="http://www.codebelay.com/nginx.conf.txt">this</a>. My sites-enabled/default.conf looks like <a href="http://www.codebelay.com/default.conf.txt">this</a>. My conf/fastcgi_params file is <a href="http://www.codebelay.com/fastcgi_params.txt">here</a>.</p>
<p>I just start nginx with /usr/local/nginx/sbin/nginx and I&#8217;m good to go.</p>
<p>The quote that stuck with me the most was what <a href="http://twitter.com/JoshHighland">Josh Highland</a> said about caching:</p>
<p>&#8220;You should use WordPress Cache Plugins. It&#8217;s like printing money. It&#8217;s free!&#8221;</p>
<p>For adding your own contact form, I learned about <a href="http://wordpress.org/extend/plugins/contact-form-7/">Contact Form 7</a>. You can ditch WuFoo if you have this configured on your WordPress.</p>
<p>There&#8217;s also <a href="http://wordpress.org/extend/plugins/pods/">Pods</a>, which is like contact-form-7 except it&#8217;s a whole framework for creating your own content types and making them show up where you want.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codebelay.com/blog/2010/09/13/what-you-missed-at-wordcamp-la/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>4 Things I learned from blogging 11 days straight</title>
		<link>http://www.codebelay.com/blog/2010/09/02/4-things-i-learned-from-blogging/</link>
		<comments>http://www.codebelay.com/blog/2010/09/02/4-things-i-learned-from-blogging/#comments</comments>
		<pubDate>Thu, 02 Sep 2010 20:17:18 +0000</pubDate>
		<dc:creator>barce</dc:creator>
				<category><![CDATA[blogging]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[TechBiz]]></category>

		<guid isPermaLink="false">http://www.codebelay.com/blog/?p=918</guid>
		<description><![CDATA[I said I was going to blog for 6 months straight but last night after a streak of 11 days I stopped. I was at home, and after I moved my things into my new flat, I just passed out. I&#8217;ve been plain tired with the start-up, planning for the CSS meet up, an early [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>I said I was going to blog for 6 months straight but last night after a streak of 11 days I stopped.</p>
<p>I was at home, and after I moved my things into my new flat, I just passed out. I&#8217;ve been plain tired with the start-up, planning for the CSS meet up, an early and long drive from SF to LA, and a touch of jet lag from returning back from NYC.</p>
<p>But even though the project is a fail, here is what I learned:</p>
<ul>
<li>I learned that you can blog from your smartphone using <a href="http://ios.wordpress.org/">the WordPress App</a>. This really helped while I was in Brooklyn and didn&#8217;t have my laptop.</li>
<li>Weekends really suck for a tech blog. My traffic just dropped.</li>
<li>Keyword focused-posts and quality posts grow traffic. There is no way around this.</li>
<li>A really good blog post can take up 4 hours of your day.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.codebelay.com/blog/2010/09/02/4-things-i-learned-from-blogging/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Working on the Road</title>
		<link>http://www.codebelay.com/blog/2010/08/27/working-on-the-road/</link>
		<comments>http://www.codebelay.com/blog/2010/08/27/working-on-the-road/#comments</comments>
		<pubDate>Sat, 28 Aug 2010 01:16:18 +0000</pubDate>
		<dc:creator>barce</dc:creator>
				<category><![CDATA[How-To]]></category>
		<category><![CDATA[TechBiz]]></category>
		<category><![CDATA[evdo]]></category>
		<category><![CDATA[telecommuting]]></category>
		<category><![CDATA[wifi]]></category>

		<guid isPermaLink="false">http://www.codebelay.com/blog/?p=902</guid>
		<description><![CDATA[Here&#8217;s how my Friday worked out. 5:30 am PDT Wake Up 5:45 am PDT Catch a Cab to SFO 6:25 am to 6:55 am PDT Work E-mails 7:25 am PDT Wheels up SFO 8:30 am Arrive LAX 8:30 am &#8211; 8:55 am Get Ticket for NYC &#038; go through security again 9:00 am &#8211; 10:00 [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Here&#8217;s how my Friday worked out.</p>
<p>5:30 am PDT Wake Up<br />
5:45 am PDT Catch a Cab to SFO </p>
<p>6:25 am to 6:55 am PDT Work E-mails</p>
<p>7:25 am PDT Wheels up SFO<br />
8:30 am Arrive LAX<br />
8:30 am &#8211; 8:55 am Get Ticket for NYC &#038; go through security again<br />
9:00 am &#8211; 10:00 am Log into IM &#038; plan out day</p>
<p>10:00 am &#8211; noon Make the database faster by sending search traffic to prod02, adding indexes where needed and optimizing table. </p>
<p>12:00 &#8211; 12:20 lunch at airport bk</p>
<p>12:40 &#8211; 14:00 Work on Android bug<br />
14:00 &#8211; 14:55 compare SQL_CACHE vs. memcached.  Use both? Where?</p>
<p>14:55 &#8211; 15:25 Board Flight; wheels up NYC.</p>
<p>15:25 &#8211; 15:45 Internet Blackout<br />
15:45 &#8211; 18:00 Work on hosting issue for cluent &#038; registration for business users</p>
<p>Hours worked: 8<br />
internet outage: 20 minutes<br />
miles Traveled: 3,124<br />
Hours awake: 19.5</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codebelay.com/blog/2010/08/27/working-on-the-road/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Commands I Use Frequently</title>
		<link>http://www.codebelay.com/blog/2010/08/26/commands-i-use-frequently/</link>
		<comments>http://www.codebelay.com/blog/2010/08/26/commands-i-use-frequently/#comments</comments>
		<pubDate>Fri, 27 Aug 2010 04:33:44 +0000</pubDate>
		<dc:creator>barce</dc:creator>
				<category><![CDATA[command-line]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://www.codebelay.com/blog/?p=894</guid>
		<description><![CDATA[Here&#8217;s a list of commands I use frequently, where the first number represents the number of times I used that command today: 86 git &#8211; the best version control software ever 59 cd &#8211; used to change directories on the command-line 54 ls &#8211; used to list files in a directory 41 vim &#8211; when [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Here&#8217;s a list of commands I use frequently, where the first number represents the number of times I used that command today:</p>
<p>86	git &#8211; the best version control software ever<br />
59   cd &#8211; used to change directories on the command-line<br />
54	ls &#8211; used to list files in a directory<br />
41	vim &#8211; when textmate just isn&#8217;t fast enough for moving and manipulating text I use this text editor<br />
24	grep &#8211; this is great for searching through code<br />
21	sudo &#8211; I use this for stopping and starting servers and anything that requires super user access</p>
<p>I figured this out by using the following:</p>
<div style="padding: 5px 5px 5px 5px; background: #000; color: #fff">
history | cut -c8-20 | sort > commands.txt
</div>
<p>I created the following script in Perl:</p>
<div style="padding: 5px 5px 5px 5px; background: #000; color: #fff">
#!/usr/bin/env perl</p>
<p>use strict;<br />
use warnings;</p>
<p>my %h_list = ();<br />
my @sorted = ();<br />
my @listed = ();</p>
<p>open(LS, &#8220;commands.txt&#8221;);<br />
while(<LS>) {<br />
  if ($_ =~ /(\w+)/) {<br />
    $h_list{$1}++;<br />
  }<br />
}</p>
<p>close(LS);</p>
<p>foreach my $key (keys %h_list)<br />
{<br />
  push @listed, $h_list{$key} . &#8220;\t&#8221; . $key;<br />
}</p>
<p>@sorted = sort { $b <=> $a } @listed;<br />
foreach (@sorted)<br />
{<br />
  print $_ . &#8220;\n&#8221;;<br />
}</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.codebelay.com/blog/2010/08/26/commands-i-use-frequently/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>3 Creative Ways to Recruit Developers</title>
		<link>http://www.codebelay.com/blog/2010/08/23/3-creative-ways-to-recruit-developers/</link>
		<comments>http://www.codebelay.com/blog/2010/08/23/3-creative-ways-to-recruit-developers/#comments</comments>
		<pubDate>Mon, 23 Aug 2010 22:52:44 +0000</pubDate>
		<dc:creator>barce</dc:creator>
				<category><![CDATA[How-To]]></category>
		<category><![CDATA[Recruiting]]></category>
		<category><![CDATA[TechBiz]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[finding coders]]></category>
		<category><![CDATA[hr]]></category>
		<category><![CDATA[human resources]]></category>
		<category><![CDATA[recruitin]]></category>

		<guid isPermaLink="false">http://www.codebelay.com/blog/?p=868</guid>
		<description><![CDATA[Recruiting talented developers in this market is still extremely difficult. How should a recruiter find the talent (PHP, Ruby, MySQL, iPhone, .NET, Java) your clients need? I outline a few creative out of the box solutions below. Disclosure: I work as the lead developer at AppDevAndMarketing.com . This article in no way suggests we&#8217;ve used [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Recruiting talented developers in this market is still extremely difficult. How should a recruiter find the talent (PHP, Ruby, MySQL, iPhone, .NET, Java) your clients need? I outline a few creative out of the box solutions below.</p>
<p><strong>Disclosure</strong>: I work as the lead developer at <a href="http://appdevandmarketing.com/">AppDevAndMarketing.com</a> . This article in no way suggests we&#8217;ve used any of these methods.</p>
<p><strong>Update on 4/15/2011</strong>: Ya, I&#8217;ve had to resort to all these methods and they&#8217;ve worked for us. <img src='http://www.codebelay.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /> </p>
<p>1. Turn your project managers, account executives and marketers into coders. This is a fairly cheap investment with a high ROI. It is cheaper than paying out a bounty, and you already trust these folks. Send them to <a href="http://iphonebootcampnyc.com/blog8/registration/">iPhoneDev Bootcamp</a> now! Just be sure to prepare their machines for the development they&#8217;ll need to do. I tried this at a <a href="http://www.mccannsf.com/">previous place of employment</a> with great results! If you were trained by me and are reading this, please ask for a raise.</p>
<p>2. Look for places not so obvious. Use dating sites to find talent. Ya, I know, you haven&#8217;t used that <a href="http://www.match.com/">match.com</a> account in awhile, or have sworn of <a href="http://okaycupid.com/">okaycupid.com</a> or <a href="http://jdate.com/">JDate</a>, but guess what. For you bleeding edge types, try the iPhone, dating app, <a href="http://www.skout.com/">Skout</a>. Although s/he might not be the person of your dreams, s/he might have the talent you need. The key take away is to use unexpected social media spaces for recruiting. Don&#8217;t be sleazy or sly about it. A simple, &#8220;Hi, I read your profile. You seem very talented in X. I&#8217;d actually like to hire you. Coffee or drinks?&#8221;</p>
<p>3. Use IRC. If you&#8217;re smart enough to do this, you probably shouldn&#8217;t be recruiting, but IRC is this best place to find pure, raw talent. Details on how to get onto IRC can be found on Google, but the best guide for newbies can be<a href="http://www.multiplaygameservers.com/help/irc-guide/"> found on this gaming site</a>.</p>
<p>There&#8217;s one more special place that I haven&#8217;t revealed that will guarantee you top talent every time. Leave a comment and I&#8217;ll contact you with that exclusive place to find developers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codebelay.com/blog/2010/08/23/3-creative-ways-to-recruit-developers/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>4 Ways to Avoid Foursquare Fatigue</title>
		<link>http://www.codebelay.com/blog/2010/07/23/4-ways-to-avoid-foursquare-fatigue/</link>
		<comments>http://www.codebelay.com/blog/2010/07/23/4-ways-to-avoid-foursquare-fatigue/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 23:00:28 +0000</pubDate>
		<dc:creator>barce</dc:creator>
				<category><![CDATA[How-To]]></category>

		<guid isPermaLink="false">http://www.codebelay.com/blog/?p=814</guid>
		<description><![CDATA[As a social media expert, I&#8217;ve noticed a severe decline in Foursquare check-ins by innovators and early adopters. This phenomena, which I&#8217;m calling Foursquare Fatigue, can be avoided by following these 4 tips. 1. Use two phones on different carriers. We all know that AT&#038;T&#8217;s 3G blows on the iPhone, so carry a spare phone [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>As a social media expert, I&#8217;ve noticed a severe decline in Foursquare check-ins by innovators and early adopters. </p>
<p>This phenomena, which I&#8217;m calling Foursquare Fatigue, can be avoided by following these 4 tips.</p>
<p>1. Use two phones on different carriers. We all know that AT&#038;T&#8217;s  3G blows on the iPhone, so carry a spare phone like a Blackberry running Verizon. That way you get all your bases covered. Can&#8217;t check-in with the iPhone? Check-in with the Blackberry. Now you&#8217;re stylin&#8217;.</p>
<p><a href="http://www.codebelay.com/blog/wp-content/uploads/2010/07/foursquare.jpg"><img src="http://www.codebelay.com/blog/wp-content/uploads/2010/07/foursquare-300x225.jpg" alt="" title="foursquare" width="300" height="225" class="aligncenter size-medium wp-image-815" /></a></p>
<p>2. You don&#8217;t have to check in all the time. Ya, getting the mayorship for Starbucks is huge and forces you to check-in 5 times a day, but after that 5th cup o&#8217;joe there&#8217;s a diminishing point of return. Why not save money, not check-in. In fact, don&#8217;t go to Starbucks.</p>
<p>3. Check-in with Yelp. Ya, I know. It&#8217;s pretty pointless because you don&#8217;t get the Foursquare deals, but there&#8217;s been less of a reliability issue with Yelp where check-ins are currently faster and less buggy than Foursquare.</p>
<p>4. I have Stalin, who said, &#8220;No person; no problem,&#8221; to thank for this one. The discovery I made is this: No Foursquare, no foursquare fatigue.&#8221; Logic is magic.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codebelay.com/blog/2010/07/23/4-ways-to-avoid-foursquare-fatigue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 1.094 seconds -->

