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/)I
Posts
1
Comments
129
Joined
3 yr. ago

  • These are terrible advices.

    All smart lightbulbs have a small router in them, so they all use some electricity while switched off. You can gain some net plus only if you live with people who constantly forget to switch off lights. But you need some presence detector as well. Smart lighting is about convenience not energy usage.

    Wifi is the worst wireless standard from energy usage standpoint. Zigbee's power usage is much less and devices are cheap. Thread and Z-wave power usage also lower than wifi, but devices are a bit more expensive.

    Amazon and Google are a privacy nightmare. Home Assistant and Domoticz are two wellknown local first smart home systems.

  • Scheme is just lisp with blackjack and hookers. It has some huge advantages, that's why it's called God's own programming language

    It's older than C, that's why it doesn't have C-like syntax like otger common languages

  • Systemd invents its own configuration language (it looks like ini but there no standard for that and systemd’s flavor is its own) so you still need to learn it.

    Yeah, but it's much more straightforward and less exotic than scheme. But I guess this type of configuration fits perfectly in Guix, where everything is already configured similarly.

  • They have an example service on the website:

     scheme
        
    (define sshd
      (service
        '(sshd ssh-daemon)                ;the secure shell daemon
        #:start (make-inetd-constructor   ;start on demand
                 '("/usr/sbin/sshd" "-D" "-i")
                 (list (endpoint
                        (make-socket-address AF_INET INADDR_ANY 22))
                       (endpoint
                        (make-socket-address AF_INET6 IN6ADDR_ANY 22)))
                 #:max-connections 10)
        #:stop (make-inetd-destructor)
        #:respawn? #t))
    
    (register-services (list sshd))
    (start-in-the-background '(sshd))
    
      

    Let's see how the same service looks like with systemd:

     ini
        
    [Unit]
    Description=OpenSSH Daemon
    Wants=sshdgenkeys.service
    After=sshdgenkeys.service
    After=network.target
    
    [Service]
    Type=notify-reload
    ExecStart=/usr/bin/sshd -D
    KillMode=process
    Restart=always
    
    [Install]
    WantedBy=multi-user.target
    
      

    I have some lisp knowledge, so the scheme version doesn't look frightening to me, but I guess for sysadmins, who should write these kind of files frequently systemd's TOML like language is much more easier to understand.

    Some differences I see: Shepherd does some firewall management with ports, and I don't see the services it depends on.

    Why this kind of files should be written in a programming language at all? I guess it's a remnant from the old times, but I like when tools abstract away the programming parts, and users shouldn't have to deal with that. I like the same thing in docker-compose: I can configure a program whatever language it's written, I don't have to deal with what's happening under the hood.

    I guess there is some usefulness with defining services as code, if you need more complex situations, but it should the more rare case nowadays.

  • Removed Deleted

    Did you know this?

    Jump
  • It's in a lot of program, not just ff. You can also see some letters are underlined in that menu, if you press that letter after alt, it would invoke that command or open that drop down without using the mouse. This is a convention at least from DOS, but I suspect it may be even older.

    So actually alt doesn't unhide the menu, it waits for a letter input to what command you want to start. It just happened that this old type of menu is hidden by default in a lot of programs and alt could be reused for this as well.

  • You can't do it on clearnet without some reputation either. I meant that you can register anonymously, than work yourself up to get some reputation and rights, than you can edit your favorite political post. I think the 2 things are orthogonal.

  • If they won't pay with it, isn't it just an email address with a password? If the laptop is company issued OP can just use their new compwny email address, than don't use that address for anything outside work related stuff.

  • Python is installed by default on all linux and mac systems, so it's just one more command to install pipx. From there just pipx install tagify. You don't need an installer, just specify the build tools in pyproject.toml: https://packaging.python.org/en/latest/specifications/pyproject-toml/#declaring-build-system-dependencies-the-build-system-table e.g. with setuptools: https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html

    If you publish to pypi it will build the wheel files when you publish a version. That's the easiest way I know.

    Innosetup is windows only. On linux you don't need such a thing.

  • Some feedback:

    • On white background the text next to the logo is not visible
    • Add screenshots in the README, it's a GUI app
    • Requirements.txts for dependency management is the old way, read about pyproject.toml you can merge them a single easy to read and edit file
    • "Install the dependencies" means nothing to a non-python developer. Direct users to install your project via pipx, that's modern and secure way of installing a python application with dependencies for non developers. Publish it to pypi for even easier installation.
    • Add a notice that currently it's windows only os.path.join(os.environ["APPDATA"], "Tagify", "config.yaml") will fail on *nix systems. Use pathlib.Path instead of os.path. Use pathlib, I see on a lot more places it would make your life much easier.
    • I have a feeling that the file icons are not your work. If you copied them from somewhere make sure their license is compatible, and add an acknowledgement.

    Keep up the work, it seems like a nice project!

  • It's a marketing article with nearly zero actual facts. One screenshot about the actual product.

    MS and others already use AI for drawing building countours for OpenStreetMap and OvertureMaps from aerial imagery. In osm these AI generated lines are only allowed to be imported after a human supervision and currently it's very hit or miss. On low density areas it's mostly good, but in dense city centers it's unusable.

    In overture maps these lines are imported automatically, that's why you can see buildings on rivers.

    They don't write about these shortcomings in the article, and how they solved AI hallucinations

  • It's documented in the wiki, they are called VCS packages, and it's not the usual, they work a bit differently: https://wiki.archlinux.org/title/VCS_package_guidelines

    You can see in this instance, that it skips the sha checking for upstream source, in line 15 of the PKGBUILD it says 'SKIP': https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=hyprspace-git#n15

    sha1sums parameter is documented in the wiki: https://wiki.archlinux.org/title/PKGBUILD#sha1sums

    In the PKGBUILD file you can list sources (line 12,13) and their respective checksums (line 14,15). In this PKGBUILD there are 2 sources: the first is the systemd unit file, it's coming from the package's AUR repo, not from upstream, you can see its checksum. The second source is the actual source, and you can see, it's checksum is 'SKIP' so it shouldn't be checked.

    With these kind of packages you can't get notified if there is an update available, but if you install it again with your favorite AUR helper it would update itself for the latest version. It calculates version number from the latest commit hash, before building and installing, so if that is the same it won't update again.

  • Nix just calls the *.nix files, it's still go under the hood. PKGBUILD is similar to the flake.nix and package.nix files to me, but I have no experience with nix.

  • My general view is similar, yaml is better if it should be written by humans, json is better if it should be written and read only by a machine. but hyprspace uses json for configuration, so I don't really understand cellardoor's comment

  • They are users not developers. An academic or civil engineer who uses a CFD simulator usually has not enough programming knowledge develop such a complex application. The employer has not enough funds to pay for developers (see, they use a pirated software). Paying for developers is still more expensive than buying an already developed product.

    Just look at the state of FOSS CAD software. There are some, but they are very-very limited compared to proprietary alternatives. Most people don't care, they just want to get the work done. Not everyone is a programmer, even if it looks like that from our lemmy bubble.

  • In the Register article they didn't copied from the source that the scientists were from Egypt.

    Flow3D has different academic and research licenses: https://www.flow3d.com/academic-program/

    • There is a free research license available, but it's only for 4 months. It's short, researches can take much longer than that.
    • There is a free teaching license, but it can have limitations for using the software outside education. It may be forbidden to use outside classes, so it's possible that they had a teaching license, but they couldn't use that for research?
    • There are licenses for full departments, but it's available for selected countries only.

    It's strange that they went after these scientists. In 2nd and 3rd word countries software privacy for work is still common. Everything is cheaper, but software prices are the same as in the US, so they pay relatively more for the same tool. I found that a normal license for Flow 3D can cost USD 100k. According to a quick search civil engineers get USD 2000 yearly in Egypt.

    Usually American software companies don't really care about piracy by individuals in these countries. The rationale is that it's better for them if they use their software without payment instead of using a software from another vendor without payment. They go after bigger companies, at least that's my experience.

    That's why this story is strange to me, or at least something else should be behind it.

  •  yaml
        
    what:
      is:
      your:
        - problem
        - with:
          YAML
    # At least you can have comments unlike in json. Who need comments in a config file anyway.
    
      
  • Or port forwarding. You have to open a udp port for wireguard

  • AUR packages ending with"-git" or "-svn" always pull the latest commit from source. The version number means that was the last time the packager had to change something on the PKGBUILD script, not the actual version which would be installed.

    Where should I look? Where were these talks? I'm interested.

    Edit: I found the whitepaper about hole punching: https://research.protocol.ai/publications/decentralized-hole-punching/

    It says it connects to a "Hole Punch Coordination (DCUtR - Direct Connection Upgrade through Relay)". So for NAT traversal to work, you need a third party, this relay. As I expected. I guess you can self host this, but than you could just host a wireguard server. I guess if you are on a locked down network where you cannot connect to any relay (e.g. how the Chinese Great Firewall works technically they could block it) you can't initiate a connection behind a NAT.

    Nonetheless it seems interesting, but no magic here. Maybe the big difference that the relay servers are distributed, so no central authority to block easily.