MacOS High Sierra – Telnet and FTP resurrected

January 19th, 2018

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.

PufferPanel and MacOS High Sierra

January 6th, 2018

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

December 15th, 2017

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

December 9th, 2017

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

December 5th, 2017

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

December 5th, 2017

I am not a doctor. Over four years ago, 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 told me the C6 was a degenerative disc causing the pain. She sent me home with a prescription for a worthless bottle of percocet and no plan to fix the issue.

A friend of mine also had an ER visit a couple years go; his face looked half-paralyzed and it was believed he was having a stroke. His ER doc visited him and kindly told him 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 he was good as new.

I didn’t want to bother going on in, but I knew I had the same condition based on my X-ray results. I read about some of Robin McKenzie’s work in developing exercises to fix these conditions. The best video I found on a C6 degenerative disc condition in your neck is from Bob and Brad, a couple of physical therapists, who explain: what’s going on with pain/numbness radiating down into your arm and finger tips, who developed the treatment method, and what exercises make the pain better:

https://www.youtube.com/watch?v=_WrqTD33nDM

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

October 24th, 2017

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

September 25th, 2017

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

August 17th, 2017

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 and this thing keeps running. For others trying to replace or upgrade to a more potent battery pack, I’ve used a couple of these:

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 tool 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. You can 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…

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 wiring harness the tool came with to reuse the metal slip on jacks inside (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.

Run PNNL Visual Sample Plan 7.9 on macOS Sierra

August 8th, 2017

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.