<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;AkAESHk_fyp7ImA9WhBVEkk.&quot;"><id>tag:blogger.com,1999:blog-1033933413127832310</id><updated>2013-04-17T18:31:49.747-07:00</updated><category term="osx software" /><category term="HACKED IPHONE 1.1.1" /><category term="How to piss off everyone with commit access" /><category term="FREEDOM FRUITCAKE" /><category term="PHONE FUN" /><category term="GETTING CLOSER" /><category term="FREAKY" /><category term="Then I am not interested." /><category term="STEAL MUSIC NOW" /><category term="OMG THIS IS SO FUNNY" /><category term="ENDLESS PC FUN" /><category term="Not an I-phone. It is an ip-hone." /><category term="really cool toys for sale" /><category term="&quot;Kink.com is a great company to work for.&quot; Resume" /><category term="I CANT WAIT" /><category term="WHAT HAPPENED TO THE INTERNETS" /><category term="I DO NOT HAVE THAT KIND OF MONEY" /><category term="HURTING WHALES FOR RESEARCH IS STUPID" /><category term="NOOOOO" /><category term="kaptcha captcha java &quot;open source&quot; resume" /><category term="ORGANIC FOOD FOR THE HOMELESS" /><category term="IT IS LIKE HAVING A NEW PHONE" /><category term="DONT CALL ME I WILL CALL YOU" /><category term="I AM SO CONFUSED" /><category term="I AM STRONGLY TYPED" /><category term="MORE FASCINATING THINGS ABOUT HOW HUMANS MESS UP THE THING THEY CREATED" /><category term="subetha smtp mina new io" /><category term="ducati slipper clutch aptc adler power torque install review" /><category term="THE MEANING OF 42" /><category term="Martha Groom Education Wikipedia Innovation" /><category term="I LOVE MY JOB" /><category term="iphone earphone issue quick fix" /><category term="software work java php rails" /><category term="HACKED IPHONE 1.1.3" /><category term="I LOVE MY COUNTRY" /><category term="NSFW funny movie" /><category term="DAVID IS BRILLIANT" /><category term="vroom vroom" /><category term="JAVA SUN BULLSHIT" /><category term="Hibernate is great. Sometimes a bit confusing." /><category term="BlogRush Sucks" /><category term="STOCKS" /><category term="amazing wheels" /><category term="PHP IS A HACK" /><category term="I WRITE CODE. IMPRESS ME." /><category term="SHIPPING COSTS EXTRA" /><category term="THE RIGHT ARE SO WRONG" /><category term="Resume" /><category term="WIRED IS TIRED" /><category term="Be a part of change. Don't give change." /><category term="mmmm TASTY" /><category term="THE STOCK MARKET IS FASCINATING" /><category term="merge conflicts suck" /><category term="I AM PROBABLY AN ATHIEST" /><category term="I AM NOW OLD FASHIONED" /><category term="BOYCOTT STUPIDITY" /><category term="GAP Information Technology has no clue" /><category term="subversion vendor branches howto" /><category term="Eye-Fi Magic" /><category term="SFW funny movie" /><category term="GOTTA LOVE /WIDGETS" /><category term="I AM SO SAD" /><category term="HOW OLD AM I?" /><category term="PEOPLE ARE IDIOTS" /><category term="PR" /><category term="THE GHOST IN THE COMPUTER" /><category term="I AM SUCH A GEEK" /><category term="HE SAID WHAT I WAS THINKING" /><category term="Google Notebook" /><category term="left leaning politics of personal opinion" /><category term="I WANT TO VOTE FOR SOMEONE WHO CAN WIN" /><category term="KICK ME AND I WONT FALL DOWN" /><category term="SIMPLY BRILLIANT" /><category term="DEPRESSION IS HERE" /><category term="so long and thanks for all the fish" /><category term="TWO WHEEL FUN" /><category term="SO CREEPY" /><title>An opinion on...</title><subtitle type="html">Software, Climbing, Art, Music, Comedy, Travel, Motorcycles, Bicycles, Chickens</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://lookfirst.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://lookfirst.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>Jon Stevens</name><uri>https://plus.google.com/111536601970188216986</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-78KvUnyifmg/AAAAAAAAAAI/AAAAAAAABj4/Y1q07praths/s512-c/photo.jpg" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>350</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/AnOpinionOn" /><feedburner:info uri="anopinionon" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;DkEHSHg7fCp7ImA9WhNSEUQ.&quot;"><id>tag:blogger.com,1999:blog-1033933413127832310.post-1181704089892614512</id><published>2012-10-24T14:52:00.002-07:00</published><updated>2012-10-25T12:50:39.604-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-10-25T12:50:39.604-07:00</app:edited><title>How to determine DKIM key length?</title><content type="html">I read &lt;a href="http://www.wired.com/threatlevel/2012/10/dkim-vulnerability-widespread/" rel="nofollow" target="_blank"&gt;this article in Wired&lt;/a&gt; about a researcher who figured out that Google was using a weak (512-bit) key for its implementation of DKIM. It turns out &lt;a href="http://blog.jgc.org/2010/06/facebooks-dkim-rsa-key-should-be.html" rel="nofollow" target="_blank"&gt;this is old news&lt;/a&gt; as someone did the same thing to Facebook.&lt;br /&gt;
&lt;br /&gt;
This got me wondering if the keys for our emailing service are long enough. But, how to easily determine the length of the key? Turns out it is kind of convoluted so I decided to repeat the info here for my own benefit when I forget about this later.&lt;br /&gt;
&lt;br /&gt;
Take your public DKIM key (probably from your DNS TXT record). It looks like this one from Google:&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;20120113._domainkey.google.com. 86400 IN TXT "k=rsa\; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAp5kQ31/aZDreQqR9/ikNe00ywRvZBFHod6dja+Xdui4C1y8SVrkUMQQLOO49UA+ROm4evxAru5nGPbSl7WJzyGLl0z8Lt+qjGSa3+qxf4ZhDQ2chLS+2g0Nnzi6coUpF8r" "juvuWHWXnzpvLxE5TQdfgp8yziNWUqCXG/LBbgeGqCIpaQjlaA6GtPbJbh0jl1NcQLqrOmc2Kj2urNJAW+UPehVGzHal3bCtnNz55sajugRps1rO8lYdPamQjLEJhwaEg6/E50m58BVVdK3KHvQzrQBwfvm99mHLALJqkFHnhyKARLQf8tQMy8wVtIwY2vOUwwJxt3e0KcIX6NtnjSSwIDAQAB"&lt;/pre&gt;
&lt;br /&gt;
Save the p= part of the TXT record into a file&amp;nbsp;(google.key)&amp;nbsp;that is line wrapped to around 78 columns &lt;i&gt;(yes, it needs to be line wrapped or the openssl command used below breaks)&lt;/i&gt;. Google seems to store their key in two parts so I removed the " " that is embedded in the middle of the blob above. You will also need the BEGIN/END PK block.&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAp5kQ31/aZDreQqR9/
ikNe00ywRvZBFHod6dja+Xdui4C1y8SVrkUMQQLOO49UA+ROm4evxAru5nGPbSl7WJzyGLl0z8Lt+
qjGSa3+qxf4ZhDQ2chLS+2g0Nnzi6coUpF8r
juvuWHWXnzpvLxE5TQdfgp8yziNWUqCXG/
LBbgeGqCIpaQjlaA6GtPbJbh0jl1NcQLqrOmc2Kj2urNJAW+
UPehVGzHal3bCtnNz55sajugRps1rO8lYdPamQjLEJhwaEg6/
E50m58BVVdK3KHvQzrQBwfvm99mHLALJqkFHnhyKARLQf8tQMy8wVtIwY2vOUwwJxt3e0KcIX6Ntn
jSSwIDAQAB
-----END PUBLIC KEY-----
&lt;/pre&gt;
&lt;br /&gt;
Then run &lt;code&gt;openssl rsa -noout -text -pubin &amp;lt; google.key&lt;/code&gt;
&lt;br /&gt;
&lt;br /&gt;
Which then outputs this chunk with your answer:
&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;Modulus (2048 bit):
    00:a7:99:10:df:5f:da:64:3a:de:42:a4:7d:fe:29:
    0d:7b:4d:32:c1:1b:d9:04:51:e8:77:a7:63:6b:e5:
    dd:ba:2e:02:d7:2f:12:56:b9:14:31:04:0b:38:ee:
    3d:50:0f:91:3a:6e:1e:bf:10:2b:bb:99:c6:3d:b4:
    a5:ed:62:73:c8:62:e5:d3:3f:0b:b7:ea:a3:19:26:
    b7:fa:ac:5f:e1:98:43:43:67:21:2d:2f:b6:83:43:
    67:ce:2e:9c:a1:4a:45:f2:b8:ee:be:e5:87:59:79:
    f3:a6:f2:f1:13:94:d0:75:f8:29:f3:2c:e2:35:65:
    2a:09:71:bf:2c:16:e0:78:6a:82:22:96:90:8e:56:
    80:e8:6b:4f:6c:96:e1:d2:39:75:35:c4:0b:aa:b3:
    a6:73:62:a3:da:ea:cd:24:05:be:50:f7:a1:54:6c:
    c7:6a:5d:db:0a:d9:cd:cf:9e:6c:6a:3b:a0:46:9b:
    35:ac:ef:25:61:d3:da:99:08:cb:10:98:70:68:48:
    3a:fc:4e:74:9b:9f:01:55:57:4a:dc:a1:ef:43:3a:
    d0:07:07:ef:9b:df:66:1c:b0:0b:26:a9:05:1e:78:
    72:28:04:4b:41:ff:2d:40:cc:bc:c1:5b:48:c1:8d:
    af:39:4c:30:27:1b:77:7b:42:9c:21:7e:8d:b6:78:
    d2:4b
Exponent: 65537 (0x10001)
&lt;/pre&gt;
&lt;img src="http://feeds.feedburner.com/~r/AnOpinionOn/~4/kTUL3_NLq9Q" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://lookfirst.com/feeds/1181704089892614512/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1033933413127832310&amp;postID=1181704089892614512" title="3 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/1181704089892614512?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/1181704089892614512?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnOpinionOn/~3/kTUL3_NLq9Q/how-to-determine-dkim-key-length.html" title="How to determine DKIM key length?" /><author><name>Jon Stevens</name><uri>https://plus.google.com/111536601970188216986</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-78KvUnyifmg/AAAAAAAAAAI/AAAAAAAABj4/Y1q07praths/s512-c/photo.jpg" /></author><thr:total>3</thr:total><feedburner:origLink>http://lookfirst.com/2012/10/how-to-determine-dkim-key-length.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEMMQ3w6fip7ImA9WhJVFkQ.&quot;"><id>tag:blogger.com,1999:blog-1033933413127832310.post-923324018630494914</id><published>2012-05-09T19:03:00.000-07:00</published><updated>2012-09-03T11:21:22.216-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-09-03T11:21:22.216-07:00</app:edited><title>Scrape webpages with node.js</title><content type="html">I recently had the task of scraping data from a website so I choose to use &lt;a href="http://nodejs.org/"&gt;node.js&lt;/a&gt; in order to get a bit more experience with it. After checking out a few different options for scraping, I finally settled on the&amp;nbsp;&lt;a href="https://github.com/chriso/node.io"&gt;node.io&lt;/a&gt; project which provided the most robust handling and configuration features that I could find.&lt;br /&gt;
&lt;br /&gt;
The hard part about scraping data from websites is coming up with ways to quickly and reliably pick out pieces from the document object model (DOM). These days, I spend a lot of time using the &lt;a href="http://api.jquery.com/category/selectors/"&gt;jQuery selector syntax&lt;/a&gt;&amp;nbsp;to develop &lt;a href="https://www.voo.st/"&gt;my site&lt;/a&gt;&amp;nbsp;which means that ideally I'd find a solution that can download a webpage and then provide me with jQuery-like functions and selectors to pick out pieces from the DOM. For this purpose, node.io uses a project called &lt;a href="https://github.com/harryf/node-soupselect"&gt;node-soupselect&lt;/a&gt; by default, but I found the selector syntax to be lacking. Thus, I layered another project called&amp;nbsp;&lt;a href="https://github.com/MatthewMueller/cheerio"&gt;cheerio&lt;/a&gt; on top. Whatever you do, don't use &lt;a href="https://github.com/tmpvar/jsdom"&gt;jsdom&lt;/a&gt;&amp;nbsp;as it is too slow and very strict in its processing of html.&lt;br /&gt;
&lt;br /&gt;
Node.io stands out from the rest of the projects because it&amp;nbsp;applies a 'jobs' approach to scraping. This is something that I used in&amp;nbsp;&lt;a href="https://github.com/lookfirst/jmxtrans"&gt;another project of mine&lt;/a&gt; and it worked out really well. In other words, you write a 'job' which gets executed and if there is a failure during the run of the job, you have control over what you do next (skip, fail, retry).&lt;br /&gt;
&lt;br /&gt;
In order to develop and debug your code, you shouldn't continually hit the website that you are scraping from. What I do is download the page I want to scrape and then run a local webserver to serve up the file. I found the python webserver the easiest to use as it is just one simple command, &lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;python -m SimpleHTTPServer 8000&lt;/span&gt; which will serve up files from whichever directory you run that command from.&lt;br /&gt;
&lt;br /&gt;
For debugging code, I recommend setting up the excellent &lt;a href="https://github.com/dannycoates/node-inspector"&gt;node-inspector&lt;/a&gt;&amp;nbsp;which will allow you to setup breakpoints in your code and step through to inspect objects as necessary, just like you do with web page JavaScript development. This becomes invaluable with JavaScript because the lack of types makes it hard to know what properties objects have. For logging output to the console so that I could keep track of the execution, I ended up with the &lt;a href="https://github.com/igo/nlogger"&gt;nlogger&lt;/a&gt; project which I wasn't super happy with, but worked well enough for this project.&lt;br /&gt;
&lt;br /&gt;
Writing your first job is easy and if you are a &lt;a href="http://coffeescript.org/"&gt;CoffeeScript&lt;/a&gt; (CS) fan, node.io will automatically compile your CS files for you. &amp;nbsp;If you aren't a CS fan, I apologize as my example is in CS. This simple job @get's a page and selects the &amp;lt;title&amp;gt; element:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="prettyprint"&gt;nodeio = require 'node.io'
cheerio = require 'cheerio'
log = require('nlogger').logger(module)

count = 0
class InputScraper extends nodeio.JobClass
    input: [476,1184]
    run: (inputId) -&amp;gt;
        @get "http://localhost:8000/#{inputId}.html", (err, data, headers) =&amp;gt;
            @exit(err) if err?
            try
                log.info('Started: {}', inputId)
                $ = cheerio.load(data)
                @emit($('title').text())
                log.info("(#{count}) Finished inputId: #{inputId}")
                count++
            catch error
                log.error('Error: {} : {}', inputId, error.stack)
                @skip()
    output: (data) -&amp;gt;
        console.log(data)
@class = InputScraper
@job = new InputScraper({spoof:true, max: 1})

nodeio.start(@job)&lt;/pre&gt;
&lt;br /&gt;
The 'run' function is called for each piece of input data in the array (476, 1184). @get() grabs the html page data. On success, @get() executes the callback function which loads the data into cheerio and @emit()'s the title. When the 'run' function is complete, node.io calls output which logs the @emit() data to the console.&lt;br /&gt;
&lt;br /&gt;
In my code, the line above the @emit(), I have another class function which I pass the $ cheerio object into which handles all of my parsing and the result is an object that I pass into @emit(). This allows me to re-use the InputScraper boilerplate to parse all sorts of different pages.&lt;br /&gt;
&lt;br /&gt;
I also run things directly with node 'nodeio.start(@job)' so that I can use the node-inspector more easily. This means that I also end up actually compiling the CS myself using my answer on &lt;a href="http://stackoverflow.com/a/7507987/253773"&gt;StackOverflow&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Obviously, this is a pretty simple example, but it should get you up and running with the node.io framework quickly. The speed of this is fairly impressive, on my desktop and home network, I was able to crawl and extract data from about 2000 webpages using max: 20 in about 1.5 minutes. Most of the time is spent downloading the pages and the parsing only takes a few milliseconds.&lt;img src="http://feeds.feedburner.com/~r/AnOpinionOn/~4/or9S5NPZoCM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://lookfirst.com/feeds/923324018630494914/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1033933413127832310&amp;postID=923324018630494914" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/923324018630494914?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/923324018630494914?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnOpinionOn/~3/or9S5NPZoCM/scrape-webpages-with-nodejs.html" title="Scrape webpages with node.js" /><author><name>Jon Stevens</name><uri>https://plus.google.com/111536601970188216986</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-78KvUnyifmg/AAAAAAAAAAI/AAAAAAAABj4/Y1q07praths/s512-c/photo.jpg" /></author><thr:total>1</thr:total><feedburner:origLink>http://lookfirst.com/2012/05/scrape-webpages-with-nodejs.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUYAQH8_eyp7ImA9WhJVFkQ.&quot;"><id>tag:blogger.com,1999:blog-1033933413127832310.post-1434760079488080732</id><published>2012-03-29T11:51:00.000-07:00</published><updated>2012-09-03T11:32:21.143-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-09-03T11:32:21.143-07:00</app:edited><title>The first comprehensive review of 22 online athletic event registration services. The Good, the Bad, and the Ugly.</title><content type="html">&lt;div class="separator" style="clear: both; text-align: -webkit-auto;"&gt;
&lt;span style="font-family: inherit; line-height: 22px;"&gt;Before we decided to build Voost, we spent a lot of time studying the myriad registration services already available online. There are a staggeringly large number of choices with wildly differing levels of sophistication. Comparing them is incredibly difficult, in no small part due to the fact that many of these websites seem to go out of their way to hide critical information like fees and disbursement schedules.&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: -webkit-auto;"&gt;
&lt;span style="font-family: inherit; line-height: 22px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: -webkit-auto;"&gt;
&lt;span style="font-family: inherit; line-height: 22px;"&gt;Over a hundred hours of tedious research, creating accounts, combing through documentation and FAQs, setting up test events, going through registration processes, calculating fees, etc. While we certainly have biases, we have tried to present the information as objectively as possible - this isn't a cheap marketing gimmick designed to show green checkboxes for us and red Xes for our competitors. We freely admit that there are features other services have that Voost does not (yet!) - and this information is reflected on the table.&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: -webkit-auto;"&gt;
&lt;span style="font-family: inherit; text-align: left;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: -webkit-auto;"&gt;
&lt;span style="font-family: inherit; line-height: 22px;"&gt;The table is not complete. We have left fields blank where we just couldn't figure out the answers (and believe me, we tried). Despite our best efforts, there may also be errors - again, some websites seem to deliberately befuddle attempts at objective comparison.&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: -webkit-auto;"&gt;
&lt;span style="font-family: inherit; line-height: 22px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: -webkit-auto;"&gt;
&lt;span style="font-family: inherit; line-height: 22px;"&gt;&lt;a href="https://www.voo.st/compare" target="_blank"&gt;Click the image to view the whole table.&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://www.voo.st/compare" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;" target="_blank"&gt;&lt;span style="color: black; font-family: inherit;"&gt;&lt;img border="0" height="300" src="http://2.bp.blogspot.com/-1sHM12AdrTY/T3Srk25zcLI/AAAAAAAAAtY/6QQTZu0EMBk/s400/compare.jpg" width="400" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;img src="http://feeds.feedburner.com/~r/AnOpinionOn/~4/3Qyzyx3r5Hg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://lookfirst.com/feeds/1434760079488080732/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1033933413127832310&amp;postID=1434760079488080732" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/1434760079488080732?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/1434760079488080732?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnOpinionOn/~3/3Qyzyx3r5Hg/first-comprehensive-review-of-22-online.html" title="The first comprehensive review of 22 online athletic event registration services. The Good, the Bad, and the Ugly." /><author><name>Jon Stevens</name><uri>https://plus.google.com/111536601970188216986</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-78KvUnyifmg/AAAAAAAAAAI/AAAAAAAABj4/Y1q07praths/s512-c/photo.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-1sHM12AdrTY/T3Srk25zcLI/AAAAAAAAAtY/6QQTZu0EMBk/s72-c/compare.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://lookfirst.com/2012/03/first-comprehensive-review-of-22-online.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEUGSH88eSp7ImA9WhRUFEU.&quot;"><id>tag:blogger.com,1999:blog-1033933413127832310.post-4394938962132376554</id><published>2012-01-25T01:03:00.000-08:00</published><updated>2012-01-25T01:03:49.171-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-25T01:03:49.171-08:00</app:edited><title>GitHire spam again...</title><content type="html">&lt;div class="tr_bq"&gt;
Just keeping this around for posterity since they deleted the HN posting and maybe others will want to see the truth if they are googling around for why you are getting spam from these guys.&lt;/div&gt;
&lt;br /&gt;
&lt;a href="http://news.ycombinator.com/item?id=3508655"&gt;http://news.ycombinator.com/item?id=3508655&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
I called them out for being a the spammers that they are, and I got a rather odd response:&lt;br /&gt;
&lt;blockquote&gt;
Hi LatchKey,&lt;br /&gt;I'm really sorry that we sent you that email. We just launched a little over a week ago with this crazy idea, and were extremely surprised at how quickly we were overwhelmed with orders.&lt;br /&gt;&lt;b&gt;We made a bad judgement call&lt;/b&gt; in sending some emails to people asking if anyone is interested in jobs.&lt;br /&gt;If it makes you feel any better, you can see that we aren't finding very many talented engineers, and we will likely need to refund a lot of money in a few days.&lt;br /&gt;We are honestly trying to be a great service for software developers and employers. We need feedback from people like yourself to learn how we can be the best service possible to reshape the hiring industry.&lt;br /&gt;We actually sent you an email, but never heard back. Please let us know if you're interested in continuing this discussion further on or off of a public message board.&lt;br /&gt;Thanks for keeping us honest.&lt;/blockquote&gt;
The HN thread goes on with a lot of people pointing out their own issues with GitHire and I have my response to the above quote here:&amp;nbsp;&lt;a href="http://news.ycombinator.com/item?id=3508750"&gt;http://news.ycombinator.com/item?id=3508750&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Sorry, but I just don't have any tolerance for spammers or people trying to profit off my profile without my permission.&lt;img src="http://feeds.feedburner.com/~r/AnOpinionOn/~4/eutMn7hPL0A" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://lookfirst.com/feeds/4394938962132376554/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1033933413127832310&amp;postID=4394938962132376554" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/4394938962132376554?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/4394938962132376554?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnOpinionOn/~3/eutMn7hPL0A/githire-spam-again.html" title="GitHire spam again..." /><author><name>Jon Stevens</name><uri>https://plus.google.com/111536601970188216986</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-78KvUnyifmg/AAAAAAAAAAI/AAAAAAAABj4/Y1q07praths/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://lookfirst.com/2012/01/githire-spam-again.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUcMRHw8eyp7ImA9WhRUEks.&quot;"><id>tag:blogger.com,1999:blog-1033933413127832310.post-7783712472039795349</id><published>2012-01-22T13:17:00.000-08:00</published><updated>2012-01-22T13:18:05.273-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-22T13:18:05.273-08:00</app:edited><title>Scalable System Architecture Comedy</title><content type="html">I was reading &lt;a href="http://www.oracle.com/technetwork/articles/dsl/white-php-part1-355135.html" target="_blank"&gt;Scaling a PHP MySQL Web Application&lt;/a&gt;, which is a technical document published on the Oracle website. As I was scrolling down the page, I saw the typical Load balancing &lt;i&gt;Figure 1&lt;/i&gt; that you always see in any PHP/MySql web application.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/-xYdl3k6hk2g/Txx4aEk2LzI/AAAAAAAAAsI/A_IUq2irAyA/s1600/355130.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="201" src="http://1.bp.blogspot.com/-xYdl3k6hk2g/Txx4aEk2LzI/AAAAAAAAAsI/A_IUq2irAyA/s320/355130.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
But then, as the article goes on, it gets more entertaining. It goes on to &lt;i&gt;Figure 3&lt;/i&gt;, showing Multiple MySQL Slaves, which is now 4 machines.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/-3Qw_t6IMem8/Txx4zFDbe_I/AAAAAAAAAsQ/CeJpp5n68tc/s1600/355132.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="301" src="http://3.bp.blogspot.com/-3Qw_t6IMem8/Txx4zFDbe_I/AAAAAAAAAsQ/CeJpp5n68tc/s320/355132.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
But wait, there's more. Now you need a dedicated database slave for each Web server, so the picture expands to even more lines and arrows in &lt;i&gt;Figure 4&lt;/i&gt;. A total of 8 machines.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/--zf8v6ZelQk/Txx5FBYM-SI/AAAAAAAAAsY/APdQxMRsmqU/s1600/355133.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="208" src="http://3.bp.blogspot.com/--zf8v6ZelQk/Txx5FBYM-SI/AAAAAAAAAsY/APdQxMRsmqU/s320/355133.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
As you keep scrolling, you get to &lt;i&gt;Figure 5&lt;/i&gt;. A real gem of an image. Arrows in every direction. Arrows jumping through other arrows. 8 machines, but a completely incomprehensible image.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/-f9bs_Fss-2E/Txx5ZTRniUI/AAAAAAAAAsg/RBNoA-Xl5Fk/s1600/355134.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="260" src="http://3.bp.blogspot.com/-f9bs_Fss-2E/Txx5ZTRniUI/AAAAAAAAAsg/RBNoA-Xl5Fk/s320/355134.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Ok, now we've randomized the connections between all the web servers and database slaves.&lt;br /&gt;
&lt;br /&gt;
Could you imagine one of these machines going down or throwing errors and trying to figure out which one it is or how it connects to the other machines?&lt;br /&gt;
&lt;br /&gt;
We all know that as systems grow, they get more complex. That said, if you draw an incomprehensible picture of your architecture, it is a clear sign that you are doing it wrong.&lt;img src="http://feeds.feedburner.com/~r/AnOpinionOn/~4/rhDIG2lFI4s" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://lookfirst.com/feeds/7783712472039795349/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1033933413127832310&amp;postID=7783712472039795349" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/7783712472039795349?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/7783712472039795349?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnOpinionOn/~3/rhDIG2lFI4s/scalable-system-architecture-comedy.html" title="Scalable System Architecture Comedy" /><author><name>Jon Stevens</name><uri>https://plus.google.com/111536601970188216986</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-78KvUnyifmg/AAAAAAAAAAI/AAAAAAAABj4/Y1q07praths/s512-c/photo.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-xYdl3k6hk2g/Txx4aEk2LzI/AAAAAAAAAsI/A_IUq2irAyA/s72-c/355130.png" height="72" width="72" /><thr:total>2</thr:total><feedburner:origLink>http://lookfirst.com/2012/01/scalable-system-architecture-comedy.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkQDSHs-fCp7ImA9WhRVF0U.&quot;"><id>tag:blogger.com,1999:blog-1033933413127832310.post-6326956821437534801</id><published>2012-01-16T23:12:00.000-08:00</published><updated>2012-01-16T23:12:59.554-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-16T23:12:59.554-08:00</app:edited><title>GitHire.com is a spammer</title><content type="html">I've kept up with all the recent HackerNew articles on &lt;a href="http://githire.com/"&gt;GitHire&lt;/a&gt;. They seemed like a rather interesting service because I believe that hosting your projects on a site like GitHub, is the best kind of resume a software engineer can have.&lt;br /&gt;
&lt;br /&gt;
That is, until they just spammed me with a whole list of completely random and unrelated jobs. I could understand it if I signed up to their site and requested spam (aka: LinkedIn), but I'm definitely not interested as I'm in the middle of starting my own company!&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://img.skitch.com/20120117-e6dgdrbg242wkw9thpc4a6ykr6.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="https://img.skitch.com/20120117-e6dgdrbg242wkw9thpc4a6ykr6.jpg" width="318" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
After checking out their site, I realized they've also got a &lt;a href="http://githire.com/profiles/lookfirst"&gt;profile up for me&lt;/a&gt;&amp;nbsp;that I had no hand in creating, nor desire having. Apologies if that link stops working, hopefully they will remove my information soon. Maybe I should be pissed that I'm only in their Top 50%? ;-)&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://img.skitch.com/20120117-q9dc6ey5p1g2bp869sapqjhdrb.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="267" src="https://img.skitch.com/20120117-q9dc6ey5p1g2bp869sapqjhdrb.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Since I wanted to remove myself, I clicked the "Opt out of Githire" link, which then takes me to a page on Github to authorize their application?!?&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://img.skitch.com/20120117-bhpx8pk8i31nq5h3wh3m4qj2iw.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="236" src="https://img.skitch.com/20120117-bhpx8pk8i31nq5h3wh3m4qj2iw.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Hell no, I'm not going to authorize your application, just so I can opt out of your website. That is wrong on so many levels.&lt;br /&gt;
&lt;br /&gt;
Anyway, I cc'd support@github on my response to 'Steve', so hopefully they will be going away soon. I can't see how GitHub is allowing this company to exist, when they so clearly violate their terms of service policy.&lt;img src="http://feeds.feedburner.com/~r/AnOpinionOn/~4/5MwAWUhCSkk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://lookfirst.com/feeds/6326956821437534801/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1033933413127832310&amp;postID=6326956821437534801" title="4 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/6326956821437534801?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/6326956821437534801?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnOpinionOn/~3/5MwAWUhCSkk/githirecom-is-spammer.html" title="GitHire.com is a spammer" /><author><name>Jon Stevens</name><uri>https://plus.google.com/111536601970188216986</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-78KvUnyifmg/AAAAAAAAAAI/AAAAAAAABj4/Y1q07praths/s512-c/photo.jpg" /></author><thr:total>4</thr:total><feedburner:origLink>http://lookfirst.com/2012/01/githirecom-is-spammer.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEMBSHwycSp7ImA9WhRUE0g.&quot;"><id>tag:blogger.com,1999:blog-1033933413127832310.post-2470836276826481089</id><published>2012-01-06T16:17:00.000-08:00</published><updated>2012-01-23T13:00:59.299-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-23T13:00:59.299-08:00</app:edited><title>Voost Logo</title><content type="html">&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://voo.st/" imageanchor="1" style="margin-left: 1em; margin-right: 1em;" target="_blank"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/-LEczkdSiYNs/TweO2wE_59I/AAAAAAAAAr8/nxAAg9ivoW4/s1600/voost-logo-medium.png" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/AnOpinionOn/~4/flZDLl5IzQc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://lookfirst.com/feeds/2470836276826481089/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1033933413127832310&amp;postID=2470836276826481089" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/2470836276826481089?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/2470836276826481089?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnOpinionOn/~3/flZDLl5IzQc/voost-logo.html" title="Voost Logo" /><author><name>Jon Stevens</name><uri>https://plus.google.com/111536601970188216986</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-78KvUnyifmg/AAAAAAAAAAI/AAAAAAAABj4/Y1q07praths/s512-c/photo.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-LEczkdSiYNs/TweO2wE_59I/AAAAAAAAAr8/nxAAg9ivoW4/s72-c/voost-logo-medium.png" height="72" width="72" /><thr:total>1</thr:total><feedburner:origLink>http://lookfirst.com/2012/01/voost-logo.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEcHQHY6eyp7ImA9WhRWF0s.&quot;"><id>tag:blogger.com,1999:blog-1033933413127832310.post-1401365448445350150</id><published>2012-01-05T02:57:00.000-08:00</published><updated>2012-01-05T03:13:51.813-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-05T03:13:51.813-08:00</app:edited><title>Going on 6 months now...</title><content type="html">Here is a bit of a status update for the new year:&lt;br /&gt;
&lt;br /&gt;
We've been working full steam ahead on &lt;a href="http://www.voo.st/"&gt;Voost&lt;/a&gt;,&amp;nbsp;going on 6 months now. In that timeframe, Jeff and I have accomplished an impressive amount of work for just two people. I've been putting in 10-15 hour days, seven days a week, of solid coding and Jeff has been doing the same. When he or I are out of town, we sit on Skype all day (and night) long working through any issues we have and bouncing ideas off each other. It has been a hugely productive cooperative development effort.&lt;br /&gt;
&lt;br /&gt;
I've become a much better UX/UI designer than when I started. It had been years since I had worked on this side of things and it has been a lot of fun picking it back up. I've also become an absolute expert in CoffeeScript, JQuery, Less and all of the other hot front end technologies that are out there. On the back end, we've integrated with &lt;a href="https://browserid.org/"&gt;BrowserID&lt;/a&gt; for secure sign in as an option to Facebook Connect. We've also switched to &lt;a href="http://objectify-appengine.googlecode.com/"&gt;Objectify 4&lt;/a&gt; which is the most advanced way to interact with the Google AppEngine database backend.&lt;br /&gt;
&lt;br /&gt;
The sad face news is we have nothing public to show for all of this hard work quite yet.&amp;nbsp;I could go on with a list of reasons, but they aren't really worth going over in detail. Suffice it to say, we just aren't ready to launch. I'd say that we are about 85-90% of the way there. Hopefully not more than about a month or so. For a few of my friends, what we have is enough and they are pressuring me to just put something out there, even if it is incomplete or buggy.&amp;nbsp;I'm pushing back on them.&lt;br /&gt;
&lt;br /&gt;
While I realize the cycling season is quickly picking up, I'm not in a huge hurry. Thankfully, after years of penny pinching, I have enough savings left to last me until we do launch. I really want to do this right. I want all of my cards on the table. I want people to wonder why nobody has done a site this good before. As cheesy as it sounds, I expect something close to perfection, even if it isn't absolutely feature complete. I think of how the original iPhone disrupted the cell phone market. We went from the clam shells and keyboards to touch screens overnight. It may sound silly, but I'm passionate about doing something like that with the event registration market.&lt;br /&gt;
&lt;br /&gt;
Even without all of the features that other companies have, our application is light years more advanced than any other registration product out there. I know this because I've seen their systems, analyzed everything wrong with them and spent the time to come up with a vastly better designed user experience. This takes a lot of hard work and this will be a huge differentiator in the marketplace for us. I'm very proud of that fact. It will be very expensive and nearly impossible for our competitors to hire enough engineering talent to catch up with us.&lt;br /&gt;
&lt;br /&gt;
A question I get a lot is: do you have any customers? Well, we don't. Not yet. I'm ok with that because I do have enough contacts and relationships to get the word out there to promoters. I think that people also really want this product, so when we launch, it will almost sell itself.&amp;nbsp;I can't tell you how many times I've heard 'I hate XYZ's excessive fees!' and 'This XYZ registration site is so difficult to use!'&lt;br /&gt;
&lt;br /&gt;
Besides, the cycling community, our initial target audience, is very small and I don't want to really start pressuring promoters to try out a system that isn't launched yet. I sure wouldn't trust anyone who doesn't have a live product. On the flip side, if I was a competitor, I'd be really scared of us right now. We are going to be &lt;i&gt;very&lt;/i&gt; hungry for customers and it will be that much harder to compete when we have a better product &lt;i&gt;with&lt;/i&gt; better pricing.&lt;br /&gt;
&lt;br /&gt;
A bit of good news is that we are close to having a great company logo. We put a bounty up on one of those crowd sourced websites full of designers and got a number of excellent designs, out of over a hundred submissions. We are in the process of choosing the final one over the next couple of days. I look forward to announcing it.&lt;br /&gt;
&lt;br /&gt;
Thanks for listening. Thanks to all my friends and family for the encouragement and advice. Thanks to my wife for putting up with me working all the time. Thanks to everyone who has offered to help. Expect another update soon. This is going to be a lot of fun!&lt;br /&gt;
&lt;br /&gt;&lt;img src="http://feeds.feedburner.com/~r/AnOpinionOn/~4/nyjpw_9YupU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://lookfirst.com/feeds/1401365448445350150/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1033933413127832310&amp;postID=1401365448445350150" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/1401365448445350150?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/1401365448445350150?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnOpinionOn/~3/nyjpw_9YupU/going-on-6-months-now.html" title="Going on 6 months now..." /><author><name>Jon Stevens</name><uri>https://plus.google.com/111536601970188216986</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-78KvUnyifmg/AAAAAAAAAAI/AAAAAAAABj4/Y1q07praths/s512-c/photo.jpg" /></author><thr:total>2</thr:total><feedburner:origLink>http://lookfirst.com/2012/01/going-on-6-months-now.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkAHSH89fCp7ImA9WhRXE04.&quot;"><id>tag:blogger.com,1999:blog-1033933413127832310.post-6487167764029034856</id><published>2011-12-18T13:19:00.000-08:00</published><updated>2011-12-19T14:45:39.164-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-12-19T14:45:39.164-08:00</app:edited><title>Don't use the jQuery .data() method. Use .attr() instead.</title><content type="html">I just discovered the hard way that the jQuery .data() method is horribly broken. By design, it attempts to convert whatever you put into it into a native type.&lt;br /&gt;
&lt;br /&gt;
I've got a template where I'm generating a button with a data-key element:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&amp;lt;button id="fooButton" data-key="1.4000"&amp;gt;Click me to edit&amp;lt;/button&amp;gt;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://jsfiddle.net/KwjvA/"&gt;http://jsfiddle.net/KwjvA/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
It looks like a float where one could assume that 1.4000 === 1.4, but what I really want here is the string 1.4000. I certainly don't want my input to be modified. One suggestion I found in the issue tracker is to put single quotes around the field (ie: data-key="'1.4000'"). That seems rather absurd as well.&lt;br /&gt;
&lt;br /&gt;
The only reason why I'm warning about this here is that I've seen a bunch of libraries using .data() to store stuff in elements in the DOM.&amp;nbsp;I think it is a really bad idea to have a method called .data() where you expect to be able to store something in it and be able to get back out exactly what you put into it.&lt;br /&gt;
&lt;br /&gt;
The recommended alternative is to use .attr(). The problem with this is that while it achieves the same effect, it is actually much different functionality from .data(). .data() stores information within an internal cache within jQuery, while .attr() calls element.setAttribute().&lt;br /&gt;
&lt;br /&gt;
I read through several bug reports on the jQuery website, where people are also confused by this behavior and all of them get closed with a wontfix. I see this as a terrible choice. Yuck.&lt;br /&gt;
&lt;br /&gt;
Update: Here is a bug I just filed, hopefully that explains things better to the people who seem to be having a hard time understanding what I'm talking about:&amp;nbsp;&lt;a href="http://bugs.jquery.com/ticket/11060"&gt;http://bugs.jquery.com/ticket/11060&lt;/a&gt;&lt;img src="http://feeds.feedburner.com/~r/AnOpinionOn/~4/ha7vYGduUIQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://lookfirst.com/feeds/6487167764029034856/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1033933413127832310&amp;postID=6487167764029034856" title="53 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/6487167764029034856?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/6487167764029034856?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnOpinionOn/~3/ha7vYGduUIQ/dont-use-jquery-data-method-use-attr.html" title="Don't use the jQuery .data() method. Use .attr() instead." /><author><name>Jon Stevens</name><uri>https://plus.google.com/111536601970188216986</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-78KvUnyifmg/AAAAAAAAAAI/AAAAAAAABj4/Y1q07praths/s512-c/photo.jpg" /></author><thr:total>53</thr:total><feedburner:origLink>http://lookfirst.com/2011/12/dont-use-jquery-data-method-use-attr.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUUMRHs7fCp7ImA9WhJVFkQ.&quot;"><id>tag:blogger.com,1999:blog-1033933413127832310.post-4816224892656679736</id><published>2011-12-08T16:13:00.001-08:00</published><updated>2012-09-03T11:34:45.504-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-09-03T11:34:45.504-07:00</app:edited><title>Optimizing Web Application JavaScript Delivery</title><content type="html">For &lt;a href="http://voo.st/"&gt;my new company&lt;/a&gt;, I had the following design goals for my heavy use of JavaScript (JS):&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;I'm using &lt;a href="http://jashkenas.github.com/coffee-script/"&gt;CoffeeScript&lt;/a&gt;&amp;nbsp;(CS), so I need to have my &lt;a href="http://stackoverflow.com/questions/6645640/integrating-coffeescript-with-eclipse/7507987#7507987"&gt;IDE automatically compile&lt;/a&gt;&amp;nbsp;CS to JS when I save. That way the whole Change file, Save, Reload the browser process works cleanly.&lt;/li&gt;
&lt;li&gt;Be able to split the files up depending on which page is loaded so that only the JS which is needed for the page is sent to the client.&lt;/li&gt;
&lt;li&gt;Be able to differentiate JS files to be loaded between different states such as logged in, logged out and both. That way, once someone is already logged in, the JS which controls the login and forgot password dialog does not get served again. The flip side is that JS for logged in pages is not served up to anonymous users.&lt;/li&gt;
&lt;li&gt;In development mode, have everything un-minimized, but in production mode, automatically minimize everything.&lt;/li&gt;
&lt;li&gt;Run all of the JS through the &lt;a href="http://code.google.com/closure/compiler/"&gt;Closure compiler&lt;/a&gt; regardless of dev/prod so that I know that things that work in dev also work in prod.&lt;/li&gt;
&lt;li&gt;Limit the number of &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; tags to the bare minimum. Ideally, 2-3 for .js files served from my site and not directly off of a CDN. Fewer loads means less network traffic.&lt;/li&gt;
&lt;li&gt;Be able to transparently support new code / application versions so that when I upgrade the application, the browsers dump their cached copies of my files.&lt;/li&gt;
&lt;li&gt;No dependencies on external xml, json, property or other configuration file formats to implement the goals above. Everything should be configured by someone editing the html templates.&lt;/li&gt;
&lt;/ul&gt;
In order to accomplish the goals above, I first looked at a bunch of solutions, but they all failed in various ways. So, I started on my own and went through various iterations before I came up with the ideal solution which I think is pretty unique and easy.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Let's start off by talking about one of the tools I'm using. &lt;a href="http://labjs.com/"&gt;LabJS&lt;/a&gt; enables me to load JS only when I need it. As part of the 'master' template which contains the skin for all pages, at the very bottom before the &lt;code&gt;&amp;lt;/body&amp;gt;&lt;/code&gt; element I have something that looks like this:&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre class="prettyprint"&gt;&amp;lt;script src="/js/LAB.min.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script&amp;gt;
    var country = "${country}";
    var fbAppId = "${fb.APP_ID}";

    var js = '${tool.jsbuilder(
        me != null,
        'json2:both',
        'handlebars.1.0.0.beta.master:both',
        'bootstrap-twipsy:both',
        'bootstrap-popover:both',
        'gen/global/page:both',
        'gen/global/common:both',
        'gen/global/search:both',
        'gen/modal/loginDialog:out', // ! logged in
        'gen/global/loggedInMenu:in', // logged in
        'gen/global/master:both'
        )}';

    var lab = $LAB
        .script("//ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js")
        .wait()
        .script("//ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.js")
        .script("//connect.facebook.net/en_US/all.js")
        .script("//apis.google.com/js/plusone.js")
        .script("//platform.twitter.com/widgets.js")
        .wait()
        .script(js)
        ;

    // Variable "pagecode" should be a function that takes a LAB and does any page-specific loading
    if (typeof pagecode === 'function')
        pagecode(lab);
&amp;lt;/script&amp;gt;
&lt;/pre&gt;
&lt;div&gt;
&lt;br /&gt;
Since I'm using &lt;a href="http://code.google.com/p/cambridge/"&gt;Cambridge Templates&lt;/a&gt; with &lt;a href="http://commons.apache.org/jexl/"&gt;JEXL&lt;/a&gt; to process things first, the ${tool.jsbuilder(...)} section runs some Java code which does a lot of the magic during the rendering portion of the page. The first argument is a boolean to indicate whether or not I'm logged in. 'me' is an object in the context and if it is null I'm not logged in. The rest of the arguments are String[]. The method signature looks like this:&lt;br /&gt;
&lt;br /&gt;
&lt;div class="p1"&gt;
&lt;pre class="prettyprint"&gt;    public String jsbuilder(&lt;span class="s1"&gt;boolean&lt;/span&gt; loggedIn, String[] files);&lt;/pre&gt;
&lt;/div&gt;
&lt;div class="p1"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="p1"&gt;
What happens in that method is that it will parse the array of Strings, and based on a setting of 'in' for logged in, 'out' for logged out, or 'both' for either logged in or out, it will compare that to the loggedIn boolean and either load the appropriate JS file or not. The files are then loaded into memory, in order, and sent through the Closure compiler to minify the code.&lt;/div&gt;
&lt;div class="p1"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="p1"&gt;
The output from Closure is then cached in a global HashMap which is never cleared out. (Note: for languages that don't really persist memory between requests, like PHP, you can store this data in something like memcached).&lt;br /&gt;
&lt;br /&gt;
The key of the Map is generated from a md5 hash of the list of filenames combined together + application version. The hash looks something like this: &lt;code&gt;be712950814b2ccc6b92ff5c3&lt;/code&gt;. This hash is the &lt;code&gt;String&lt;/code&gt; that is returned from the &lt;code&gt;jsbuilder&lt;/code&gt; method. By using the names + application version, that ensures a new hash will be generated each time the application is upgraded.&lt;br /&gt;
&lt;br /&gt;
In dev mode, the Map isn't used at all. The code is generated for each request, which ensures that my changes get immediately reflected in the browser. In production, the Map is first checked for the key and if it exists, the key is immediately returned from the &lt;code&gt;jsbuilder&lt;/code&gt; method.&lt;/div&gt;
&lt;div class="p1"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="p1"&gt;
The final rendered page looks something like this to the web browser:&lt;/div&gt;
&lt;div class="p1"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="p1"&gt;
&lt;/div&gt;
&lt;pre class="prettyprint"&gt;    var js = '/js2/be712950814b2ccc6b92ff5c3.js';
&lt;/pre&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
When the LabJS code executes in the browser and loads my script with the line &lt;code&gt;.script(js)&lt;/code&gt;, there is a Servlet listening for requests to &lt;code&gt;/js2/*.js&lt;/code&gt; and it looks up the key from the url in the Map and returns the appropriate JS data. This servlet can also set the correct browser cache headers depending on dev or prod.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
As you can see, 10+ separate files have been combined and minified into a single file which makes the requests more efficient. All without configuration files or a crazy syntax that only a backend developer can understand.&lt;br /&gt;
&lt;br /&gt;
If I wanted to split the JS files into more loads so that the browser can take advantage of concurrent loading, I could do that as well by just creating more calls to &lt;code&gt;jsbuilder&lt;/code&gt;. That is effectively what is happening in the &lt;code&gt;pagecode&lt;/code&gt; section near the end of the &lt;code&gt;&amp;lt;/script&amp;gt;&lt;/code&gt; element above. The body template which is loaded into the master template by Cambridge, optionally has a JS function defined called &lt;code&gt;pagecode&lt;/code&gt;. When it executes, it calls &lt;code&gt;lab.script()&lt;/code&gt; again with similar output from the &lt;code&gt;jsbuilder&lt;/code&gt; tool. This allows me to split up my code so that there is global code as well as page specific code.&lt;/div&gt;
&lt;br /&gt;
Enjoy.&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/AnOpinionOn/~4/y6cZtjXAPYs" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://lookfirst.com/feeds/4816224892656679736/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1033933413127832310&amp;postID=4816224892656679736" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/4816224892656679736?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/4816224892656679736?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnOpinionOn/~3/y6cZtjXAPYs/optimizing-your-javascript-delivery.html" title="Optimizing Web Application JavaScript Delivery" /><author><name>Jon Stevens</name><uri>https://plus.google.com/111536601970188216986</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-78KvUnyifmg/AAAAAAAAAAI/AAAAAAAABj4/Y1q07praths/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://lookfirst.com/2011/12/optimizing-your-javascript-delivery.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Dk8GSXY8eip7ImA9WhRQEkU.&quot;"><id>tag:blogger.com,1999:blog-1033933413127832310.post-7687199833213045086</id><published>2011-12-07T10:41:00.001-08:00</published><updated>2011-12-07T11:07:08.872-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-12-07T11:07:08.872-08:00</app:edited><title>Github Pages</title><content type="html">I'm a huge fan of Github. Pull requests are the best innovation since the idea behind open source was created.&lt;br /&gt;
&lt;br /&gt;
For one of my projects hosted on Google Code, I was recently asked to move it to Github so that someone could submit pull requests more easily. I happily complied because of how much I love Github.&lt;br /&gt;
&lt;br /&gt;
As part of this move, I decided to finally explore Github Pages in order to publish the nicely formatted documentation of my project. I was thinking they'd be as great as pull requests, and after an hour of reading the documentation and installing everything, I was terribly disappointed.&lt;br /&gt;
&lt;br /&gt;
The main issue is that it uses a site generation tool called &lt;a href="https://github.com/mojombo/jekyll"&gt;Jekyll&lt;/a&gt;. While this tool is generally ok, it has a quite a few major failings as a product for Github.&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;It is clearly a product of Not-Invented-Here syndrome. How many static website generators does this world need? Why did you feel the need to invent yet another one? Hell, I don't even want a static website generator, I just want to write some documentation.&lt;/li&gt;
&lt;li&gt;I don't want 50 different options for generating content. Just give me Markdown. I don't even want 2 different types of Markdown. Just give me the one that works best, as default.&lt;/li&gt;
&lt;li&gt;By default, it comes with nothing to help you design a site full of great looking documentation. Even just a default template setup would suffice. Some people have tried to create some helper projects, but they all have terrible UI and they all seem somewhat&amp;nbsp;abandoned.&lt;/li&gt;
&lt;li&gt;It requires me to become an expert in this tool. I have to install a bunch of random software, learn configuration files, learn a specific file layout. All I want to do is write some documentation that looks nice!&lt;/li&gt;
&lt;li&gt;It was basically created for publishing blogs. Why is this being promoted as GH Pages? It seems rather absurd for a source code repository to provide a tool for publishing blogs, but not a tool for publishing great documentation.&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
Back over on Google Code, I just create some wiki pages, link them together with a table of contents (also a wiki page) and point at a specific url. Everything just works and looks great.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Github, please fix this!&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/AnOpinionOn/~4/_bIVNG7hSMc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://lookfirst.com/feeds/7687199833213045086/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1033933413127832310&amp;postID=7687199833213045086" title="4 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/7687199833213045086?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/7687199833213045086?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnOpinionOn/~3/_bIVNG7hSMc/github-pages.html" title="Github Pages" /><author><name>Jon Stevens</name><uri>https://plus.google.com/111536601970188216986</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-78KvUnyifmg/AAAAAAAAAAI/AAAAAAAABj4/Y1q07praths/s512-c/photo.jpg" /></author><thr:total>4</thr:total><feedburner:origLink>http://lookfirst.com/2011/12/github-pages.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0INR3k_fyp7ImA9WhRRGE0.&quot;"><id>tag:blogger.com,1999:blog-1033933413127832310.post-7874750510335318236</id><published>2011-12-01T21:28:00.001-08:00</published><updated>2011-12-01T21:59:56.747-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-12-01T21:59:56.747-08:00</app:edited><title>Social buttons</title><content type="html">Today, I finally got around to implementing those social Like buttons that you see on all of the websites. Personally, I never click them, but it is clear lots of other people do so I'm going with the bandwagon.&lt;br /&gt;
&lt;br /&gt;
They look something like this:&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/-o140kEK2c5w/TthiM2vdCNI/AAAAAAAAArs/P6lv7ZNMc2E/s1600/Screen+Shot+2011-12-01+at+9.29.04+PM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-o140kEK2c5w/TthiM2vdCNI/AAAAAAAAArs/P6lv7ZNMc2E/s1600/Screen+Shot+2011-12-01+at+9.29.04+PM.png" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
The top ones are Facebook, then Twitter, then Google+.&lt;br /&gt;
&lt;br /&gt;
Styling the first two rows of buttons with CSS is simple. They have &lt;i&gt;class="fb-like"&lt;/i&gt; and &lt;i&gt;class="twitter-share-button"&lt;/i&gt;. I can move them around on my page and place them exactly where I want them quite easily.&lt;br /&gt;
&lt;br /&gt;
What does Google have you ask? Nothing. Zip. Zilch. Instead, it has&amp;nbsp;&lt;i&gt;id="___plusone_0"&lt;/i&gt; which means that it is somewhat useless as a general CSS selector.&lt;br /&gt;
&lt;br /&gt;
I know this is nit picky on such a small issue, but an oversight like this seems hard to fathom. I've google'd around a bit and it really makes me wonder, how come no other site designers have brought this up?&lt;br /&gt;
&lt;br /&gt;
I was hoping that a work around for this would be to just write it as a div instead of as the &lt;i&gt;&amp;lt;g:plusone&amp;gt;&lt;/i&gt; element. But it turns out that div loses the class attribute when it is re-written by their JavaScript.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="prettyprint" style="background-color: white; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial; border-image: initial; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-style: initial; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; color: #333333; font-family: inherit; font-size: 13px; font: normal normal normal 1em/normal 'Droid Sans Mono', monospace; line-height: 1.5; margin-bottom: 1.5em; margin-top: 1.5em; overflow-x: auto; overflow-y: auto; padding-bottom: 6px; padding-left: 10px; padding-right: 10px; padding-top: 6px; vertical-align: baseline;"&gt;&lt;span class="tag" style="border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #000088; font-family: inherit; font-size: 13px; font-style: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&amp;lt;div&lt;/span&gt;&lt;span class="pln" style="border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: inherit; font-size: 13px; font-style: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="atn" style="border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #660066; font-family: inherit; font-size: 13px; font-style: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;class&lt;/span&gt;&lt;span class="pun" style="border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #666600; font-family: inherit; font-size: 13px; font-style: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;=&lt;/span&gt;&lt;span class="atv" style="border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #008800; font-family: inherit; font-size: 13px; font-style: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;"g-plusone"&lt;/span&gt;&lt;span class="pln" style="border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: inherit; font-size: 13px; font-style: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="atn" style="border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #660066; font-family: inherit; font-size: 13px; font-style: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;data-size&lt;/span&gt;&lt;span class="pun" style="border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #666600; font-family: inherit; font-size: 13px; font-style: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;=&lt;/span&gt;&lt;span class="atv" style="border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #008800; font-family: inherit; font-size: 13px; font-style: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;"tall"&lt;/span&gt;&lt;span class="pln" style="border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: inherit; font-size: 13px; font-style: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; ... &lt;/span&gt;&lt;span class="tag" style="border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #000088; font-family: inherit; font-size: 13px; font-style: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&amp;gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
In the end, I just put my own div around the element, but that seems like such a kludge when the other services seem to do this correctly.&lt;br /&gt;
&lt;br /&gt;
Maybe I'm reading too far into this because it is such a little thing, but it really makes me feel like Google doesn't understand the needs of site developers like the other Social players do.&lt;br /&gt;
&lt;br /&gt;&lt;img src="http://feeds.feedburner.com/~r/AnOpinionOn/~4/mIopubupmIs" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://lookfirst.com/feeds/7874750510335318236/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1033933413127832310&amp;postID=7874750510335318236" title="3 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/7874750510335318236?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/7874750510335318236?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnOpinionOn/~3/mIopubupmIs/social-buttons.html" title="Social buttons" /><author><name>Jon Stevens</name><uri>https://plus.google.com/111536601970188216986</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-78KvUnyifmg/AAAAAAAAAAI/AAAAAAAABj4/Y1q07praths/s512-c/photo.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-o140kEK2c5w/TthiM2vdCNI/AAAAAAAAArs/P6lv7ZNMc2E/s72-c/Screen+Shot+2011-12-01+at+9.29.04+PM.png" height="72" width="72" /><thr:total>3</thr:total><feedburner:origLink>http://lookfirst.com/2011/12/social-buttons.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CE8BR3c8cCp7ImA9WhRSFUg.&quot;"><id>tag:blogger.com,1999:blog-1033933413127832310.post-8510260489157297382</id><published>2011-11-17T09:35:00.001-08:00</published><updated>2011-11-17T10:00:56.978-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-17T10:00:56.978-08:00</app:edited><title>Contributing to Open Source</title><content type="html">I've been working on various open source projects since around 1993. Long before I even really thought of it as open source. It just seemed natural to me to make the fixes I needed and contribute them back. It was always a bit of a challenge to figure out how to get my fixes to the developers. Obviously, they don't know me, so they aren't going to just let me write the files directly. So, I end up sending patches via email or some other means.&lt;br /&gt;
&lt;br /&gt;
Over the years, the process for contributing to projects has gotten easier. Even more recently, it has grown by leaps and bounds thanks to &lt;a href="http://github.com/"&gt;Github&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Case in point. I've been using the &lt;a href="http://twitter.github.com/bootstrap/"&gt;twitter bootstrap project&lt;/a&gt;&amp;nbsp;for parts of the design of my new company&amp;nbsp;&lt;a href="http://voo.st/"&gt;Voost&lt;/a&gt;. I like the project a lot. Like millions of other projects, it is hosted on &lt;a href="https://github.com/twitter/bootstrap"&gt;github&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Yesterday, I noticed a small bit of documentation was missing, so I forked the project by clicking a button on the website, created a branch to work on (git checkout -b docadditions), edited the documentation, committed and&amp;nbsp;published&amp;nbsp;my changes and then created a pull request which tells the developers of bootstrap that I have something to contribute:&lt;br /&gt;
&lt;br /&gt;
&lt;a href="https://github.com/twitter/bootstrap/pull/647"&gt;https://github.com/twitter/bootstrap/pull/647&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Mark, one of the developers, who I've never met in my life, was able to take my contributions and combine them with his code by simply clicking a button on the website. Yes, it was that easy.&lt;br /&gt;
&lt;br /&gt;
I also had an enhancement request... so I created an issue...
&lt;br /&gt;
&lt;br /&gt;
&lt;a href="https://github.com/twitter/bootstrap/issues/646"&gt;https://github.com/twitter/bootstrap/issues/646&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
It was resolved in a few hours with just a small bit of effort. I can then merge his changes into my local fork of the project with a couple easy commands. We stay in perfect sync together.&lt;br /&gt;
&lt;br /&gt;
Bam. That is how collaborative development should work.
&lt;br /&gt;
&lt;br /&gt;
As a comparison, in the past, I've done a huge amount of work for the &lt;a href="http://apache.org/"&gt;Apache Software Foundation&lt;/a&gt;. They have a great open source license, and a huge following. But, they don't use github.&lt;br /&gt;
&lt;br /&gt;
With the ASF, it feels like 1993 again. For each project I want to contribute to, it feels like I'm making a lifetime commitment to that project.&lt;br /&gt;
&lt;br /&gt;
I have to go to the project website and navigate around&amp;nbsp;to figure out how to join a&amp;nbsp;mailing list. This takes several contextual steps in an email client. I need make sure to setup a mail filter to&amp;nbsp;deal with a potentially insane amount of email that I really don't care about. Then, I email a patch to&amp;nbsp;the list (or put it up on &lt;a href="http://gist.github.com/"&gt;gist&lt;/a&gt;&amp;nbsp;/&amp;nbsp;&lt;a href="http://pastebin.com/"&gt;pastebin&lt;/a&gt;)... and I hope maybe one of&amp;nbsp;the developers might be watching my carefully crafted subject line. Chances are that nobody would respond or the email&amp;nbsp;would get lost, so I'd have to keep nagging people because everyone is busy...&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
I don't really contribute to the ASF nearly as much anymore.&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/AnOpinionOn/~4/WFlw9YJmo1c" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://lookfirst.com/feeds/8510260489157297382/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1033933413127832310&amp;postID=8510260489157297382" title="13 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/8510260489157297382?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/8510260489157297382?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnOpinionOn/~3/WFlw9YJmo1c/contributing-to-open-source.html" title="Contributing to Open Source" /><author><name>Jon Stevens</name><uri>https://plus.google.com/111536601970188216986</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-78KvUnyifmg/AAAAAAAAAAI/AAAAAAAABj4/Y1q07praths/s512-c/photo.jpg" /></author><thr:total>13</thr:total><feedburner:origLink>http://lookfirst.com/2011/11/contributing-to-open-source.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0UBSXsyeyp7ImA9WhRTE0s.&quot;"><id>tag:blogger.com,1999:blog-1033933413127832310.post-7468145115468318879</id><published>2011-11-03T16:51:00.000-07:00</published><updated>2011-11-03T17:07:38.593-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-03T17:07:38.593-07:00</app:edited><title>Month 3 - It is official now.</title><content type="html">It is official, Jeff and I have our own company now. &lt;a href="http://voo.st/"&gt;Voost LLC&lt;/a&gt;. You can sign up on the website to be notified when we launch.&lt;br /&gt;
&lt;br /&gt;
The focus of the company is on sporting event registrations. As a road bike racer who started his 'career' sending checks in the mail to promoters, I've often wondered why there isn't a great solution for handling registrations to events. (Especially when you'd get to an event, but your check didn't.)&lt;br /&gt;
&lt;br /&gt;
Many companies have sprung up to do this online, but they suffer from high fees, websites that look like they were designed in the early 1990's by people with no design skills and general poor execution. Promoters have to jump through hoops to create events and get their money. Participants are missing out on social features like communicating about the event, ride share / hotels and simple things like the ability to see their (and others) results over time. How many times have you had registration open and the site just melted down as 6k people all tried to register at the same time?&lt;br /&gt;
&lt;br /&gt;
So, it turns out that there is 10+ million athletes in the United States who cross a finish line at an endurance event every year. Voost is setup to do it right and disrupt the entire industry with a well designed solution. We've done our homework and we have a clear path of execution. Now, it is just a matter of time and effort to put our designs into code.&lt;br /&gt;
&lt;br /&gt;
Things are still rolling along with long days of coding and adding features. It is now possible to sign up for an event and go through the entire purchase process. It sounds simple, but there was a huge amount of plumbing that needed to happen first. We are currently working on the event editor which allows promoters to easily setup their event entirely online in no time at all.&lt;br /&gt;
&lt;br /&gt;
We've done a huge amount of work and I'm really proud of it. On a technical note, we've recently switched from &lt;a href="http://sass-lang.com/"&gt;Sass&lt;/a&gt; to &lt;a href="http://lesscss.org/"&gt;Less&lt;/a&gt;. I like the syntax of Less better (especially the mixin's) and it was pretty simple to do.&lt;br /&gt;
&lt;br /&gt;
We are hoping for a soft launch around December and pick up steam as we head into the new year. Wish us luck.&lt;img src="http://feeds.feedburner.com/~r/AnOpinionOn/~4/MbSwbEuL2xM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://lookfirst.com/feeds/7468145115468318879/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1033933413127832310&amp;postID=7468145115468318879" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/7468145115468318879?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/7468145115468318879?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnOpinionOn/~3/MbSwbEuL2xM/month-3-it-is-official-now.html" title="Month 3 - It is official now." /><author><name>Jon Stevens</name><uri>https://plus.google.com/111536601970188216986</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-78KvUnyifmg/AAAAAAAAAAI/AAAAAAAABj4/Y1q07praths/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://lookfirst.com/2011/11/month-3-it-is-official-now.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEcBQno5fyp7ImA9WhdbEEg.&quot;"><id>tag:blogger.com,1999:blog-1033933413127832310.post-5503953143780017535</id><published>2011-10-07T22:34:00.000-07:00</published><updated>2011-10-07T22:34:13.427-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-10-07T22:34:13.427-07:00</app:edited><title>Two months of work...</title><content type="html">I realize that I've lapsed in posting! I've had my head down and full concentration is in effect. The days have been long, with 12+ hour near daily sessions of coding away. We've made an astonishing amount of progress in such a short time. The framework is built and things are starting to come together. Features are appearing all over the place.&lt;br /&gt;
&lt;br /&gt;
A few days ago, we got some major news. One of our direct competitors has gone out of business. On one hand, it worries me that they couldn't survive. On the other hand, I know that a big part of their failure is due to the fact that they needed to contract out their website development to another company. This means that every time they needed to add a feature or fix a bug on the site, they had to pay someone to do this work for them. This is a huge advantage that we have over all of the existing companies. Both Jeff and I are the ones who really know how to write code. Our only expense is our own time spend on this project. This will also allow us to offer our superior service at a much lower price than anyone else.&lt;br /&gt;
&lt;br /&gt;
Thanks to a discussion with very smart friend of mine, we were able to take advantage of the other companies failure and craft a well worded email to a large group of people who we look forward to doing business with in the future. We asked them for their ideas on what they would like to see from us. Nothing beats listening to the people you want to do business with and letting them have a positive influence over what you are creating. We got a lot of amazing feedback and being a small agile company,&amp;nbsp;have already made the appropriate adjustments.&lt;br /&gt;
&lt;br /&gt;
All of the other sites who currently have a business still have a major advantage over us. They have a shipping product and we don't. Of course, this also means that we can study them in minute detail to find their weaknesses and exploit them to our advantage. I feel that we have been very good at this. We've spent a huge amount of time designing around every one else's failures. Our user experience is unique in its beauty and simplicity. It is hard to beat that.&lt;br /&gt;
&lt;br /&gt;
Interesting times... looking forward to our beta release... now back to coding...&lt;br /&gt;
&lt;br /&gt;&lt;img src="http://feeds.feedburner.com/~r/AnOpinionOn/~4/q8QrFlo1hNg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://lookfirst.com/feeds/5503953143780017535/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1033933413127832310&amp;postID=5503953143780017535" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/5503953143780017535?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/5503953143780017535?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnOpinionOn/~3/q8QrFlo1hNg/two-months-of-work.html" title="Two months of work..." /><author><name>Jon Stevens</name><uri>https://plus.google.com/111536601970188216986</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-78KvUnyifmg/AAAAAAAAAAI/AAAAAAAABj4/Y1q07praths/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://lookfirst.com/2011/10/two-months-of-work.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkYGQno6fip7ImA9WhdWEEs.&quot;"><id>tag:blogger.com,1999:blog-1033933413127832310.post-485306697989788446</id><published>2011-09-03T01:10:00.000-07:00</published><updated>2011-09-03T08:35:23.416-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-03T08:35:23.416-07:00</app:edited><title>After a Month of Development</title><content type="html">It has been about a month since I came up with my new Stealthy Startup idea and we've gotten so much done already. Never mind the fact that I'm &lt;i&gt;working &lt;/i&gt;and&lt;i&gt; coding&lt;/i&gt; like a mad man. The integration of the &lt;a href="http://lookfirst.com/2011/08/tools-for-new-generation.htmlhttp://lookfirst.com/2011/08/tools-for-new-generation.html"&gt;whole infrastructure&lt;/a&gt; is complete and I'm coding up application features as quickly as I can. This is a huge project and will take a lot of effort to do it right. That said, it really is a lot of fun to develop on this platform and the site is very web 3.0 dynamic.&lt;br /&gt;
&lt;br /&gt;
We've switched around a few JavaScript libraries. We replaced &lt;a href="http://requirejs.org/"&gt;RequireJS&lt;/a&gt; with &lt;a href="http://labjs.com/"&gt;LabJS&lt;/a&gt;. The documentation for RequireJS is pretty, but when you really dig into it, it is more like fluff. We got what we wanted out of LabJS though.&lt;br /&gt;
&lt;br /&gt;
For textarea's we've integrated the &lt;a href="http://code.google.com/p/pagedown/"&gt;Markdown editor&lt;/a&gt; from &lt;a href="http://stackoverflow.com/"&gt;Stackoverflow&lt;/a&gt;. That was actually quite fun to do. Thanks for making that available.&lt;br /&gt;
&lt;br /&gt;
I spent way too much time on implementing file upload. I started to write my own, but got overwhelmed with the cross browser issues. I ended up using &lt;a href="http://www.plupload.com/"&gt;Plupload&lt;/a&gt;, which isn't great, but&amp;nbsp;everything else out there is a pile of junk. The lack of good documentation made it a royal pain to integrate Plupload, but once I dug through the source code and figured out how it works, I was able to make it do what I want.&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://jashkenas.github.com/coffee-script/"&gt;CoffeeScript&lt;/a&gt; has been a godsend. The guy who came up with it should get a Nobel prize for brilliance. If you are writing any JavaScript at all, you should immediately stop what you are doing and switch your entire environment to CS. I'm writing a metric ton of CS and I just can't even begin to explain how much easier my life has been.&lt;br /&gt;
&lt;br /&gt;
There is a lot of libraries for dealing with html forms in a MVC way, but in the end, I've found that they require as much code as just writing it yourself. CoffeeScript's scoping and class system makes it easy to contain the logic.&lt;br /&gt;
&lt;br /&gt;
Using &lt;a href="https://github.com/"&gt;Github&lt;/a&gt; is also great. I've got two private repo's setup now and it is so nice to be able to get emails and diff's without having to setup and manage my own server. Plain and simple: Fuck Subversion. I know those are harsh words, but &lt;a href="http://www.youtube.com/watch?v=4XpnKHJAok8"&gt;as others have said&lt;/a&gt;, setting CVS as your goal to beat was a really bad idea. They are almost done with version 1.7 and basic merging is still a &lt;a href="http://lookfirst.com/2011/04/subversion-mistake.html"&gt;pile of shit&lt;/a&gt;. Everything is always going to be a catchup game to git, so you might as well just use git. I'm still in trial mode with &lt;a href="http://www.git-tower.com/"&gt;Tower&lt;/a&gt; and this is definitely an application worth paying for.&lt;br /&gt;
&lt;br /&gt;
I know everyone is complaining about &lt;a href="http://code.google.com/appengine/"&gt;Google App Engine&lt;/a&gt; suddenly costing them more than $0. The reality of the situation is that nothing else compares to GAE. You know what is worth an unlimited amount of money? Not having to do IT. I'm an expert sysadmin and I never want to be woken up in the middle of the night ever again because some server is acting badly. I'm more than happy to pay for the&amp;nbsp;privilege&amp;nbsp;of having that be someone else's problem. I really don't care if you can set something up on &lt;a href="http://www.linode.com/"&gt;Linode&lt;/a&gt; or &lt;a href="http://aws.amazon.com/"&gt;AWS&lt;/a&gt; for less money. It just isn't worth the headache when one of your $10/month micro instances decides to randomly disappear.&lt;br /&gt;
&lt;br /&gt;
I still can't tell you what I'm working on, but we should have something to show soon.&lt;img src="http://feeds.feedburner.com/~r/AnOpinionOn/~4/UoKzXUa2pgY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://lookfirst.com/feeds/485306697989788446/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1033933413127832310&amp;postID=485306697989788446" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/485306697989788446?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/485306697989788446?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnOpinionOn/~3/UoKzXUa2pgY/after-month-of-development.html" title="After a Month of Development" /><author><name>Jon Stevens</name><uri>https://plus.google.com/111536601970188216986</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-78KvUnyifmg/AAAAAAAAAAI/AAAAAAAABj4/Y1q07praths/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://lookfirst.com/2011/09/after-month-of-development.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0ACRXw-cCp7ImA9WhdQEU8.&quot;"><id>tag:blogger.com,1999:blog-1033933413127832310.post-6535616182728475308</id><published>2011-08-09T12:51:00.000-07:00</published><updated>2011-08-11T23:16:04.258-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-11T23:16:04.258-07:00</app:edited><title>Tools for a new generation</title><content type="html">We've been hard at work on the Stealthy Startup. A few days of 12+ hour coding sessions and things are really starting to come together. We have a lot more work to do to implement the application logic, but at least we have settled on what we feel is a great basis for building a next generation web application.&lt;br /&gt;
&lt;br /&gt;
One of the goals of this application is to do as little framework code as possible. While we are more than technically capable, we also don't want to have to hire an IT / operations department or run servers ourselves. There just isn't a need to do that any longer and this will allow us to focus on coding features and running the business. It is simply amazing that the services and frameworks that have been created in the last 6-7 years exist and are as high quality as they are.&lt;br /&gt;
&lt;br /&gt;
While everyone seems to be zigging towards Rubyland, I still feel that staying the course with Java is the right choice. You just can't beat a strongly typed language when it comes to building an application. Especially from scratch. The need to be able to re-factor code on a whim prevents bad decisions and mistakes from propagating long term. On top of that, the JVM is simply a faster product. Scala is another approach, but I'm afraid I'm just not fond of the language syntax. I'm super efficient at writing bug free Java, so why would I want to slow my development time down? Anyway, this isn't intended as a language war posting...&lt;br /&gt;
&lt;br /&gt;
People have been asking me what tools we are using for our startup, so here is the list so far:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://code.google.com/appengine/"&gt;Google App Engine&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://code.google.com/p/google-guice/"&gt;Guice&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://code.google.com/p/objectify-appengine/"&gt;Objectify-AppEngine&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.jboss.org/resteasy"&gt;RestEasy&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://code.google.com/p/htmleasy/"&gt;HtmlEasy&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://code.google.com/p/cambridge/"&gt;Cambridge Template Engine&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://projectlombok.org/"&gt;Lombok&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://code.google.com/p/guava-libraries/"&gt;Guava&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://commons.apache.org/"&gt;Apache Commons&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://jashkenas.github.com/coffee-script/"&gt;CoffeeScript&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://requirejs.org/"&gt;RequireJS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://jquery.com/"&gt;JQuery&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://sass-lang.com/"&gt;Sass Scss&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/"&gt;GitHub&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://eclipse.org/"&gt;Eclipse&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.zeroturnaround.com/"&gt;JRebel&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
Google App Engine and the Datastore enables us to not have to run servers or manage databases. It also means that as our traffic increases, we can scale automatically, without even having to think about it or code up solutions on EC2. This is because we are running on Google's own architecture and we can trust them to deal with these issues in a timely fashion. We also know that we won't have to wear a pager if the system goes down and we won't have to hire a team in India to help us when things go south at 2am.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Cambridge Template Engine is one of the more unique and somewhat 'beta' projects that we are using, so it is a bit of a risk, but not that bad as it seems to work pretty well as it stands right now. That said, the language it uses enables us to write extremely flexible html code. Take a look at this&amp;nbsp;&lt;a href="http://blog.erdincyilmazel.com/2011/02/10/comparing-cambridge-template-engine-with-jsp-velocity-freemarker-and-play-framework-templates/"&gt;blog posting&lt;/a&gt;&amp;nbsp;for a comparison between various engines.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
Lombok is one of the coolest extensions to Java ever invented. It prevents you from having to write all of that silly boilerplate code that the Rubytards make fun of the Javatards for. It also allows you to annotate your classes with a simple @Slf4j annotation to enable a 'log' object to be used. Unfortunately, it only works with Eclipse, so if you are in a mixed IDE environment, you are out of luck. That said, Eclipse is the best free IDE out there, so there isn't much reason to not use it.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
These days, using Rest on the server side is pretty much the best way to deal with things. You aren't returning HTML, you are returning data and you use JavaScript to process that data. Both Resteasy and Htmleasy make this simple to implement.&lt;br /&gt;
&lt;br /&gt;
For dependency injection, Guice is the way to go. While I like some parts of Spring, it doesn't suffer from the jarfest/xmlfest that Spring comes with and is just as fast and powerful.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
RequireJS is great because it allows us to separate our CoffeeScript/JS into small components that we can include on pages that need it. Effectively giving us an 'import' statement.&lt;br /&gt;
&lt;br /&gt;
You don't really want to use JavaScript anymore either. Once you check out CoffeeScript, you won't go back. People who are against using CS are out of their minds. Take this example for using JQuery to do an Ajax call to flip some toggles(), bring effects to the page and post some data to a server:&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre class="brush: js"&gt;$ -&amp;gt;gt;	$('#nameSave').click -&amp;amp;amp;gt;
		$('#nameEdit img').show()
		$('#nameSave').attr("disabled", "disabled")
		$.ajax
			type: "POST"
			url: "/account/name"
			data:
				firstName: $("input[name='firstName']").text()
				lastName: $("input[name='lastName']").text()
			success: -&amp;gt;
				$('.confirmation').show()
				$('.error').hide()
				$('#nameEdit img').fadeOut(1500)
				$('#nameSave').attr("disabled", "")
			error: -&amp;gt;
				$('.confirmation').hide()
				$('.error').fadeIn().delay(2000).fadeOut()
				$('#nameEdit img').fadeOut(1500)
				$('#nameSave').delay(2000).attr("disabled", "")
&lt;/pre&gt;
&lt;br /&gt;
That generates this JavaScript:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: js"&gt;(function() {
  $(function() {
    return $('#nameSave').click(function() {
      $('#nameEdit img').show();
      $('#nameSave').attr("disabled", "disabled");
      return $.ajax({
        type: "POST",
        url: "/account/name",
        data: {
          firstName: $("input[name='firstName']").text(),
          lastName: $("input[name='lastName']").text()
        },
        success: function() {
          $('.confirmation').show();
          $('.error').hide();
          $('#nameEdit img').fadeOut(1500);
          return $('#nameSave').attr("disabled", "");
        },
        error: function() {
          $('.confirmation').hide();
          $('.error').fadeIn().delay(2000).fadeOut();
          $('#nameEdit img').fadeOut(1500);
          return $('#nameSave').delay(2000).attr("disabled", "");
        }
      });
    });
  });
}).call(this);
&lt;/pre&gt;
&lt;br /&gt;
I know they are both kind of difficult to read (that is the nature of these languages), but which one do you think is easier to write?&amp;nbsp;I've integrated it with Eclipse with a Builder so that as soon as you save a .coffee file, it gets 'compiled' into js. That JS is then watched with another Builder which runs is through the RequireJS optimizer which runs UglyJS or Closure Compiler on the output.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
Sass scss is wonderful because it gives us greater control over our CSS. Another Eclipse Builder is used to automatically generate the CSS files as well.&lt;br /&gt;
&lt;br /&gt;
We are using GitHub for all of our source code and wiki documents. At $7/month it is the perfect environment for doing development. Their new Mac GitHub native app is pretty useful as well. I just wish you could do a sync without having to also push.&lt;br /&gt;
&lt;br /&gt;
JRebel allows us to write Java code, click save and then reload in the browser to see the changes immediately. No need to restart Jetty/Tomcat/JBoss any longer.&lt;img src="http://feeds.feedburner.com/~r/AnOpinionOn/~4/IL2UcB4YNhA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://lookfirst.com/feeds/6535616182728475308/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1033933413127832310&amp;postID=6535616182728475308" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/6535616182728475308?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/6535616182728475308?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnOpinionOn/~3/IL2UcB4YNhA/tools-for-new-generation.html" title="Tools for a new generation" /><author><name>Jon Stevens</name><uri>https://plus.google.com/111536601970188216986</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-78KvUnyifmg/AAAAAAAAAAI/AAAAAAAABj4/Y1q07praths/s512-c/photo.jpg" /></author><thr:total>2</thr:total><feedburner:origLink>http://lookfirst.com/2011/08/tools-for-new-generation.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkUARn09fyp7ImA9WhdRFUs.&quot;"><id>tag:blogger.com,1999:blog-1033933413127832310.post-4180823357484095785</id><published>2011-08-05T10:10:00.000-07:00</published><updated>2011-08-05T10:10:47.367-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-05T10:10:47.367-07:00</app:edited><title>A busy week... A new company...</title><content type="html">You'd think that being recently jobsingle would have allowed me to slow down for a few weeks and catch my breath. Well, turns out that is not the case. I just can't sit still. My mind has been buzzing for new possibilities. As a result of this focus, a really great business idea that satisfies all of my requirements for success has presented itself to me. After talking it through with a few people who also like the idea, I know it is a GO.&lt;br /&gt;
&lt;br /&gt;
Thus, my buddy Jeff and I are in the process of creating a stealthy startup that is going to provide a useful service to a whole lot of people, in a market that is sorely lacking in technology and sophistication. Even better is that it starts with an area I know quite well and absolutely love... bicycles. We have an exciting name, a great domain, a solid plan, a clear set of requirements and are busy setting up the infrastructure to execute upon.&lt;br /&gt;
&lt;br /&gt;
I love the idea of working for myself again. Why didn't I think of this sooner? ;-)&lt;br /&gt;
&lt;br /&gt;&lt;img src="http://feeds.feedburner.com/~r/AnOpinionOn/~4/Zn2jzeAWHug" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://lookfirst.com/feeds/4180823357484095785/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1033933413127832310&amp;postID=4180823357484095785" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/4180823357484095785?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/4180823357484095785?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnOpinionOn/~3/Zn2jzeAWHug/busy-week-new-company.html" title="A busy week... A new company..." /><author><name>Jon Stevens</name><uri>https://plus.google.com/111536601970188216986</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-78KvUnyifmg/AAAAAAAAAAI/AAAAAAAABj4/Y1q07praths/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://lookfirst.com/2011/08/busy-week-new-company.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUYDR3s_fCp7ImA9WhdREEg.&quot;"><id>tag:blogger.com,1999:blog-1033933413127832310.post-4882235592699422557</id><published>2011-07-30T13:19:00.000-07:00</published><updated>2011-07-30T13:19:36.544-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-30T13:19:36.544-07:00</app:edited><title>Jobsingle and seeking!</title><content type="html">I'm happily jobsingle and I'm looking&amp;nbsp;for the next perfect job.&lt;br /&gt;
&lt;br /&gt;
I'd like to find a stealthy startup that expects huge amounts of traffic and has a clear business model that won't go bust when this bubble bursts. I'm interested in the backend technology and helping solve scaling solutions based on my wide experience working in that area for the last 5 years.&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://linkedin.com/in/lookfirst"&gt;http://linkedin.com/in/lookfirst&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
cheers,&lt;br /&gt;
&lt;br /&gt;
jon&lt;img src="http://feeds.feedburner.com/~r/AnOpinionOn/~4/lu-sucTFkAE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://lookfirst.com/feeds/4882235592699422557/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1033933413127832310&amp;postID=4882235592699422557" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/4882235592699422557?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/4882235592699422557?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnOpinionOn/~3/lu-sucTFkAE/jobsingle-and-seeking.html" title="Jobsingle and seeking!" /><author><name>Jon Stevens</name><uri>https://plus.google.com/111536601970188216986</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-78KvUnyifmg/AAAAAAAAAAI/AAAAAAAABj4/Y1q07praths/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://lookfirst.com/2011/07/jobsingle-and-seeking.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEAFQH4_cCp7ImA9WhdREEg.&quot;"><id>tag:blogger.com,1999:blog-1033933413127832310.post-3958574226048589955</id><published>2011-07-30T12:05:00.000-07:00</published><updated>2011-07-30T12:05:11.048-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-30T12:05:11.048-07:00</app:edited><title>Why machine images don’t work</title><content type="html">I just read a really good blog posting from RightScale on &lt;a href="http://blog.rightscale.com/2010/03/22/rightscale-servertemplates-explained/"&gt;"Why machine images don’t work."&lt;/a&gt;&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
After investigating the way that &lt;a href="http://aws.amazon.com/amis"&gt;AMI's&lt;/a&gt; are built and seeing how utterly difficult it was to build one, I've been&amp;nbsp;trying to put to words my feelings about it. This article does a great job of describing it with four simple statements:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;Images are too monolithic.&lt;/li&gt;
&lt;li&gt;Images are opaque.&lt;/li&gt;
&lt;li&gt;Images are too big.&lt;/li&gt;
&lt;li&gt;Images are too static.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;
I have one additional thing that I would like to add:&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;Images are difficult to upgrade.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;
I quickly came to the conclusion that building Debian packages that can be quickly installed on any machine is a far better way to go. Not only are they easily to create, but you can integrate them into your continuous integration system so that every time someone commits code, a new package is built and added to a central repository. Updating the code on your machines in all of your environments is as simple as &lt;i&gt;'aptitude update; aptitude safe-upgrade'&lt;/i&gt;.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
I also think that using tools like Fabric, Puppet and Chef (FPC) just add another layer of unnecessary complexity which completely fails the &lt;a href="http://en.wikipedia.org/wiki/KISS_principle"&gt;KISS&lt;/a&gt; principle. You can do everything that FPC can do in a single Debian or break it out into multiple ones depending on how you want to setup the deployment&amp;nbsp;hierarchy. Why install some other complicated piece of software (and all of its dependencies) with its own domain specific language when you can just write relatively simple bash shell scripts?&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
With my deployments, I like to set things up so that there is a 'base' Debian package which gets installed called project-init. It is responsible for creating users, accepting the JDK license agreement, setting the timezone of the machine and any other low level OS settings that can be used on all machines.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
From there, everything gets layered on top of that base package. Some packages will be optional depending on which environment they get put into. For example, you probably don't want or need to install &lt;a href="https://github.com/lookfirst/clarity"&gt;Clarity&lt;/a&gt; on your production servers. If you need packages for specific environments (dev, staging, prod), you can use &lt;a href="http://www.debian.org/doc/debian-policy/ch-relationships.html#s-virtual"&gt;Debian Virtual packages&lt;/a&gt; to create 'aliases' for which the system you want installed.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
In the end, I know this system works really well. I've done it for one of the most complicated systems one can imagine with 25+ different packages for all of the components that needed to be installed.&lt;/div&gt;
&lt;img src="http://feeds.feedburner.com/~r/AnOpinionOn/~4/awVze_WFFt4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://lookfirst.com/feeds/3958574226048589955/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1033933413127832310&amp;postID=3958574226048589955" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/3958574226048589955?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/3958574226048589955?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnOpinionOn/~3/awVze_WFFt4/why-machine-images-dont-work.html" title="Why machine images don’t work" /><author><name>Jon Stevens</name><uri>https://plus.google.com/111536601970188216986</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-78KvUnyifmg/AAAAAAAAAAI/AAAAAAAABj4/Y1q07praths/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://lookfirst.com/2011/07/why-machine-images-dont-work.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkENSXo-cSp7ImA9WhdSGEw.&quot;"><id>tag:blogger.com,1999:blog-1033933413127832310.post-1689868964583957174</id><published>2011-07-27T14:47:00.001-07:00</published><updated>2011-07-27T16:51:38.459-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-27T16:51:38.459-07:00</app:edited><title>Easy Install HBase/Hadoop in Pseudo Distributed Mode</title><content type="html">&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;Introduction&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
This documentation should get you up and running with a full pseudo distributed Hadoop/HBase installation in an Ubuntu VM quickly. I use Ubuntu because the Debian Package Management (apt) is by far the best way to install software on a machine. It is possible to also use this on regular hardware as well.&lt;br /&gt;
&lt;br /&gt;
The reason why you will need this is because much of the existing documentation is spread around quite a few different locations. Thus, I've already done the work of digging this information out so that you don't have to.&lt;br /&gt;
&lt;br /&gt;
This documentation is intended to be read and used from top to bottom. Before you do an initial install, I suggest you read through it once first.&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: large;"&gt;Reference Manuals&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href="https://ccp.cloudera.com/display/CDHDOC/CDH3+Installation"&gt;https://ccp.cloudera.com/display/CDHDOC/CDH3+Installation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ccp.cloudera.com/display/CDHDOC/CDH3+Deployment+in+Pseudo-Distributed+Mode"&gt;https://ccp.cloudera.com/display/CDHDOC/CDH3+Deployment+in+Pseudo-Distributed+Mode&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ccp.cloudera.com/display/CDHDOC/ZooKeeper+Installation"&gt;https://ccp.cloudera.com/display/CDHDOC/ZooKeeper+Installation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ccp.cloudera.com/display/CDHDOC/HBase+Installation"&gt;https://ccp.cloudera.com/display/CDHDOC/HBase+Installation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hadoop.apache.org/common/docs/r0.20.2/quickstart.html#PseudoDistributed"&gt;http://hadoop.apache.org/common/docs/r0.20.2/quickstart.html#PseudoDistributed&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hbase.apache.org/book.html"&gt;http://hbase.apache.org/book.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hbase.apache.org/pseudo-distributed.html"&gt;http://hbase.apache.org/pseudo-distributed.html&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: large;"&gt;Create the virtual machine&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
The first thing that you will want to do is download a copy of the &lt;a href="http://www.ubuntu.com/download/server/download"&gt;Ubuntu Server 10.04&lt;/a&gt; 64bit ISO image. This version is the current Long Term Support (LTS) version. These instructions may work with a newer version, but I'm suggesting the LTS because that is what I test with and also what your operations team will most likely want to install into production. Once you have the ISO, create a new virtual machine using your favorite VM manager (I like vmware fusion on my Mac).&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: large;"&gt;Unix Box Setup&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Once you have logged into the box, we need to setup some resources...&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: shell"&gt;echo "deb http://archive.canonical.com/ lucid partner" &amp;gt; /etc/apt/sources.list.d/partner.list
echo "deb http://archive.cloudera.com/debian lucid-cdh3 contrib" &amp;gt;&amp;gt; /etc/apt/sources.list.d/cloudera.list
echo "deb-src http://archive.cloudera.com/debian lucid-cdh3 contrib" &amp;gt;&amp;gt; /etc/apt/sources.list.d/cloudera.list
echo "sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true" | debconf-set-selections
echo "hdfs  -       nofile  32768" &amp;gt;&amp;gt; /etc/security/limits.conf
echo "hbase  -       nofile  32768" &amp;gt;&amp;gt; /etc/security/limits.conf
echo "hdfs soft/hard nproc 32000" &amp;gt;&amp;gt; /etc/security/limits.conf
echo "hbase soft/hard nproc 32000" &amp;gt;&amp;gt; /etc/security/limits.conf
echo "session required  pam_limits.so" &amp;gt;&amp;gt; /etc/pam.d/common-session

aptitude install curl wget
curl -s http://archive.cloudera.com/debian/archive.key | sudo apt-key add -
aptitude update
aptitude install openssh-server ntp
aptitude install sun-java6-jdk
aptitude safe-upgrade
reboot now
&lt;/pre&gt;&lt;br /&gt;
You can now use ifconfig -a to find out the IP address of the virtual machine and log into it via ssh. You will want to execute most of the commands below as root.&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: large;"&gt;LZO Compression&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
This setup provides LZO compression for your data in HBase which greatly reduces the amount of data which is stored on disk. Sadly, LZO is under the GPL license, so it can't be distributed with Apache. Therefore, I'm providing a nice debian that I got ahold of for you to use. On your vm:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: shell"&gt;wget "https://github.com/lookfirst/fileshare/blob/master/Cloudera-hadoop-lzo_20110510102012.2bd0d5b-1_amd64.deb?raw=true"
dpkg -i Cloudera-hadoop-lzo_20110510102012.2bd0d5b-1_amd64.deb
&lt;/pre&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: large;"&gt;Hadoop / HDFS&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Install some packages:&lt;br /&gt;
&lt;pre class="brush: shell"&gt;apt-get install hadoop-0.20
apt-get install hadoop-0.20-namenode hadoop-0.20-datanode hadoop-0.20-jobtracker hadoop-0.20-tasktracker
apt-get install hadoop-0.20-conf-pseudo
&lt;/pre&gt;&lt;br /&gt;
Edit some files:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;/etc/hadoop/conf/hdfs-site.xml&lt;/b&gt;&lt;br /&gt;
&lt;pre class="brush: xml"&gt;&amp;lt;property&amp;gt;
   &amp;lt;name&amp;gt;dfs.datanode.max.xcievers&amp;lt;/name&amp;gt;
   &amp;lt;value&amp;gt;4096&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;
&lt;/pre&gt;&lt;b&gt;/etc/hadoop/conf/core-site.xml&lt;/b&gt;&lt;br /&gt;
&lt;pre class="brush: xml"&gt;&amp;lt;property&amp;gt;
   &amp;lt;name&amp;gt;io.compression.codecs&amp;lt;/name&amp;gt;
   &amp;lt;value&amp;gt;org.apache.hadoop.io.compress.GzipCodec,org.apache.hadoop.io.compress.DefaultCodec,com.hadoop.compression.lzo.LzoCodec,com.hadoop.compression.lzo.LzopCodec,org.apache.hadoop.io.compress.BZip2Codec&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;
 
&amp;lt;property&amp;gt;
   &amp;lt;name&amp;gt;io.compression.codec.lzo.class&amp;lt;/name&amp;gt;
   &amp;lt;value&amp;gt;com.hadoop.compression.lzo.LzoCodec&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;
&lt;/pre&gt;&lt;b&gt;/etc/hadoop/conf/mapred-site.xml&lt;/b&gt;&lt;br /&gt;
&lt;pre class="brush: xml"&gt;&amp;lt;property&amp;gt;
   &amp;lt;name&amp;gt;mapred.compress.map.output&amp;lt;/name&amp;gt;
   &amp;lt;value&amp;gt;true&amp;lt;/value&amp;gt;
 &amp;lt;/property&amp;gt;
 
 &amp;lt;property&amp;gt;
   &amp;lt;name&amp;gt;mapred.map.output.compression.codec&amp;lt;/name&amp;gt;
   &amp;lt;value&amp;gt;com.hadoop.compression.lzo.LzoCodec&amp;lt;/value&amp;gt;
 &amp;lt;/property&amp;gt;
 
 &amp;lt;property&amp;gt;
   &amp;lt;name&amp;gt;mapred.child.ulimit&amp;lt;/name&amp;gt;
   &amp;lt;value&amp;gt;1835008&amp;lt;/value&amp;gt;
 &amp;lt;/property&amp;gt;
   
 &amp;lt;property&amp;gt;
   &amp;lt;name&amp;gt;mapred.tasktracker.map.tasks.maximum&amp;lt;/name&amp;gt;
   &amp;lt;value&amp;gt;2&amp;lt;/value&amp;gt;
 &amp;lt;/property&amp;gt;

 &amp;lt;property&amp;gt;
   &amp;lt;name&amp;gt;mapred.tasktracker.reduce.tasks.maximum&amp;lt;/name&amp;gt;
   &amp;lt;value&amp;gt;2&amp;lt;/value&amp;gt;
 &amp;lt;/property&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: large;"&gt;ZooKeeper&lt;/span&gt;&lt;br /&gt;
&lt;pre class="brush: shell"&gt;apt-get install hadoop-zookeeper-server
&lt;/pre&gt;&lt;b&gt;/etc/zookeeper/zoo.cfg&lt;/b&gt;&lt;br /&gt;
&lt;pre class="brush: shell"&gt;Change localhost to 127.0.0.1
 Add: maxClientCnxns=0
&lt;/pre&gt;&lt;pre class="brush: shell"&gt;service hadoop-zookeeper-server restart
&lt;/pre&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: large;"&gt;HDFS/HBase Setup&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Make an /hbase folder in hdfs&lt;br /&gt;
&lt;pre class="brush: shell"&gt;sudo -u hdfs hadoop fs -mkdir /hbase
sudo -u hdfs hadoop fs -chown hbase /hbase
NOTE: If you want to delete an existing hbase folder, first stop hbase!
sudo -u hdfs hadoop fs -rmr -skipTrash /hbase
&lt;/pre&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: large;"&gt;HBase Installation&lt;/span&gt;&lt;br /&gt;
&lt;pre class="brush: shell"&gt;apt-get install hadoop-hbase
apt-get install hadoop-hbase-master
&lt;/pre&gt;&lt;br /&gt;
&lt;b&gt;/etc/hbase/conf/hbase-site.xml&lt;/b&gt;&lt;br /&gt;
&lt;pre class="brush: xml"&gt;&amp;lt;property&amp;gt;
   &amp;lt;name&amp;gt;hbase.cluster.distributed&amp;lt;/name&amp;gt;
   &amp;lt;value&amp;gt;true&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;
&amp;lt;property&amp;gt;
   &amp;lt;name&amp;gt;hbase.rootdir&amp;lt;/name&amp;gt;
   &amp;lt;value&amp;gt;hdfs://localhost/hbase&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
&lt;b&gt;/etc/hbase/conf/hbase-env.sh&lt;/b&gt;&lt;br /&gt;
&lt;pre class="brush: shell"&gt;export HBASE_CLASSPATH=`ls /usr/lib/hadoop/lib/cloudera-hadoop-lzo-*.jar`
export HBASE_MANAGES_ZK=false
export HBASE_LIBRARY_PATH=/usr/lib/hadoop/lib/native/Linux-amd64-64
&lt;/pre&gt;&lt;br /&gt;
&lt;b&gt;/etc/hadoop/conf/hadoop-env.sh&lt;/b&gt;&lt;br /&gt;
&lt;pre class="brush: shell"&gt;export HADOOP_CLASSPATH="$HADOOP_CLASSPATH":`hbase classpath`
&lt;/pre&gt;&lt;br /&gt;
Now, restart the master and start the region server:&lt;br /&gt;
&lt;pre class="brush: shell"&gt;service hadoop-hbase-master restart
apt-get install hadoop-hbase-regionserver
&lt;/pre&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: large;"&gt;Starting/Stopping everything&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Start&lt;/b&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;service hadoop-zookeeper-server start&lt;/li&gt;
&lt;li&gt;for service in /etc/init.d/hadoop-0.20-*; do sudo $service start; done&lt;/li&gt;
&lt;li&gt;service hadoop-hbase-master start&lt;/li&gt;
&lt;li&gt;service hadoop-hbase-regionserver start&lt;/li&gt;
&lt;/ul&gt;&lt;b&gt;Stop&lt;/b&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;service hadoop-hbase-regionserver stop&lt;/li&gt;
&lt;li&gt;service hadoop-hbase-master stop&lt;/li&gt;
&lt;li&gt;for service in /etc/init.d/hadoop-0.20-*; do sudo $service stop; done&lt;/li&gt;
&lt;li&gt;service hadoop-zookeeper-server stop&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: large;"&gt;Hbase Shell&lt;/span&gt;&lt;br /&gt;
&lt;pre class="brush: shell"&gt;su - hbase
hbase shell
&lt;/pre&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: large;"&gt;Ports&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
To ensure that everything is working correctly, visit your VM's ip address with these ports on the end of a http url.&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;HDFS: 50070&lt;/li&gt;
&lt;li&gt;JobTracker: 50030&lt;/li&gt;
&lt;li&gt;TaskTracker: 50060&lt;/li&gt;
&lt;li&gt;Hbase Master: 60010&lt;/li&gt;
&lt;li&gt;Hbase RegionServer: 60030&lt;/li&gt;
&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/AnOpinionOn/~4/lF5iNsUVpLc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://lookfirst.com/feeds/1689868964583957174/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1033933413127832310&amp;postID=1689868964583957174" title="11 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/1689868964583957174?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/1689868964583957174?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnOpinionOn/~3/lF5iNsUVpLc/easy-install-hbasehadoop-in-pseudo.html" title="Easy Install HBase/Hadoop in Pseudo Distributed Mode" /><author><name>Jon Stevens</name><uri>https://plus.google.com/111536601970188216986</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-78KvUnyifmg/AAAAAAAAAAI/AAAAAAAABj4/Y1q07praths/s512-c/photo.jpg" /></author><thr:total>11</thr:total><feedburner:origLink>http://lookfirst.com/2011/07/easy-install-hbasehadoop-in-pseudo.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkcCR389fSp7ImA9WhdSFUs.&quot;"><id>tag:blogger.com,1999:blog-1033933413127832310.post-109772462223964632</id><published>2011-07-24T20:21:00.000-07:00</published><updated>2011-07-24T20:21:06.165-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-24T20:21:06.165-07:00</app:edited><title>Chickens</title><content type="html">I added a new wing to the coop today. It's officially a doublewide now.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/-1C9NejMouek/Tizg8fXIVZI/AAAAAAAAArE/b6OGvumcfDo/s1600/5972379333_d870818e00_b.jpeg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/-1C9NejMouek/Tizg8fXIVZI/AAAAAAAAArE/b6OGvumcfDo/s1600/5972379333_d870818e00_b.jpeg" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span id="goog_1549108988"&gt;&lt;/span&gt;&lt;span id="goog_1549108989"&gt;&lt;/span&gt;&lt;img src="http://feeds.feedburner.com/~r/AnOpinionOn/~4/tZ3gw34_vMU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://lookfirst.com/feeds/109772462223964632/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1033933413127832310&amp;postID=109772462223964632" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/109772462223964632?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/109772462223964632?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnOpinionOn/~3/tZ3gw34_vMU/chickens.html" title="Chickens" /><author><name>Jon Stevens</name><uri>https://plus.google.com/111536601970188216986</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-78KvUnyifmg/AAAAAAAAAAI/AAAAAAAABj4/Y1q07praths/s512-c/photo.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-1C9NejMouek/Tizg8fXIVZI/AAAAAAAAArE/b6OGvumcfDo/s72-c/5972379333_d870818e00_b.jpeg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://lookfirst.com/2011/07/chickens.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CU4ERHo6eCp7ImA9WhdSE0g.&quot;"><id>tag:blogger.com,1999:blog-1033933413127832310.post-8720274910266334498</id><published>2011-07-22T08:52:00.000-07:00</published><updated>2011-07-22T09:58:25.410-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-22T09:58:25.410-07:00</app:edited><title>Lion removes Java?</title><content type="html">Yes it does! Java really isn't installed this time. So, just open up Terminal.app and type 'java'. It will automatically install from there.&lt;br /&gt;
&lt;br /&gt;
My guess is that there is some sort of Oracle licensing agreement that prevents Apple from distributing Java with the release. You'd think that these two massive public companies would be able to work something out&lt;br /&gt;
&lt;br /&gt;
Once you have done that, if you are a developer, you will need to fix where the source code is:&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Go to &lt;a href="http://connect.apple.com/"&gt;http://connect.apple.com&lt;/a&gt; and download: &lt;b&gt;Java for Mac OS X 10.7 Developer Package&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Install it.&lt;/li&gt;
&lt;li&gt;Open a Terminal.app window&lt;/li&gt;
&lt;li&gt;cd /System/Library/Frameworks/JavaVM.framework/Home&lt;/li&gt;
&lt;li&gt;sudo ln -s /Library/Java/JavaVirtualMachines/1.6.0_26-b03-383.jdk/Contents/Home/src.jar .&lt;/li&gt;
&lt;li&gt;sudo ln -s /Library/Java/JavaVirtualMachines/1.6.0_26-b03-383.jdk/Contents/Home/docs.jar .&lt;/li&gt;
&lt;li&gt;sudo ln -s /Library/Java/JavaVirtualMachines/1.6.0_26-b03-383.jdk/Contents/Home/appledocs.jar .&lt;/li&gt;
&lt;/ol&gt;
p.s. The version number seems to have gone down (384 to 383) with 10.7 vs. 10.6.8 and there is now an appledocs.jar that I didn't notice before.&lt;br /&gt;
&lt;br /&gt;
p.p.s. This fixes apps like 'Network Connect' which depend on Java being installed.&lt;br /&gt;
&lt;br /&gt;
p.p.p.s. Check out &lt;a href="http://similarity.com/"&gt;Similarity.com&lt;/a&gt;. Developed on a Mac, using Java, running on Google App Engine.&lt;img src="http://feeds.feedburner.com/~r/AnOpinionOn/~4/ECpke0SBTGI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://lookfirst.com/feeds/8720274910266334498/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1033933413127832310&amp;postID=8720274910266334498" title="17 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/8720274910266334498?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/8720274910266334498?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnOpinionOn/~3/ECpke0SBTGI/lion-removes-java.html" title="Lion removes Java?" /><author><name>Jon Stevens</name><uri>https://plus.google.com/111536601970188216986</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-78KvUnyifmg/AAAAAAAAAAI/AAAAAAAABj4/Y1q07praths/s512-c/photo.jpg" /></author><thr:total>17</thr:total><feedburner:origLink>http://lookfirst.com/2011/07/lion-removes-java.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0UARHk6fCp7ImA9WhdSE0w.&quot;"><id>tag:blogger.com,1999:blog-1033933413127832310.post-2629331775322761302</id><published>2011-07-21T23:14:00.000-07:00</published><updated>2011-07-21T23:14:05.714-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-21T23:14:05.714-07:00</app:edited><title>jmxtrans - speaking engagement</title><content type="html">I did a fun short talk tonight for the&amp;nbsp;&lt;a href="http://www.meetup.com/SF-Bay-Area-Large-Scale-Production-Engineering/"&gt;SF Bay Area Large-Scale Production Engineering&lt;/a&gt;&amp;nbsp;group at the Yahoo! campus on my little open source Java monitoring project called &lt;a href="http://jmxtrans.googlecode.com/"&gt;jmxtrans&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.justin.tv/kctv88/b/290736874"&gt;Skip to 21:45&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Sorry, I was a bit nervous as this is my first talk in front of so many people in a long time.&lt;img src="http://feeds.feedburner.com/~r/AnOpinionOn/~4/ZBVgRWKgFcU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://lookfirst.com/feeds/2629331775322761302/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1033933413127832310&amp;postID=2629331775322761302" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/2629331775322761302?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/2629331775322761302?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnOpinionOn/~3/ZBVgRWKgFcU/jmxtrans-speaking-engagement.html" title="jmxtrans - speaking engagement" /><author><name>Jon Stevens</name><uri>https://plus.google.com/111536601970188216986</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-78KvUnyifmg/AAAAAAAAAAI/AAAAAAAABj4/Y1q07praths/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://lookfirst.com/2011/07/jmxtrans-speaking-engagement.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ck4NQno8eip7ImA9WhdSEEw.&quot;"><id>tag:blogger.com,1999:blog-1033933413127832310.post-8422264475147157411</id><published>2011-07-18T10:43:00.000-07:00</published><updated>2011-07-18T10:43:13.472-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-18T10:43:13.472-07:00</app:edited><title>HBase MultiTableOutputFormat writing to multiple tables in one Map Reduce Job</title><content type="html">Recently, I've been having a lot of fun learning about HBase and Hadoop. One esoteric thing I just learned about is the way that HBase tables are populated.&lt;br /&gt;
&lt;br /&gt;
By default, HBase / Map Reduce jobs can only write to a single table because you set the output handler at the job level with the job.setOutputFormatClass(). However, if you are creating an HBase table, chances are that you are going to want to build an index related to that table so that you can do fast queries on the master table. The most optimal way to do this is to write the data to both tables at the same time when you are importing the data. The alternative is to write another M/R job to do this after the fact, but that means reading all of the data twice, which is a lot of extra load on the system for no real benefit. Thus, in order to write to both tables at the same time, in the same M/R job, you need to take advantage of the MultiTableOutputFormat class to achieve this result. The key here is that when you write to the context, you specify the name of the table you are writing to. This is some basic example code (with a lot of the meat removed) which demonstrates this.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: java"&gt;static class TsvImporter extends Mapper&amp;lt;LongWritable, Text, ImmutableBytesWritable, Put&amp;gt; {
	@Override
	public void map(LongWritable offset, Text value, Context context) throws IOException {
		// contains the line of tab separated data we are working on (needs to be parsed out).
		byte[] lineBytes = value.getBytes();

		// rowKey is the hbase rowKey generated from lineBytes
		Put put = new Put(rowKey);
		// Create your KeyValue object
		put.add(kv);
		context.write("actions", put); // write to the actions table

		// rowKey2 is the hbase rowKey
		Put put = new Put(rowKey2);
		// Create your KeyValue object
		put.add(kv);
		context.write("actions_index", put); // write to the actions table
	}
}

public static Job createSubmittableJob(Configuration conf, String[] args) throws IOException {
	String pathStr = args[0];
	Path inputDir = new Path(pathStr);
	Job job = new Job(conf, "my_custom_job");
	job.setJarByClass(TsvImporter.class);
	FileInputFormat.setInputPaths(job, inputDir);
	job.setInputFormatClass(TextInputFormat.class);
	
	// this is the key to writing to multiple tables in hbase
	job.setOutputFormatClass(MultiTableOutputFormat.class);
	job.setMapperClass(TsvImporter.class);
	job.setNumReduceTasks(0);

	TableMapReduceUtil.addDependencyJars(job);
	TableMapReduceUtil.addDependencyJars(job.getConfiguration());
	return job;
}
&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/AnOpinionOn/~4/Lr0lVUXoUoA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://lookfirst.com/feeds/8422264475147157411/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1033933413127832310&amp;postID=8422264475147157411" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/8422264475147157411?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1033933413127832310/posts/default/8422264475147157411?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnOpinionOn/~3/Lr0lVUXoUoA/hbase-multitableoutputformat-writing-to.html" title="HBase MultiTableOutputFormat writing to multiple tables in one Map Reduce Job" /><author><name>Jon Stevens</name><uri>https://plus.google.com/111536601970188216986</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-78KvUnyifmg/AAAAAAAAAAI/AAAAAAAABj4/Y1q07praths/s512-c/photo.jpg" /></author><thr:total>1</thr:total><feedburner:origLink>http://lookfirst.com/2011/07/hbase-multitableoutputformat-writing-to.html</feedburner:origLink></entry></feed>
