<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

  <title>BlissOfBeing TechBlog</title>
  <link href="http://blissofbeing.com/atom.xml" rel="self"/>
  <link href="http://blissofbeing.com/"/>
  <updated>2011-09-15T21:39:59-07:00</updated>
  <id>http://blissofbeing.com/</id>
  <author>
    <name>Wayne Hoover</name>
    
  </author>

  
  <entry>
    <title>Websites I Worked on in 2011</title>
    <link href="http://blissofbeing.com/blog/2011/09/15/websites-i-worked-on-in-2011/"/>
    <updated>2011-09-15T21:01:00-07:00</updated>
    <id>http://blissofbeing.com/blog/2011/09/15/websites-i-worked-on-in-2011</id>
    <content type="html">&lt;p&gt;Below is a list of website I produced in 2011:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://bighappyday.com&quot;&gt;bighappyday.com&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://claytonjosephscott.com&quot;&gt;claytonjosephscott.com&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://luminariesmusic.com&quot;&gt;luminariesmusic.gob&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://lufampro.com&quot;&gt;lufampro.com&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://annamoore.me&quot;&gt;annamoore.me&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://brandonaki.com&quot;&gt;brandonaki.com&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://sabrinatully.com&quot;&gt;sabrinatully.com&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://luckyrosebuilders.com&quot;&gt;luckyrosebuilders.com&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://malickdiouck.com&quot;&gt;malickdiouck.com&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://stonefreeclothing.com/shop&quot;&gt;stonefreeclothing.com/shop&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://www.stantonassoc.com&quot;&gt;stantonassoc.com&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://www.eliasarchitecture.com&quot;&gt;eliasarchitecture.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;See &lt;a href=&quot;http://waynehoover.com/creative&quot;&gt;waynehoover.com/creative&lt;/a&gt; for more of my portfolio.&lt;/p&gt;
</content>
  </entry>
  
  <entry>
    <title>Upload Directly to Amazon S3 With jQuery</title>
    <link href="http://blissofbeing.com/blog/2011/09/15/upload-directly-to-amazon-s3-with-jquery/"/>
    <updated>2011-09-15T20:52:00-07:00</updated>
    <id>http://blissofbeing.com/blog/2011/09/15/upload-directly-to-amazon-s3-with-jquery</id>
    <content type="html">&lt;p&gt;I wrote a simple Sinatra app to upload files directly to Amazon S3 using SWFUpload, check it out on &lt;a href=&quot;http://github.com/BlissOfBeing/Sinatra-S3-Direct-Upload&quot;&gt;GitHub&lt;/a&gt;
Most of the inspiration (and a lot of the core code) came from &lt;a href=&quot;http://tnux.net/2010/01/17/swfupload-direct-to-amazon-s3-in-ruby-on-rails&quot;&gt;Tom Pesman&amp;#8217;s post&lt;/a&gt; on how to do the same thing, just in rails.
I ported Tom&amp;#8217;s code to use jQuery and the &lt;a href=&quot;http://github.com/ifunk/swfupload-jquery-plugin&quot;&gt;jQuery swfupload plugin&lt;/a&gt;. I also converted most of the views to HAML.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A couple of notes about the code:&lt;/strong&gt;
The ruby code I borrowed from Tom used a couple Rails specific helper functions like &amp;#8216;hours&amp;#8217; but thankfully these helper functions are all easily accessible in sinatra by including the active_support gem.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Customizing the call back:&lt;/strong&gt;
The javascript now simply POSTs to /upload with the file name uploaded as the data. You will probably want to change this function to pass the whole object, and modify your controller to suite your needs.&lt;/p&gt;

&lt;p&gt;Also, you must put the &lt;a href=&quot;https://gist.github.com/635692&quot;&gt;crossdomain.xml&lt;/a&gt; file in the root of your S3 Bucket and give it read privileges.&lt;/p&gt;

&lt;p&gt;This is my first open source contribution! If you have any questions, ideas on how to make the code better, or even feature requests let me know! Its pretty bare bones right now, maybe I&amp;#8217;ll add some styling and some progress indicators later.&lt;/p&gt;

&lt;p&gt;The Sinatra App is &lt;a href=&quot;http://github.com/BlissOfBeing/Sinatra-S3-Direct-Upload&quot;&gt;available on github&lt;/a&gt;. It is usses by these libraries:&lt;/p&gt;

&lt;p&gt;Ruby:
sinatra
active_support/core_ext
base64&lt;/p&gt;

&lt;p&gt;Javascript:
jQuery
&lt;a href=&quot;http://github.com/ifunk/swfupload-jquery-plugin&quot;&gt;jQuery SWFUpload&lt;/a&gt;
&lt;a href=&quot;http://www.swfupload.org&quot;&gt;SWFUpload&lt;/a&gt;&lt;/p&gt;
</content>
  </entry>
  
  <entry>
    <title>Modified Dvorak Keyboard: I U Switch</title>
    <link href="http://blissofbeing.com/blog/2011/09/15/modified-dvorak-keyboard-i-u-switch/"/>
    <updated>2011-09-15T20:44:00-07:00</updated>
    <id>http://blissofbeing.com/blog/2011/09/15/modified-dvorak-keyboard-i-u-switch</id>
    <content type="html">&lt;p&gt;To make the Dvorak keyboard layout even faster, and to take a que from the Colemak layout, I have created a modified Dvorak keyboard layout.&lt;/p&gt;

&lt;p&gt;&amp;#8216;I&amp;#8217; is used far more than &amp;#8216;U&amp;#8217; so it makes since for me to have I be where U currently is on the Dvorak layout, i.e. right under the left forfinger on the home row.&lt;/p&gt;

&lt;p&gt;It took me about a week and a half of using this new layout until I was up to my old speed on the official Dvorak layout. I really like this layout, I move my fingers even less now and type at the same speed!&lt;/p&gt;

&lt;p&gt;If you are interested here are the layout files for Mac and PC:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;For Mac:&lt;/strong&gt;
Download this file &lt;a href=&quot;http://blissofbeing.com/Dvorak-ItoU.keylayout.zip&quot;&gt;Dvorak-ItoU Mac&lt;/a&gt;
Place this in /Library/Keyboard Layouts/ and then select it in Settings -&gt; International.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;For PC&lt;/strong&gt;
Download this file &lt;a href=&quot;http://blissofbeing.com/dvkiu.zip&quot;&gt;Dvorak-ItoU PC&lt;/a&gt;
Open the .exe, it should install fine (Note Vista users might have to run the .exe in XP mode)&lt;/p&gt;

&lt;p&gt;Thanks to &lt;a href=&quot;http://www.codeaxe.co.uk/dvorak/DDvorak.aspx&quot;&gt;Code Axe&lt;/a&gt; for the inspiration and the tutorial on how to get the custom keyboard working on a PC.&lt;/p&gt;

&lt;p&gt;Enjoy!&lt;/p&gt;
</content>
  </entry>
  
  <entry>
    <title>How to Install APC on a Fresh Ubuntu Install</title>
    <link href="http://blissofbeing.com/blog/2011/09/13/how-to-install-apc-on-a-fresh-ubuntu-install/"/>
    <updated>2011-09-13T22:43:00-07:00</updated>
    <id>http://blissofbeing.com/blog/2011/09/13/how-to-install-apc-on-a-fresh-ubuntu-install</id>
    <content type="html">&lt;p&gt;APC speeds up PHP, and will be built into php6. But before then here is how to install APC on a freshly installed Ubuntu box:&lt;/p&gt;

&lt;figure role=code&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre class=&quot;line-numbers&quot;&gt;&lt;span class=&#8217;line&#8217;&gt;1&lt;/span&gt;
&lt;span class=&#8217;line&#8217;&gt;2&lt;/span&gt;
&lt;span class=&#8217;line&#8217;&gt;3&lt;/span&gt;
&lt;span class=&#8217;line&#8217;&gt;4&lt;/span&gt;
&lt;span class=&#8217;line&#8217;&gt;5&lt;/span&gt;
&lt;span class=&#8217;line&#8217;&gt;6&lt;/span&gt;
&lt;span class=&#8217;line&#8217;&gt;7&lt;/span&gt;
&lt;span class=&#8217;line&#8217;&gt;8&lt;/span&gt;
&lt;span class=&#8217;line&#8217;&gt;9&lt;/span&gt;
&lt;span class=&#8217;line&#8217;&gt;10&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&#8217;code&#8217; width=&#8217;100%&#8217;&gt;&lt;pre&gt;&lt;code class=&#8221;&gt;&lt;div class=&#8217;line&#8217;&gt;apt-get update
&lt;/div&gt;&lt;div class=&#8217;line&#8217;&gt;apt-get install libpcre3-dev #an APC dependency
&lt;/div&gt;&lt;div class=&#8217;line&#8217;&gt;apt-get install php5-cli
&lt;/div&gt;&lt;div class=&#8217;line&#8217;&gt;apt-get install php5-dev
&lt;/div&gt;&lt;div class=&#8217;line&#8217;&gt;wget http://pear.php.net/go-pear.phar #downloading pear, the php package manager
&lt;/div&gt;&lt;div class=&#8217;line&#8217;&gt;php go-pear.phar #installing pear
&lt;/div&gt;&lt;div class=&#8217;line&#8217;&gt;pecl install apc
&lt;/div&gt;&lt;div class=&#8217;line&#8217;&gt;
&lt;/div&gt;&lt;div class=&#8217;line&#8217;&gt;vim /etc/php5/apache2/php.ini #edit your php.ini and add extension=apc.so
&lt;/div&gt;&lt;div class=&#8217;line&#8217;&gt;/etc/init.d/apache2 restart #restart apache to reload your php.ini file&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;&lt;/figure&gt;


&lt;p&gt;test by running &lt;code&gt;&amp;lt;?php phpinfo(); ?&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;APC is installed. Enjoy your speedup.&lt;/p&gt;
</content>
  </entry>
  
</feed>

