Welcome to davidpratten.com

You can change this text in the options panel in the admin

Member Login

Lost your password?

Archive for April, 2009

Collatz Conjecture and Ambi

April 29, 2009

Here is the Ambi code to calculate the Collatz sequence including a demonstration for the largish number 99,999,999.  To run this code simply copy and paste it into the wholly browser based Ambi implementation. // Collatz Sequence Function; function; collatz ;  if;   import dup $n = 1 neq;   ifelse;    $n 2 / floor $n 2 / dup $half = eq;    $half...
Read More »

Do Not Repeat Yourself

April 28, 2009

Django has won me over. But it can be improved! Delivering web applications using django is a sublime experience – its core ‘do not repeat yourself’ philosophy and the built in admin application makes development of applications easy and fun. There remains however a major source of “repeating yourself” with django. The schema in the database...
Read More »




Rss Feed Tweeter button Facebook button Technorati button Reddit button Myspace button Linkedin button Webonews button Delicious button Digg button Stumbleupon button Newsvine button