This post cross-posted at Daemon Diaries

I recently installed FreeBSD on my laptop … here is how it went:

more »

Audio tip #1

| February 9th, 2008

Linux Audio Tip #1 , how to use ssh public key authentication

transcript>

Hey , this is mike with quick linux tip
SSH Public Key Authentication
This will allow you to ssh into any machine , without a password
We can do this in three steps
one , generate a key , to do this just type *ssh-keygen*
two , get the public key , we do this by typing
cat ~/.ssh/(id_rsa.pub) then copy that to your clipboard
three ssh into your host machine , type echo -ne ”
then paste the key then a ” then type >> ~/.ssh/authorized_keys
now next time you ssh into that machine , it won’t prompt you for a password
well , thats all for now , check out my blog at http://mikedonaghy.org

Download the OGG
Download the MP3

Go get Adobe Flash Player!

Yes , I am still alive

| December 25th, 2007

For those who actually read my blog , (both few and far between) , I am not in fact dead , just lazy , I mean … not really…I have been doing a lot of things
I have been Screencasting , Running Linux and Listening to music
I will have more up soon hopefully (famous last words…)

Syntax Highlighting in Django

| September 11th, 2007

I am currently working on a project with Django A Python web framework ,
It will be a pastebin application , all good pastebins have syntax highlighting … I just wanted to show you how I did it … it can be useful for other projects,

1 def syntax(value,extension):
2     from pygments.lexers import get_lexer_for_filename
3     from pygments import highlight
4     from pygments.formatters import HtmlFormatter
5     "Highlights the syntax of a file based on file extension"
6     lexer = get_lexer_for_filename("file." + extension, stripall=True)
7     formatter = HtmlFormatter(linenos=True)
8     result = highlight(value, lexer, formatter)
9     return result

Sorry for the lack of posts , I will have more snippets up soon

At WWDC this morning apple released its web browser , Safari for windows , they releasied it for a really good reason … im just not sure what it is , if you know , drop me a line Here , or add it to the comments
safari-windows