Categories
Uncategorized

Auto Connect to GP Internet Connection on Logon to Windows 7

The Problem: 😀

I am a Grameen Phone subscriber and I use their mobile broadband internet connection for my day to day purpose. But I need to manually connect to the internet either by using their suite or from the Network and Sharing tools. I want to automate the connection process so that whenever I log on, I get connected to GP-Internet without any hassle.

Additional Details: 🙂

Whenever I want to connect to GP Internet from Network and Sharing center (or from my system tray), I am prompted for the dial-up number. The number is automatically filled in, I just have to hit “connect”.

SOLUTION: 😀

Solution is pretty easy. We’re going to schedule a task on log on. Whenever I log on to my account, a task is executed. On Windows, we have a tool – “rasphone”. It connects to network connections. If you want to connect to a connection using this utility, just type “rasphone -d CONNECTION-NAME”. You can also type “rasphone” which will run the GUI. The GUI could be helpful to view the names of available internet connections. GP Internet users can rest assured that if they created their connection with the shipped “grameenphone internet” suite, the connection name is obviously “GP-INTERNET”. If you configured it manually or with another name, please look up the name.

Go to the connection properties, go to “Options” and uncheck the box that says – “Prompt for phone number”.

Now, to schedule the task, we need to go to : “Control Panel > System & Security”. Under “Administrative Tools”, go to “Schedule Task”. Select “Create basic task”. Now fill in the details. Select “When I log on” as the schedule event. The program name should be “rasphone”. Argument will be “-d GP-INTERNET”.

After you’ve setup the task, just restart and enjoy! You can use other dial up connections this way as well.

Categories
Uncategorized

Sending Programs to System Tray from Taskbar in Windows 7

If you have used Windows 7, then you should have noticed that if you close an application window which is supposed to run in the system tray until you exit the program, the program stays in taskbar. For example if you close Skype instead of quitting it, it continues to run both in System Tray and Taskbar. In earlier versions of Windows, the program used to run in the tray only. There’s a quick fix to it – Make the program run in compatibility mood 🙂

Right click on a program shortcut and go to properties. Go to the Compatibility tab and choose Windows XP Service Pack 3. Now hit the ok button. You’re done 🙂

Now you can send Skype, Windows Live Messenger, Yahoo! Messenger, IncrediMail or any other program to system tray from the taskbar 🙂

Categories
Uncategorized

Using Subversion with Netbeans

I develop web applications with PHP and use Subversion for code versioning. I also use SVN to auto deploy my application to the staging server. I use Tortoise SVN GUI for my day to day subversion needs. Today while checking the latest development version of the Netbeans IDE for PHP, I installed it’s built in SVN plugin from Tools > Plugin and gave the subversion mechanism a try! It’s fantastic. I’m not going to compare it with Tortoise SVN but it’s more comfortable to have a SVN client integrated into the IDE. Saves time and efforts while maximizing productivity. I’m planning to thoroughly try it and if it has no drawbacks, I’m gonna use it for my SVN needs 🙂

Here’s a screen shot: