Digital Payag

October 11, 2008

PHP Live! IE 6 Fix

Here’s a code for PHP Live! chat script that fixes the issue on Internet Explorer version 6.0 failing to render the chat buttons, making the script inoperable.

How-to install:

1. Look for your xmlhttp:js file located in this path - yourlivechatfolder/js/

2. Remove the existing content of xmlhttp:js and replace it with the code below.

// IE support
if (window.ActiveXObject && !window.XMLHttpRequest) {
window.XMLHttpRequest = function() {
return new ActiveXObject((navigator.userAgent.toLowerCase().indexOf('msie 5') != -1) ? 'Microsoft.XMLHTTP' : 'Msxml2.XMLHTTP');
};
}
// Gecko support
/* ;-) */
// Opera support
if (window.opera && !window.XMLHttpRequest) {
window.XMLHttpRequest = function() {
this.readyState = 0; // 0=uninitialized,1=loading,2=loaded,3=interactive,4=complete
this.status = 0; // HTTP status codes
this.statusText = '';
this._headers = [];
this._aborted = false;
this._async = true;
this.abort = function() {
this._aborted = true;
};
this.getAllResponseHeaders = function() {
return this.getAllResponseHeader('*');
};
this.getAllResponseHeader = function(header) {
var ret = '';
for (var i = 0; i < this._headers.length; i++) {
if (header == '*' || this._headers[i].h == header) {
ret += this._headers[i].h + ': ' + this._headers[i].v + '\n';
}
}
return ret;
};
this.setRequestHeader = function(header, value) {
this._headers[this._headers.length] = {h:header, v:value};
};
this.open = function(method, url, async, user, password) {
this.method = method;
this.url = url;
this._async = true;
this._aborted = false;
if (arguments.length >= 3) {
this._async = async;
}
if (arguments.length > 3) {
// user/password support requires a custom Authenticator class
opera.postError(’XMLHttpRequest.open() - user/password not supported’);
}
this._headers = [];
this.readyState = 1;
if (this.onreadystatechange) {
this.onreadystatechange();
}
};
this.send = function(data) {
if (!navigator.javaEnabled()) {
alert(”XMLHttpRequest.send() - Java must be installed and enabled.”);
return;
}
if (this._async) {
setTimeout(this._sendasync, 0, this, data);
// this is not really asynchronous and won’t execute until the current
// execution context ends
} else {
this._sendsync(data);
}
}
this._sendasync = function(req, data) {
if (!req._aborted) {
req._sendsync(data);
}
};
this._sendsync = function(data) {
this.readyState = 2;
if (this.onreadystatechange) {
this.onreadystatechange();
}
// open connection
var url = new java.net.URL(new java.net.URL(window.location.href), this.url);
var conn = url.openConnection();
for (var i = 0; i < this._headers.length; i++) {
conn.setRequestProperty(this._headers[i].h, this._headers[i].v);
}
this._headers = [];
if (this.method == 'POST') {
// POST data
conn.setDoOutput(true);
var wr = new java.io.OutputStreamWriter(conn.getOutputStream());
wr.write(data);
wr.flush();
wr.close();
}
// read response headers
// NOTE: the getHeaderField() methods always return nulls for me :(
var gotContentEncoding = false;
var gotContentLength = false;
var gotContentType = false;
var gotDate = false;
var gotExpiration = false;
var gotLastModified = false;
for (var i = 0; ; i++) {
var hdrName = conn.getHeaderFieldKey(i);
var hdrValue = conn.getHeaderField(i);
if (hdrName == null && hdrValue == null) {
break;
}
if (hdrName != null) {
this._headers[this._headers.length] = {h:hdrName, v:hdrValue};
switch (hdrName.toLowerCase()) {
case 'content-encoding': gotContentEncoding = true; break;
case 'content-length' : gotContentLength = true; break;
case 'content-type' : gotContentType = true; break;
case 'date' : gotDate = true; break;
case 'expires' : gotExpiration = true; break;
case 'last-modified' : gotLastModified = true; break;
}
}
}
// try to fill in any missing header information
var val;
val = conn.getContentEncoding();
if (val != null && !gotContentEncoding) this._headers[this._headers.length] = {h:'Content-encoding', v:val};
val = conn.getContentLength();
if (val != -1 && !gotContentLength) this._headers[this._headers.length] = {h:'Content-length', v:val};
val = conn.getContentType();
if (val != null && !gotContentType) this._headers[this._headers.length] = {h:'Content-type', v:val};
val = conn.getDate();
if (val != 0 && !gotDate) this._headers[this._headers.length] = {h:'Date', v:(new Date(val)).toUTCString()};
val = conn.getExpiration();
if (val != 0 && !gotExpiration) this._headers[this._headers.length] = {h:'Expires', v:(new Date(val)).toUTCString()};
val = conn.getLastModified();
if (val != 0 && !gotLastModified) this._headers[this._headers.length] = {h:'Last-modified', v:(new Date(val)).toUTCString()};
// read response data
var reqdata = '';
var stream = conn.getInputStream();
if (stream) {
var reader = new java.io.BufferedReader(new java.io.InputStreamReader(stream));
var line;
while ((line = reader.readLine()) != null) {
if (this.readyState == 2) {
this.readyState = 3;
if (this.onreadystatechange) {
this.onreadystatechange();
}
}
reqdata += line + '\n';
}
reader.close();
this.status = 200;
this.statusText = 'OK';
this.responseText = reqdata;
this.readyState = 4;
if (this.onreadystatechange) {
this.onreadystatechange();
}
if (this.onload) {
this.onload();
}
} else {
// error
this.status = 404;
this.statusText = 'Not Found';
this.responseText = '';
this.readyState = 4;
if (this.onreadystatechange) {
this.onreadystatechange();
}
if (this.onerror) {
this.onerror();
}
}
};
};
}
// ActiveXObject emulation
if (!window.ActiveXObject && window.XMLHttpRequest) {
window.ActiveXObject = function(type) {
switch (type.toLowerCase()) {
case 'microsoft.xmlhttp':
case 'msxml2.xmlhttp':
return new XMLHttpRequest();
}
return null;
};
}
function initxmlhttp()
{
var xmlhttp ;
if ( !xmlhttp && typeof XMLHttpRequest!='undefined' )
{
try
{
xmlhttp = new XMLHttpRequest() ;
}
catch (e)
{
xmlhttp = false ;
}
}
return xmlhttp;
}

October 6, 2008

Fastest Online Tech Support In The Philippines

tech support

If you’re a Filipino and you’re connected online, the fastest way for you to get Windows technical support is where else but from a forum who does troubleshooting in a daily basis. Visit Ulop.net, short for United Lanshops Owners Portal, an online discussion group which caters live technical support using their dynamic shoutbox. Register now and join the forums so you can start asking for support from friendly internet cafe owners.

register at http://ulop.net

September 23, 2008

How-to Port Forward Utorrent Using Linksys BEFSR41 Router and a Bridged Modem

Early this morning I found out how easy it was to get a green light (means Network OK) on Utorrent even under one of these scenarios:

1. If your router is using PPOE to establish a connection.
2. If your router is using NAT.
3. If you have a modem/router in bridge mode having its own gateway.

I’m writing this guide as a way to remind me that the conventional port range forwarding of Linksys BEFSR41 won’t give me a green light on Utorrent. This maybe because my modem in bridge mode has its own gateway and I’m behind a NAT network.

I’m not sure how or why, but this trick worked for me.

1. login to your Linksys router - 192.168.2.1

Username: admin
Password: admin

2. Browse to UPnP Forwarding under the Application and Gaming tab.

3. Then add the following values:

Application: Utor1
Ext. Port: 80
Protocol: TCP
Int. Port: 80
IP Address: 192.168.2.100 (or your computers IP address)
Enabled: check

UPnP

4. Click Save Settings

You should now have a green light on Utorrent. But ofcourse, don’t forget to use port 80 and enable UPnP port mapping on your Utorrent preferences.

September 7, 2008

How-to Control GoogleUpdate.exe

Access Google Chrome’s update service and take control of it by changing how it behaves under your hood.

1. Go to this path: C:\Windows\Tasks

2. Double-click GoogleUpdateTaskUser.exe

3. Go to Schedule tab and set when exactly you want it to update.

chrome update

August 7, 2008

Firefox - One Click Bookmark

Don’t you know that it’s easy to bookmark your favorite websites on Firefox and access it in just one click? Just drag and drop your active tab at the bottom of your address bar. This will create a button of that website with a favicon and the sites name next to it.

Ok here’s a recap:

1. Hold your right-click button
2. Drag the active tab
3. Drop it in an empty space below the address bar

There you have it! No more retyping of your favorite websites.
bookmark

August 3, 2008

How-to Exclude A Website From The Squid Cache

I’ve been using Windows Squid proxy for some time now and recently I was surprised on how easy it is to exclude some websites from being cache. This one was done using Mozilla Firefox.

squid

Encircled are the domain names of the websites I excluded from the squid cache. No more fiddling with the config file!

December 27, 2007

No Install Autoplay Virus Remover

autoplay virus

This is one of the most irritating virus in the year 2007. It comes in different names and it infects your system by adding autoplay.inf files in all of your system drives, making your hard drives unaccessible when you double click on it. The solution, is a single exe remover that scans your drives and removes the virus in just about 4-5 seconds. In my experience, this is the best way to remove the infection because it is fast and it leaves your crucial data intact.

NO need to reformat your drives.

NO more technical instructions

NO more delays!

NO sweat!

Warning: I cannot be held responsibe if it does weird things on your computer. It works fine on my Windows XP SP2 set up, best guess it will work on your system too.

DOWNLOAD HERE Autoplay Remover.zip (97.39 KB) - file is hosted by mediafire.com

Comment here if you need a fresh copy of the exe if the download link expires.

Happy virus-free holidays!

April 17, 2007

How-to send and receive sms using your PC

Are you tired of typing SMS messages while using your PC? In this guide I will teach you how to receive and send SMS messages without holding your phone.

You need to have:

A Sony Ericsson phone
USB Cable
Float’s Mobile Agent

Let’s now get started:

1. Download and install Float’s Mobile Agent
1. Plug your USB Cable
2. Plug your SE Phone and select “Phone Mode”
3. Right click on Float’s icon located at the taskbar.
4. Select Toggle Connect

Wait for the program to detect your phone. Then follow these steps as an initial set-up.

1. Under the New Text Messages click the Get Messages link
2. Under the Address Book click Synch

mobile

Now you are ready to send and receive SMS messages using your PC and by just typing your message like you’re chatting using the Yahoo Messenger. Now this is what I call multi-tasking! ;)

and oh! you need to have cellphone credits to send SMS! Enjoy!

Do you know how to do this using a Nokia phone? Share your ideas and email me - cecortez(at)gmail.com I will give full credit to you as the contributor.

February 18, 2007

Now Online - My Friendster Resource Site

friendster resource

I just launched my new Friendster resource site last February 14 or better known as the “hearts day”. It is a resource site for Free Friendster layouts, surveys, codes, and other Friendster freebie stuff you can find on the web today. I plan to make it as a honeypot for Friendster resources, making it an all-in-one pit stop for all of the Friendster users who loves to customize their profiles.

Check it out at this url Friendz.Mooo.com

February 16, 2007

8 Best things you can do when there is no internet connection

offline

We can’t avoid those times when we are forced to be offline due to a number of unpredictable events. I have a list here of some fun ways to spend your time offline.

1. Play a PC game. Now is the time to finish those games that had long been forgotten.
2. Read a free E-book. It is not bad for an old dog to learn new tricks.
3. Clean up your PC by deleting junk files and duplicate mp3s.
4. Defrag your disk to make your PC run faster.
5. Clean your dusty PC and workplace. At least you’ll feel at ease when you get back online but with a cleaner workplace.
6. Write your next blog aticle. This will save you a lot of quality time.
7. Phone a friend. This is the best time to catch up with a long ignored friend or sweetheart.
8. Take a walk outside and grab some pictures with your digicam. Synch the pictures when you get home. You might find this useful when the time comes. This is also a nice way to get some fresh air.

Get free blog up and running in minutes with Blogsome
Theme designed by Jay of onefinejay.com