Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
irahul
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
20 ms
·
121.
▲
by
irahul
14y ago
Here you go(first result for "adria richards github") https://github.com/adriarichards
122.
▲
by
irahul
14y ago
> I think it's brave and noble for her to make (what seems to me) to be an attempt at civil dialogue. > In effect she's saying: I want to keep talking about this, To me, it looks like a statement prepared by a legal team.
123.
▲
by
irahul
14y ago
> I kind of want to punch the guy who said "no programmer would do this" in the nose. From my reading, it appeared as a complement as in "no beginner programmer would actually go through the pains of finishing it, and finishing it on yo
124.
▲
by
irahul
14y ago
http://pytools.codeplex.com/documentation
125.
▲
by
irahul
14y ago
If you are already a programmer, official tutorial will be the best and fastest http://docs.python.org/2/tutorial/ The page list some other domain as official python tutorial: http://homepage.mac.com/s_lott/books/python.html That's no
126.
▲
by
irahul
14y ago
I don't think it can(I did a quick search to confirm). But with apache, you can install a ruby script as cgi which renders the erbs and returns them.
127.
▲
by
irahul
14y ago
He isn't talking about the sinatra example. He is talking about apache/passenger serving .erb files directly as apache/mod_php does for .php files.
128.
▲
by
irahul
14y ago
What are you considering the core? The nurble method? Ruby: configure do @@nouns = Set.new File.open('nouns.txt').map {|noun| noun.strip.downcase } end def nurble(text) words = Set.new text.downcase.split # Replace word
129.
▲
by
irahul
14y ago
> I look forward to the day PHP is standardised (it will happen), because it cops a lot of flak when it gets the job done without needing usually anything installed on the server to run it. Upload your scripts and run, BAM! What do you
130.
▲
by
irahul
14y ago
I use both Flask and Django(and Sinatra and Rails). I tend to like Flask more than Django. It's just that big applications tend to have similar structure. Armin have done a great job with Flask. The framework is quite malleable. I have writ
131.
▲
by
irahul
14y ago
Yes. I have a main.py which reads the toplevel urls.py and all blueprints urls.py, and sets the routes. https://github.com/rahulkmr/flask-bigapp-template
132.
▲
by
irahul
14y ago
I don't have something clean, but I pushed a demo https://github.com/rahulkmr/flask-bigapp-template The focus points are: 1. Routes in a separate file. Check config/urls.py 2. Blueprints are level of abstraction. Check blueprints/post. It
133.
▲
by
irahul
14y ago
> Obviously their point was that Bateman was too close to Batman. Their point is moot. DC comics will have to go after people who own 'Patrick Bateman'. This isn't infringement(nobody is going to confuse a trading software named Bateman
134.
▲
by
irahul
14y ago
The difference between Flask's and Bottle's ram usage will be negligible. Out of box, flask is a wrapper over werkzeug and ships with Jinja2. The main memory usage will come from other libraries and extensions, and your own application code
135.
▲
by
irahul
14y ago
> I have nginx + gunicorn controlled by supervisord running and I must admit coming from LAMP it went not as smooth as I hoped. If you are so inclined, you can do it using Apache + mod_wsgi. That is very similar to how you do Apache + m
136.
▲
by
irahul
14y ago
> I thought Flask was a minimal micro framework but this looks as bloated as Django. What kind of web applications have you written, and in what language/frameworks? My experience doesn't match yours. Flask is minimal in the sense that
137.
▲
by
irahul
14y ago
When you used php, your application server(mod_php) and web server(apache) looked the same to you. With python wsgi applications(most of the web frameworks are wsgi compliant), you generally need a separate application server and a web serv
138.
▲
by
irahul
14y ago
I prefer keeping routes in a separate file. Instead of @app.route('/') def index(): pass I keep a routes array routes = [ ('/', endpoint='index', view_func=index) ... ] I find it a lot pleas
139.
▲
by
irahul
14y ago
Blueprints are the same angle(better IMO). Develop the blueprint as a standalone module[1](templates, url rules, static files, before handlers...), and the mount it on the main application. [1] Not python modules. I say module in the abstra
140.
▲
by
irahul
14y ago
Your 'Zap' is bothering me. What happened to Baz?
141.
▲
by
irahul
14y ago
> What's your theme, BTW? I also like your custom status bar shape. My screenshot doesn't have custom status bar shapes. GP does. Anyway, for that, you need powerline(available for both vim and emacs). My color theme is ir_black https:
142.
▲
by
irahul
14y ago
> Emacs can be pretty pretty--perhaps not actively pretty, but very elegant in a minimalist sort of way. I'm pretty happy with how mine looks[1], for example. Obligatory vim can be pretty too, and I am happy with how mine looks. http:/
143.
▲
by
irahul
14y ago
> I think that there is some abuse of the term real-time these days: From your link: <quote> Soft The usefulness of a result degrades after its deadline, thereby degrading the system's quality of service. <quote> A lot o
144.
▲
by
irahul
14y ago
> Sure I get, but I think it just dilutes the meaning of the term "real-time" to use it in a soft context. Soft realtime isn't a new thing. Chat has always been soft realtime.
145.
▲
by
irahul
14y ago
> Hey and is sleeping is also waste of time ? Sleeping is a waste of time.
146.
▲
by
irahul
14y ago
> We could be reading about the food of the future. Normal food will be a luxury reserved for a few. I doubt it. We have somewhat accurate idea of what's good for the body, and what's not good for the body. That "what's not" is widely i
147.
▲
by
irahul
14y ago
The article doesn't support "calori restriction" -> "longer lifespan" <quote> No clinical trial has been performed involving humans. Two trials have been performed involving primates, but have not demonstrated increases in media
148.
▲
by
irahul
14y ago
I am wondering the same thing. For all I know, the guy might have bones of adamantium, or bones so weak that they barely support his weight; a resting heart rate of 35, or 95...The only thing I can tell from the color of his neck and arms i
149.
▲
by
irahul
14y ago
> Gdb is my go-to debugger for Ruby as well. Unless you are debugging the ruby process(and not the running script), what does gdb buy you over ruby-debug?
150.
▲
by
irahul
14y ago
> Something like RubyMine IDE debugger or Firebug javascript debugger. That's not for the go team to develop. > If you are a Ruby developer then I highly recommend trying out RubyMine. I promise that you will never debug Ruby code u
More ›