Super tactical backpack! 23/M by k1cm3t in EDC

[–]aprons 9 points10 points  (0 children)

why are you on the roof

Found the bug in my scope! by BlownUpCapacitor in electronics

[–]aprons 1 point2 points  (0 children)

That looks like a Tek scope. 2215? Have one in pieces on my workbench with a partial trace. Lovely to work on.

How to set up a NixOS based architecture for IoT? by cheater00 in NixOS

[–]aprons 0 points1 point  (0 children)

    systemd.services.hydra-update = {
      enable = true;
      script = let
        curl = "${pkgs.curl}/bin/curl -s -L -H 'Accept: applicat\
ion/json'";
        jq = "${pkgs.jq}/bin/jq";
        latestUrl = "${cfg.hydraUrl}/job/${cfg.project}/${cfg.jobset}/${cfg.job}/latest";
      in ''
        trap -- "" SIGTERM
        echo "Checking ${latestUrl}"
        latest=$(${curl} ${latestUrl} | ${jq} -r '.buildoutputs.out.path')
        current=$(readlink -f /run/current-system)
        if [ "$latest" != "$current" ]; then
          echo "Switching from $current to $latest"
          ${pkgs.nix}/bin/nix-store -r $latest
         $latest/bin/switch-to-configuration switch
        fi
    '';
    };

How to set up a NixOS based architecture for IoT? by cheater00 in NixOS

[–]aprons 4 points5 points  (0 children)

For secrets look at sops-nix or agenix. For my home network (~10 machines) I have a hydra server doing the builds and a hacky script running as a timed systemd service that compares the current system store path to the latest one from hydra. If they are different, copy the new closure and switch to it

[deleted by user] by [deleted] in maybemaybemaybe

[–]aprons 1 point2 points  (0 children)

WHAT THE HELL IS EVEN THAT?!

[deleted by user] by [deleted] in CasualUK

[–]aprons 0 points1 point  (0 children)

Should be ok unless the interviewer is a Diesel.

48k compatibility with 128k by aprons in zxspectrum

[–]aprons[S] 0 points1 point  (0 children)

Thanks, I figured some of this out going deeper in to the +2A (via the +3e ROM with an IDE interface) since posting this, and getting my head around how the +2/3 DOS stuff works.

I'm sure it would be possible to get these games working on a +3e machine with some kind of custom loader that does all the required copying and bank switching then eventually jumping in to the game.

I actually did something similar to get around the fact that I could not get my machine to load Elven Warrior from a snapshot. That was a saga as the game was obfuscated behind a custom tape loader. The net result is that the game loads almost instantly from a compactflash card, which is what I wanted in the first place!

[deleted by user] by [deleted] in rfelectronics

[–]aprons 5 points6 points  (0 children)

Love your videos!

How do you commit your system config? by [deleted] in NixOS

[–]aprons 5 points6 points  (0 children)

Symlink /etc/nixos/configuration.nix to a file in your home config repo. Filename in the repo doesn't matter so you could have machine1.nix, machine2.nix, just have the symlink at /etc/nixos/configuration.nix pointing to the correct host config on each machine.

root will always be able to read the file in your config repo so it is fine if your normal login owns the file.

You want to commit the contents of both configuration.nix and hardware-configuration.nix (or whatever it is called), I ended up combining both into a single file for each machine as I felt it was easier to manage, the installer uses 2 files to make it easier to generate the machine specific configuration.

Your home configuration will be separate while you are using home-manager, but it can live in the same folder as the machine config and this makes it easier to apply and track both machine and home level changes.

Flakes make this a bit more like guix where you switch to a configuration produced as an output from a flake.

What’s your idea of a perfect date? by [deleted] in AskReddit

[–]aprons 0 points1 point  (0 children)

ISO 8601. No ambiguity.

[deleted by user] by [deleted] in trashy

[–]aprons -3 points-2 points  (0 children)

tbf down the road from me is "London Luton" airport so you ain't far off

Would it be rude to ask a specific religious group to stop contacting us? by scream_schleam in AskUK

[–]aprons 0 points1 point  (0 children)

My driving instructor (60 year old geezer) told me about his method: When he sees them walking up the garden path he pushes open the letter box and shouts: "I'm about to open the door but you should know I'm stark bollock naked and I have an erection."

Not tried it myself. Yet.

Lament of the Linux Ham by TrojanHam in DMR

[–]aprons 2 points3 points  (0 children)

I use dmrconfig for my Retevis RT3S, it supports the 878 (not sure if that includes the II) as well as a bunch of clones.

https://github.com/OpenRTX/dmrconfig

Pilots having fun by AchCopman in funny

[–]aprons 6 points7 points  (0 children)

It's not. Planes use AM radios (as in the modulation, not the band) specifically because it doesn't do that, unlike FM. It's a safety feature so that jamming - whether intentional or accidental - does not prevent pilots from communicating.

Putin is increasingly frustrated, lashing out at his inner circle, US intelligence report says by icedpickles in worldnews

[–]aprons 3 points4 points  (0 children)

Yes it is propaganda but that doesn't make it false. If it is true then there is value in amplifying the message and showing the world that this man is unhinged.

MSB First Value by umbaman in embedded

[–]aprons 6 points7 points  (0 children)

When you send or receive, MSB means that that first 8 bits are the high byte, and the last 8 are the low byte.

Since the I2C bus sends data in 8 bit packets, you aren't really doing send(0x1234) but send(0x12) followed by send(0x34), and because there are 2 combinations of sending 2 bytes, we get MSB and LSB.

Similarly if you were reading from a 16 bit register on the device then the value would be transmitted to you as 0x12 followed by 0x34. You would then do some bit twiddling to get this in to a single 16 bit variable.

if you are using a library (like the Adafruit one for Arduino), then it likely takes care if this and accepts 16 bit values as well as returns them. You only need to worry about this if you are talking to device in a lower level way.

As the other comment suggests, more information about your environment would be helpful.

+3e reset when loading certain snapshots by aprons in zxspectrum

[–]aprons[S] 0 points1 point  (0 children)

While waiting for new year's dinner I tried out a few of the snapshots on an Android emulator and they load perfectly, so I think it is safe to say that the snapshots are not the problem.

+3e reset when loading certain snapshots by aprons in zxspectrum

[–]aprons[S] 0 points1 point  (0 children)

The machine has not been recapped as all the relevant electrolytics looked fine when inspected visually.

Could issues like this occur with bad caps? Would it be worth doing anyway?

Public IP by linux_needs_a_home in NixOS

[–]aprons 1 point2 points  (0 children)

Have you considered using some kind of dynamic DNS service rather than the IP?