<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description></description><title>barinek.com: the official website</title><generator>Tumblr (3.0; @barinek)</generator><link>http://www.barinek.com/</link><item><title>Pivotal at New Tech Boulder</title><description>&lt;img src="http://28.media.tumblr.com/tumblr_kyqlj4GXne1qz4ve8o1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Pivotal at New Tech Boulder&lt;/p&gt;</description><link>http://www.barinek.com/post/425374882</link><guid>http://www.barinek.com/post/425374882</guid><pubDate>Wed, 03 Mar 2010 19:57:04 -0700</pubDate></item><item><title>pivotal labs is hiring in boulder</title><description>&lt;a href="http://bit.ly/info/90MWbp"&gt;pivotal labs is hiring in boulder&lt;/a&gt;</description><link>http://www.barinek.com/post/421251980</link><guid>http://www.barinek.com/post/421251980</guid><pubDate>Mon, 01 Mar 2010 20:50:00 -0700</pubDate></item><item><title>back in the day…</title><description>&lt;object width="400" height="336"&gt;&lt;param name="movie" value="http://www.youtube.com/v/JlKZRlFwC4Y&amp;rel=0&amp;egm=0&amp;showinfo=0&amp;fs=1"&gt;&lt;/param&gt;&lt;param name="wmode" value="transparent"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/JlKZRlFwC4Y&amp;rel=0&amp;egm=0&amp;showinfo=0&amp;fs=1" type="application/x-shockwave-flash" width="400" height="336" allowFullScreen="true" wmode="transparent"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;back in the day…&lt;/p&gt;</description><link>http://www.barinek.com/post/414611486</link><guid>http://www.barinek.com/post/414611486</guid><pubDate>Fri, 26 Feb 2010 21:04:00 -0700</pubDate></item><item><title> simple comet client</title><description>&lt;p&gt;Here’s a simple comet client that I’ve been using to test &lt;a href="http://www.localhash.com"&gt;&lt;a href="http://www.localhash.com"&gt;www.localhash.com&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;script src="http://gist.github.com/300837.js?file=simple+comet+client"&gt;&lt;/script&gt;&lt;/p&gt;</description><link>http://www.barinek.com/post/387200319</link><guid>http://www.barinek.com/post/387200319</guid><pubDate>Sat, 13 Feb 2010 06:41:17 -0700</pubDate><category>ruby</category><category>comet</category></item><item><title>gnip classic sauce</title><description>&lt;p&gt;Here’s a snippet of Gnip Classic Java. Sometime in 2009 we were filtering 150,000,000 activities per day, almost 2000 per second, all flowing through the below method.

&lt;/p&gt;
&lt;p&gt;&lt;script src="http://gist.github.com/290799.js?file=gnip+classic+sauce"&gt;&lt;/script&gt;&lt;!--
&lt;p&gt;Now all of our activities flow through this function and will very likely exceed 150,000,000 activities per day.

&lt;p&gt;&lt;script src="http://gist.github.com/296947.js"&gt;&lt;/script&gt;
--&gt;&lt;/p&gt;</description><link>http://www.barinek.com/post/374631173</link><guid>http://www.barinek.com/post/374631173</guid><pubDate>Sat, 06 Feb 2010 13:22:00 -0700</pubDate></item><item><title>‘87 land cruiser</title><description>&lt;img src="http://27.media.tumblr.com/tumblr_kxc73kvjtA1qz4ve8o1_r1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;‘87 land cruiser&lt;/p&gt;</description><link>http://www.barinek.com/post/371108409</link><guid>http://www.barinek.com/post/371108409</guid><pubDate>Thu, 04 Feb 2010 14:49:00 -0700</pubDate></item><item><title>farrar and gibbard</title><description>&lt;img src="http://26.media.tumblr.com/tumblr_kx30fd5T2O1qz4ve8o1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;farrar and gibbard&lt;/p&gt;</description><link>http://www.barinek.com/post/362036175</link><guid>http://www.barinek.com/post/362036175</guid><pubDate>Sat, 30 Jan 2010 15:42:00 -0700</pubDate><category>concerts</category></item><item><title>pubsubhubbub-rb</title><description>&lt;p&gt;Just open sourced a project on GitHub…&lt;/p&gt;

&lt;p&gt;&lt;a href="http://github.com/barinek/pubsubhubbub-rb"&gt;pubsubhubbub-rb&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The project is a Ruby port of Google’s PubSubHubbub reference implementation.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://code.google.com/p/pubsubhubbub/"&gt;&lt;a href="http://code.google.com/p/pubsubhubbub/"&gt;http://code.google.com/p/pubsubhubbub/&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://www.barinek.com/post/354768612</link><guid>http://www.barinek.com/post/354768612</guid><pubDate>Tue, 26 Jan 2010 13:04:00 -0700</pubDate><category>pubsubhubbub</category><category>ruby</category></item><item><title>localhash</title><description>&lt;p&gt;Working on LocalHash - a basic example of location based webhooks using the geohash algorithm and is possibly a PubSubHubbub extension candidate. The API was implemented using Sinatra, Redis, Thin, and Nginx.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://www.localhash.com/"&gt;&lt;a href="http://www.localhash.com"&gt;http://www.localhash.com&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://www.barinek.com/post/350967394</link><guid>http://www.barinek.com/post/350967394</guid><pubDate>Sun, 24 Jan 2010 10:01:00 -0700</pubDate><category>ruby</category><category>geohash</category></item><item><title>new mouth watering media site</title><description>&lt;a href="http://mouthwateringmedia.com"&gt;new mouth watering media site&lt;/a&gt;</description><link>http://www.barinek.com/post/345525442</link><guid>http://www.barinek.com/post/345525442</guid><pubDate>Wed, 20 Jan 2010 22:51:35 -0700</pubDate></item><item><title>Gnip Classic</title><description>&lt;img src="http://29.media.tumblr.com/tumblr_kwkaogt74M1qz4ve8o1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Gnip Classic&lt;/p&gt;</description><link>http://www.barinek.com/post/344704316</link><guid>http://www.barinek.com/post/344704316</guid><pubDate>Wed, 20 Jan 2010 13:09:52 -0700</pubDate></item><item><title>ActiveRecord MySQL Partitions</title><description>Check out the below example of how to create partitioned MySQL tables within a Rails Migration. We’ve had a handful of tables that we continually want to partition and a team member wrote the below.

&lt;p&gt;Here’s the migration snippet

&lt;/p&gt;
&lt;pre&gt;
class AddResultsTable &lt; ActiveRecord::Migration
  def self.up
    create_partitioned_table :results do |t|
&lt;/pre&gt;

&lt;p&gt;The below creates a results table partitioned by day. The example migration defaults to 4 days back and 4 days forward. We then have a few scripts to manage our partitioned tables.

&lt;/p&gt;
&lt;p&gt;Here’s the rails source

&lt;script src="http://gist.github.com/281358.js?file=ActiveRecord+MySQL+Partitions"&gt;&lt;/script&gt;&lt;/p&gt;</description><link>http://www.barinek.com/post/344513914</link><guid>http://www.barinek.com/post/344513914</guid><pubDate>Wed, 20 Jan 2010 10:01:00 -0700</pubDate><category>ruby</category><category>rails</category><category>mysql</category></item><item><title>Rails LRU Memory Store</title><description>&lt;p&gt;&lt;a href="http://snipplr.com/view/17124/ruby-lru-cache/"&gt;via snipplr&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;script src="http://gist.github.com/280542.js?file=LRU+Memory+Store"&gt;&lt;/script&gt;&lt;/p&gt;</description><link>http://www.barinek.com/post/342764427</link><guid>http://www.barinek.com/post/342764427</guid><pubDate>Tue, 19 Jan 2010 08:18:36 -0700</pubDate><category>ruby</category><category>rails</category></item><item><title>mySQLgame</title><description>&lt;a href="http://mysqlgame.com/"&gt;mySQLgame&lt;/a&gt;</description><link>http://www.barinek.com/post/340925039</link><guid>http://www.barinek.com/post/340925039</guid><pubDate>Mon, 18 Jan 2010 07:13:25 -0700</pubDate></item><item><title>http://magazine.jamsbio.com/2009/01/05/playing-the-beatles-backwards-the-ultimate-countdown/</title><description>&lt;a href="http://magazine.jamsbio.com/2009/01/05/playing-the-beatles-backwards-the-ultimate-countdown/"&gt;http://magazine.jamsbio.com/2009/01/05/playing-the-beatles-backwards-the-ultimate-countdown/&lt;/a&gt;</description><link>http://www.barinek.com/post/333481040</link><guid>http://www.barinek.com/post/333481040</guid><pubDate>Wed, 13 Jan 2010 20:52:00 -0700</pubDate></item><item><title>nginx with thin and monk</title><description>The below script is a continuation of my last aws post, however instead of installing Phusion Passenger and Rails, the script installs Thin and Monk. Monk is glue framework for Rack  and &lt;a href="http://www.sinatrarb.com/"&gt;Sinatra&lt;/a&gt;.

&lt;p&gt;Here are the links to the software detailed in the script.

&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href="http://nginx.org/"&gt;Nginx&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://code.macournoyer.com/thin/"&gt;Thin&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://monkrb.com/"&gt;Monk&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;As before, the first part of the script removes pre-configured ruby packages and installs ruby and rubygems from scratch and the second part of the script installs nginx with ssl support and then sets up an example monk application.

&lt;/p&gt;
&lt;p&gt;Here is the full example

&lt;script src="http://gist.github.com/270377.js?file=nginx+with+thin+and+monk"&gt;&lt;/script&gt;&lt;/p&gt;</description><link>http://www.barinek.com/post/332986486</link><guid>http://www.barinek.com/post/332986486</guid><pubDate>Wed, 13 Jan 2010 15:35:00 -0700</pubDate><category>aws</category><category>ruby</category></item><item><title>nginx with passenger and rails</title><description>The below script walks you through setting up Nginx with Phusion Passenger and Rails. The script is intended for use with &lt;a href="http://www.rightscale.com/"&gt;RightScale&lt;/a&gt; and &lt;a href="http://aws.amazon.com/"&gt;Amazon Web Services (AWS)&lt;/a&gt;.

&lt;p&gt;Here are the links to the software detailed in the script.

&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href="http://nginx.org/"&gt;Nginx&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://www.modrails.com/"&gt;Phusion Passenger&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://rubyonrails.org/"&gt;Ruby on Rails&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The first part of the script removes pre-configured ruby packages and installs ruby and rubygems from scratch.

&lt;/p&gt;
&lt;p&gt;The second part of the script installs nginx with ssl support and then sets up an example rails application.

&lt;/p&gt;
&lt;p&gt;Here is the full example

&lt;script src="http://gist.github.com/270375.js?file=nginx+with+passenger+and+rails"&gt;&lt;/script&gt;&lt;/p&gt;</description><link>http://www.barinek.com/post/330967885</link><guid>http://www.barinek.com/post/330967885</guid><pubDate>Tue, 12 Jan 2010 12:56:02 -0700</pubDate><category>aws</category><category>ruby</category></item><item><title>the #golf swing…unfortunately how I didn’t spend my...</title><description>&lt;img src="http://30.media.tumblr.com/tumblr_kw0e1kLtwF1qz4ve8o1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;the #golf swing…unfortunately how I didn’t spend my xmas break&lt;/p&gt;</description><link>http://www.barinek.com/post/326026274</link><guid>http://www.barinek.com/post/326026274</guid><pubDate>Sat, 09 Jan 2010 19:10:00 -0700</pubDate></item><item><title>nagios ejabberd check via ruby</title><description>&lt;p&gt;Below is an example of using Ruby and &lt;a href="http://home.gna.org/xmpp4r/"&gt;xmpp4r&lt;/a&gt; to check &lt;a href="http://www.ejabberd.im/"&gt;ejabberd’s&lt;/a&gt; status from within &lt;a href="http://www.nagios.org/"&gt;nagios&lt;/a&gt;

&lt;/p&gt;
&lt;p&gt;You’ll need to define the below nagios command within you nagios config file and then include the below ruby.

&lt;/p&gt;
&lt;pre&gt;
define command {
  command_name check_xmpp
  command_line ruby /opt/nagios/plugins/check_xmpp.rb --hostname $HOSTADDRESS$ --jid username@domain.com --password password
}
&lt;/pre&gt;

Here is the ruby example

&lt;p&gt;&lt;script src="http://gist.github.com/270910.js?file=nagios+xmpp+check"&gt;&lt;/script&gt;&lt;/p&gt;</description><link>http://www.barinek.com/post/320767392</link><guid>http://www.barinek.com/post/320767392</guid><pubDate>Wed, 06 Jan 2010 19:40:00 -0700</pubDate><category>nagios</category><category>ruby</category></item><item><title>"Alice’s adventures in algebra: Wonderland solved  http://bit.ly/7nB2oI"</title><description>“Alice’s adventures in algebra: Wonderland solved  &lt;a href="http://bit.ly/7nB2oI"&gt;http://bit.ly/7nB2oI&lt;/a&gt;”&lt;br/&gt;&lt;br/&gt; - &lt;em&gt;&lt;a href="http://twitter.com/barinek/status/7411543829"&gt;barinek&lt;/a&gt;&lt;/em&gt;</description><link>http://www.barinek.com/post/318427807</link><guid>http://www.barinek.com/post/318427807</guid><pubDate>Tue, 05 Jan 2010 11:57:34 -0700</pubDate></item></channel></rss>
