Archive for the ‘hacks’ Category

Create Sequence Diagrams with just text

Tuesday, January 31st, 2012

http://www.websequencediagrams.com/

Alice->Bob: Authentication Request
note right of Bob: Bob thinks about it
Bob->Alice: Authentication Response
Alice->Bob: Do something
Alice->John: Yo
note left of John: Hey
alt text1
    A->B: text
else text2
    A->B: text
end
A-->B: text
A->A: text

Just came across this little gem while trying to look for a cloud-based tool to create UML diagrams. Pretty darn cool!

You can create a Sequence diagram just by typing the relationships between the entities and it gets rendered automatically.

Check them out.

LEMP Ubuntu Oneiric x64 EC2 AMI Image

Friday, January 13th, 2012

If you’re looking for a quick way to start hosting your PHP5 applications, here’s an EC2 AMI image I’ve created to help make it easier.

It is a x64 Ubuntu Oneiric EBS AMI Image running a LEMP (Linux, Nginx, MySQL, PHP) stack which is suitable for those who wants to make use of Amazon’s free-tier micro instances.

Click away

Its currently only available for the AP-Southeast region (Singapore).

Tip: Remember to create a swap partition.

Update: Forgot to list down the necessary authentication information.

- Login with the username ubuntu and your key when you start it.
- MySQL root default password is ubuntu1024. Remember to change it!

Arduino Workshop @ HackerspaceSG

Saturday, January 7th, 2012

Just got back from a basic introduction course to Ardunio over at HackerspaceSG.

I’ve always wanted to try out the Arduino and when this class appeared in the HackerspaceSG mailing list, I knew I had to jump on it.

Thanks Dave Appleton for conducting the class.

Maybe I should pickup a Starter Kit now.