Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
deniska
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
by
deniska
10y ago
Be careful with named tuples: >>> from collections import namedtuple >>> Time = namedtuple('Time', ['hours', 'minutes']) >>> Point = namedtuple('Point', ['
62.
▲
by
deniska
10y ago
Python treats a tab character as the amount of spaces needed to go into the nearest multiple of 8 column. With py2 ability to mix different indentation as far as it amounts to the same column, you can format your code in pretty interesting
63.
▲
by
deniska
11y ago
Never managed to achieve what I want in gulp. Switched to makefiles. Make just needs executables. It doesn't need specific plugins for each compiler. Its syntax is arcane but it was much easier to make it up and running.
64.
▲
by
deniska
11y ago
I personally like the idea of using good old Make for that task. You don't need "huge plugin ecosystem", you just need executables to use it. And unlike many other systems it does incremental builds without any special machin
65.
▲
by
deniska
11y ago
You can even hack it into a string class if you don't mind using even more scary hacks like monkey patching built in classes. def I(s): import inspect frame = inspect.currentframe() caller_locals = frame.f
66.
▲
by
deniska
12y ago
I still prefer PyHP: http://www.ccraig.org/software/pyhp/manual/sample.html
67.
▲
by
deniska
12y ago
For now this folder consists of opensource libraries (lwjgl).
68.
▲
by
deniska
12y ago
And I was wondering, why did my no-ip.biz subdomain stop working…
69.
▲
by
deniska
13y ago
When glibc guys changed memcpy implementation which changed its undefined behavior, it broke Flash Player and Linus got pissed off. Afair they reverted the change. https://bugzilla.redhat.com/show_bug.cgi?id=638477#c129
70.
▲
by
deniska
13y ago
You can just point real world hardware camera on the screen. Sure quality won't be perfect, but it will be decent, better than if same thing is done in a cinema.
71.
▲
by
deniska
13y ago
Actually Clojure and some other JVM hosted languages don't work on android as is because they rely on JVM while android uses bytecode converted from jvm to dalvik. Edit: clojure works on android now but it needed additional porting eff
72.
▲
by
deniska
14y ago
> key parts of the game logic and performed server side so you would need to reimplement the server in order to crack it But game runs just fine for twenty minutes after disconnect (at least it simulates one city fine). You just may los
73.
▲
by
deniska
14y ago
I opened it in my desktop firefox and it showed «Sent to phone» notify of firefox2phone plugin which uses chrome2phone protocol.
74.
▲
by
deniska
14y ago
I found a bug in minesweeper. Start new game, don't move selection, press F, press F again and enter.
75.
▲
by
deniska
15y ago
It's the eyePhone from Futurama.
76.
▲
by
deniska
15y ago
My Palm IIIe has 2 mb RAM and 16 mhz CPU. But it was much less laggy than most modern android devices with dual core CPUs and gigabytes of RAM while doing same tasks. I even used internet (through irda gprs phone) on it. Unfortunately now i
77.
▲
by
deniska
15y ago
It seems to be not only programming language books' fault. And not only books' fault. Even teachers at schools and universities sometimes show wrong way of doing something.
78.
▲
by
deniska
15y ago
If simulation runs (and it should) in the different thread, then nothing bad happens.
79.
▲
by
deniska
15y ago
Using tools in wrong way is a kind of entertainment for hacker. But hacker shouldn't complain if something breaks.