Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gvx
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
91.
▲
by
gvx
8y ago
I had the same problem with the name, although in my case I attributed it to associating it with FontForge.
92.
▲
by
gvx
8y ago
I don't think they were advocating for using UTC exclusively, just identifying their own timezone relative to UTC when communicating with someone in a different hour. For example: "I always eat breakfast at 08:00 UTC+01, so I pref
93.
▲
by
gvx
8y ago
> Our third use case involves checking whether the defaultValue is an ordinary value or a function. We could check every time it’s accessed, but instead we’ll assign different function bodies to the proxy’s get key. That way, it’s only c
94.
▲
by
gvx
8y ago
If my calculations are correct, 520 bits should be enough to count in units of Planck time until the heath death of the universe.
95.
▲
by
gvx
8y ago
Yeah. In Python 3, __div__ is gone, and only __floordiv__ and __truediv__ exist.
96.
▲
by
gvx
8y ago
You almost always only want to implement __del__ if you're writing an extension in C. Otherwise, the GC generally takes care of cleanup perfectly fine. And in cases like the one cjhanks describes, __del__ doesn't get called reliab
97.
▲
by
gvx
8y ago
Python's None is exclusively for 'the thing here explicitly doesn't exist' ('the thing here is empty' would be an empty collection and 'something which has never been set' is signified by raising an e
98.
▲
by
gvx
8y ago
Your suggestion contains bugs, though. To make it fully equivalent to the code in the blog post, it would need to be: sentinel = object() item = next((item for item in container if search_something(item)), sentinel) if item is not s
99.
▲
by
gvx
8y ago
I feel the same way. For-else is one of those things that make me miss Python when I'm working in another language, alongside things like list/set/dict comprehensions, Python's object model and it's way of dealing w
100.
▲
by
gvx
8y ago
Honestly, "else" wasn't confusing to me at all, but "also" would make me very confused.
101.
▲
by
gvx
8y ago
That could be accomplished by doing: da_thing = None for oook in blahblah: if oook == something: da_thing = oook break if da_thing is None: print ("Not found") else: print ('Foun
102.
▲
by
gvx
8y ago
I whipped up something to test that: https://gist.github.com/gvx/667efcd263b18d313801c1b1ffa41509 Running that on my personal projects folder gives me the following result: for elses 60 for loops 1815 # modules
103.
▲
by
gvx
8y ago
In Dutch, child/children is kind/kinderen, which is the same double plural. We also have that construction with ei/eieren for egg/eggs. (Regular plural suffixes are -en and -s.)
104.
▲
by
gvx
8y ago
RE: non-deterministic formatting: I'm not familiar with YAPF, but what kind of behaviour does it have? Like if you run it on two copies of the same file you might get different results, or that it's not idempotent (i.e. sometimes
105.
▲
by
gvx
8y ago
I generally follow this convention: 1. Any string literal that contains either ' xor " will be delimited by the other one. 2. For all other string literals, delimit by " if it's meant for human eyes only, delimit by 
106.
▲
by
gvx
8y ago
Next year, that xkcd strip will have been published closer to the original release of The Matrix than to the current day. I can't believe I've been keeping up with xkcd for so long.
107.
▲
by
gvx
8y ago
I've not used either, but reading their forking announcement ( https://blog.gitea.io/2016/12/welcome-to-gitea/ ), it seems the main difference is that Gogs is maintained by a single person and Gitea by a t
108.
▲
by
gvx
8y ago
It certainly feels more lightweight, provided the webbrowser is already running, which for me is always.
109.
▲
by
gvx
8y ago
That, and I don't think there is a real consensus on the nomenclature, even in the literature. At least, I don't remember university lectures being at all clear on the issue. FWIW, I don't use pass-by-value or pass-by-referen
110.
▲
by
gvx
9y ago
Only images you click on (so that the larger preview pops up, with the Visit button and which used to have the View image button) load the original images, rescaled with CSS. The grid of smaller images consists of thumbnails.
111.
▲
by
gvx
9y ago
For future reference: https://github.com/developit/greenlet/blob/8f51450aab0e1f988... (The issues that were discussed in this thread had been resolved by the time I wrote this comment, and so the link above p
112.
▲
by
gvx
9y ago
Nostalgia doesn't cite sources. I've never used MacPaint. I've used MS Paint, though, pretty extensively, all through the 2000s.
113.
▲
by
gvx
9y ago
I was the only kid in high school allowed to use a laptop in class, because my motor system doesn't really "do" writing but it does typing well enough. I'd spend entire lectures drawing gigantic mazes in MS Paint instead
114.
▲
by
gvx
9y ago
I'd select the section I'd want to crop, copy it, create a new image, resize it to 1x1 or something else small, then paste. The canvas would automatically resize to fit the pasted selection. It sounds a bit more involved than your
115.
▲
by
gvx
9y ago
It doesn't actually issue a redirect: it returns a 200 with the message "This art has moved to a new URL. The art is now visible at:" and a hyperlink.
116.
▲
by
gvx
9y ago
My personal problems with M-B are 1) I have trouble understanding the significance all of the axes except for introversion/extroversion. For example, what is the concrete difference between INFP and INFJ? 2) The results of MBTI tests s
117.
▲
by
gvx
9y ago
An additional hurdle may be it's use of uniqueness typing ( http://clean.cs.ru.nl/download/html_report/CleanRep.2.2_11.h... ), which it uses for IO instead of monads. In my experience with Clean, uniqueness typ
118.
▲
by
gvx
9y ago
While I agree with you on that, your previous comment was simply wrong. Non-profits are very much allowed to just "take money" (legal restrictions aside, but for-profit businesses also have legal restrictions). They're not al
119.
▲
by
gvx
9y ago
I hardly think it's a lie. My browser contains no trace of anything related to Looking Glass, even though I'm opted into Shield Studies. It seems to affect some people but not others. Definitely something that should be fixed in t
120.
▲
by
gvx
9y ago
There isn't really. Any of those things could be used as proxies (plus file size, number of XML elements, rendering time, and more), but the thing we are really interested in is subjective anyway. File size after rendering to bitmap an
More ›