mGinger

Tuesday, March 23, 2010

living smart - 02


Interesting...
How technology improved.

living smart - 01


Use of Binder clips to hang some jacks...

IIS installation on Windows XP without CD.

I was searching for some option as how can i install IIS on windows XP without CD. There was a hell lot of links saying to download SP2 / SP3 (win xp service pack)... unrar the package.... start IIS installation... show SP path to installer.
But this didn't worked at all, as a number of files were missing. Infact no IIS installation file was available in any SP.
So after a lot of searching on net I found following link. This link is really a life saver link. Someone have uploaded a zip file, which includes all files required for IIS installation.
http://geekswithblogs.net/royhwa/archive/2006/01/22/66655.aspx

From here just download the zip file. Then unzip the file and start IIS installer. When IIS installer will ask you to show path of Windows XP CD-ROM then show path of unzipped folder.
Then whenever during installation it requires path of missing installer file, show it the path of uzipped folder.
IIS will be installed.

For your help, if you ever find this link un-available then mail me to get the file or leave a comment on this post with your mail address.

All the best...

Tuesday, February 2, 2010

Downloding and installation of active x control on computer without internet.

When we create a website, and the website uses any active X control, which is not installed on client machine. Then whenever user open the site, it automatically download and install control from the site. Most popular example is dowloading of Crystal report Active X print control. This control is required to show print dialog for crystal report on client side. As Microsoft's site says that this control is not provided by them due to some security concerns, so this control have to be downloaded from outer world.
Everything works fine when client have proper internet connectivity. But when it comes to intranet, where internet is not available then it becomes a tough job.
So in this case I just learned a lession when I got stucked into this issue.
My situation was: I developed a website on developer machine (as everybody do), that developer machine have everything installed on it with proper internet connectivity. My website had a few pages which were showing some crystal reports and user was suppose to print them. When I first time run this web-page on my developer machine it downloaded a component, which i didn't notice. Then everything worked fine.
But I deployed it on server and went to client machine to give control to client. It shown the crystal report, when it came to print the report no dialog appeared. I asked the client about internet connectivity. He said no internet, then it became suddenly hard for me to get things done, as I was a new developer.
So I just did following steps:
I searched the computer on which that control was already installed. Then I reached to 'Downloaded Program files' folder in 'C:/Windows' directory.
There I found the download control like 'Crystal Print Control 10.5', I right-clicked the control file to get its properties.
In the properties dialog I reached to general tab (actiually it is the default tab). There I looked for 'Code base' value. It is by default written at the end of the tab. It should be internet path of the file from where the control was downloaded.
I copied the path and pasted it into Internet explorer after pressing enter it started downloading the CAB file.
After downloading the CAB file, I opened the file using and unzipper program. Then there was a bunch of DLL files.
Then I copied all files and took them to client computer, where internet connection was not available.
As all of the DLL files were COM dlls, so I registered them on client machine using following command: 'regsvr32 '
Then there was a message about successful registration of DLL into the system. I tested the system and it worked fine.

Moral of the story:
If client machine do not have internet connectivity to download and install Active X control by itself. Then dont panic, just go to the machine where it is already installed and found working. Path where to go to is mentioned in the story.
download fresh CAB package. Unpack the package and find some DLLs.
Downloaded DLL are COM dlls (i have good experience over COM/DCOM).
Copy the DLLs into the client machine and register them using the command mentioned in the story. Then test the system it should work fine.

ALL the BEST... ;-)

Tuesday, January 12, 2010

Hotels in Mehsana, Gujarat

Name of Hotel / Guest House : Address : No of Rooms AC/Non-AC : Rate : Phone

Apsara Guest House : Near Bus Stand : 17 : Rs. 110 to 500 : 235367

Sejal Guest House : Near Lions Hospital : 15 : Rs.200 to 500 : 9898827792

Shriphal Hotel : Bajar : 10 : Rs. 200 to 700 : 240665

Hotel Rajpath : Nagalpur Highway : 17 : Rs. 300 to 800 : 244797

Hotel Rangoli : Nagalpur Highway : 26 : Rs. 400 to 500 : 244797

Hotel Janpath : Radhanpur Choukadi : 12 : Rs. 200 to 1000 : 252441

Hotel Sunsign : Nagalpur Highway : 20 : Rs. 800 to 1100 : 246293

Shriram Guest House : Modera Chaukadi : 18 : Rs 250 to 800 : 982558591

Hotel Tulsi : Nagalpur Highway : 6 : Rs. 500 to 700 : 231191

Hotel Sahara Bridge : Modera Chaukadi : 40 : Rs.1300 to 1500 : 230823

Hotel New Janpath : Palwasna Highway : 10 : Rs. 500 to 1000 : 285308

Hotel Highness : In Front of Jalaram Mandir, Highway : 20 : Rs.1600 to 2000 : 225077

Shankul Water World Resort : 15Km Highway : 60 : Rs.3000 onwards : 283351

Safrroni Holiday Resort : 50 : Rs. 2500 onwards : 285329

This information is not official. The idea is to help outsider to get stay in the city.

All the best... Happy Journey

Monday, March 2, 2009

CSC Chennai interview questions

I had an interview with CSC chennai last week, following are the questions asked to me:
- Which desing pattern you follows?
- What is kept in desing document?
- Which default functions are created in empty class?
- What is the need of overloading a copy constructor?
- Does default constructor invoked by default copy constructor?
- How to limit number of instances of class? or How to track running instances of a class?
- Three overloaded constructors:
class A
{
A();
A(int i);
A(int i = 10);
}
Is there any problem with this?
What will happen if 'A()' is removed due to ambiguity and 'A a2(10);' will invoke which constructor?
- How to print a linked list in reverse order?
- Inheritance:
class A
{
virtual void f1();
}
class B : public A
{
virtual void f1();
virtual void f2();
}
B *b = new A;
b->f1();
b->f2();
What will be the problem? How to invoke 'f2()' using using object of class A.
[ Actually this question was wrong or I heard this question as wrong]
- Two buckets of 5 liter and 3 liter. How to major 4 liter of water?

Tuesday, February 10, 2009

Recession time

Two years back when Stock market was up approx 22000 pts, then some body told me that one it will fall down and every body will suffer. Then I said 'why will I suffer? when I have not invested anything at all in stock market'. Then the guy said 'Keep my words you will also suffer, when it will go down. No body will remain un-affected'. And this feb-2009 I lost my job and the reason was market slump.

Recession Time "Some time you have to suffer for what you think you are un-affected." ;-)