Categories
Linux Mastering Development

Difference between CPU usage in top and /proc/stat

I’m trying to write a little script that, among other things, calculates the cpu usage by reading /proc/stat, and I can’t seem to get consistent results. I’m basically doing a grep cpu /proc/stat and then processing the first line that is supposed to accumulate data from all the threads. In my case I’ve got 4 […]

Categories
Linux Mastering Development

Difference between CPU usage in top and /proc/stat

I’m trying to write a little script that, among other things, calculates the cpu usage by reading /proc/stat, and I can’t seem to get consistent results. I’m basically doing a grep cpu /proc/stat and then processing the first line that is supposed to accumulate data from all the threads. In my case I’ve got 4 […]

Categories
Linux Mastering Development

Difference between CPU usage in top and /proc/stat

I’m trying to write a little script that, among other things, calculates the cpu usage by reading /proc/stat, and I can’t seem to get consistent results. I’m basically doing a grep cpu /proc/stat and then processing the first line that is supposed to accumulate data from all the threads. In my case I’ve got 4 […]

Categories
Apple User Help

Bluetooth Explorer removed from Xcode Tools in 12.x?

Apple’s Additonal Tools for Xcode package includes a great set of tools that are useful even for non-developers. One of these is Bluetooth Explorer, which, among other things, can help enable the hidden higher-quality AptX audio codec for paired devices. I noticed this tool is now absent from the 12.0 disk image. Additional_Tools_for_Xcode_11.4.dmg contains the […]

Categories
User Help

ifconfig not included in Ubuntu 20.04 / Hyper-V

I have a bash script that does, among other things, MY_IP="$(ifconfig en0 inet)" but apparently Ubuntu 20.04 / Hyper-V / WSL2 doesn’t have ifconfig. Is there a way to install it or do I need to rewrite my scripts to work around it? If so what would be a good way to work around it? […]

Categories
Apple User Help

How do I ensure an external disk mounts before certain apps launch at startup?

I have an SSD connected to my iMac via USB, and I use it to store, among other things, my Dropbox folder, which is too large for my built-in storage. This generally works well, but sometimes (often) when I restart my computer, Dropbox pops up a warning that it can’t find the Dropbox folder, presumably […]

Categories
Apple User Help

How do I ensure an external disk mounts before certain apps launch at startup?

I have an SSD connected to my iMac via USB, and I use it to store, among other things, my Dropbox folder, which is too large for my built-in storage. This generally works well, but sometimes (often) when I restart my computer, Dropbox pops up a warning that it can’t find the Dropbox folder, presumably […]

Categories
Mastering Development System & Network

Firewalld: setting up port forwarding of ports 80/443 blocks internet access to client

I’m new here, I hope I’m in the right place. I’m also new to networking at this level of complexity and this might be a stupid question, so sorry in advance. For reasons, I have a nas (synology) with ethernet only which I cannot connect to the wired network of the place where it is, […]

Categories
User Help Web Apps

Google Sheets equivalent of Excel’s single accounting and double accounting underline styles without spacer columns

In Excel, if you go to Format > Cells… > Font > Underline, you can select from the Underline pulldown menu Single Accounting and Double Accounting underline styles, which, among other things, will leave a small space at the edges of each cell so that the underlines of adjacent cells are non-touching (see this accounting […]

Categories
Mastering Development System & Network

router using smcroute stops routing multicast after some time

I have a problem with multicast routing on a "from scratch" (Debian, not LFS ;)) linux router/firewall. At home I’ve set up a user and an server net. Between the two is a router/firewall (APU2E4 board) which, among other things, should route media data (UPnP) from the media server (container on a Proxmox VE server) […]