Navigation

    ML
    • Register
    • Login
    • Search
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. JaredBusch
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Jared Busch

    @JaredBusch

    Service Provider

    20341
    Reputation
    28301
    Posts
    15715
    Profile views
    41
    Followers
    0
    Following
    Joined Last Online
    Website www.bundystl.com Location Chicagoland Age 47

    JaredBusch Follow
    Service Provider

    Posts made by JaredBusch

    • RE: Need help with Autohotkey Windows

      @stacksofplates said in Need help with Autohotkey Windows:

      Ah I just got in the habit of win+ctrl and an arrow. Like ctrl+arrow on mac.

      ctrl+alt+left (or right) arrow for me on a cinnamon desktop.

      posted in IT Discussion
      JaredBusch
    • RE: Pi-hole dumps on Fedora

      @stacksofplates said in Pi-hole dumps on Fedora:

      @JaredBusch said in Pi-hole dumps on Fedora:

      @stacksofplates said in Pi-hole dumps on Fedora:

      Just run it in a container and none of this matters.

      Pi-Hole's docker version was not a well done container 3 years ago when I implemented this solution. It was by no means a good idea at the time.

      Well I just meant going forward.

      That gets into different issues since Fedora went with podman. I haven't done much tinkering with it yet to see how compatible things are.

      posted in IT Discussion
      JaredBusch
    • RE: Pi-hole dumps on Fedora

      @stacksofplates said in Pi-hole dumps on Fedora:

      Just run it in a container and none of this matters.

      Pi-Hole's docker version was not a well done container 3 years ago when I implemented this solution. It was by no means a good idea at the time.

      posted in IT Discussion
      JaredBusch
    • RE: Pi-hole dumps on Fedora

      @VoIP_n00b said in Pi-hole dumps on Fedora:

      @stacksofplates just no. @JaredBusch prefers the hard way.

      Don't put words in my mouth.

      posted in IT Discussion
      JaredBusch
    • RE: Pi-hole dumps on Fedora

      @Pete-S said in Pi-hole dumps on Fedora:

      Normal Ubuntu yes, but that is why an LTS version exists.

      just no.

      posted in IT Discussion
      JaredBusch
    • RE: Pi-hole dumps on Fedora

      @Pete-S said in Pi-hole dumps on Fedora:

      new-release-every-6-month-and-hope-for-the-best Fedora

      Ubuntu is no different. Just even crappier.

      posted in IT Discussion
      JaredBusch
    • RE: Pi-hole dumps on Fedora

      @Pete-S said in Pi-hole dumps on Fedora:

      If they are committed to support Fedora, and that is the way it looks, they're probably working on supporting F33.

      Fedora has been a supported OS for years.
      https://docs.pi-hole.net/main/prerequisites/#supported-operating-systems

      That there is some stupid slowness about getting on to 33 from that team is a different issue.

      posted in IT Discussion
      JaredBusch
    • RE: What Are You Doing Right Now

      @scottalanmiller said in What Are You Doing Right Now:

      Quiet morning around ML! Wow, where is everyone?

      Just sat down at my desk 30 minutes ago.

      Second tumbler of coffee in hand.

      posted in Water Closet
      JaredBusch
    • RE: Need to handle parsing these strings in PHP

      Current version looks like this. Much improved.
      cd939221-ea8d-4030-9538-39b3b895aa86-image.png
      62669dd7-d471-4fef-8a07-794d1bda89f6-image.png

      posted in IT Discussion
      JaredBusch
    • RE: Need to handle parsing these strings in PHP

      And here is what it outputs now.
      cdbc60dd-5f92-442e-9056-01a4197b763b-image.png

      I think this is pretty solid. so if anyone has a better idea for how I could handle it better, I am wide open to suggestion.

      <?php
      $ret_info = get_device_info("Yealink W52P 25.81.0.10");
      print "Brand: {$ret_info['brand']} | Model: {$ret_info['model']} | Firmware: {$ret_info['firmware']}\n";
      
      
      function get_device_info($ua) {
        $ua_arr = preg_split("/[\s\/]/", $ua, 2);
        switch ($ua_arr[0]) {
          case "Yealink":
            $mod_firm_arr = preg_split("/[\s]/", preg_replace("/^SIP[\s-]/","",$ua_arr[1]));
            $device_info = ["brand" => $ua_arr[0], "model" => $mod_firm_arr[0], "firmware" => $mod_firm_arr[1]];
            break;
          case "Grandstream":
          case "OBIHAI":
          case "Fanvil":
            $mod_firm_arr = preg_split("/[\s-]/", $ua_arr[1]);
            $device_info = ["brand" => $ua_arr[0], "model" => $mod_firm_arr[0], "firmware" => $mod_firm_arr[1]];
            break;
          case "Zoiper":
          case "MicroSIP":
            $device_info = ["brand" => $ua_arr[0], "model" => "", "firmware" => $ua_arr[1]];
            break;
          case "snomPA1":
            $device_info = ["brand" => "Snom", "model" => "PA1", "firmware" => $ua_arr[1]];
            break;
          case "LinphoneiOS":
            $mod_firm_arr = preg_split("/[\s]/", $ua_arr[1]);
            $device_info = ["brand" => $ua_arr[0], "model" => "", "firmware" => $mod_firm_arr[0]];
            break;
          default:
            $device_info = ["brand" => "Unknown", "model" => "", "firmware" => ""];
        }
        return $device_info;
      }
      ?>
      
      posted in IT Discussion
      JaredBusch