Jan 2016

You may already be familiar with Amazon S3, the most popular solution for cost effective storage services nowadays. You will need it when you are looking for:
- Low cost storage: it happens to be my case, when I implemented a Drupal based web app for a local governmental authority. The app is used by branches from all provinces of the country, and they usually upload a large amount of data (documents, photos, scans etc ...) regularly. Using the app server's storage is too expensive. So I converted the Drupal file system to Amazon S3, leaving only the core and modules on the app server.
- Fast loading: many bloggers have used S3 to store their photos, videos, audios and files, for better serving their readers. As customers are from all over the world, saving the multimedia content to S3 will let them access them much faster.
- And many more benefits
In this tutorial, we will show you how to convert the Drupal 7 & 8 file system to Amazon S3 and sync all existing files to S3 Storage.
1. Preparation
You will need to run several client programs like drush and awscli. So if your site is on a shared hosting, you are not able to install and execute them. Pls download it to your local host and configure it there. After that you can upload to your shared hosting.
The techniques that I use in this tutorial are:
Jul 2015
When you share a post of your Drupal site via Facebook, it will automatically detect the images of your node for you to choose. But sometimes, it does not detect any images, or the detected images are not what you want. How can you deal with that?

An easy method is uploading the main image manually. That's fine, because you are the owner of the site, you know which ones to choose. However, if your readers share that piece of content and it has an ugly image, it does not look attracting at all.
In this tutorial, we show you how to set meta data for your Drupal nodes so the correct images will be chosen, when you share them via Facebook.
How Facebook detects images
According to this thread by bkaid on Stack Overflow, Facebook relies on these following open-graph m...
Oct 2009
How to get more links to your site and raise its ranking
The truth is we always want our website to be more popular, and the fact is if there are more links to your site, it will get a higher rank by search engines. If you have good content, people may want to bookmark them, or share with others. It increases number of links to your sites. So your website ranks higher.
How to motivate visitors to bookmark your content? There are several issues that I want to address now.
As parts of website business, you spend alot of time to create contents that impress many readers. Suppose I read a very good article from your website and I say "Oh, that's great, I want to share it to my friends as well". I open my Facebook, and post it as a link to my Wall. I open my Twitter, and tweet it. But I also have three or f...

