Archive for the ‘annoying’ Category

PayPal Changes it’s Canadian Pricing

Sunday, June 8th, 2008

I read some good news for small businesses in Canada who use PayPal to receive credit card payments.  The transaction costs have dropped by $0.25.  I’m happy, especially since our print-bingo.com transactions upgrade price for Premium access price is currently $10 so percentage wise, the extra $0.25 has a noticeable benefit on our margins. *

The percentage that PayPal takes also drops if you’ve gone past the 3000 per month bracket.

In my humble opinion, PayPal is now an even better deal for small scale web sites. The threshold where I would spend the time and money to move to a merchant account with a bank just got bumped up by a lot.  I’ve helped set up a “proper” merchant account for a client in the past, and it’s not fun nor cheap.  And programming for PayPal is really nice in comparison.

Also note that the entry level currency conversion for Canadians at 2.5% still stinks.

At Perceptus, we use a US based USD chequing account through RBC Centura where we withdraw our funds in USD.  Then we either convert to CAD with the somewhat better bank exchange rate, or we pay Leonard in USD to avoid exchange costs altogether.

The PayPal blog post is here: http://www.thepaypalblog.com/weblog/2008/06/lowered-fees-fo.html

* Hmm… what’s with that emphasis on the word “currently”?

How I had to fix PHP PEAR

Monday, March 10th, 2008

I’ve always found the code libraries of PHP PEAR to be quite useful.

But the PEAR website and individual package documentation is often baffling. I wish users could contribute comments and sample code easily, like the online documentation of PHP.

On to today’s rant. I just upgraded the Linux distribution that runs my home server to SME7, see contribs.org. Since it’s based on Red Hat Enterprise Linux, it comes with an old version of PHP Pear. Out of the box, it does not work. This is OK. On the frontpage of pear.php.net homepage the reason is clearly posted:

“[January 3, 2008] As promised, XML-RPC has been disabled at pear.php.net.”

The news post tells you how to update older installs of PEAR to work with the new system. That would be fantastic, if the instructions worked.

But they don’t. At least for older than expected versions of PEAR.

Fortunately, I have notes from earlier this year on another server upgrade I did.  I had to search high and low to get my old version of Pear working. Earlier this year, I run these commands to upgrade and fix PEAR:

pear upgrade –force http://pear.php.net/get/Archive_Tar http://pear.php.net/get/XML_Parser http://pear.php.net/get/Console_Getopt-1.2

(note, that’s all one command up there)

pear upgrade –force http://pear.php.net/get/PEAR-1.4.3.tar


pear upgrade PEAR

The difference is the Console_Getopt-1.2 line. It specifies the exact version of the Console_Getopt package to install. Shrug.

Today, I had an extra step:

On the second command, the PEAR-1.4.3.tar one, I go this error:
requires package `PEAR’ >= 1.3.3

I guessed that I needed to do a half-step upgrade first… i.e.
pear upgrade –force http://pear.php.net/get/PEAR-1.3.3.tar

Then do the original line:
pear upgrade –force http://pear.php.net/get/PEAR-1.4.3.tar

Then the final upgrade:
pear upgrade PEAR

I don’t know why PEAR had to disable the XML-RPC interface.  I don’t really care.  But I do find it annoying when the instructions on the front page of a site don’t work.

This problem will affect other people besides me. This will probably hit everyone else who is installing a new RHEL4 (or derivative) server. Long life distributions with non-functional PHP PEAR software will be kicking around for a few more years.

I’d post this on the PEAR Wiki. But there is none. Fortunately, this blog gets indexed by the search engines, so maybe it will prove useful to someone other than me.