<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>james young &#187; Uncategorized</title>
	<atom:link href="http://psyjinx.com/jyoung/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://psyjinx.com/jyoung</link>
	<description>web application developer</description>
	<lastBuildDate>Fri, 05 Mar 2010 18:55:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Use BeyondCompare as default Diff in Visual Studio with Team Foundation Server</title>
		<link>http://psyjinx.com/jyoung/2010/03/use-beyondcompare-as-default-diff-in-visual-studio-with-team-foundation-server/</link>
		<comments>http://psyjinx.com/jyoung/2010/03/use-beyondcompare-as-default-diff-in-visual-studio-with-team-foundation-server/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 18:55:39 +0000</pubDate>
		<dc:creator>James Young</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[beyondcompare]]></category>
		<category><![CDATA[diff]]></category>
		<category><![CDATA[teamfoundationserver]]></category>
		<category><![CDATA[tfs]]></category>
		<category><![CDATA[visualstudio2008]]></category>

		<guid isPermaLink="false">http://psyjinx.com/jyoung/?p=258</guid>
		<description><![CDATA[<p>http://www.scootersoftware.com/support.php?c=kb_vcs.php</p>
<p>   1. In Visual Studio Choose Options from the Tools menu.
   2. Expand Source Control in the treeview.
   3. Click Visual Studio Team Foundation Server in the treeview.
   4. Click the Configure User Tools button.
   5. Click the Add button.
   6. Enter &#8220;.*&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>http://www.scootersoftware.com/support.php?c=kb_vcs.php</p>
<p>   1. In Visual Studio Choose Options from the Tools menu.<br />
   2. Expand Source Control in the treeview.<br />
   3. Click Visual Studio Team Foundation Server in the treeview.<br />
   4. Click the Configure User Tools button.<br />
   5. Click the Add button.<br />
   6. Enter &#8220;.*&#8221; in the Extension edit.<br />
   7. Choose Compare in the Operation combobox.<br />
   8. Enter the path to BComp.exe in the Command edit.<br />
   9. In the Arguments edit, use:<br />
      %1 %2 /title1=%6 /title2=%7 </p>
]]></content:encoded>
			<wfw:commentRss>http://psyjinx.com/jyoung/2010/03/use-beyondcompare-as-default-diff-in-visual-studio-with-team-foundation-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP.NET links</title>
		<link>http://psyjinx.com/jyoung/2010/02/asp-net-links/</link>
		<comments>http://psyjinx.com/jyoung/2010/02/asp-net-links/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 11:37:05 +0000</pubDate>
		<dc:creator>James Young</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[asp]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://psyjinx.com/jyoung/?p=252</guid>
		<description><![CDATA[<p>If you suddenly need to learn ASP.NET / C#&#8230;</p>
<p>ASP.NET for PHP Developers</p>
<p>ASP.NET for PHP Developers Part 2</p>
<p>ASP.NET from Scratch Lesson 1</p>
<p>ASP.NET from Scratch Lesson 2</p>
<p>ASP.NET from Scratch Lesson 3</p>
]]></description>
			<content:encoded><![CDATA[<p>If you suddenly need to learn ASP.NET / C#&#8230;</p>
<p><a href="http://net.tutsplus.com/tutorials/asp-net/asp-net-for-php-developers/">ASP.NET for PHP Developers</a></p>
<p><a href="http://net.tutsplus.com/tutorials/asp-net/asp-net-for-php-developers-part-2/">ASP.NET for PHP Developers Part 2</a></p>
<p><a href="http://net.tutsplus.com/videos/screencasts/asp-net-from-scratch-lesson-1/">ASP.NET from Scratch Lesson 1</a></p>
<p><a href="http://net.tutsplus.com/videos/screencasts/asp-net-from-scratch-lesson-2/">ASP.NET from Scratch Lesson 2</a></p>
<p><a href="http://net.tutsplus.com/videos/screencasts/asp-net-from-scratch-lesson-3/">ASP.NET from Scratch Lesson 3</a></p>
]]></content:encoded>
			<wfw:commentRss>http://psyjinx.com/jyoung/2010/02/asp-net-links/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MediaWiki Radius Authentication Extension &#8211; RadiusAuthPlugin</title>
		<link>http://psyjinx.com/jyoung/2010/02/mediawiki-radius-authentication-extension-radiusauthplugin/</link>
		<comments>http://psyjinx.com/jyoung/2010/02/mediawiki-radius-authentication-extension-radiusauthplugin/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 02:26:52 +0000</pubDate>
		<dc:creator>James Young</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[code example]]></category>
		<category><![CDATA[mediawiki]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[radius]]></category>
		<category><![CDATA[wiki]]></category>

		<guid isPermaLink="false">http://psyjinx.com/jyoung/?p=244</guid>
		<description><![CDATA[<p>Here is an extension / plugin for mediawiki to authenticate against a Radius server.  I couldn&#8217;t find one anywhere else, which is surprising.  I can&#8217;t believe I am the first person to want to do this.  Anyway, this is just bare bones, but it works for an internal mediawiki setup.</p>
<p>First, get Pure [...]]]></description>
			<content:encoded><![CDATA[<p>Here is an extension / plugin for mediawiki to authenticate against a Radius server.  I couldn&#8217;t find one anywhere else, which is surprising.  I can&#8217;t believe I am the first person to want to do this.  Anyway, this is just bare bones, but it works for an internal mediawiki setup.</p>
<p>First, get Pure PHP radius class 1.2.2 from <a href="http://developer.sysco.ch/php">http://developer.sysco.ch/php</a>.  This does the actual radius authentication.  Put radius.class.php in wiki/extensions/ (assuming wiki is your mediawiki install).  There is probably a better place to put it, but I was setting this up for internal use and wanted to get it working quickly.</p>
<p>Next, create wiki/extensions/RadiusAuthPlugin.php.  Make sure you fill in RADIUS_SERVER, SHARED_SECRET, and NAS_IP_ADDRESS with your actual information</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'AuthPlugin.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'radius.class.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #990000;">error_reporting</span><span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">E_ALL</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">class</span> RadiusAuthPlugin <span style="color: #000000; font-weight: bold;">extends</span> AuthPlugin
<span style="color: #009900;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">function</span> userExists<span style="color: #009900;">&#40;</span><span style="color: #000088;">$username</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">TRUE</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
&nbsp;
    <span style="color: #000000; font-weight: bold;">function</span> authenticate<span style="color: #009900;">&#40;</span><span style="color: #000088;">$username</span><span style="color: #339933;">,</span> <span style="color: #000088;">$password</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$username</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strtolower</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$username</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #000088;">$radius</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Radius<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'RADIUS_SERVER'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'SHARED_SECRET'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$radius</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetNasIpAddress</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'NAS_IP_ADDRESS'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Needed for some devices (not always auto-detected)</span>
        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$radius</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">AccessRequest</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$username</span><span style="color: #339933;">,</span> <span style="color: #000088;">$password</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
        <span style="color: #009900;">&#123;</span>
            <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">TRUE</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
&nbsp;
        <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">FALSE</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
&nbsp;
    <span style="color: #000000; font-weight: bold;">function</span> modifyUITemplate<span style="color: #009900;">&#40;</span><span style="color: #339933;">&amp;</span><span style="color: #000088;">$template</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$template</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'usedomain'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">FALSE</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$template</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'useemail'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">FALSE</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$template</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'create'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">FALSE</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
&nbsp;
    <span style="color: #000000; font-weight: bold;">function</span> autoCreate<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">TRUE</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
&nbsp;
    <span style="color: #000000; font-weight: bold;">function</span> validDomain<span style="color: #009900;">&#40;</span><span style="color: #000088;">$domain</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">TRUE</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
&nbsp;
    <span style="color: #000000; font-weight: bold;">function</span> updateUser<span style="color: #009900;">&#40;</span><span style="color: #339933;">&amp;</span><span style="color: #000088;">$user</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">TRUE</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
&nbsp;
    <span style="color: #000000; font-weight: bold;">function</span> allowPasswordChange<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">FALSE</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
&nbsp;
    <span style="color: #000000; font-weight: bold;">function</span> setPassword<span style="color: #009900;">&#40;</span><span style="color: #000088;">$password</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">FALSE</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
&nbsp;
    <span style="color: #000000; font-weight: bold;">function</span> updateExternalDB<span style="color: #009900;">&#40;</span><span style="color: #000088;">$user</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">FALSE</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
    <span style="color: #000000; font-weight: bold;">function</span> canCreateAccounts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">FALSE</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
    <span style="color: #000000; font-weight: bold;">function</span> adduser<span style="color: #009900;">&#40;</span><span style="color: #000088;">$user</span><span style="color: #339933;">,</span> <span style="color: #000088;">$password</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">FALSE</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
&nbsp;
    <span style="color: #000000; font-weight: bold;">function</span> strict<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">TRUE</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
&nbsp;
    <span style="color: #000000; font-weight: bold;">function</span> initUser<span style="color: #009900;">&#40;</span><span style="color: #339933;">&amp;</span><span style="color: #000088;">$user</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #000088;">$wgExtensionCredits</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'other'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
    <span style="color: #0000ff;">'name'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'RadiusAuthPlugin'</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'version'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'1.0.0'</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'author'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'James Young'</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'description'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Automatic login with a RADIUS server'</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Lastly, put this in your LocalSetup.php:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;./extensions/RadiusAuthPlugin.php&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$wgAuth</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> RadiusAuthPlugin<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$wgGroupPermissions</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'*'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'createaccount'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://psyjinx.com/jyoung/2010/02/mediawiki-radius-authentication-extension-radiusauthplugin/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to open files from cygwin into Visual Studio</title>
		<link>http://psyjinx.com/jyoung/2010/02/how-to-open-files-from-cygwin-into-visual-studio/</link>
		<comments>http://psyjinx.com/jyoung/2010/02/how-to-open-files-from-cygwin-into-visual-studio/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 07:02:03 +0000</pubDate>
		<dc:creator>James Young</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[cygwin]]></category>
		<category><![CDATA[dotfiles]]></category>
		<category><![CDATA[mintty]]></category>
		<category><![CDATA[visualstudio2008]]></category>

		<guid isPermaLink="false">http://psyjinx.com/jyoung/?p=242</guid>
		<description><![CDATA[<p>Had the desire to open files from the command line (a cygwin terminal, mintty, to be specific) into my existing session of Visual Studio 2008.  Here is what you can do.</p>
<p>Adjust paths as necessary.  Put this in your bash profile:</p>

export PATH=$PATH:/cygdrive/c/Program\ Files\ \&#40;x86\&#41;/Microsoft\ Visual\ Studio\ 9.0/Common7/IDE/
alias devedit=&#34;devenv \$1 /edit&#34;

<p>Now, this gives you two [...]]]></description>
			<content:encoded><![CDATA[<p>Had the desire to open files from the command line (a cygwin terminal, mintty, to be specific) into my existing session of Visual Studio 2008.  Here is what you can do.</p>
<p>Adjust paths as necessary.  Put this in your bash profile:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PATH</span>=<span style="color: #007800;">$PATH</span>:<span style="color: #000000; font-weight: bold;">/</span>cygdrive<span style="color: #000000; font-weight: bold;">/</span>c<span style="color: #000000; font-weight: bold;">/</span>Program\ Files\ \<span style="color: #7a0874; font-weight: bold;">&#40;</span>x86\<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #000000; font-weight: bold;">/</span>Microsoft\ Visual\ Studio\ <span style="color: #000000;">9.0</span><span style="color: #000000; font-weight: bold;">/</span>Common7<span style="color: #000000; font-weight: bold;">/</span>IDE<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">devedit</span>=<span style="color: #ff0000;">&quot;devenv <span style="color: #000099; font-weight: bold;">\$</span>1 /edit&quot;</span></pre></div></div>

<p>Now, this gives you two tools. Well, one, but two will be available on the command line.</p>
<p>The main tool you now have is devenv, which allows you to do all sorts of things.  type <code>devenv /?</code> to see all the things you can do with it.</p>
<p>We are interested in <code>devenv filename /edit</code>.  I would prefer to just type the filename, and not need to type /edit everytime. The alias devedit takes care of this for us.  So, you can do <code>devenv whatever</code> to have access to all the features that tool gives you, and you can do <code>devedit filename</code> to quickly open up the file in your existing Visual Studio session.  If there is no session running, it will start one up.</p>
]]></content:encoded>
			<wfw:commentRss>http://psyjinx.com/jyoung/2010/02/how-to-open-files-from-cygwin-into-visual-studio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to open a window from terminal in cygwin on vista</title>
		<link>http://psyjinx.com/jyoung/2010/02/how-to-open-a-window-from-terminal-in-cygwin-on-vista/</link>
		<comments>http://psyjinx.com/jyoung/2010/02/how-to-open-a-window-from-terminal-in-cygwin-on-vista/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 11:42:11 +0000</pubDate>
		<dc:creator>James Young</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[cygwin]]></category>
		<category><![CDATA[dotfiles]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://psyjinx.com/jyoung/?p=237</guid>
		<description><![CDATA[<p>So I got a new Dell through work with Vista installed.  Naturally one of the first things I did was install cygwin so I can use mintty.  This gives me a decent terminal on widnows.  If you don&#8217;t know what those are, I encourage you to give them a shot.</p>
<p>Anyway, having used [...]]]></description>
			<content:encoded><![CDATA[<p>So I got a new Dell through work with Vista installed.  Naturally one of the first things I did was install cygwin so I can use mintty.  This gives me a decent terminal on widnows.  If you don&#8217;t know what those are, I encourage you to give them a shot.</p>
<p>Anyway, having used a mac forever, I found myself missing the &#8216;open&#8217; command that you can do from Terminal (on the mac) to pop open a window from the directory you are in.</p>
<p>With a quick search, I found that someone else already figured this out, so I am going to post my version of it here:</p>
<p>In your .bash_profile, add this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">open</span>=<span style="color: #ff0000;">&quot;cygstart <span style="color: #000099; font-weight: bold;">\$</span>1&quot;</span></pre></div></div>

<p>Then in mintty (or any cygwin terminal) you can cd to where ever you want, then just do &#8216;open [path]&#8216; and it will pop open a windows window for [path].</p>
<p>Examples:</p>
<ul>
<li>open current directory: <code>$ open .</code></li>
<li>open home directory : <code>$ open ~</code></li>
<li>open program files: <code>$ open ~/c/Program\ Files</code></li>
</ul>
<p>Note: that last one assumes you have made a symlink in your home to /cygdrive/c/</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #7a0874; font-weight: bold;">cd</span> ~; <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>cygdrive<span style="color: #000000; font-weight: bold;">/</span>c</pre></div></div>

<p>Here is the original thread that I found this tip in:<br />
<a href="http://cygwin.com/ml/cygwin/2002-09/msg00632.html">http://cygwin.com/ml/cygwin/2002-09/msg00632.html</a></p>
<p>There are a few solutions posted, my favorite is:<br />
<a href="http://cygwin.com/ml/cygwin/2002-09/msg00635.html">http://cygwin.com/ml/cygwin/2002-09/msg00635.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://psyjinx.com/jyoung/2010/02/how-to-open-a-window-from-terminal-in-cygwin-on-vista/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>My .vimrc</title>
		<link>http://psyjinx.com/jyoung/2010/02/my-vimrc/</link>
		<comments>http://psyjinx.com/jyoung/2010/02/my-vimrc/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 04:13:26 +0000</pubDate>
		<dc:creator>James Young</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[dotfiles]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://psyjinx.com/jyoung/?p=230</guid>
		<description><![CDATA[
&#34; vim 7.x specific
&#160;
&#34; set to be more vim like
set nocompatible
&#160;
&#34; check paths for .ros alternatives
set includeexpr=substitute&#40;v:fname,'$','.ros','g'&#41;
&#160;
&#34; hide buffers when they go away with :bd
set hidden
&#160;
&#34; set tabs
set expandtab
set tabstop=4
set shiftwidth=4
set autoindent
set cindent
&#160;
&#34; window management
set number
set ruler
set showmode
set laststatus=2
set history=500
set cursorline
au WinLeave * set nocursorline
au WinEnter * set cursorline
&#160;
&#34; search
set incsearch
set hlsearch
set smartcase
&#160;
&#34; colors
syntax on
colorscheme [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="vim" style="font-family:monospace;"><span style="color: #adadad; font-style: italic;">&quot; vim 7.x specific</span>
&nbsp;
<span style="color: #adadad; font-style: italic;">&quot; set to be more vim like</span>
set nocompatible
&nbsp;
<span style="color: #adadad; font-style: italic;">&quot; check paths for .ros alternatives</span>
set includeexpr=<span style="color: #25BB4D;">substitute</span><span style="color: #000000;">&#40;</span>v<span style="color: #000000;">:</span>fname,<span style="color: #C5A22D;">'$'</span>,<span style="color: #C5A22D;">'.ros'</span>,<span style="color: #C5A22D;">'g'</span><span style="color: #000000;">&#41;</span>
&nbsp;
<span style="color: #adadad; font-style: italic;">&quot; hide buffers when they go away with :bd</span>
set hidden
&nbsp;
<span style="color: #adadad; font-style: italic;">&quot; set tabs</span>
set expandtab
set tabstop=<span style="color: #000000; font-weight:bold;">4</span>
set shiftwidth=<span style="color: #000000; font-weight:bold;">4</span>
set autoindent
set <span style="color: #25BB4D;">cindent</span>
&nbsp;
<span style="color: #adadad; font-style: italic;">&quot; window management</span>
set number
set ruler
set showmode
set laststatus=<span style="color: #000000; font-weight:bold;">2</span>
set history=<span style="color: #000000; font-weight:bold;">500</span>
set cursorline
au WinLeave <span style="color: #000000;">*</span> set nocursorline
au WinEnter <span style="color: #000000;">*</span> set cursorline
&nbsp;
<span style="color: #adadad; font-style: italic;">&quot; search</span>
set incsearch
set hlsearch
set smartcase
&nbsp;
<span style="color: #adadad; font-style: italic;">&quot; colors</span>
syntax on
colorscheme desert
set showmatch
au BufRead,BufNewFile <span style="color: #000000;">*.</span>ros set filetype=php
au BufRead,BufNewFile <span style="color: #000000;">*.</span>js<span style="color: #000000;">.</span>ros set filetype=javascript
au BufRead,BufNewFile <span style="color: #000000;">*.</span>css<span style="color: #000000;">.</span>ros set filetype=css
highlight Comment ctermfg=<span style="color: #000000; font-weight:bold;">6</span> 
highlight Folded ctermfg=<span style="color: #000000; font-weight:bold;">7</span> ctermbg=<span style="color: #000000; font-weight:bold;">0</span>
highlight LineNr ctermfg=<span style="color: #000000; font-weight:bold;">6</span> ctermbg=<span style="color: #000000; font-weight:bold;">0</span>
&nbsp;
<span style="color: #adadad; font-style: italic;">&quot; misc</span>
set title
set sc
&nbsp;
<span style="color: #adadad; font-style: italic;">&quot; use wildmenu</span>
set wildmenu
set wildmode=list<span style="color: #000000;">:</span>longest,full
set wildignore<span style="color: #000000;">+</span>=<span style="color: #000000;">*.</span>0,<span style="color: #000000;">*.</span>class,<span style="color: #000000;">*.</span>pyc,<span style="color: #000000;">*.</span>pyo,<span style="color: #000000;">*/</span>CVS<span style="color: #000000;">/</span>,<span style="color: #000000;">*.</span>jar
&nbsp;
<span style="color: #adadad; font-style: italic;">&quot; turn word wrap off</span>
set nowrap
&nbsp;
<span style="color: #adadad; font-style: italic;">&quot; get the backup files in ~/.tmp/</span>
<span style="color: #adadad; font-style: italic;">&quot;#set backupdir=~/.tmp/</span>
<span style="color: #adadad; font-style: italic;">&quot;set directory=~/.tmp/</span>
&nbsp;
<span style="color: #adadad; font-style: italic;">&quot; folding</span>
set foldmethod=marker
&nbsp;
<span style="color: #adadad; font-style: italic;">&quot; If I remember correctly this makes C-k look up things in php_doc</span>
set keywordprg=<span style="color: #000000;">/</span><span style="color: #000000;">&#91;</span>path to<span style="color: #000000;">&#93;</span><span style="color: #000000;">/</span>php_doc
&nbsp;
<span style="color: #adadad; font-style: italic;">&quot; hide the mouse while typing</span>
set mousehide</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://psyjinx.com/jyoung/2010/02/my-vimrc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My .screenrc</title>
		<link>http://psyjinx.com/jyoung/2010/02/my-screenrc/</link>
		<comments>http://psyjinx.com/jyoung/2010/02/my-screenrc/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 13:24:19 +0000</pubDate>
		<dc:creator>James Young</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[dotfiles]]></category>
		<category><![CDATA[screen]]></category>

		<guid isPermaLink="false">http://psyjinx.com/jyoung/?p=223</guid>
		<description><![CDATA[<p>This .screenrc has a bunch of commented out lines that I don&#8217;t use, but I know if I delete them, I will need them for some reason and wish I didn&#8217;t.</p>

# Use CTRL-&#60;space&#62; as the escape sequence instead of CTRL-A
# this seems to only work on certain machines
escape '^@^@'
&#160;
# Use ` as the escape sequence [...]]]></description>
			<content:encoded><![CDATA[<p>This .screenrc has a bunch of commented out lines that I don&#8217;t use, but I know if I delete them, I will need them for some reason and wish I didn&#8217;t.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Use CTRL-&lt;space&gt; as the escape sequence instead of CTRL-A</span>
<span style="color: #666666; font-style: italic;"># this seems to only work on certain machines</span>
escape <span style="color: #ff0000;">'^@^@'</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Use ` as the escape sequence instead of CTRL-A</span>
<span style="color: #666666; font-style: italic;">#escape ``</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Once you learn to use the screen scrollback, you'll never scroll in terminal again!</span>
defscrollback <span style="color: #000000;">20000</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Aesthetic Stuff</span>
vbell off
hardstatus alwayslastline
&nbsp;
hardstatus string <span style="color: #ff0000;">&quot;%{gk}[ %{G}%H %{g}][%= %{wk}%?%-Lw%?%{r}(%{W}%n*%f %t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %m/%d %{W}%c %{g}]&quot;</span>
<span style="color: #666666; font-style: italic;">#hardstatus string '%{= kc}%H%{g} %{kw}%?%-Lw%?%{W}%n%f%t%?(%u)%?%{w}%?%+Lw%?%=%{c}%m/%d %C %{w}%l%'</span>
<span style="color: #666666; font-style: italic;">#hardstatus string '%{= cK}%-Lw%{= KW}%50&gt;%n%f* %t%{= cK}%+Lw%&lt; %{= kG}%-=%D %d %M %Y %c:%s%{-}'</span>
<span style="color: #666666; font-style: italic;">#hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f %t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %m/%d %{W}%c %{g}]'</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Rebind PuTTY &lt;C-?&gt; (127) backspace to &lt;C-H&gt;</span>
bindkey <span style="color: #660033;">-k</span> kD stuff ^H
&nbsp;
<span style="color: #666666; font-style: italic;"># Rebind PuTTY &lt;del&gt; to &lt;right&gt;&lt;backspace&gt;</span>
<span style="color: #666666; font-style: italic;">#bindkey &quot;^[[3~&quot; stuff ^[OC^H</span>
&nbsp;
term xterm-color
setenv SCREEN_TERM <span style="color: #c20cb9; font-weight: bold;">screen</span>
startup_message off
&nbsp;
<span style="color: #666666; font-style: italic;">#termcapinfo  xterm Z0=\E[?3h:Z1=\E[?3l:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l</span>
<span style="color: #666666; font-style: italic;">#termcapinfo  xterm-color Z0=\E[?3h:Z1=\E[?3l:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://psyjinx.com/jyoung/2010/02/my-screenrc/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>My .ssh/config</title>
		<link>http://psyjinx.com/jyoung/2010/02/my-sshconfig/</link>
		<comments>http://psyjinx.com/jyoung/2010/02/my-sshconfig/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 13:16:02 +0000</pubDate>
		<dc:creator>James Young</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[dotfiles]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://psyjinx.com/jyoung/?p=219</guid>
		<description><![CDATA[<p>Sorry, this has to be edited for security reasons&#8230;</p>

Host &#91;hostname1&#93; &#91;hostname2&#93; &#91;hostname3&#93;
    ProxyCommand ssh &#91;hostname&#93; /usr/local/bin/nc -w 5 %h %p
&#160;
Host &#91;hostname1&#93; &#91;hostname2&#93; &#91;hostname3&#93; 
    Compression yes
&#160;
# defaults
Host *
    Protocol 2,1
    PubkeyAuthentication yes
    RSAAuthentication yes
    PasswordAuthentication yes
  [...]]]></description>
			<content:encoded><![CDATA[<p>Sorry, this has to be edited for security reasons&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Host <span style="color: #7a0874; font-weight: bold;">&#91;</span>hostname1<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>hostname2<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>hostname3<span style="color: #7a0874; font-weight: bold;">&#93;</span>
    ProxyCommand <span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #c20cb9; font-weight: bold;">hostname</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>nc <span style="color: #660033;">-w</span> <span style="color: #000000;">5</span> <span style="color: #000000; font-weight: bold;">%</span>h <span style="color: #000000; font-weight: bold;">%</span>p
&nbsp;
Host <span style="color: #7a0874; font-weight: bold;">&#91;</span>hostname1<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>hostname2<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>hostname3<span style="color: #7a0874; font-weight: bold;">&#93;</span> 
    Compression <span style="color: #c20cb9; font-weight: bold;">yes</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># defaults</span>
Host <span style="color: #000000; font-weight: bold;">*</span>
    Protocol <span style="color: #000000;">2</span>,<span style="color: #000000;">1</span>
    PubkeyAuthentication <span style="color: #c20cb9; font-weight: bold;">yes</span>
    RSAAuthentication <span style="color: #c20cb9; font-weight: bold;">yes</span>
    PasswordAuthentication <span style="color: #c20cb9; font-weight: bold;">yes</span>
    PreferredAuthentications publickey,password,keyboard-interactive
    ForwardAgent <span style="color: #c20cb9; font-weight: bold;">yes</span>
    ForwardX11 no
    ServerAliveCountMax <span style="color: #000000;">3</span>
    ServerAliveInterval <span style="color: #000000;">600</span>
&nbsp;
Host <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #c20cb9; font-weight: bold;">hostname</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>
HostName <span style="color: #7a0874; font-weight: bold;">&#91;</span>ip address<span style="color: #7a0874; font-weight: bold;">&#93;</span>
    Port <span style="color: #7a0874; font-weight: bold;">&#91;</span>port number<span style="color: #7a0874; font-weight: bold;">&#93;</span>
    User <span style="color: #7a0874; font-weight: bold;">&#91;</span>username<span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://psyjinx.com/jyoung/2010/02/my-sshconfig/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My .bash_profile</title>
		<link>http://psyjinx.com/jyoung/2010/02/my-bash_profile/</link>
		<comments>http://psyjinx.com/jyoung/2010/02/my-bash_profile/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 13:11:10 +0000</pubDate>
		<dc:creator>James Young</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[dotfiles]]></category>

		<guid isPermaLink="false">http://psyjinx.com/jyoung/?p=216</guid>
		<description><![CDATA[<p>.bash_profile, .profile, .bash_rc &#8230;</p>

if &#91; &#34;$PS1&#34; != &#34;&#34; &#93;; then
    PROMPT_COMMAND='echo -ne &#34;\033]0;${HOSTNAME}: ${PWD}\007&#34;'
    PS1=&#34;[\e[1;33m\u::${HOSTNAME} \t\[\e[1;35m\e[0m\]]$ &#34;
fi
&#160;
alias ls='ls -G'
alias ll='ls -l'
alias la='ll -a'
alias env='env &#124; sort'
alias ..='cd ..'
alias :e=vim
alias grepr='grep -rHn'
# finds and removes the ._ files that textmate creates
alias findmatefiles='find . -name ._*'
alias rmmatefiles='find . -name ._* -exec [...]]]></description>
			<content:encoded><![CDATA[<p>.bash_profile, .profile, .bash_rc &#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$PS1</span>&quot;</span> <span style="color: #000000; font-weight: bold;">!</span>= <span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
    <span style="color: #007800;">PROMPT_COMMAND</span>=<span style="color: #ff0000;">'echo -ne &quot;\033]0;${HOSTNAME}: ${PWD}\007&quot;'</span>
    <span style="color: #007800;">PS1</span>=<span style="color: #ff0000;">&quot;[\e[1;33m\u::<span style="color: #007800;">${HOSTNAME}</span> <span style="color: #000099; font-weight: bold;">\t</span>\[\e[1;35m\e[0m\]]$ &quot;</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">ls</span></span>=<span style="color: #ff0000;">'ls -G'</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">ll</span>=<span style="color: #ff0000;">'ls -l'</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">la</span>=<span style="color: #ff0000;">'ll -a'</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">env</span></span>=<span style="color: #ff0000;">'env | sort'</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> ..=<span style="color: #ff0000;">'cd ..'</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> :<span style="color: #007800;">e</span>=<span style="color: #c20cb9; font-weight: bold;">vim</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">grepr</span>=<span style="color: #ff0000;">'grep -rHn'</span>
<span style="color: #666666; font-style: italic;"># finds and removes the ._ files that textmate creates</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">findmatefiles</span>=<span style="color: #ff0000;">'find . -name ._*'</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">rmmatefiles</span>=<span style="color: #ff0000;">'find . -name ._* -exec rm {} \;'</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">DEVROOT</span>=~<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">HISTFILE</span>=<span style="color: #007800;">$HOME</span><span style="color: #000000; font-weight: bold;">/</span>.bash_history
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">HISTSIZE</span>=<span style="color: #000000;">5000</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PATH</span>=<span style="color: #007800;">$HOME</span><span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>y<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>X11R6<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>y<span style="color: #000000; font-weight: bold;">/</span>sbin:<span style="color: #000000; font-weight: bold;">/</span>sbin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>sbin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span>bin:.
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">GREP_OPTIONS</span>=<span style="color: #ff0000;">'--color=auto'</span>
&nbsp;
setenv <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #7a0874; font-weight: bold;">export</span> $<span style="color: #000000;">1</span>=<span style="color: #ff0000;">&quot;$2&quot;</span>; <span style="color: #7a0874; font-weight: bold;">&#125;</span>
unsetenv <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #7a0874; font-weight: bold;">unset</span> <span style="color: #007800;">$*</span>; <span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://psyjinx.com/jyoung/2010/02/my-bash_profile/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Example of an offline web app</title>
		<link>http://psyjinx.com/jyoung/2009/12/example-of-an-offline-web-app/</link>
		<comments>http://psyjinx.com/jyoung/2009/12/example-of-an-offline-web-app/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 16:54:25 +0000</pubDate>
		<dc:creator>James Young</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[code example]]></category>
		<category><![CDATA[manifest]]></category>
		<category><![CDATA[offline storage]]></category>

		<guid isPermaLink="false">http://psyjinx.com/jyoung/?p=204</guid>
		<description><![CDATA[<p>The app: http://psyjinx.com/iphone/</p>
<p>This is a very simple webapp.  It displays images that iPhones and iPod Touches can use as wallpaper.  There isn&#8217;t really a need for offline use with the iPhone, but the iPod Touch could benefit from it.  It took me about 10 minutes to learn what to do, and implement [...]]]></description>
			<content:encoded><![CDATA[<p>The app: <a href="http://psyjinx.com/iphone/">http://psyjinx.com/iphone/</a></p>
<p>This is a very simple webapp.  It displays images that iPhones and iPod Touches can use as wallpaper.  There isn&#8217;t really a need for offline use with the iPhone, but the iPod Touch could benefit from it.  It took me about 10 minutes to learn what to do, and implement it for full offline use. The key to making a web app work offline is to add a manifest file.</p>
<p><span id="more-204"></span><br />
The manifest file: I named mine page.manifest, but it can be anything.manifest.  The first line must be CACHE MANIFEST</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;">CACHE MANIFEST
&nbsp;
<span style="color: #adadad; font-style: italic;"># html</span>
index.html
&nbsp;
<span style="color: #adadad; font-style: italic;"># images</span>
wallpaper1.jpg
wallpaper2.jpg
wallpaper3.jpg 
wallpaper4.jpg
wallpaper6.jpg
wallpaper7.jpg
wallpaper8.jpg
background.png
favicon.ico</pre></div></div>

<p>Add this to your html file:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;html manifest='page.manifest'&gt;</pre></div></div>

<p>The manifest file must be served as text/cache-manifest.  Add this to your apache conf file in the mines section.  My apache  install had a mime.types file</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;">text/cache-manifest    manifest</pre></div></div>

<p>Restart apache and you are done</p>
<p>References:</p>
<ul>
<li><a href="http://developer.apple.com/iphone/library/documentation/AppleApplications/Reference/SafariWebContent/Client-SideStorage/Client-SideStorage.html">http://developer.apple.com/iphone/library/documentation/AppleApplications/Reference/SafariWebContent/Client-SideStorage/Client-SideStorage.html</a></li>
<li><a href="http://www.thecssninja.com/javascript/how-to-create-offline-webapps-on-the-iphone">http://www.thecssninja.com/javascript/how-to-create-offline-webapps-on-the-iphone</a></li>
<li><a href="http://www.w3.org/TR/offline-webapps/#offline">http://www.w3.org/TR/offline-webapps/#offline</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://psyjinx.com/jyoung/2009/12/example-of-an-offline-web-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
