Sat 06 April 2013

Filed under Blogs

Tags Cool Geek

Up To

Where do I begin with this migration? I have been disgusted with Typo for a while. It has required more and more resources and tweaking. It is never as simple as I wish it was, from the operations side. My friend Cliff keeps developing his own stuff, but he does not share, and it's non-trivial to get it out of him. Wordpress is PHP, and I will never willingly use PHP again.

I continue to gripe, when Passenger suddenly consumes >2GB of RAM or does one of it's famous crashing-tricks. If I enjoyed Ruby or Rails, I think I might try to fix my problems, but ultimately, I just want them to go away. So, Pacopablo mentioned Pelican. It seemed decent enough. Though simple, it required a completely different approach. I spent a deal of time figuring out the basics, but the most important fact is the support for Wordpress XML files. There is a tool Pelican Import which lends itself neatly to my problem.

Real Requirements

I have one: publishable. After that is convenience/interface, etc. After that is feedback. If we need to speak, let's do it on Google Plus. I have slowly been purging the blog-feedback anyway. It's just a place for drug-sites to recommend dubious warez.

Migration Concerns

First, I went to obtain some help in exporting from Typo to a Wordpress XML format. Competo has a nice article which is summed here. Get the files, copy them into the directories as instructed, and off you go. Run your rake commands and life will get easier. I used essentially exactly his steps, but I punted on the tags file. There were literally so many tags that I couldn't even start to trim it, so I deleted them all.

Once I got the file, I followed the import instructions at Pelican and started the porting. reStructuredText is neither here nor there. It is a complete system with rough edges and wide use. It's perfect for this. Pelican-Import mostly handled it, I just needed come cleanup.

Major errors:

  • UTC-tag on the XML data caused errors.
  • tags came across as categories (I was not able to find a canned way to fix this.)
  • all my <pre> block formatting was a wreck.

Sed Work

# kill UTC mention
sed -i foo 's:UTC<:<:g' *rst
# rename categories to tags
sed -i foo "s/^:category:/:tags:/g" *rst
# fixup my old <pre class=code> adaptions
sed -i -f "s:code\:\::code-block\:\::g" *rst
# change the name which ended up on the historic posts.
sed -i -f "s:menion<:Joshua<:g" blog2.xml

Pre-Formatting Errors

There were no good ways, so I ran a grep to locate them, and opened them in emacs. Then I fixed all the 53 broken files manually.

emacs -nw `grep -l 'code::' *`


The original paths were retained, so I created an images directory names /files and I copied everything there from the old Typo folder. It worked on my first try.


One-hundred and twenty-three articles consumed approximately 4 hours, including a script in python to allow me to edit/generate categories. The script would be better in awk or something, but I know how to write Python without using manpages or research.


My effing SVN server will not import the restructured text. I get lambasted with errors. I will have to sort this out, or migrate to Git.... but I am DONE with upgrading anything today.


Tue 10 March 2009

Filed under Blogs

Tags CompassionNeeded Lamer Moments

I use Typo, and I have since the early 4.0 days. Each upgrade brings a slew of new messes to the table. I recently discovered that apparently there are only two people behind Typo development, and with it being a Ruby/Rail project that does offer some explanation as ...

Read More

Tue 11 March 2008

Filed under Blogs

Tags Lamer Moments Retarded Secret Messages

Typo is a Rails app. Rails is a Ghetto. While I'm not sure what it has to do with torturing the Jewish people, I think that Zed might be a Jew. I digress.

Rails is clearly caught in a ghetto. It's strange and suffers from strange documentation. One ...

Read More

Wed 10 October 2007

Filed under Blogs

Typo has seemed a little off lately. Last night I finally broke and upgraded. Typo 4.0.x => 4.1.1


pg_dump -U typouser -D typodb > 2007-10-09.typo.dump
createdb -U pgsuper -U typoeuser -D typodbnew
Welcome to psql 8.1.5, the PostgreSQL interactive terminal.

Type:  \copyright for ...

Read More

Fri 01 December 2006

Filed under Blogs

Tags Cool PostgreSQL

I don't use Ruby much. I use PostgreSQL quite a bit. My blog pisses me off - lots of slow load times, lots of serious lag. Today, I did a "control-R" refresh in Firefox. Eleven (11) Seconds to load the page! It was awful.

Here is what I did....

  • VACUUM ...
Read More

Sun 27 August 2006

Filed under Blogs

Hey, I have a new theme. Did you notice? Well it may be temporary, as I am having some problems w/ the old one.

Typo kinda sucks, I wish there was an AWESOME python blog. When there is - I am out of here.

Read More

Fri 17 March 2006

Filed under Blogs

My Typo is aging a bit, and I have some strange problems. I have seen all my problems as closed tickets in the Typo Trac site. Everytime I try to update though, I get horrible rake errors, etc.

My good friend Nihilist gave me a hot tip that r761 was ...

Read More

Thu 12 January 2006

Filed under Blogs

Tags Cool Geek

TurboGears(TG) is a love it or hate it web

framework. People who are merely lukewarm and in serious denial. IAMAGP

[I am not a good programmer]. In fact, some people would say that I am a system

administrator. Whatever that means, it doesn't frighten me. Turbostan is new ...

Read More

Sat 17 December 2005

Filed under Blogs

Tags Cool

I am not convinced in the value of Rails. That really does color all of the feelings I have about Rails. This blog meets my two inflexible criteria:

  • Not written in PHP
  • Back-end in PostgreSQL

I upgraded to Rail 1.0 today, it was very simple. Actually, I just unmasked ...

Read More

Thu 15 December 2005

Filed under Blogs

Tags Cool Lamer Moments

I am still suffering from exciting problems with Typo.

  • Timezone: Add the TZ var to the lighty config.

    "bin-environment" => (
               "RAILS_ENV" => "production" ,
               "TZ"        => "America/Los_Angeles"

    We will see if that works.

  • - This is still plaguing me. Less so now, but it's kinda of mystifying. I am trying ...

Read More

Wed 14 December 2005

Filed under Blogs

I got a quick moment to poke around with themes. I found the Typo Themes Contest. Sponsored no less by Robby Russel and Planet Argon.

I grabbed a couple themes, and that is pretty hot.

Read More

Wed 14 December 2005

Filed under Blogs

Tags Cool

I am pretty frustrated with all manners of blogging software. So now I am trying Typo. I just want a quick place to dump anything and everything.

It was super easy to setup pound for proxy, move apache to localhost:80, and create a lighty instance that ran as my ...

Read More

Up To Something © Joshua M Schmidlkofer Powered by Pelican and Twitter Bootstrap. Icons by Font Awesome and Font Awesome More