<?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, 23 Jul 2010 01:12:50 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.9</generator> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <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 [...]]]></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), <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>1</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.  [...]]]></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>3</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 out of [...]]]></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 account [...]]]></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 executable by [...]]]></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> ]]></content:encoded> <wfw:commentRss>http://blog.arithm.com/2009/06/15/defeating-vsftp-error-500-oops-cannot-change-directorysomedirectory/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Getting past VSFTP&#8217;s 500 OOPS: cannot change directory</title><link>http://blog.arithm.com/2009/04/02/getting-past-vsftps-500-oops-cannot-change-directory/</link> <comments>http://blog.arithm.com/2009/04/02/getting-past-vsftps-500-oops-cannot-change-directory/#comments</comments> <pubDate>Thu, 02 Apr 2009 20:25:43 +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=872</guid> <description><![CDATA[This is a frustrating one.  Make sure that the user you are connecting as and the target directory have both the same user as well as group permissions.
For example, if you are chroot jailing a particular user, given this entry from /etc/passwd:
username:x:100:200::/ftp/directory:/sbin/nologin
(where 100 = &#8220;username&#8221; and 200 = &#8220;somegroup&#8221;)
Make sure that the user and [...]]]></description> <content:encoded><![CDATA[<p>This is a frustrating one.  Make sure that the user you are connecting as and the target directory have both the same user as well as <strong>group</strong> permissions.</p><p>For example, if you are chroot jailing a particular user, given this entry from /etc/passwd:</p><p><code>username:x:<span
style="color: #ff0000;">100</span>:<span
style="color: #0000ff;">200</span>::/ftp/directory:/sbin/nologin</code><br
/> (where 100 = &#8220;username&#8221; and 200 = &#8220;somegroup&#8221;)</p><p>Make sure that the user and group permissions of the directory match what is set in /etc/passwd:</p><p><code><br
/> $ ls -lah /ftp/directory<br
/> drwxrwx--- 4 <span
style="color: #ff0000;">username</span> <span
style="color: #0000ff;">somegroup</span> 4.0K Mar 24 23:56 .<br
/> </code></p><p>Posted this one since I&#8217;ve probably solved it, and then promptly forgotten the solution, at least three times.</p> ]]></content:encoded> <wfw:commentRss>http://blog.arithm.com/2009/04/02/getting-past-vsftps-500-oops-cannot-change-directory/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Quick fix for &#8220;java.sql.SQLException: Value &#8216;0000-00-00&#8242; can not be represented as java.sql.Timestamp&#8221;</title><link>http://blog.arithm.com/2009/02/27/quick-fix-for-javasqlsqlexception-value-0000-00-00-can-not-be-represented-as-javasqltimestamp/</link> <comments>http://blog.arithm.com/2009/02/27/quick-fix-for-javasqlsqlexception-value-0000-00-00-can-not-be-represented-as-javasqltimestamp/#comments</comments> <pubDate>Fri, 27 Feb 2009 22:30:35 +0000</pubDate> <dc:creator>nurikabe</dc:creator> <category><![CDATA[How To]]></category> <category><![CDATA[Technology]]></category><guid
isPermaLink="false">http://blog.arithm.com/?p=814</guid> <description><![CDATA[If you ever run across this while fighting with Hibernate, one quick fix is to instruct JDBC to turn the bad date values into NULLs, eg:
jdbc:mysql://localhost/test?zeroDateTimeBehavior=convertToNull&#38;autoReconnect=true&#38;characterEncoding=UTF-8&#38;characterSetResults=UTF-8
Your mileage side-effects may vary.
More excellent Java + J2EE tips (and lots of other stuff in Czech) here.
]]></description> <content:encoded><![CDATA[<p>If you ever run across this while fighting with Hibernate, one quick fix is to instruct JDBC to turn the bad date values into NULLs, eg:</p><p><code>jdbc:mysql://localhost/test?<font
color="red">zeroDateTimeBehavior=convertToNull</font>&amp;autoReconnect=true&amp;characterEncoding=UTF-8&amp;characterSetResults=UTF-8</code></p><p>Your <span
style="text-decoration: line-through;">mileage</span> side-effects may vary.</p><p>More excellent Java + J2EE tips (and lots of other stuff in Czech) <a
href="http://ondra.zizka.cz/stranky/programovani/java/index.texy">here</a>.</p> ]]></content:encoded> <wfw:commentRss>http://blog.arithm.com/2009/02/27/quick-fix-for-javasqlsqlexception-value-0000-00-00-can-not-be-represented-as-javasqltimestamp/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Diff&#8217;ing files over the network</title><link>http://blog.arithm.com/2009/02/24/diffing-files-over-the-network/</link> <comments>http://blog.arithm.com/2009/02/24/diffing-files-over-the-network/#comments</comments> <pubDate>Tue, 24 Feb 2009 16:15:33 +0000</pubDate> <dc:creator>nurikabe</dc:creator> <category><![CDATA[How To]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Technology]]></category> <category><![CDATA[diff]]></category><guid
isPermaLink="false">http://blog.arithm.com/?p=796</guid> <description><![CDATA[This is a godsend.  Wish I had thought about doing this before.$ diff source/worksforme.php ]]></description> <content:encoded><![CDATA[<p>This is a godsend.  Wish I had thought about doing this before.</p><p><code><br
/> $ diff source/worksforme.php <(ssh -n me@liveserver cat /home/me/source/worksforme.php)<br
/> </code></p><p>You can also compare files on two remote hosts.</p><p><code><br
/> $ diff <(ssh -n me@testserver cat /home/me/source/worksforme.php) <(ssh -n me@clientserver cat /home/me/source/worksforme.php)<br
/> </code></p> ]]></content:encoded> <wfw:commentRss>http://blog.arithm.com/2009/02/24/diffing-files-over-the-network/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Character encoding translation breaks when upgrading WordPress</title><link>http://blog.arithm.com/2009/02/08/character-encoding-translation-breaks-when-upgrading-wordpress/</link> <comments>http://blog.arithm.com/2009/02/08/character-encoding-translation-breaks-when-upgrading-wordpress/#comments</comments> <pubDate>Sun, 08 Feb 2009 16:20:21 +0000</pubDate> <dc:creator>nurikabe</dc:creator> <category><![CDATA[How To]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Technology]]></category> <category><![CDATA[mbstring]]></category><guid
isPermaLink="false">http://blog.arithm.com/?p=732</guid> <description><![CDATA[Recent versions of WordPress like to second-guess the internal and external encodings used by mbstring when assembling data from the database and spitting it out to blog pages.  Probably this works fine for most, but if you have an older database storing text as something other then UTF-8, probably you have a custom chunk of [...]]]></description> <content:encoded><![CDATA[<p>Recent versions of WordPress like to second-guess the internal and external encodings used by mbstring when assembling data from the database and spitting it out to blog pages.  Probably this works fine for most, but if you have an older database storing text as something other then UTF-8, probably you have a custom chunk of mbstring configuration in an .htaccess file or similar; perhaps like this:<br
/> <code><br
/> php_value output_buffering                      1<br
/> php_value output_handler                        mb_output_handler<br
/> php_value mbstring.language                     Japanese<br
/> php_value mbstring.internal_encoding            EUC-JP<br
/> php_value mbstring.http_input                   auto<br
/> php_value mbstring.http_output                  SJIS<br
/> php_value mbstring.encoding_translation         1<br
/> </code></p><p>WordPress&#8217;s second-guessing will break this, resulting in a bunch of garbled posts.  To fix, comment out this chunk of code in wp-settings.php:</p><pre class="brush: php;">
/*
 * In most cases the default internal encoding is latin1, which is of no use,
 * since we want to use the mb_ functions for utf-8 strings
 */
if (function_exists('mb_internal_encoding')) {
        if (!@mb_internal_encoding(get_option('blog_charset')))
                mb_internal_encoding('UTF-8');
}
</pre><p>With this gone, WordPress will stop second-guessing and custom encoding translations should flow through just fine.</p> ]]></content:encoded> <wfw:commentRss>http://blog.arithm.com/2009/02/08/character-encoding-translation-breaks-when-upgrading-wordpress/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (user agent is rejected)
Database Caching 37/57 queries in 0.023 seconds using disk

Served from: blog.arithm.com @ 2010-08-01 07:08:22 -->