About Brad

All-around tough guy.

MacOS High Sierra – Telnet and FTP resurrected

I waited a little while to upgrade to High Sierra until I knew what I might lose with the new system. One thing that went away was the ability to use telnet and ftp from Terminal.app.

Others have encountered and fixed this issue prior to me. Here’s the simple fix:

  1. Open “Terminal.app” on your Mac
  2. Type the following and then press enter: brew install telnet tnftp

You should get a response like this:

==> Downloading https://homebrew.bintray.com/bottles/tnftp-20070806.high_sierra.
######################################################################## 100.0%
==> Pouring tnftp-20070806.high_sierra.bottle.tar.gz
? /usr/local/Cellar/tnftp/20070806: 9 files, 262.9KB

If you receive an error message, you may need to consider installing XCode and “brew” for macOS High Sierra and repeat the instructions in this post.

** UPDATE ** These instructions work with macOS Catalina too.

PufferPanel and MacOS High Sierra

We tried installing PufferPanel on a High Sierra Server today, but hit some snags with the installer and manually configuring Apache. Didn’t see much in the community forum, so we logged on to Discord and puffrfish, one of the lead developers, was gracious to answer some questions, pasted below:

Teddd just joined. Everyone, look busy!Today at 9:25 PM

Teddd – Today at 9:27 PM

Has anyone here tried installing PufferPanel server on a Mac?

puffrfish – Today at 9:27 PM

our installer isn’t designed for it, so while in theory it could someday work, it’s not going to right now

I’d recommend running it in a linux VM instead

Teddd – Today at 9:28 PM

Yeah, I saw the installer is meant for linux, but I figured I could manually configure it to work with Apache.

puffrfish – Today at 9:29 PM

we don’t have a darwin build for pufferd yet, so it’s a definite no

Teddd – Today at 9:31 PM

Is the pufferd code available too? Just curious if I could try to recompile on Darwin.

puffrfish – Today at 9:31 PM

yes, it’s all available on GitHub, but take it from me (I use a Mac) that it’s not as simple as just compiling it

Teddd – Today at 9:32 PM

Good to know :smiley:

puffrfish – Today at 9:32 PM

I plan to someday get to it, as it’s not that much work, but the amount of people wanting it is almost none..in fact, you’re the first one
at least that I can remember anyway

Teddd – Today at 9:34 PM

I know there are a few more out there, but most probably write it off when the site only mentions linux distros as supported.

puffrfish – Today at 9:34 PM

virtualbox works well enough though, just load up an ubuntu server iso into it and make sure networking is configured in bridge mode for ease of use

Teddd – Today at 9:35 PM

Thanks for the tips. If you ever want to bring it to the Mac, I’d be interested in helping.

puffrfish – Today at 9:35 PM

another issue is that the game servers themselves, for example srcds, don’t run well (if at all?) on mac

what game are you looking to run?

Teddd – Today at 9:35 PM

Minecraft PC or else Pocketmine-MP.

puffrfish – Today at 9:37 PM

minecraft java would work, not sure about pocketmine but I imagine so

Teddd – Today at 9:38 PM

Yeah, pocketmine works too.

puffrfish – Today at 9:38 PM

I have to say that it’s a little far off though, we have a lot of other issues we have to tackle first, mainly the panel itself

Teddd – Today at 9:38 PM

At least we’ve run several versions of pocketmine-MP.

puffrfish – Today at 9:38 PM

but we are set up in a way to theoretically support windows as well as macOS in future releases

Teddd – Today at 9:40 PM

That will be an exciting day :joy:

puffrfish – Today at 9:40 PM

I wouldn’t hold your breath for it

Teddd – Today at 9:42 PM

Ha, I won’t, but I think its really cool what you have already built with PufferPanel.

puffrfish – Today at 9:43 PM

thanks, I would definitely recommend just running it in a VM of some sort for now though. the game servers (besides minecraft) are more suited to running under linux. I’d say windows comes second since there are some windows-only games

Lord_Ralex – Today at 9:46 PM

Yeah, I know we wont have a build since environments are not set up for ot

Teddd – Today at 9:51 PM

Are there any alternatives to PufferPanel that might run on the Mac, like Multicraft?

puffrfish – Today at 9:51 PM

not that I know of

Java SE 6 fix for Illustrator CS5

I recently updated my Mac to High Sierra and Illustrator CS5bwould no longer launch, because it wanted Java SE 6. I downloaded and installed Apple’s Java SE 6 run time, because the other workaround that follows DID NOT work, even though I tried enabling the root user and booting into Single User Mode to try and execute the following:

sudo mkdir -p /System/Library/Java/JavaVirtualMachines/1.6.0.jdk

sudo mkdir -p /System/Library/Java/Support/Deploy.bundle

ln -s /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents

Install CouchDB on Ubuntu 12.04

Click the “Dash Home” icon in the upper left hand corner of the screen, just below “Ubuntu Desktop” and type “Terminal”. Click the Terminal icon when it appears.

In Terminal’s window, type in the following commands:

sudo apt-get install python-software-properties

sudo apt-add-repository ppa:couchdb/stable

sudo apt-get update

sudo apt-get install couchdb couchdb-bin couchdb-common -f

To navigate to where CouchDB database files are stored:

cd /var/lib/CouchDB

 

Extras

sudo chown -R couchdb:couchdb /home/adam/Desktop/couchdb

sudo chown -R adam:adam /home/adam/Desktop/couchdb

sudo chown -R adam:adam /var/lib/couchdb

To get Debian version from command line:

cat /etc/debian_version

Download JW Player Content

For documenting my attendance at a webinar for professional development, I wanted copies of slides that were posted in a JW Player format. Right-clicking the video wouldn’t allow me to download it, boo hiss.

Using Safari on my Mac, I pressed Option-Command-U to view the “Resources” and then clicked the “Elements” tab. I then hovered over the video feed and Safari highlights portions of the code that generate the content. Keep expanding the carrots/arrows until you drill down to the code generating the feed. In my case, it looked like this and I right-clicked the code to “Copy Link Address”:

JW Player content download

Neck Pain Fix

I am not a doctor. Over four years ago while out of town on vacation, I visited urgent care as some neck pain began a trip down my neck and ultimately into my arm and hand. The best thing the UC doc requested was an x-ray and she diagnosed me with a degenerative condition. Later discussing it with my own doctor, she described it as narrowing in the C5-C6 area and described the problem as muscular rather than nerve related. I was probably prescribed exercises that I must have ignored, my fault, and the condition never seemed to improve.

Ok, now some storytelling. A friend of mine had an ER visit a couple years after a waiter at a restaurant told him that half of his face looked paralyzed. My friend is a nurse with a family history of heart issues, so he was quickly concerned these symptoms were related to a potential stroke. After admitting himself to the hospital, his ER doc ran EKG tests and an X-ray. While discussing the results, his doc kindly notified him that his condition had nothing to do with his heart, rather it was a C6 degenerative disc in his neck. His doc prescribed physical therapy and weeks later my friend was good as new.

My friend’s paralyzed face was the result of years of not addressing the issue – the degenerative disc condition may have allowed a nerve to be pinched. He had pain that started in the back of his neck, went into his upper back, his right-shoulder, down his right arm, and made his right hand fingers numb. I didn’t want to bother going on in, but I knew I had the same condition based on my X-ray results and symptoms – my problem started in my neck and continued down my right shoulder and into my right arm and fingers.

I read study results from some of Robin McKenzie’s work in developing exercises to fix these conditions. Apparently strengthening muscles around the degenerative disc can help mitigate symptoms I described above. The studies describe the exercises, but not in terms a layman like me can understand. I found a YouTube channel for a couple of physical therapists, Bob and Brad, who: demonstrate the exercises, explain some of the pain/numbness radiating down into your arm and finger tips, discuss who developed the treatment method, and describe what exercises alleviate the pain symptoms:

The first exercise they show, the chin tuck, supposedly helps 80% of people and is what I focused on. It takes some practice to get the form right and to get your neck muscles responding – the goal is to pull your head back and up if possible. When Bob and Brad demonstrate, they are exerting the kind of strength you’ll want to try when you first start the exercises, but as you move along in the treatment, you’ll want to exert much more force than they exhibit. When I first started, it was like my neck muscles were non-existent, so I started with reps of 10 and days later moved to reps of 15 and then 20. When I started doing reps of 15 and 20 a week into the treatment, it was like my neck muscles had suddenly reawakened and I could really start to pull my head back and up. About this time, the numbness in my arm was going away, but the neck pain started to get worse. The good thing is, doing this and the following exercises helps to relieve the pain and its something you can do at work. I also noticed that the exercises felt more effective if I was standing and grabbed on to something, but now I seem to be able to do the exercises standing or sitting and without having to hold on to anything.

Brad also shows a variant of doing chin tucks while laying down, but these didn’t seem to help me as much. I tried a few when I first hopped into bed at night, but that was about it. They felt good, but not something I did during the day.

Exercise #2, head roll backs, were helpful to me when the pain started to intensify in the back of my neck. I like how Bob stresses, try to roll your head far as you can – I used a lot of force to do this later in the treatment. They both suggest using towels for support early in the process, but later in the treatment, your muscles will be stronger and you’ll have no need for the towels.

Exercise #3, chin tuck and then side roll, was also helpful to me. I started doing these later in the treatment as the pain worsened in my neck. Towards the end, you just want the pain to go away and doing any of the preceding exercises will help.

Bob recommends doing each exercise in repetitions of 10, once per hour. When Brad says, you should feel improvement by the 7th or 8th rep, I say phooey. Sometimes it would take me 12-15 reps before the pain came out of my fingers or moved up my arm. When your neck muscles get toward the end of treatment, you’re going to start to feel a lot better and then suddenly, the pain just seems to go away. I started this back in August and by the end of the State Fair, I was completely better and have yet to have a set back.

One other thing Bob and Brad didn’t mention that brought relief for me: roll your pillow up at night and jam it under your neck so your head is craning backward. This sounds really awkward and strange, but when the pain intensifies toward the end of the treatment, laying in bed this way felt so good. My head/neck position didn’t last that way all night, but it was a good way to fall asleep. Since my neck pain went away, I no longer have to sleep that way 🙂

I wanted to capture this somewhere and I hope it helps you feel better!

Removing Platforms and Accessories from Homebridge

I added a few LIFX devices to Homebridge to make them available through Apple’s Home app. After LIFX added native HomeKit support to their lights, I decided that keeping the homebridge-lifx-lan plugin on Homebridge was unnecessary. I first quit Homebridge by pressing Ctrl-C and then used the following command to remove the plugin:

sudo npm uninstall -g homebridge-lifx-lan

Soon after I launched homebridge on my Mac mini and then the Home app on my iOS device to find that the LIFX accessories were still stuck under Homebridge. I also tried deleting the LIFX platform from the config.json file, but it was no help.

To fix this, I restored the config.json file and reinstalled the plugin:

sudo npm install -g homebridge-lifx-lan

Then I installed the Hesperus app on my iOS device and followed these instructions:

https://github.com/devbobo/homebridge-lifx-lan/wiki/Removing-a-bulb-from-Homebridge

Success! After this, I quit Homebridge, removed the platform code from the config.json file, and removed the plugin using this command:

sudo npm uninstall -g homebridge-lifx-lan

Garadget and IFTTT refresh

I’m loving my Garadget – thanks Denis! Recently, IFTTT stopped working with my Garadget. When I logged into IFTTT.com and looked at “My Applets” they appeared fine, but if I tried to look at the settings for them, IFTTT.com would throw up a red bar across the top of the screen saying “We can’t connect to your service.”

I corrected this  by clicking Services->Garadget->Settings->Edit connection and then entered my Garadget user credentials. I’m hoping this is related to the 90 day expiring token and that Denis’ new non-expiring tokens can be used with IFTTT to stop this in the future.

American Gardener CS18 Battery Replacement

My bride takes care of our lovely garden and lawn. One of her favorite trimming tools is the American Gardener CS18. We’ve gone through a couple rechargeable batteries now (*hint* bring the battery inside your house during cold winter months) and it continues to operate fine. For others trying to replace or upgrade to a more potent battery pack, I’ve used the make/model below and there are likely other packs that work just as well.

The Venom  Power 3000 mAH NiMH flat battery pack has more capacity than the inferior 1800 mAH Ni-Cd (p/n 700228) battery pack the CS18 came with. Yes, the new battery will take longer to charge, but does this really matter to most yard warriors? Plug it in and charge it overnight. For those who find the Venom Power 3000 later fails, initiate an online claim for Venom Power’s lifetime warranty; the first year Venom Power offers complete replacement and years two and greater they will give you 30% off a new battery. I’ve exercised the latter option once – the first Venom Power battery pack lasted 3 years before it suddenly failed on us and as I said above, the failure could have been due to cold temperature when it sat out in the garage for a winter season (or two).

To install a new battery pack, you’ll need to take the CS18 apart. There are 4 Phillips screws to get into the tool, all located on the side. Once inside, take a picture in case the spring flies out later, which it will. The wiring connectors the Venom Power comes with are different than your existing battery. If you’re handy with a soldering gun, I recommend breaking apart the existing wiring harness inside the CS18 to reuse its metal slip on jacks with the new battery pack (or don’t be a cheap bastard like me and pick up new jacks at the hardware store). Here’s a pic inside the tool, in case it helps anyone:

View of CS18 innards when replacing battery back.

** Update 6-24-2021 **

For those who need to replace the power adapter, we used the make/model pictured below and it continues to charge the Venom Power battery pack just fine at 7.5 volts, center pin positive, and at around 600 mA (probably less at 7.5 volts, which is fine).

CS18 replacement power adapter, back side

CS18 replacement power adapter, back side

CS18 replacement power adapter, center pin polarity setting

CS18 replacement power adapter, center pin polarity setting

Looks like you can still pick this power adapter up on eBay.
If Walmart gets stock back, you might try this link.

Run PNNL Visual Sample Plan 7.9 on macOS Sierra

Early versions of Visual Sample Plan were not supported on the Mac, but I’ve used wineBottler with success in the past, so I set out to test it with VSP 7.9 on my Mac. The following steps should work on a Mac running macOS Sierra (10.12.6):

  1. Download wineBottler and install it and the bundled wine in your Applications folder.
  2. Download the latest version of VSP to the Downloads in your home directory/folder.
  3. Open the wineBottler application, click the “Advanced” button, and configure it as shown in the screenshot below:                    
  4. Click “Install” and then click “Next” whenever prompted by the Windows installer.
  5. The installer should run for a few minutes and you’ll need to click “Next” or “Agree” whenever prompted.
  6. Near the end of the installation process, you’ll be prompted to select a Startfile. The default, selected option is incorrect – you’ll need to click the file path drop down menu, select the option for “Program Files/Visual Sample Plan/VSample.exe”, and click OK, as shown below:                                                                   
  7. After doing this, you should reach the dialog/prompt “Prefix created successfully” and then click OK.
  8. To run the newly created application, search for “Visual Sample Plan 7.9” on your machine and launch it – should be inside your Applications folder and you should see something like below:                       
  9. Bonus step – on my machine, I launched Visual Sample Plan and noticed its icon in the Dock is generic, even though the VSP icon for the application in the Applications folder has the green and red grid. To fix this, I selected the icon for VSP in the applications folder, pressed command-C, command-I, clicked the icon in the Get Info window, and command-V to paste in the icon. Make sure you do this when the application is not running.