Sunday, November 29, 2009

Chrome's New Tab Feature on Firefox

Now you can get Google chrome's new tab feature on your Mozilla Firefox. When you open new tab in firefox, then you will see 9 thumbnails of most frequently visited pages, Recent bookmarks, and recently closed pages. So if you had liked this feature on Chrome, and you use firefox as default, so now you can use this feature on firefox also. To get this feature you need to install Google toolbar 5 for firefox.

This will make your life faster on Firefox, at just only one click you will be able to access your favorite links.

Friday, November 27, 2009

Automating Internet explorer applicatios with Win32::OLE to open any website

Introdution
Perl has a very good module, for automation in Win32 system, called as Win32::OLE. Everyone uses internet now. There are many place where you may need to fill the forms, which is very tedious job, and it requires a lot of effort and time if form has many data entry points. So you will definitely think of getting this work automated somehow, so that you don't have to fill the complete form. Also there are a lot of e-books available on net for online reading, but there main problem comes how to read e-book if you don't have internet access at any point. I wanted to get all .html pages of any online book saved to my system without doing it manually.
The best solution is to get that book downloaded for you either in html format or .chm or .pdf. All this can be done using Win32::OLE module which will automate the apllication as per your requirement.

Usage:
The first thing is how to start Iexplorer.exe, without clicking on ICON of IE. You can start IE in that way but you won't be able to do anything you want.
So to open IE :
my $IE = WIn32::OLE->new("InternetExplorer.Application") || die "Couldn't open IE\n" ;
It's good but problem was that I was not able to see IExp.So I again read the document and found that there is a property which should be set:
$IE->{visible} = 1;
This time IE will get opened but with blank screen, so to open any web page use following:
$IE->navigate("www.google.co.in");
FOr more information on how I get to know about navigate(), I installed a program call OLEview.exe.( It's available as part of resource tool kit on microsoft website as freeware)  After downloading and installing this package: got to C:\Program Files\Windows Resource Kits\Tools and Run oleviw.exe and you will find InternetExplorer application wihitn "automation" and in that within methods, click on "navigate" so you will find following information:

[id(0x00000068), helpstring("Navigates to a URL or file.")].
void Navigate(
    [in] BSTR URL,
    [in, optional] VARIANT* Flags,
    [in, optional] VARIANT* TargetFrameName,
    [in, optional] VARIANT* PostData,
    [in, optional] VARIANT* Headers);
So now you will navigate to your first site.
In next posts I will tell you how to navigate to links present in that page.

Thursday, November 26, 2009

Batch Command: Subst

SUBST:

Syntax:
subst d: d:path
subst d: /D

Purpose: Substitutes a virtual drive letter for path designation.
Usage:
subst d: e:\system\path ; will map e:\system\path to virtual drive d:
subst d: /D ; will delete the mapped virtual drive d:
subst    ; will show available virtual mapped drives.

Monday, November 16, 2009

Finding free space in android mobile from command line

from ur PC's command prompt you can find out the space available in your android mobile. If you have android SDK installed on ur system then you can type following command:
adb shell df
This command will give you total space, available and used space as following:
/dev: 47172K total, 12K used, 47160K available (block size 4096)
/sqlite_stmt_journals: 4096K total, 0K used, 4096K available (block size 4096)
/system: 65536K total, 61216K used, 4320K available (block size 4096)
/data: 65536K total, 32656K used, 32880K available (block size 4096)
/cache: 65536K total, 1156K used, 64380K available (block size 4096)
/sdcard: 522228K total, 1660K used, 520568K available (block size 2048)


If you don't have SDK then directly on ur device terminal you can type "df" and check the space available.
Otherwise there are some tools available as eclipse memory analyzer which will tell you the memory being utilized by programs when they are running, i have'nt used it till now so I don't know much.

Thursday, November 12, 2009

How to enable remote connection in your windows XP system

It's used to connect your system remotely from other system for access of data or programs.

control panel->system->remote tab

Make sure it's "Allow users to connect remotely to this computer" checked as in above picture.
you can see the name of computer to be connected is "system55". you can also add remote users who can use this system.
Now when you click on remote desktop connection under program files->accessibility->remote desktop connection then give the name of computer as "system55" and give user name and password for system.