Sunday, April 30, 2006

Free Online Books

Thousands of e-books

Friday, April 28, 2006

HTML DIV Diagram every web2.0 coder should have

ScrollHeight or ClientHeight? Positioning is always tricky and it seems like there is a million different javascript variables for locations and positions. Well here is a great summary of which variables to use. This is for IE but most work identical in firefox.

read more | digg story

Tuesday, April 25, 2006

Ajax(XmlHttpRequest) versus IFrame

good discussion comparing XHR and IFrame implementation...
http://ajax.sys-con.com/read/188390.htm
http://www.phpclasses.org/blog/post/51-PHPClasses-20-Beta
-AJAX-XMLHttpRequest-x-IFrame.html

Tweak To Get Yahoo Mail Beta

To get Yahoo Mail Beta, just switch your content preference to Germany, France or UK. Then you will be asked if you want to join the beta when you log into your Yahoo Mail. Say yes, and join the beta. Then from the options menu, change your content preference what it was before. Then go to Yahoo Mail again. You should see Yahoo Beta. If you don't see it, go to options and click "Try Beta" button. That's all.


How to change your content preference:

* log in to Yahoo Mail
* click Options
* select Account information from the left panel
* go to Member Information, General Preferences, Preferred Content
* select, for example, Yahoo UK
* click Finished
* go to Yahoo Mail
* you'll see a page that says "It's the New Yahoo! Mail Beta... and you're invited."
* click on "Try Beta Now".

Sunday, April 23, 2006

A Simple CSS Image preloading technique

A Simple CSS Image preloading technique

So you need to pre-load images, but don’t want to deal with javascript or complicated workarounds. What do you do? The solution is simple. All we need to do is designate a CSS style with multiple background-images. As your browser reads the style, it will load each image you designate in succession, thus pre-loading your images. Below is an example of the CSS:


#preloadedImages {
width: 0px;
height: 0px;
display: inline;
background-image: url(path/to/image1.png);
background-image: url(path/to/image2.png);
background-image: url(path/to/image3.png);
background-image: url(path/to/image4.png);
background-image: url();
}



The next step is to load this div in your page. This is accomplished by inserting < div id="preloadedImages">< /div> once in the body of the page you are preloading these images. Now you can reference them anywhere on your page (rollovers, alternate image states, etc.), and the image will load instantly from cache.

Friday, April 21, 2006

Cheat sheet n tweaks for MySQL

Interesting one.--
TIP 3:

Can the order of the columns in a create statement make a difference? YES

create table t (
a int,
b int,
timeUpdate timestamp,
timeEnter timestamp );

The first timestamp will always be the "automatically generated" time. So
if the record is updated, or inserted, this time gets changed. If the
order is changed, "timeEnter" is before "timeUpdate", then, "timeEnter"
would get updated. First timestamp column updates automatically.

Note, in the table above timeEnter will only get updated if passed a null
value.

insert into t (a,b,timeEnter) values (1,2,NULL);

Hints: Need mm-dd-yyyy hh:mm:ss format?

select a,b,DATE_FORMAT(timeUpdate,'%m-%d-%Y %T'),DATE_FORMAT(timeEnter,'%m-%d-%Y %T') from t;
+------+------+---------------------------------------+--------------------------------------+
| a | b | DATE_FORMAT(timeUpdate,'%m-%d-%Y %T') | DATE_FORMAT(timeEnter,'%m-%d-%Y %T') |
+------+------+---------------------------------------+--------------------------------------+
| 3 | 2 | 04-15-2004 19:14:36 | 04-15-2004 19:15:07 |
| 3 | 2 | 04-15-2004 19:14:39 | 04-15-2004 19:15:07 |

Monday, April 17, 2006

Xtending the innerTEXT cross-browser funcationality

I had this problem... since IE browser already supports innerText property when
I add the innerText as the prototype method as mentioned in my prev. post it creates
problem.
So to get around this issue... v need to check if the browser is IE or not and then
apply the java script EVAL method on the prototype accordingly...otherwise it sux...

Herez the code:

var is_ie = (navigator.userAgent.indexOf('MSIE') >= 0) ? 1 : 0;
var is_ie5 = (navigator.appVersion.indexOf("MSIE 5.5")!=-1) ? 1 : 0;
//alert(is_ie5 + "\n" + is_ie);

var prescript = "if(typeof HTMLElement!='undefined'){";
prescript += "HTMLElement.prototype.innerText getter = function(){";
prescript += "var tmp = this.innerHTML.replace(/
/gi,\"\\n\");";
prescript += "return tmp.replace(/<[^>]+>/g,'');";
prescript += "}; ";

prescript += "HTMLElement.prototype.innerText setter = function(txtStr){";
prescript += "var parsedText = document.createTextNode(txtStr); ";
prescript += "this.innerHTML = \"\"; ";
prescript += "this.appendChild( parsedText );";
prescript += "};";
prescript += "}"
//alert(prescript);
if( is_ie == 0 && is_ie5 == 0)
{
eval(prescript);
}

THE Top 15 Security/Hacking Tools & Utilities

A good summary with a description and links of some of the top tools in the Hacking/Security arena. For old hands it will be a familiar list but most people will find a thing or two they didn't know about.

read more | digg story

Friday, April 14, 2006

Force windows to load the kernel in memory(Windows XP tweak)

This is a very small tutorial, that will help you make your windows XP much faster, by loading the windows kernel in memory. This is a very effective tweak for windows XP.

read more | digg story

Wednesday, April 12, 2006

All in one Firefox Tweaks, Extensions and Optimizations

Firefox Tweaks, Extensions and Optimizations

read more | digg story

Tuesday, April 11, 2006

270 Free Mini Pixel Icons

"These mini icons are designed at 14x14px with transparent background. They are specially designed for header or side navigation buttons. Feel free to use these icons for your site (personal or commerical)."

Also see:
www.alvit.de/blog/article/icons-round-up-free-mini-pixel-icons
www.somerandomdude.net/archives/2005/10/bitcons.html

read more | digg story

Tuesday, April 04, 2006

Hack Firefox to optimize memory usage and performance

Now this is what i need... looking for since a long time...
Go to here.

Some firefox extension which suck lots memory ... so herez a list n solutions...

Yet another article on optmizing..is here.

Monday, April 03, 2006

how to make innerText work in Mozilla/Netscape suite

if(typeof HTMLElement!="undefined"){
HTMLElement.prototype.innerText getter = function(){
var tmp = this.innerHTML.replace(/
/gi,"\n");
return tmp.replace(/<[^>]+>/g,"");
}

HTMLElement.prototype.innerText setter = function(txtStr){
var parsedText = document.createTextNode(txtStr);
this.innerHTML = "";
this.appendChild( parsedText );
}
}

Just place the above in ur java script.

How To Get �Provider Independent� IP Address For Your Home Server?

This article is about how to provider-independent real IP address for your home server behind the NAT.

read more | digg story

Sunday, April 02, 2006

Turn Greasemonkey Scripts into complete Extensions

Greasemonkey Compiler can take any greasemonkey script as input, and output a completely functional Firefox extension.

read more | digg story