"; */ ?>

software


12
Jan 08

Make Internet Explorer Behave Like a Standard-Compliant Browser

Internet Explorer by W3 Standards

If you have ever done web development, especially web design, you know that almost 50% of all development time goes to make CSS work for all the browsers. And, of course, Internet Explorer is the most non-complaint browser out there. Not only that, but it also lacks backward compatibility – so some features that work in IE6, would either break or what they call it “work differently” in IE7 and of course work another way in IE5.

One way around that would be to write a custom Java Script redirector that would determine what browser the client uses and redirected to the correct CSS. Another one, is to write a custom JavaScript that actually implements the functionality of all different browsers and makes sure everything is W3 compliant no matter what browser the client uses.

The problem in a second approach is that usually developers tend to write that JavaScript file only for a limited set of features that their application (web site) uses, and hence their JavaScript files are hardly reusable by others.

However, recently one of my good friends and developers discovered an open source JavaScript library – ie7-js, which is hosted on code.google.com and has an MIT License. This 70Kb library implements all the W3 features, which means it is highly reusable, and it makes web development to be a much much easier task, since developers do not need to worry about cross browser (at least from IE perspective), as this library supports ALL versions of Internet Explorer (5.0, 6.0, 7.0, 8.0 +). Which makes it universal for any web development project.

Enjoy and reuse the cross-browser wisdom!


2
Jan 08

Slow GMAIL Fix

gmail logo
Since GMAIL changed its user interface from version 1.0 to 2.0, there were a lot of complaints from all over the world, from users of different browsers (Firefox, IE, Safari, Opera, etc..), that their GMAIL works very and very slow.

PROBLEM:

The first and the most frequent slow behavior is discovered by gmail users during login in to their accounts from http://www.gmail.com. This is mostly due to the fact that by default they are using a 2.0 version of Gmail’s User Interface (UI).

It seems that the 2.0 UI was not well “stress tested” and hence it is far from being as scalable as its previous, proven to scale, 1.0 version.

SOLUTION:

Since GMAIL code belongs to GOOGLE and they are actively working on it, it would make sense to trust them with fixing gmail’s 2.0 UI in near future – it is GOOGLE, and it just makes sense to trust them, at least for now it does.

However until that moment comes, when GMAIL 2.0 UI is fixed, here is a quick workaround for the “slow gmail” problem: Instead of going to http://www.gmail.com which brings up 2.0 UI, go to https://mail.google.com/mail/?ui=1 which explicitly tells gmail to use 1.0 version of UI. This will work as fast as before, and will get you back on track with loving gmail. :)

Good luck!


7
Dec 07

X11 Forwarding with SSH

xorg
Here is how to configure X11 forwarding with ssh.
Takes under a minute to configure:

1. On the SERVER: set “X11Forwarding yes” in your

	/etc/ssh/sshd_config

2. On the SERVER in the USER’s home dir:

	sudo rm -f .Xauth*

3. On the client:

	ssh -2 -4 -C -X -v USER@SERVER

4. Once logged in to the SERVER run “xclock” to confirm

done :)


7
Dec 07

Hang Internet Explorer

Internet Explorer is going down

Want to hang Internet Explorer? Here is one way to do it:

<html>
<script>
	for (x in document.write) { document.write(x);}
</script>
 
    <body onload="f()">
        Internet Explorer is going down...
    </body>
</html>



right from the source


5
Dec 07

Russian Roulette in Bash

russian roulette in bash

# [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live”

* You either live or …. rm -rf / :)