Apr 29

Few weeks back, one of my friend, known as “The Immortal” has requested all his friend to fill his Orkut scrap book to 10K. To say it from heart, it is illegal. But this keeps Orkut right.

Orkut has got lots of well defined process for preventing a user from automate scrapping in the scrap box.

For Example,
1, It prevents the advertising in the name of URL by checking the URL entered by user with the CAPTCHA..( I will write about it sometime future )
2. It prevents the user from scrapping the same text again and again.
3. Blank Scraps not possible.(may be)

These functionalities are important to note as they are the stepping stone above which we have to lay our feet to reach the goal. The Goal i reached is the 60 scrap in Three minutes..

To precisely summarize the requirement, a process is required to automate entering the text in the scrapbox and clicking the submit button.

Orkut uses Text area for Scrap Box and a table cell for submit button(?-*#_;)..

thankfully, both these elements have id as ’scraptext’ and ‘b1′, else it would be some more complicated.

Automation Script that I have used is not a programmer’s favourite languages like perl, python ..(I do think that programmers will say “sea tastes like honey”).. I choose javascript and it would be running on Greasemonkey,an add on for Mozilla Firefox…

Why I have choosen this?
1. I have some idea on Grease monkey, Firefox and Javascript
2. I just know that it is going to be two lines of codes in this environment.

So what is the algorithm for these two lines of Code?
Algorithm is a best practise for writing a program. But it is needed for the place where it is needed. Algorithm is like dream and coding is like action. For some big achievements, there has a dream behind it. hey.. sorry.. i am cutting there.. its getting more philosophical..

Lets Come back to code…

document.getElementByID().value = random text;
document.getElementByID().click();

that’s all the code… But the second line of code doesn’t work for me..

I suspect that it is because of table cell instead of button.(Orkuttan is bright)

There are hundreds of ways to create a random text. I have used a way, there by, three strings from two different arrays are joined in random fashion, it will yield the random string every time it is created.

for three minutes, i have clicked the submit button.. each time a random text filled up in the text area.. sixty scraps were made…

But the learning from this is not just clogging orkut, a new way of writing the scrap..
Now I have found a way of scrapping a message with randomly generated quote using this script as it was already populated..

so whats the future plan for this..
I would be writing a script for thunderbird so that a randomly generated quote can be added to all sent mails…

Deadline… Its always in future…

Reference:
http://diveintogreasemonkey.org/

written by Pandian \\ tags: , , ,

Apr 26

When I read history, it brings out lots of surprises. and often I forgot that I was part of the history.

It was month back when I watched the movie “NameSake”. In one Particular scene, Irrfan Khan, the Hero says to her wife Tabu that, 1 USD is equal to aaat(8) rupee. I was surprised, because ever since my childhood, I have been watching news in DD , Sun Tv. Its for several years, the news programs stating that 1 USD rate would be in the range of 40 rupees. It makes me sad and I was asking lots of questions.

What happens to My country?

Why did they let it happen?

How can the Great Indians stand so careless?

There are lots of questions that poped in my Mind. I know that I can find the answer to those questions with great tools like google, wikipedia etc. I started searching the web. I found some interesting facts and figures from the History. I cant do anything but wonder. Sometimes it brings out pride in my Own India.

The First surprising point…
According to 1894 census in India, around 90% of population lives in Village.

I give my thought on those people who chose to live in village, inspite of the facilities being less.

  • Village is Safe, as those days, riots, loot, war would mainly affect the cities.
  • From the Madan’s “Vandhargal Vendrargal”, one can understand how its unsafe it is to live in city.
  • Village is always Cheap and Village is Self Sustaining.

The word self sustainance, is a key word that brings the real superiority of Village. A city cant live with out the support of village, but a Village can live on its own. I do think, its because of great villages surrounding delhi, that makes delhi to stand again after each and every failure in combat.

Now Lets see Simplistic Second Point…
After the Indo-Pak partition, Indian Coins were used in Pakistan and Indian Currencies are used by just overstamped with name Pakistan …

Terrific third point..
With dollar being eight rupees in 1974, Indian currency slowly depreciated and in 2002.. it steadily reaches 48 ruppees..From there, India sets back to US.. and Today it is 40.25 Rupees, the lowest value in last fourteen years. Actually this is because of two reasons, lets see that in … next two points…

Fantastic Fourth Point…
US Dollar has shown steady depreciation in its value. One of the Main reason for depreciation of US Dollar is Reserve Accumulation. Almost all Asian Countries do this process by which, they keep or accumulate US Dollar (that is earned as profit) before the money find its way into the country. Though It is loss to the Reserve bank, it seems like fetching the good fruits for country…

The Simply Fifth Point..
INR Appreciation. Thanks to Indian IT companies and BPOs. They have done a tremendous job in INR appreciation. Unfortunately they are the one who are affected by appreciating money. This brings out serious concern for IT companies, I believe that soon Indian IT companies would choose to work for the needs of our own country.

More Fascinating points yet to come..
Pegged Exchange Rate Vs Floating Exchange Rate….

written by Pandian

Apr 25

The first sound of a child is to cry, then baby lives. The first step in web, is to register an account, from there the life starts…

I have registered in so many websites.. some of those websites here

- yahoo

  • geocities
  • (Account Deleted)

  • games
  • 360
  • groups
  • Photos

- hotmail
- google

  • gmail
  • orkut
  • blogger
  • google pages
  • Picasa
  • Calendar

- multiply
- Javaranch
- sourceforge.net
- wikipedia
- kwikphp
- TopCoder
- 110mb - Account Deleted
- 789mb - Account Deleted
- myjavaserver - Account Deleted

I am sorry.. Most of this are inactive.. I was jotting down now.. I would deleted some of them in near future.

written by Pandian