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.

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.

<handlers>
<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=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</handlers>

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

Illegal ways to Earn through ADSense

Originally posted by Aamir Atta at ProPakistani blog.

We all know that people on internet are legitimately earning thousands of dollars per month through Adsense – of course this is nothing new to you and we have discussed many case studies before on this topic.

But today, I am going to reveal those individuals and teams which are exploiting youngsters to earn illegally through Adsense. These teams are formally working in an organized manner, through which they prepare a team of around 1000 members -  where every member cross clicks other’s website and ultimately everyone earns money.

For the purpose, two investigative teams visited such so-called companies separately, and findings were really shocking for me at-least.

google_link_website_banner

Continue reading

Free SMS to any Mobile Number in Pakistan

SMS has become a popular way ( it will not be wrong if I say Most Popular way ) in Pakistan to communicate with your friends and relatives. Keeping this in view, different mobile service providers including Warid, Telenor and Ufone launched different packages for sending tons of SMS at a low price. Most Internet users, including me, used smspk.com and similar sites till recent past for Web2SMS. This is still popular but
Warid is providing this Web2SMS service only to Warid connection holders.
– Other Mobile operators in Pakistan require a reply SMS from mobile user to initiate the Web2SMS.
– Delivery of SMS has been an issue in recent past.

Few days ago I discovered a nice web-site monis.pk for such Pakistanis who use Web2SMS. This site is based on invitations. To get an invitation, post a comment with your mobile number or enter email address.

positives

– There is no need for java support in your browser.
– The thing I liked the most is this that you can send SMS to any number of any connection in Pakistan from one page without the need of navigating to other pages.
– SMS delivery has not been a problem so far.
– Your contacts are added in your friend’s list .. and you can choose their numbers easily.

negatives

– Very few SMS support. Only 4 credits are given to you on registration. And 3 more credits are given when any invitation is accepted and your contact registers. And you can send 1 SMS per credit. To overcome this, one must invite hundreds of friends and make them register.

The site is in alpha stage .. hopefully they will soon upgrade it and will give more credits to site members.

Wateen WiMAX – Unforgettable Experience

Wateen Telecom launched its WiMAX services almost 10 days ago for public and announced different packages for home and business users. I was waiting for it from a long time and was really exited when I saw its opening.

I visited their franchise on Mall Road opposite to Lahore High Court. I observed that the staff has very limited knowledge about their own services and they were asking each other for details. I was told that WiMAX service covers whole Lahore and there will not be any signals problem.

I selected a suitable plan for my home and presented my Visa debit card for payment, but I was told that “machine is not working” ( Which is still not working after 5 days, I came to know today on my second visit ). I arranged Cash and finally purchased the connection.

Now I needed username and password for my connection for which I had to call Wateen’s call center several times. Average time of waiting for call to be answered by Wateen call center is almost 8 minutes. During this I came to know that the device provided with connection ( Motorola CPEi600 ) is not functioning due to signals problem in my area. I should get jupiter (antenna) from franchise to solve the signal’s issue, support staff told. Username and Password was finally received on 5th day after buying the connection. 🙂

Today on Monday Dec 24th, I visited the franchise again for antena and they have asked me to “wait till dec 26th .. then call us again and then we will see this matter.”

Very very poor and slow support which has made my first experience with wateen unforgettable. So far I am struggling to get my connection working.

I’ll keep this post updated while the matter progresses.

— Updates December 26, 07 —

I called Mr Rauf Malik, Manager Wateen Telecom, Mall Road Lahore Franchise today as he promissed to resolve the issue today on my last visit. He has told me that “Please wait till 30th December, when Wateen is going to extend its coverage and hopefully the problem will get resolved” … Frustration continues.

— Updates December 31, 07 —

Late Benazir Bhutto, like many other departments of pakistan, caused delay for Wateen aswell, latest excuse from Mr. Rauf Malik … yet another time I am promissed that technical staff will visit and install jupiter ( antena ) tomorrow … will the sun of this “tomorrow” rise?

— Updates January 3, 08 —
Today I was contacted by Mr. Shahid Qureshi, Head of Support Team in Lahore, in response to my email to wateen support. He has told me that my area is not covered by wateen at the moment but hopefully wateen will extend its coverage to my area in one to two months.
According to Support head, Franchises are provided Maps highlighting the areas which have the coverage. If this is correct, why did they sell me the connection? On the time of purchase, I asked the franchise staff several times about coverage in my area. Why they didn’t give the correct information? These are few questions which need attention of Wateen Management.
Very disappointing. I’ll return the connection tomorrow. 🙁