Tuesday, December 21, 2010

“Yahoo: Delicious not to be closed but up for sale”

There has been many talks going on about Delicious being removed or closed by Yahoo!. It has just been disclosed by Yahoo! that they are selling Delicious to some other company but not closing it down.
In their blog they had mentioned that Yahoo will not shut down Delicious they just want a new home for it. That means they are going to sell it. According to the blog they said
Many of you have read the news stories about Delicious that began appearing yesterday. We’re genuinely sorry to have these stories appear with so little context for our loyal users. While we can’t answer each of your questions individually, we wanted to discuss what we can at this stage and we promise to keep you posted as future plans get finalized.

Things they made clear:

  • Delicious is not going to be closed.
  • No need to remove your book marks from there.
  • Delicious is being sold to some other company.

Things they did not make clear:

  • Who is going to buy Delicious?
  • Why did they take more than 24 hours to make it clear?
If you know any answer to these questions feel free to share them with me through the comments below. Who will own Delicious ,next?

JavaScript to Unmask Password on Web Pages!

If you ever come across a page like below, then this is for you!
scrren1 JavaScript to Unmask Password on Web Pages!
U might have heard about Sandboy’s Revelation who unmask password fields like this!
But Revelation works with only windows based application and fails with Firefox! Once again thanks to open-source for Firefox!
Now lets do it in Geekish way so it will work with all kinda browsers and of course independent of platform!
Here comes javascript which is tested on Firefox & IE!
javascript: alert(document.getElementById('Passwd').value);
Just copy above code and paste it in ur browsers address bar (navigation bar or url bar).
screen2 JavaScript to Unmask Password on Web Pages!
They press enter and you will see a prompt like this!
screen3 JavaScript to Unmask Password on Web Pages!
Of course your password may be different!
There is one more similar script! This will change HTMLs <input> tags “type” attribute from “password” to “text”!
javascript: alert(document.getElementById('Passwd').type='text');
On hitting enter you will see a prompt, just ignore it and look at screen… The password field will be unmasked any now and look like this…
screen4 JavaScript to Unmask Password on Web Pages!
The above script may fail on hotmail when opened in firefox! But don’t worry, as you are in Devil’s Workshop!
Try following code in the same way! This does not work with antique IE 6.0 and with release of firefox 2.0, I did not bothered to give IE 7.0 a try!
This will again prompt password like above!
javascript: function getElementsByAttribute(oElm, strTagName, strAttributeName, strAttributeValue){ var arrElements = (strTagName == "*" && oElm.all)? oElm.all : oElm.getElementsByTagName(strTagName); var arrReturnElements = new Array(); var oAttributeValue = (typeof strAttributeValue != "undefined")? new RegExp("(^|\\s)" + strAttributeValue + "(\\s|$)") : null; var oCurrent; var oAttribute; for(var i=0; i< ocurrent =" arrElements[i];" oattribute =" oCurrent.getAttribute" oattribute ="="> 0){ if(typeof strAttributeValue == "undefined" || (oAttributeValue && oAttributeValue.test(oAttribute))){ arrReturnElements.push(oCurrent);}}} return arrReturnElements; } alert( getElementsByAttribute(document.body, "input", "type", "password")[0].value);
And this will unmask password filed like above!
javascript: function getElementsByAttribute(oElm, strTagName, strAttributeName, strAttributeValue){ var arrElements = (strTagName == "*" && oElm.all)? oElm.all : oElm.getElementsByTagName(strTagName); var arrReturnElements = new Array(); var oAttributeValue = (typeof strAttributeValue != "undefined")? new RegExp("(^|\\s)" + strAttributeValue + "(\\s|$)") : null; var oCurrent; var oAttribute; for(var i=0; i< ocurrent =" arrElements[i];" oattribute =" oCurrent.getAttribute" oattribute ="="> 0){ if(typeof strAttributeValue == "undefined" || (oAttributeValue && oAttributeValue.test(oAttribute))){ arrReturnElements.push(oCurrent);}}} return arrReturnElements; } ; alert( getElementsByAttribute(document.body, "input", "type", "password")[0].type="text" ) ;
Above scripts successfully tested on gmail, yahoo, hotmail, rediff login pages! Orkuts login pages have frames so the above may fail! In fireox you can also right-click on any frame and can open that frame separately in different window or tab and then can use any of above script!
Also any password field can be unmasked using DOM Inspector in firefox! Please don’t make false assumption that firefox is insecure! There is a feature called “master password” in firefox! That will protect your passwords against all javascript, DOM Inspectors, etc!

CSS Trick – Best Way To Preload An Image Without Using Javascript

You might have been observed on many web pages, when you mouse over on any image it disappears for 2-3 seconds and when you mouse over next time it works well, why it happens?
The answer is simple the image which is on hover class is not been loaded yet, as a result when you mouse over first time it takes time to load but when you mouse over next time it behaves normal because the image has been loaded to your computer and ready for the next time. Below you can see how various techniques are used to preload an image.

How to Preload an Image?

There are various techniques to preload an image, two methods are mentioned below without using javascript.

Method  1

In this method we create a div and keep it at the end of the HTML document or after footer div, a class is assign to a div say preloadClass which hides the image using display:none property but the images are loaded at the end of the document so when you hover an image it will not flash for the first time.
<div class="preloadClass">
     <img src="images/hover-image1.png>
     <img src="images/hover-image2.png />
     <img src="images/hover-image3.png/>
</div>
.preloadClass{ display:none; }

.Demo:hover {  background-image:url(hover-image1.png);  }

Method  2

In this method we call the image from the stylesheet and set its position to –1000px to shift away the image so that it disappears from the page.
.preloadClass {
    background-image:url(hover-image.png);
    background-position: -1000px -1000px;
}

.Demo:hover { background: url(hover-image.png) no-repeat 50% 50%;}
I think adding extra markup to preload an image is not a good approach, especially where Web Standards are concerned. Mobile devices, may experience problems when dealing with the following preloading technique. So to avoid this we can implement Method 2.
The best solution is to use a sprite image, you just have to change the background position on hover class and you are done.
The above all technique is tested and compatible with all browsers.

Vodafone Mobile Balance Transfer Trick” and 1 more

If you have a pre-paid account there is a very good chance that you will be familiar with this situation where you need just Rs.20 more of balance to make or continue that one important call. 

Vodafone has a feature which allows people to transfer Balance from one phone to another.
I came across this tip, thanks to Arijit das where I could easily transfer balance between two Vodafone prepaid accounts.

Using Phone Number:

Just dial the following number. “<phone number>” is the the number to which you want to send balance to. Also *20 is the amount of balance transfered.
*131*20*<phone number>#
If you want to request someone to transfer to you some balance, you can initiate that by dialling the following number.
*132*20*<phone number>#
Here the phone number inserted will be that of the person who you are requesting the transfer from. This will send the person a message about the balance transfer.
I think more than a trick this is a new feature for Vodafone mobile users. Also be aware of balance transfer charges which are Re 1.00 per transfer.
Note: This works only when both the numbers are Vodafone pre-paid account holders.