Website scaling – no magic formula

Lately I’ve spoken to numerous entrepreneurs all keen to ensure that their new website can rapidly scale to cater for the massive amount of traffic that their brilliant idea will bring in. Thought I would write up a bit of advice from the trenches. Scaling is easy and incredibly difficult at the same time. Easy in that there is plenty of examples scattered around the web how various people solved their problem. Just use technology X, Y and Z => problem solved. The hard bit; your problem is most likely similar to, but not exactly the same as someone else. …

Continue Reading

Upgrading to Lion server from OSX server 10.5.8

Unfortunately one cannot upgrade from OSX Server 10.5.x straight to Lion Server. There are two choices Upgrade to Snow Leopard Server (if you can find a copy & are prepared to shell out $400 or so. Then upgrade to Lion via the app store. Rebuild server as Snow Leopard workstation then upgrade to Lion server vai the app store Option 1 is the easiest & less painful way to go. You can keep most of your server settings. But it costs $400 or so. Option 2 is a bit more complex, but you save $400. Here is how I did …

Continue Reading

Devise and Cancan

Been using devise for a number of projects, happy with the authentication process. Cancan (thanks Ryan Bates) allows role based permission management. Once you understand how things work together, it’s quite easy to setup and test. Found these blog posts helpful. http://www.tonyamoyal.com/2010/07/28/rails-authentication-with-devise-and-cancan-customizing-devise-controllers/comment-page-1/#comments http://www.tonyamoyal.com/2010/09/29/rails-authentication-with-devise-and-cancan-part-2-restful-resources-for-administrators/ There are a few gaps though, that are filled in here. http://stackoverflow.com/questions/5739419/checkboxes-are-getting-but-not-putting-many-to-many-roles  

Continue Reading

HTML5 sockets

Seems with html 5 websockets I can now think of the browser as a unix terminal. Instead of serving out flat html files, I can serve out one small bit of javascript that builds the page synchronously & interacts with the user. All good for very fast dynamic web pages, and a great user experience. Not so good for getting my content in Google’s index. Time to think.  

Continue Reading

Started coding Turtle trading routine

The Turtle Trading system as taught by Richard Dennis supposedly returns an 80% annualized return. Well.. that sounds interesting & worth testing. I’ve build a simple database of historical stock prices using yahoo finance. Let’s see how this goes. Update – July 2011: Could not get profitable backtesting so canned automated project. However profitable in real trading (about +20% pa) using pretty much the same system, seems “human feel” actually plays a big part, for me at any rate.

Continue Reading