Thursday, 28 May 2009

Internet Explorer 8: Compatibility View

There is a new feature in Internet Explorer 8, called Compatibility View
Microsoft redesigned layout rendering engine of IE 8, some times this causes older web sites not to be correctly displayed in IE 8, which were looking good in IE 7 and earlier.
So resolve this issue, IE 8 has a feature to change the layout rendering, called "Compatibility View", by selecting this option, you tell the browser to render as if it is IE 7.

If your old web sites have some trouble displaying in IE 8, and you do not want to solve those problems, an easy way is just to say the IE to render it in IE 7 mode.

You just need to add this line of code in your head section of your HTML pages:
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />


That's all!

Monday, 25 May 2009

Windows 7 Managed Code APIs

Have you ever tried to use some Windows APIs in programming languages other than C/C++?
You had to write some wrapper classes and that was really a time consuming and some times a complicated job, and some times you may ended doing that job, canceling the entire project, or using C/C++.

Some APIs are easy to implement in other programming languages, but some are really challenging.

Here is a good news for .NET developers: Microsoft announced "Windows API Code Pack for Microsoft .NET Framework"

Simplifying the use of Taskbar, Libraries, Sensor, and multi-touch from your .NET application.

Here you can read more about this pack and you can download it from here.

Wednesday, 6 May 2009

How to Disable Cellular Data Network (Internet) on iPhone?

Before iOS 4, you could not disable cellular data network on your iPhone easily, to solve this issue in your iPhone whose OS version is less than 4, you can follow these instructions:

You may need to disable cellular data network on your iPhone in some conditions, after tapping menus and wasting your time, you may find out it is impossible, or you can not find it!

Your first choice is right, it is simply impossible!

So how you can prevent your iPhone from accessing cellular data network?

1) Tap Setting -> General -> Network -> Cellular Data Network
There you will see some boxes to enter user name, password and etc. You need to simple enter some wrong data! Then turn your phone off and power it on again.
That's all!
And if you would like to use cellular data network again, you just need to roll back the settings you made.

2) Simply ask your operator to disable cellular data network for your sim-card!

3) Upgrade your iPhone OS to iOS 4 and follow the following steps.


After iOS 4, you can switch on or off cellular data network easily using:
Setting -> General -> Network -> Cellular Data