Wednesday, 28 November 2012

Cherry Py Anyone?

More to follow on this one too...

Since I posted this back in 2012 I have written several webservers using CherryPy. It is great for simple webpages. I did give up on it for 1 project when I needed a good db api when I chose my old favourite Django.

I also use markup.py to generate all my html with no template. Recently I have learnt to do Ajax using JSON to communicate between page and server this should improve some of my webpages.




Trigger IO

More to follow....

This topic never got off the ground as our client got bored before we had chance to get in gear. Hey ho.
Probably worth checking it out though if you are into mobile apps with some native integration and html5.

This Editor is Sublime

Today I 'ave mainly been thinking myself lucky to have finaly found an editor that is fun to use (as opposed to just functional).

This web post is a placeholder for me to rant about how great it is..

Sublime Text 2 is the name .. watch out for more on this one!

Go here to look

I wondered how to edit hidden files on OS X (not visible in finder open).

To read hidden files I added the sublime editor to my path:

sudo ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl

Then I can type

subl -a .hgignore (this adds the file .hgignore to the open editor)


Saturday, 27 October 2012

HTML5 + CSS3 + Javascript + jQuery + Raphael

Today I'ave mainly been wondering why no-one has said to me Javascript is great...

I have never had the inclination to write any Javascript before but recently I have been interested in a project to produce some simple software for mobile phones. Here the key requirement was "use the same code for iPhone and Andriod". The solution chosen was Cordova (Phonegap).

With Corova you write a webb app in HTLM5+CSS+Javascript and make calls to Cordova to get the mobile device to respond.

Well.. after a bit of looking around I discovered jQuery was cool with Javascript and was soon looking at HTML5 canvas and SVG as a way of doing graphics. I soon realised that SVG is cool and a great way to get dynamic web content and went looking a for a Javascript library to access it. Raphael lib seem to be the answer and I have used it to re-write a simple darts program which I had spent several weeks writing in Objective C.

Javascript is great because it has several similarities with my favorite language Python.

It has built in lists and dictionaries and has an attempt at a nice object model.

I have not yet used the object model but I will.

The only thingI have missed so far is default function paramater values.