Fixing wp-cli broken alias on bluehost.com and other hosts

wp-cliGood on Bluehost.com for two things:

1 – working to update millions of old wordpress sites to modern standards for security reasons.

2 – making wp-cli available by default to everyone using a command shell (including me)

Unfortunately, I went to use wp-cli yesterday and ran into a problem. It turns out that wordpress v4.4 broke earlier versions of wp-cli, and the most recent version is necessary to continue using it.

This took a while to figure out, and there doesn’t seem to be any bluehost-specific info via google as yet. Other shared hosts are also making wp-cli available and may have the same issues.

Here is an outline of what I did to get it working:

  1. Install wp-cli in a local directory. Make sure your install directory is outside of your wordpress install, and outside any apache-servable directories such as ~/public_html. This is easy enough to do, as documented on wp-cli.org.
  2. The tricky part was to recognize that bluehost (and other hosts?) set up a global alias for ‘wp’ that points to their now-outdated-and-broken version.After the sufficient amount of hair pulling, I discovered that at first what looked like some kind of php version mismatch was rather an alias I didn’t really want anymore.
  3. To discover the alias your host is using, “#alias wp”.  Copy the result to your  ~/.bash_profile. Edit the part that points to the wp executable to point to your new install. In the case of the bluehost alias, that is the last part of the command. Finally,  put the new alias into effect by “#source ~/.bash_profile”.After that, all worked fine for me.
Read the rest

Rural Economics and Network Infrastructure Policies

Today, on facebook, the topic of policies that are so fundamental to our existing economy that we can’t even see them for what they are came up in a since-deleted thread. Rather than revisit the topic directly on facebook, I am going to write here, and then link this to my fb page and see how that goes.

The initial rant, which was truly off-topic for the group and so the deletion was justified, was a common one heard in the streets, literal and virtual here in Porterville, California: That “Obama phones” aka “free phones” are unfair, they are luxuries, and others shouldn’t be forced to pay for them.

There are so many ways to counter this argument. Before I go into my main position today, I want to note for readers that our City is one of the poorest per capita in the country, and people who are complaining are generally at or barely above the poverty line themselves. That’s all I’ll say on that today, but maybe in a future post, I’ll explore that dynamic further.

There was surprising amount of pushback on the thread for these parts, presumably from those who benefit directly or indirectly from the program. But most of it from both sides was of the finger pointing variety by the time I arrived.

I decided to take a different tack. I pointed out that it has been telecommunications policy for over a century that rural areas would have subsidized telephone lines. And that the reason for that was because the nature of network economics is that there would not be any incentive at all to invest in rural areas when profits accrue in areas with dense network connectivity and costs are incurred in supporting a non-dense network as would happen in the vast rural areas of our country.… Read the rest

What investors ought be looking at…

This is why you don’t finance high-risk high reward ventures on loans.

Former Boston Red Sox pitcher Curt Schilling said Friday that the collapse of his 38 Studios video game company has probably cost him his entire baseball fortune, and he placed part of the blame on Rhode Island officials, including Gov. Lincoln Chafee.
http://news.yahoo.com/schilling-company-crash-cost-baseball-fortune-121042535–finance.html

It is also a great example as to why the management team is so important. There is never any mention of any management besides Schilling, who

Curt Schilling, 100% Management

made his money as a baseball player. Generally, a team is in place long before there is as much money invested as in this case.

Former Boston Red Sox pitcher Curt Schilling said Friday that the collapse of his 38 Studios video game company has probably cost him his entire baseball fortune, and he placed part of the blame on Rhode Island officials, including Gov. Lincoln Chafee.

Which probably points out some inexperience with those who issued loans, be they banks, individuals, or Rhode Island itself…why didn’t they insist that a management team be put in place to maximize the chance of success?… Read the rest

Words of people who scare me

Here are just some examples of how someone on facebook’s  own words have been used historically against others in the US alone, from our nation’s beginnings until this very day. These are why I am scared by people who think like her, because they have far too often gotten their way, and we have always lived to regret it when they do.

Do you know  any similar examples? Let me know via the comments….

Original words: regarding  War on drugs:
“yes, Barry, I do have a problem when those that are receiving help are abusing it. Are you going to tell me that you have no problem working if your money is helping drug dealers buy more drugs?”

Japanese-American internment during WWII:

“yes, Barry, I do have a problem when those that are receiving help are abusing it. Are you going to tell me that you have no problem working if your money is helping Japanese spy against the US?”

Chinese Exclusion Act:

“yes, Barry, I do have a problem when those that are allowed to marry are abusing it. Are you going to tell me that you have no problem working if your money is helping Chinese have inscrutable babies until they can vote us out of our own government?”

Same-sex marriage:

“yes, Barry, I do have a problem when those that are receiving help are abusing it. Are you going to tell me that you have no problem working if your money is helping to teach children to be gay or to undermine ‘traditional’ marriage?

Slavery:

yes, Barry, I do have a problem when those that are receiving help are abusing it. Are you going to tell me that you have no problem working if your money is helping animals think they are human and deserving of the sma rights as others?… Read the rest

This is a Public Service Announcement …

with guitars!

Know your rights all three of them

Number 1
You have the right not to be killed
Murder is a CRIME!
Unless it was done by a
Policeman or aristocrat
Know your rights

And Number 2
You have the right to food money
Providing of course you
Don’t mind a little
Investigation, humiliation
And if you cross your fingers
Rehabilitation

Know your rights
These are your rights

Know these rights

Number 3
You have the right to free
Speech as long as you’re not
Dumb enough to actually try it.

Know your rights
These are your rights
All three of ’em
It has been suggested
In some quarters that this is not enough!
Well…………………………

Get off the streets
Get off the streets
Run
You don’t have a home to go to

Finally then I will read you your rights

You have the right to remain silent
You are warned that anything you say
Can and will be taken down
And used as evidence against you

Listen to this
Run

You can’t manage what you can’t measure

Statistics take “millions of dollars” and “years to analyze” says Library staff in begging off the task

I just attended an interesting local board meeting where every local problem, and they are legion, was touched upon or hinted at in an indirect manner. How the Library Board came to be the nexus of that, I am not exactly sure, but here is my best guess:

In Central Valley towns everywhere, including Porterville, social problems abound. No need to get into the specifics of why, but John Steinbeck wrote about it in Grapes of Wrath so they are well known to the American public. The problems shown there have not been solved, not a one of them. Oh some of them are not quite as bad as they used to be, but some are worse.

So it seems that in order to fight the Ghost of Tom Joad, in a pique of blaming current crime levels for all the ills of the City, a few years back before I arrived, the town voted to tax itself with a local sales tax of .75 percent in a ballot measure known as Measure H.

Measure H doles out the money 85% to police and safety for new toys to “reduce crime”. The other 15% is supposed to go to the library for vaguely defined “literacy programs” because it is believed that doing so will also reduce crime.

All well and good I suppose, but there is a catch. The cops want that 15% and the locals are inclined to give it to them, or at least make the Library beg continually to justify every single dollar, although cops and fire departments have no such pressure to justify their large piece of the pie.

How does that happen? There is a committee, called an oversight committee, that once a year reports to City Council its opinion as to whether the Measure H funds (the Library part of it in practice) were spent “wisely” during the preceding year.… Read the rest

Where’s the Rest of Me? The Ronald Reagan Story

2000630109Another curious find at the Porterville Friends of the Library “Dusty Book” sale: This mass paperback autobiography (“as told to Richard G. Hubler”) . Published in 1965, probably at the beginning of his campaign to become Governor of California, this looks to be nothing short of propaganda and marketing.

Probably not meant to be read too closely – the writing actually appears pretty dense (as in packed on the page, come on, be nice!), I think this was supposed to introduce Reagan to the public as a whole and give his image some “heft” after being best known as an actor.

Apparently it worked.  I haven’t read this yet, but I will definitely add it to the pile of fist hand documents related to the fundamental principles of our country.  Now that we know “the rest of the story”, it will be interesting to see how much of it turned out to be foreshadowed in this book.

A few quotes from the back cover:

On Name Calling from the Political Left and Right:

I suggest to you there is no left or right, only an up or down. Up to the maximum of individual freedom consistent with law and order, or down to the ant heap of totalitarianism.

On Federal Welfare Spending:

If this present welfare spending was prorated equally among these (9.3 million) families, we could give each family more than $4,000 per year. Actually, direct aid to the poor averages less than $600 per family. There must be some administrative overhead somewhere.

On the Fear of Speaking Out:

If some among you fear taking a stand because you are afraid of reprisals from customers, clients, or even government, recognize that you are just feeding the crocodile, hoping he’ll eat you last.

Like the man and the results or not, those 3 lines are each marketing gold.… Read the rest

Captain Lou Albano Dies at 76

Captain Lou, Captain Lou …

Early Professional Wrestling Icon Captain Lou Albano

Early Professional Wrestling Icon Captain Lou Albano

Captain Lou Albano, a former professional wrestler and actor (though never a sea captain), recently passed away at the age of 76 of natural causes. In the wake of his death, searches surged on the man and his unique body of work.

Still, despite his accomplishments in the wrestling world and his portrayal of video games’ biggest stars, the masses are likely to remember Albano for his work with Cyndi Lauper.

via The Buzz Log – Captain Lou Albano Dies at 76 – Yahoo! Buzz.

Captain Lou Albano!

The Man, the Song – Lyrics by NRBQ:

Captain Lou
Well, some say the man’s not wrapped too tight
(Captain Lou, Captain Lou, Captain Lou)
But when he’s on the scene, everything’s all right
(Captain Lou, Captain Lou Albano)
With the man of a thousand faces
I know we’d be goin’ places (hey!)
I’m gonna stick with the guiding light
(Captain Lou, Captain Lou Albano)

Lou don’t worry ‘cause it’s figured in
(Captain Lou, Captain Lou, Captain Lou)
And he’s got sharp teeth like Rin Tin Tin
(Captain Lou, Captain Lou Albano)
With the man of a thousand faces
I know we’d be goin’ places (hey!)
We’ll stick with the light through thick and thin
(Captain Lou, Captain Lou Albano)

Captain Lou:
Captain Lou, Captain Lou, Captain Lou
Captain Lou, Captain Lou Albano
hey!
Captain Lou, Captain Lou Albano

With the man of a thousand faces
I know we’d be goin’ places (hey!)
I’m gonna stick with the guiding light
(Captain Lou, Captain Lou Albano)

Captain Lou, Captain Lou Albano {repeat}… Read the rest

Reading is FUN-damental!

OK, working on a new feature for this blog!

I thought y’all might like a look into the types of books that draw my interest. I will elaborate on specific ones from time to time, and use their content as a jumping off point for various blog essays.

To that extent I have added a new “library” section to this blog. It can be found at http://www.portervillenerd.com/library/

To kick it off, I will add some books I grabbed today from the Porterville Library “Friends of the Library” monthly book sale. To be honest, there were far more books available than I expected, and I didn’t expect to find anything except curiosities, if that. I think I did a little better than that, and the money goes to a good cause.

For now, the formatting of the Library page, and the individual book pages may look a little iffy as I have not integrated the default formatting into this blog’s theme. In the interest of sharing information rapidly, I let you know about the data anyway 🙂

And if you see any books that are interesting, you can click on the images or the titles and you will be taken to the book’s page on Amazon.com. If you then buy the book, you will be bringing the internet economy to Porterville, which can really use it, and honoring me with a small contribution that Amazon will provide me for having helped you! I thank you for that honor, I hope you find some books as interesting as I do, and I welcome your feedback on what you think of them or the essays I will provide.

Here are the books I got today, all for a total of less than 10 dollars:… Read the rest