Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
irahul
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
92 ms
·
781.
▲
by
irahul
15y ago
<snark> How do you know someone hasn't read GEB? They pass snarky remarks when someone mentions they have read GEB. </snark> That aside, offering to help people with a difficult book is different from flaunting having read t
782.
▲
by
irahul
15y ago
I still can not make out whether you have read the book or not. You went to the same school as the author(I presume you mean the OP in the reddit thread), and you knew the professors who taught the guy didn't like the book. Is that all you
783.
▲
by
irahul
15y ago
Yes. I noticed it after I had missed my edit window.
784.
▲
by
irahul
15y ago
Appending `cache:` to the url works. Example: cache:www.renaebair.com/2010/08/11/my-husband-is-a-programmer-i-have-no-idea-what-that-means/
785.
▲
by
irahul
15y ago
> base desire for revenge and take a more thoughtful approach? > desire for vengeance and instead express forgiveness. Forgiveness for someone who gets people tortured and killed, which includes your wife and children, isn't thought
786.
▲
by
irahul
15y ago
> If you can push all your data to the front-end all at once, yes. DataTables makes this pretty straightforward. Paginagtion(ajax or page reload takes care of it). I use slickgrid https://github.com/mleibman/SlickGrid ; pagination is s
787.
▲
by
irahul
15y ago
White on black - ir_black http://blog.toddwerth.com/entries/8 Tried a number of themes - this works best for me.
788.
▲
by
irahul
15y ago
That's an interesting and a well-written story. But yet, I find his "I pray for Kim Jong", "I don't want him to meet a tragic end" et al. a bit strange. I don't know, it seems like denial and rationalization. A dictator got his family kille
789.
▲
by
irahul
15y ago
Your metaphor is completely lost on me. Care to elaborate?
790.
▲
by
irahul
15y ago
> Publish like normal Or may be, if it's just a blog post, let Google(blogger) handle it.
791.
▲
by
irahul
15y ago
Comments with only humor and puns are discouraged here, but if the post you are replying to is so ridiculous that an adjective is yet to be formulated to describe it, I think it's all right.
792.
▲
by
irahul
15y ago
Python generator tricks is garnering attention http://news.ycombinator.com/item?id=3349429 This is a follow-up presentation. I would advice against using raw co-routines for co-operative multitasking though, barring a few special cases; g
793.
▲
Python co-routines: follow-up to Python generators presentation [pdf]
(dabeaz.com)
134 points
by
irahul
15y ago
|
14 comments
794.
▲
by
irahul
15y ago
Not as high level as Python's generator expressions, but you can use Ruby's fibers to implement generators.
795.
▲
by
irahul
15y ago
Apart from chaining generators, you can write a simple helper to pipe general expressions. def pipe(cur_val, *fns): """ Pipes `cur_val` through `fns`. :: def sqr(x): return x * x def ne
796.
▲
by
irahul
15y ago
Someone please ban this asshole.
797.
▲
by
irahul
15y ago
It's good to know about it. Earlier at an employer we had a system where a processor in the pipeline took regular expressions as input - you can pass regular expressions but not the flags. (?i) is the only way you can indicate case-insensit
798.
▲
by
irahul
15y ago
Personally I don't find NFA/DFA helpful with learning regular expressions. To a newcomer, even a naive implementation of NFA/DFA doesn't make sense. Consider this small gist https://gist.github.com/1414061 I have a feeling a newcomer will
799.
▲
by
irahul
15y ago
> BTW, is that the Peter Norvig from AI-Stanford!! Yes.
800.
▲
by
irahul
15y ago
Or '{}'.format(foo). Personally, I have never faced this issue as: 1. I know/control the input while string formatting. 2 String-formatting tuple comes up rarely.
801.
▲
by
irahul
15y ago
> it's dangerous and can fail in subtle way The only subtle way it fails, which I can think of is: In [27]: foo = (1,2) In [28]: '%s' % foo --------------------------------------------------------------------------- T
802.
▲
by
irahul
15y ago
Recently I was working on an API, and the API was using xml for messages. Dealing with xml is a bit of a pain, so I wrote a small converter. It works on similar lines to Rails' Hash.from_xml and Hash.to_xml
803.
▲
Stuck with xml? Why not convert it to Python dicts and vice-versa.
(github.com)
3 points
by
irahul
15y ago
|
1 comments
804.
▲
by
irahul
15y ago
You don't have to know anything about Feynman or Physics. The book assumes a basic knowledge of Mathematics and Science, and that's all you need to understand it. But be warned - this isn't an easy book, and you can't skim through it. This
805.
▲
by
irahul
15y ago
Feynman lectures on physics - vol 1 If at some point you found Physics wonderful, and then lost it when everything became calculations, I wholeheartedly recommend this book, and the other volumes once you are done with it. Feynman has an en
806.
▲
by
irahul
15y ago
> He clearly invested a lot in design for kalzumeus.com, The site looks neat, and there is an attribution for wordpress and "woo themes" in the footer. Also, Patrick has posted below saying he didn't invest much in the ui(in terms of mo
807.
▲
by
irahul
15y ago
> He didn't say it had to make the design community swoon; just that it has to convey professionalism and draw your intended users in. That is a "no true scottsman" fallacy. When someone says design matters, it means having a pleasant
808.
▲
by
irahul
15y ago
> It doesn't, that's just your fan club talking. I think hostility(fan club) will only derail the conversation. Irrespective of whether the posters are fan boys or not, they are going to take offence, and then everything goes south.
809.
▲
by
irahul
15y ago
What are you two people talking about? The url links to github page for the backbone-on-rails.
810.
▲
by
irahul
15y ago
> "This blog is young" is not a sufficient reason to submit something. He didn't mean "the blog is young -> I need views". He meant the blog is young, and since there aren't many readers, no one submits it to HN; the only way to sha
More ›