Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ekimekim
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
56 ms
·
511.
▲
by
ekimekim
12y ago
Maybe. It depends on who you ask. The term "server" is pretty nebulous. That's part of the reason I think such ToS clauses are insane - they basically give the company a way to suspend your service for no reason if they feel
512.
▲
by
ekimekim
12y ago
I must admit, some of these features would be very nice. I'm sick of manually dealing with kwargs just because I wanted a keyword arg AND a *args. ...but you're right, it's not worth the unicode handling.
513.
▲
by
ekimekim
12y ago
If you're needing to think carefully on what code you call might cause a switch and what won't, you're already doing it wrong. Instead of treating gevent like coroutines with less predictable ordering, treat it like threads w
514.
▲
by
ekimekim
12y ago
Because the auto-unicode of system interfaces is a PITA if you want to deal with opaque data which is either binary or an unknown encoding? Because the incompatibility of unicode and bytes (b'x' != 'x') and the "eve
515.
▲
by
ekimekim
12y ago
I would say education quality dosn't matter because, in my experience, it's universally bad. Why should you care if your useless years spent buying an accreditation is 98% useless or 99% useless? You have to self-educate either wa
516.
▲
by
ekimekim
12y ago
A good starting point might be average weight statistics on a per-state level. I doubt you could get any finer-grained information though.
517.
▲
by
ekimekim
12y ago
Your mistake here is assuming you're paying for education. You are not. You are paying for a certificate, saying that you passed certain tests and achieved certain marks. Education has nothing to do with it. And unfortunately, many job
518.
▲
by
ekimekim
13y ago
Only in this case you aren't rolling your own crypto, but (hopefully) using a popular, field-tested CSPRNG available as a library for your language of choice. Unless you mistakenly pick a non-cryptographic PRNG, and assuming the implem
519.
▲
by
ekimekim
13y ago
The problem you're describing is similar but not the same as the one in the article. What you describe is part of the libc implementation of rand(3), whereas the article is talking about reads from /dev/urandom, which has a l
520.
▲
by
ekimekim
13y ago
Please don't do this. This exact approach is what caused the problems described in the article. If you need secure random numbers, do what you had above (though in light of other comments, perhaps consider a different algo besides MT).
521.
▲
by
ekimekim
13y ago
Are you also suggesting that the kernel provide a "great implementation" of SHA? Of SSL? Of https? Where do you draw the line? There's no reason for the kernel to provide standard library functions. In fact, I'd argue th
522.
▲
by
ekimekim
13y ago
Personally, my preference for zookeeper comes from the API. To me, the ZK API and docs were far more understandable than the etcd ones. The etcd api docs appear to be a collection of examples, not reference docs. It does a poor job of expla
523.
▲
File Sealing and memfd_create()
(lkml.org)
1 points
by
ekimekim
13y ago
|
0 comments
524.
▲
by
ekimekim
13y ago
This. It allows for the general meaning to be conveyed (it's numeric, kind of multiplicative, uses @ symbol) without restricting it to a particular use case. This allows other users to define their own meanings for @ in a variety of co
525.
▲
by
ekimekim
13y ago
Not to mention common idioms like x.y vs x._y where one is a property and the other the actual member.
526.
▲
by
ekimekim
13y ago
I think you'll find alot of developers have very different pain points for the switch. For you, it's integer division. For me, it's unicode strings. Some people in this discussion even cite the print function. Long story shor
527.
▲
by
ekimekim
13y ago
When I'm in an interactive session I just leave out the print statement, since it'll print the repr() of the result anyway. And repr is (generally) what I want.
528.
▲
by
ekimekim
13y ago
Minor gripe: The other reason isn't library support, it's unicode strings, which are a massive pain for unix systems programming.
529.
▲
by
ekimekim
13y ago
A very minor gripe, but it seems weird to use the "bool success" return value convention for one function, but the "int return, negative on error" convention for the other. Also there's a few places where ERRNO is g
530.
▲
by
ekimekim
13y ago
Our first obligation is to keep the foo counters turning.
531.
▲
by
ekimekim
13y ago
More importantly, new hardware has proper memory protection, so instead of cool tricks you just get segfaults...
532.
▲
by
ekimekim
13y ago
Minor gripe, the except KeyboardInterrupt isn't necessary, since KeyboardInterrupt is a BaseException, not an Exception.
533.
▲
by
ekimekim
13y ago
The reasoning is: 1. MongoDB and MySQL have similar market penetration 2. MongoDB and MySQL both have limitations (these statements are independent) Then, from 1 and 2, he concludes 3: In the same way that MySQL gives SQL a bad reputation,
534.
▲
by
ekimekim
13y ago
Arguably, it can make things easier to read in cases where you want "static" variables, eg. a decorator that synchronises a function with a lock. The lock shouldn't be passed in by the user, nor should it be created in an ind
535.
▲
by
ekimekim
13y ago
I tend to see functions as merely a special-case of classes anyway. In a certain mindset, I consider this: def foo(...): ... shorthand for this: class Foo(object): def __call__(self, ...): ...
536.
▲
by
ekimekim
13y ago
I've been using Gmelius for quite a long time now (a year? more?). I couldn't be happier. Every time I happen to open my gmail in another browser, I'm shocked at just how weird it looks with all the extra clutter. Thanks for
537.
▲
by
ekimekim
13y ago
Pretty much every time I install windows (only for the games) the first step is to boot into linux, download a windows driver for my network card, then boot into windows to install it so I can start downloading other drivers.
538.
▲
by
ekimekim
13y ago
I'm reasonably sure that one was intentional. Or at least, noted by the creator upon creation.
539.
▲
by
ekimekim
13y ago
I think C has kind of hit equalibrium, in that it's not often used for things outside its "niche", but with no other language threatening it within its niche.
540.
▲
by
ekimekim
13y ago
I understand the "not good enough for C" comment, but why "too good for Ruby and Python"? Not trying to pick a fight, just would like you to elaborate.
More ›