HN user

whelming_wave

182 karma
Posts0
Comments59
View on HN
No posts found.

your phone already has some tens or hundreds of SQLite databases on it. it requires some care, but many already go through the effort in their apps, so i can imagine web developers going to the same effort if they need it.

though i can also imagine them going through that effort when they don’t, so…

What’s the probability that Martian-Terran humans will get frustrated by sending off Earth’s vast and plentiful resources in 100 - 200 years, and they wage open nuclear and biological war on Mars to wipe out all Martian humans?

I mean, on the other hand you could be dealing with an unreliable CGI-served page where errors are eaten and hidden in ajax calls, wishing they’d used a reliable javascript framework[1] instead.

[1]: an oxymoron, I know

Bash PS1 Generator 5 years ago

`tput sgr0` reads terminfo to find out how to issue a command which resets all currently set colors, text properties, and so on, then resets them. A lot of people will do something like `echo -e '\E[32;46m'`, but that's arguably more opaque and definitely not portable across terminals.

tput is a neat command that I wish got used more! I also use `tput cnorm` to ensure the cursor is visible.

How does this compare to Elder.js[1] which released a little while ago? You seem to have similar goals - mostly static site with small amounts of interactivity, minimum JS to achieve that - but Astro supports multiple frameworks, while Elder.js is restricted to Svelte. Are there any other big differences?

[1] https://elderguide.com/tech/elderjs/

Kind of an aside from your question, but binary patches not being much smaller than the full thing might happen more with modern games?

Heresay, but from what I've heard modern games may ship multiple copies of some assets with different levels or features so they can be loaded as a sequential read off the disk. While a block-oriented compression algorithm might sync up more reliably, if you're packing 200MB of assets for a level and they're all compressed to take advantage of the fact they'll be read sequentially could mean a change 25MB in would still ship ~175MB of changes.

MDN Plus 5 years ago

How can I sign up for a subscription, then? I seem to have missed it on the page.

The Switch cable situation is always going to be a bit finicky, because their port is on the extreme edge of the spec's tolerances - it gets shorted because it's actually possible to cross the power into the wrong terminal, IIRC, with some wiggling. Safest to go with the official stuff, which people haven't reported issues with.

I don't remember it on HN, but this is prodding my memory about an article where the specific executable that was corrupted was `bc' on Linux, if that helps any other readers track it down. I think it specifically broke subtraction or something?

My definitely-not-a-lawyer reading of this even seems like there’s a decent case to be made, by the definitely-not-legally-exhaustive “required elements” there. The goodwill is their reputation, misrepresentation is obvious, and damage to their brand would be negative reviews (“food was cold, would not buy again!”) on Google or similar sites.

The objectionable behavior is that they represent themselves as being restaurant X, or at least present themselves in such a way that finding out that they aren’t actually restaurant X but a reseller is difficult.

edit: This got way more discussion than I anticipated. I think that even if there was a massive banner on the top of the site that told you GenericDeliveryCo was operating this website as a front for the restaurant, we are not them, etc, this behavior by GenericDeliveryCo is still damaging to the businesses they are creating websites of because they tend to absolutely bury the real website via better SEO. There’s an argument to be made that some restaurants would enjoy having a website made for them - for business or whatever other reason - but there’s no reason GenericDeliveryCo couldn’t... ask first.

Issues with Linux graphical toolkits, perhaps? I hear they're reasonably consistent with all screens at the same integer scaling ratio but have issues with other setups. Admittedly, I haven't looked into this myself in years.

the m1 isn’t competing on many of the same axes as an intel or amd cpu, because it’s necessarily packaged inside of an entire computer built around it. that computer is a mac, which might be different from the purchaser’s current os so they decide not to switch, or they already bought software for windows and want to use it there, or they’re married to the microsoft ecosystem, etc.

I know you're talking about how it's repeated three times, but something else here really bothers me.

I understand if they're deprecating it because they plan to replace it with something else, but if they don't then I'll be pretty disappointed. From their docs, it looks like some of their other subcommands have shorthands which conflict with `-h'? Fine, I guess, but that just means when `-h' does work it'll shoot people in the foot with that other behavior.

Software that clearly knows what I want, but refuses to, annoys me so much. For example,

    $ python3
    Python 3.9.0 (default, Dec  2 2020, 10:34:08) 
    [Clang 12.0.0 (clang-1200.0.32.27)] on darwin
    Type "help", "copyright", "credits" or "license" for more information.
    >>> quit
    Use quit() or Ctrl-D (i.e. EOF) to exit
because they added `quit' as a top level variable with a `__str__' defined which returns that string. Do anything else! Make the `__str__' definition quit the program or something, test if it's being run at the top level in the CLI and quit, special case the CLI input so if only `quit' is entered, it quits. Heck, maybe just prefill the `quit()' on the next line so I just have to hit return. Do anything but instruct me to do what you should have done in the first place.

It seems like GP meant a static method specialized to whatever resource the program needs rather than a pluggable factory. All of the issues in that post appear to arise from the fact that they expect the locator to need configuration before it will work, while my reading of GP is that their configuration is which type the method returns, no registering a class or allocator necessary. Yes, this restricts you to a series of services known at build time, but... it seems to me that you knew what your services were anyway, whether it was directly in the locator, in an xml file, or in a registration call.