Sunday, July 25, 2010

Problem: Slow Internet on Windows 7

I recently bought a Dell 1564 and installed Windows 7 Ultimate (64 bit) on it. Before this laptop I had a Dell Latitude 610 with Windows XP Professional (32 bit). Ever since I satrted using Windows 7 I always got a felling that I was experiencing very slow internet browsing speeds. I tried all the major browsers IE 8 (that came with Windows 7), Mozilla Firefox 3.6.3 (both with and without add ons) and of course my personal favorite Google Chrome.

Before Windows 7 (i.e. on Windows XP Professional) on the same Internet Connection (a Mobilink Infinity Wifi Broadband Connection) I was having a great Internet surfing and downloading experience. So finally after some 2 months of suffering, I finally decided to see if I was the only one suffering from the same issue and thus decided to do a Google Search and found out that I was not the only one with the help of Google Suggest, so instead of writing my own search query I decided to go with Google Suggest and searched for "slow internet windows 7".

So the first article that came up in search at that time was Microsoft's own explanation in the form of an article titled "Why is my Internet connection so slow?", after skimming through the article I found that this was of no use to a tech user as he would have already checked and made all the suggestions provided in the article. Then I found two really helpful articles on "Microsoft Social" which were "Painfully slow internet on Windows 7" and "Slow Internet and Page Timeouts". Although the second article was intended for Windows Vista, but works for Windows 7 as well. Here I will summarize only the key points from the two and will try to make them equally useful for both teach and general user. Please be advised not to make any changes to the Windows Registry without proper backup or supervision and better to try out all the other suggestions leaving registry as the absolute last resort.

Use Selective Startup (Clean Boot)
  • Click Start, click Control Panel, click Administrative Tools, and then double-click System Configuration.
  • Click Continue, or provide Administrator credentials if prompted.
  • Click the General tab, and click Selective startup.
  • Under Selective startup uncheck Load startup items.
  • Click the Services tab, check the Hide all Microsoft services box, and then click Disable all (not necessary to disable all services but a few that take up internet or network resources. On Dell its found that "Advanced Networking Service" by Dell is found to cause the problem).
  • Click the Apply, then OK, and then Restart.


Use Fix it For Me or Fix it Yourself
  • For all the Help please go here.

Disable IP v6

Try uninstalling IPv6 on all interfaces, removing any IPv6 virtual adapters, and resetting the TCP/IP stack. To remove IPv6, go into the properties for each network adapter and either uncheck the box next to the protocol "Internet Protocol version 6 (TCP/IPv6), that will disable it, or select it and click uninstall, which will remove it off the computer. Then go into device manager and remove any 4to6 adapters, WUN miniport adapters, or tunnel adapters.

NOTE: You should do this for each network connection.

Tuesday, June 29, 2010

Installing MongoDB Service on Windows7

The time when SQL was considered to be the Lingua Francia for data storage and retrieval will soon be coming to an end. No SQL databases have shown that they are way faster when it comes to data storage and retrieval. Among the many new Object or Document Databases (for simplicity we will refer to them as No SQL Databases) MongoDB is one which has shown and is still showing a lot of promise. In order to make it easier for people to you can find a comparison fo SQL Server 2008 vs. MongoDB here.

Now lets have a look at how to install MongoDB as a service on Windows7, (below are actual extracts from http://www.michaelckennedy.net/blog/2010/04/29/MongoDBVsSQLServer2008PerformanceShowdown.aspx)

  • Download and extract the MongoDB archive appropriate for your system. http://www.mongodb.org/display/DOCS/Downloads
  • Copy the extracted folder to C:\ and rename it mongo.
  • Create a directory called 'data' inside C:\mongo
  • Click on the Start Menu and enter "cmd" in the search box. Right-click on cmd.exe and select "Run as administrator." This is VERY important because you won't be able to register MongoDB as a service if you run cmd.exe with normal privileges.
  • Type "C:\mongo\bin\mongod --install" to register MongoDB as a Windows service. This will probably output what may look like an error message, but don't worry ... as long as you really did run cmd.exe with administrator privileges, everything is fine.
  • Click on the start menu and enter "regedit" in the search box. Click on regedit.exe, and then browse to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services. There should be child folder there named MongoDB that has several keys inside it. If not, go back to step 4 and try again.
  • The ImagePath key should read "c:\mongo\bin\mongod --service" right now; change it to "c:\mongo\bin\mongod --service --dbpath c:\mongo\data". This will allow MongoDB to find its data files.
  • Click on the Start Menu and enter "services" in the search box. Click on the "Component Services" option.
  • In the pane on the far left, double-click on "Services (Local)." Locate MongoDB in the list in the center pane, and double click on it to bring up the properties inspector window.
  • Make sure "Startup type" is set to automatic. Then click on the "Start" button.
  • Browse to http://localhost:28017/ to verify that MongoDB is really running.
The purpose sharing the actual extracts from the above mentioned article was to increase the availability and have more and more people switch to MongoDB and to keep it for my own reference as well.

Saturday, February 27, 2010

Computer Science: Getting the Basics Right - Part I

I was having a chat the other day with a really good friend of mine who has done his Bachelors and Masters in Computer Science from the same universities as me, I am his junior and also have had the pleasure of working in the same Software company as him. In this chat he said that using .NET controls, fetching data from tables, formating the fetched data is not really the work of Computer Scientists, the real work for us is Research.

After three years in Software Development and being a Senior Software Engineer (one of the best that I have came across) I have to admit he is right. This chat made me some what rest less as well and began searching and exploring as to what Computer Science really is? And also what should be the mind set of person having a degree in Computer Science?

The whole idea behind this series of articles is the get confusions and mis-conceptions out of not only my mind but the minds of others particularly from the minds of young CS graduates. The matter discussed in this part has been taken from Episode 1: Getting Right the Basics.

What is Computer Science?
  • Its not programming, Programming does have a fair share, but still you can not give it more than its actual worth.
  • Its not Quality Assurance, no offence to QA people we love you and can not live with out you.
  • Computer Science us the study of Algorithms, their formal and Mathematical Properties like: correctness, Cost, Efficiency, Limits, their Hardware Realizations like: Computer Design, their Linguistic Realizations like: Programming Languages Theory, thier Applications like: Network Design, Bio-informatics, Ocean Modeling, etc.
  • The above is the definition of Computer Science as given by two great researchers of Computer Science: Gibbs and Tucker.
  • The above definition is the most clear and concise definition thats presentable and should be understandable to one and all.
  • If you have a degree in Computer Science, the algorithms is the name of the game.
Since now we know what Computer Science REALLY is lets explore it TOGETHER.