Tuesday, July 21, 2009

Dial-Up Networking Airtel Mobile Office

I thought of putting the information below as probably it can save somebody's time.

The following configuration settings are working for me using bluetooth in Vista. I do not see any reason why they should be different for USB:

User Name:
Password:
Dial Number: *99***1#
Access Point Name (APN): airtelgprs.com

The last setting is not, "Mobile Office" which is what a casual look at the mobile phone settings may indicate.

In the past I have used Nokia PC suite and it had pre settings (the new version) using which it was easy to connect but I am rarely using it these days.

Wednesday, August 13, 2008

Vista Bluetooth


If you had the problem with Bluetooth peripheral device driver installation prompt while using Vista then my following experience could be useful to you.

I wanted to connect Nokia N73 to a Vista based PC. First I activated Bluetooth on the PC and then installed Nokia PC Suite (version 5.8). The device (that is N73) could be located by the PC but there was a persistent prompt about Bluetooth peripheral device driver installation. The system was laptop with built-in Bluetooth and PC Suite was installed so I wondered why should there be an additional driver requirement. I found out that others with more recent versions of PC Suite also experienced this problem.

When driver as prompted could not be installed, I went to Control Panel > Hardware and Sound > Device Manager and deleted anything related to Bluetooth showing unsuccessful driver installation. These unsuccessful installations showed at different location from Bluetooth Radios location inside the Device Manager. After deleting them I explored at this separate entry titled Bluetooth Radios inside which there were two entries, one saying Generic Bluetooth Radio and the other saying Microsoft Bluetooth Enumerator. I disabled Microsoft Bluetooth Enumerator. Now, I uninstalled Nokia PC Suite and restarted the PC (the PC Suite uninstallation wants system restart).

After system restart, I again activated Bluetooth on the PC. Since, I had to install Nokia PC Suite again; I went for the recent version 7. After that there were no issues. This blog post is being typed while N73 is connected and I am able to access Internet at this moment via N73.

Friday, March 28, 2008

Home Tag Removal - Joomla Homepage Title

In the top of the home page in Joomla installation it reads the title of the page followed by Home. It is even picked by google and I often wondered why that tag is there from user's perspective. If you also have Joomla installation and want to remove it here is what you can do.

In Joomla installation directory, go to folder includes and locate joomla.php .

Search for setPageTitle. It is somewhere near the top 20% of the file.

Comment out the following lines:

function setPageTitle( $title=null ) {
if (@$GLOBALS['mosConfig_pagetitles']) {
$title = trim( htmlspecialchars( $title ) );
$title = stripslashes($title);
$this->_head['title'] = $title ? $GLOBALS['mosConfig_sitename'] . ' - '. $title : $GLOBALS['mosConfig_sitename'];
}
}

Add the following lines just after:

function setPageTitle( $title=null ) {
if (@$GLOBALS['mosConfig_pagetitles']) {
$title = trim( htmlspecialchars( $title ) );
$title = stripslashes($title);
if ($title == 'Home') {
$this->_head['title'] =
$GLOBALS['mosConfig_sitename'];
}
else { $this->_head['title'] = $title ?
$GLOBALS['mosConfig_sitename'] . ' - '.
$title : $GLOBALS['mosConfig_sitename'];
}
}
}

Monday, February 25, 2008

Mod_Rewrite

To direct the URL http://www.yourdomain.com/index.htm to http://www.yourdomain.com/main.htm one can use the following code inside .htaccess file:

RewriteEngine on
RewriteRule ^index.htm /main.htm

This would cause http://www.yourdomain.com/index.htm to display the contents of http://www.yourdomain.com/main.htm while the browser would continue to show http://www.yourdomain.com/index.htm address.

However, if one has to direct a URL like http://www.yourdomain.com/resource/view.php?id=2 to
http://www.yourdomain.com/course/view.php?id=3 the following code does not work:

RewriteEngine on
RewriteRule ^
resource/view.php?id=2 /course/view.php?id=3

What needs to be done is as follows:
RewriteEngine on
RewriteCond %{QUERY_STRING} ^id=2
RewriteRule ^resource/view.php /course/view.php?id=3

OR

RewriteEngine on
RewriteCond %{QUERY_STRING} ^id=2$ [NC]
RewriteRule ^/?resource/view.php$ /course/view.php?id=3

Sunday, October 28, 2007

NUSOAP & PHP5

NUSOAP does not play well with PHP5. Within PHP5, there are built-in references to soapclient and hence NUSOAP clashes with PHP5.

To make NUSOAP work with PHP5 one needs to open every .php file within NUSOAP (and every .php file using NUSOAP like index.php for example) and search and replace (matching exact word) for the word soapclient. This would mean search and replace in 12*+ files (12* .php files are there in NUSOAP). Any new word can be chosen in place of soapclient. For example, soapclient5 or soapclientphp5 or anything else that one likes.

Out of 12 files in NUSOAP, one file is named class.soapclient.php. Though, the file name contains the word soapclient, there is no need to change the name of this.

*In fact some files may not contain the word soapclient. If you know which files do not contain the word soapclient then there is no need to perform search and replace in those files.

Tuesday, September 18, 2007

Boaddrink PHP Formmail 1.07.2

Boaddrink php formail script v1.07.2 has a feature that the email that comes from the form in the website does not appear to come from the sender but it appears to come from an email address of webmaster's choice. While it may be a way deal with spam, it is a problem when you instantly want to know from whom has the form come from. After spending some time breaking my head I could modify the file formmail.php and now it is fine.

Look for these two lines in the original formmail.php file:

$mail_header .= 'From: ' . FROM . $mail_newline;
$mail_header .= 'Reply-to: ';

The above two lines are below the line containing the word FROM. This FROM is the third FROM when you search the file using search function of the editor.

Now, make this small modification:

$mail_header .= 'Reply-to: ' . FROM . $mail_newline;
$mail_header .= 'From: ';

Sunday, July 15, 2007

SMS Joke

Let me draw your face!

Don't MOVE!

Nearly finished

OK Done!

Want to look?

  ,****,
( @..@ )
   "(--)"

Hope you like your face!