The road to ATM

For the last year or so, I've been planning on launching a new project - something different to what I've worked on (e.g. this blog) with commercial viability. In other words, I've dreamt of working on a startup-style company (A dream I actually achieved in late 2007 when I joined the WhyGoSolo team) with the aim of launching something I think would be pretty damn cool.

(Please view full post for more.)

Posted by in Programming and it's been tagged as programming, atm, series, ninjas & ruby on rails. There are currently zero comments.


Commenting == Fixed

I only realised earlier tonight that I'd made a big boo-boo with the blog - commenting required you to be logged in, something which was restricted to Admin users. So, I've since fixed that (as well as a few bugs you likely wouldn't have seen before) and all seems to be working well know.

Posted by in Programming and it's been tagged as blog, programming & fixes. There are currently 1 comments.


Learning Languages

As a programmer, one of the things I enjoy the most is the structure of languages - how inherently different styling can mould the experience I have when learning it. As an offshoot of this, I've slowly become interested in different programming languages and how they can be used in everyday life.

(Please view full post for more.)

Posted by in Programming and it's been tagged as programming, languages, erlang & haskell. There are currently zero comments.


Eoraptor's future

Since its first inception a few months ago as a merb blogging platform (I'm now running on Rails 2.0), I've always had the aim of releasing Eoraptor (the software that powers this blog) under an open source license. The platform still has its kinks (as you are no doubt aware) but I'm planning on releasing it as open source once I've finished a couple of items off. Primarily,

  1. Spec's for the entire site - I've been pretty lazy so far in this regard
  2. Twitter / Tumblr / Pownce like integration - I'd ideally like a flow-of-thoughts style front page
  3. Finish off the projects section - it's currently part done but disabled on this blog.
  4. A settings page - to make it easier to administrate

I guess once all of them have been covered, I'll finally release it. For the moment, consider this more as a road map.

Posted by in Programming and it's been tagged as eoraptor, blog, rails & programming. There are currently zero comments.


b0rked images

So I made it big mistake tonight. It wasn't on purpose - far from it in fact. I was editing the deploy.rb I use to put it on this blog (thank god for Capistrano) to upload some small admin-side fixes. I decided to also make a small change that would make the symbolic linking process for image directories work. Except, I got the wrong directory. I accidentally typed in the shortcut / variable for the actual (non linked) directory to the rm part of the routine. And so, now they're gone. You'll have to just ignore the lack of images for the moment till sometime after the twelfth when I can restore them.

Posted by in General and it's been tagged as blog, programming, b0rked, error & stupidity. There are currently zero comments.


Erlang & Project Euler

Just a quick and fairly simple post. I've been reading Programming Erlang over the last few days and decided tonight to have a quick play with the Project Euler problems (having never done them before). Here ~10 minutes work :)

%% Erlang Solution to Project Euler Problem #2 %% "Sum of all even primes under one million" %% Written by Darcy Laycock %% http://blog.ninjahideout.com/ -module(pe). -compile(export_all). start() -> process(1000000). process(Max) -> io:format("Calculating All Even Fib. Under ~p~n", [Max]), evenFactorialsUnder(1, 1, Max, 0). printResults(0) -> io:format("No Known Results.~n"); printResults(Results) -> io:format("Found Result:~n~p~n", [Results]). evenFactorialsUnder(A, B, Max, Acc) when A+B > Max -> printResults(Acc); evenFactorialsUnder(A, B, Max, Acc) -> NewNum = A + B, case NewNum rem 2 of 0 -> %% even evenFactorialsUnder(NewNum, A, Max, Acc + NewNum); 1 -> %% odd evenFactorialsUnder(NewNum, A, Max, Acc) end.

Edit: More of these coming tonight :) Simple but fun!

Posted by in Programming and it's been tagged as erlang, programming, problem & maths. There are currently zero comments.


Eoraptor Extracts - "Prepares.rb"

Just a simple one to start off today - This is a piece of code I've reused quite a few times and it's really saved me a lot of coding time retyping the same thing. In essence, prepares is a single drop in file for rails that adds a few niceties - basically preparing a model instance (via find) and storing it in an instance variable.

(Please view full post for more.)

Posted by in Programming and it's been tagged as ruby on rails, eoraptor, code & provides. There are currently 2 comments.


Now extra thin!

And in other news, I upgraded the blog to Thin tonight. The extra speed and power was a nice incentive to switch as was the whole 'coolness factor'. Next up is rewriting the stats server. So +1 Kudos for thin!.

Posted by in Programming and it's been tagged as blog, rails, server & programming. There are currently 1 comments.


On ATM - User models / code

One of the core areas (well, the main core area - it's the main apart of the application that is shared between all of the applications that make up ATM) is the user management system. Built from the ground up (e.g. not using Restful Authentication itself) it combines lessons learnt from my experience using other systems.

(Please view full post for more.)

Posted by in Programming and it's been tagged with zero tags. There are currently zero comments.


On ATM - SubApp Syncing

Untitled

To better manage the ATM code base, one of the first decisions I made was to have several different sub apps. Each sub app will basically inherit all models etc from the site core as well as libraries etc. One of the key pieces of software in the current ATM code base is ATM Tools - a small library designed make it easier to sync different apps from the core.

(Please view full post for more.)

Posted by in Programming and it's been tagged with zero tags. There are currently zero comments.


Busting a cap in yo' ass!

Ok, the titles lame but I hope the contents aren't. Today I'll be running through a quick Capistrano config - perfect for if your running on a VPS - that has a heap of free goodies included. Also, thanks to Skiz on #offrails for a nice start earlier after I lost some of my stuff.

(Please view full post for more.)

Posted by in Programming and it's been tagged as programming, rails, deployment, ruby & capistrano. There are currently 2 comments.


Rack::URLMap and kicking ass.

Rack come's with a lot of excellent middleware out of the box, making a lot of seriously cool things possible. One of the most important of these middleware's is URLMap - a little gem that lets you map different url paths to different rack applications. Using Rack::Builder / rackup syntax you can use the map method with a block to define a different urled application.

(Please view full post for more.)

Posted by in Programming and it's been tagged as rack, ruby, programming & urlmap. There are currently zero comments.