Error refreshing the OAuth2 token invalid_grant

July 10th, 2014

Google Cloud Platform OAuth

Google OAuth invalid grant

Trying server side interaction between Google App Engine and Google Compute Engine services with use of service account I stucked with this error message:

Fatal error: Uncaught exception 'Google_Auth_Exception' with message 'Error refreshing the OAuth2 token, message: '{ "error" : "invalid_grant" }'' in /includes/Google/Auth/OAuth2.php:330.

A few days of testing, experiments, “googling” Internet, and miscellaneous shamanic dances with a tambourine around “Google APIs Client Library for PHP” source code and the sample example of its usage did not allow me to make even a little step forward. Trying various variants with service-account.php (recreate service account, replacing private key file, trying other, default service account with client secret loading from JSON file) did not help and I still was on the same place with the same error. That was funny to resolve finally this issue and smile to myself, how the small mistake at very begin may cost a lot of time to fix it.

Read the rest of this entry

PayPal customer feedback email – can we trust to it?

June 26th, 2014

PayPal customer feedback email

PayPal customer feedback email

PayPal customer feedback email came today to my mailbox. First, I think that it is one of regular fake emails declared that it was sent by PayPal, but really sent from the address with the different (not paypal.com) domain – cs_surveys@paypal-customerfeedback.com in this case. I almost decided to delete this message as the tens of others similar sort of scam-fraud-etc. stuff, but after looking on the message text I got a thought that it could be a wrong decision. Let’s see, why I was thinking that way.

All we know (if you don’t, please read the text below and remember) that PayPal always:
- sends its emails from the domain paypal.com;
- sends them directly to your primary email registered at PayPal;
- starts email message from your full name;
- does not ask to input login information in any form;
- does not mask links in the message with URLs different from the URLs shown at the text.

Read the rest of this entry

Hide widgets from WordPress dashboard

January 16th, 2014

Cleanup WP dashboard

Cleanup WP dashboard

A lot of WordPress plugins adds widgets to WordPress administrator dashboard automatically. Some time you may wish to hide selected widget, – may be it is not interested for you, or may be it even does not contain a bit of useful information.

Some of plugins were written with user friendly policy in a mind and has an option at their settings to hide selected widget. What to do with plugin which does not allow blog owner to manage what widget to show at the WordPress back-end dashboard and what does not?

Yes, any user may hide unneeded widget switching of correspondent checkbox inside the “Screen Options” at the top of the page. But suppose, that You, as administrator, wish to make your blog dashboard more user friendly and to help your users to spend their time more effectively. Some times you even do not wish to let user know, that some widget is available at all. Use this recipe to make your dashboard cleaner.

Read the rest of this entry

Ubuntu version 13.10 – update from 13.04 hints

November 3rd, 2013

Ubuntu update to 13.10

Ubuntu update to 13.10

Ubuntu version 13.10 is available for download and update. If you uses earlier version of Ubuntu and just plan to update from version 13.04 to version 13.10, the Fortune is with you. You are the Lucky Boy/Girl (select your own). You may read this post 1st, and then, you will be ready to install this 13.04 to 13.10 update.
Unfortunately I was not ready so good as you could, and spent the couple of hours digging Internet to find the right decision for 3 little problems I met after my computer with updated operating system successfully rebooted. The 3 problem, little but critical, as anyone could stop your work as a Web developer.
It would be honest to say, that the troubles, which I will describe in this post, are not related neither to the operating system Ubuntu itself, nor to its version upgrade process. There are no bugs and no crashes. I may talk about my case of course.
You will meet the real problems in case you are the developer and have Apache/PHP installed at your desktop/server with a lot of virtual web servers defined. Add our popular and lovely WordPress here. Otherwise all update process took, of course, some time, but was fulfilled smoothly and without any headache.
Read the rest of this entry

WordPress 3.7 welcome

October 26th, 2013

WordPress 3.7

WordPress 3.7

WordPress version 3.7 “Basie” is available for download. WordPress developers fulfills their promises. That’s good.
New features of this major release are:
- Background updates. Automatic installation for security and bug fix minor updates are enabled by default. As official blog says, you may sleep, but critical update will be applied without your participation.
- Stronger password recommendations checked during new password creation and followed WordPress password strongness meter. It recognizes common mistakes that can weaken your password: dates, names, keyboard patterns (123456789), and even pop culture references;
- Improved search results. Search results are ordered better in relevance to the post content, not by publication date only.;
- Better global support. As the part of realized automatic update engine WordPress 3.7 adds support for automatically installing the right language files and keeping them up to date.
Read the rest of this entry

WordPress 3.7 Beta – Automatic updates are coming

October 6th, 2013

WordPress 3.7 Beta

WordPress 3.7 Beta

WordPress 3.7 Beta 1 is available for testing. Just few days ago we got WordPress 3.6.1 maintenance and security update. Did you update your WordPress site to version 3.6.1? No? This update is available from September, 16th. So it’s time to install it, sure. The list of fixes is available here.
Less than after a month of 3.6.1 release, WordPress developers team announced WordPress version 3.7 availability – October, 2013. Good speed.

The most impressive new feature included into version 3.7 is the automatic background update of WordPress core. That’s cool. You may sleep, have a good vacations, but your lovely WordPress will be always up-to-date, and all security vulnerabilities found will be fixed automatically. Fantastics which becomes the reality! But this is the one side of the coin only.

Read the rest of this entry

Update WordPress to version 3.6 Oscar

August 2nd, 2013

WordPress 3.6 Oscar

WordPress 3.6 Oscar

WordPress Version 3.6, named for Oscar Peterson was released to public at August 1, 2013. As always it is available for download from wordpress.org. It is declared as the enhancement and bug-fix release. In short the enhancements are:
1. New default “Twenty thirteen” theme.
2. Various admin back-end enhancements, like menus UI improvements, revisions revised to be more dynamic and scalable, autosave and post locking, preview audio and video on media edit screen, in-line login following expired sessions.
3. Delicious for developers: external libraries have been updated. More info new audio/video APIs give developers access to powerful media metadata, like ID3 tags. Filters for revisions, allowing you to set the number of revisions ad hoc instead of only via a define. More info semantic markup allows themes to chose improved HTML5 markup for comment forms, search forms, and comment lists. Search content for shortcodes with has_shortcode() and adjust shortcode attributes with a new filter.
Interested? Read full post for more info.
Read the rest of this entry