Fatal error: Call to undefined function mcrypt_encrypt() – Solved

While setting up a php project on CentOS 6, I came across an error   “Fatal error: Call to undefined function mcrypt_encrypt()”.

I thought mcrypt is not installed and that should be an easy fix.  Just a quick “yum install php-mcrypt”.  Nope.  It was already installed. After digging around for a while, installing, uninstalling, rebooting etc, I checked a config file /etc/php.d/mcrypt.ini.

Continue reading

How to take screenshot on HTC One x

There is a very easy way of capturing a screenshot in the HTC one x without installing any other app.

1. Hold down the POWER button
2. Then press the HOME button. That’s it! Yes, it’s that easy.

You’ll see a message on the screen saying “Screenshot saved to Camera shots”. You can now go to your Gallery app to see the screenshot that you have just captured.

Seven continents from largest to smallest in terms of land area & population

Continents by size

#1 Asia – (44,579,000 sq km)
#2 Africa – (30,065,000 sq km)
#3 North America – (24,256,000 sq km)
#4 South America – (17,819,000 sq km)
#5 Antarctica – (13,209,000 sq km)
#6 Europe – (9,938,000 sq km)
#7 Australia/Oceania – (7,687,000 sq km)

Continents by population

#1 Asia – (3,674,000,000)
#2 Africa – (778,000,000)
#3 Europe – (732,000,000)
#4 North America – (483,000,000)
#5 South America – (342,000,000)
#6 Australia/Oceania – (31,000,000)

Continents by the number of countries

#1 Africa – (53)
#2 Europe – (46)
#3 Asia – (44)
#4 North America – (23)
#5 Australia/Oceania – (14)
#6 South America – (12)

Ref: http://en.wikipedia.org/wiki/Continent

ASP.NET Ajax client-side framework failed to load OR ‘Sys’ is undefined

I had an ASP.Net 4 website in Web Forms it was working fine on local machine and on one of our Windows 2008 R2 server which had Framework 4.0. But when we moved to production machine which also had Windows 2008 R2 server, website started to generate Ajax client-side framework failed to load error on pages which had UpdatePanels. After searching for some time, found the solution. This was actually caused by the fact that the website had an application pool set to .NET 4.0 but the [Handler Mappings] for the *.axd files where not registered. I had to add following handlers in my Web.Config file.

<remove name="WebServiceHandlerFactory-Integrated"/>
<remove name="ScriptHandlerFactory"/>
<remove name="ScriptHandlerFactoryAppServices"/>
<remove name="ScriptResource"/>
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

After adding this its working perfectly. But I am still not sure, why these handlers are already added in our testing server and not on production.

Download IE9 Offline/Standalone Installer

Microsoft has finally released final version of its browser IE9 and made available for download from beauty of web site. There are many exciting and new features in this awesome browser.

You can download latest version from here, this will be a small downloader that will later download updates from web. if you’re looking for offline installer for IE9 download it from below.

Here are final IE9 offline installer download links

IE9 (x86)  for Windows 7

IE9 (x64) for Windows 7

IE9 (x86) for Vista

IE9 (x64) for Vista

Zong – mistakes and misleading messages



I subscribed for the daily SMS bundle offer from zong by sending “sub” to 700. I received the following replies from zong.

1) “You have ordered package Daily SMS 500 for SMS_Bundle successful.”

2) “You have ordered package Daily SMS 500 For SMS Bundle successfully. The package is activated now. Keep enjoy with ZoNG.

You see the simple English language mistakes in these replies? “successful” is used instead of “successfully” and in next message “Keep enjoy” is used instead of “Keep enjoying
Should big companies like Zong, ignore such things?

Continue reading

Download PTCL V-Wireless driver ( Huawei Sets )

vfone_n_logoV-fone is wireless phone service by ptcl using CDMA2000 1X technology. They are covering over 10,000 urban, suburban and rural villages. The network is already enabled for Voice, Dialup-Internet access (153.6kbps) and EVDO Broadband.

I have found many people around who have lost their CDs which come with Huawei sets, provided by PTCL in their V-Wireless ( V-Phone ) package. So I decided to put it on web for easy search.

Please download the setup from http://www.dotriz.com/wp-content/uploads/huawei_ptcl-v-wireless.zip

Installation guide for PTCL v-wireless is available on their website. You can view these instructions at http://www.ptcl.com.pk/contentp.php?NID=118