While I was trying install the latest git by compiling the source, I got the following error
/usr/bin/perl Makefile.PL PREFIX='/usr/local' INSTALL_BASE='' --localedir='/usr/local/share/locale'
Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at Makefile.PL line 3.
BEGIN failed--compilation aborted at Makefile.PL line 3.
make: *** [perl.mak] Error 2
make: *** [perl/perl.mak] Error 2
Turns out the Perl headers are missing, using yum to install it solve the problem
Some said it’s related to the CPAN module, I have no idea what it is, if the above not work, try also install the CPAN by:
This is a very common effect, however the Android framework only provides the slide in animation. This is how I implement all the sliding transition animation. There’s in total 4 XMLs to define the animation, and with the use of overridePendingTransition() in appropriate location you can implement this easily.
pull_in_left.xml Continue reading “Android Activity transition slide in/out animation”
Memcached is a distributed Memory caching system, it is probably the de facto standard of caching facility for high performance web applications. In short, it is a key-value store which runs entirely in the memory, so it’s extremely fast and also proven to be reliable to handle high traffic.
Steps to install on CentOS (just works!)
Run the following commands one by one in the terminal, this will install the memcached server, and the PHP “Memcahe” classes needed to be used by Continue reading “Install Memcached with PHP extensions in 5 mins (CentOS)”
Linode doubled the storage space for all customers, according to their company blog post. I can’t believe it, they actually give away resources for free! (well…not exactly free, but they charge absolutely NOTHING for existing customers). Pretty Impressive!
The new Linode lineup:
- Linode 1GB disk space increased from 24GB to 48GB
- Linode 2GB from 48GB to 96GB
- Linode 4GB from 96GB to 192GB
- Linode 8GB from 192GB to 384GB
- Linode 16GB from 384GB to 768GB
- Linode 32GB from 768GB to 1.5TB
- Linode 40GB from 960GB to 1.875TB
In fact, this is not the first Free upgrade they offer, not long ago they doubled the memory, for me, from 512MB to 1024MB! This blog is running on a VPS provided by Linode.com, I have been using them for almost a year now. Their service is exceptional I would say, Fast setup time (within minutes), stable network, Easy-to-use yet featured-packed Dashboard and Great Support services. And most importantly for we customers, it’s surprisingly cheap. I recommend all of you to use Linode when you consider a VPS/Cloud Server. They’re not the fastest server in my region (I live in Hong Kong), there are tones of local providers I could choose from, but I still choose Linode for their premium service.
- Go to Register Linode with my code
- Linode Offical Website
- Linode Blog » Storage Space Doubled!
When using Git as your Version control, when you don’t want some files to be tracked (e.g. runtime data, caches, runtime config), you need to add them to the gitignore file. There’s some list of files needed to be ignored which is common to all projects using a certain CMS/Framework, those are called Boilerplates code. After some time, you’ll find that editing .gitignore config and to remember the last settings you used can be a headache. Luckily there’s some nice people collected those settings for us, just search gitingore in the GitHub. Now you can even use gitignore-boilerplates command line tools to generate one for you.
How to use gitignore-boilerplates
Here is an example on how to bootstrap a WordPress project with gitignore-boilerplates Continue reading “Generate gitignore painlessly with shell command”
What happened when your website looks broken on your phone but perfectly okay on your desktop? There is no web inspector that work in mobile device yet. But all you need to do is to connect it with your computer and you can inspect the DOM just like you did on desktop browsers.
- Make sure your devices is running iOS 6 or above
- Make sure your computer is running OSX Lion (10.7) or above Continue reading “Debugging website on mobile devices”
-webkit-transition: all 4s ease;
-moz-transition: all 4s ease;
-ms-transition: all 4s ease;
-o-transition: all 4s ease;
transition: all 4s ease;
In addition, the css3 syntax could be hard to understand and memorize for busy code monkeys. To solve this problem a cool developer Continue reading “Animation on the web made easy with Animate.css”
Reason1: You have not turned ON Calendar Sync
- Go to Settings>Mail,Contacts, Calendars
- Tap on your GMail account
- If you see the “Calendars” is turned off, Tap it once to turn it on
Reason 2: You did not connected to the Internet when you edit iCal
From my Experience, the iCal only sync with Google when you open the App Continue reading “Why my iPad does not sync with Google Calendar”
This sounds like a common task, but the problem is that from the GMail App there is no way to directly transfer the file to Dropbox. The trick is to use Safari.
- First, Open the attachment, Click the “Share” button and select “Open In Safari“
- Then, within the pdf canvas in Safari, Tap once to see the “Open In” bar and from there Select “Open in Dropbox“
- Finally, You will be prompted a screen to select which Dropbox folder you want to save in, then it will proceed to upload
- There you go!
Some of my favourites:
<link href="//ajax.googleapis.com/ajax/libs/jqueryui/1.9.0/themes/ui-lightness/jquery-ui.css" rel="stylesheet">
More jQueryUI: (from the Official Blog post)
- Uncompressed: http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.0/jquery-ui.js
- Compressed: http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.0/jquery-ui.min.js
base, black-tie, blitzer, cupertino, dark-hive, dot-luv, eggplant, excite-bike, flick, hot-sneaks, humanity, le-frog, mint-choc,overcast, pepper-grinder, redmond, smoothness, south-street, start, sunny, swanky-purse, trontastic, ui-darkness, ui-lightness, and vader.
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css" rel="stylesheet">
- Your site will load faster for most users
– CDN always serves the files from the server closest to the user
– They have set the proper cache header to enable client caching