<?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>Blog of Ortz &#187; Computers</title>
	<atom:link href="http://ortz.org/category/computers/feed/" rel="self" type="application/rss+xml" />
	<link>http://ortz.org</link>
	<description>The blog of Brian Ortiz aka Ortzinator, software developer, artist, and a swell guy.</description>
	<lastBuildDate>Thu, 22 Dec 2011 00:34:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>SVN Repository Creation Script (Gentoo)</title>
		<link>http://ortz.org/2008/11/13/svn-repository-creation-script-gentoo/</link>
		<comments>http://ortz.org/2008/11/13/svn-repository-creation-script-gentoo/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 05:07:32 +0000</pubDate>
		<dc:creator>Ortzinator</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>
		<guid isPermaLink="false">http://blog.ortz.org/?p=148</guid>
		<description><![CDATA[Another lazily written yet useful script I wrote for creating SVN repositories in Gentoo. This script is based on this great guide at Rockfloat. Could use some improvement, like another argument for the name of the user getting access to the repo&#8230; Again, apologies for the line wrapping&#8230; Fixed Code below the fold. #!/bin/bash #Copyright [...]]]></description>
			<content:encoded><![CDATA[<p>Another lazily written yet useful script I wrote for creating SVN repositories in Gentoo.</p>
<p>This script is based on <a href="http://www.rockfloat.com/howto/gentoo-subversion.html">this great guide at Rockfloat</a>.</p>
<p>Could use some improvement, like another argument for the name of the user getting access to the repo&#8230;</p>
<p><span style="text-decoration: line-through;"><em>Again, apologies for the line wrapping&#8230;</em></span><em> Fixed</em></p>
<p><em>Code below the fold.<br />
</em></p>
<p><span id="more-148"></span></p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #666666; font-style: italic;">#Copyright (c) 2008 Brian Ortiz &quot;Ortzinator&quot;</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#Permission is hereby granted, free of charge, to any person obtaining a copy</span>
<span style="color: #666666; font-style: italic;">#of this software and associated documentation files (the &quot;Software&quot;), to deal</span>
<span style="color: #666666; font-style: italic;">#in the Software without restriction, including without limitation the rights</span>
<span style="color: #666666; font-style: italic;">#to use, copy, modify, merge, publish, distribute, sublicense, and/or sell</span>
<span style="color: #666666; font-style: italic;">#copies of the Software, and to permit persons to whom the Software is</span>
<span style="color: #666666; font-style: italic;">#furnished to do so, subject to the following conditions:</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#The above copyright notice and this permission notice shall be included in</span>
<span style="color: #666666; font-style: italic;">#all copies or substantial portions of the Software.</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR</span>
<span style="color: #666666; font-style: italic;">#IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</span>
<span style="color: #666666; font-style: italic;">#FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE</span>
<span style="color: #666666; font-style: italic;">#AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER</span>
<span style="color: #666666; font-style: italic;">#LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,</span>
<span style="color: #666666; font-style: italic;">#OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN</span>
<span style="color: #666666; font-style: italic;">#THE SOFTWARE.</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$#</span> <span style="color: #660033;">-ne</span> <span style="color: #000000;">1</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000; font-weight: bold;">then</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Exactly one argument required&quot;</span>
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-d</span> <span style="color: #ff0000;">&quot;/var/svn/repos/$1&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000; font-weight: bold;">then</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;ERROR: directory '<span style="color: #007800;">$dir</span>' already exists!&quot;</span>
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>
<span style="color: #000000; font-weight: bold;">else</span>
<span style="color: #c20cb9; font-weight: bold;">svnadmin</span> create <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>svn<span style="color: #000000; font-weight: bold;">/</span>repos<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$1</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Error 1&quot;</span>; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>; <span style="color: #7a0874; font-weight: bold;">&#125;</span>
<span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> apache:svnusers <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>svn<span style="color: #000000; font-weight: bold;">/</span>repos<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Error 2&quot;</span>; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>; <span style="color: #7a0874; font-weight: bold;">&#125;</span>
<span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #660033;">-R</span> g-w <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>svn<span style="color: #000000; font-weight: bold;">/</span>repos<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$1</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Error 3&quot;</span>; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>; <span style="color: #7a0874; font-weight: bold;">&#125;</span>
<span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #660033;">-R</span> g+rw <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>svn<span style="color: #000000; font-weight: bold;">/</span>repos<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$1</span><span style="color: #000000; font-weight: bold;">/</span>db <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Error 4&quot;</span>; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>; <span style="color: #7a0874; font-weight: bold;">&#125;</span>
<span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #660033;">-R</span> g+rw <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>svn<span style="color: #000000; font-weight: bold;">/</span>repos<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$1</span><span style="color: #000000; font-weight: bold;">/</span>locks <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Error 5&quot;</span>; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>; <span style="color: #7a0874; font-weight: bold;">&#125;</span>
<span style="color: #c20cb9; font-weight: bold;">svn</span> <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #c20cb9; font-weight: bold;">file</span>:<span style="color: #000000; font-weight: bold;">///</span>var<span style="color: #000000; font-weight: bold;">/</span>svn<span style="color: #000000; font-weight: bold;">/</span>repos<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$1</span><span style="color: #000000; font-weight: bold;">/</span>trunk <span style="color: #660033;">-m</span> <span style="color: #ff0000;">&quot;Create trunk directory&quot;</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Error 6&quot;</span>; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>; <span style="color: #7a0874; font-weight: bold;">&#125;</span>
<span style="color: #c20cb9; font-weight: bold;">svn</span> <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #c20cb9; font-weight: bold;">file</span>:<span style="color: #000000; font-weight: bold;">///</span>var<span style="color: #000000; font-weight: bold;">/</span>svn<span style="color: #000000; font-weight: bold;">/</span>repos<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$1</span><span style="color: #000000; font-weight: bold;">/</span>tags <span style="color: #660033;">-m</span> <span style="color: #ff0000;">&quot;Create tags directory&quot;</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Error 7&quot;</span>; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>; <span style="color: #7a0874; font-weight: bold;">&#125;</span>
<span style="color: #c20cb9; font-weight: bold;">svn</span> <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #c20cb9; font-weight: bold;">file</span>:<span style="color: #000000; font-weight: bold;">///</span>var<span style="color: #000000; font-weight: bold;">/</span>svn<span style="color: #000000; font-weight: bold;">/</span>repos<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$1</span><span style="color: #000000; font-weight: bold;">/</span>branches <span style="color: #660033;">-m</span> <span style="color: #ff0000;">&quot;Create branches directory&quot;</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Error 8&quot;</span>; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>; <span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;[$1:/]
* = r
brian = rw&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>svn<span style="color: #000000; font-weight: bold;">/</span>conf<span style="color: #000000; font-weight: bold;">/</span>svnpolicy
&nbsp;
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span>
<span style="color: #000000; font-weight: bold;">fi</span></pre></div></div>
]]></content:encoded>
			<wfw:commentRss>http://ortz.org/2008/11/13/svn-repository-creation-script-gentoo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache Vhost Creation Script (Gentoo)</title>
		<link>http://ortz.org/2008/11/13/apache-vhost-creation-script-gentoo/</link>
		<comments>http://ortz.org/2008/11/13/apache-vhost-creation-script-gentoo/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 05:00:46 +0000</pubDate>
		<dc:creator>Ortzinator</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[subdomain]]></category>
		<category><![CDATA[vhost]]></category>
		<guid isPermaLink="false">http://blog.ortz.org/?p=143</guid>
		<description><![CDATA[Well I decided to post more of the stuff I write even if I think it&#8217;s crappy&#8230;. So even though there&#8217;s probably a dozen like this and it could be a lot nicer, here&#8217;s the bash script I wrote to create new subdomains on my web server. Customize to fit your needs. My apologies for [...]]]></description>
			<content:encoded><![CDATA[<p>Well I decided to post more of the stuff I write even if I think it&#8217;s crappy&#8230;.</p>
<p>So even though there&#8217;s probably a dozen like this and it could be a lot nicer, here&#8217;s the bash script I wrote to create new subdomains on my web server. Customize to fit your needs.</p>
<p><span style="text-decoration: line-through;"><em>My apologies for the line wrapping.</em></span><em> </em><em>Fixed</em></p>
<p><em>Code below the fold</em><br />
<span id="more-143"></span></p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #666666; font-style: italic;">#Copyright (c) 2008 Brian Ortiz &quot;Ortzinator&quot;</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#Permission is hereby granted, free of charge, to any person obtaining a copy</span>
<span style="color: #666666; font-style: italic;">#of this software and associated documentation files (the &quot;Software&quot;), to deal</span>
<span style="color: #666666; font-style: italic;">#in the Software without restriction, including without limitation the rights</span>
<span style="color: #666666; font-style: italic;">#to use, copy, modify, merge, publish, distribute, sublicense, and/or sell</span>
<span style="color: #666666; font-style: italic;">#copies of the Software, and to permit persons to whom the Software is</span>
<span style="color: #666666; font-style: italic;">#furnished to do so, subject to the following conditions:</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#The above copyright notice and this permission notice shall be included in</span>
<span style="color: #666666; font-style: italic;">#all copies or substantial portions of the Software.</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR</span>
<span style="color: #666666; font-style: italic;">#IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</span>
<span style="color: #666666; font-style: italic;">#FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE</span>
<span style="color: #666666; font-style: italic;">#AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER</span>
<span style="color: #666666; font-style: italic;">#LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,</span>
<span style="color: #666666; font-style: italic;">#OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN</span>
<span style="color: #666666; font-style: italic;">#THE SOFTWARE.</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$#</span> <span style="color: #660033;">-ne</span> <span style="color: #000000;">1</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000; font-weight: bold;">then</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Exactly one argument required&quot;</span>
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #007800;">dir</span>=<span style="color: #ff0000;">&quot;/var/www/$1&quot;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-d</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$dir</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000; font-weight: bold;">then</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;ERROR: directory '<span style="color: #007800;">$dir</span>' already exists!&quot;</span>
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>
<span style="color: #000000; font-weight: bold;">else</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Creating directory '<span style="color: #007800;">$dir</span>'&quot;</span>
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #007800;">$dir</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Could not create directory '<span style="color: #007800;">$dir</span>'&quot;</span>; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>; <span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Creating directory '<span style="color: #007800;">$dir</span>/htdocs'&quot;</span>
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #007800;">$dir</span><span style="color: #000000; font-weight: bold;">/</span>htdocs  <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Could not create directory '<span style="color: #007800;">$dir</span>/htdocs'&quot;</span>; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>; <span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Setting permissions...&quot;</span>
<span style="color: #c20cb9; font-weight: bold;">chown</span> apache:htdocs <span style="color: #007800;">$dir</span>  <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Error setting permissions for '<span style="color: #007800;">$dir</span>'&quot;</span>; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>; <span style="color: #7a0874; font-weight: bold;">&#125;</span>
<span style="color: #c20cb9; font-weight: bold;">chown</span> apache:htdocs <span style="color: #007800;">$dir</span><span style="color: #000000; font-weight: bold;">/</span>htdocs  <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Error setting permissions for '<span style="color: #007800;">$dir</span>/htdocs'&quot;</span>; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>; <span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;
&nbsp;
Placeholder lol
&nbsp;
&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #007800;">$dir</span><span style="color: #000000; font-weight: bold;">/</span>htdocs<span style="color: #000000; font-weight: bold;">/</span>index.html
<span style="color: #c20cb9; font-weight: bold;">chown</span> brian:brian <span style="color: #007800;">$dir</span><span style="color: #000000; font-weight: bold;">/</span>htdocs<span style="color: #000000; font-weight: bold;">/</span>index.html  <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Error setting permissions for '<span style="color: #007800;">$dir</span>/htdocs/index.html'&quot;</span>; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>; <span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #660033;">-R</span> <span style="color: #000000;">775</span> <span style="color: #007800;">$dir</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;
&nbsp;
ServerName $1.ortz.org
DocumentRoot /var/www/$1/htdocs
&nbsp;
Allow from all
AllowOverride all
Order allow,deny
&nbsp;
&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>vhosts.d<span style="color: #000000; font-weight: bold;">/</span>00_default_vhost.conf <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Could not add vhost to apache config!&quot;</span>; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>; <span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Restarting apache.....&quot;</span>
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 restart <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Could not restart apache!&quot;</span>; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>; <span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;All done!&quot;</span>
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span>
<span style="color: #000000; font-weight: bold;">fi</span></pre></div></div>
<p><strong>EDIT: Check out the improved version Blokkie posted in the comments.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://ortz.org/2008/11/13/apache-vhost-creation-script-gentoo/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Linux and New Windows</title>
		<link>http://ortz.org/2008/03/13/linux-and-new-windows/</link>
		<comments>http://ortz.org/2008/03/13/linux-and-new-windows/#comments</comments>
		<pubDate>Thu, 13 Mar 2008 16:17:16 +0000</pubDate>
		<dc:creator>Ortzinator</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Bluefish]]></category>
		<category><![CDATA[D]]></category>
		<category><![CDATA[gedit]]></category>
		<category><![CDATA[hard drive]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Notepad++]]></category>
		<category><![CDATA[Wine]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[XNA]]></category>
		<guid isPermaLink="false">http://blog.ortz.org/2008/03/13/linux-and-new-windows/</guid>
		<description><![CDATA[Got my hard drive on Monday, so by now I&#8217;m pretty settled in. I know it sounds like I&#8217;m moving to a new house or something, but for the past two weeks I&#8217;ve been using Linux on my server, and I&#8217;ve felt like I&#8217;ve had a bag over my head. This is absolutely nothing against [...]]]></description>
			<content:encoded><![CDATA[<p>Got my hard drive on Monday, so by now I&#8217;m pretty settled in. I know it sounds like I&#8217;m moving to a new house or something, but for the past two weeks I&#8217;ve been using Linux on my server, and I&#8217;ve felt like I&#8217;ve had a bag over my head. This is absolutely nothing against Linux, I suppose it&#8217;s just the effect of being in a different environment. It&#8217;s really hard to get things done with this sort of feeling. It&#8217;s a bit like jet lag I guess.</p>
<p><span id="more-62"></span></p>
<p>For the most part, my two week experience was fun. I&#8217;ve used Linux as a desktop before, but I&#8217;d always get bored and boot back into Windows. The biggest frustration for me is not in any configuration that has to be done, it&#8217;s in the lack of good apps. (Believe it or not, the fact that an app is running on Linux does not automatically make it awesome.) For instance, <a href="http://bluefish.openoffice.nl/" target="_blank">Bluefish</a>. Cool at first, until you realize how buggy it is. When using parentheses the highlighting sometimes breaks and leaves part of your file completely unformatted. You can fix it by hitting F5 to refresh, but this is a huge annoyance. Bluefish has other annoyances, but these are mostly missing features that I would like to have, like the ability to reorder the tabs for open files. The file explorer seems completely broken too. I eventually installed Notepad++ in Wine. It sounds like I&#8217;m bashing Bluefish, but it&#8217;s actually the best editor for web development that I&#8217;ve found for Linux. I like gedit for editing other files, but I need a file explorer sidebar for web development.</p>
<p>I think what this comes down to is the number of &#8220;windows developers&#8221; versus the number of &#8220;linux developers&#8221;.  Windows just has tons more people making apps than Linux. People talk a lot about the market share of linux/windows users, but I would be interested in some numbers involving the number of people who can program for Linux. Unfortunately I&#8217;m not in that second category. Mostly because I&#8217;m pretty hard against learning C++ unless it&#8217;s taught to me. C++ programming just seems like a whole lot of non-fun. I want to implement features, not debug endlessly and muck around with garbage collection. I really want to learn D, but right now it seems like the D community is geared toward attracting C and C++ programmers and not newbies developers (which, despite a few years of web development and screwing around with .NET, I still consider myself).</p>
<p>As far as Windows goes, I&#8217;ve really been itching to give XNA another go. I&#8217;ve sort of lost interest in making any games in XNA but I still want to mess with it. I&#8217;ve been thinking of trying my hand at making a GUI system. Or just mess around with 2D physics again. I also want to give <a href="http://en.wikipedia.org/wiki/Windows_Presentation_Foundation" target="_blank">WPF</a> a try. From the short glance I&#8217;ve given it, I looks a bit like XNA for desktop apps. Which sounds awesome.</p>
<p>Wow, that was a big post.</p>
<p><strong>Edit:</strong> Turns out gedit has a plugin system (cool) and there&#8217;s a file explorer plugin. I&#8217;ll have to check that out.</p>
]]></content:encoded>
			<wfw:commentRss>http://ortz.org/2008/03/13/linux-and-new-windows/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>We Have Normality</title>
		<link>http://ortz.org/2008/02/16/we-have-normality/</link>
		<comments>http://ortz.org/2008/02/16/we-have-normality/#comments</comments>
		<pubDate>Sat, 16 Feb 2008 17:57:19 +0000</pubDate>
		<dc:creator>Ortzinator</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[TF2]]></category>
		<guid isPermaLink="false">http://blog.ortz.org/2008/02/16/we-have-normality/</guid>
		<description><![CDATA[Well, sort of. I&#8217;ve got Windows installed and got a lot done as far as updates and installing apps I use most like mIRC and Firefox. And about Firefox; you realize how awesome the way it does profiles is when you&#8217;re restoring one and Firefox is completely back the way you had it, extensions, cookies, [...]]]></description>
			<content:encoded><![CDATA[<p>Well, sort of.</p>
<p>I&#8217;ve got Windows installed and got a lot done as far as updates and installing apps I use most like mIRC and Firefox. And about Firefox; you realize how awesome the way it does profiles is when you&#8217;re restoring one and Firefox is completely back the way you had it, extensions, cookies, bookmarks, everything. And all you had to do was copy one folder over.</p>
<p>I installed TF2 and got a chance to play Badlands for a few minutes. It was fun, although I need to play it some more and get the hang of it. (Meaning play it enough to overcome my horrible sense of direction.)</p>
<p>PS: SATA drives are awesome [/obvious]</p>
]]></content:encoded>
			<wfw:commentRss>http://ortz.org/2008/02/16/we-have-normality/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Linksys BEFSR41 Router</title>
		<link>http://ortz.org/2007/11/15/linksys-befsr41-router/</link>
		<comments>http://ortz.org/2007/11/15/linksys-befsr41-router/#comments</comments>
		<pubDate>Thu, 15 Nov 2007 21:02:56 +0000</pubDate>
		<dc:creator>Ortzinator</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Rant]]></category>
		<category><![CDATA[linksys]]></category>
		<category><![CDATA[router]]></category>
		<category><![CDATA[udp]]></category>
		<guid isPermaLink="false">http://blog.ortz.org/2007/11/15/linksys-befsr41-router/</guid>
		<description><![CDATA[Don&#8217;t buy it! I know it&#8217;s a very popular router, but don&#8217;t. Just read this thread. There are at least 30 people just in that thread complaining of the same problem and I just discovered I was one of them. Apparently this router has some sort of problem with forwarding UDP that makes it lose [...]]]></description>
			<content:encoded><![CDATA[<p><strong><u>Don&#8217;t buy it!</u></strong> I know it&#8217;s a very popular router, but don&#8217;t.<a href="http://forums.linksys.com/linksys/board/message?board.id=Wired_Routers&amp;thread.id=2232" target="_blank"> Just read this thread.</a> There are at least 30 people just in that thread complaining of the same problem and I just discovered I was one of them.</p>
<p>Apparently this router has some sort of problem with forwarding UDP that makes it lose all connections periodically. Different people lose the connections at different intervals, but for me it was about every 5 minutes. It also looks like this problem has been around for a long time.</p>
<p><strong>Edit</strong>: It&#8217;s a v4, that seems to have a lot to do with it.</p>
<p>I&#8217;ve also discovered that it decides to stop working completely at 11:30PM every night. Um&#8230;yeah&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://ortz.org/2007/11/15/linksys-befsr41-router/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Fun with Electricity!</title>
		<link>http://ortz.org/2007/11/07/fun-with-electricity/</link>
		<comments>http://ortz.org/2007/11/07/fun-with-electricity/#comments</comments>
		<pubDate>Wed, 07 Nov 2007 17:59:56 +0000</pubDate>
		<dc:creator>Ortzinator</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[electricity]]></category>
		<category><![CDATA[hard drive]]></category>
		<category><![CDATA[oops]]></category>
		<guid isPermaLink="false">http://blog.ortz.org/2007/11/07/fun-with-electricity/</guid>
		<description><![CDATA[First of all, I thought my hard drive died. It started flipping on and off repeatedly, and when I rebooted I got a &#8220;unmountable boot volume&#8221; BSOD. But then I booted into Linux, which mounted the partition fine. Then I ran WD&#8217;s diagnostic utility and it didn&#8217;t find any errors. Thoroughly confused, I rebooted again [...]]]></description>
			<content:encoded><![CDATA[<p>First of all,  I thought my hard drive died. It started flipping on and off repeatedly, and when I rebooted I got a &#8220;unmountable boot volume&#8221; BSOD. But then I booted into Linux, which mounted the partition fine. Then I ran WD&#8217;s diagnostic utility and it didn&#8217;t find any errors. Thoroughly confused, I rebooted again into Windows and it worked fine. :X So now I&#8217;m thinking it&#8217;s my PSU acting crazy. Which sucks because it&#8217;s only like 3 months old.</p>
<p>Then, abeit unrelated, the wires on my front case fan must&#8217;ve shorted out (when I got the case, it had cut the wires somehow, so I had to solder them together) because shortly after plugging it back in and moving my case back into place, my carpet started smoking. (The side of the case wasn&#8217;t on, so it was lying on the carpet.) So I had to put a fan in the window and evacuate my room until the smoke was out. Great fun.</p>
]]></content:encoded>
			<wfw:commentRss>http://ortz.org/2007/11/07/fun-with-electricity/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows Sucks</title>
		<link>http://ortz.org/2007/06/17/windows-bites/</link>
		<comments>http://ortz.org/2007/06/17/windows-bites/#comments</comments>
		<pubDate>Sun, 17 Jun 2007 17:45:26 +0000</pubDate>
		<dc:creator>Ortzinator</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[bsod]]></category>
		<category><![CDATA[DEP]]></category>
		<category><![CDATA[windows]]></category>
		<guid isPermaLink="false">http://blog.ortz.org/?p=35</guid>
		<description><![CDATA[Well technically it was a poorly written driver, but anyway&#8230; I got my computer in the mail finally on Friday. I got it all put together, which was uneventful except for my discovery of the ATX2 PSU. It&#8217;s the kind where the big plug leaves four pins of the socket open for a separate connector. [...]]]></description>
			<content:encoded><![CDATA[<p>Well technically it was a poorly written driver, but anyway&#8230;</p>
<p>I got my computer in the mail finally on Friday. I got it all put together, which was uneventful except for my discovery of the ATX2 PSU. It&#8217;s the kind where the big plug leaves four pins of the socket open for a separate connector. At first, my heart sank because I thought I got the wrong PSU. Luckily my dad was there to embarrass/impress me by plugging it in.</p>
<p>After it was together, to my dismay, Windows refused to boot. Even to safe mode. All I got was a microsecond BSOD and a reboot. This was followed by about 12 hours straight of fiddling with different things, trying to avoid having to do a clean install, in addition to 6 hours the following day.</p>
<p>Nothing about the whole stressful ordeal is worth noting, so long story short, I reinstalled Windows to find that my computer would boot, but I got a BSOD within minutes of logging in. My friend Mr. Google helped my discover that a driver was disagreeing with Windows&#8217; <a href="http://en.wikipedia.org/wiki/Data_Execution_Prevention" target="_blank">Data Execution Prevention</a>. So I just disabled it and Windows ran fine.</p>
<p>So yeah, dual-core is pretty awesome. I can do stuff so much faster now. For example, I can Alt-Tab from games nearly instantly instead of waiting forever for Windows to wake up.</p>
<p>Yay me!</p>
]]></content:encoded>
			<wfw:commentRss>http://ortz.org/2007/06/17/windows-bites/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>New PC</title>
		<link>http://ortz.org/2007/06/09/new-pc/</link>
		<comments>http://ortz.org/2007/06/09/new-pc/#comments</comments>
		<pubDate>Sat, 09 Jun 2007 05:43:12 +0000</pubDate>
		<dc:creator>Ortzinator</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Personal]]></category>
		<guid isPermaLink="false">http://blog.ortz.org/?p=32</guid>
		<description><![CDATA[This is what I&#8217;m looking to get. Going for low budget but still awesome. Click I&#8217;m not upgrading to a SATA drive just yet. I&#8217;m trying to keep the total price down. I can always upgrade later. Also, I&#8217;m trying to decide if paying the extra money for a dual-core processor is worth it or [...]]]></description>
			<content:encoded><![CDATA[<p>This is what I&#8217;m looking to get. Going for low budget but still awesome.</p>
<p><a href="http://secure.newegg.com/NewVersion/wishlist/PublicWishDetail.asp?WishListNumber=3127432" target="_blank">Click</a></p>
<p>I&#8217;m not upgrading to a SATA drive just yet. I&#8217;m trying to keep the total price down. I can always upgrade later.</p>
<p>Also, I&#8217;m trying to decide if paying the extra money for a dual-core processor is worth it or I can shave some more money off by going with a slightly faster single-core.</p>
<p>Comments and suggestions are <strong>very welcome</strong>. <img src='http://ortz.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Update: Order placed!! The parts should arrive on the 14th.</p>
]]></content:encoded>
			<wfw:commentRss>http://ortz.org/2007/06/09/new-pc/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Browse Happy</title>
		<link>http://ortz.org/2007/02/23/browse-happy/</link>
		<comments>http://ortz.org/2007/02/23/browse-happy/#comments</comments>
		<pubDate>Fri, 23 Feb 2007 16:36:44 +0000</pubDate>
		<dc:creator>Ortzinator</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[Links]]></category>
		<guid isPermaLink="false">http://blog.ortz.org/?p=11</guid>
		<description><![CDATA[This is probably old, but I&#8217;ve never seen it until I was in WordPress at school (IE) and saw a button at the bottom. It&#8217;s pretty much an &#8220;anything but Internet Explorer&#8221; site. http://browsehappy.com/]]></description>
			<content:encoded><![CDATA[<p>This is probably old, but I&#8217;ve never seen it until I was in WordPress at school (IE) and saw a button at the bottom. It&#8217;s pretty much an &#8220;anything but Internet Explorer&#8221; site.</p>
<p><a href="http://browsehappy.com/">http://browsehappy.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ortz.org/2007/02/23/browse-happy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>World Usability Day</title>
		<link>http://ortz.org/2006/11/17/world-usability-day/</link>
		<comments>http://ortz.org/2006/11/17/world-usability-day/#comments</comments>
		<pubDate>Fri, 17 Nov 2006 17:38:01 +0000</pubDate>
		<dc:creator>Ortzinator</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[GUI]]></category>
		<category><![CDATA[Links]]></category>
		<category><![CDATA[UI]]></category>
		<category><![CDATA[usability]]></category>
		<guid isPermaLink="false">http://blog.ortz.org/?p=5</guid>
		<description><![CDATA[http://www.worldusabilityday.org/ I&#8217;m a little late but people need to be more aware of usability issues in technology. World Usability Day is sort of an initiative to ease the many daily interactions we have with technology. Check it out.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.worldusabilityday.org/">http://www.worldusabilityday.org/</a></p>
<p>I&#8217;m a little late but people need to be more aware of usability issues in technology.</p>
<p>World Usability Day is sort of an initiative to ease the many daily interactions we have with technology. Check it out.</p>
]]></content:encoded>
			<wfw:commentRss>http://ortz.org/2006/11/17/world-usability-day/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

