Skip to main content


Showing posts from August, 2010

Google Search

Custom Search

Live Search

Yahoo Search

Search the web Search this site

Cannot connect to YouTube using iPhone

Do you guys also get the ”Cannot connect to YouTube” error on your iPhone when using the provided YouTube application? If yes follow the steps below to get it fixed.1. Open Cydia from your spring board.2. Press on the Manage tab in the bottom.3. Press on Sources, then on Edit and press again on Add to add a new source.4. Type the URL and press on Add Source button. 5. Now find the iPhoneModding item and press on the triangle ‘>’.6. Scroll down and find the “Push Fix” item and press on it.7. Press Install to get Push Fix installed on your iPhone.8. After pressing confirm on the confirmation screen the application will get installed on your iPhone.9. After a complete restart you will be able to use YouTube application within your iPhone.

Installing and Uninstalling Internet Explorer 8

Since Internet Explorer (IE) 8 is a built-in feature of Windows Server 2008 R2 there is no way to install or uninstall it using the user interfaces. Instead you need to run the following commands in a command prompt window which has administrative privileges.If you are only having IE in your machine as an internet browser be sure to install another internet browser before uninstalling IE, otherwise you will not be able to browse internet.Click the start button and type Cmd in the search box. Right click on the Cmd icon and click on Run as Administrator. Choose the appropriate command from below for your need and copy it. To Install - dism /online /Enable-Feature /FeatureName:Internet-Explorer-Optional-amd64To Uninstall -dism /online /Disable-Feature /FeatureName:Internet-Explorer-Optional-amd64orFORFILES /P %WINDIR%\servicing\Packages /M Microsoft-Windows-InternetExplorer-8*.mum /c "cmd /c echo Uninstalling package @fname && start /w pkgmgr /up:@fname /norestart"Paste t…

Rounding a value Down

If you did work with .Net Math classes you may have noted that you can quite easily round value upwards. But what about rounding values down?For example if you tried to round the value 1.23501 into 2 decimal places using the Round method provided by the Math class as below, the result you will get is 1.24. Meaning .Net had rounded the value up.

double dbl = Math.Round(1.23501, 2);

If the value is rounded down it should be 1.23, but in .Net I couldn’t find an easy way to get this done. So I did create a small code to get it done. It is very simple only a method with one statement as shown below.

double RoundDown(double Number, int Digits){try    {returnMath.Truncate(Number) +            (Math.Floor(Math.Round((Number % 1), Digits) * Math.Pow(10, (Math.Round((Number % 1), Digits).ToString().Length - 3)))) *            (1 / Math.Pow(10, Math.Round((Number % 1), Digits).ToString().Length - 3));    }catch (Exception)    {MessageBox.Show("Error ! Please check values.");return 0.0;   …