So with a bit of luck this blog post should appear inside Facebook as well as on my personal blog at http://scotthewitt.co.uk .

Like many I was very annoyed when Facebook killed its rss import but this Facebook app functionality is far more considered and developed.

Of course some of you may consider this noise so my apologies.

I suspect that the launch of the WordPress / Facebook plugin is coinciding with Google I/O where I suspect we will see G+ API’s announced.

After having switched to Emacs and eventually allowing OrgMode to take over my organisation it only made sense to explore what other things I could do with Emacs.

So one idea I decided to explore was using OrgMode to update my various WordPress blogs that I keep or maintain on behalf of http://gridgiant.co.uk.

Using org2blog found online on github at https://github.com/punchagan/org2blog and the xmlrpc interface built within WordPress; it turns out to be easy to do and very powerful.

I am hopeful it will allow me to sustain my blogging more but will have to see as the javascript add to WordPress toolbar button is very effective in terms of starting blog posts though I find the web interface to messy to work with.

Today while recording a WWDC Special episode for TheAudioPodcast I forgot to turn on my recorder so I had to extract the audio from the youtube video. ffmpeg makes it really easy,

ffmpeg -i movie-source-file.mp4 audio-target-file.mp3

 

So it will come as no surprise to most readers that I am a big Linux fan, in fact the only thing that stops my using it exclusively is a driver issue.

There is a good interview with Linus on the BBC site at the moment which is interesting to read. His remarks about the GPL working on selfish grounds is quite interesting and not a view I have considered before.

I find the slight dig at RMS and the GPL3 a little distasteful though.

 

So as I have been increasing movingly my life into Git version control it made sense to explore methods of publishing with Git.

Turns out to be quite simple.

On the web server

Create a folder to host live site (live)

mkdir live

Create a folder to host git repository (repo)

mkdir repo

Create git bare repository in folder (repo)

cd repo
git init --bare

Within the hooks folder create a file called post-receive

nano hooks/post-receive

with the following text

#! /bin/sh
GIT_WORK_TREE="../live" git checkout -f

Now ensure the folder live is writable by the web server and that the file post-receive is executable. This hooks means that when the repository is committed to it will check out the files to the live web directory.

On the local box

Now on the box that the files exisit all you need to do is add a new remote (I tend to call it web but it can be called anything).

git remote add web *your-remote-url*

and then when you push the files will be made live.