Archive for the ‘General’ Category

MySQL logs at tmpfs

Tuesday, May 3rd, 2016

mysql logs at tmpfs

MySql logs at tmpfs

I updated my Ubuntu to version 16.04 recently. The update process was successfull for all products except MySQL. MySQL 5.7 finished every try to install it with error. So I had to fully uninstall the previous version of MySQL. MySQL 5.7 was installed successfully at my desktop just after that.

Good! I worked effectively a whole day with new version of Ubuntu, PHP 7.0 and MySQL 5.7.

What large surprize it was for me when I discovered next morning that MySQL service can not be started. Moreover it said nothing about the reason except:

Read the rest of this entry

Error refreshing the OAuth2 token invalid_grant

Thursday, 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

Long waited 2012 year Europe holiday trip

Sunday, September 2nd, 2012

Lucern 2011

Lucern 2011

Working, working, working… Coding, coding, coding…
Stop! Rest a litle, look around – there is a real life beyond the boring office and amazing, but virtual Internet. Take a minute, book hotels with a couple of clicks. Fly to old Europe. Rent a car. Visit beautiful historical places. Go for a walk. Sit at the street cafe with a cup of coffee. Enjoy with fresh mountains air and Alps nature. That was my dream for all this year and it will become reality tomorrow. Let me leave you for next 2 weeks. I take a vacation and go to my year 2012 Europe holiday trip: Germany, France, Belgium, Wiesbaden, Constanz, Paris, Mont-Seint-Michel, Gent, Brugge, Frankfurt. Go-go-go!

update_core capability for WordPress user

Sunday, August 5th, 2012

update_core capability

update_core user capability

WordPress Codex gives us nothing about update_core capability for WordPress user, except WordPress version of its appearing in the code – 3.0. I suppose according to its name, that update_core capability is used to decide, if user can update core WordPress file using built-in WordPress upgrade feature or not. What do you think?

Thoughts are just thoughts, while they are not confirmed by practice and strong experiment. Thus, I decided to check this obviouse guess, satisfy my curiosity and investigate, how and for what purpose WordPress uses update_core capability really. Result of my little investigation will be shown to you below.

Read the rest of this entry

Find WordPress plugins fast and easy

Saturday, July 28th, 2012

Find WordPress plugins from thousand others in a moment

Find WordPress plugins

A lot of people, who use WordPress, spend time searching good plugins. I’m one of them. I have a few WordPress sites and use different plugins their. Right place to search plugins is the WordPress plugins repository. It contains 24 000+ free plugins from hundreds of enthusiastic authors right now. That’s excellent. But that has a drawbacks too. Plugins developers appear and disappear. Every day new guys started new work, but some guys or girls stop it, forever. Thus the list of plugins is overwhelmed by old, outdated code, which is not compatible with the latest version of WordPress.
Did you ever meet with situation, when you searched plugin for your special need at WordPress.org, digged the Internet by hours, but without any success, and then, some time ago, you accidentally found some post about brilliant professionally made plugin, which sitted silently at WordPress plugins repository long time? Or you found that, what you need eventually, but – how many time did you spend on it?

Read the rest of this entry

WordPress 3.3.2 Security Update

Sunday, April 22nd, 2012

wordpress 3.3.2 security update

WP security update

WordPress published version 3.3.2. It is critical security update. According to WordPress Developers Blog, three external libraries included in WordPress (Plupload, SWFUpload, SWFObject) received security updates. WordPress 3.3.2 also addresses:
– Limited privilege escalation where a site administrator could deactivate network-wide plugins when running a WordPress network under particular circumstances.
– Cross-site scripting vulnerability when making URLs clickable.
– Cross-site scripting vulnerabilities in redirects after posting comments in older browsers, and when filtering URLs.
Full list of changes made in version 3.3.2 is available here.
PHP delevelpers could see changes in source code directly using this link.
If you didn’t install this update yet, consider to do it right now. It’s very important to defend your lovely blog as much as possible.

Read the rest of this entry

User Role Editor 3.5 is published

Sunday, February 19th, 2012

User Role Editor WordPress plugin version 3.5

User Role Editor v. 3.5

What’s new in version 3.5 of User Role Editor WordPress plugin?
– User Role Editor could be available now for single site administrators (Administrator role) under multi-site environment. You should define special constant in your blog wp-config.php file for that.
– One of “User Role Editor” users with 1100+ sites in the multi-site network reported that URE doesn’t update roles for all sites, but stalls somewhere in the middle. Other network update method is realized as alternative. Due to my tests it works approximately 30 times faster. If you met the same problem, try it. It will be great if you share your experience with me. But be careful. It’s recommended to make 1st try on the backup copy, not on a live site.
– Persian translation is updated.
Go to User Role Editor Change Log for details.