A Solid-State Drive Can Revitalize that Old MacBook Pro

Late-2011 MacBook Pro

I’ve had the same MacBook Pro (late-2011 model 8,1) since early 2012, and am no longer able to put new versions of macOS on it, as Mojave only works with newer models. Over the years it’s become much slower, and the 500 GB HDD that came with it – almost being full – is near failure, according to EtreCheck Pro.

For a reasonable price I ordered a 1 TB solid-state drive and data transfer kit from OWC and within a few days I was up and running on the new drive.

Between following the suggestions on EtreCheck Pro (like deleting unused 32-bit apps and uninstalling unnecessary daemons) and this new larger and faster drive, it’s like I have a brand new Mac – except that I still can’t install Mojave. Unfortunately, there’s no fix for that.

Don’t Put Spaces in Java Install Path!

Oracle Weblogic Server 12c logo

So you’ve decided you want to install Oracle Middleware Weblogic Server on Windows, but you haven’t installed the Java JDK yet. Are you thinking about installing it somewhere like “C:\Program Files\Java\jdk…”?

Do not pass GO, do not collect $200, go directly to Oracle installation jail! For whatever reason, Oracle – who also happens to own Java – has made their Weblogic Configuration Wizard completely unfriendly to any spaces being present in the Java installation path. If you don’t heed my advice, you’ll likely end up with the error message
“C:\Program is not recognized as an internal or external command…”
or something like it.

Either choose the default location for installing Java, or if you must put it on a different drive than C, only change the drive letter. This will prevent a great amount of frustration!

HTTP Error 414 on WordPress

HTTP error 414

While trying to update the WP LinkedIn widget on a WordPress blog, I ran into an HTTP error I had never seen before: 414.

HTTP error 414 indicates that the URI is too long for the web server to interpret it.

In the case of a WordPress blog, this is likely caused by a security feature of the iThemes security plugin. If iThemes is being used, the first step would be to turn off the “Filter Long URL Strings” checkbox. This can be accessed through the WordPress admin console: Security –> Settings –> System Tweaks.

System Tweaks in iThemes Settings

The checkbox is about halfway down the page.

Filter long URLs checkbox

I would suggest turning this off only long enough to complete whatever administrative action you are doing, and then turning it back on, so as not to create an unnecessary vulnerability.

If you are not running iThemes, the setting is likely found in the Apache configuration, and may need to be addressed there.

Mailing Attachments from the Terminal Prompt in UNIX and Linux

UNIX logo

Transferring files from a UNIX or Linux server when FTP is not installed can be tricky. In my case, there was a set of log files that I needed to send to someone for analysis. After discovering that FTP was not set up on the server, I decided to try another route: zipping the logs into a single file and emailing the file to me.

First, I had to zip the files. The zip command was easy enough:

zip <zipped filename> <files to be zipped>

zipping files in UNIX

Next, I had to mail the zipped file. Fortunately, mailx was installed! Using this in conjunction with uuencode, and the file would be on its way.

uuencode <original filename> <final filename> | mailx -s <subject of email – put in quotes> <email address>

mailx example

Be sure to check your junk or spam folder, as email from the server could end up there.