Archive for the ‘Uncategorized’ Category.

Political Parties give second thought on second term for APJ Abdul Kalam

———- Forwarded message ———-
From: Get Kalam Back <pramodh@getkalamback.com>
Date: May 6, 2007 10:04 AM
Subject: Political Parties give second thought on second term for APJ
To: barathee@gmail.com

Dear barathee,

The Rashtrapati Bhavan will soon have a new occupant. – CNN IBN

Politicians are tightlipped about their choice for President

Hunt for India’s first citizen is picking up pace,

  • The BJP has been maintaining a conspicuous silence on the issue.
  • Kalam is not exactly the hot favourite with the Congress.
  • One party that’s come out openly against Kalam’s second term is the Left.

(Note: The CPI-M had opposed Kalam’s nomination in 2002 and promises to do so again this time.)

WHY ?

The political parties are aware that the next President may
have to play a crucial role if the 2009 General Elections
throw up a hung Parliament. Therefore, the parties would
obviously prefer a nominee it can rely on, politically.

No one has become a President for the second time after Dr Rajendra Prasad.
And if history repeats itself, the consensus on Kalam looks difficult.

From GetKalamBack.com CAMPAIGN, we request only two action from your side:

1. If you have not voted in the campaign, please CLICK HERE TO VOTE. This is very important.
2. Enter details of your friends (atleast 10) in the email you will get.

barathee, we deserve what we give. Let us put out our efforts to have a
Visionary like Dr Kalam as the First Citizen for another Five Years.
We will send the letters of the Campaign on May 7 to the political parties.
The time has come to play our role in choosing what and whom we want.

Regards,
Pramodh Mysore

NOTE:
FORUM: We have created a FORUM for you to
discuss the issue of Second Term for President Kalam. Please give your opinion
by going to the Forum.
NEWS: We have also the latest news on Dr Kalam’s various visits and his second Term.
Please visit NEWS
www.GetKalamBack.com News: More than 350,000 people have registered. We require
atleast a million votes for us to send as the collective opinion of the people. So, please send
it to more friends.


—————————————————
*Free* software is a matter of liberty not price. You should think of “free” as in “free speech”.

Sony Ericsson Walkman 810i and Mandriva Linux 2006



Currently i dont have Mandriva spring. But I need to install Linux immediately to continue one of my previous development projects. So I installed on of the older versions of MDK, Mandriva 2006.

This time i found it is very easy to use USB devices with Mandriva. I could see USB thumbdrives are detected automatically and mounted. I could see the necessary icons in the desktop as soon as those devices are mounted properly.

Have fun, my mobile also beautifully working with that, yes, I could see both my phone memory and card storage on the desktop.

ADSL Broadband configuration with Mandriva Linux 2006

Hi,
I wish to document this for a long time, since many home linux users are facing trouble here in Chennai, while configuring broadband connection. I have configured the major service providers of India, Airtel and VSNL without any problem with Mandriva. here are some screenshots.

I am sorry, the images are in descending order :(






Make fun with Text : java.util.Scanner


One of my friend came with the sun’s newsletter today morning. I was wondering about their demo on a new class, java.util.Scanner
See, parsing the string becomes very simple, like iterating a list.

Scanner accepts streams, file and other string input mechanisms and parses the string and give is the tokens. (It also allows the user to specify using which encoding the text has been built. goo news for localisation guyz like me). By default, whatever you have given, it is tokenized by having the default delimiter, space, See the following example,

import java.util.*;
import java.io.*;
public class test
{
public static void main(String [] args) throws FileNotFoundException
{
File f = new File(“test.java”);
Scanner scanner = new Scanner(f);
while (scanner.hasNext())
{
System.out.println(scanner.next());
}
scanner.close();
}
}

The output is

C:\>java test
import
java.util.*;
import
java.io.*;
public
class
test
{
public
static
void
main(String
[]
args)
throws
FileNotFoundException
{
File
f
=
new
File(“test.java”);
Scanner
scanner
=
new
Scanner(f);
while
(scanner.hasNext())
{
System.out.println(scanner.next());
}
scanner.close();
}
}

funny, isnt it!!!

We can also change the delimiter, see the following example

import java.util.*;
import java.io.*;
public class test
{
public static void main(String [] args) throws FileNotFoundException
{
File f = new File(“test.java”);
Scanner scanner = new Scanner(f);
scanner.useDelimiter(“\n”);
while (scanner.hasNext())
{
System.out.println(scanner.next());
}
scanner.close();
}
}

The output is same as that of above code, want to see that one also?

C:\>java test
import java.util.*;
import java.io.*;
public class test
{
public static void main(String [] args) throws FileNotFoundException
{
File f = new File(“test.java”);
Scanner scanner = new Scanner(f);
scanner.useDelimiter(“\n”);
while (scanner.hasNext())
{
System.out.println(scanner.next());
}
scanner.close();
}
}

Really good one! But I really miss the fun of using the streams :(

AJAX and window.location.href

see there is a html line like this
<a href=”javascript:void(0);” onClick=”javascript:deleteGroup();”>Delete</a>
the delete group function is written as

function deleteGroup()
{
selectAll(null);
if (groupNames==”" || groupNames==”,”)
{
alert (“No Groups selected”);
return;
}
var a = confirm(“Are you sure you want to delete the selected groups? This change is permanent and this cannot be recovered!”);

if(a)
{
alert(groupNames);
window.location.href=”/final/admin/Egconfiggroupp.jsp?deleteGroups=”+groupNames+”&mode=delete”;
return;
}
}

It is working fine in Firefox but not in IE. Actually the control has been transferred to configgroupp.jsp and what it need to do, has been done. but it is not getting reflected in UI. it is static :( but when you add ” window.event.returnValue=false;” after window.location.href it is workign fine.

function deleteGroup()
{
selectAll(null);
if (groupNames==”" || groupNames==”,”)
{
alert (“No Groups selected”);
return;
}
var a = confirm(“Are you sure you want to delete the selected groups? This change is permanent and this cannot be recovered!”);

if(a)
{
alert(groupNames);
window.location.href=”/final/admin/Egconfiggroupp.jsp?deleteGroups=”+groupNames+”&mode=delete”;
window.event.returnValue=false ;
return;
}
}

What MS site says is, http://support.microsoft.com/kb/190244/en-us ,
The onclick event is overwritten by href tag etc etc….. oops. oh MS associates, why your browser keep on bugging me, while firefox is working fine?


—————————————————
*Free* software is a matter of liberty not price. You should think of “free” as in “free speech”.