<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Howto on Evan Hoffman</title><link>https://evan.wtf/tags/howto/</link><description>Recent content in Howto on Evan Hoffman</description><generator>Hugo</generator><language>en-US</language><copyright>Evan Hoffman</copyright><lastBuildDate>Mon, 11 Jul 2011 14:39:16 +0000</lastBuildDate><atom:link href="https://evan.wtf/tags/howto/index.xml" rel="self" type="application/rss+xml"/><item><title>Migrating a PostgreSQL DB to a new machine without doing a dump &amp; restore</title><link>https://evan.wtf/2011/07/11/migrating-a-postgresql-db-to-a-new-machine-without-doing-a-dump-restore/</link><pubDate>Mon, 11 Jul 2011 14:39:16 +0000</pubDate><guid>https://evan.wtf/2011/07/11/migrating-a-postgresql-db-to-a-new-machine-without-doing-a-dump-restore/</guid><description>rsync over NFS can be so fast.</description></item><item><title>How I fixed my Wii's noisy disc drive &amp; read errors.</title><link>https://evan.wtf/2011/02/25/how-i-fixed-my-wii-noisy-disc-drive-read-errors/</link><pubDate>Fri, 25 Feb 2011 00:10:31 +0000</pubDate><guid>https://evan.wtf/2011/02/25/how-i-fixed-my-wii-noisy-disc-drive-read-errors/</guid><description>&lt;p&gt;I got my Wii in late 2006 and around 2009 I noticed it was starting to sound like a circular saw when the disc drive was spinning. This was annoying but it didn&amp;rsquo;t affect the games so I never thought much about it.&lt;/p&gt;&#10;&lt;p&gt;About two weeks ago, however, &lt;a href="http://www.amazon.com/dp/B002BRZ9G0/?tag=evanhoffmasho-20"&gt;New Super Mario Bros. Wii&lt;/a&gt; stopped working:&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://evan.wtf/evan/2011/02/25/how-i-fixed-my-wiis-noisy-disc-drive-read-errors/img_1001/"&gt;&lt;img src="https://evan.wtf/wp-content/uploads/2011/02/IMG_1001-300x225.jpg" alt="" title="IMG_1001"&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;The Wii basically worked except for the disc drive. As soon as I put a disc in, I&amp;rsquo;d get the error above - even if I didn&amp;rsquo;t start start the game. I tried blowing in the disc slot (the only thing I could think of&amp;hellip; worked for my old NES!) but the problem continued. I figured I had two choices: buy another Wii or attempt to fix mine. Since mine was already essentially useless I figured it couldn&amp;rsquo;t hurt anything to try fixing it.&lt;/p&gt;</description></item><item><title>Forcing Wordpress administration over SSL</title><link>https://evan.wtf/2010/09/20/forcing-wordpress-administration-over-ssl/</link><pubDate>Mon, 20 Sep 2010 15:46:05 +0000</pubDate><guid>https://evan.wtf/2010/09/20/forcing-wordpress-administration-over-ssl/</guid><description>&lt;p&gt;I never like typing a password into a non-SSL site, no matter how trivial it is. In order to give my own site this ability I simply used mod_rewrite to force requests to Wordpress&amp;rsquo;s admin pages to go over SSL.&lt;/p&gt;&#10;&lt;p&gt;The .htaccess file for the site looks like this:&lt;/p&gt;&#10;&lt;h1 id="begin-wordpress"&gt;BEGIN WordPress&lt;a class="heading-anchor" href="#begin-wordpress" aria-label="Link to this section"&gt;&#10; &lt;svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2"&#10; stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"&gt;&#10; &lt;path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/&gt;&#10; &lt;path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/&gt;&#10; &lt;/svg&gt;&#10; &lt;/a&gt;&#10;&lt;/h1&gt;&#10;&lt;p&gt;RewriteEngine On&#10;RewriteBase /evan/&#10;RewriteRule ^index.php$ - [L]&#10;RewriteCond %{REQUEST_FILENAME} !-f&#10;RewriteCond %{REQUEST_FILENAME} !-d&#10;RewriteRule . /evan/index.php [L]&lt;/p&gt;</description></item><item><title>HOWTO: Install Flash plugin on Firefox on Fedora / CentOS / RedHat Linux</title><link>https://evan.wtf/2010/06/09/howto-install-flash-plugin-on-firefox-on-fedora-centos-redhat-linux/</link><pubDate>Wed, 09 Jun 2010 01:36:54 +0000</pubDate><guid>https://evan.wtf/2010/06/09/howto-install-flash-plugin-on-firefox-on-fedora-centos-redhat-linux/</guid><description>&lt;p&gt;Updated 8/31/2011 See my &lt;a href="https://evan.wtf/2011/08/31/64-bit-firefox-6-on-centos-6-x86_64-or-fedora-with-flash-11/"&gt;newer post&lt;/a&gt; on this subject.&lt;/p&gt;&#10;&lt;p&gt;I know I&amp;rsquo;ve been through this before because I&amp;rsquo;ve setup Fedora before and it&amp;rsquo;s working. But I just installed FC12 on my desktop at home (since my Seagate drive bricked itself a few days ago and I had to reinstall anyway) and while I finally got the Adobe Flash plugin working, it didn&amp;rsquo;t have any audio, which made YouTube kind of suck. Anyway, this of course was a solved problem, I just forgot where the fix was located&amp;hellip; but duh, it&amp;rsquo;s &lt;a href="http://fedoraproject.org/wiki/Multimedia/Flash#On_64-bit_Fedora"&gt;on the Fedora website&lt;/a&gt;. A simple&lt;/p&gt;</description></item><item><title>Victory! Change Active Directory Password via LDAP through browser</title><link>https://evan.wtf/2010/01/13/victory-change-active-directory-password-via-ldap-through-browser/</link><pubDate>Wed, 13 Jan 2010 13:51:43 +0000</pubDate><guid>https://evan.wtf/2010/01/13/victory-change-active-directory-password-via-ldap-through-browser/</guid><description>&lt;p&gt;I had to give up on PHP and go to Perl, but it turned out not to be so bad. Users can now change their Active Directory passwords via a self-service web page that doesn&amp;rsquo;t require admin credentials. The Perl code is below. Authentication to the script is done via .htaccess LDAP authentication, so the REMOTE_USER env variable is assumed to contain the user&amp;rsquo;s username (sAMAccountName) by the time this script is called. There is a simple check for $ENV{HTTPS} to ensure the script is called via SSL, and AD requires password changes to be done via ldaps, so the whole thing &lt;em&gt;should&lt;/em&gt; be encrypted end to end.&lt;/p&gt;</description></item><item><title>How to install the 64-bit Sun Java plugin on 64-bit firefox on 64-bit Fedora Core 11 Linux (which happens to use 64 bits)</title><link>https://evan.wtf/2009/10/21/how-to-install-the-64-bit-sun-java-plugin-on-64-bit-firefox-on-64-bit-fedora-which-happens-to-use-64-bits/</link><pubDate>Wed, 21 Oct 2009 17:45:09 +0000</pubDate><guid>https://evan.wtf/2009/10/21/how-to-install-the-64-bit-sun-java-plugin-on-64-bit-firefox-on-64-bit-fedora-which-happens-to-use-64-bits/</guid><description>&lt;p&gt;I&amp;rsquo;m giddy! I found &lt;a href="http://plugindoc.mozdev.org/linux-amd64.html"&gt;this post&lt;/a&gt; on mozdev.org which was magical.&lt;/p&gt;&#10;&lt;blockquote&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;[evan@ehoffman ~]$ java -version&#10;java version &amp;#34;1.6.0_17&amp;#34;&#10;Java(TM) SE Runtime Environment (build 1.6.0_17-b04)&#10;Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01, mixed mode)&#10;&lt;/code&gt;&lt;/pre&gt;&lt;/blockquote&gt;&#10;&lt;blockquote&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;[root@ehoffman plugins]# uname -a&#10;Linux ehoffman 2.6.30.8-64.fc11.x86_64 #1 SMP Fri Sep 25 04:43:32 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux&#10;[root@ehoffman plugins]# pwd&#10;/usr/lib64/mozilla/plugins&#10;[root@ehoffman plugins]# ln -s /usr/java/jdk1.6.0_16/jre/lib/amd64/libnpjp2.so&#10;&lt;/code&gt;&lt;/pre&gt;&lt;/blockquote&gt;&#10;&lt;p&gt;The main thing I was missing was that the plugin isn&amp;rsquo;t libpluginjava_oji.so, or whatever I thought it was, but libnpjp2.so. Once I created the symlink into /usr/lib64/mozilla/plugins it worked (as verified on &lt;a href="http://www.java.com/en/download/help/testvm.xml"&gt;http://www.java.com/en/download/help/testvm.xml&lt;/a&gt; and &lt;a href="http://www.java.com/en/download/installed.jsp"&gt;http://www.java.com/en/download/installed.jsp&lt;/a&gt;).&lt;/p&gt;</description></item><item><title>Migrating RT from mysql to postgresql.</title><link>https://evan.wtf/2009/08/06/migrating-rt-from-mysql-to-postgresql/</link><pubDate>Thu, 06 Aug 2009 17:21:42 +0000</pubDate><guid>https://evan.wtf/2009/08/06/migrating-rt-from-mysql-to-postgresql/</guid><description>&lt;p&gt;So I wanted to move our old RT 3.6 system to a new VM running a clean CentOS 5.3 x86 install and RT 3.8. I got RT installed but the 3.6 system was running on MySQL, which sucks (still), and I wanted to move it to Postgres, which rules (more and more each day). So Googling for &amp;ldquo;migrate rt from mysql to postgresql&amp;rdquo; brought me &lt;a href="http://himdel.blogspot.com/2009/04/migrating-request-tracker-from-rt-345.html"&gt;here&lt;/a&gt;. I tried the procedure listed there but it wasn&amp;rsquo;t quite working for me. my2pg.pl and mysql2postgresql.perl both caused segfaults when I tried to run them. I realized I was on my own, and it wasn&amp;rsquo;t really that bad.&lt;/p&gt;</description></item><item><title>One-click converting .avi to .mp4 for iPod or iPhone</title><link>https://evan.wtf/2009/05/27/one-click-converting-avi-to-mp4-for-ipod-or-iphone/</link><pubDate>Wed, 27 May 2009 22:06:42 +0000</pubDate><guid>https://evan.wtf/2009/05/27/one-click-converting-avi-to-mp4-for-ipod-or-iphone/</guid><description>I found a way to convert my camera&amp;rsquo;s .avi files to iPod and iPhone-compatible .mp4 files with minimal effort. The .mp4 files are also significantly smaller.</description></item></channel></rss>