<?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.arithm &#187; How To</title>
	<atom:link href="http://blog.arithm.com/category/how-to/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.arithm.com</link>
	<description>Software.  Politics.  Tinfoil hat conjecture.</description>
	<lastBuildDate>Fri, 13 Jan 2012 19:00:39 +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>Ubuntu Apache Umask</title>
		<link>http://blog.arithm.com/2011/10/19/ubuntu-apache-umask/</link>
		<comments>http://blog.arithm.com/2011/10/19/ubuntu-apache-umask/#comments</comments>
		<pubDate>Wed, 19 Oct 2011 18:11:48 +0000</pubDate>
		<dc:creator>nurikabe</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[umask]]></category>

		<guid isPermaLink="false">http://blog.arithm.com/?p=1794</guid>
		<description><![CDATA[Back to obscure technical topics for a moment. Figuring out how to set umask for Apache on Ununtu was faaar more difficult than it needs to be. Even though it&#8217;s not an environmental variable, the &#8220;Ubuntu Way&#8221; seems to be to add this to the end of /etc/apache2/envvars like so: ... ## Some packages providing [...]]]></description>
			<content:encoded><![CDATA[<p>Back to obscure technical topics for a moment.</p>
<p>Figuring out how to set umask for Apache on Ununtu was faaar more difficult than it needs to be. Even though it&#8217;s not an environmental variable, the &#8220;Ubuntu Way&#8221; seems to be to add this to the end of /etc/apache2/envvars like so:</p>
<blockquote><p><code>...<br />
## Some packages providing 'www-browser' need '--dump'<br />
#export APACHE_LYNX='www-browser -dump'<br />
<span style="color: #ff0000;">umask 000</span><br />
</code></p></blockquote>
<p>Restart Apache and <em>voila</em>, the above umask will give all files written by Apache a chmod of 777.</p>
<p>Use this particular example with caution.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.arithm.com/2011/10/19/ubuntu-apache-umask/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Outlook macros and self-signed certs on Windows 7</title>
		<link>http://blog.arithm.com/2011/09/08/outlook-macros-and-self-signed-certs-on-windows-7/</link>
		<comments>http://blog.arithm.com/2011/09/08/outlook-macros-and-self-signed-certs-on-windows-7/#comments</comments>
		<pubDate>Thu, 08 Sep 2011 19:18:22 +0000</pubDate>
		<dc:creator>nurikabe</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Outlook]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[macros]]></category>
		<category><![CDATA[vb]]></category>

		<guid isPermaLink="false">http://blog.arithm.com/?p=1721</guid>
		<description><![CDATA[If you are trying to get some custom macros to work with Outlook as outlined, for example, here and here, you may be befuddled to discover that that your macros fail silently; usually after restarting Outlook. This is because Outlook is quietly disabling all macros because it hates youI mean, because it doesn&#8217;t trust you.  [...]]]></description>
			<content:encoded><![CDATA[<p>If you are trying to get some custom macros to work with Outlook as outlined, for example, <a href="http://www.howto-outlook.com/howto/selfcert.htm">here</a> and <a href="http://jmerrell.com/2011/05/25/outlook-macro-stops-working-doesnt-work/">here</a>, you may be befuddled to discover that that your macros fail silently; usually after restarting Outlook. This is because Outlook is quietly disabling all macros because it <del>hates you</del>I mean, because it doesn&#8217;t trust you.  That is to say, it doesn&#8217;t trust your self-signed cert.</p>
<p>In Windows 7 it appears as though self-signed certs have to first be copied into a &#8220;trusted&#8221; group before they can be used. Here&#8217;s how to do it:</p>
<ol>
<li>Run certmgr.msc as an Administrator.</li>
<li>Open the &#8220;Personal&#8221; tree node in the left pane.</li>
<li>Open the &#8220;Certificates&#8221; node under the Personal node.</li>
<li>Note that your self-signed certificate appears in the right pane.  It may have a red &#8220;X&#8221; through it.</li>
<li>Double-click the certificate in the right pane to see instructions about copying the certificate to the &#8220;Trusted Root Certification Authorities&#8221; store.  Good thing these important details are so easy to discover.</li>
<li>Hold down the control key and drag the cert into &#8220;Trusted Root Certification Authorities &gt; Certificates&#8221; which should appear immediately below the Personal node.</li>
<li>Follow any prompts to completion.  The red &#8220;X&#8221; should disappear and your cert should know have a key icon attached to it.</li>
<li>Inside Outlook, re-associate this cert with your macro.</li>
<li>Restart Outlook for the new cert to be applied.</li>
</ol>
<p>And <em>voila</em>, Outlook trusts you again.</p>
<p>Not, of course, that you should every fully trust it back.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.arithm.com/2011/09/08/outlook-macros-and-self-signed-certs-on-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Slow localhost ipv6 routing on Windows</title>
		<link>http://blog.arithm.com/2011/06/06/slow-localhost-ipv6-routing-on-windows/</link>
		<comments>http://blog.arithm.com/2011/06/06/slow-localhost-ipv6-routing-on-windows/#comments</comments>
		<pubDate>Mon, 06 Jun 2011 12:42:45 +0000</pubDate>
		<dc:creator>nurikabe</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.arithm.com/?p=1640</guid>
		<description><![CDATA[This comes to me word-of-mouth. It seems there’s a longstanding bug/feature in the firewall routemap that causes the ipv6 localhost link to fail, and then the v4 link is tried, and succeeds. Apache is bound to both, but Windows won’t route the v6 link correctly. There are a couple of solutions here, including turning off [...]]]></description>
			<content:encoded><![CDATA[<p>This comes to me word-of-mouth.</p>
<blockquote><p>It seems there’s a longstanding bug/feature in the firewall routemap that causes the ipv6 localhost link to fail, and then the v4 link is tried, and succeeds. Apache is bound to both, but Windows won’t route the v6 link correctly.</p></blockquote>
<p>There are a couple of solutions here, including turning off ipv6 in Windows.  It&#8217;s probably easiest just to explicitly define &#8220;localhost&#8221; in C:\Windows\System32\drivers\hosts.  Uncommment the 127.0.0.1 line:</p>
<p><code>127.0.0.1 localhost<br />
# ::1 localhost<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.arithm.com/2011/06/06/slow-localhost-ipv6-routing-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recursively count files in a directory..</title>
		<link>http://blog.arithm.com/2010/10/28/recursively-count-files-in-a-directory/</link>
		<comments>http://blog.arithm.com/2010/10/28/recursively-count-files-in-a-directory/#comments</comments>
		<pubDate>Thu, 28 Oct 2010 16:43:26 +0000</pubDate>
		<dc:creator>nurikabe</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.arithm.com/?p=1446</guid>
		<description><![CDATA[Go go backup brain: $ find -type f ¦ wc -l As found elsewhere on the net.]]></description>
			<content:encoded><![CDATA[<p>Go go backup brain:<br />
<code><br />
$ find -type f ¦ wc -l<br />
</code></p>
<p>As found elsewhere on the net.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.arithm.com/2010/10/28/recursively-count-files-in-a-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get WordPress to stop asking for &#8220;Connection Information&#8221; when upgrading plugins</title>
		<link>http://blog.arithm.com/2010/04/03/get-wordpress-to-stop-asking-for-connection-information-when-upgrading-plugins/</link>
		<comments>http://blog.arithm.com/2010/04/03/get-wordpress-to-stop-asking-for-connection-information-when-upgrading-plugins/#comments</comments>
		<pubDate>Sat, 03 Apr 2010 19:56:28 +0000</pubDate>
		<dc:creator>nurikabe</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.arithm.com/?p=1255</guid>
		<description><![CDATA[Recent versions of WordPress have taken a queue from Janis Elsts&#8217; One Click Plugin Updater and made it *much* easier to keep plugins up-to-date without having to fire up FTP. The problem is that WP seems to use permissions of it&#8217;s script files to determine whether or not plugins and themes can be uploaded to [...]]]></description>
			<content:encoded><![CDATA[<p>Recent versions of WordPress have taken a queue from Janis Elsts&#8217; <a href="http://wordpress.org/extend/plugins/one-click-plugin-updater/">One Click Plugin Updater</a> and made it *much* easier to keep plugins up-to-date without having to fire up FTP.  The problem is that WP seems to use permissions of it&#8217;s script files to determine whether or not plugins and themes can be uploaded to the server or not.  Really WP should be looking at the target directory rather than the executing script; consequently I assume most folks just assign web server ownership to the entire WP source tree.  Which, frankly, kind of freaks me out security-wise.</p>
<p>If you&#8217;d also rather avoid recursively chown&#8217;ing the WordPress tree to your web server, then simply give web server ownership to three files in the wp-admin directory:  <strong>plugin-install.php</strong>, <strong>plugins.php</strong>, and <strong>update.php</strong>.  Of course the web server will also need to own the plugins directory (and everything therein), the upgrade directory, <em>as well as the wp-content directory itself</em>.  The &#8220;upgrade automatically&#8221; links should now work without kicking you to the &#8220;Connection Information&#8221; screen.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.arithm.com/2010/04/03/get-wordpress-to-stop-asking-for-connection-information-when-upgrading-plugins/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Defeating the flymake configuration error in Emacs php-mode</title>
		<link>http://blog.arithm.com/2009/12/22/defeating-the-flymake-configuration-error-in-emacs-php-mode/</link>
		<comments>http://blog.arithm.com/2009/12/22/defeating-the-flymake-configuration-error-in-emacs-php-mode/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 15:01:09 +0000</pubDate>
		<dc:creator>nurikabe</dc:creator>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[flymake]]></category>

		<guid isPermaLink="false">http://blog.arithm.com/?p=1109</guid>
		<description><![CDATA[Getting the following message when trying to use Flymake with PHP?: &#8220;Flymake: Configuration error occurred while running. Flymake will be switch OFF&#8221; This threw me, though it probably shouldn&#8217;t have. If you&#8217;re seeing it as well, double check two settings in your php.ini file: 1. The error_reporting setting needs to include E_PARSE. I personally like [...]]]></description>
			<content:encoded><![CDATA[<p>Getting the following message when trying to use Flymake with PHP?:  </p>
<p>&#8220;Flymake: Configuration error occurred while running.  Flymake will be switch OFF&#8221;</p>
<p>This threw me, though it probably shouldn&#8217;t have.  If you&#8217;re seeing it as well, double check two settings in your php.ini file:</p>
<p>1.  The error_reporting setting needs to include E_PARSE.  I personally like to use <code>error_reporting = E_ALL | E_STRICT</code>.  This shows everything that the PHP compiler thinks you are doing wrong.</p>
<p>2.  Also double check your php.ini file for <code>display_errors = On</code>.  I almost always forget about this when setting up on a new box because I tend to override php.ini with .htaccess values.</p>
<p>Finally, triple check your command line php settings with a quick <code>$ php -i</code>, which dumps the content of phpinfo() to the command line.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.arithm.com/2009/12/22/defeating-the-flymake-configuration-error-in-emacs-php-mode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Defeating &#8220;svn: Error processing command &#8216;modify-wcprop&#8217; in &#8216;.&#8217;&#8221;</title>
		<link>http://blog.arithm.com/2009/11/17/defeating-svn-error-processing-command-modify-wcprop-in/</link>
		<comments>http://blog.arithm.com/2009/11/17/defeating-svn-error-processing-command-modify-wcprop-in/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 18:23:09 +0000</pubDate>
		<dc:creator>nurikabe</dc:creator>
				<category><![CDATA[Crash]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[svn modify-wcprop]]></category>

		<guid isPermaLink="false">http://blog.arithm.com/?p=1087</guid>
		<description><![CDATA[svn cleanup seems to do this when there is a partially completed update in a directory. (I think..)  Try deleting the .svn/log file in the offending directory and doing svn cleanup again. Thank you stackoverflow.]]></description>
			<content:encoded><![CDATA[<p><code>svn cleanup</code> seems to do this when there is a partially completed update in a directory.  (I think..)  Try deleting the .svn/log file in the offending directory and doing <code>svn cleanup</code> again.</p>
<p>Thank you <a href="http://stackoverflow.com/questions/158664/what-to-do-when-svn-cleanup-fails">stackoverflow</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.arithm.com/2009/11/17/defeating-svn-error-processing-command-modify-wcprop-in/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>MySQL practices non-violence&#8230; unless you give it a pipe.</title>
		<link>http://blog.arithm.com/2009/11/13/mysql-practices-non-violence-unless-you-give-it-a-pipe/</link>
		<comments>http://blog.arithm.com/2009/11/13/mysql-practices-non-violence-unless-you-give-it-a-pipe/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 19:41:15 +0000</pubDate>
		<dc:creator>nurikabe</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[mysql --execute --force]]></category>

		<guid isPermaLink="false">http://blog.arithm.com/?p=1083</guid>
		<description><![CDATA[Strange but true.  And something that seems to trip me up once every other year or so. If you use the -e/&#8211;execute option while loading a dump, MySQL silently ignores -f/&#8211;force.  In other words, MySQL will not execute force. But if you pass the same data in via a pipe, MySQL will beat the hell [...]]]></description>
			<content:encoded><![CDATA[<p>Strange but true.  And something that seems to trip me up once every other year or so.</p>
<p>If you use the -e/&#8211;execute option while loading a dump, MySQL silently ignores -f/&#8211;force.  In other words, MySQL will not execute force.</p>
<p>But if you pass the same data in via a pipe, MySQL will beat the hell out of anything malformed and cram whatever it can into the database.</p>
<p>MySQL:  The Gandhi of databases&#8230; unless armed.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.arithm.com/2009/11/13/mysql-practices-non-violence-unless-you-give-it-a-pipe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Transferring Google Analytics Accounts</title>
		<link>http://blog.arithm.com/2009/11/12/transferring-google-analytics-accounts/</link>
		<comments>http://blog.arithm.com/2009/11/12/transferring-google-analytics-accounts/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 19:23:08 +0000</pubDate>
		<dc:creator>nurikabe</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.arithm.com/?p=1081</guid>
		<description><![CDATA[If you&#8217;re like me, back in the murky past your created a few (or several) Google Analytics accounts to track all manner of web sites and other online shenanigans.  And now you want to consolidate without losing any data. For some reason Google&#8217;s patent reply to this (probably) common interest is to state that transferring [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re like me, back in the murky past your created a few (or several) Google Analytics accounts to track all manner of web sites and other online shenanigans.  And now you want to consolidate without losing any data.</p>
<p>For some reason Google&#8217;s patent reply to this (probably) common interest is to state that transferring account data is not possible.  But actually it&#8217;s quite easy.  At least, it&#8217;s quite easy once you&#8217;ve played around with your various Google accounts for a few hours and finally figured out how administrator assignment works.</p>
<p>To do a &#8220;transfer&#8221;, all you have to do is:</p>
<ol>
<li>Create the new Google Account to which you want to transfer control.</li>
<li>Log in as the original Google Analytics Administrator account.</li>
<li>Assign a the new account &#8220;Administrator&#8221; access.  (Edit -&gt; Users with Access to Profile -&gt; Add User)  Be sure to give this new user the &#8220;Administrator&#8221; access type.</li>
<li>Login to the new account.</li>
<li>Change the original Administrator account to &#8220;User&#8221; (don&#8217;t forget this step)</li>
<li>Delete the original account.</li>
</ol>
<p>Easy peasy.</p>
<p>Just note that if you have a bunch of analytics site data all tied together under one profile, then all of it will transfer together.  As far as I can tell, there is no way to uncouple this.  And this is probably what Google is referring to when they say that ownership cannot be transferred.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.arithm.com/2009/11/12/transferring-google-analytics-accounts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>defeating vsftp error &#8220;500 OOPS: cannot change directory:/some/directory&#8221;</title>
		<link>http://blog.arithm.com/2009/06/15/defeating-vsftp-error-500-oops-cannot-change-directorysomedirectory/</link>
		<comments>http://blog.arithm.com/2009/06/15/defeating-vsftp-error-500-oops-cannot-change-directorysomedirectory/#comments</comments>
		<pubDate>Mon, 15 Jun 2009 19:04:18 +0000</pubDate>
		<dc:creator>nurikabe</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.arithm.com/?p=854</guid>
		<description><![CDATA[There&#8217;s lots of recommendations floating around the net for this, but try the following first: Make sure that the user and group permissions for the account and the home directory match. For example, if you are logging in as: account:x:521:500::/some/directory:/sbin/nologin then make sure that the home directory defined for &#8220;account&#8221; is at least readable and [...]]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s lots of recommendations floating around the net for this, but try the following first:</p>
<p>Make sure that the user and group permissions for the account and the home directory match.  For example, if you are logging in as:</p>
<p><code>account:x:521:500::/some/directory:/sbin/nologin</code></p>
<p>then make sure that the home directory defined for &#8220;account&#8221; is at least readable and executable by user 521 and group 500.</p>
<p>I posted about this <a href="http://blog.arithm.com/2009/04/02/getting-past-vsftps-500-oops-cannot-change-directory/">previously</a> but this time I also ran into directory permissions.  Ugh.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.arithm.com/2009/06/15/defeating-vsftp-error-500-oops-cannot-change-directorysomedirectory/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

