"Why serving static files in development has to be a additional setup, as no developer wants to setup a server for serving static files, I am aware of ‘django.static.serve’ but still that is an additional setup, why not create a sample media directory and a url for the same in urls.py" - Because typical deployments don't use django for serving static files?
It would be great if I can select a template for my mail.Definitely not on the landing page, it would clutter such a nice and clean page. May be a 'More...' option?
I used a slightly different approach of combining acts_as_tree (for faster updates/inserts) and added a dotted_id for faster reads. The dotted id is a string,as in 0001.0002.0007. Index this column and its fairly fast. The obvious limitation this approach creates is the depth of your comment tree. approx =dotted id col size/#of digits in max pk -1. Not an issue for many. When Im updating the hierarchy , I update root of the hierarchy being moved and then a single UPDATE to update the dotted ids in that subtree.
If you are using MySQL, then the max length of a column that can be indexed is also limited. Don't remember the exact length.
The 404 not found page is tomcat's default page. A custom page would be better. The favicon is again tomcat's default. As someone mentioned earlier, the image quality needs improvement.
We are consultants here in Bangalore and we have routinely done this on a Python/Django social networking web app and a Ruby on Rails web app. code-test-svn commit - svn export , pretty much.
With a lot of java experience, I can say that it is more elaborate and laborious in Java than python or ruby. The erlang movie (http://video.google.com/videoplay?docid=-5830318882717959520) shows off the same, for erlang.
That holds true for the given ruby implementation as well, since n is incremented only in the scope of foo and not in the calling scope.
def foo (n)
lambda {|i| n += i }
end
n=5
a = foo(n)
puts a.call(3) #prints 8
puts n # still prints 5. n is not incremented
I agree that the python one is strictly not according to the problem definition, but for all practical purposes both python equivalents are the same, aren't they? or am I missing something?