<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6392102477244615852</id><updated>2011-07-07T17:13:27.556-07:00</updated><category term='snmp gui'/><category term='associate_with_list rails'/><category term='my_sleek_rails_generators rails 5tips make_resourceful haml'/><category term='rails change_column 5tips'/><category term='haml emacs'/><category term='emacs ruby'/><category term='snmp snmpget snmp snmpconf'/><category term='ruby rails debian'/><category term='snmp'/><category term='xml hpricot'/><category term='rails 5tips'/><category term='haml 5tips'/><category term='fedora ruby rails'/><category term='net-snmp snmp'/><category term='humor'/><title type='text'>drand48</title><subtitle type='html'>"so" random it needs a mantissa 48 bits long</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://drand48.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://drand48.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Tom</name><uri>http://www.blogger.com/profile/11221103889241280441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>21</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6392102477244615852.post-3200161063858189499</id><published>2009-08-05T14:25:00.000-07:00</published><updated>2009-08-05T14:26:29.935-07:00</updated><title type='text'>emacs commands to remember</title><content type='html'>to re-indent:&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;1. select the region (ctrl+h selects the entire buffer)&lt;/div&gt;&lt;div&gt;2. ctrl+alt backslash&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6392102477244615852-3200161063858189499?l=drand48.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drand48.blogspot.com/feeds/3200161063858189499/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6392102477244615852&amp;postID=3200161063858189499' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/3200161063858189499'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/3200161063858189499'/><link rel='alternate' type='text/html' href='http://drand48.blogspot.com/2009/08/emacs-commands-to-remember.html' title='emacs commands to remember'/><author><name>Tom</name><uri>http://www.blogger.com/profile/11221103889241280441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6392102477244615852.post-9019891709183390081</id><published>2008-08-05T15:08:00.000-07:00</published><updated>2008-09-22T15:29:01.422-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='fedora ruby rails'/><title type='text'>Fedora + Ruby + Rails</title><content type='html'>&lt;ul&gt;&lt;li&gt;&lt;span class="hilite1"&gt;yum&lt;/span&gt; &lt;span class="hilite2"&gt;install&lt;/span&gt; httpd mysql-server mysql mysql-devel&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="hilite2"&gt;yum install&lt;/span&gt; ruby ruby-devel ruby-irb ruby-libs ruby-rdoc ruby-ri&lt;/li&gt;&lt;li&gt;download gem and install from source&lt;/li&gt;&lt;li&gt;gem &lt;span class="hilite2"&gt;install&lt;/span&gt; &lt;span class="hilite3"&gt;rails mongrel mechanize newgem&lt;/span&gt;&lt;/li&gt;&lt;li style="font-family: verdana;"&gt;&lt;code&gt;gem install -y mysql -- --with-mysql-config=/usr/bin/mysql_config&lt;/code&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6392102477244615852-9019891709183390081?l=drand48.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drand48.blogspot.com/feeds/9019891709183390081/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6392102477244615852&amp;postID=9019891709183390081' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/9019891709183390081'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/9019891709183390081'/><link rel='alternate' type='text/html' href='http://drand48.blogspot.com/2008/08/fedora-ruby-rails.html' title='Fedora + Ruby + Rails'/><author><name>Tom</name><uri>http://www.blogger.com/profile/11221103889241280441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6392102477244615852.post-1311352693600157050</id><published>2008-08-04T00:03:00.000-07:00</published><updated>2008-08-04T00:07:31.074-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='xml hpricot'/><title type='text'>Parse XML with ruby</title><content type='html'>Use Hpricot:&lt;br /&gt;&lt;br /&gt;# @my_xml contains my xml in a String object&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code class="ruby"&gt;doc = Hpricot::XML&lt;span class="brackets"&gt;(@my_&lt;/span&gt;xml&lt;span class="brackets"&gt;)&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;Now you can do regular Hpricot to extract the xml content.  E.g.(&lt;code class="ruby"&gt;doc/"//entry/title/text()"&lt;/code&gt;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6392102477244615852-1311352693600157050?l=drand48.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drand48.blogspot.com/feeds/1311352693600157050/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6392102477244615852&amp;postID=1311352693600157050' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/1311352693600157050'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/1311352693600157050'/><link rel='alternate' type='text/html' href='http://drand48.blogspot.com/2008/08/parse-xml-with-ruby.html' title='Parse XML with ruby'/><author><name>Tom</name><uri>http://www.blogger.com/profile/11221103889241280441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6392102477244615852.post-6930477550467489596</id><published>2008-07-28T13:49:00.000-07:00</published><updated>2008-07-28T13:51:17.152-07:00</updated><title type='text'>Misc Handy Linux Commands</title><content type='html'>Create a new nic with the following IP.  The netmask will restrict access to that subnet.&lt;br /&gt;ifconfig eth0:0 172.16.41.13 netmask 255.255.255.0&lt;br /&gt;&lt;br /&gt;Disable Firewall&lt;br /&gt;iptables -F&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6392102477244615852-6930477550467489596?l=drand48.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drand48.blogspot.com/feeds/6930477550467489596/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6392102477244615852&amp;postID=6930477550467489596' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/6930477550467489596'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/6930477550467489596'/><link rel='alternate' type='text/html' href='http://drand48.blogspot.com/2008/07/misc-handy-linux-commands.html' title='Misc Handy Linux Commands'/><author><name>Tom</name><uri>http://www.blogger.com/profile/11221103889241280441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6392102477244615852.post-9090418835938159628</id><published>2008-05-27T13:55:00.000-07:00</published><updated>2008-05-27T13:57:34.730-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='humor'/><title type='text'>HO-MADE PIES - YUM!</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_jQJlL2c0ZUY/SDx1TjvoVUI/AAAAAAAAAA4/mbPMtxWFUf4/s1600-h/funny.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_jQJlL2c0ZUY/SDx1TjvoVUI/AAAAAAAAAA4/mbPMtxWFUf4/s320/funny.bmp" alt="" id="BLOGGER_PHOTO_ID_5205164248206431554" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;My boss went turkey hunting, and sent me this picture.  He said he claims it is a real sign, and he even bought a t-shirt from them.  He also mentioned waiters are only female.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6392102477244615852-9090418835938159628?l=drand48.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drand48.blogspot.com/feeds/9090418835938159628/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6392102477244615852&amp;postID=9090418835938159628' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/9090418835938159628'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/9090418835938159628'/><link rel='alternate' type='text/html' href='http://drand48.blogspot.com/2008/05/ho-made-pies-yum.html' title='HO-MADE PIES - YUM!'/><author><name>Tom</name><uri>http://www.blogger.com/profile/11221103889241280441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_jQJlL2c0ZUY/SDx1TjvoVUI/AAAAAAAAAA4/mbPMtxWFUf4/s72-c/funny.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6392102477244615852.post-8289721310723637561</id><published>2008-05-07T15:38:00.000-07:00</published><updated>2008-06-19T16:20:14.939-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ruby rails debian'/><title type='text'>Ruby + Rails + Debian</title><content type='html'>I tried a million different tutorials, and they all sucked, then my friend showed me the way.&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;comment or delete the lines currently in ﻿&lt;span style="font-size:100%;"&gt;/etc/apt/sources.list&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;add the follow lines to &lt;/span&gt;/etc/apt/sources.list&lt;br /&gt;&lt;pre&gt;&lt;code&gt;deb http://ftp.debian.org/debian/ etch main&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;deb-src http://ftp.debian.org/debian/ etch main&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;deb http://security.debian.org/ etch/updates main contrib&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;deb-src http://security.debian.org/ etch/updates main contrib&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;deb http://ftp.debian.org/debian/ testing main&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;deb-src http://ftp.debian.org/debian/ testing main&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;deb http://security.debian.org/ testing/updates main contrib&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;deb-src http://security.debian.org/ testing/updates main contrib&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Run the follow command:&lt;br /&gt;&lt;pre&gt;&lt;code&gt;apt-get update&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;/etc/apt/apt.conf should contain:&lt;br /&gt;&lt;pre&gt;&lt;code&gt;APT::Default-Release "stable";&lt;br /&gt;﻿APT::Cache-Limit "16777216";&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;run:&lt;br /&gt;&lt;pre&gt;&lt;code&gt;apt-get -t testing install ruby1.8&lt;br /&gt;apt-get -t testing install ruby1.8-dev&lt;br /&gt;apt-get -t testing install ri1.8&lt;br /&gt;apt-get -t testing install rubygems&lt;br /&gt;ln -s /usr/bin/ruby1.8 /usr/bin/ruby&lt;br /&gt;ln -s /usr/bin/ri1.8 /usr/bin/ri&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;install all the gems you want and use them!&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;All DONE!&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6392102477244615852-8289721310723637561?l=drand48.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drand48.blogspot.com/feeds/8289721310723637561/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6392102477244615852&amp;postID=8289721310723637561' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/8289721310723637561'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/8289721310723637561'/><link rel='alternate' type='text/html' href='http://drand48.blogspot.com/2008/05/ruby-rails-debian.html' title='Ruby + Rails + Debian'/><author><name>Tom</name><uri>http://www.blogger.com/profile/11221103889241280441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6392102477244615852.post-4946338658932453986</id><published>2008-05-05T20:10:00.000-07:00</published><updated>2008-05-05T20:11:53.453-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='snmp'/><title type='text'>run snmpd with perl or c modules</title><content type='html'>Make sure you run snmpd like so, when extending it with either perl or C modules:&lt;br /&gt;&lt;pre&gt;&lt;code&gt;snmpd -f -L -DnstAgentPluginObject,dlmod&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6392102477244615852-4946338658932453986?l=drand48.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drand48.blogspot.com/feeds/4946338658932453986/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6392102477244615852&amp;postID=4946338658932453986' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/4946338658932453986'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/4946338658932453986'/><link rel='alternate' type='text/html' href='http://drand48.blogspot.com/2008/05/run-snmpd-with-perl-or-c-modules.html' title='run snmpd with perl or c modules'/><author><name>Tom</name><uri>http://www.blogger.com/profile/11221103889241280441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6392102477244615852.post-8891823725125276387</id><published>2008-05-05T19:37:00.000-07:00</published><updated>2008-05-05T19:39:11.711-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='haml emacs'/><title type='text'>haml and emacs</title><content type='html'>Download the haml-mode.el file &lt;a href="http://svn.hamptoncatlin.com/haml/trunk/extra/haml-mode.el"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Then, do likewise with the ruby-mode.el file I showed you how to load before.&lt;br /&gt;&lt;br /&gt;Rock on!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6392102477244615852-8891823725125276387?l=drand48.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drand48.blogspot.com/feeds/8891823725125276387/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6392102477244615852&amp;postID=8891823725125276387' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/8891823725125276387'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/8891823725125276387'/><link rel='alternate' type='text/html' href='http://drand48.blogspot.com/2008/05/haml-and-emacs.html' title='haml and emacs'/><author><name>Tom</name><uri>http://www.blogger.com/profile/11221103889241280441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6392102477244615852.post-1833918751331082165</id><published>2008-05-05T18:21:00.000-07:00</published><updated>2008-05-05T18:49:25.230-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='emacs ruby'/><title type='text'>Ruby and Emacs!!</title><content type='html'>I usually use textmate, but when I am on Linux I am always frustrated, so I finally got emacs to recognize ruby!&lt;br /&gt;&lt;br /&gt;Here is a &lt;a href="http://svn.joyent.com/opensource/dtrace/ruby/ruby-1.8.5/misc/"&gt;link&lt;/a&gt; to where I got my ruby-mode.el file.&lt;br /&gt;&lt;br /&gt;It does not matter where you put the ruby-mode.el file, just put it somewhere pertinent.  Many people recommend:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;$HOME/.emacs.d/ruby-mode.el&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Then add the following to your .emacs file:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code class="lisp"&gt;(load "~/.emacs.d/ruby-mode")&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Now, when you open a ruby file you need to tell emacs that it is a ruby file, so open the buffer and type:&lt;br /&gt;&lt;pre&gt;&lt;code&gt;Meta-x ruby-mode&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;And everything should work&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.rattlesnake.com/intro/Loading-Files.html"&gt;This&lt;/a&gt; is also a good reference on loading an el file in emacs.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6392102477244615852-1833918751331082165?l=drand48.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drand48.blogspot.com/feeds/1833918751331082165/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6392102477244615852&amp;postID=1833918751331082165' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/1833918751331082165'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/1833918751331082165'/><link rel='alternate' type='text/html' href='http://drand48.blogspot.com/2008/05/ruby-and-emacs.html' title='Ruby and Emacs!!'/><author><name>Tom</name><uri>http://www.blogger.com/profile/11221103889241280441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6392102477244615852.post-1064754147898625058</id><published>2008-05-01T14:41:00.000-07:00</published><updated>2008-05-01T14:55:52.220-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='net-snmp snmp'/><title type='text'>Extending Net-SNMP with Perl</title><content type='html'>I am the first to avoid perl, so much so that I've never really done any perl.  However, I do have some good ruby experience, which was helpful.&lt;br /&gt;&lt;br /&gt;You can extend Net-SNMP with C, but the 3rd party libs I was interfacing with were C++ and it just was not playing nicely.  Furthermore, if you extend Net-SNMP with C you have to compile a shared lib, which isn't bad, but it must be compiled with gcc not g++, or you get warning, which is bad.&lt;br /&gt;&lt;br /&gt;If you go the perl route you get all the functionality, but it way easier to code, and much easier to debug and test!&lt;br /&gt;&lt;br /&gt;Here are a few road blocks I ran into using the examples and documentation provided by Net-SNMP.&lt;br /&gt;&lt;br /&gt;This is the way I got setValue return either a OctString or Integer?&lt;br /&gt;There are probably some constants defined but not exported or something, because their example will produce the error: "unknown var value type: 0"&lt;br /&gt;so what I need is define two new vars:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code class='perl'&gt;&lt;br /&gt;my $ASN_OCTET_STR = 4;&lt;br /&gt;my $ASN_INTEGER = 2;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;then I called setValue() like so:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code class='perl'&gt;&lt;br /&gt;$result-&gt;setValue($ASN_OCTET_STR, $my_value);&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;or&lt;br /&gt;&lt;pre&gt;&lt;code class='perl'&gt;&lt;br /&gt;$result-&gt;setValue($ASN_INTEGER, $my_value);&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Ta-Da!! Now it works.  So if you see that error you know what is going on and how to fix it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6392102477244615852-1064754147898625058?l=drand48.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drand48.blogspot.com/feeds/1064754147898625058/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6392102477244615852&amp;postID=1064754147898625058' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/1064754147898625058'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/1064754147898625058'/><link rel='alternate' type='text/html' href='http://drand48.blogspot.com/2008/05/extending-net-snmp-with-perl.html' title='Extending Net-SNMP with Perl'/><author><name>Tom</name><uri>http://www.blogger.com/profile/11221103889241280441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6392102477244615852.post-6724679949502926282</id><published>2008-05-01T13:24:00.000-07:00</published><updated>2008-05-01T13:31:14.546-07:00</updated><title type='text'>5 Rails Tips</title><content type='html'>Here are 5 tips I think everyone should know, that I use regularly in all of my rails projects.&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;a href="http://drand48.blogspot.com/2008/05/associatewithlist.html"&gt;associate_with_list&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://drand48.blogspot.com/2008/05/changecolumn.html"&gt;change_column&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://drand48.blogspot.com/2008/05/newhtmlhaml-and-edithtmlhaml.html"&gt;&lt;s&gt;new.html.haml and edit.html.haml&lt;/s&gt; form.html.haml&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://drand48.blogspot.com/2008/05/haml.html"&gt;haml&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://drand48.blogspot.com/2008/05/haml-formhtmlhaml-makeresourceful.html"&gt;html + form.html.haml + make_resourceful&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6392102477244615852-6724679949502926282?l=drand48.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drand48.blogspot.com/feeds/6724679949502926282/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6392102477244615852&amp;postID=6724679949502926282' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/6724679949502926282'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/6724679949502926282'/><link rel='alternate' type='text/html' href='http://drand48.blogspot.com/2008/05/5-rails-tips.html' title='5 Rails Tips'/><author><name>Tom</name><uri>http://www.blogger.com/profile/11221103889241280441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6392102477244615852.post-2441039067760360947</id><published>2008-05-01T12:51:00.000-07:00</published><updated>2008-05-02T09:41:09.317-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='associate_with_list rails'/><title type='text'>associate_with_list</title><content type='html'>Lets say I have a model called posts, and I have a tag for each post.  Since I plan on using the same tag over and over again, I want to just have a drop down list of all the previous tags I've used.  And I want any new tags I use to be added to the list.  Furthermore, some models might have fields that use the same list as others.&lt;br /&gt;&lt;br /&gt;This problem leads to a bunch of code duplication and messy table generation.&lt;br /&gt;&lt;br /&gt;So I decided to create associate_with_list, which is a plugin that will manage all of these lists for you, but leaves the front end up to you to make as simple or fancy as you like.&lt;br /&gt;&lt;br /&gt;First, get the plugin: &lt;a href="http://www.tomonrails.com/docs/associate_with_list.tar.gz"&gt;http://www.tomonrails.com/docs/associate_with_list.tar.gz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;After you've unzipped the plugin, and placed it in your /vendor/plugins directory, from you rails project root, run:&lt;br /&gt;&lt;pre&gt;&lt;code&gt;&lt;br /&gt;ruby ./vendor/plugins/associate_with_list/install.rb&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;This will create a migration file and run it.  The migration file creates a table in your database which will manage all these lists.&lt;br /&gt;&lt;br /&gt;Now the awesome part, tell associate_with_list to associate a column with a list.  In your model you need to add the following line:&lt;br /&gt;associate_with_list :tag&lt;br /&gt;&lt;br /&gt;You can give it an optional second parameter for the name of list which is helpful if you need to manage the same list across different fields, potentially in different models, or you might want to make sure your list is distinct for other lists you want to create. (NOTE: this plugin will even work with accessors, not just ActiveRecord::Base fields)&lt;br /&gt;&lt;br /&gt;To access my new list I now have a new instance method called tag_list which is the column_name + _list, and returns all the previous entries into the list.  This is how you use it:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code class="ruby"&gt;&lt;br /&gt;@post.tag_list&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;You can even pass this method a hash which is used just like a hash passed to ActiveRecord::Base's find method.  So for instance if I wanted to define an order in which the list is returned:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt; class="ruby"&gt;&lt;br /&gt;@post.tag_list(:order =&gt; 'value')&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;So where is the magic happening?  How are all the values getting stored into this list?  The plugin defines an after_save filter which takes the value of the field, after it has been saved, and stores it into the list if it is not already there.&lt;br /&gt;&lt;br /&gt;To delete an entry in the list just use the new instance method tag_list_remove which takes a parameter which is the value you wish to remove.  E.g.:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code class="ruby"&gt;&lt;br /&gt;@post.remove_from_tag_list 'jungle'&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;So to recap, lets create a new list for the posted_by field in my post model, and this time I want to define the list name, because I'll use the same list in another model.&lt;br /&gt;&lt;br /&gt;post.rb&lt;br /&gt;&lt;pre&gt;&lt;code class="ruby"&gt;&lt;br /&gt;associate_with_list :posted_by, :author_list&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Done!&lt;br /&gt;&lt;br /&gt;Now I can use the generated methods posted_by_list and remove_from_posted_by_list to my hearts content.&lt;br /&gt;&lt;br /&gt;UPDATE: Also if you wanted to just add values to your list you can use the dynamically generated  method add_to_[column_name]_list, which takes a single parameter, which is the value you wish to store.  So for instance in the previous example I could do:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code class='ruby'&gt;&lt;br /&gt;add_to_posted_by_list 'tdoggy'&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;This would check to see if tdoggy was already added to the :author_list (remember we associated posted_by with the author_list), and add it if not.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6392102477244615852-2441039067760360947?l=drand48.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drand48.blogspot.com/feeds/2441039067760360947/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6392102477244615852&amp;postID=2441039067760360947' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/2441039067760360947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/2441039067760360947'/><link rel='alternate' type='text/html' href='http://drand48.blogspot.com/2008/05/associatewithlist.html' title='associate_with_list'/><author><name>Tom</name><uri>http://www.blogger.com/profile/11221103889241280441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6392102477244615852.post-1639785379342244859</id><published>2008-05-01T12:37:00.000-07:00</published><updated>2008-05-01T23:09:26.375-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='my_sleek_rails_generators rails 5tips make_resourceful haml'/><title type='text'>haml + form.html.haml + make_resourceful</title><content type='html'>make_resourceful is an awesome plugin to get rid of more code duplication that is common between restfully built controllers. But how do you form.html.haml with make_resourceful? Simple:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code class="ruby"&gt;&lt;br /&gt;make_resourceful do&lt;br /&gt; actions :all&lt;br /&gt;&lt;br /&gt; response_for :new, :edit do |format|&lt;br /&gt;   format.html { render :template =&gt; 'controller_name/form' }&lt;br /&gt; end&lt;br /&gt;end&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Haml, form.html.haml, and make_resource are all great but it gets old generating a scaffold or controller and now you have to go convert all the files to haml, delete new and edit files and create form.html.haml, and delete your controller code to replace it with make_resourcefull.  With that much editing it hardly makes using the scaffold generator worthwhile.&lt;br /&gt;&lt;br /&gt;This is why I created my_sleek_rails_generators.  Which has all the same functionality as rails scaffold and controller generators.  You even use the respective generators with the same syntax on the command line.&lt;br /&gt;&lt;br /&gt;You can can get the plugin here: &lt;a href="http://www.tomonrails.com/docs/my_sleek_rails_generators.tar.gz"&gt;http://www.tomonrails.com/docs/my_sleek_rails_generators.tar.gz&lt;/a&gt;&lt;a href="http://www.tomonrails.com/docs/associate_with_list.tar.gz"&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Now you have a scaffold generator that you can actually enjoy using without a whole bunch of code re-write.&lt;br /&gt;&lt;br /&gt;NOTE:  I plan to keep updating this plugin with more generators for different things, so make sure to keep it updated for the latest and greatest generators.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6392102477244615852-1639785379342244859?l=drand48.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drand48.blogspot.com/feeds/1639785379342244859/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6392102477244615852&amp;postID=1639785379342244859' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/1639785379342244859'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/1639785379342244859'/><link rel='alternate' type='text/html' href='http://drand48.blogspot.com/2008/05/haml-formhtmlhaml-makeresourceful.html' title='haml + form.html.haml + make_resourceful'/><author><name>Tom</name><uri>http://www.blogger.com/profile/11221103889241280441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6392102477244615852.post-7397984911011398530</id><published>2008-05-01T12:29:00.000-07:00</published><updated>2008-05-05T18:21:25.269-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='rails 5tips'/><title type='text'>new.html.haml and edit.html.haml form.html.haml</title><content type='html'>More often than not, new.html.haml and edit.html.haml are virtually identical. Well this is very un-rails-ish. So instead I delete new and edit views, and replace them with a single form view.&lt;br /&gt;&lt;br /&gt;You can then use the following in your controller's new and edit methods to make them both use the form.html.haml template instead of their respective defaults:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code class="ruby"&gt;render :template =&gt; 'controller/form'&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;Before rails 2.0 this would not have been a very elegant thing to do, but with the new form_for method, it assumes a restful implementation and will therefore submit to the appropriate create or update action.  So without any extra code you can elegantly have just one form for both new and edit.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6392102477244615852-7397984911011398530?l=drand48.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drand48.blogspot.com/feeds/7397984911011398530/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6392102477244615852&amp;postID=7397984911011398530' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/7397984911011398530'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/7397984911011398530'/><link rel='alternate' type='text/html' href='http://drand48.blogspot.com/2008/05/newhtmlhaml-and-edithtmlhaml.html' title='&lt;s&gt;new.html.haml and edit.html.haml&lt;/s&gt; form.html.haml'/><author><name>Tom</name><uri>http://www.blogger.com/profile/11221103889241280441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6392102477244615852.post-7215251203655616195</id><published>2008-05-01T12:05:00.000-07:00</published><updated>2008-05-01T23:04:10.154-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='haml 5tips'/><title type='text'>haml</title><content type='html'>Many have heard of and started using haml already, but since this is my list for 5 tips for rails, I cannot leave this out.&lt;br /&gt;&lt;br /&gt;It is very simple to install and use haml, like most things ruby and/or/on rails. There are a couple of things that took me a few minutes that I would like to show quickly.&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;To install the haml gem:&lt;span style="font-family:monospace;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;sudo gem install haml&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;Get it working on your rails project after installing the gem:&lt;br /&gt;&lt;pre&gt;&lt;code&gt;&lt;br /&gt;cd /path/to/rails_project&lt;br /&gt;&lt;code&gt;haml --rails .&lt;/code&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Here is a quick haml demo to create the layout&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;code class="haml"&gt;&lt;br /&gt;!!! XML&lt;br /&gt;!!! STRICT&lt;br /&gt;%html&lt;/code&gt;{html_attrs}&lt;br /&gt;%head&lt;br /&gt; %title&lt;br /&gt;   Application:&lt;br /&gt;   =controller.action_name&lt;br /&gt; %body&lt;br /&gt;   -if is_admin?&lt;br /&gt;     You are admin&lt;br /&gt;     %br{:clear =&gt; 'all'}&lt;br /&gt;&lt;br /&gt;   #main&lt;br /&gt;     =yield&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Some things to note:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;erb uses &lt;%= ... %&gt; and &lt;%- ... %&gt; haml just uses = and - respectively.&lt;/li&gt;&lt;li&gt;haml does NOT use end tags of any kind, it only looks at the spacing/tabs (tab = 2 spaces, and yes you must use spaces).  This is easily seen with the if statement.  the yield is not part of the if block because it is aligned with the if, not tabbed under it.&lt;/li&gt;&lt;li&gt;The braces beside a %tag, for instance with %b, constitue a hash that allows you to set the properties of the tag.  You can set styles, ids, or anything else you want&lt;/li&gt;&lt;li&gt;#name creates a div with id = name&lt;br /&gt;&lt;/li&gt;&lt;li&gt;.name create a class with id = name&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;Why is this cool?  It is faster to write, easier to for designers to look at it.  Furthermore, erb will not tab the views inside of a layout or partials inside of a view to line up with the rest of the document.  Haml does, and this make it so much easier to look at the read.&lt;br /&gt;&lt;br /&gt;for more on haml go to &lt;a href="http://haml.hamptoncatlin.com/"&gt;http://haml.hamptoncatlin.com&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6392102477244615852-7215251203655616195?l=drand48.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drand48.blogspot.com/feeds/7215251203655616195/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6392102477244615852&amp;postID=7215251203655616195' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/7215251203655616195'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/7215251203655616195'/><link rel='alternate' type='text/html' href='http://drand48.blogspot.com/2008/05/haml.html' title='haml'/><author><name>Tom</name><uri>http://www.blogger.com/profile/11221103889241280441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6392102477244615852.post-2204580009733355407</id><published>2008-05-01T11:57:00.000-07:00</published><updated>2008-05-01T12:04:59.452-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='rails change_column 5tips'/><title type='text'>change_column</title><content type='html'>I know this might seem basic, but I did not know that for many of the operations change_column will retain the data in the column.&lt;br /&gt;&lt;br /&gt;Here are some of the thing change_column can do without loosing data:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;changing or setting default values&lt;/li&gt;&lt;li&gt;changing the name of the column&lt;/li&gt;&lt;li&gt;you can even change the column data type for certain data type mappings&lt;/li&gt;&lt;/ul&gt;Remember that it might make a difference as to which db you're using.  I did my tests on a sqlite3 db.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6392102477244615852-2204580009733355407?l=drand48.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drand48.blogspot.com/feeds/2204580009733355407/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6392102477244615852&amp;postID=2204580009733355407' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/2204580009733355407'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/2204580009733355407'/><link rel='alternate' type='text/html' href='http://drand48.blogspot.com/2008/05/changecolumn.html' title='change_column'/><author><name>Tom</name><uri>http://www.blogger.com/profile/11221103889241280441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6392102477244615852.post-3155815315418271124</id><published>2008-04-25T09:07:00.000-07:00</published><updated>2008-04-25T09:23:29.731-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='snmp'/><title type='text'>snmp manage load</title><content type='html'>snmp will monitor the load over a 1, 5,  and 15 minute average.&lt;br /&gt;&lt;br /&gt;e.g.:&lt;br /&gt;&lt;br /&gt;load 5 6 7&lt;br /&gt;&lt;br /&gt;This tells the load should be under 5 for 1 min ave&lt;br /&gt;This tells the load should be under 6 for 5 min ave&lt;br /&gt;This tells the load should be under 7 for 15 min ave&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6392102477244615852-3155815315418271124?l=drand48.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drand48.blogspot.com/feeds/3155815315418271124/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6392102477244615852&amp;postID=3155815315418271124' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/3155815315418271124'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/3155815315418271124'/><link rel='alternate' type='text/html' href='http://drand48.blogspot.com/2008/04/snmp-load-management.html' title='snmp manage load'/><author><name>Tom</name><uri>http://www.blogger.com/profile/11221103889241280441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6392102477244615852.post-3515372795241349574</id><published>2008-04-25T09:04:00.000-07:00</published><updated>2008-04-25T09:06:59.587-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='snmp'/><title type='text'>snmp manage proc</title><content type='html'>Add proc monitoring to snmpd.conf:&lt;br /&gt;&lt;br /&gt;proc my_proc_name [max_instances] [min_instances]&lt;br /&gt;&lt;br /&gt;This will monitor dbid:&lt;br /&gt;proc dbid&lt;br /&gt;&lt;br /&gt;This will make sure dbid has no more than 3 instances&lt;br /&gt;proc dbid 3&lt;br /&gt;&lt;br /&gt;This will makesure dbid has not more than 3 and no less than 1 instance&lt;br /&gt;proc dbid 3 1&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6392102477244615852-3515372795241349574?l=drand48.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drand48.blogspot.com/feeds/3515372795241349574/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6392102477244615852&amp;postID=3515372795241349574' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/3515372795241349574'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/3515372795241349574'/><link rel='alternate' type='text/html' href='http://drand48.blogspot.com/2008/04/snmp-manage-proc.html' title='snmp manage proc'/><author><name>Tom</name><uri>http://www.blogger.com/profile/11221103889241280441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6392102477244615852.post-4858286491906887424</id><published>2008-04-25T08:46:00.000-07:00</published><updated>2008-04-25T09:07:12.455-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='snmp'/><title type='text'>snmp manage disk</title><content type='html'>Add disk monitoring to snmpd.conf:&lt;br /&gt;&lt;br /&gt;disk /&lt;br /&gt;disk /boot&lt;br /&gt;disk /usr&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6392102477244615852-4858286491906887424?l=drand48.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drand48.blogspot.com/feeds/4858286491906887424/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6392102477244615852&amp;postID=4858286491906887424' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/4858286491906887424'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/4858286491906887424'/><link rel='alternate' type='text/html' href='http://drand48.blogspot.com/2008/04/snmp-manage-disk.html' title='snmp manage disk'/><author><name>Tom</name><uri>http://www.blogger.com/profile/11221103889241280441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6392102477244615852.post-1574905546838597738</id><published>2008-04-24T12:37:00.000-07:00</published><updated>2008-04-24T12:43:42.245-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='snmp gui'/><title type='text'>snmp remote gui browser</title><content type='html'>Normally I am all about command line, but if you need to use windows I really recommend using &lt;a href="http://www.snmp-probe.com"&gt;SNMP-Probe&lt;/a&gt;.  It has a 10 day trial and is only 15 USD for a license.  It is really nice for us snmp noobs.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6392102477244615852-1574905546838597738?l=drand48.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drand48.blogspot.com/feeds/1574905546838597738/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6392102477244615852&amp;postID=1574905546838597738' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/1574905546838597738'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/1574905546838597738'/><link rel='alternate' type='text/html' href='http://drand48.blogspot.com/2008/04/snmp-remote-gui-browser.html' title='snmp remote gui browser'/><author><name>Tom</name><uri>http://www.blogger.com/profile/11221103889241280441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6392102477244615852.post-6951803985664898505</id><published>2008-04-24T08:45:00.000-07:00</published><updated>2008-04-24T08:51:40.199-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='snmp snmpget snmp snmpconf'/><title type='text'>snmp config setup for snmpd</title><content type='html'>Snmp is really cool, but seems to difficult to setup.  I kept getting a "Timeout: No Response from localhost" when I would try to run snmpget to query the mib.  I checked the snmpd log and it said that conf was probably bad and that snmpd would probably not be very useful.&lt;br /&gt;&lt;br /&gt;I then stumbled on:&lt;br /&gt;snmpconf -g basic_setup&lt;br /&gt;&lt;br /&gt;If you're a noob to , like me, this will probably save your bacon.  I just followed in guide.  Oh btw, you probably want to make a community name of public.  This will be helpful when following tutorials that will often use the -c option and assign the value public.  e.g. snmpget -v 1 -c public localhost SNMPv2-MIB::sysUpTime.0&lt;br /&gt;&lt;br /&gt;Btw, remember to move the snmpd.conf file to /path/to/snmp/share/snmp/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6392102477244615852-6951803985664898505?l=drand48.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drand48.blogspot.com/feeds/6951803985664898505/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6392102477244615852&amp;postID=6951803985664898505' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/6951803985664898505'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6392102477244615852/posts/default/6951803985664898505'/><link rel='alternate' type='text/html' href='http://drand48.blogspot.com/2008/04/snmp-config-setup-for-snmpd.html' title='snmp config setup for snmpd'/><author><name>Tom</name><uri>http://www.blogger.com/profile/11221103889241280441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
