Search results

  1. Jose

    C++ FLTK displaying a sysctl value

    Here's a 4-gauge version. It didn't turn out as nicely as I had hoped. Again unzip the sources somewhere and compile them like this: c++ -o fltk_temp $(fltk-config --cxxflags) Fl_Gauge.cxx fltk_temp.cpp $(fltk-config --ldflags) And run it like this: ./fltk_temp
  2. Jose

    C++ FLTK displaying a sysctl value

    Figured out a screenshot solution that doesn't drag in too many dependencies. Here's the CPU gauge from this post, and the demo from the ancient sources. I'm having fun so I'll probably try a 4-CPU version sometime today.
  3. Jose

    C++ FLTK displaying a sysctl value

    It looks like you use just a naked Fl_Box when you want to display a text value. I found this code in the ancient trove: Fl_Box *yzone=new Fl_Box(20,370,200,20,"Yellow Zone Info"); yzone->label("Inside the Red Line Area"); yzone->label("Outside of the Red Line Area"); Didn't try it, 'cause I...
  4. Jose

    C++ FLTK displaying a sysctl value

    Fl_Output is a weird read-only version of Fl_Input that looks like it'll accept user input, but does not. I really prefer the Fl_Gauge thing I found even though the code is ancient and grungy. I think it looks sweet.
  5. Jose

    C++ FLTK displaying a sysctl value

    I love the book for that course https://beej.us/guide/bgc/html/split/pointers.html#pointers
  6. Jose

    What hobby do you spend money on ?

    That still happens! View: https://www.youtube.com/watch?v=yA1u8MV_IYg&t=1849s
  7. Jose

    C++ FLTK displaying a sysctl value

    I think in this case it means "file pointer". Remember that in Unix, everything is a file. So the sub-process you just launched is a file. If you read from it, you get its output to stdout. If you write to it, it gets what you wrote in stdin...
  8. Jose

    C++ FLTK displaying a sysctl value

    Looks like Wayland support, mainly.
  9. Jose

    C++ FLTK displaying a sysctl value

    GTK is a hard pass for me. It seems they go scorched earth on previous releases with every new release. No way some 20-year-old source would still work. Also, I think it's Wayland-only as of version 4. I looked at some GTK source once, and the maze of preprocessor macros caused me to glaze over...
  10. Jose

    C++ FLTK displaying a sysctl value

    I found some ancient source for an Fl_Gauge widget. It still compiles and works with FLTK 1.3! Gotta love the FLTK guys. You'll need to drop the three files attached to this post in a directory somewhere. Compile them like this c++ -o fltk_temp $(fltk-config --cxxflags) Fl_Gauge.cxx...
  11. Jose

    What hobby do you spend money on ?

    Ah, the naked corpse run. I have chills. There are three traders? I've only ever found one!
  12. Jose

    What hobby do you spend money on ?

    Oh yeah! I love the way that game does boats. Closest to real boats I've ever experienced. I've spent hours sailing around looking for the perfect natural harbor in which to build my complex stone docks. Have you tried fishing yet? Another mini-game they nailed, IMHO. OK, I guess I should get...
  13. Jose

    What hobby do you spend money on ?

    How's Valheim treating you? Haven't played in a while. One of the best games ever. Certainly one of the best $20 I ever spent.
  14. Jose

    C++ FLTK displaying a sysctl value

    Here's a version that uses sysctlbyname: #include <stdlib.h> #include <stdio.h> #include <sys/types.h> #include <sys/sysctl.h> #include <sys/errno.h> #include <FL/Fl.H> #include <FL/Fl_Window.H> #include <FL/Fl_Output.H> void box1cb(void* output) { size_t size; int t_dK, t_C, t_F...
  15. Jose

    The Case for Rust (in the base system)

    Yes! Add flaky "mocked" unit tests, and you're talking about the code base I work in. Half the time the build fails because these freaking "unit" tests fail for no discernible reason. And passing the build gives you no guarantees that the integration tests will go well because the vast majority...
  16. Jose

    Solved Reverse proxy ignored by FreeBSD box

    It's just a name I know for the average low-cost integrated router / access point you get from manufacturers like Asus. As opposed to a Unifi / Eero setup, or a custom router built from PC parts. Anything in the Nginx logs? Compare what gets logged for Linux browsing with Freebsd browsing
  17. Jose

    Thanksgiving - no donation this year

    Wrigley Park is a good one. I tend to use 1600 Pennsylvania Avenue, NW, Washington DC, 20015, cause it's easier for me to remember. Close to my home address when I was in high school.
  18. Jose

    Solved Reverse proxy ignored by FreeBSD box

    Do you mean the public IP your ISP gave you? Same browser used for both Linux and Freebsd? Plastic router running some firmware provided by its manufacturer?
  19. Jose

    Thanksgiving - no donation this year

    Sadly setting up such would likely take a considerable amount of money, and is therefore not cost-effective. But I agree with you. Looks like PMc actually did his due diligence, and followed the breadcrumbs back to Donorbox. They are the ones responsible for the obnoxious form, and likely are...
  20. Jose

    Computer systems become paranoia

    It's been a few decades, but do Fibre tape drives still rewind when someone resets the SAN? Like when, say a Windows machine needs to be rebooted? Fortunately Windows is renowned for its uptime. It's a feature, you see. It creates magic endless tapes that store terabytes of data! Just hope you...
Back
Top