<?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>footnoteblog &#187; technology</title>
	<atom:link href="http://footnoteblog.com/tag/technology/feed/" rel="self" type="application/rss+xml" />
	<link>http://footnoteblog.com</link>
	<description>random musings and missives</description>
	<lastBuildDate>Mon, 01 Feb 2010 19:28:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Copy a WordPress blog to a local machine</title>
		<link>http://footnoteblog.com/2010/02/01/copy-a-wordpress-blog-to-a-local-machine/</link>
		<comments>http://footnoteblog.com/2010/02/01/copy-a-wordpress-blog-to-a-local-machine/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 19:25:25 +0000</pubDate>
		<dc:creator>jacksatta</dc:creator>
				<category><![CDATA[technology]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[configuring]]></category>
		<category><![CDATA[local development]]></category>
		<category><![CDATA[mac os x]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[snow leopard]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://footnoteblog.com/2010/02/01/copy-a-wordpress-blog-to-a-local-machine/</guid>
		<description><![CDATA[<p>Some of my notes on how to copy over a WordPress blog to a local machine.</p>]]></description>
			<content:encoded><![CDATA[<p>Prerequisites:<br />
-You set up (or at least have user access to) the database and know how to get the existing Wordpress database into a file.<br />
-You know your way around a command line<br />
-You know how to setup Apache and PHP, MySQL on your Mac. No installation necessary. </p>
<h2>Step 1</h2>
<p><a href="http://maestric.com/doc/mac/apache_php_mysql_snow_leopard">How to fix MySQL in Snow Leopard</a></p>
<p>Basically, thus:<br />
Fix mysql.sock location in php.ini</p>
<p>In /etc/php.ini, replace the three occurences of /var/mysql/mysql.sock by /tmp/mysql.sock</p>
<ul>
<li>pdo_mysql.default_socket=/tmp/mysql.sock</li>
<li>mysql.default_socket = /tmp/mysql.sock</li>
<li>mysqli.default_socket = /tmp/mysql.sock</li>
</ul>
<h2>Step 2</h2>
<p><a href="http://www.givegoodweb.com/post/82/phpadmin-upload-restriction">Quickly import a database into a local computer</a></p>
<p>When you want to import a large SQL query in phpMyAdmin, you can run into problems as the default upload size limit is restricted by whatever it is in the php.ini file &#8211; and often, you cannot change this or simply don’t want to. It tends to default to a measly 2MB.</p>
<p>However, there’s a feature that will allow you to FTP your SQL file to an upload directory of your choosing, and then instruct phpMyAdmin to run the query file. Here’s how you do it.</p>
<p>Open up your FTP program, and navigate to the phpmyadmin folder on your server. Inside that folder is a file called config.inc.php &#8211; open this up in your trusty text editor.</p>
<p>While you’re still in your FTP program &#8211; create a directory inside the phpmyadmin directory called upload:</p>
<p>Towards the bottom of the config file, you’ll notice a potential setting for $cfg['UploadDir']. Change it so that it reads the following:</p>
<p>Don’t forget to add the “./” before “upload” &#8211; this just tells the program to look in the existing directory (phpmyadmin) for a folder called “upload” &#8211; there’s no need to change file permissions or anything.</p>
<p>Save it, and then go back to your ftp program, and upload a sql file to that directory.</p>
<p>When you go to the Import tab in phpMyAdmin, you’ll now see a drop-down list of available files within your upload directory. Pick the one you want to run.</p>
<h2>Step 3</h2>
<p><a href="http://codex.wordpress.org/Changing_The_Site_URL">Fix blank Wordpress pages</a></p>
<p>Not sure which of the two worked; probably the last item.</p>
<h3>Edit wp-config.php</h3>
<p>It should be possible to fix the site URL using a new feature -</p>
<p>Add these two lines to your wp-config.php, where &#8220;example.com&#8221; is the NEW location of your site.</p>
<p>define(&#8217;WP_HOME&#8217;,'http://example.com&#8217;);<br />
define(&#8217;WP_SITEURL&#8217;,'http://example.com&#8217;);<br />
That should be it. If it worked, stop reading this page now.</p>
<p>Thanks filosofo for the fix, implemented in 2.2.</p>
<h3>Quick fix method</h3>
<p>If you have access to the site via FTP, then this method will help you quickly get a site back up and running, if you changed those values incorrectly.</p>
<p>1. FTP to the site, and get a copy of the active theme&#8217;s functions.php file. You&#8217;re going to edit it in a simple text editor (like notepad) and upload it back to the site.</p>
<p>2. Add these two lines to the file, immediately after the initial &#8220;<?php" line.</p>
<p>update_option('siteurl','http://example.com/blog');<br />
update_option('home','http://example.com/blog');<br />
Use your own URL instead of example.com, obviously.</p>
<p>3. Upload the file back to your site, in the same location. FileZilla offers a handy "edit file" function to do all of the above rapidly, if you can use that, do so.</p>
<p>4. Load the login or admin page a couple of times. The site should come back up.</p>
<p>5. Repeat the above steps, but remove those lines. IMPORTANT: Do NOT leave those lines in there. Remove them immediately after the site is up and running again.</p>
<p>If there is no functions.php file in the theme: Create a new text file called "functions.php". Edit it with notepad, and add this text to it, using your own URL instead of example.com:</p>
<p><?php<br />
update_option('siteurl','http://example.com/blog');<br />
update_option('home','http://example.com/blog');<br />
Upload that to your theme directory, then proceed as stated above. Remove the file afterwards.</p>
<h2>Step 4</h2>
<p>Fix permissions issues to develop themes<br />
<a href="http://lettersandscience.net/software/2009/07/how-to-install-wordpress-on-mac-os-x-leopard">Set file permissions</a></p>
<p>On Mac OS X (Leopard), the Apache HTTP Server runs under the user account, _www which belongs to the group _www.  To allow WordPress to configure wp-config.php during installation, update files during upgrades, and update the .htaccess file for pretty permalinks, give the server write permission on the files.</p>
<p>One way to do this is to change the owner of the wordpress directory and its contents to _www. Keep the group as staff, a group to which your user account belongs and give write permissions to the group.</p>
<p>$ cd /Users/<username>/Sites<br />
$ sudo chown -R _www wordpress<br />
$ sudo chmod -R g+w wordpress</p>
<p>This way, the WordPress directories have a permission level of 775 and files have a permission level of 664.  No file nor directory is world-writeable.</p>
<p>For reference, the Apache configuration file, httpd.conf, contains entries for the User and Group which the server will run as.  The default setting is www for both.</p>
<p>For reference, on Mac OS X (Leopard), the user account information is located in the file:</p>
<p>/private/var/db/dslocal/nodes/Default/users/_www.plist</p>
<p>This file shows that the _www and www name map to the same user account.</p>
<p>===== </p>
<p><b>Bonus 1:</b> enable mod_rewrite if you use friendly URLs for posts and pages (e.g., &#8220;blog.com/dec/12&#8243;)<br />
<a href="http://codex.wordpress.org/Using_Permalinks">Here, under &#8216;Fixing Other Issues&#8217;.</a></p>
<p>In two places in the httpd.conf file. A third is for the CGI directory if you wish to fix that.</p>
<p>AllowOverride Not Enabled<br />
Your server may not have the AllowOverride directive enabled. If the AllowOverride directive is set to None in your Apache httpd.config file, then .htaccess files are completely ignored. In this case, the server will not even attempt to read .htaccess files in the filesystem. When this directive is set to All, then any directive which has the .htaccess Context is allowed in .htaccess files. Example of enabled AllowOverride directive in httpd.config:<br />
 <Directory /><br />
    Options FollowSymLinks<br />
    AllowOverride All<br />
 </Directory><br />
You may also have to enable the AllowOverride directive in your DocumentRoot:</p>
<p> <Directory /var/www/html><br />
    # &#8230; other directives&#8230;<br />
    AllowOverride All<br />
 </Directory></p>
<p><b>Bonus 2</b><br />
Character encoding showing up strange? The fix is <a href="http://wordpress.org/support/topic/101135?replies=12#post-580200">here</a>.</p>
<p>1. Upgrading to WP2.2 caused funny characters to appear.</p>
<p>FIX: Commenting these two lines out in wp-config.php fixed it.<br />
// define(&#8217;DB_CHARSET&#8217;, &#8216;utf8&#8242;);<br />
// define(&#8217;DB_COLLATE&#8217;, &#8221;);</p>
<p>2. WP2.2 links to single posts from archive pages (or blog home page or search page) fails because of the presence of double byte characters in posts.</p>
<p>FIX: In the admin pages, I went to Options/Permalinks and re-saved the page.</p>
<p>===== </p>
<p>That should get you going. Good luck.</p>
]]></content:encoded>
			<wfw:commentRss>http://footnoteblog.com/2010/02/01/copy-a-wordpress-blog-to-a-local-machine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPad thought</title>
		<link>http://footnoteblog.com/2010/01/30/ipad-thought/</link>
		<comments>http://footnoteblog.com/2010/01/30/ipad-thought/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 07:48:00 +0000</pubDate>
		<dc:creator>jacksatta</dc:creator>
				<category><![CDATA[technology]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[ipad]]></category>

		<guid isPermaLink="false">http://footnoteblog.com/2010/01/30/ipad-thought/</guid>
		<description><![CDATA[I suspect far more translucence in popovers to come.
]]></description>
			<content:encoded><![CDATA[<p>I suspect far more translucence in popovers to come.</p>
]]></content:encoded>
			<wfw:commentRss>http://footnoteblog.com/2010/01/30/ipad-thought/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>travel charging setups</title>
		<link>http://footnoteblog.com/2009/04/01/travel-charging-setups/</link>
		<comments>http://footnoteblog.com/2009/04/01/travel-charging-setups/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 21:39:46 +0000</pubDate>
		<dc:creator>jacksatta</dc:creator>
				<category><![CDATA[technology]]></category>
		<category><![CDATA[charging]]></category>
		<category><![CDATA[laptop]]></category>
		<category><![CDATA[power]]></category>
		<category><![CDATA[travel]]></category>

		<guid isPermaLink="false">http://footnoteblog.com/2009/04/01/travel-charging-setups/</guid>
		<description><![CDATA[<p>Dedicated chargers vs. a universal charger with tips: I literally weigh them.</p>]]></description>
			<content:encoded><![CDATA[<p><em>Dedicated chargers vs. a universal charger with tips: I literally weigh them in.</em></p>
<p>Over the years, I&#8217;ve carried innumerable gadgets and the like, though I&#8217;m not the type that packs a dSLR, laptop, gaming device AND music player. In fact, I&#8217;ve traveled with only a camera and a few extra memory cards, and no more— in fact, I prefer traveling that way. But inevitably, you must take a phone to communicate with others, or an entertainment device, whether it&#8217;s a music or video player. And those items usually require portable battery power. Most of those devices have dedicated power bricks, and are rarely interchangeable. Over a few years, a few competitors have tried to make a universal charger to charge all your devices, including laptops. Unfortunately for Mac users, there is only <a href="http://mikegyver.com/">one vendor</a> who makes a cable for the Mac portables and universal chargers; though he does provide a DIY guide to modify your own for a few dollars. The bottom line is, what is the least amount of gadgets you can carry and still be functional on the road?</p>
<p>I&#8217;ll discuss the <a href="http://bit.ly/BMgfg">Kensington adapter</a> here, though I do have experiences with the iGo and Solio chargers.</p>
<p>For my travel, I&#8217;ve gotten things down to a Leica M8 and a few lenses, a <a href="http://bit.ly/QgbyD">MacBook Air</a>… and well, that&#8217;s it. Sometimes I just travel with my M8 and a few spare batteries and cards, and I&#8217;m perfectly happy. But for over a week, I drag along a laptop. I hated carrying my 15&#8243; MacBook Pro, and the 13&#8243; MacBook was still a burden. The MacBook Air (and a backup hard drive) is a perfect travel companion. I like the iPhone for its handy applications, but for international cellular voice, an unlocked GSM Blackberry is very handy. SIM cards are easily purchased in countries, and simply recharged. Pay-as-you go Blackberry service (BIS) is apparently even available in the UK.</p>
<p><strong>How do you charge all these items?</strong><br />
There are basically two options: carry dedicated chargers or use a universal charging device. There is a distinct advantage to carrying all the myriad chargers: if one fails, you can still charge your other devices. You can charge one or most of your items at the same time. The advantage of having a universal charger is that you can somewhat simplify what you carry, but that can be negated by the unique approach to universal charging: the myriad tips. This all assumes of course, that your chargers can handle international voltages and power cycles.</p>
<p>First, you have to find the tips available for your small devices. Kensington has a limited selection of tips available, but iGo carries a larger selection, including one that charges the iPhone 3G. Kensington does offer a standard USB female tip, in which case you can plug in a USB cable to charge your device, if there is a corresponding cable available (for instance, Sony PSP mini USB &#8211;&gt; USB, and is also the same as a Blackberry cable). So, what is the advantage then? Certainly it must be weight reduction? Unfortunately, the answer is no.</p>
<p>I weighed each of the setups to see what I would get in terms of weight savings. I removed some of the shared items (Leica battery charger, country power tip converters from <a href="http://bit.ly/BGLB">Lewis and Clark</a> (though the APC—and known by other names as well— universal plug adapter is decent), iPod cable, and AA charger for a mouse, if necessary), to see what the net weight of each setup would be. I was quite surprised to find out the dedicated charging options was quite a good weight-savings bargain!</p>
<p><img src="http://footnoteblog.com/wp-content/uploads/2009/04/mg-33481.jpg" width="480" height="320" alt="_MG_3348.jpg" class="topimage" /><br />
<em>This is the dedicated charging set. Shown: Monster Cable 3-outlet extender, Blackberry charger, iPhone charger, MacBook Air charger.</em>&nbsp;&nbsp;</p>
<p>
<img src="http://footnoteblog.com/wp-content/uploads/2009/04/mg-33491.jpg" width="480" height="320" alt="_MG_3349.jpg" class="topimage" /> <em><br />
Shown here is the Kensington Travel charger set. Included are items not all necessary for travel.</em></p>
<p>You may think, well, why bother? Indeed, it seems like a lot more stuff, but the key advantage of the universal charger is such that you can carry a few less pieces, if you simplify the setup. Above is the whole she-bang, and not necessary for travel; <em>you don&#8217;t need to bring all of this</em>. You could easily eliminate the extra Y-adapters (I&#8217;ll discuss these in a bit), and the car/plane adapter. Aha! the plane/car adapter that actually charges your laptop as well. There&#8217;s the distinct advantage: with Apple&#8217;s in-flight cable, you can only power your laptop, and no more. The windup cable is an added expense, as Kensington supplies a long, bound cable, about a meter long.</p>
<p><strong>What&#8217;s with the Y-adapters?<br />
<span style="font-weight: normal;">With a single cable, you can charge one device; with the Y-adapter you can charge a laptop, and: a small device (like phone or iPod), or battery charger (provided you know what the right tip is, and that your battery charger has a DC input). You can also daisy-chain Y-adapters to your heart&#8217;s content to provide laptop power and as many devices as Y-adapters you have. You don&#8217;t need the Y-adapters, if you can mentally manage charging device juggling times during your travel down-time. Being a modular system provides lots of flexibility, but at the expense of lots of parts, and as we&#8217;ll see some additional weight and time-suck.</span></strong></p>
<p><img src="http://footnoteblog.com/wp-content/uploads/2009/04/img-0333.jpg" width="480" height="360" alt="IMG_0333.jpg" class="topimage" /><br />
<em>The flexibility of the universal charger.</em></p>
<p>Following are the results of the weigh-in for these two setups (they were weighed with a fairly accurate postal scale):</p>
<ul>
<li>Kensington (full): 1lb. 4oz.</li>
<li>Kensington (no auto/air, ): 1lb. 2oz.</li>
<li>Kensington (no auto/air, no y-adapters, tips only): 1lb. 1oz.</li>
<li>Kensington (no auto/air, 1 y-adapter): 1lb.</li>
<li>Dedicated chargers : 1lb.</li>
</ul>
<p>The Kensington was, after all, a refurb on sale for about $20; along with the other tips and cables, the cost creeps to around $80; a second MacBook Air adapter and travel plug costs about as much. <img src='http://footnoteblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  As you can see, the weight savings aren&#8217;t quite there, but not grossly heavier either. The advantage is that you have a great deal of charging options for devices and inputs. But ultimately, you have a single line of not-so-easily-replaceable failure— that is, everything from the power cable through the power brick to the extension cable, and tips. And in systems reliability design, this is generally a <a href="http://bit.ly/fAYw">Bad Idea</a>™. Ultimately, this information was intended to allow people to make their own decisions in regards to answer whether or not they need a single, or dedicated charger, and the distinct advantages and disadvantages they both come with.</p>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://footnoteblog.com/2009/04/01/travel-charging-setups/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>quick development notes</title>
		<link>http://footnoteblog.com/2009/03/20/quick-development-notes/</link>
		<comments>http://footnoteblog.com/2009/03/20/quick-development-notes/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 19:10:53 +0000</pubDate>
		<dc:creator>jacksatta</dc:creator>
				<category><![CDATA[technology]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[customizing]]></category>

		<guid isPermaLink="false">http://footnoteblog.com/2009/03/20/quick-development-notes/</guid>
		<description><![CDATA[You should probably have already set up your WebServer (PHP enabled in Apache, MySQL installed (on OS X, there are simple installers and admin tools (GUI applications) that makes things easier, unless you prefer phpmyadmin).   ...  For some odd reason, the default 'localhost' variable in wp-config.php was not working for me, but changing it to '127.0.0.1'  works .  ]]></description>
			<content:encoded><![CDATA[<p>Tons of tutorials are out there to help people install <a href="http://wordpress.org/">WordPress</a> on their local machines. But what if you wanted to import an existing blog? Here are my quick notes. You should probably have already set up your WebServer (PHP enabled in Apache, MySQL installed (on OS X, there are simple installers and admin tools (GUI applications) that makes things easier, unless you prefer phpmyadmin).</p>
<ol>
<li>Import database from live site using <a href="http://www.phpmyadmin.net/home_page/index.php">phpmyadmin</a> or any other <a href="http://dev.mysql.com/downloads/gui-tools/5.0.html">MySQL tools</a>, if you want actual data.</li>
<li><a href="http://codex.wordpress.org/Installing_WordPress#Step_2:_Create_the_Database_and_a_User">Setup the database</a> to mirror the settings as the live site (create a database, user, password, etc.)</li>
<li>For some odd reason, the default &#8216;localhost&#8217; variable in wp-config.php was not working for me, but changing it to &#8216;127.0.0.1&#8242; <a href="http://mu.wordpress.org/forums/topic.php?id=4451">works</a>.</li>
<li>Download site via FTP (<a href="http://www.panic.com/transmit/">1</a>, <a href="http://www.wftpserver.com/wftp.htm">2</a>) or methods (<a href="http://www.webdavsystem.com/server/access/macosx">WebDAV</a>) that work.</li>
<li>Install and run <a href="http://blog.circlesixdesign.com/2007/06/04/moving-wordpress-2/">move script</a> to localize the URLs.</li>
</ol>
<p>Et voilà, you can now develop your local version.</p>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://footnoteblog.com/2009/03/20/quick-development-notes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
