Googling “Google” On Google
Have you ever tried searching for “Google” on Google? You might have or not, I don’t know, but when I asked to one of my friend he gave me a very humorous answer. He said it would go into a “infinite loop“.
Mathematically speaking R=G(G), here R is Result and G stands for searching in Google, where the searching parameter is itself Google (G). So, when you break it up or simplify this we can see as follows: Read the rest of this entry
Newsletter Email Tracking: Read or Not?
I have completed first phase of a simple, yet useful Newsletter System. When I demonstrated to the clients, they came up with a question if the newsletter being send was opened or not by the newsletter subscribers ? I then thought.. let see how its done. Then I came with this simple tracking trick, most of the spammers used to verify if the email address was valid or not.
The first thing I did was adding 1px by 1px image on the footer of the newsletter, whose source was set something like this http://subesh.com.np/newsletter/track.php?identitycode=CLIENTID_SENDEMAILID. Here CLIENTID = Your Clients ID and SENDEMAILID = Id of the Newsletter sent. Now, when the image is loaded while viewing the newsletter on the mail or say when the client reads the newsletter email. The track.php page is requested with identitycode as the GET parameter. And when you get the request from the mail to your server’s page, you can do anything you want. What I did was setting the mail_read column of the database field as 1. And echoed the source of the image file on the last line.
The code below is for the track.php. Read the rest of this entry
Facebook Chat On a Side Bar Of Mozilla
These days I am using Facebook a lot and no wonder everyone is using Facebook a lot. And the number of online users on Facebook are sometimes more then my MSN Messager online friends list. I get so much of words from my friends saying I did not reply to their message on Facebook Chat. In fact I open so much of mozilla window and tabs while working that, I come across the Facebook page once in a while. Then I came up with this idea of opening Facebook Chat on the side bar (i.e Bookmark Side Bar), and to my delight….. IT WORKED!…. Read the rest of this entry
Ajaxified File Uploader Using IFrame
Today, while writing a code for AJAX file uploader, I was trying to do with SALAJAX. But, with SALAJAX I could not manage to send the headers for $_FILES. So I thought of an alternative. And the alternative was to load the action page of the form on IFrame, whose display would be hidden and the work for uploading the file will be done on the background without refreshing the page. Yeha.. Its not AJAX, but it gives a user the feel of asynchronous working on the page. So, my code is Asynchronous Feel Without Javascript and XML (AFWJAX). What do think about this?
So, Here’s the code.The code below is for the form.
<form action="iframeinc.php" method="post" enctype="multipart/form-data" id="uploadform" target="iframe" name="uploadform"> File: <input name="pic" type="file" id="pic" style="margin-right:50px;" /> <br /> <input type="submit" name="Submit" value="Upload" ><br /> <iframe name="iframe" src="iframeinc.php" width="200" height="500" style="display:none;"> </iframe> </form>
Tabbed Infowindow in Google Maps
I wanted to show different categories of information on one GMarker. That is I wanted to show different types of information on a Infowindow for a point on Google Maps. For that I used a tabbed info window, which helped me to show different data on each tabs. Here is the code of what I have done. I have shown the latitude and longitude of a placed clicked on the map on the tabbed info window. This is just the script part. The demo and download links are given below. Read the rest of this entry
![[del.icio.us]](http://subesh.com.np/wp-content/plugins/bookmarkify/delicious.png)
![[Digg]](http://subesh.com.np/wp-content/plugins/bookmarkify/digg.png)
![[Facebook]](http://subesh.com.np/wp-content/plugins/bookmarkify/facebook.png)
![[Google]](http://subesh.com.np/wp-content/plugins/bookmarkify/google.png)
![[MySpace]](http://subesh.com.np/wp-content/plugins/bookmarkify/myspace.png)
![[StumbleUpon]](http://subesh.com.np/wp-content/plugins/bookmarkify/stumbleupon.png)
![[Technorati]](http://subesh.com.np/wp-content/plugins/bookmarkify/technorati.png)
![[Windows Live]](http://subesh.com.np/wp-content/plugins/bookmarkify/windowslive.png)
![[Yahoo!]](http://subesh.com.np/wp-content/plugins/bookmarkify/yahoo.png)

