Threads for aru

  1. 4

    This makes me happy, thank you. Not that there’s anything wrong with ffs, but still

    1. 1

      Uhmm, alpine does not use apt for package management, it uses apk. Is it just a typo?

      1. 2

        Interesting.

        Some time ago I put NetBSD on x220 i had laying around and tried to play with nvmm. At the time it felt slow, but maybe it was cause by the x220 being a bit dated. Or maybe I missed something and it wasn’t actually using nvmm without me noticing.

        Anyway good read, makes me want to try it again.

        1. 4
          1. 24

            This is a weird comment. I checked the link, and my understanding is that due to the way SQLite parses the types, FLOATING POINT would be treated as INT as it ends with INT. Who writes “floating point” as a type? That’s not even in the standard.

            I read that tweet as classical “let’s shit about stuff others wrote so I look smart”. SQLite has its flaws, just like every software written, but it is a really good piece of software.

            1. 6

              I mean, I’m not sure what the tweet is saying, but you can insert a string “foo” into a column declared “int” no problem in SQLite.

              1. 3

                I read that tweet as classical “let’s shit about stuff others wrote so I look smart”. SQLite has its flaws, just like every software written, but it is a really good piece of software.

                I wrote this tweet, it’s just a joke, riffing on the popular How SQLite is Tested article which gets shared often. SQLite does have an absurd implementation of a “type affinity” system which takes the spelling of a type into consideration. I think we can all have a good laugh about that and also appreciate how unbelievably high-quality the software itself is.

                I think your comment was the classic “this other guy is doing the classic asshole thing” asshole thing ;)

                1. 2

                  Well, sure, but people tend to take certain jokes seriously if it lines up with their confirmation biases, inadvertently turning the jokes into actual criticism.

                2. 1

                  Wouldn’t it be more reasonable to die than to try to guess what the programmer meant?

                3. 3

                  Ran into issues with this just this week. Never again

                  1. 1

                    Perhaps you have multiple apps using the same db?

                  2. 2

                    Usually I’m kinda thankful if databases stay away from type systems, because I’d rather have a minimal one than a wrong one, but what really hurts is that even those types are gone as soon as you use a database function.

                  1. 2

                    I have to file my taxes. Since I started dabbling with crypto trading last year, I’ll have to figure out how to do everything around it. Things would be much easier if I didn’t do any crypto-crypto trades. Given the sheer amount of transactions I did, I’ll have to put together some kind of tool to process calculate gains/losses for me, otherwise I’d spend ages on it.

                    1. 2

                      Hire an accountant?

                      1. 1

                        May I suggest koinly.io ?

                        Koinly calculates your cryptocurrency taxes. Available in 20+ countries. Free report preview

                        I’m not in any way affiliated with the service. Maybe is not exactly what you need but it’s a start.

                      1. 4

                        The name lead me to believe this is something that builds on top of bup, but it looks like it is not the case. Is the name similarity just a coincidence?

                        Anyway I’ll definitely check it out and will see if it would serve me better than borg

                        1. 2

                          The name was just meant to be short for backup stash, so just a coincidence, I implemented everything from scratch.

                          If you give it a try, don’t hesitate to ask about any problems you face.

                          1. 1

                            The docs mention in several places that backups are compressed by default and that it can be turned off per-backup, I’m failing to find which compression algorithm is used

                            Does it back up extended attributes too?

                            One thing that I usually miss in backup solutions is the ability to copy a backup between repositories. For example I have a machine at home and I want a subset of its data backed up to a machine at work, however I don’t have direct connectivity between the two machines. What I’d like to do is perform a backup at home to an external drive, then carry the drive to work and “replay” the backup onto the target machine. Usually this is not supported directly and I have to work around it by doing a restore followed by immediate backup after I carry the drive to work. Would it be possible to do this more elegantly with bupstash?

                            1. 2

                              I’m failing to find which compression algorithm is used

                              The data chunks are compressed with zstd at the moment.

                              Does it back up extended attributes too?

                              There’s a ticket open for this, I didn’t get around to implementing them yet, but definitely will.

                              As a work around, If you just output tar directly into bupstash like this:

                              bupstash put --exec name=mydata.tar :: tar -C /dir -cvpf - .
                              

                              You lose some efficiency, deduplication will not be as good, and bupstash list-contents will not work. but this would support whatever your system tar supports and will respect error codes coming from the system tar.

                              Ability to copy a backup between repositories

                              Not yet, I have an open ticket for syncing items efficiently between repositories. My personal use is to have one backup on a local drive, and one on a remote server so I definitely want this feature too.

                              1. 2

                                Great, thank you. I’ll watch this project with great interest

                          2. 2

                            I misread it as “bupkis”.

                          1. 8

                            Thank you for opening this thread. I hope the comments will be wholesome.

                            For me those are motorcycle rides, but I don’t do them often enough because of weather and/or time constraints. Also not every ride is enjoyable and almost none is great the entire time, there are good parts and bad parts in any I guess. So in total it amounts to like half an hour of good parts per week, which isn’t much, but it is something.

                            1. 1

                              Void linux. I was on Fedora before, but the short lifecycle and offline upgrades were killing me so I switched to void to try something different. There are few things which bug me, but I just can’t get myself to nuke-and-pave again so I’m stuck with it for the time being.

                              1. 4

                                Came across SmartOS during the weekend and actually gave it a try. Now I’m super excited about it and got into the “I got a new hammer and everything now looks like nails” so I’m trying to stop myself from wiping all my headles machiness I have at home and setting it up on them.

                                Tech
                                • Moving from linux+windows multiboot to linux with windows as a VM
                                • Repartitioning all the drives, setting up bcache
                                • Setting up emacs running as a daemon to sync google calendar to org files
                                Personal
                                • Use the quarantine to rethink the things I do at home and come up with some kind of routine
                                  • Start meditating
                                  • Start journalling
                                1. 3

                                  I want to get nomad running VMs on OpenBSD machines. SmartOS seems cool, but I really want my foundations to be as hard on security practices as possible.

                                  1. 3

                                    Nomad looks cool too. Sadly using it to deploy stuff to three or so machines felt like a huge overhead.

                                    Do I get it right you want to make nomad deploy machines on those openbsd boxes using vmm?

                                    1. 2

                                      Exactly. I want to do that because the less time I ultimately spend in upkeep and scheduling my boxes, the happier I’ll be.

                                      1. 3

                                        That’s understandable. At what scale are you operating if you don’t mind me asking?

                                        1. 2

                                          Tiny, which is where tooling so I don’t do the same thing over and over and over again is even more important.

                                          If I were being paid to operate my three servers I might enjoy the job security (if I ever enjoyed such things, I prefer automation out of a job) but when the servers are incidental to my life, I really need to automate them away.

                                  2. 3

                                    How do you like bcache? I love ZFS but there’s so much extra legwork getting it set up with Linux, since everyone has to tiptoe around the licensing issue.

                                    1. 3

                                      To be honest I’m not sure yet. I use a 1tb spinning rust as the backend device with 30gb partition on an ssd as cache. I lumped these two together and put xfs on top. It seems to work just fine, but I haven’t checked if it actually helps with performance or not. From the day-to-day usage (without any measurements) I probably couldn’t tell the difference so I’m starting to wonder if it is worth it.

                                      What I surely don’t like is the tooling around it, or the lack of it. There’s a tool for formatting the backend and cache devices, then there’s a tool to dump the superblock and unless I’m missing something then that’s it. The rest is done by writing values into places in /sys, which doesn’t feel particularly user friendly and I find it rather error prone.

                                      ZFS sure is nice, but it is a bit of pita on linux unless you’re on a distribution which doesn’t really care, such as ubuntu or nixos.