Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
rbonvall
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
22 ms
·
181.
▲
by
rbonvall
11y ago
It's also my favorite number, but I don't think any of us likes it more than the guy in the video :) Thanks for sharing. I learned about 142857 when reading The Man Who Counted as a kid. I remember getting obsessed with it and dis
182.
▲
by
rbonvall
11y ago
Check under your mattress :)
183.
▲
by
rbonvall
11y ago
During the last month, two (barely related) Scala programs that I needed to implement in my job were an SVG image generator and an XSD schema creator. I'm thankful that Scala has XML literals, even though when I learned that it did I f
184.
▲
by
rbonvall
11y ago
I love the idea of remastering old papers for the web. While SVG and MathJax allow to easily include diagrams and math, this work shows that you can get away with using only Unicode. To make the most of the capabilities of HTML, I would hav
185.
▲
by
rbonvall
12y ago
This year I plan to use Scala for the GCJ, but for numerical problems I won't hesitate to go back to Python: Numpy is just too convenient for that. In previous editions I've used Numpy (and once even a Scipy solver) and it made my
186.
▲
by
rbonvall
12y ago
Because many people upvoted it.
187.
▲
by
rbonvall
12y ago
Hi Jack, awesome work! Did you write the HTML by hand or did you use or write some static generator? I'd love to have sidenotes like yours automatically generated and positioned.
188.
▲
by
rbonvall
12y ago
Browsing the web on the kindle is too inconvenient to be a distraction at all.
189.
▲
by
rbonvall
12y ago
I'm sure it was just a playful response. In case anyone doesn't know, this is Vim's license: ”Vim is Charityware. You can use and copy it as much as you like, but you are encouraged to make a donation for needy children in U
190.
▲
by
rbonvall
12y ago
There's also DEC64, Douglas Crockford's proposal for a decimal floating point type to serve as the only numeric type in future programming languages: http://dec64.org/
191.
▲
by
rbonvall
12y ago
In Spanish «culpa» means “guilt”. I wonder if this was intentional.
192.
▲
by
rbonvall
12y ago
While I see the use for multi-statement lambdas, and I use them all the time in {Java,Coffee}Script, they are rarely needed in Python as there is always a more idiomatic way to write the code. In particular, with for loops and generator exp
193.
▲
by
rbonvall
12y ago
I remember having read that the convention was using Right when the value was right and Left for the error (the error that's left, I imagine).
194.
▲
by
rbonvall
12y ago
Yes it would, but I don't care about these small efficiencies, say 97% of the time ;) The lazy version in Python 3 would be this one: list(chain(*map(iter, words))) For Python 2 one has to use itertools.imap instead of map.
195.
▲
by
rbonvall
12y ago
For loops can often be avoided. I would write this particular example in one of these ways, that I think are readable: x = [] for word in words: x.extend(word) from itertools import chain x = [letter for letter i
196.
▲
by
rbonvall
12y ago
You'd be sure if they wrote: >>> qw = str.split >>> qw('my list of words') ['my', 'list', 'of', 'words']
197.
▲
by
rbonvall
12y ago
I think it's a great idea! I'm sure a friendly chess game between nations will not end up encouraging nationalism and political division :)
198.
▲
by
rbonvall
12y ago
Then England should not be a favorite either.
199.
▲
by
rbonvall
12y ago
You could still write Wachſtube and Wachstube. Long s (ſ) could be made available in any script, and the fact that it isn't maybe tells that it is not such a big problem.
200.
▲
by
rbonvall
12y ago
As opposed to the modern trend where there is too much non-information to digest.
201.
▲
by
rbonvall
12y ago
Also: n jump to the next occurrence of the last search N " " " previous " " " " " " * jump to the next occurrence of the word under cursor # " "
202.
▲
by
rbonvall
12y ago
I loved that talk. I found this lecture also instructive (not as entertaining as Jim's though): https://www.youtube.com/watch?v=FWkiO-F6X5E
203.
▲
by
rbonvall
12y ago
These diagrams are interesting too: http://homepages.cwi.nl/~tromp/cl/diagrams.html There is also Bret Victor's Alligator Eggs game: http://worrydream.com/AlligatorEggs/ I know about the
204.
▲
by
rbonvall
12y ago
I loved the 9x9 grid for displaying group matches.
205.
▲
by
rbonvall
12y ago
(Nitpick: Carlos is not a family name. Roberto Carlos is the full given name. His surname is da Silva Rocha).
206.
▲
by
rbonvall
12y ago
One usual advice is to take classes of something that interests you. Let me add something that I've realized about that. A lot of people feel awkward at the notion to take classes about something they are not good at. "Dancing les
207.
▲
by
rbonvall
12y ago
Hi edelans, very nice site, congrats! It would be nice if there was a public league so I don't need to join one.
208.
▲
by
rbonvall
12y ago
Git is not just about git diff. For example, it gives you the ability to find which changeset introduced a regression by doing a binary search on the history and running tests automatically on each revision. The culprit could be a change ma
209.
▲
by
rbonvall
12y ago
It would be a nice convention if CLI applications shipped a USAGE.txt or OPTIONS.txt file written in docopt in the root of their repo, along other standard files that one expects to be there like README.txt, requirements.txt, setup.py, proj
210.
▲
by
rbonvall
12y ago
Just like in the shell, anything prepended with Control+V will be input literally, so you can type Dij<C-v>kstra.
More ›