<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.0.12-alpha" -->
<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/"
	>

<channel>
	<title>Penguins and Wild Cats</title>
	<link>http://www.ajmani.org/blog</link>
	<description>fun with linux &#038; os x</description>
	<pubDate>Wed, 15 Apr 2009 04:36:33 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.12-alpha</generator>
	<language>en</language>
			<item>
		<title>Migrating from Journler to Evernote</title>
		<link>http://www.ajmani.org/blog/?p=13</link>
		<comments>http://www.ajmani.org/blog/?p=13#comments</comments>
		<pubDate>Wed, 15 Apr 2009 04:36:33 +0000</pubDate>
		<dc:creator>keith</dc:creator>
		
		<category></category>

		<guid isPermaLink="false">http://www.ajmani.org/blog/?p=13</guid>
		<description><![CDATA[I&#8217;ve used Journler for the past 3 years to capture all my rough notes and minutes; think of it as a virtual notebook for your Mac. The Windows analogy would be Microsoft OneNote, but in reality they are very different products with very different purposes.
Sadly, development on Journler has really ground to a halt over [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve used <a href="http://journler.com/">Journler</a> for the past 3 years to capture all my rough notes and minutes; think of it as a virtual notebook for your Mac. The Windows analogy would be <a href="http://office.microsoft.com/en-gb/onenote/default.aspx">Microsoft OneNote</a>, but in reality they are very different products with very different purposes.</p>
<p>Sadly, development on Journler has really ground to a halt over the past year or so, and exciting new &#8220;cloud&#8221; centric applications like <a href="http://www.evernote.com/">Evernote</a> have sprung up, featuring handy <a href="http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=281796108&#038;mt=8">smartphone applications</a> and text recognition. I decided to migrate, but did not want to lose my hundreds of existing Journler records.</p>
<p><a id="more-13"></a></p>
<p>Here&#8217;s how I moved my Journler notes over. This approach will map Journler folders to Evernote notebooks, will preserve create &#038; modification dates of your Journler entries, and preserves HTML formatting. The Journler category is NOT parsed out or mapped, nor are tags supported.</p>
<p>1. Export all Journler records, by Journler category and/or target Evernote notebook. For example, if you have a Journler folder called &#8220;Personal&#8221;, select all entries and then choose: File / Export Selected Entries. You need to export the entries as &#8220;Rich Text&#8221;, Include header, Set file creation date, Set file modification date, and &#8220;Save each entry &#8230; in its own file all in a single folder.&#8221; NB: The folder you save to will become the name of the Evernote notebook.</p>
<p>2. Launch Evernote, go into Preferences, and in the Clipping tab, temporarily disable: &#8220;Bring note to front&#8221;, &#8220;Bounce dock icon&#8221; and &#8220;Play a sound&#8221;. In the General tab, click on &#8220;Grown preferences&#8221; and temporarily disable Growl for Evernote. You can turn these settings back on after the import, but trust me &#8212; if you import > 10 Journler entries, you will want these off.</p>
<p>3. Load the applescript below into Script Editor.app, and run it.</p>
<p>4. Pick the folder you exported your Journler entries to. <strong>Remember:</strong> the name of this folder becomes the name of the notebook in Evernote.</p>
<p>5. Run the script.</p>
<p>6. Rinse &#038; repeat for your remaining Journler categories / notebooks.</p>
<p>7. Done!</p>
<p>You may want to consider using the export process from Journler as a way to remap your categories. If you export multiple Journler categories into the same output Folder, they will end up in the same Evernote notebook after import.</p>
<p>Code for the applescript below. There is no error checking, and standard disclaimers around ruining your existing Evernote records and formatting your hard drive apply.</p>
<pre>
set listOfNames to {}
set theFolder to choose folder "Select the source folder"

tell application "Finder"
	set filelist to every file of the folder theFolder
	repeat with currentFile in filelist
		set currentFileName to (the name of currentFile)
		set nom to currentFileName
		if text -4 of nom is "." then
			set currentFileName to (text 1 thru -5 of nom)
		end if
		set currentFileDate to (the creation date of currentFile)
		set currentFileLocation to currentFile as alias
		set currentFileFolder to (the name of theFolder)
		tell application "Evernote"
			create note title currentFileName created currentFileDate notebook currentFileFolder from file currentFileLocation
		end tell
	end repeat
end tell
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.ajmani.org/blog/?feed=rss2&amp;p=13</wfw:commentRss>
		</item>
		<item>
		<title>Back to life &#8230;</title>
		<link>http://www.ajmani.org/blog/?p=8</link>
		<comments>http://www.ajmani.org/blog/?p=8#comments</comments>
		<pubDate>Fri, 30 Nov 2007 01:47:38 +0000</pubDate>
		<dc:creator>keith</dc:creator>
		
		<guid isPermaLink="false">http://www.ajmani.org/blog/?p=8</guid>
		<description><![CDATA[Time to get this blog going again.

I&#8217;ve &#8220;made the switch&#8221; to os x since my last post over a year ago. Expect to see a lot of mac-centric content going forward, as I learn more. 
]]></description>
			<content:encoded><![CDATA[<p style="color: #000000">Time to get this blog going again.</p>
<p style="color: #000000; min-height: 14.0px"></p>
<p style="color: #000000">I&#8217;ve &#8220;made the switch&#8221; to os x since my last post over a year ago. Expect to see a lot of mac-centric content going forward, as I learn more.<span class="Apple-converted-space"> </span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ajmani.org/blog/?feed=rss2&amp;p=8</wfw:commentRss>
		</item>
		<item>
		<title>rsync on linux to vFAT</title>
		<link>http://www.ajmani.org/blog/?p=7</link>
		<comments>http://www.ajmani.org/blog/?p=7#comments</comments>
		<pubDate>Fri, 30 Nov 2007 01:42:58 +0000</pubDate>
		<dc:creator>keith</dc:creator>
		
		<guid isPermaLink="false">http://www.ajmani.org/blog/?p=7</guid>
		<description><![CDATA[
FAT/VFAT doesn&#8217;t support groups, and doesn&#8217;t support modified time recording to the second, only minute


instead of -a ( -rlptoDg) use just  -rlptoD (removes the &#8216;g&#8217;)
add &#8211;modify-window 120 (seconds)


For backing up user dirs that do not match the external permissions, use &#8220;-rltD&#8221;. vFAT doesn&#8217;t do multiuser when mounted under linux

FAT isn&#8217;t case sensitive, so &#8220;Folder&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p style="min-height: 14.0px"></p>
<p>FAT/VFAT doesn&#8217;t support groups, and doesn&#8217;t support modified time recording to the second, only minute</p>
<p style="min-height: 14.0px"></p>
<ol style="list-style-type: decimal">
<li style="font: 12.0px Georgia">instead of -a ( -rlptoDg) use just<span class="Apple-converted-space">  </span>-rlptoD (removes the &#8216;g&#8217;)</li>
<li style="font: 12.0px Georgia">add &#8211;modify-window 120 (seconds)</li>
</ol>
<p style="min-height: 14.0px"></p>
<p>For backing up user dirs that do not match the external permissions, use &#8220;-rltD&#8221;. vFAT doesn&#8217;t do multiuser when mounted under linux</p>
<p style="min-height: 14.0px"></p>
<p>FAT isn&#8217;t case sensitive, so &#8220;Folder&#8221; and &#8220;folder&#8221; on the source will collide on destination. Avoid this naming on the source side</p>
<p style="min-height: 14.0px"></p>
<p style="min-height: 14.0px"></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ajmani.org/blog/?feed=rss2&amp;p=7</wfw:commentRss>
		</item>
		<item>
		<title>WordPress &#038; multiple blogs on one site</title>
		<link>http://www.ajmani.org/blog/?p=6</link>
		<comments>http://www.ajmani.org/blog/?p=6#comments</comments>
		<pubDate>Wed, 06 Dec 2006 02:10:52 +0000</pubDate>
		<dc:creator>keith</dc:creator>
		
		<guid isPermaLink="false">http://www.ajmani.org/blog/?p=6</guid>
		<description><![CDATA[I couldn&#8217;t find a clean way to support multiple WordPress blogs under a single site domain name, all using a single installation of the WordPress application. So, I came up with my own.  

Debian does a decent job of it, if every blog has its own hostname, e.g.

http://www.ajmani.org
http://curtis.ajmani.org

But as soon as you want to [...]]]></description>
			<content:encoded><![CDATA[<p>I couldn&#8217;t find a clean way to support multiple <a href="http://wordpress.org/">WordPress</a> blogs under a single site domain name, all using a single installation of the WordPress application. So, I came up with my own. <img src='http://www.ajmani.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a id="more-6"></a></p>
<p>Debian does a decent job of it, if every blog has its own hostname, e.g.</p>
<ul>
<li><code>http://www.ajmani.org</code></li>
<li><code>http://curtis.ajmani.org</code></li>
</ul>
<p>But as soon as you want to do a second, separate blog underneath an existing one it all falls down. For example:</p>
<ul>
<li><code>http://www.ajmani.org/<strong>sub_blog</strong></code></li>
</ul>
<p>You can copy all the WordPress php files into the new blog directory, as <a href="http://codex.wordpress.org/Installing_Multiple_Blogs">outlined here</a>, but then you lose all the advantages of Debian&#8217;s package management and centralization of the application.</p>
<p>My solution was to hack up the <code>/etc/wordpress/wp-config.php</code> file. The default Debian file looks something like:</p>
<p><code><br />
/** WordPress's Debianised default master config file<br />
Please do NOT edit and read about how the configuration<br />
works in the README.Debian<br />
**/<br />
require_once('/etc/wordpress/config-'.strtolower($_SERVER['HTTP_HOST']).'.php');<br />
define('ABSPATH', '/usr/share/wordpress/');<br />
require_once(ABSPATH.'wp-settings.php');<br />
</code></p>
<p>I edited it to conditionally search for a pattern that matches the <strong>sub_blog</strong> string. This string needs to be unique of course, and specific to each sub_blog installation.</p>
<p><code><br />
/** WordPress's Debianised default master config file<br />
Please do NOT edit and read about how the configuration works in the README.Debi<br />
an<br />
**/<br />
if ( strpos($_SERVER['PHP_SELF'], '/sub_blog/') !== false )  {<br />
        require_once('/etc/wordpress/config-subblog.ajmani.org.php');<br />
}<br />
else {<br />
        require_once('/etc/wordpress/config-'.strtolower($_SERVER['HTTP_HOST']).<br />
'.php');<br />
}<br />
define('ABSPATH', '/usr/share/wordpress/');<br />
require_once(ABSPATH.'wp-settings.php');<br />
</code></p>
<p>I will have to update the <code>/etc/wordpress/wp-config.php</code> file after each Debian update to WordPress, but at least everything else is centralized.</p>
<p>A simpler option, if starting from scratch, would appear to be <a href="http://mu.wordpress.org/">WordPressMU (Multi User)</a>. Since I had a bunch of existing blogs, I didn&#8217;t feel like trying to retro-fit them into a new install.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ajmani.org/blog/?feed=rss2&amp;p=6</wfw:commentRss>
		</item>
		<item>
		<title>Adieu, sveasoft</title>
		<link>http://www.ajmani.org/blog/?p=5</link>
		<comments>http://www.ajmani.org/blog/?p=5#comments</comments>
		<pubDate>Sun, 22 Oct 2006 19:23:44 +0000</pubDate>
		<dc:creator>keith</dc:creator>
		
		<guid isPermaLink="false">http://www.ajmani.org/blog/?p=5</guid>
		<description><![CDATA[Well, I cancelled my subscription to sveasoft today. Sveasoft makes a replacement firmware for the Linux-based Linksys WRT54G-series wireless routers. There are some nice bells and whistles that Sveasoft adds, but to be honest I used very few of them and found the router to be less stable when running Sveasoft&#8217;s firmware. Their release cycle [...]]]></description>
			<content:encoded><![CDATA[<p>Well, I cancelled my subscription to <a href="http://www.sveasoft.com">sveasoft</a> today. Sveasoft makes a replacement firmware for the Linux-based Linksys WRT54G-series wireless routers. There are some nice bells and whistles that Sveasoft adds, but to be honest I used very few of them and found the router to be less stable when running Sveasoft&#8217;s firmware. Their release cycle for new builds/functionality has also been extremely slow.</p>
<p>Last week I installed Talisman/Basic v1.2, and from then on my wireless link would drop after 5-10 minutes and required a reboot of the router to restore. All my settings were lost during the upgrade, even though I followed the official upgrade path.</p>
<p>I&#8217;ve downgraded back to Talisman/Basic v1.1 which has been pretty solid for me over the past year. I might change back to the Linksys stock firmware, since all I use from Talisman is QoS and sshd.</p>
<p>There are a number of free WRT firmware solutions out there that are much more mature now than they were when I first purchased ($20) the Sveasoft firmware a few years ago. See the <a href="http://en.wikipedia.org/wiki/WRT54G#Third-party_firmware_projects">Wikipedia entry for WRT54G</a> for more details.
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ajmani.org/blog/?feed=rss2&amp;p=5</wfw:commentRss>
		</item>
		<item>
		<title>(re) Launch</title>
		<link>http://www.ajmani.org/blog/?p=3</link>
		<comments>http://www.ajmani.org/blog/?p=3#comments</comments>
		<pubDate>Sun, 01 Oct 2006 18:11:33 +0000</pubDate>
		<dc:creator>keith</dc:creator>
		
		<guid isPermaLink="false">http://www.ajmani.org/blog/?p=3</guid>
		<description><![CDATA[New blog, new look. Next step: bringing in the content from the old site.

]]></description>
			<content:encoded><![CDATA[<p>New blog, new look. Next step: bringing in the content from the old site.
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ajmani.org/blog/?feed=rss2&amp;p=3</wfw:commentRss>
		</item>
		<item>
		<title>About</title>
		<link>http://www.ajmani.org/blog/?p=2</link>
		<comments>http://www.ajmani.org/blog/?p=2#comments</comments>
		<pubDate>Tue, 26 Sep 2006 14:56:55 +0000</pubDate>
		<dc:creator>keith</dc:creator>
		
		<guid isPermaLink="false"></guid>
		<description><![CDATA[This site is primarily concerned with documenting hacks, complex setups, and useful learnings from my experiences with Linux.
I might talk about my life too, but it&#8217;s unlikely. I&#8217;m not that much of a narcissist. 

]]></description>
			<content:encoded><![CDATA[<p>This site is primarily concerned with documenting hacks, complex setups, and useful learnings from my experiences with Linux.</p>
<p>I might talk about my life too, but it&#8217;s unlikely. I&#8217;m not that much of a narcissist. <img src='http://www.ajmani.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ajmani.org/blog/?feed=rss2&amp;p=2</wfw:commentRss>
		</item>
	</channel>
</rss>
