• 1 Post
  • 51 Comments
Joined 1 year ago
cake
Cake day: October 4th, 2023

help-circle


  • Lately he cought me in the office eating sweets and started to educate me how bad sugar is.

    I mean, people do tend to eat more sugar than they probably should, but the main artificial sweetener that I see used in candies is xylitol, which is, unfortunately, also a laxative. Eat more than a few xylitol-sweetened candies at one sitting, and one’s in for diarrhea.

    I assume that we don’t have an artificial sweetener in 2024 that both avoids having a laxative effect and has the appropriate properties to subsititute for sugar in candies. I’d be delighted if someone would manage to develop one, though.





  • tal@lemmy.todaytoMildly Infuriating@lemmy.worldWe need a new Amazon
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    6
    ·
    edit-2
    9 days ago

    I’m generally fine with Amazon. The main things I’d like to see changed:

    • Their determined nagging to subscribe to Amazon Prime. I don’t have a good fix there.

    • Perishable food. Walmart.com does a better job here IME, uses their existing infrastructure and delivery network to provide perishables in a tight time window.

    • Limited product classification for searches. For electronics, Newegg does a better job of having a database with many aspects of products being searchable. In general, specialty rather than general-purpose stores seem to do a better job on this.

    • Limited selection. Amazon is pretty darn good on this, but for some really esoteric stuff, Google Shopping can win, since it’ll index the inventory of many retailers. If I can’t find something on Amazon, that’s my next stop. It can also search for numeric ranges (“3…25”) as I recall, which can be useful for some items.

    If you want an alternative for some reason, OP, you probably want to list what it is that you’d like done differently, as that kinda determines what alternatives make sense.



  • I agree that that’s likely something like the underlying factor – they have two services, they named them in such a way that lower cost normally maps to the slower service, and in this unusual case that relationship doesn’t hold.

    However, OP’s got a legit point that from a consumer standpoint, where someone only cares about time/money tradeoff, not internal FedEx operations, that doesn’t make a whole lot of sense. It’d probably make sense for the “low end” option to just automatically map to the faster service in this case.




  • venv nonsense

    I mean, the fact that it isn’t more end-user invisible to me is annoying, and I wish that it could also include a version of Python, but I think that venv is pretty reasonable. It handles non-systemwide library versioning in what I’d call a reasonably straightforward way. Once you know how to do it, works the same way for each Python program.

    Honestly, if there were just a frontend on venv that set up any missing environment and activated the venv, I’d be fine with it.

    And I don’t do much Python development, so this isn’t from a “Python awesome” standpoint.


  • The feature list of the language is so long at this point that it is pretty much impossible for anyone new to learn C++ and grok the design decisions anymore.

    Even if it is possible, it’s a high bar. The height of that bar matters in bringing new people in.

    I have seen decades of would-be “C++ killers” come and go. I think that in the end, it is C++ that kills C++. The language has just become unusably large. And that’s one thing that cannot be fixed by extending the language.




  • tal@lemmy.todaytoProgramming@programming.devThe IDEs we had 30 years ago... and we lost
    link
    fedilink
    English
    arrow-up
    12
    arrow-down
    1
    ·
    edit-2
    3 months ago

    Basically every screenshot of the “lost” TUIs look like a normal emacs/vim session for anyone who has learned about splits and :term (guess which god I believe in?). And people still use those near constantly. Hell, my workflow is generally a mix between vim and vscode depending upon what machine and operation I am working on. And that is a very normal workflow.

    I use emacs, and kind of had the same gut reaction, but they do address it and have a valid point in that the IDEs they’re talking about are “out of box” set up and require little learning to use in that mode.

    Like, you can use emacs and I’m sure vim as an IDE, but what you have is more a toolkit of parts for putting together your own IDE. That can be really nice, more flexible, but it’s also true that it isn’t an off-the-shelf, low-effort-to-pick-up solution.

    Emacs had some “premade IDE” project I recall that I tried and wasn’t that enthusiastic about.

    I don’t know vim enough to know what all the parts are. Nerdtree for file browsing? I dunno.

    With emacs, I use magit as a git frontend, a compilation buffer to jump to errors, projectile to know the project build command and auto-identify the build system used for a given project and search through project files, dired to browse the files, etags and some language server – think things have changed recently, but I haven’t been coding recently – to jump around the codebase. I have color syntax highlighting set up. I use .dir-locals.el to store per-project settings like that build command used by projectile. The gdb frontend to traverse code associated with lines in a stack trace on a running program. TRAMP to edit files on remote machines.

    But that stuff isn’t generally set up or obvious out of box. It takes time to learn.

    EDIT: The “premade IDE” I was thinking of for emacs is eide:

    https://software.hjuvi.fr.eu.org/eide/



  • To clarify: I meant how do I do it via API calls,

    If you mean at the X11 call level, I think that it’s a window hint, assuming that you’re talking about a borderless fullscreen window, and not true fullscreen (like, DGA or DGA2 or something, in which case you don’t have a fullscreen X11 window, but rather direct access to video memory).

    https://specifications.freedesktop.org/wm-spec/latest/ar01s05.html

    See _NET_WM_STATE_FULLSCREEN, ATOM

    If you’re using a widget toolkit like gtk or something and writing the program, it’ll probably have some higher-level fullscreen toggle function that’ll flip that on X11. Ditto for SDL.

    If you mean in a script or something, I’d maybe try looking at xprop(1) to set that hint.

    I’d also add, on the “user” front, that I don’t use F11 and I think that that every window manager or desktop environment that I’ve ever used provides some way to set a user-specified keystroke to toggle a window’s fullscreen state. I’ve set Windows-Enter to do that for decades, on every environment I’ve used.