Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ekimekim
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
45 ms
·
421.
▲
by
ekimekim
11y ago
I don't know about RFC reserved bits, but I believe the linux kernel's policy is to enforce that any unused bits (in say, a bit flag field) MUST be zero, because otherwise some programmer will leave them uninitialized or something
422.
▲
by
ekimekim
11y ago
I mainly do trans-pacific flights. In such long (>12h) flights I can't use wifi even if its on offer, as it chews through precious battery time too fast. I would kill for plane seats with power plugs, or even just USB power.
423.
▲
by
ekimekim
11y ago
I'll field the latter. I've used both Zulip and Slack in small team (5-20 people) settings and I much prefer Zulip. In particular I like how the zulip UI is single-stream by default. Messages from different channels are interleave
424.
▲
by
ekimekim
11y ago
Youtube is one of very, very few sites I run adblock on for this reason. I'm fine with ads, as long as they aren't actively blocking content.
425.
▲
by
ekimekim
11y ago
Yes, that none of these systems will ever actually work is the point ;)
426.
▲
by
ekimekim
11y ago
Yes, all DRM systems are inherently impossible to make fully secure with only local data. However, several other options exist: * Needing to contact an external server to view an image (of course, you could always take the opportunity to sa
427.
▲
by
ekimekim
11y ago
Note that some PDFs contain actual text and markup, and can be imported natively. But others (eg. ones that came from a scanner) are nothing but an image of each page. Such images require some kind of OCR to turn into text, which I doubt Wo
428.
▲
by
ekimekim
11y ago
ZFS is just a filesystem, it's usable on any storage format. It reserves some space for metadata but not much more than most filesystems. You wouldn't need a bootloader like grub unless you're trying to boot from the floppy.
429.
▲
by
ekimekim
11y ago
I was in a team where the tooling required a JIRA ticket reference in the commit message. Of course, the JIRA project didn't have an actual ticket for the majority of minor changes and fixes (and for that matter, adding one for every s
430.
▲
by
ekimekim
11y ago
Why is making voting mandatory* a less desirable outcome? *Or as I prefer to say, "equal cost voting choice", ie. that it takes just as much time and effort to not vote (go to polling place, accept ballot and void it) as it does t
431.
▲
by
ekimekim
11y ago
There's a distinction here between DNS hosting (telling people what address "foo.com" should point to) and domain registration (making it known that your server "owns" that domain and is where people should look for
432.
▲
by
ekimekim
11y ago
I just assumed those questions were so that they could charge you for lying later if you did turn out to be a spy/terrorist/etc. Not sure why that would matter when you're also getting arrested for spying / committing a
433.
▲
by
ekimekim
11y ago
Manual vote counting takes significant time and effort, and a properly implemented electronic system would have advantages in tamper-proofness. It also could have advantages in being interactive so users can't fill things out incorrect
434.
▲
by
ekimekim
11y ago
I have a seperate folder with the git checkout, then use symlinks to connect the actual dotfile locations. I think the author may have alluded to the same thing: > I can quickly clone the git repository and fire up my bootstrap script to
435.
▲
by
ekimekim
11y ago
The Mandelbrot set (the image on the right) is a famous example of a fractal, a mathematical shape that gets more detailed the more you zoom in. The code on the left is SQL, normally used to query databases, but in this case is being used t
436.
▲
by
ekimekim
11y ago
I always find it ironic when my randomly generated string doesn't meet their "security" requirements.
437.
▲
by
ekimekim
11y ago
Common practice if you're doing a large number of very small allocations is to pre-allocate a larger area of memory for them, then use a more naive allocation algorithm to parcel it out.
438.
▲
by
ekimekim
11y ago
To perhaps shed a little light on the None thing and why it would be useful, consider the following: def munge(data, convert=None): data = map(convert, data) ... ie. treating None as identity gives you sane default
439.
▲
by
ekimekim
11y ago
I tend to use map if my mapping function is already available to me as a callable. If I would use a lambda, I tend to use a list or generator expression instead. Probably my single most common usage of map is: s = sep.join(map(str, pa
440.
▲
by
ekimekim
11y ago
It's that very silence that makes me suspicious. Security through obscurity is only a reasonable defence if you know you are otherwise insecure. That said, it's also common when big companies have security concerns, valid or not.
441.
▲
by
ekimekim
11y ago
Because your client (generally a browser) is configured to implicitly trust a group of companies called "root Certificate Authorities" (root CAs). Now, consider one such company head-quartered in China, or the US. The governments
442.
▲
by
ekimekim
11y ago
I could feasibly see a mathematician understanding all this but not being familiar with that symbol, which is mostly used in programming (math prefers a ≠ b instead of a != b).
443.
▲
by
ekimekim
11y ago
I'll get downvotes for this, but my reason for sticking with python2 isn't library support, it's that I prefer python2's strings. Sure, it made unicode handling less painful in cases where encodings are always known and
444.
▲
by
ekimekim
11y ago
I really love this methodology. If an exceptional case exists, and it's cheap to cause the exceptional case to occur during standard usage, then do it so that the code is well-exercised.
445.
▲
by
ekimekim
12y ago
I somewhat agree, but it's a thing that many people see as a feature.
446.
▲
by
ekimekim
12y ago
* Ease of use * Publicly available image registry * Dockerfiles I should stress that last point - I dislike certain aspects of docker, but I love their system for building images. I want to somehow adapt it for building bare metal images.
447.
▲
by
ekimekim
12y ago
cynical answer: I've seen alot of races get "fixed" by adding a sleep() or similar less cynical answer: Commonly you already have some kind of means to handle races - locking, transactions, some other variety of extra check -
448.
▲
by
ekimekim
12y ago
That did cross my mind - my solution used a full json parser (jq), and I did a quick grep for commas in name or creditcard fields before using a "%s,%s"-style solution to generate the CSV - if there had been any present, I would h
449.
▲
by
ekimekim
12y ago
I used jq as well, though instead of doing a seperate echo I did this: ([{name: "name", creditcard: "creditcard"}] + .)[] instead of .[] Another less hacky way would be: [["name", "creditcar
450.
▲
by
ekimekim
12y ago
Much better, thank you.
More ›