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
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
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
-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
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
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
– If another site also uses the CDN hosted library, the user already have local cache, so loads even faster Continue reading
This is a repository maintained by the Fedora contributors, and is compatible with RHEL-derived distros. In my experience they all worked flawlessly. Useful packages including Node JS, Nginx, HAproxy, CouchDB and many other PHP modules.
To install the repo
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
To use it
yum install --enablerepo=epel <package name>
Just discovered this repository recently, the packages are very up-to-date. As of today, there are PHP 5.4.11, MySQL 5.5.30.
To install the repo
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
To use it
yum install --enablerepo=remi <package name>
* Update *
Seems EPEL decided to remove HAProxy from EPEL, if you want to install HAProxy, please check out this StackOverflow post.
I’ll show you how to install the the “Terminal” Package in 5 steps, starting from a clean Sublime Text 2 app, if you haven’t install Sublime Text or wondering what it is, click here.
Step 1: Go to the wbond Package Control homepage, Click Install to see the Install Page, copy everything in the grey rectangle