<?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>Base-10 Design &#38; Development Inc. &#124; Blog &#187; Tips &amp; Tricks</title>
	<atom:link href="http://www.base-10.net/blog/category/tips-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.base-10.net/blog</link>
	<description>Adventures In Life And Business</description>
	<lastBuildDate>Wed, 07 Jul 2010 21:57:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Subversion shortcuts</title>
		<link>http://www.base-10.net/blog/2010/03/02/subversion-shortcuts/</link>
		<comments>http://www.base-10.net/blog/2010/03/02/subversion-shortcuts/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 22:17:28 +0000</pubDate>
		<dc:creator>Casimir</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://www.base-10.net/blog/?p=222</guid>
		<description><![CDATA[Handy subversion shortcuts]]></description>
			<content:encoded><![CDATA[<p>Here are some shortcuts I use on an almost daily basis that I constantly forget and then go re-read the blog post. I have taken them from an old post but added a new one:</p>
<h3>Bulk add:</h3>
<p><code>svn st | grep ^? | sed 's/?    //' | xargs svn add</code></p>
<h3>Bulk remove:</h3>
<p><code>svn st | grep ^! | sed 's/!    //' | xargs svn rm</code></p>
<h3>Strip all .svn directories from project:</h3>
<p><code>find . -name .svn -exec rm -rf {} \;</code></p>
<h3>Edit the ignore file pattern list for the current directory with the specified command line editor (don&#8217;t forget the last dot!):</h3>
<p><code>svn propedit --editor-cmd vi svn:ignore .</code></p>
<h3>Check in (commit) local changes to repository with the supplied message:</h3>
<p><code>svn ci -m 'the commit message you want to use'</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.base-10.net/blog/2010/03/02/subversion-shortcuts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Subversion bulk add or remove</title>
		<link>http://www.base-10.net/blog/2009/12/11/subversion-bulk-add-or-remove/</link>
		<comments>http://www.base-10.net/blog/2009/12/11/subversion-bulk-add-or-remove/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 19:24:25 +0000</pubDate>
		<dc:creator>Casimir</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://www.base-10.net/blog/?p=194</guid>
		<description><![CDATA[A couple of one liners to easily bulk add or remove files in subversion.]]></description>
			<content:encoded><![CDATA[<p>A couple of one liners to easily bulk add or remove files in subversion:</p>
<pre style="font-family: monospace;"><code>
svn st | grep ^? | sed 's/?    //' | xargs svn add

<span style="text-decoration: line-through;">svn st | grep ^! | sed 's/?    //' | xargs svn rm
</span></code>
<pre style="font-family: monospace;"><code>svn st | grep ^! | sed 's/!    //' | xargs svn rm</code></pre>
</pre>
<p>They can even handle files with spaces.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.base-10.net/blog/2009/12/11/subversion-bulk-add-or-remove/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>nginx and non document root phpmyadmin</title>
		<link>http://www.base-10.net/blog/2009/11/06/nginx-and-non-document-root-phpmyadmin/</link>
		<comments>http://www.base-10.net/blog/2009/11/06/nginx-and-non-document-root-phpmyadmin/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 22:17:46 +0000</pubDate>
		<dc:creator>Casimir</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://www.base-10.net/blog/?p=176</guid>
		<description><![CDATA[How to setup nginx and a non-document root phpmyadmin]]></description>
			<content:encoded><![CDATA[<p>Recently we have been playing around with nginx for a couple of projects we have been working on and I think I have fallen in love with a web server. After using apache for so many years, I did not think that this could be possible, but it is!! For what we are using it for, it is superior in almost every aspect: installation, configuration, speed, memory usage, etc. Not to mention the fact that most of our apache deployments are often tainted by the beast that is cPanel/WHM&#8230; The reason I am writing this article is to hopefully alleviate the pain of trying to figure out how to setup phpmyadmin or other such applications in a non-document root setup when you are just learning the ins-and-outs of nginx configuration.</p>
<p>Just a quick tip because it is probably the main stumbling block when learning nginx configuration vs apache configuration; the <a href="http://wiki.nginx.org/NginxHttpCoreModule#root" target="_blank">root</a> directive works differently in nginx. In nginx it will append the directory from the matching location block to the request. Taken from the docs: &#8220;so that a request for &#8220;/i/top.gif&#8221; will not look in &#8220;/spool/w3/top.gif&#8221; [but in /spool/w3/i/top.gif] like might happen in an Apache-like alias configuration where the location match itself is dropped. Use the <code>alias</code> directive to achieve the Apache-like functionality.&#8221; But I digress.</p>
<p>Most of the online documentation and tutorials explain how to get php running globally or how to get phpmyadmin to work from document root, but I had to dig deep to get it to work like www.domain.com/phpmyadmin/ . I didn&#8217;t want every .php script to be run as php and I did not want phpmyadmin installed at document root. Here is what I found:</p>
<pre><code>
location /phpmyadmin {
    root           /usr/local/nginx/html;
    index          index.php;
}
</code>
<code> location ~ ^/phpmyadmin.+.php$ {
    root          /usr/local/nginx/html;
    fastcgi_pass   127.0.0.1:9000;
    fastcgi_index  index.php;
    fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
    include        fastcgi_params;
}
</code></pre>
<p><span id="more-176"></span><br />
This combined with spawn-fcgi got everything working exactly how I wanted it to. The first location block is so that static files are served from the correct directory on the server (note how nginx uses the root directive) and makes it so that if you only specify the path in the URL it will execute the correct index file. The second location block tells nginx to only pass files that are in /phpmyadmin and end with .php to the fastcgi process listening on port 9000.</p>
<p>Not the most advanced stuff in the world, but it took me several hours to figure out. I hope it saves you from the dreaded &#8216;No Input File Specified&#8217; error message and trying to track down permission issues that don&#8217;t exist.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.base-10.net/blog/2009/11/06/nginx-and-non-document-root-phpmyadmin/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Nifty Twitter Tip (Twip?)</title>
		<link>http://www.base-10.net/blog/2009/09/28/nifty-twitter-tip/</link>
		<comments>http://www.base-10.net/blog/2009/09/28/nifty-twitter-tip/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 19:12:55 +0000</pubDate>
		<dc:creator>Casimir</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://www.base-10.net/blog/?p=112</guid>
		<description><![CDATA[An easy way to get users to twitter about your stuff.]]></description>
			<content:encoded><![CDATA[<p>It turns out you can easily provide a link for your users to post something to their twitter account; say a link to an interesting blog post or some other such thing.</p>
<p><a href="http://twitter.com/home?status=Check+Out+This+Blog+Post:+http://cli.gs/3ZeD5X">http://twitter.com/home?status=Check+Out+This+Blog+Post:+http://cli.gs/3ZeD5X</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.base-10.net/blog/2009/09/28/nifty-twitter-tip/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
