{"id":69,"date":"2003-03-18T00:52:02","date_gmt":"2003-03-18T05:52:02","guid":{"rendered":"http:\/\/www.flamingspork.com\/blog\/?p=69"},"modified":"2003-03-18T00:52:02","modified_gmt":"2003-03-18T05:52:02","slug":"free-open-diary-import","status":"publish","type":"post","link":"https:\/\/www.flamingspork.com\/blog\/2003\/03\/18\/free-open-diary-import\/","title":{"rendered":"Free Open Diary Import"},"content":{"rendered":"<p>Well, I&#8217;ve imported all my old OpenDiary entries. Unfortunately, there&#8217;s no easy way to export all the notes from OD, so they haven&#8217;t made their way across.<\/p>\n<p>Below is the perl script I used to convert ODs export format into the MovableType import format:<\/p>\n<p>#!\/usr\/bin\/perl<\/p>\n<p>{<br \/>\n    open ODFILE,&#8221;< $ARGV[0]\";\n    @entries=();\n    while($_ = <ODFILE>)<br \/>\n    {<br \/>\n        if(\/^(.*?)\\s+\\- (\\d\\d?\\\/\\d\\d?\\\/\\d\\d\\d\\d)\/)<br \/>\n        {<br \/>\n            $entries[$#entries+1]=[$1,$2,&#8221;];<\/p>\n<p>        }<br \/>\n        else<br \/>\n        {<br \/>\n            s\/\\x0d\/\/g;<br \/>\n            my $entry = $entries[$#entries];<br \/>\n            ${@$entry}[2].=$_;<br \/>\n        }<br \/>\n    }<br \/>\n    close ODFILE;<br \/>\n}<\/p>\n<p>my $i=0;<br \/>\nforeach my $entry (@entries)<br \/>\n{<br \/>\n    print &#8220;TITLE: &#8220;.@$entry[0].&#8221;\\n\\n&#8221;;<br \/>\n    @date = split \/\\\/\/,@$entry[1];<br \/>\n    print &#8220;DATE: $date[0]\/$date[1]\/$date[2] 00:00:00\\n&#8221;;<br \/>\n    print &#8220;&#8212;&#8211;\\n&#8221;;<br \/>\n    print &#8220;BODY:\\n&#8221;;<br \/>\n    print @$entry[2];<br \/>\n    print &#8220;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Well, I&#8217;ve imported all my old OpenDiary entries. Unfortunately, there&#8217;s no easy way to export all the notes from OD, so they haven&#8217;t made their way across. Below is the perl script I used to convert ODs export format into &hellip; <a href=\"https:\/\/www.flamingspork.com\/blog\/2003\/03\/18\/free-open-diary-import\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[2],"tags":[],"class_list":["post-69","post","type-post","status-publish","format-standard","hentry","category-life-the-universe-and-everything"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5a6n8-17","jetpack-related-posts":[{"id":235,"url":"https:\/\/www.flamingspork.com\/blog\/2004\/06\/06\/moving-to-wordpress\/","url_meta":{"origin":69,"position":0},"title":"Moving to WordPress","author":"Stewart Smith","date":"2004-06-06","format":false,"excerpt":"Wow, here I am, and so far pretty impressed by wordpress. yeah, the MT import has happenned for me, now to update Giz. and find out why my last two entries aren't displaying....","rel":"","context":"In &quot;General&quot;","block_context":{"text":"General","link":"https:\/\/www.flamingspork.com\/blog\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1700,"url":"https:\/\/www.flamingspork.com\/blog\/2009\/09\/18\/sluggish-liferea-with-lots-of-feeds-and-cached-entries\/","url_meta":{"origin":69,"position":1},"title":"Sluggish liferea with lots of feeds and cached entries?","author":"Stewart Smith","date":"2009-09-18","format":false,"excerpt":"Increasing the sqlite cache size seems to have improved it for me: $ sqlite3 \/home\/stewart\/.liferea_1.4\/liferea.db SQLite version 3.6.10 Enter \".help\" for instructions Enter SQL statements terminated with a \";\" sqlite> pragma default_cache_size=20000;","rel":"","context":"In &quot;General&quot;","block_context":{"text":"General","link":"https:\/\/www.flamingspork.com\/blog\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1161,"url":"https:\/\/www.flamingspork.com\/blog\/2008\/08\/05\/good-adventures-with-opensolaris\/","url_meta":{"origin":69,"position":2},"title":"Good adventures with OpenSolaris","author":"Stewart Smith","date":"2008-08-05","format":false,"excerpt":"First of all, thanks to everyone who commented on my previous OpenSolaris entry (which wasn't really positive at all). I recently tried again - this time starting with an ISO of build 93. I'd recommend completely ignoring the 2008.05 release and going straight for the build 93 image. Installed easily\u2026","rel":"","context":"In &quot;mysql&quot;","block_context":{"text":"mysql","link":"https:\/\/www.flamingspork.com\/blog\/category\/work-et-al\/mysql\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3137,"url":"https:\/\/www.flamingspork.com\/blog\/2012\/07\/28\/finding-out-whats-next-at-barcampmel-2012-with-drizzle-sql-javascript-and-a-web-browser\/","url_meta":{"origin":69,"position":3},"title":"Finding out What&#8217;s Next at BarCampMel 2012 with Drizzle, SQL, JavaScript and a web browser","author":"Stewart Smith","date":"2012-07-28","format":false,"excerpt":"Just for the pure insane fun of it, I accepted the challenge of \"what can you do with the text format of the schedule?\" for BarCampMel. I'm a database guy, so I wanted to load it into a database (which would be Drizzle), and I wanted it to be easy\u2026","rel":"","context":"In &quot;code&quot;","block_context":{"text":"code","link":"https:\/\/www.flamingspork.com\/blog\/category\/code\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":391,"url":"https:\/\/www.flamingspork.com\/blog\/2005\/04\/14\/binstat\/","url_meta":{"origin":69,"position":4},"title":"~\/bin\/stat","author":"Stewart Smith","date":"2005-04-14","format":false,"excerpt":"What have you always wanted on the command line? stat? i: hear; you cry! (insert more [silly] {punctuation} around 'ere!) I present, to you, my ~\/bin\/stat #!\/usr\/bin\/perl use POSIX qw(strftime); my $FORMAT=\"%H:%M %a, %e %b %y\"; foreach(@ARGV) { my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size, $atime,$mtime,$ctime,$blksize,$blocks) = stat($_); print $_.\"\\n\"; print \"Dev: $dev\\n\"; print \"inode:\u2026","rel":"","context":"In &quot;General&quot;","block_context":{"text":"General","link":"https:\/\/www.flamingspork.com\/blog\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":392,"url":"https:\/\/www.flamingspork.com\/blog\/2005\/04\/15\/stillhqcom-stat-on-the-command-line\/","url_meta":{"origin":69,"position":5},"title":"stillhq.com &#8211; Stat on the command line","author":"Stewart Smith","date":"2005-04-15","format":false,"excerpt":"stillhq.com - Stat on the command line So Michael pointed out there is one.... in recent versions of coreutils at least. (umm... yeah... that's a good excuse. no really) I should retitle previous entry to something like: ever wanted \/usr\/bin\/stat on an older system? The copyright for \/usr\/bin\/stat is 2004\u2026","rel":"","context":"In &quot;life, the universe and everything&quot;","block_context":{"text":"life, the universe and everything","link":"https:\/\/www.flamingspork.com\/blog\/category\/life-the-universe-and-everything\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/posts\/69","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/comments?post=69"}],"version-history":[{"count":1,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/posts\/69\/revisions"}],"predecessor-version":[{"id":2606,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/posts\/69\/revisions\/2606"}],"wp:attachment":[{"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/media?parent=69"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/categories?post=69"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/tags?post=69"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}