Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

isurg

  1. Home
  2. linuxmemes
  3. Command line tip of the day

Command line tip of the day

Scheduled Pinned Locked Moved linuxmemes
linuxmemes
7 Posts 5 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y This user is from outside of this forum
    Y This user is from outside of this forum
    yesman@lemmy.world
    wrote last edited by
    #1
    This post did not contain any content.
    Link Preview Image
    T 1 Reply Last reply
    0
    • Y yesman@lemmy.world
      This post did not contain any content.
      Link Preview Image
      T This user is from outside of this forum
      T This user is from outside of this forum
      tootsweet@lemmy.world
      wrote last edited by
      #2

      Huh. Only 11 days on the Raspberry Pi I'm using as a "desktop system" right now. (Arch Linux Arm, btw... though Arch Linux Arm sucks now-a-days.)

      Let's check my RPi-based NAS:

      [tootsweet@mynasserver ~]$ uptime
       19:56:07 up 212 days, 18:43,  4 users,  load average: 0.16, 0.04, 0.01
      

      Also not as long as I'd have guessed.

      P 1 Reply Last reply
      0
      • T tootsweet@lemmy.world

        Huh. Only 11 days on the Raspberry Pi I'm using as a "desktop system" right now. (Arch Linux Arm, btw... though Arch Linux Arm sucks now-a-days.)

        Let's check my RPi-based NAS:

        [tootsweet@mynasserver ~]$ uptime
         19:56:07 up 212 days, 18:43,  4 users,  load average: 0.16, 0.04, 0.01
        

        Also not as long as I'd have guessed.

        P This user is from outside of this forum
        P This user is from outside of this forum
        partial_accumen@lemmy.world
        wrote last edited by
        #3

        My RPi uptime on one project will never exceed 4 hours.

        I've got a cron job set to reboot my Raspberry Pi every 4 hours because I wrote a crappy Python app that continuously creates objects during operation that I would have to recreate, but I can't delete the originals, or rather, I can delete the original parent but the child survives and keeps its memory allocation. So a full reboot with autolaunch of the application on boot is my ugly janky workaround. Its a cosmetic application, nothing critical. Its just a colorful display of data metrics.

        I can hear the horror and gnashing of teeth of real developers as they read this.

        F S 2 Replies Last reply
        0
        • P partial_accumen@lemmy.world

          My RPi uptime on one project will never exceed 4 hours.

          I've got a cron job set to reboot my Raspberry Pi every 4 hours because I wrote a crappy Python app that continuously creates objects during operation that I would have to recreate, but I can't delete the originals, or rather, I can delete the original parent but the child survives and keeps its memory allocation. So a full reboot with autolaunch of the application on boot is my ugly janky workaround. Its a cosmetic application, nothing critical. Its just a colorful display of data metrics.

          I can hear the horror and gnashing of teeth of real developers as they read this.

          F This user is from outside of this forum
          F This user is from outside of this forum
          fayoh@sopuli.xyz
          wrote last edited by
          #4

          You just lack imagination. Some hikvision security cameras (the large, very expensive enterprisey ones) restart every couple of days due to "buildup of cosmic radiation".

          No matter how competent you are as a developer, there is no escaping cosmic radiation! ๐Ÿ˜‰

          P 1 Reply Last reply
          0
          • P partial_accumen@lemmy.world

            My RPi uptime on one project will never exceed 4 hours.

            I've got a cron job set to reboot my Raspberry Pi every 4 hours because I wrote a crappy Python app that continuously creates objects during operation that I would have to recreate, but I can't delete the originals, or rather, I can delete the original parent but the child survives and keeps its memory allocation. So a full reboot with autolaunch of the application on boot is my ugly janky workaround. Its a cosmetic application, nothing critical. Its just a colorful display of data metrics.

            I can hear the horror and gnashing of teeth of real developers as they read this.

            S This user is from outside of this forum
            S This user is from outside of this forum
            shalafi@lemmy.world
            wrote last edited by
            #5

            I'm a sysadmin and I'm weeping, gnashing my teeth and rending my garments. ๐Ÿ˜† And I've never done anything janky like that. Ever.

            P 1 Reply Last reply
            0
            • F fayoh@sopuli.xyz

              You just lack imagination. Some hikvision security cameras (the large, very expensive enterprisey ones) restart every couple of days due to "buildup of cosmic radiation".

              No matter how competent you are as a developer, there is no escaping cosmic radiation! ๐Ÿ˜‰

              P This user is from outside of this forum
              P This user is from outside of this forum
              partial_accumen@lemmy.world
              wrote last edited by
              #6

              Oh shit! Forget all that stuff I admitted to. My RPi reboots every 4 hours because ... uh ... cosmic radiation.

              1 Reply Last reply
              0
              • S shalafi@lemmy.world

                I'm a sysadmin and I'm weeping, gnashing my teeth and rending my garments. ๐Ÿ˜† And I've never done anything janky like that. Ever.

                P This user is from outside of this forum
                P This user is from outside of this forum
                partial_accumen@lemmy.world
                wrote last edited by
                #7

                Oh, there's even more jank in this thing than the reboot workaround described above!

                I have 3 windows displaying different metrics on this display powered by the RPi. Because of the animation of each metric rendered on the display, higher value metrics will consume more CPU. Since each is a separate process, the animation in the displays would be different for each window by without any modifications. So to make each of the 3 display's animations operate at the same relative speed, I do a calculation of how the number of objects being displayed for the metric, then add an amount of invisible (well, black on black) objects to each window so to equal a fixed amount of the animation speed I want resulting in each window having the exact same number of objects and the animations move at the same speed.

                This works surprisingly well. The only time I have to monkey with the fixed value is if I'm using it on faster or slower Raspberry Pis. For example, I'll have a lower number of final fixed objects for an RPi 3 rather than a higher number of fixed final objects for a faster RPi 4.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups