Better HN
topnewbestaskshowjobs
Log inSign up

neelesh

2 karma · joined Oct 28, 2007 (19y ago) · 14 submissions

Submissions

comment 17y ago · link · parent

Agree. What we probably need is a nice way to switch between deployment/development setups, possibly by splitting settings.py like rails

comment 17y ago · link · parent

"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?

comment 17y ago · link · parent

This is good. The end-users/web devs will benefit. We have more options, more competition and hopefully better browsers because of the competition.

comment 17y ago · link · parent

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?

comment 17y ago · link · parent

May be franchise your service to other HN'ers in other countries? :)

comment 17y ago · link · parent

I would upvote this a million times if possible

comment 18y ago · link · parent

reasonably good with PyDev. Not as good as NB for RoR though

comment 18y ago · link · parent

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.

comment 18y ago · link · parent

Ubuntu ,NetBeans(for RoR), Eclipse(for Python/Django, Java)

comment 18y ago · link · parent

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.

comment 18y ago · link · parent

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.

comment 19y ago · link · parent

The preview is awesome! Hats off to your dedication!

comment 19y ago · link · parent

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?

comment 19y ago · link · parent

The python implementation looks overly complicated. I was thinking that the ruby and python implementations would be very similar. Here it goes

def foo(n):

    return lambda i:n+i
Tried it (Python 2.5) and it works.