Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dvdkon
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
35 ms
·
451.
▲
by
dvdkon
4y ago
Sometimes we don't manage to eat a bigger loaf, at that point we usually dry it and grind it into breadcrumbs. It will dry quicker when not in a bag, but won't mould. Bread that's too dry to eat but not yet stone-hard can als
452.
▲
by
dvdkon
4y ago
I have to say I really like Python's module system. Modules as objects, scoped import by default and filesystem-backed module resolution (+sys.path) are all good choices in my opinion. Cosmetic warts like __pycache__ are unfortunate, b
453.
▲
by
dvdkon
4y ago
I know Norway isn't in the EU, but the GDPR prevents (or rather lets users decide on) sales of data like this. Not sure how it would interact with mass collection of data by a government agency, but any such transfers might be exempted
454.
▲
by
dvdkon
4y ago
That's the thing: you can't really do that. And the argument shouldn't be "society vs wilderness", but "existing vs new society". In the past, it was really hard to sever ties with one society and governme
455.
▲
by
dvdkon
4y ago
I use QGIS, usually importing an OSM-based vector map (look for the MapTiler plugin) and tweaking the layer appearance does it for me. I'm not 100% on board with how QGIS' print layout tool works, but I think that's just beca
456.
▲
by
dvdkon
4y ago
HP's been making two-button "trackpoints" forever. I don't get it either, but it's tradition at this point, not some sign of laziness. And the laptop is decidedly not a budget laptop rebadge. It looks more like a
457.
▲
by
dvdkon
4y ago
We seem to have very different priorities. You are concerned about the welfare of employees of privacy-violating organisations. I'm concerned about citizens' privacy and say those organisations shouldn't exist.
458.
▲
by
dvdkon
4y ago
The stdlib is part of the language, and while theoretically someone could take PHP and pair it with a new standard library, they could also take the PHP VM and pair it with a new syntax and parser with not much more effort. Just as its stan
459.
▲
by
dvdkon
4y ago
> And this is the recurring thing with PHP critique, vast majority of the time it just in imagination because nobody bothers to look it up. I see this from the other side: Good languages guide programmers toward good solutions. Criticism
460.
▲
by
dvdkon
4y ago
I think this illustrates my problem with PHP well: There are ways to do common tasks properly, but they're often hidden, obscure or basically require creating your own "stdlib extension", as seen here (I only heard about filt
461.
▲
by
dvdkon
4y ago
I don't. I asked for an int parsing function, got (int)$val as a suggestion, so I had to explain why it doesn't fit the bill.
462.
▲
by
dvdkon
4y ago
And a forced cast is therefore a bad way to generally parse a user-provided string to int.
463.
▲
by
dvdkon
4y ago
We could debate that for a long time, but my point was different: There's no sane function in today's PHP that parses ints and handles errors (defaulting to 0 doesn't count).
464.
▲
by
dvdkon
4y ago
Yeah, PHP sometimes pretends it's a C derivative. I think it's a stupid idea most of the time, especially with regard to strings. C string handling isn't anything scripting languages should copy. Besides, PHP now has its own
465.
▲
by
dvdkon
4y ago
There's no error handling, (int)"x" === 0 .
466.
▲
by
dvdkon
4y ago
PHP has a strange identity problem. For a language that most would agree is used due to past popularity, it has a lot of breaking changes. But while syntax gets deprecated and function signatures changed, the stdlib is still a mess. The o
467.
▲
by
dvdkon
4y ago
A foot (~30cm) isn't too much for exterior walls, right? A brick wall with more traditional insulation would be about that thick, maybe more with concrete. Running cables is also a challenge with bricks or concrete, hopefully people bu
468.
▲
by
dvdkon
5y ago
What if those citizens move to a different state or country? I think we can agree the new state's laws shoud apply exclusively. Why or how is that different from commuting into work across borders? And why is that different from workin
469.
▲
by
dvdkon
5y ago
I have to say KiCad 6 is much nicer, since Pcbnew and Eeschema finally have the same UI. Having made a lot of mistakes on my first "big" design, resulting in multiple redraws, I actually find KiCad quite usable. LibrePCB sadly d
470.
▲
by
dvdkon
5y ago
I get mere units of spam yearly both on my email and phone, and I don't really keep either secret. The weird thing is that I know someone whose work address gets lots of spam. Both our addresses are publicly available on the Web.
471.
▲
by
dvdkon
5y ago
Well, some people claim that non-Server Windows can't ever be used in a server role, even with third-party software, and that you need a CAL for every person connecting to third-party software on Windows Server, so it's at least p
472.
▲
by
dvdkon
5y ago
Here in the Czech Republic, the national postal service does offer a "digital snail-mail" or "bureaucratic email" and it's used for official communication by government branches, insurance companies and some big com
473.
▲
by
dvdkon
5y ago
This looks really neat and powerful. I think spreadsheets have a lot of deficiencies and that many users abuse them, but that's because there is no widely known alternative/extension. For example, I wanted to create a list of data
474.
▲
by
dvdkon
5y ago
Leaking data isn't petty crime. I can believe a student with anti-corporate views could see what LAPSUS$ are doing as a good thing. Or just a student who is good at cracking and wants to show off, criminality be damned.
475.
▲
by
dvdkon
5y ago
There are just so many patents on things both specific and vague, that you can't ever be sure you're not infringing on some. As far as I know, all serious companies using HEVC pay to licence relevant patents, while the big players
476.
▲
by
dvdkon
5y ago
Wikipedia says there was an official Borland public domain release of the source code, which this is probably based on: https://en.wikipedia.org/wiki/Turbo_Vision
477.
▲
by
dvdkon
5y ago
Most static site generators are much easier to customise than common GUI CMSs. I use nanoc, which is basically a build system with some website-oriented builtins. I wrote a snippet that replaces images with responsive ones with srcset. Sure
478.
▲
by
dvdkon
5y ago
When using a mouse to the right of the keyboard, a narrower keyboard results in a more natural hand position. It also helps when you need desk space for things other than computer use, but I admit that benefit is marginal.
479.
▲
by
dvdkon
5y ago
Waterproof mechanical watches have been a thing for over a century now. They are small, serviceable and have no glued parts. It unfortunately seems the knowledge of watchmakers past hasn't made it into the phone industry yet (same for
480.
▲
by
dvdkon
5y ago
The Expanse isn't a "remake" of a decades old comic book storyline, quite a few movies aren't. I like movies that try to fit into an overarching "mythos", but that's just one particular approach to storyte
More ›