Development

Django-tagging

Useful examples on how to effectively use the Django-Tagging application (plugin?)

Installation is simple. I believe easy_install django-tagging works.

Django-tagging code and documentation

Introduction to using django-tagging

Use the django-tagging tag cloud

Use django-tagging built-in views

Change Windows type line endings to Mac

To convert files from windows (or DOS) type line endings to UNIX or Mac flavor use “flip”

Convert DOS or Windows line endings to Unix or Mac

flip -d <filename>

Convert Unix line endings to Windows

flip -u <filename>

To install flip on Mac:

sudo port install flip

To install flip on Ubuntu Linux

sudo apt-get install flip

How do you know your line endings are DOS or Windows flavor? Open your text file with a plain text editor. If you see a “^M” at the end of every line then your line endings are DOS/Windows.

From the flip Usage instructions

Usage: flip [-t|-u|-d|-m] filename[s]
   Converts ASCII files between Unix, MS-DOS/Windows, or Macintosh newline formats
 
   Options: 
      -u  =  convert file(s) to Unix newline format (newline)
      -d  =  convert file(s) to MS-DOS/Windows newline format (linefeed + newline)
      -m  =  convert file(s) to Macintosh newline format (linefeed)
      -t  =  display current file type, no file modifications

Import Blogger into Movable 4 type using BloggerImporter plugin

For work I need to import a Blogger blog into Movable Type 4.

  • Download the BloggerImporter plugin.
  • Install to /mt/plugins
  • Login to blogger, use menu Tools -> Import.
  • Choose “Importing From” field as “Blogger”
  • Fill in login information
  • Got an error — Error: Can't locate XML/LibXML.pm in INC
  • resolved error by installing Perl XML::LibXML. (see below)
  • Tried process again, gives processing screen.
  • let it run about 10-15 minutes for a few hundred posts.
  • Import done. It worked!

If you get the error “Can’t locate XML/LibXML.pm” you need to install the Perl module. On Ubuntu use aptitude.

sudo apt-get install libxml-libxml-perl

Syndicate content