Guneet's Web Log

February 19, 2008

Script to change network settings

Filed under: How To, software, work — guneetsahai @ 6:37 am

These days I’m working from my client’s office for some part of the day and continue from my office for the remaining portion of the day. This requires me to change network settings on my windows XP Dell laptop (almost) every time I boot it. This was a painful activity that I wanted to somehow get away with. If you have encountered this pain too, then read on for details on a method that worked well for me.

Today I sat down to figure out how can that be simplified. 10 minutes of googling showed up a nice utility called “netsh” which was in c:\windows\system32 folder on my machine. It provided simple ways to dump/export existing network settings into a text file and re-load/import the same from it later if required. This was all that was required. I dumped my network’s settings into a text file and created a batch file through which it could be imported back. Did this for both the networks & I ended up with two nice short-cuts on my desktop which allow me to change from one network to another in 5 seconds.

Thanks Google.

The steps that I followed in order to do this were

a) Opened a Dos Window

b) Exported the current settings into a text file (network1.txt) by typing the following

netsh -c interface dump >> network1.txt

c) Created another text file called switch-to-network1.bat [Name could be anything, but extension should be bat]

d) Opened this file in Notepad (or any other text editor) and type in the following

netsh -f network1.txt

Make sure that the bat file & text file are in the same directory

e) Right click on the bat file, create a short-cut (if desired change its icon) and put it on your desktop.

February 13, 2008

Added Kool gadgets to Blog

Filed under: My Blog, software — guneetsahai @ 12:54 pm

Thanks to Digital Inspiration (See my blog list below on the right panel) – I discovered this mechanism of improving the way I shared the blogs that I read with my readers. I not only used this newly release feature by blogger (got rid of the earlier link list) but also found a bunch of other kool gadgets that google provides.

From the list of gadgets that google has, I added the search gadget (top right) which allows a reader to search information in this blog (powered by google) but it presents the search results very nicely at the top of my blog which I liked very much.

Thanks google.

February 4, 2008

website errors fixed for IE

Filed under: My Blog, work — guneetsahai @ 11:23 am

My wife recently browsed to my website and noticed that it wasn’t showing properly. The home page showed only the right panel (the one with my image) and the main panel was below the right panel and was very easy to miss.

I was able to reproduce the problem on IE with a resolution setting of 1024 * 768. Had missed the error earlier as the default setting on my laptop is higher than this and the problem does not appear on this. I also noticed that the ‘Contact Me’ page had similar problem over IE even with higher monitor resolution.

The problem was easier to fix (adjusted the panel widths) but considering that a good percentage (~ 48%) of visitors on my website use IE and all of these users would have seen the shabby looking site is embarrassing.

Force dot com

Filed under: salesforce, work — guneetsahai @ 11:08 am

I recently got introduced to Force.com which is a platform from salesforce.com that allows a user to quickly build interesting & powerful data centric applications without having to write a single line of code.

A week ago, I used to think of salesforce just as an online tool to manage sales data for an organization. I was very pleasantly surprised to find that their platform has now evolved much more than just being a CRM. They interestingly have a tutorial kind of a document that provides step by step instructions for building a hiring solution for a organization’s HR team. The example provides detailed instructions on how to go about it and exposes the reader (in steps) of the power of the underlying platform. I certainly think, I might be using this a lot for building applications quickly.

For more details, just sign-up as a developer, get an account spend time on reading the documents along with trying out their stuff and you should be ready to do a lot of interesting apps on their platform with very minimal effort. The URL http://www.salesforce.com/developer/ would be a good starting point.

Theme: Silver is the New Black. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.