Justin Kelly

various ramblings

Moved From Posterous to Octopress + p.ostero.us

I’ve been a long term posterous.com user, but since they started messing with the core concept of posterous by introducting ‘groups’ and then pivoting to be ‘spaces’ I’ve had an uneasy feeling being hosted with them. What are these guys up to? What happend to the posterous I used to love using?

The last straw was the purchase of posterous by twitter as a ‘talent acquistion’ - basically meaning posterous will now be in maintenane mode - no further development

I’ve kept a close eye on the progress of jekyll and octopress and have finally made the move. This blog is now built using octopress

Migration

My main conern about the migration was to maintain the urls for all my previous posts, the currentl posterous->jekyll doesnt maintain the url slugs.

To make this work I edited the posterous import script - refer new version below

Also the octopress permalinks format needed to change to just :title. Now any links to my old posterous hosted blog will auto forward to this blog. Below is the updated import and config script

p.ostero.us

My http://blog.justin.kelly.org.au blog is now hosted with octopress at p.ostero.us

p.ostero.us is a new service that I’ve setup specially designed to help posterous.com users to move to octopress. Octopress is an amazing blog engine but unless your comfortable using the commandline and messing with ruby got its not ganna work out for you.

This is where p.ostero.us comes in. I’m bringing the beauty and simplicity of the original posterous back combined with the awesomeness of octopress. You can email your posts in (all in markdown), add and update posts via our minimal web ui or hook p.ostero.us up to pull markdown formatted posts from your github repo

GitHub

Currently you can easily enought host an octopress blog on github but you still have to mess with ruby/rake to create posts. With p.ostero.us you just point it at a repo folder that contents your posts - no need to run rake commands . Just use the normal octopress blog template and its all good to go

No lock in

I always had the uneasy feeling of being locked into posterous - even though they have a good api - i can’t just grab the how blog (theme included) and host of my own server..

With p.ostero.us you can 1 click export/download your site - full octopress install and happily self host your blog any time you want

Money

Another problem with posterous.com was that there was no way to actually pay for the service.
Theres a great post over at pinboard.in that details whats wrong with this.

Eventfully they are going to have to make a return for their investor and with no real income fomr users this means getting purchased.

p.ostero.us is a user pays site with a model similar to pinboard.in, so you know the service is going to be around in the future and not goign to just get ‘turned off’ by twitter

Conclusion

If your a posterous.com user looking to move now twitter is about to kill it off check out p.ostero.us

Install Git in Your Home Directory :: How To

If you every need to install Git on a server but don’t have root access, follow the below steps to install Git in your home directory

check that you can run gcc – if you get errors then you got to figure something else out

gcc --version

prep your home folder

mkdir ~/src
cd ~/src

make the ~/opt directory – this is where we will install git into

mkdir ~/opt

Get the git source from google code 1.7.8.4 is the latest at the moment and untar

wget http://git-core.googlecode.com/files/git-1.7.8.4.tar.gz
tar -xvzf git-1.7.8.4.tar.gz
cd git-1.7.8.4

run ./configure and tell it to use ~/opt

./configure --prefix=$HOME/opt

now do the install

make install

check git is happy

~/opt/bin/git --version

If it prints out ‘git version 1.7.8.4’ then its all good to go – git is now installed in your home folder

Simple MySQL Db Refresh Script

If you need to drop the contents of a MySQL database and reimport base data alot (such as a webapp demo or development site) below is a very simple script to make your life easier

Just edit the configs, create the import.sql add it to your cron jobs 

How to: Rotate a Video in Linux

For the life of me I can’t figure out how to flip/rotate a video in linux using any GUI apps

Here’s the commandline way to do it

mencoder -ovc lavc -vf rotate=2 -oac copy INPUT.AVI -o OUTPUT.AVI

The rotate=2 can be replaced with whatever option best suits your needs. Rotating video options are below:

0 Rotate by 90 degrees clockwise and flip (default).
1 Rotate by 90 degrees clockwise.
2 Rotate by 90 degrees counterclockwise.
3 Rotate by 90 degrees counterclockwise and flip.

Simple Invoices 2011.1 Released

Hi Guys,

Simple Invoices 2011.1 has been released

You can grab the download from:

Whats new:
  * This releases fixes the issue where recurring invoices failed to create all the invoices

Documentation:
  * Installing Simple Invoices: http://www.simpleinvoices.org/install 
  * Upgrading Simple Invoices: http://www.simpleinvoices.org/wiki/upgrade 
  * Simple Invoices help: http://www.simpleinvoices.org/help 
  * Frequently Asked Questions: http://www.simpleinvoices.org/wiki/faqs 
  * Simple Invoices config file options: http://www.simpleinvoices.org/config 

If you have any issues or queries please post here in the forum

Cheers

Justin

Get the Number of Seconds Since Jan 1, 0001 in PHP : How To

If you need to get the number of seconds since Jan 1, 0001 in PHP you can't use the normal date or time functions as they are based around Jan 1, 1970

Here is a simple function to get the number of seconds since Jan 1, 0001 (or any other date)

This date calc is required if you are using the ACH PaymentsGateway.com API

Requires PHP 5.3 and above