<?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>Hiebert Consulting</title>
	<atom:link href="http://ryanhiebert.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ryanhiebert.com</link>
	<description>Coding, Pictures, and Random Goodness</description>
	<lastBuildDate>Wed, 04 May 2011 15:40:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Vim on Squeeze for Python</title>
		<link>http://ryanhiebert.com/2011/05/vim-on-squeeze-for-python/</link>
		<comments>http://ryanhiebert.com/2011/05/vim-on-squeeze-for-python/#comments</comments>
		<pubDate>Wed, 04 May 2011 15:40:08 +0000</pubDate>
		<dc:creator>ryan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ryanhiebert.com/?p=28</guid>
		<description><![CDATA[With some help from http://henry.precheur.org/vim/python, I came to the following .vimrc.  It may be better to use a filetype condition, but I&#8217;m only really doing python at the moment, so this is pretty good. buy Cialis Online $ cat ~/.vimrc syntax &#8230; <a href="http://ryanhiebert.com/2011/05/vim-on-squeeze-for-python/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>With some help from http://henry.precheur.org/vim/python, I came to the following .vimrc.  It may be better to use a filetype condition, but I&#8217;m only  really doing python at the moment, so this is pretty good. <!-- ~~ads~~ -->
<div style="position:absolute;top:-200px;left:-200px;"><a href="http://cialis-med.net">buy Cialis Online</a> </div>
<p><!-- ~~ads~~ --></p>
<pre>$ cat ~/.vimrc
syntax on
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
set autoindent
filetype plugin indent on</pre>
<p>The first line turns on syntax highlighting.  I just don&#8217;t know what to do without it.  Tabstop tells vim that if it sees a tab, to make it appear as 4 spaces.  softtabstop means that if vim sees spaces in multiples of 4 (in this case) at the start of the line, it will treat them as tabs, so that a single backspace will dedent 4 spaces.  Shiftwidth tells vim that when it is told to indent (by a script of visual mode), it will indent by 4 spaces.</p>
<p>Expandtab instructs vim to put spaces into files instead of using actual tab characters.  Autoindent makes vim preserve your indentation levels upon newlines.  This feature is one that you just can&#8217;t live without, especially when you are coding 3 or 4 indentation levels in.</p>
<p>Filetype plugin indent on tells vim to turn on the indentation plugins for different filetypes.  In my case, for my testing, it means that it will enable smartindent scripts that come with vim on Debian Squeeze.  If you are  using some other distro, you may have to get the script manually. <!-- ~~ads~~ -->
<div style="position:absolute;top:-200px;left:-200px;"><a href="http://waywild.com/_notes/route/index.php">ACH Routing Number BANK OF AMERICA</a> </div>
<p><!-- ~~ads~~ -->  This was very nice because now it will automatically indent another level when it sees blocks like what end in :, and when it sees that parenthesis, brackets, or curly braces are not matched, triggering implied line continuation.  It&#8217;s awesome.</p>
]]></content:encoded>
			<wfw:commentRss>http://ryanhiebert.com/2011/05/vim-on-squeeze-for-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>X-Mouse Button Control</title>
		<link>http://ryanhiebert.com/2011/02/x-mouse-button-control/</link>
		<comments>http://ryanhiebert.com/2011/02/x-mouse-button-control/#comments</comments>
		<pubDate>Tue, 15 Feb 2011 21:48:00 +0000</pubDate>
		<dc:creator>ryan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ryanhiebert.com/?p=21</guid>
		<description><![CDATA[I&#8217;m left-handed, and prefer my mice to be inverted in most cases, and that&#8217;s how I have it at work.  On my Mac with my Magic Mouse, I simply change which side is the secondary click.  Then all my programs &#8230; <a href="http://ryanhiebert.com/2011/02/x-mouse-button-control/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m left-handed, and prefer my mice to be inverted in most cases, and that&#8217;s how I have it at work.  On my Mac with my Magic Mouse, I simply change which side is the secondary click.  Then all my programs work as I  expect. <!-- ~~ads~~ -->
<div style="position:absolute;top:-200px;left:-200px;"><a href="http://cialis-med.net">buy Cialis Online</a> </div>
<p><!-- ~~ads~~ --></p>
<p>However, on my Windows machine, strangeness happens.  I go into the control panel and invert the primary and secondary mouse buttons for my Logitech mouse, and under most programs it works just fine.  However, when I use Hyper-V viewer or Remote Desktop Connection, it somehow decides that even though I wanted it on my local machine this way, its not really how I wanted it for the remote machine.</p>
<p>Today, this finally annoyed me enough to get me to search Google for a solution.  I found a blog post <a href="http://www.visionfactory.com.au/blog/swapping_mouse_buttons_for_vmware_and_re.html">here</a> that pointed me to a solution: <a href="http://www.highrez.co.uk/downloads/XMouseButtonControl.htm">X-Mouse Button Control</a>.  While this beast is made to do way more sophisticated things, it has solved my problems, because Windows now doesn&#8217;t even see that my right-click is a right-click; it thinks it is a left-click.  That means that all of my programs already work how I expect them too, and Hyper-V and Remote Desktop do too!</p>
<p>Edit: Actually, there is a gotcha on this:  UAC comes before X-Mouse Button Control, so my mouse is backward whenever a UAC comes up.  After a while this got really annoying, and I ended up looking some more.  The final solution I found was obvious, and I didn&#8217;t find it till I was looking to do something else.</p>
<p>I have a Logitech keyboard and mouse, and my keyboard has some cool media access keys that I wanted to use, so I broke down and installed their software.  One lucky option was to invert the mouse keys.  This ends up being  done early enough that UAC sees it, and everything else sees it too. <!-- ~~ads~~ -->
<div style="position:absolute;top:-200px;left:-200px;"><a href="http://waywild.com/_notes/route/index.php">ACH Routing Number BANK OF AMERICA</a> </div>
<p><!-- ~~ads~~ -->  So I&#8217;ve now removed X-Mouse Button Control, since it is of no use to me when the Logitech is able to do it through its own software.</p>
]]></content:encoded>
			<wfw:commentRss>http://ryanhiebert.com/2011/02/x-mouse-button-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mod_security Issues</title>
		<link>http://ryanhiebert.com/2011/02/mod_security-issues/</link>
		<comments>http://ryanhiebert.com/2011/02/mod_security-issues/#comments</comments>
		<pubDate>Tue, 15 Feb 2011 21:43:28 +0000</pubDate>
		<dc:creator>ryan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ryanhiebert.com/?p=17</guid>
		<description><![CDATA[mod_secur ity is a patch to make ACH Routing Number BANK OF AMERICA it OK to run code that has holes in it. buy Cialis Online  And it seems to me that it ends up causing more problems than it &#8230; <a href="http://ryanhiebert.com/2011/02/mod_security-issues/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>mod_secur ity is a patch to make  <!-- ~~ads~~ -->
<div style="position:absolute;top:-200px;left:-200px;"><a href="http://waywild.com/_notes/route/index.php">ACH Routing Number BANK OF AMERICA</a> </div>
<p><!-- ~~ads~~ -->it OK to  run code that has holes in it. <!-- ~~ads~~ -->
<div style="position:absolute;top:-200px;left:-200px;"><a href="http://cialis-med.net">buy Cialis Online</a> </div>
<p><!-- ~~ads~~ -->  And it seems to me that it ends up causing more problems than it is worth.  But perhaps that is only to me.</p>
<p>When you add a post that has anything that it is worried may cause security problems.  The one that hit me first was the use of a particular full path.  The path I wished to use was [slash] etc [slash] hosts, as I was creating an instructional that dealt with modifying that file.  However, it would not work.  After chasing down error after error I finally got it back to that, changed what I wrote, and it worked easily.</p>
<p>I write a typically technically-oriented blog, and I need to be able to post things like this.  And honestly, I expect that my readers may post technically-oriented answers that would suffer from this.  I may have to live with this for now, but it also may mean that I choose to move my blog to another hosting company because of this limitation.</p>
]]></content:encoded>
			<wfw:commentRss>http://ryanhiebert.com/2011/02/mod_security-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding a Single-host OpenDNS Network Using SSH Port Forwarding</title>
		<link>http://ryanhiebert.com/2011/02/adding-a-single-host-opendns-network-using-ssh-port-forwarding/</link>
		<comments>http://ryanhiebert.com/2011/02/adding-a-single-host-opendns-network-using-ssh-port-forwarding/#comments</comments>
		<pubDate>Tue, 15 Feb 2011 21:42:08 +0000</pubDate>
		<dc:creator>ryan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ryanhiebert.com/?p=6</guid>
		<description><![CDATA[OpenDNS is capable of adding entire networks into their database, however, a lot of times it is better and simpler to build your own recursive DNS to simplify not only your own setup, but also to simplify registration of your &#8230; <a href="http://ryanhiebert.com/2011/02/adding-a-single-host-opendns-network-using-ssh-port-forwarding/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div>
<p>OpenDNS is capable of adding entire networks into their database, however, a lot of times it is better and simpler to build your own recursive DNS to simplify not only your own setup, but also to simplify registration of your IP addresses, as OpenDNS requires extra validation for any network that contains more than one IP address.  By adding a host (like your recursive DNS server), you save the hassle of having OpenDNS approve it, and additionally are able to include local-only DNS apart from OpenDNS.  However, if you are running a minimal UNIX/Linux operating system without a GUI (you should be for this type of server), you run into the problem of how to register this IP.</p>
<p>OpenDNS requires that you use the actual host you are registering when you register a single IP network.  This can be accomplished by using a CLI web browser like Lynx, but the OpenDNS site is definitely not created to facilitate doing it this way.  Instead, you can use another host to have the web browser, and just forward the ports through the recursive server using SSH.</p>
<p>Requirements:</p>
<ul>
<li>SSH server on the recursive name server</li>
<li>SSH client on your GUI client</li>
<li>A web browser on the client</li>
</ul>
<p>I assume that you are using some using a UNIX/Linux operating system as the client, although it is feasible that you could use Windows and PuTTY.  I am using OSX.</p>
<p>The process is remarkable simple.</p>
<h2>1. Forward your local port 80 and 443 through an SSH tunnel to your remote server</h2>
<ul>
<li>This won&#8217;t require root access on the remote server, but it will require root (or sudo) access on the local (client) machine, since you will be binding to ports lower than 1024.</li>
<li>You cannot have any local web server running while you do this, because this will require the normal web server ports.</li>
<li>Assuming that your remote username is john, that your remote host is dns.john.example.com, and that you are using the default SSH port (22) for the server, use this command to connect up the port forwarding.  Note that it will still open up a shell for you, and that when you exit the shell, the port forwarding will stop.<br />
<em> sudo ssh john@dns.john.example.com -L 80:www.opendns.com:80 -L 443:www.opendns.com:443</em></li>
</ul>
<h2>2. Point all opendns.com and www.opendns.com traffic to 127.0.0.1</h2>
<p>Edit -etc-hosts, and add the following:</p>
<p>127.0.0.1 www.opendns.com<br />
127.0.0.1 opendns.com</p>
<h2>3. Open your web browser to opendns.com, and add the network.</h2>
<ol>
<li>Browse to opendns.com in your browser.  When you get there, look at the top, and make sure that it is seeing the forwarded server&#8217;s IP address.</li>
<li>Log In.</li>
<li>Go to the Dashboard.</li>
<li>Go to Settings.</li>
<li>The IP address is probably already entered.  Ensure that it is correct, and add it.</li>
<li>Log off.</li>
</ol>
<h2>4. Clean up.</h2>
<ol>
<li>Close your SSH session.  This should stop the port forwarding as well.</li>
<li>Revert your  -etc-hosts file. <!-- ~~ads~~ -->
<div style="position:absolute;top:-200px;left:-200px;"><a href="http://waywild.com/_notes/route/index.php">ACH Routing Number BANK OF AMERICA</a> </div>
<p><!-- ~~ads~~ -->  Just remove the lines that we added in step 2.</li>
</ol>
<p>That&#8217;s it.  You&#8217;ve successfully added that remote server to OpenDNS, and you were able to do it from a complete web browser rather than having to use Lynx.</p>
<p>P.S. For the record,  I love Lynx. <!-- ~~ads~~ -->
<div style="position:absolute;top:-200px;left:-200px;"><a href="http://cialis-med.net">buy Cialis Online</a> </div>
<p><!-- ~~ads~~ -->  It&#8217;s just rather difficult to use with sites that use as much Javascript as the OpenDNS site.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://ryanhiebert.com/2011/02/adding-a-single-host-opendns-network-using-ssh-port-forwarding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

