Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)F
Posts
0
Comments
193
Joined
3 yr. ago

  • As a developer who has mostly worked with web, but also dabbled in some native app work: It's not that the web UI frameworks are so much nicer. The native libraries I've used, at least, are actually much nicer to work with. I've worked with Delphi, Java Swing, various Windows frameworks, etc. React and friends are a chaotic mess in comparison and HTML was not designed for app development. You want a button? Here's a div, go ahead and style it. Thanks, let me add 500 npm packages to my project.

    No, the main reason I prefer to develop web apps is because they're effortlessly cross-platform and automatically updated and distributed. No maintaining multiple versions. Updates are basically instant and happen across your user base. No code signing or paying to compile code on a Mac. No asking for install permissions on stupidly locked down enterprise workstations. Just deploy and go.

    I can count on one hand the number of times I've needed to create a native app due to some restriction like local file access or device access. Most of the time you're just entering values into a database, so that can just be a website. PWAs are a pain to develop but they are much easier to deal with once they're in the wild.

    YMMV of course.

  • Earplugs. If those fail, gently poke or push until she turns over, hopefully without waking up.

  • Deleted

    Permanently Deleted

    Jump
  • Yes, you can get around it that way. You can also just disable it in VSCode settings. I could also just not use VSCode or CoPilot at all. It's not that can't be worked around; it's that we shouldn't have to. It's the violation of trust we're having issues with.

  • If I copy a solution from SO I usually put in a comment with a link to the answer to cite my source. I don't mind crediting where credit is due, but claiming co-author for a spelling correction is a bit much.

  • The bug was fixed, but it still adds itself as co-author by default if you as much as use code completion powered by Copilot.

    Combined with the fact that this doesn't show up in your commit message dialog, and that is nothing but blatant advertising, this is just unacceptable.

    I don't necessarily mind crediting Copilot if it did substantial amount of the work, but it also seems redundant nowadays when AI has become as ubiquitous as using an IDE. Having used it for code completion just doesn't seem to warrant co-author credit in that context. In other words if I had been able to edit that part of the commit message I'd probably be a lot less annoyed by this.

    As it is, it's just blatant overreach by Microsoft. Microsoft doing Microsoft things. Nothing has changed since the 90s.

  • Location really matters in Norway, too. On the coast, the climate is pretty temperate with lows just below freezing, whereas up North (with the reindeer), the temperature can drop below -40 in the winter.

  • I do this if I get sleepy but it's too early to go to bed. Put my noice cancelling headphones on, close my eyes, and usually nod off.

    I wish I could just meditate like you, but my mind is always racing if I'm not sleeping or focused on something.

    I just think you're lucky to be able to tune everything out, not weird.

  • Thanks for confirming they exist. I have never seen one that precise.

  • I don't see anyone addressing the question from the post: whether it is a problem that Docker Desktop on Linux runs in a separate VM.

    The page says:

    Docker Desktop on Linux runs a Virtual Machine (VM) which creates and uses a custom docker context, desktop-linux, on startup. This means images and containers deployed on the Linux Docker Engine (before installation) are not available in Docker Desktop for Linux.

    To expand on what that means: If you install Docker as usual (the CLI) on Linux, it runs as a process (running as root). The process will isolate the container processes from the rest of the system using Linux kernel features, but you're really just running processes on your host kernel that have limited access to the file system, network, etc.

    When you run in it a separate VM, which is how Docker Desktop is also run on Windows and MacOS, you are running it in a separate Linux instance (VM) that cannot communicate with the outside by default. So, if you're running Docker on the host computer and inside a VM, those are separate Docker installs and can't talk to each other. That is what the warning is about.

    You can absolutely expose the VM to the outside, the same as if you ran it on Windows. Docker will let you expose those ports and it handles the messy bits of the networking for you. You just have to tell Docker when you run the container (on the command line or in a docker compose file) which ports to expose. By default, nothing is exposed. To do that you can use the -p option. For example:

    docker run --rm -it -p 8080:80 httpd

    Will run an instance of Apache HTTPd and expose it on port 8080. The container itself listens to port 80, but on the outside it's 8080. If you then hit http://localhost:8080/ you should see "It works!".

    A note on Docker networking: from within the container, localhost is referring to the container itself, not the host. So if you try to do e.g. curl http://localhost:8080/ inside the container, your connection would be refused.

    Docker Desktop is often frowned upon because you have to pay to use it in a commercial setting (there was some backlash because it used to be free), it's quite expensive, and they require a minimum license count for enterprise licenses (I know because we bought one at work). So, I suggest exploring free alternatives like Podman Desktop. However, note that they do not always have feature parity with Docker Desktop.

    I like Docker Desktop because it gives me a nice dashboard to see all my containers, resource usage, etc. I would not have requested it for work, though, if it weren't for my IDE (Visual Studio) requiring it at the time (they have added Podman support since).

    Final note: I recommend just diving into using Docker from the command line and learn that. Docker complicates networking a little bit because it adds more layers, but understanding Docker is very useful if you're into self hosting or software development.

  • Yeah that makes sense. And in a pinch (no pun intended), measuring your solids by volume or even just eyeballing it is good enough for a lot of cooking (baking is a different matter).

    But let's not forget that Europe was not always metric, either. They went through the same process. They had the same units (or similar units) as US has now, with a lot of the same quirks. That was the entire point of the metric system: have one consistent set of units. United States was onboard early for metrication, but backed out before it completed it, so here we are.

  • Sure, I get that, and we already have dual labeling on a lot of stuff, maybe even most of the stuff. The problem there is that nobody actually reads the other labeling, so they are also not learning.

    They need to go back to what they were doing before: First decide that we're moving over so that mandates can be enforced.

    Second, do what you were saying, and do dual labeling during the transition--but make metric most the prominent.

    Third, educate kids in schools to use it (this already happens to a degree).

    Fourth, launch massive informational campaigns to teach people how and why to use metric.

    Fifth, step down the dual labeling gradually as more people are comfortable with the new units.

    I expect there to be a long tail of non-metric units in use (see UK), but if we can switch more things over that is still an improvement. Heck, I'll even take them just decimalizing and removing some smaller units (like lbs/oz).

    The history of metrication in the US is as frustrating as it is an interesting read. It can certainly be done and many countries have shown it can be done, but it takes commitment and support from the highest levels.

  • If accuracy is not critical you can use some simple tricks to convert between them.

    30C is roughly...2 x 30 + 32 = 92F which is only 6 degrees off the actual value which is 86F.

  • I accidentally a word. Converting recipes from Norwegian and metric to American and US customary units.

    I'm aware. I have a scale, too. But most people didn't weigh dry ingredients. So when I translate for someone else I have to use the "normal" measures they're used to. For myself, I speak the language and just use metric, my scale, and a measuring cup with both markings.

  • I've had to translate recipes from Norwegian to American and this struggle is real. Never thought I'd need to look up material density tables for cooking.

  • Yeah I think at that point it would be easier to just go metric.

    Most Americans actually seem to be five with metric and probably would not mind it too much if we just switched. The objections are basically: 1) it's too expensive to switch now (okay), or 2) it's part of our identity (doubt). I swear to God everything is a culture war with some people.

    More rational people, especially in STEM where it's already the standard, prefer it.

    In general though, I would argue that Americans know metric better then Europeans know US customary, for what that's worth

    It's mostly about what you're used to. Americans buy soda in liters, run 5km and do drugs by the gram. But we buy gasoline and milk in gallons and our recipes call for flour by volume. It's mostly inertia. At the end of the day you have to communicate with people around you so you use units they understand.

  • It's just not that fine tuned of an instrument. The furnace also runs on intervals so it's just going to naturally fluctuate a bit. Like with anything "it depends", but I doubt it's possible to keep the room within a tenth of a centigrade just with a consumer level thermostat. Maybe in a small room with resistive heating? I'd love to see actual measurements of this.

  • I have not seen any thermostats in Europe with decimal degrees. But I also don't think a thermostat is necessarily accurate to that level anyway.

  • Your assumption is correct. I meant using cups, ounces, etc separately or in combination. Especially annoying when trying to figure out portions. Serving size: 8oz, package size: 1lb 4 oz. You have to do math every time.