tar: file name is too long (max 99)

I was doing the usual make dist process to launch a tarball for one of my apps when tar died with the following message: tar: file name is too long (max 99); not dumped tar: Error exit delayed from previous errors If you happen to see the same error message…

Chromium OS using Portage build environment

These are good news for the Gentoo community. Portage is being used to build Chromium OS packages. As you may know, Portage is the Gentoo Linux default package management system which has its roots on FreeBSD's ports. As of February 5, Google developer Ryan Cairns has made this statement on…

Mark all messages as Read in Gmail (in 3 easy steps)

Want to get rid of all those unread messages in Gmail? Or, just like me, have some unread messages you can't find and want to reset the unread count to zero? Well, here is the solution: Type "is:unread" in the search bar. Then select "Unread"…

Check UTF-8 input in PHP: only letters

This is a simple way to check a UTF-8 string with PHP function preg_match in search for anything that isn't a letter, which includes all UTF-8 letters and not just ASCII. Preg_match performs a regular match on the given input using a pattern. The pattern used tells preg_…

How to prevent caching (force image reload) in PHP and/or JavaScript/jQuery

If you are using images generated on-the-fly by a PHP script (or another server language), like I'm doing on my web application, you surely do not want images to be read from cache as your users will be seeing the same first generated image (saved into cache) and not the…

Howto Gentoo Linux with UTF-8 and Portuguese (Portugal) localization

Purpose How to configure a Gentoo Linux system to use UTF-8 character encoding and Portuguese (Portugal) localization (language and keyboard). Background UTF-8 is a variable-length character encoding, which in this instance means that it uses 1 to 4 bytes per symbol. So, the first UTF-8 byte is used for encoding…