<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: Jm3's Code Snippets</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Fri, 08 Aug 2008 15:34:21 GMT</pubDate>
    <description>DZone Snippets: Jm3's Code Snippets</description>
    <item>
      <title>how to create a new user in MySQL</title>
      <link>http://snippets.dzone.com/posts/show/5277</link>
      <description>// first, mysql -uroot mysql&lt;br /&gt;// then:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;br /&gt;  mysql% GRANT ALL PRIVILEGES ON *.* TO 'jm3_spoon'@'localhost' IDENTIFIED BY 'stirthatshit' WITH GRANT OPTION;&lt;br /&gt;  mysql% create database jm3_agitator;&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Mon, 24 Mar 2008 04:06:23 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/5277</guid>
      <author>jm3 (john manoogian III)</author>
    </item>
    <item>
      <title>google / urchin analytics</title>
      <link>http://snippets.dzone.com/posts/show/5194</link>
      <description>what up with this style of google analytics implementation?&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;body onload="_uacct='UA-XXXXXX-X';urchinTracker();init();"&gt;&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Sun, 02 Mar 2008 22:55:31 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/5194</guid>
      <author>jm3 (john manoogian III)</author>
    </item>
    <item>
      <title>dynamic rails img headers</title>
      <link>http://snippets.dzone.com/posts/show/4737</link>
      <description>// description of your code here&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;find views -name [a-z]\*rhtml | xargs -n1 grep -H "@page_title" | grep -v "&lt;%" | sed "s/\@page_title = //" | sed "s/rhtml/png/" | sed "s:views/::" | sed "s:/:_:g" | sed "s:^:public/images/beta/headers/hdr_:" | sed "s/  //g"&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Tue, 06 Nov 2007 00:52:30 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4737</guid>
      <author>jm3 (john manoogian III)</author>
    </item>
    <item>
      <title>disable SQL / MySQL in rails logging in development mode</title>
      <link>http://snippets.dzone.com/posts/show/4727</link>
      <description>// description of your code here&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;ActiveRecord::Base.logger = Logger.new("#{RAILS_ROOT}/log/#{RAILS_ENV}_database.log")&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;goes at end of config/env</description>
      <pubDate>Fri, 02 Nov 2007 00:09:50 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4727</guid>
      <author>jm3 (john manoogian III)</author>
    </item>
    <item>
      <title>switch from rails model and rails view (for current action) - colon shift R</title>
      <link>http://snippets.dzone.com/posts/show/4648</link>
      <description>SNIP</description>
      <pubDate>Fri, 12 Oct 2007 21:18:07 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4648</guid>
      <author>jm3 (john manoogian III)</author>
    </item>
    <item>
      <title>toggle between last edited buffer :  control-shift-6</title>
      <link>http://snippets.dzone.com/posts/show/4647</link>
      <description>// description of your code here&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;// insert code here..&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Fri, 12 Oct 2007 21:17:30 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4647</guid>
      <author>jm3 (john manoogian III)</author>
    </item>
    <item>
      <title>bash : make tab completion of similarly named files not suck ass</title>
      <link>http://snippets.dzone.com/posts/show/4446</link>
      <description>// description of your code here&lt;br /&gt;&lt;br /&gt;add this to your ~/.bashrc (auto-chooses the first completion and cycles thru them w/tab)&lt;br /&gt;&lt;code&gt;&lt;br /&gt;bind '"\t":menu-complete'&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;and / or add this to your ~/.inputrc (shows all completions right away)&lt;br /&gt;&lt;code&gt;&lt;br /&gt;set show-all-if-ambiguous on&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;</description>
      <pubDate>Wed, 22 Aug 2007 23:31:04 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4446</guid>
      <author>jm3 (john manoogian III)</author>
    </item>
    <item>
      <title>hitbox / WSS docs</title>
      <link>http://snippets.dzone.com/posts/show/4433</link>
      <description>from pro-serve training: http://pso.hitbox.com/edmu/200607/&lt;br /&gt;</description>
      <pubDate>Sun, 19 Aug 2007 18:55:37 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4433</guid>
      <author>jm3 (john manoogian III)</author>
    </item>
    <item>
      <title>unix wizards of the realm:</title>
      <link>http://snippets.dzone.com/posts/show/4432</link>
      <description>// SVN ignore based on .cvsignore file:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;svn propset svn:ignore -F .cvsignore .&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;// grep:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;  &#8230; with line number: -n&lt;br /&gt;  &#8230; with file name: -H&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;// os x housekeeping:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;// install perl module:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;sudo perl -MCPAN -e 'install Bundle::LWP'&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;// meta refresh (i have never typed this line start to finish in my life. i have probably copy-pasted it 7,000 times&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;meta http-equiv=Refresh content="0; URL=http://blog.jm3.net/" /&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;// get files off codeswami:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;ssh -l cs 208.101.26.91&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;// SQL tricks:&lt;br /&gt;http://jm3.net/cgi-bin/safe/wiki.pl?MySqlLibrary&lt;br /&gt;</description>
      <pubDate>Sun, 19 Aug 2007 17:34:54 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4432</guid>
      <author>jm3 (john manoogian III)</author>
    </item>
    <item>
      <title>enable svn $Id$-style keywords</title>
      <link>http://snippets.dzone.com/posts/show/4414</link>
      <description> svn propset svn:keywords "Date Author Id Revision" *css</description>
      <pubDate>Sun, 12 Aug 2007 00:29:14 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4414</guid>
      <author>jm3 (john manoogian III)</author>
    </item>
  </channel>
</rss>
