Categories
Tutorials Wordpress

How to configure W3 Total cache for best performance

Since the time Google announced that the Page Load time also plays an important role in ranking a web site, all of us are craving for a faster site load to get the SERP. But WordPress is notoriously famous for giving slow performance as it dynamically generates every posts and pages using database queries. Usage of various plugins for customization of a WordPress based site adds to this to make the site more slower. It does not mean that we will abandon WordPress and embrace another blogging platform. WordPress is the best blogging platform and have millions of good things to offer. There are various ways to make the WordPress based site faster.

Using a good performance optimization plugin is one of the best way to make your site faster. When we think of performance optimization plugin 2 things come to our mind e.g W3 Total cache and WP Super cache. For a week or so I have been testing both the plugins in various websites and in all my tests W3 total cache has far exceeded WP Super cache in all aspects. The Page speed and Yslow scores are higher in all my tests while using W3 total cache. Only problem with W3 total cache is that, it has huge customization option and if not done properly will result into a negative effect. Hence in this tutorial, I will take you through a step by step configuration of W3 Total cache.

Before you activate W3 Total cache, we suggest you to check the PageSpeed and Yslow score of your website using GTMetrix. Make a note of the scores and see the differences in score after you finish configuring the plugin.

Installing W3 Total Cache

First of all uninstall/deactivate any performance optimization (caching) plugins like WP Super cache. This is mandatory to avoid any conflict in further steps. When you are sure there is no caching plugin running, Download W3 Total Cache for free from WordPress Plugin repository and save it on the desktop. Unzip the archive and use your favorite ftp program to upload it to the wp-content/plugins folder of the website where you want to configure W3 total cache. Before we activate and proceed with the configuration, we will need to make the wp-content folder writable. So using the FTP client, change permission of wp-content folder to 777 till we are done with set up. Now go to WordPress Admin panel and click on plugins, look for W3 total cache in the list of inactive plugins and activate it. Upon activation a new menu item as shown in figure will appear in Admin panel.

This plugin has a nice notification system, which will issue notification messages whenever some action needs to be performed.

General Settings:

The first step in the configuration process is the general setting. Click on the General settings from the new Performance menu that appear. You will be presented with the General settings page.

The General settings is an overview of different features available in W3 total cache. This will show settings for Page Cache, Minify, Database Cache, Object Cache, Content Delivery Network (CDN) and Browser Cache. From here we can globally enable or disable a feature available in W3 Total Cache. By Default the W3 Total cache runs in preview mode. In that mode any changes we make in the plug-in will not be applicable to the live site. So our very fast job is to enable the plugin for the live site by disabling the Preview mode, hence the General settings page will look like this:

If you disable any of the features under general settings the option “Deselect this option to disable all caching functionality” will be automatically unchecked. So if you disable any feature and see that the option is unchecked, do not worry about it. It looks like a wrong reference. While testing various options I found that the Minify settings from W3 total cache can be disabled and we can use another plugin called Wp-Minify for the best minification. So my suggestion for General settings is

Page Cache:  Enable  and the method is Disk (enhanced)

Minify: Disable

Database cache: Enable and the method is Disk

Object cache: Enable and the method is Disk

Content Delivery Network: Enable and the CDN type depends upon what kind of CDN you use.

Browser Cache: Enable.

Once you are sure the general settings look like the above, we can proceed with the configuration of individual features.

Page Cache Setting:

Click on the drop down that reads general setting and select Page cache or click on Page cache from the Performance menu on Admin panel to access the Page cache setting. The Page cache feature of W3 total cache creates static html pages of WordPress posts and pages. So the pages are not generated dynamically every time they are requested. hence it reduce load considerably on the server and site loads faster. There are many option here, but we need not worry about all the features and leave them as per default setting. We just need to change the settings under General category. See the image below:

The settings page above shows that the Page cache feature is currently enabled. Make sure in your set up it reads the same. If you have followed the general setting instruction above, it will read enabled. However for you, if it says disabled, go back to general settings and Enable Page cache. It also gives the option to Empty cache, which will rebuild a new cache with your changes if you have made any.

The option Don’t cache pages for logged in users has been selected for the benefit of Admin who can see the changes in the live site without clearing the cache every time they make any changes. Homepage being the most viewed pages for many site we have selected to cache Home page.

We recommend to go with the default settings for options under Advanced, cache preload and Varnish.

Minify settings:

Minify is the process of compressing CSS, HTML and JavaScript by removing the comments and line break as well as zipping it and then combining the similar files together. So the size of those files will be reduced and loading will be faster. In our test with JS files minified and combined, we ran into some issues with the sites where in tabbers, lazy loading as well as some other functions which depends upon JavaScript did not work. So we disabled the Minify features in W3 Total Cache and used a separate plugin called Wp-Minify. With Wp-Minify we were able to combine and minify the js and css without affecting site features dependent on JavaScript. We also got better Page speed and Yslow result with Wp-minify.

So our recommendation is disable the Minify features in W3 Total cache.

Database Cache & Object Cache Settings:

This Database Cache feature helps in caching Database queries. So when a database query is made it goes through the cache.  If the query is not found in the cache then only actual query to DB will be made. In a WordPress based site what we see at the front end is a result of many database queries in the back-end. Options like Page views, number of comments etc are pulled up from database using queries. So caching these queries will reduce the load on the DB and we can significantly improve the performance.

We suggest not to make any changes in the settings for Database cache and Object Cache, just leave the default intact. If you are on a shared hosting environment, you may even consider disabling these 2 options. If the disk responds slower than the database, these caches don’t help. On the other hand, if the disk works fast, Database Cache and Object Cache can considerably speed up the site.

Browser cache:

When we access a website for the first time, the static files like css, JavaScript etc are downloaded onto our browser and stored in browser’s cache. Next time we access the same website those static files are accessed from the cache. The Browser Cache feature of W3 Total Cache helps in the setting of the behaviors of those cache-able files. It enables http compressions and specify expiration header for the files. The setting in browser cache helps the web browser to understand how to behave with the cache-able files. The browser cache settings will change the rule in .htaccess file. So if you are not sure about modifying the rules in .htaccess file, making changes through the browser settings is the best option. A correct setting here will definitely increase the PageSpeed as well as Yslow score.

By default Enable HTTP (gzip) compression and set W3 Total Cache header is enabled. We suggest you the following settings for browser cache:

Under General Setting Enable(check) the options Set expires header, Set cache control header, Set entity tag (eTag), Set W3 Total Cache header, Enable HTTP (gzip) compression and disable only the option Do not process 404 errors. Enable all the options under Cascading Style Sheets & JavaScript, HTML and Media & Other Files.

The final setting for browser Cache should look like this:

User Agent Group settings:

The user agent group setting has no impact in performance. This is always enabled and helps in redirecting user based upon the user agent of the browser to a different website theme or a different page or altogether a different domain. We can create a group of user agents and take specific action for the group. This option is useful to redirect mobile users to a mobile theme and normal computer users to a normal website theme.

Content Delivery Network Settings:

This is another very important feature of W3 Total Cache plugin. One limitation of web browsers is that simultaneously a browser can download 2 resources from a  domain. So while accessing a website the download able objects have to wait in a que to be downloaded to the browser, so the site load time increases. By using a Content Delivery Network we separate those objects from our primary domain as well as we offer the flexibility of those files being served from a  globally distributed network of the CDN service we use. Hence the site loads much faster. We can even use a sub domain like cdn.primarydomain.com and serve our static files from that sub domain to allow simultaneous download of files.

Currently we at Techie Zone use Speedy Mirror as our CDN provider. This offers 50GB of free bandwidth which is enough for a normal website with around 1000 visitors per day to sustain for 6 to 8 months. If you are looking for a free CDN provider, Speedy Mirror is the best among all. It requires minimal configuration and very easy to set up. The CDN settings we provide here is for speedy mirror. The setup procedure for speedy mirror is so easy that we do not feel like providing the steps here. You just need to register there and provide your domain name. It will provide you a sub domain URL like xxx.speedymirror.com. The static files automatically gets downloaded to their server.

For Speedy Mirror as your CDN provider, we need to Enable the CDN option and set mirror as the CDN type in General setting. Now in CDN settings page under configuration, put the sub domain name you obtained from Speedy Mirror (while setting up the account) for replace site’s host name with option and Auto for SSL support option. Click on Test mirror to test if this is working correctly.

Under general setting, we need to check the options Host wp-includes/ files, Host theme files and Host custom files. Leave the options under Advanced as default.

As we are done with all the settings now, you can check the site performance in GTMetrix and note the scores and compare that with your earlier score. You will surely have a smile on your face looking at those green values.

This concludes the tutorial for setting up the W3 Total Cache plugin. I have tried my best to provide the steps in as simple ways as possible. If you are stuck while setting up the plugin or need any help, you are always welcome to ask for help and we will be glad to help you.

If you need advanced support for setting up this plugin or improving your site speed, we can assist you for a small fee. You contact us and we will get back to you with details.

Categories
Browsers

Internet Explorer 9 features walkthrough

Year 2011 saw a web browser revolution as almost all the web browsers had a major release. Thanks to html5 and CSS3. As the web standard saw a big overhaul, it was necessary for the software houses like Microsoft, Opera, Mozilla to give facelift to their web browsers. And now as a result we have access to better browsers like Internet Explorer 9, Firefox 4 and Opera 11. We have already covered the features of Firefox 4 on the release date and IE 9 though released few days earlier to it, we are covering the feature walk through of Internet Explorer 9 now. It shows our love for Firefox but I would like to say that Internet Explorer looks equally competitive in it’s new avatar as Internet Explorer 9. After I tested the features myself for this post, at the end of it I started loving Internet Explorer 9.

Internet Explorer 9 has seen major improvement in most of the aspects then the predecessors. Let’s have a look at the enormous amount of new features and improvement Internet Explorer 9 currently sports:

Speed:

Microsoft claims Internet Explorer 9 to be the fastest browser. But not sure if it is fastest among all other versions of Internet Explorer or fastest among all the available browsers :). Whatever be it speed is definitely a noticeable improvement in IE 9. Internet Explorer 9 takes full advantage of both the operating system and hardware to fully accelerate rendering of web pages. IE 9 leverages the power of the GPU through the DirectX®, Direct2D® and DirectWrite® API’s to ensure that text is crisp, graphics and animations are smooth. New GPU powered HTML5 enables stunning HD video and audio content without the need for a plug-in.

IE 9 uses a brand new JavaScript engine called Chakra. It is optimized to take advantage of the multiple CPU cores running on Windows Vista and Windows 7 by compiling the JavaScript to highly efficient machine code in the background, while interpreting the JavaScript in the foreground. Once compilation is finished, Chakra switches to the compiled and significantly faster machine code optimized for that PC.   Internet Explorer 9 scores very well in popular JavaScript benchmarks like WebKit’s SunSpider.

HTML 5 canvas support:

Canvas is a way to program graphics on the web. Ths standard has been included with html5. The canvas tag is an “immediate mode” (drawing commands are immediately applied) two-dimensional drawing surface that web developers can use to deliver things like real-time graphs, animations, or interactive games without requiring a separate plug-in to be downloaded. IE 9 has full support for this canvas.

Better User Interface:

IE 9 sports a clean and clutter free user Interface. In Internet Explorer 9, the simplified yet enhanced user interface and user experience puts the focus on the content of each website. By default, only the controls essential for browsing are in the browser frame and less screen real estate is used compared to other current browsers, letting people browse and experience all that the sites have to offer.

Characteristics of each website are reflected throughout the experience, allowing users to focus on and be more immersed in the site’s content. Elements of each website are integrated into the browser. If a site is pinned to the task bar, when the site is launched, the navigational controls integrate the site’s icon and primary color.

New Tab page:

IE 9 uses Windows Direct User Interface (DUI) to create a graphical new tab page that loads quickly and features crisp graphics. When users create a new tab, their intent is to navigate. Internet Explorer 9 focuses on making this experience fast by visually suggesting the sites you visit frequently. Each site is represented by a tile with a large favicon and a title, and users can track their browsing habits with a meter on each tile. From the new tab page, users can also reopen closed tabs, reopen their last browsing session, and start an InPrivate Browsing session.

Optimized Navigation Controls:

IE 9 uses a simplified navigation control. As modern websites include much of the functionality that browsers had in the past, the new browser frame emphasizes the controls that are necessary for browsing, with customizations available to show more controls. The back button in IE 9 is made far larger then any other previous version, because, it is the most used item and it has been placed at the top left. The address bar and search box are combined into one and now called One Box, and the Tools menus are consolidated into a single drop-down menu. Only the functionality necessary for a modern browsing experience is shown.

Pinned Sites:

With Pinned Sites, a user’s favorite websites can be accessed directly from the Windows taskbar without opening the browser. IE 8 introduced Web slices in the Favorites Bar. Because users wanted their sites still more readily available, IE 9 introduced Pinned Sites. With pinned sites you can bring your favorite sites into the Windows taskbar to make access even more efficient. You can pin sites to the taskbar by dragging the thumb pin icon  from One Box to the taskbar. When a pinned site is launched from the taskbar, the browser frame and navigational controls integrate the site’s icon and primary color, emphasizing the site and providing an even more site-focused experience.

Tear off Tab:

If you drag a tab away from the page, the tab will open a new instant of Internet Explorer Window.

Jumplists and Thumbnail Preview:

Jump Lists take users right into the websites they use every day. They’re a quick and easy to way to visit frequently visited websites without first opening Internet Explorer. For example, a user may frequent a particular online bookstore and may always start with her wishlist.To open the Internet Explorer 9 Jump List, users can right-click the Internet Explorer icon on the taskbar. They’ll see their pinned websites, as well as the sites that they visit often. There’s also access to start InPrivate Browsing, open new tabs, or close a window.

Any website that’s pinned to the taskbar also has a Jump List. What’s seen in each of these Jump Lists depends on each website, but all of them include InPrivate Browsing, opening the site, unpinning the site, and closing the window.

Thumbnail preview controls available on the Windows 7 taskbar provide quick navigation to the sites that users want to visit. Some websites that are pinned to the taskbar have additional controls. When a user hovers over a thumbnail for a website in the taskbar, they may see things like playback controls, similar to the controls in Windows 7 for Windows Media Player.

Notification Bar:

Notification bar in IE 9 has been moved to bottom of the browser. Messages in the Notification Bar are clearer and do a better job explaining to the user what they need to know. For example, instead of receiving the message “Internet Explorer is not responding,” the user receives the message “The website is not responding”.

Download Manager:

IE 9 incorporates an integrated integrated Download Manager to provide hassle free downloading and great security for downloaded content. The new Download Manager replaces the Run, Save As, or Cancel box used in earlier versions of Internet Explorer. With the new user interface, users can easily view download progress, open content that they’ve downloaded, Pause and Resume file download or cancel a download that is in progress. A default folder is used for all downloaded content, so users can also change the default download destination folder. As a security measure, all downloads are now scanned for virus and downloads of executable are verified for reliable source using WinVerifyTrust.

Domain Highlighting:

When displaying the current URL in the One Box, IE 9 highlights the domain name in black, while the rest of the URL is shown in grey. This makes it easier to identify the actual identity of the sites that users visit and helps to alert users about deceptive websites with misleading addresses. This can reduce the chances of compromising personal information while browsing and definitely curb the phising sites.

The features mentioned above are some of the noticeable and much talked about features you will see in IE 9. We have prepared a Power Point Presentation IE 9 features explained with great screenshots and explanation of all features in more detail. You can download the IE 9 features presentation .

Categories
Tips & tricks Webmaster

Use robots.txt to prevent website from being ripped

We all want to prevent our websites from being ripped. If you have a unique design the desire to prevent it from being duplicated is more. So we need to have an effective way of preventing rippers from getting an exact replica of our website. There are a plethora of website ripping applications like WinHTTrack or Webreaper which have been surfacing now a days and the rippers use these applications to create website replicas. They can use the replicated dump to create an exact clone of your website.

These rippers use bots to crawl the target websites and create static html version of all pages, copy the images, style sheets, JavaScript etc (Can not copy PHP or ASP files) and save them on the hard drive maintaining the directory structure and hyperlinks. Once the complete website is downloaded to your PC, you can use the website offline even if you are not connected to the Internet. These downloaded data can also be used to make an exact replica of your website. For static html based website the cloning becomes much easier. None of the webmaster will ever wish to allow anyone to rip their website but most of them wonder how to prevent such an operations.

The image below shows how the usage of an effective robots.txt file in our website root prevented WinHTTrack to copy our content and data:

We can use the robots.txt file to prevent the website ripper bots to crawl our website and subsequently the program will not be able to copy anything. We know that bots access to a website can be controlled using robots.txt which sits in the website root directory. Whenever we use a ripping program the bot used by the program will have to pass the check in robots.txt. If it finds that there the rule in robots.txt that disallows the bot, it will no longer be able to crawl the site which is a win-win situation for us. In robots.txt we have either an allow or a disallow rule, which looks like this:

User-agent: <User Agent name>
Disallow: /

User-agent: <User Agent name>
Allow: /

In the above examples the / indicates the root directory. It can be replaced with the directory path to which we wish to allow or deny the access. So when a bot goes through robots.txt and find itself under the Deny rule it will stop there itself and can no longer enter into the website.

This robots.txt method can be used to prevent email harvester, leechers or any such evil spirited applications from accessing your site. We have compiled a commonly used evil programs and created the deny rule for those programs. You can use the list below in your robots.txt file to create a preventive shield from the evil programs like WinHTTrack or Email Collector or Web Downloader. If you do not have a robots.txt file in your website root, create one with the following content or if you have one, you can just copy paste the content in your existing robots.txt file.

# This list is compiled by Techie Zone part of Qlogix Network.
User-agent: Teleport
Disallow: /
User-agent: TeleportPro
Disallow: /
User-agent: EmailCollector
Disallow: /
User-agent: EmailSiphon
Disallow: /
User-agent: WebBandit
Disallow: /
User-agent: WebZIP
Disallow: /
User-agent: WebReaper
Disallow: /
User-agent: WebStripper
Disallow: /
User-agent: Web Downloader
Disallow: /
User-agent: WebCopier
Disallow: /
User-agent: Offline Explorer Pro
Disallow: /
User-agent: HTTrack Website Copier
Disallow: /
User-agent: Offline Commander
Disallow: /
User-agent: Leech
Disallow: /
User-agent: WebSnake
Disallow: /
User-agent: BlackWidow
Disallow: /
User-agent: HTTP Weazel
Disallow: /

As this post is targeted for Webmasters and you are reading this post indicates that you are one of them, we would also suggest you to read the post on Increasing your website speed.

Categories
Internet Social Media Tech News

How to use Google +1 social recommendation feature

The Search Engine giant Google announced yesterday about  a new Social recommendation features called Google +1 which is inline with the Facebook’s like button. Google seems to be in a hurry in releasing new features to enhance the end users experience and provide the best search result. Some days back they released the feature to block unwanted search result and now this Google +1. Google claims that it is their endeavor to provide better result through human recommendation rather then completely relying on machine. With this new Google +1 feature you can now publicly recommend any search result or ads that appear in Google search result and it will be included with the search result. Google will show the number of recommendations for that search result when it will appear for any query.

Google +1 is now released as an Experimental feature and in order to be able to use this service you need to have a Google profile and join this experiment. In order to enjoy the Google +1 feature, please perform the following steps in the same order as they are given below:

1. If you do not have a Google profile create a Google profile and make it public. If you have a Google profile upgrade it to accommodate the new features.

2. Go to Google Labs experimental search page and click on Join this experiment button. (Thanks Vibin Reddy)

3. While logged in to your Google account search for something in Google and look for the search result. You will see the +1 button beside the search result now. Click on the +1 button near any relevant result to leave your recommendation for that page to the world.

4. For the first time when you click on the +1 button you will see a pop up window where you will need to confirm for the +1 to take effect.4. You can undo your action immediately by clicking on the button again.

While showing the recommendations to you or any one in the search result Google takes into account your social connections to determine. The social connection includes people from your Google contact, Google Buzz  and Google reader followers and Google chat contacts.

Managing the +1s

All the +1 recommendation you have done will be available in your Google profile +1’s tab. However you have the option to choose whether to make this tab publicly available or make it private by clicking on Edit Profile and un checking the option “Show this tab on my profile”. In order to manage the +1s:

1. Login to your Google profile and click on +1’s tab.(For me the +1 tab did not appear immediately but took almost 5 minutes after I did a recommendation)

2. You can delete any recommendations, you no longer want to share from this tab by clicking on the X mark towards the right of the +1 content.

+ 1 on non-Google sites: (This part is a direct copy from Google as the information is not clear)

The only time the +1 button will associate your identity with specific web content is when you choose to click the +1 button for something on the web. By clicking the +1 button, you’re explicitly signaling interest in displaying, sharing, or recommending specific online content, including ads. So if your friend chooses to +1 an ad, page, or search result, you might see that +1 on other websites. Google stores your +1’s to personalize the web, for example, by showing them to your social connections and others who may find it relevant. To change the +1 preference on non-Google sites:

1. Login to your Google account

2. Click on the Edit link near + 1 on non-Google sites

3. Select the appropriate option in the following window and click on save.

Google will utilize the +1 activity, Google profile and your social connection to tailor made the content for and ads for you. Though this is a nice move from Google to make their search result more social but it has lot of potential for exploitation. In order to promote the search result website owner will now hire people to recommend their website and gain higher recommendation for crappy results. But when this is used without any evil purpose this will definitely going to help web searcher to find good result for their queries. Please share your opinion on what you feel about this new Google +1 feature.

Categories
Internet Web App

7 best free Online Storage service

The Internet has clearly played a vital role in our life. Now our workplace is no longer limited to Office cubicle or our sweet home but has become a mobile office.  In some situations we also access different systems from time to time. In such cases we need our files and documents to be readily available to us whenever we wish.This is when an online storage or Cloud Storage comes as a rescue. Online Storage service helps us in accessing our files and folders from any computer over the Internet. They make it possible by syncing our files and documents from computers to a cloud storage. So with an Internet connection we can access the latest updated file from any where in the world. With a boom in cloud computing many Online Storage service providers have come up. We need to have a clear evaluation of those services before we sign up with them.

In this article we will have a brief overview of 5 of the best free Online Storage service currently available. Please make a note that we are not considering about the file hosting service like file serve or rapidshare, which are different than our topic of discussion. We have shortlisted the service providers based upon criteria like:

– Storage capacity

– Ease of use

– Speed of sync/upload/download

– Features of the service

– SugarSync

SugarSync is my first choice when it comes to Online Storage as it offers almost all functionalities that I need in a good Online Storage service. Sugar Sync is an online cloud storage service which gives option to backup, share and sync your files between any number of computers. IT also facilitates the access to files through mobile devices like iPhone and Android based phone. Some of the features of SugarSync includes:

1. The free plan provides a whopping 5GB space plus additional 500 MB space for each referral and 250MB space for completing the steps in getting started.

2. Provides Windows & MAC client (SugarSync manager) so you can use the Online drive as if it is a normal hard drive in your PC.

3. There is no limit to the number of PCs that can be synced.

4. Offers seamless collaboration among team members so you can share different files with different members.

5. Photos synced with SugarSync are automatically organized into photo albums.

6. The music files synced with SugarSync can be played over the internet using the SugarSync music player.

If you have iPhone or iPod Touch, you must download the free SugarSync App, it is amazing and I am quite satisfied with it.

You can Signup for SugarSync and enjoy 5GB of free Online storage.

-Box.net

Box.net is another pretty good Online Storage service provider which offers some of the quite impressive specs. It has a pretty good user interface and offers syncing files to their cloud storage. Box.net clearly distinguish between free users and paid users and there by limit the features to free users. Some of the features of Box.net are:

– The free plan provides 5GB of storage with 25MB file size limit.

– Offers direct we blink to share files and folders.

– Unlike the SugarSync the desktop client is available only for business and enterprise users.

– The folders can be designated as a public webpage with a  vanity URL.

– It also provides mobile access through iPhone and Android apps or through a mobile site.

– Provides 256 bit encryption for business users.

– Dropbox

Dropbox is the simplest of the above two in terms of look as well as functionalities but offers a wide variety of features when you install the dropbox client. It offers other features like sync, backup, mobile access and desktop client for easier access. The free version of Dropbox only offers 2GB space and additional 250MB space for each referral when they signup and install dropbox client.The file upload size of Dropbox is just 300MB. All files stored on Dropbox enjoys the security of 256 bit SSL encryption.

– Windows Live Skydrive

Windows Live Skydrive is also one of my preferred Online Storage service provided by Microsoft. The primary reasons for popularity of SkyDrive are the 25GB free Online Storage and the ability to work with Microsoft Office document online without installing Microsoft Office. It also Provides Photoalbum, Access control based sharing so you have the power to decide who sees what. Another USP of SkyDrive is the SkyDrive synced storage available through Windows Live Mesh, which enables syncing of Photos and videos between your computer and SkyDrive. With so many features Windows Live SkyDrive online storage service is also a must have recommendation from us.

– Amazon Cloud Drive

Amazon Cloud Drive is the newest offering from Amazon and has been launched just a couple of days ago. It gives 5GB of free Online Storage to store your important files, documents, photos and music securely in the cloud. As of now there is no desktop or mobile client for syncing files, so need to upload the files manually. However it supports file upload size of 2GB which a great advantage. I seriously hope that Amazon will come up with a desktop client for file synchronization and also a mobile client for access to files on the go. This will make Amazon Cloud drive as one of the most preferred Online Storage solution.

If you are located in United States and wish to upgrade the Amazon Cloud Storage space to 20GB, you can do so by spending just $1. The normal price for 20GB space is $20 per year, however if you buy a mp3 song from Amazon music store, Amazon will upgrade the free user limit to 20GB. Amazon music store is only available to US customers. Thanks Amit from Digital Inspiration for the tip.

– FlipDrive

The FlipDrive has quite impressive functionalities however it has limited features for free users. It offers only 1GB storage for free users and the cheapest plan starts at $4.95 per year. It synchronizes and  backup your files, folders, photos, music, contacts and calendars. With so many features we definitely need some additional space for free users. Moreover they do not have any referral program by which we can increase the storage limit for free account. This also does not have a desktop client available at this moment. So the sync process is purely manual.

-Adrive

The only reason we put Adrive in the list is because of the amount of disk space it offers. Adrive offers 50GB of free online storage. Apart from the massive amount of storage nothing looks impressive for ADrive. It does not have mobile access or a desktop client for syncing but supports both file and folder upload through browser using Java applet. Ads appears in the user interface and the UI looks very clutter. Overall if you wish to store a lot of junk items Adrive can be your preferred choice of service.

These online storage services not only make our files available to us whenever and wherever we need those, but they also give us an extra layer of protection by keeping a backup copy of our most important files. I usually use Online Storage for syncing files between my work and home PC and keep a backup copy of my most important documents and photos so that I will never lose them even if my hard drive or the backup DVD is gone. Please let us know which Online Storage service you are using and for what purpose you primarily use.

Categories
Webmaster Wordpress

How to make your WordPress site faster

If you have a blog running on a WordPress installation you might have noticed that the loading time of the blog is not as impressive as other non wordpress based sites. WordPress is database driven and is developed with PHP and MySql. Contrary to a static html based website where all the available pages are already present, WordPress generates the pages on the fly with the help of database queries. If you are on a shared hosting, where there are restrictions in CPU usage and system resources, it is very much required to make your WordPress installation as optimized as possible. Failing this your site will be very very slow and increase server load considerably resulting in cancellation of your hosting account. Also a faster site will provide a better user experience and a lesser bounce rate. It has been noted that 40-60% of daily visitors to a site are first time visitors so they come with an empty cache. Making your page fast for these first time visitors is key to a better user experience.

There are various ways to improve the load time of any websites, but in this topic we will primarily discuss about a WordPress based website. Following the methods described below will definitely make your website lot faster as well as reduce the load on the server.

1. Optimizing the header.php

If you look at the header.php file of a WordPress theme, you will see a lot of php codes in it. For the easier usage of themes the theme developer usually pulls lot of data from the database. But when we install the theme we need to make as many option static and hard coded as possible. Making the header of any WordPress theme static/hard coded will reduce almost 10 to 12 queries. Let’s see this with an example of one of our in-house developed theme Mashlife:

We have the following lines in header.php that can be changed to hard-coded code once this theme is installed on a website.

<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="screen" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/images/favicon.ico" />
<script language="javascript" type="text/javascript" src="<?php bloginfo('template_url'); ?>/javascripts/jquery.js"></script>
<script language="javascript" type="text/javascript" src="<?php bloginfo('template_url'); ?>/javascripts/tabber.js"></script>
<script language="javascript" type="text/javascript" src="<?php bloginfo('template_url'); ?>/javascripts/superfish.js"></script>
<script language="javascript" type="text/javascript" src="<?php bloginfo('template_url'); ?>/javascripts/lazyload.js"></script>

The above codes can be easily changed to the below code and it will still give the same result.

</pre>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="http://sitename.com/wp-content/themes/themename/style.css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="Sitename RSS Feed" href="http://sitename.com/feed/" />
<link rel="alternate" type="application/atom+xml" title="Sitename Atom Feed" href="http://sitename.com/feed/atom/" />
<link rel="pingback" href="http://sitename.com/xmlrpc.php" />
<link rel="shortcut icon" href="http://sitename.com/favicon.ico" />
<script language="javascript" type="text/javascript" src="http://link-to-javascript-folder-in-theme/jquery.js"></script>
<script language="javascript" type="text/javascript" src="http://link-to-javascript-folder-in-theme/tabber.js"></script>
<script language="javascript" type="text/javascript" src="http://link-to-javascript-folder-in-theme/superfish.js"></script>
<script language="javascript" type="text/javascript" src="http://link-to-javascript-folder-in-theme/lazyload.js"></script>

The best way to convert the dynamic php code to hard-coded static html code is, by viewing the source of the website and copy those lines directly from the source and replace with corresponding lines in header.php. The above example will reduce the database queries by 10.

2. Optimizing the footer.php

The footer area in WordPress blog is served by footer.php file. This file also contains some lines of code that can also be converted to static hard-coded html code. You can look for Powered by line and also “template_directory” lines in the code and replace them accordingly (refer the tips in header optimization. In our Mashlife theme we can replace the following codes:

<a href="http://qlogix.net/"><img src="<?php bloginfo('template_directory')?>/images/logo-small.png" width="97" height="25" alt="Qlogix Solutions" /></a>
<a href="http://wordpress.org/"><img src="<?php bloginfo('template_directory')?>/images/wp-logo.png" height="25" alt="Wordpress" /></a>

With this one:

<a href="http://qlogix.net/" title="Qlogix Solutions"><img src="http://techiezone.net/wp-content/themes/mashlife/images/logo-small.png" width="97" height="25" alt="Qlogix Solutions" /></a>
<a href="http://wordpress.org/"><img src="http://techiezone.net/wp-content/themes/mashlife/images/wp-logo.png" height="25" alt="Wordpress" /></a>

This changes will reduce another 2 queries to the database.

3. External Stylesheet and script:

Put the stylesheets and java scripts in external files so that these files will be cached by the web broswer and will not be downloaded upon every page visits. This will also reduce the size of html document.

4. Reduce the number of http requests:

Each mention of style sheets and scripts in an html/php document increase the http request by one there by increasing load time. So whenever possible combine all css into one style sheets and all scripts into a single scripts. For images, the best method to reduce http request is the use of CSS Sprites.

Also note that the plugins add Database queries as well as style sheets, those style sheets will again take additional queries to retrieve the style information. We can combine these styles with our theme’s style sheet and reduce queries as well as clutters in the website. To see if any plugin is adding style sheets and Javascript, just view the source of the website and look in the header and footer area.

<p id="line28"><link rel="stylesheet" href="<a href="view-source:http://techiezone.net/wp-content/plugins/sharebar/css/sharebar.css">http://techiezone.net/wp-content/plugins/sharebar/css/sharebar.css</a>" type="text/css" media="screen" />

A code like above indicates that the sharebar plugin in my WordPress installation is adding styles through sharebar.css file. WordPress beginner has a nice post detailing the effects of WordPress plugin to site load.

5. Remove unnecessary plugins:

Use only the required plugins, do not over load your WordPress installation with unnecessary plugins which is not serving any real purpose. Most of the time I am tempted to install plugins to achieve something which is not really required. So always stay away from those plugins. We will publish a list of really important plugins for WordPress in a  future post.

6. Use a caching plugin:

The caching plugins like WP Super Cache creates html version of your WordPress pages which is directly served by Apache. This method of serving webpages does not require processing large chunk of php codes on each request, hence this substantially increase page load time to a higher extent and reduce server load.

7. Minify Javascript and css:

Minifying is the process of removing unnecessary characters, white spaces and comments from the code to reduce the size, which in turn improves the load time. You can use WP Minify plugin to compress and combine your css and javascript files. The WP Minify grabs JS/CSS files in your generated WordPress page and passes that list to the Minify engine. The Minify engine then returns a consolidated, minified, and compressed script or style for WP Minify to reference in the WordPress header.

8. Use Yslow to determine the load issue:

Yslow by yahoo is a Firefox extension which works wth Firebug add-ons. It analyzes web pages and suggests ways to improve their performance based on a set of rules for high performance web pages.

The above methods can be performed by any one and will help in page load time to a great extent. There are other methods which may not be as easy as the above and can not be recommended for a newbie, also they may incur cost like using Content Delivery Network (CDN) to serve your static contents.

Please let us know if your site load time increased after following the methods listed here. Also please share any other emthods which you feel will contribute to sites load time without lot of efforts.


Categories
Internet Social Media

Prevent the Facebook Virus “Get your Facebook Email” @facebook.com

It has been seen recently that Facebook has been the primary target for Scamsters like spammers and hackers. We have seen quite a lot of virus like ” Click here to see how I look like in 20 years” and “OMG I don’t believe this” spreading in Facebook now a days. The most recent one is the “Get your Facebook Email” @facebook.com. These viruses are spreading in the form of Facebook Apps and advertise themselves through Facebook chat messages. Many people think these are legitimate messages from their friends and fall victim to it. So this way the virus spreads themselves exponentially in a very short period of time.

Today I received a message from one of my blogger friend which said Hey claim your @ fb email address b4 its 2 late! bit.ly/fA05Dk. In a moment the suspicious me, found out that it is another hoax message. But I wanted to delve into it further. So I clicked on the link and found out that it is the work of a new App called ownuniqueemail. It seems I was among the first one to receive this message as at the time when I tried to access the app, it had only 2 fans. My suspicion grew stronger when I saw a message that the Application can not be accessed over https. (As I have enabled https in Facebook for better security). Within a couple of minutes I started receiving this hoax message from many friends. All saying the same thing in different variant and using different URL shortening service pointing to same app.

What does it do?

When you receive a message from your friend and you click on the link, the app will ask for your permission to integrate with your Facebook account. In the permission page it will also ask the permission to access Facebook Chat. Once you grant access that’s all. It will send a message to all your facebook friends which says “Get your Facebook Email” @facebook.com or “Hey claim your @ fb email address b4 its 2 late! bit.ly/fA05Dk” or some other variant of this message. In a very short span of time this App will spread virally. This has not been seen to cause any harm or steal/hack any account. This is just a self promoting application.

How to prevent “Get your Facebook Email” @facebook.com virus?

1. If you have enabled the https in Facebook account security section, you will see a message to switch to regular connection, when you click on the link to go to the apps page. So it will prevent you from direct access of the App. You can click on cancel on this page. Moreover this viral app can not be accessed over https. So you are somewhat safe.

2. Even if you have clicked on the link do not grant permission in the next page where it says “Request for permission”.  Just click on leave App and you are safe. As a contribution towards the community, you can instead click on Report App on the same page.

3. Ask your friends not to believe this message they received and refrain from sharing it. Also share this blog post with them and post about this post on FB wall. (I know this is a shameless promotion of my blog post, but at least it will help people in some ways.)

Please let us know if the post helped you and your friends by writing a few lines in the comment.

Categories
Internet Tips & tricks

How to type in your native language

Are you wondering, how your friends send you scrap in Hindi/Oriya/Tamil or how they update their Facebook status message in Hindi/Oriya/Tamil. If you use Orkut (seen in some other Google application like blogger, Gmail) you would have seen that there is an option to type in your native Indian languages like Hindi/Bengali/Tamil etc. This is all possible because of a technology called Transliteration. There are various Transliteration provider, but the one provided by Google is very accurate and offers lot of fucntionalities. Transliteration converts the typed English characters into a native language based upon how it is spoken. It is not same as translation. So with the help of Transliteration tools you can phonetically type a word in English using a roman keyboard and it will be converted to the desired native language. So when you type Mera Bharat Mahaan, it will be converted to मेरा भारत महान.

Google Transliteration tools are available in different formats like Transliteration Bookmarklet, Transliteration IME and a dedicated website.

The Goolge Transliteration website is a dedicated website by Google which can be used to type in 24 supported language like Amharic, Arabic, Bengali, Chinese, Greek, Gujrati, Hebrew, Hindi, Japanese, Kannada, Malayalam, Marathi, Nepali, Oriya, Persian, Punjabi, Russian, Sanskrit, Serbian, Sinhalese, Tamil, Telugu, Tigrinya and Urdu. Using this website you can type whatever you want and then copy the transliterated version of the text and paste it wherever you wish. I selected Hindi from the drop down and typed my name in English using my normal keyboard and it got converted to अजय कुमार मेहेर.


Google Transliteration Bookmarklet is another way to use the transliteration service in any website with a text box to type. This bookmarklet is a simple piece of code which resides in the browser and provides you the option to chat, compose an email, update Facebook status or send scrap in your native language. Google Transliteration Bookmarklets are available in 19 different languages – Amharic, Arabic, Bengali, Greek, Gujarati, Hindi, Kannada, Malayalam, Marathi, Nepali, Persian, Punjabi, Russian, Sanskrit, Serbian, Tamil, Telugu, Tigrinya and Urdu. In order to use the Transliteration bookmarklet fature, you need to drag the appropriate bookmarklet to your browser’s bookmark toolbar.  For example to type in Hindi Drag the following bookmarklet to your Bookmark toolbar.

Type in Hindi

Transliteration IME offered by google is an Input Method Editor(IME) a very small program which allows to enter text in your native language using a standard Roman keyboard. Google Transliteration IME is available for 22 different languages – Amharic, Arabic, Bengali, Farsi, Greek, Gujarati, Hebrew, Hindi, Kannada, Malayalam, Marathi, Nepali, Oriya, Punjabi, Russian, Sanskrit, Serbian, Sinhalese, Tamil, Telugu, Tigrinya and Urdu. The Google IME provides the most advanced features and lot of customization. We ned to install a separate IME for each language. Once installed, it will show a status window at the bottom right corner of desktop. It has options to change language as well as settings option. This page provides further information about the Google transliteration IME.

Categories
Browsers Internet Product release Tech News

Firefox 4 Release date and Features walkthrough

An Update to the post has been provided at the bottom. Mozilla took down the ftp download link.

Finally the wait is going to be over in a couple of hours when the much awaited Firefox 4.0 will be released on 22nd March 2011. All thanks to Microsoft for releasing IE 9. The war of the browser has intensified. As IE 9 has been released last week and people are quite gung-ho about the new Internet explorer, Mozilla could not have delayed the release of the final version of Firefox 4. So the decision came at the right time.

The Release Candidate (RC) version of a program can be regarded as the final version when functionality or design is concerned. So the final version of Firefox 4 will sport the same look and offer same functionality as the RC version. So let’s have a quick look at the features and improvements we are going to see in Firefox 4.

– User Interface

> Menu Bar

The menu bar is by default hidden in Windows Vista and Windows 7. This is to give it a more consistent look with the User Interface of the OS. Instead of the menu bar you can see a new Firefox button in orange color at the top left corner. (It mimics the Opera).

> Tabs

The tab position has been moved to the top of the Window. This is to give more visual priority to the tabs. But while switching to Firefox 4, you might feel it bit awkward especially if you are regular Firefox user. After I switched to Firefox 4, I have looked for the tabs in it’s old location because of the habit :).

Firefox Panorama is another improvements which organizes tabs into groups and lets you perform various operations on tab groups.

Switch to Tabs is another feature in Firefox 4 which lets you switch to an already opened tab when you type the same website name.

App Tab feature in Firefox 4 lets you keep the always open sites like Web Mail, Facebook etc a permanent position on the browser. So you do not need to have a separate tab for those. Just right click on the opened Tab and Select Make into App Tab and you are done.

> Stop/Refresh/Go button

The stop, Refresh and Go button has been combined into one and placed at the right of address bar. The buttons appearance changes dynamically depending upon the page status.

Overall the improvement is user Interface gives Firefox a much need look and removes lot of clutter present in older versions.

– Firefox Sync:

The Firefox Sync is an Add-on released for earlier version of Firefox. But With Firefox 4 this feature is built-in. Firefox Sync helps in  synchronizing bookmarks, browsing history, passwords, preferences  and last 25 opened tabs across multiple computers. The user data are synced to Mozilla seever and kept there in an encrypted format and it is synced to PCs you use.

– New Add-on Manager

Firefox 4 sports a brand new Add-on manager window. This new Add-on manager gives an easier way to manage Addons and personalizing the browsing. The new add-on manager has 4 categories viz. get Add-ons, Extensions, Appearance and Plugins.

Apart from the above visual changes, there are a lot of changes as given below in the core as well as security improvements in Firefox 4 which undoubtedly makes Firefox the best browser.

– Complete CSS3 and HTML 5 support

– Supports WebM video standard so you can watch HD quality video and 3D graphics support through Web GL.

– Integrate Multi Touch support for Windows 7.

– Support for different platform like Windows, mac and Linux.

– Improved security through HSTS (Http Strict Transport Security)

– Firefox 4 is the fastest browser in handling JavaScript, thanks to JagerMonkey JavaScript engine.

-Download

The Firefox RC download link is available at the Mozilla Firefox web page. However it says it is the RC 2 release and the file name is Firefox Setup 4.0 RC2.exe however the FTP location of Mozilla gives this file Firefox Setup 4.0.exe

When I installed the file from FTP location it still says Mozilla Firefox 4 like the RC version when you click on Help > About. It may happen that Mozilla has already kept the final version in the ftp as they are getting ready for the release.

UPDATE:

After many bloggers published the news of the presence of final version of Firefox 4.0  in Mozilla FTP repository, they have taken down the download link and now the link says “Page Cannot be displayed”. I noticed this at IST 2.40AM.

UPDATE:

The link has not actually been taken down, but gives a permission denied error when tryng to downlaod drectly. SO go to the following link and right click on Firefox Setup 4.0.exe and selct Save link as ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/4.0/win32/en-US/

Categories
Internet

You can block unwanted search result in Google search

Yes that’s true. Google is known for pioneering new things, and this time they have leveraged some power to end users to control how the search result appears to them. In other words now an individual searcher has the ability to let a website appear in his/her search result. That means if you are nagged by irrelevant websites appearing in your search result, you can just block those sites and from next time those sites will not appear in your search result for that keyword search as well as that domain is altogether blocked from your search result. This is obviously a welcome move from Google. And low quality sites will get blocked/hidden by many experienced searchers.

Overview of the feature

With the latest set of improvements in Google search, it is now possible to control the appearance of websites in the search result. So when you are searching for something in Google and you clicked on a result but found that the resulting website is irrelevant to your search, you can block that website and it will not appear in your future search result.

This feature is currently available for search result in google.com in English for users with Chrome 9+, Firefox 3.5+ and Internet Explorer 8+. So if you are using an outdated browser then I am sorry, you will not have any luck.

How this works?

– Go to google.com and not any other Google domains like google.co.in

– Search for something and on the result page click on any search result, now go back to the search result page.

– You will see a new link (beside cached, similar) appearing near the search result where you clicked.

– Hover the mouse over the new link (block all example.com results) and it will tell you Not helpful, you can block example.com search result when you are signed in to search). Click on that block all example.com results and t will vanish with a nice funky effect from your search result page. And it will give a notification saying we will not show you results from example.com again with a Link to Manage Blocked sites and Undo the action.

– Now try to search for the same query again and you will see the particular website is no longer appearing in the search result. However at the bottom of the search page you will see an alert like you blocked X results from  example.com

The above mentioned things will work irrespective of you logged in to your Google account. However when you are signed in, then only the block for the website/domain will be confirmed and you will be able to manage the domain.

Note: In the year 2005 Google search introduced a feature called remove result but it was taken down before it was rolled out to every one. (Thanks Alex Chitu for this info). This feature has been announced by Google blog