Very Far Around Robin Hoods Barn

Oh the lengths you’ll go to include services such as Google+ that by design do not readily make themselves available for such things! First I had to find a way to link my Google+ profile to my Google Voice number, all to get a magic email address which I can only send using Google Mail so that the email will automatically end up on my Google+ profile. That part is done, then I went over to IFTTT.com and investigated how that might work. So I uncorked the WordPress channel and set it to watch this blog for new entries, when it sees one, it should collect all the details and then send those using my Gmail account to my Google+ magic email address. Now lets see if the damn thing works. 🙂

TL;DR: Now I have a way to publicize on Google+ from WordPress automatically.

 

WordPress Jetpack and Post By Email

Several days ago, when I had all that trouble working with Jetpack for my WordPress.org blog I couldn’t get stats to work. I sent a support ticket to the developer of Jetpack and it turned out that it was a problem with my web host, iPage. Once they fixed the problem on their side, the stats worked again. There was another problem, one that hasn’t worked for a very long time and I gave up hope almost. There is a feature of Jetpack called “Post By Email” and this feature should work, but never has. I once again opened a support ticket with the developer of Jetpack and told them what was wrong.

Late last night I got an email from a WordPress.org Forum [Post](http://wordpress.org/support/topic/jetpack-post-by-email?replies=13#post-3952121) that I’ve been commenting on stating that the issue is solved if you upgrade your installation of PHP to 5.3 on your web host. So I logged into iPage, found the PHP settings, pushed them to 5.3 and then tried again. My test post worked like a charm!

So much so that I am sending this post via email. It should arrive in moments and then I’ll publish it. Hooray! I love a fix. What a great way to start the day!

For the want of pgrep on Mac OSX

I’ve got an issue at work, of course. I’ve got a Mac OSX xServer that has grown crotchety and so I’ve gotten to making things better by using killall on various running processes in order to “clean up the mess”. This is all fine and good and these processes respawn and the world goes back to normal and everything is fine, however I also want to renice this pesky command and give it a lower priority. While killall can do a search by name, renice requires a pid. The way you get pids is to run the ‘ps’ command, but this gives you a big pile of data and really all you want is just the pid itself, so you can pass that to renice.

So here’s how to get your cake and eat it too on Mac OSX Leopard Server:

1) First, change your shell – the default for root is /bin/sh, do this by issuing this command:

chsh -s /bin/bash root

2) Then you’ll need to give bash a profile, create a new file call it .bash_profile and fill it with this text:

[[ -s ~/.bashrc ]] && source ~/.bashrc

3) Next you’ll need to fill out that .bashrc because that contains the function you need to replicate pgrep:

pgrep() for arg; do ps aux|grep $1|grep -v grep|awk '{print $2}';done;

4) Log out and log back in and you’ll end up in bash, not sh, and you’ll have a new command at your disposal, pgrep. You can then use pgrep CommandName and it’ll spit out the pid related to what you are after.

5) Then you can use this new function with renice this way:

renice 20 `pgrep CommandName`

One thing to note here is that the ` character is the backtick character. You’ll find this hiding out in the upper left corner of your keyboard, it’s the unshifted tilde button.

FBackup: Free Is Good

At work I was asked to put together a server on the cheap which I’m fine with as long as everyone understands that doing so has some implicated risk. A server cast on a desktop machine is a risky proposition. You don’t have power support from redundant power supplies, you don’t have RAID which can protect you from hard drive failure, and the machine is not designed to be a very robust server in any stretch of the imagination – it just lacks the processing and RAM that would really answer the need strongly. However, once I covered those risks, everyone was still on-board with me moving forward. I rolled a server out, used an Operating System that would be best to not speak about and set up the software.

Being a part of the technology from the great beast, of course it didn’t work well at first. There were hidden requirements, annoying requirements. Requirements with “dots” in their name. Once I figured out the how and got the thing running I took it down from the lab place I was working on it in and moved it to its permanent home in our machine room. From the point of deployment which was a few days ago I’ve had a niggling worry that the thing is going to fail, as any machine could when it relies on just one hard drive. I needed a backup solution.

The built-in backup solution in the “product” that I was “using” as an “operating system” was just not going to work. I needed something that would work well and be free above all else. I went to the great sage and eminent junkie Google and eventually ran across FBackup. It’s not glorious, it’s not complicated, but it is exactly what I was looking for. So now with that software installed, and it’s quite good in fact for the “operating system” I was using I don’t have to worry so much about that “server” going down. If it does, eh, who cares, at least the data will be safe. For those that wonder where I put my backups, I have a NAS, a handy dandy DroboNAS that isn’t the fastest tool in the shed, but at 16TB, it certainly has a lot of space and it’s RAID means that I don’t have to worry so much about hardware failure with that box.

So, hooray for FBackup. It’s free, and while I can’t spare any change for it, what I can do is recommend it. If you are looking for something handy and you can’t get your hands on a native installation of ‘tar’ like you should be using, this is quite good. It’s not Backup Exec of course, but then, I would rather chew a lightbulb than even hear the words “Backup Exec” spoken aloud.

FitBit Part Two

I have returned my poor dead fitbit back to best buy and used my 2-year warranty. They returned the unit, put up a $100 gift card then tore up the old 2-year contract because its one-use. Then I picked out a new FitBit One (new and nicer) and they applied the gift card and then all I had to do was pay for the pro-rated new 2-year protection plan. Total spent? $3.83. I’m good with that. Yay!

FitBit

My FitBit failed yesterday. The poor thing no longer wants to work and when I plugged it into the charging base it just started to flicker with half the display actually showing. It was just another nail in the coffin that was yesterday and I was only half-expecting FitBit to honor their warranty because I doubted I had my receipt.

As it turns out, I started rolling up my receipts and storing them in a little collection box in my kitchen. I opened the drawer last night and rooted around for it, not expecting to find it. Not only did I find it, but I also discovered to my chagrin that when I purchased the FitBit I also purchased the “Performance Guarantee” with Best Buy for $15, which covers the device for two years and expires on 8/28/2014. So not only do I not have to muck about with the warranty procedure and wait for shipping and processing, but I can get a new unit as soon as I can get myself down to Best Buy.

Now I know what I’m doing for lunch. 🙂

Jetpack Failure

I recently upgraded my installation of Jetpack for WordPress.org on my blog here and right after I did that the damn thing stopped working. Verison 2.2 with WordPress 3.5.1. Everything should be 5×5 but it isn’t. I’ve contacted Jetpack support and I’m waiting to hear from them what my next steps should be but I figured it made sense to blog about this since it touches on WordPress and well, here we are.

The first thing I did was disconnect my Jetpack from WordPress.com, that went very easy. Then I tried to re-engage with WordPress.com and got an SSL timeout error. I then went onto Google and found a bunch of others who were having this problem. After I engaged with the Jetpack support people they asked me to run the a href=http://plugins.svn.wordpress.org/jetpack/branches/jetpack-compatibility-test.zip target=_blankJetpack Compatibility Test plugin/a. I did that, it generated content and I sent it off for analysis.

So I don’t have Jetpack running and I leaned back and wondered if things would be so bad without it. I mean, if an update breaks it perhaps it’s not meant to be used. So, if there is a solution, that’s fine and dandy, and if there isn’t, living without Jetpack is also fine and dandy.

I’ll be updating this post with new details as they unfold. What’s really irking is Jetpack worked for a long long time up until the last update, then poof.

strongUPDATE/strong: I tried to connect to WordPress on a lark and it worked. So, if the Jetpack support fellows did something, then thank you guys for your help!

**UPDATE 2**: Just when you thought it was safe to go back in the water, the post-by-email bit of Jetpack doesn’t seem to like me. Sent several messages and nothing posted to the blog. Perhaps a sneaky firewall issue, or gnomes. 😉

Throwing My Shoes

Watching local news on Fox affiliate. I started getting grumpy and all agitated and yelling at the TV. Then I realized that watching local news is bad for me. Nothing good ever is revealed. Murders, rapes, shootings, all heavy drama or heavy scandal. I, as a rule, don’t watch this crap and when I do see it I am reminded just how toxic it is. The news is not good for you. What will knowing do for you? What benefits come in the countless sad revelations that are shamelessly paraded out for public consumption?

So, time to seek out something else. Anything but the worthless toxic news. News of what? A world slowly winding down. A world rotten and full of seams. Seek out sunnier skies, even if you don’t know what’s just down the road a pace, in the next city or even across town.

Sometimes it’s better to not know. Live in blessed ignorance. In the end each of us must answer the question “What good does this represent in my life?” and if you can’t figure out an answer, perhaps there is a lesson there.