Archive for the ‘Development’ Category

Project Euler Problem Five

Continuing our combined node.js and project euler posts. We got to problem five, which asks us “What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20?”.
First of all we only check numbers below or equal to 20! because we know for sure that this number [...]

June 7, 2010  Tags: , , , ,   Posted in: Development  No Comments

Project Euler Problem Four

Find the largest palindrome made from the product of two 3-digit numbers. This is problem four of project euler, and this one actually caused me some problems. The reason was that I wrongly assumed that a number with the largest divisor would also would be the largest number. But of course this is not necessarily [...]

June 4, 2010  Tags: , , ,   Posted in: Development  No Comments

From Subversion to Git

This past weekend I moved our work repositories from Subversion to Git. I have been using Git for my private projects for a couple of months now, and really wanted the same workflow and features for my daily work at VoiceArchive.
Installing gitosis
Even though I use github privately, I opted for the selfhosted version for our [...]

June 2, 2010  Tags: , , , ,   Posted in: Development  No Comments

Project Euler Problem Three

Continuing my posts about Project Euler Problems, this time with problem three, which asks us to find the “the largest prime factor of the number 600851475143″.
This time I have decided to explain the code a bit more, through comments – since this problem is a bit more tricky than the previous two problems.
Once [...]

June 1, 2010  Tags: , , ,   Posted in: Development  No Comments

Project Euler Problem Two

Yesterday I posted my first euler-code. This time we will take a look at problem two, again with the help of some javascript running on node.js.
The problem is “Find the sum of all the even-valued terms in the [fibonacci] sequence which do not exceed four million.”
My take on the solution was to [...]

May 30, 2010  Tags: , , , ,   Posted in: Development  One Comment

Project Euler Problem One

A long time ago I decided to do a couple of posts about project euler. I find the problems to be great excersize. It was not before I began to look into node.js though, that I began writing code for the problems for the purpose of publishing it.
The first problem on the list is [...]

May 29, 2010  Tags: , ,   Posted in: Development  2 Comments