Chris Tate-Davies

An archive of helpful tit bits of information for development, and probably some stuff that is incomplete, wrong or boring…

Export Thunderbird contacts to Outlook

I wanted to export my Thunderbird Contacts to Microsoft Outlook 2010 beta. Jesus, if that wasn’t the most stressful export ever! Thunderbird can only export as CSV or tab separated – or LDAP. Outlook says it can import from CSV and Tab separated, however it just crashes with mapping errors. I tried dragging them from [...]

Programmers Excuses

Installing Tahoma font in Ubuntu

The stylesheet of our intranet is primarily Tahoma, and Firefox on Ubuntu doesn’t look good. To install the Microsoft Core Fonts package in Ubuntu, run the following in your terminal: sudo apt-get install msttcorefonts And then this should go away and get them. Lovely. NB, if this doesn’t take immediate effect, you can rebuild the [...]

Regex – “The” searching

Say you have a list of movie titles, and you want to either sort them, or search through them, and some of them have “The ” at the start, for example: The Simpsons Simpson Street When doing a MySQL search: SELECT * FROM movies WHERE title LIKE “The Simp%”; Would only return the first row. [...]

Help in using Ubuntu Terminal Console

Help in using Ubuntu Terminal Console Remote connection To ssh to another Lunix terminal, use this command: ssh username@host -p port The default SSH port is 21, but you could change it to anything, i.e. 9100 Remote teminal will prompt for your password, and job done. File/Folder functions cp – Copy file cp /usr/bin/file /tmp/location [...]

Ubuntu Console commands for SVN

Console commands in Ubuntu for use with subversion Checkout a branch: svn checkout url@revision path To update your local source: svn up And to commit a single file: svn ci -m “message for commit” <files> Multiple committing is just without the <files>. To download a revision svn co -r 1671<remotefolder> <localfolder> <remotefolder> could be any [...]

REGEX – Remove Letters from string

Removing letters from a string using Regular Expressions. Very simple. but brain bending – All I wanted to do was remove a prefix from a string. The prefix was always letters, and I only wanted the numerical suffix returned, so though, preg_replace was my best bet. echo preg_replace(“/[a-zA-Z]*/”, ”, ’12345MystrING67890′); This returns : 1234567890 Perfect.

Online Regular Expression Testing Tool

Regular expressions — everyone loves them, right? Well, I am currently running Ubuntu, and I would normally use RegexBuddy – but cannot unless I use Wine, and I don’t really like to. So, I wanted to find an online solution for my needs. So, I found this one, that allows my to test my regular [...]

« go back
  • Chris Tate-Davies

    Hello there. This is my little "repository" on the world wide web. Its for nothing more than documenting things that I might need again in the future. You could describe it as an extension to my memory.

    Also an online collaboration of my thoughts through the day. I'll try to keep the real random stuff out and keep the blog on course.

    Thanks for stopping by... Hope you find what you're looking for...

  • Tags