Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
_ZeD_
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
76 ms
·
901.
▲
by
_ZeD_
13y ago
witch is a little different thing. python can sort according to a function (using the "key" parameter) or using a custom comparator function (using the "cmp" parameter) as a side note, Python offers also a sorted[0] fun
902.
▲
by
_ZeD_
13y ago
yes, but ATM there is lack of documentation: http://www.riverbankcomputing.com/pipermail/pyqt/2013-Decemb...
903.
▲
by
_ZeD_
13y ago
Please, no.
904.
▲
by
_ZeD_
13y ago
yes it is
905.
▲
by
_ZeD_
13y ago
the problem with this expression is that it doesn't "short circuit". Both "Thing 1" and "Thing 2" (in this cases object, but the can be function calls) are evaluated before the "some_boolean" u
906.
▲
by
_ZeD_
13y ago
FWIW... it's "WOW64" (windows on windows 64)
907.
▲
by
_ZeD_
13y ago
the problem is not in the 32/64 reg.exe executable. It's that "32-bit simulated version of the registry". Why do I need something like that? (I expect some binary compatibility, but we're just opening a can of wor
908.
▲
by
_ZeD_
13y ago
*De bello gallico (or, if you prefer, "Commentarii de bello Gallico")
909.
▲
by
_ZeD_
13y ago
but but... http://dabeaz.com/coroutines/
910.
▲
by
_ZeD_
13y ago
Oh damnit! Now I miss my lego technic sets!
911.
▲
by
_ZeD_
13y ago
JSON is used because Javascript, Python and Ruby (among others) understand it without needed external libraries I don't think neither this is the point: afaik browsers (where the most of the js is evaluated), python and ruby also hav
912.
▲
by
_ZeD_
13y ago
wouldn't an "echo" just do the same? $ mkdir a $ cd a $ touch b c d e $ find -type f | xargs echo rm rm ./b ./d ./e ./c $ ls b c d e $ find -type f | xargs rm $ ls
913.
▲
by
_ZeD_
13y ago
should I mention futurama?
914.
▲
by
_ZeD_
13y ago
while listening to the structuring of the haskell version, with a "world" and an "actor" for each element, and the interaction as message-passing, I would think Carmack would find using erlang very satisfing as another a
915.
▲
by
_ZeD_
13y ago
Kernighan does not say "don't comment good code"
916.
▲
by
_ZeD_
13y ago
honestly I don't like this approach. In my mind code is for the "how" to do a thing, comments is for the "why". While sometimes some bugs in some library / infrastructure element bites you badly, I still think
917.
▲
by
_ZeD_
13y ago
svn / hg / git ... blame ? :D
918.
▲
by
_ZeD_
13y ago
"don't comment your code", as dogma, without thinking, it's just stupid. What sometimes happens, when you work on the same code base for month and you know it inside out, it's that you get some knowledge for granted
919.
▲
IPython 1.0
(ipython.org)
2 points
by
_ZeD_
13y ago
|
0 comments
920.
▲
by
_ZeD_
13y ago
if you like to play with the AST, I think you could find useful https://github.com/lihaoyi/macropy
921.
▲
by
_ZeD_
13y ago
half joking... have a look at http://www.polygen.org . AFAIK it's only in Italian, but it can generate pretty much anything with a little grammar... -- EDIT -- on http://www.polygen.org/it/grammatiche&#x
922.
▲
by
_ZeD_
13y ago
poor, poor Bobby Tables...
923.
▲
Curved-Fold Origami
(hdevalence.ca)
2 points
by
_ZeD_
13y ago
|
0 comments
924.
▲
by
_ZeD_
13y ago
I would remove ` is not ''`
925.
▲
by
_ZeD_
13y ago
everytime I see reduce(operator.add, ...) and variations like that I think GvR was right to relegate reduce to the functools module... it's just that sum(...) covers the most common (90%? only?) usage...
926.
▲
by
_ZeD_
13y ago
absolutely. This is nothing more than a clever trick, but I would never rely on it. Honestly, tough, I think all major JSON parser behave following the two assumption.
927.
▲
by
_ZeD_
13y ago
while this is true, I think it's irrelevant: the "trick" is about "abusing" * the fact parser work from top to bottom of the text AND * the fact that assigning the same key many times with different values update th
928.
▲
by
_ZeD_
13y ago
Code is meant to be consumed by machines I hope you're joking...
929.
▲
by
_ZeD_
13y ago
minor nitpick, you don't need "echo" $ bc -l <<< 3+2 5 $
930.
▲
by
_ZeD_
13y ago
you know xfce is present in a default slackware install? :D
More ›