This code will help you to identify invisible friends on gchat or gmail using ubuntu
just save this code in your system as gchat.py
then open ur terminal in ubuntu and type
sudo aptitude install python-xmpp python-dnspython
then after the installation type
python gchat.py
this list of friends name will be displayed
//gchat.py
import xmpp
# Google Talk constants
FROM_GMAIL_ID = "email"
GMAIL_PASS = "password"
GTALK_SERVER = "gmail.com"
jid=xmpp.protocol.JID(FROM_GMAIL_ID)
C=xmpp.Client(jid.getDomain(),debug=[])
if not C.connect((GTALK_SERVER,5222)):
raise IOError('Can not connect to server.')
if not C.auth(jid.getNode(),GMAIL_PASS):
raise IOError('Can not auth with server.')
C.sendInitPresence(requestRoster=1)
def myPresenceHandler(con, event):
if event.getType() == 'unavailable':
print event.getFrom().getStripped()
C.RegisterHandler('presence', myPresenceHandler)
while C.Process(1):
pass
Friday, November 26, 2010
Thursday, October 28, 2010
Thursday, September 9, 2010
CHAMPIONS LEAGUE
Champions league kicks off from today in South Africa...Lets Support all our IPL teams especially the team of Lions ( CHENNAI SUPER KINGS) Lead by a TIGER DHONI :)
champ league
SOFTWARE FREEDOM DAY
Software Freedom Day (SFD) is a worldwide celebration of Free and Open Source Software (FOSS).The main goal of this celebration is to educate the worldwide public about the benefits of using high quality FOSS in education, in government, at home, and in business -- in short, everywhere! The non-profit organization Software Freedom International coordinates SFD at a global level, providing support, giveaways and a point of collaboration, but volunteer teams around the world organize the local SFD events to impact their own communities.
Chennaites !!! Want to attend SFD ?????
Come join us at Jaya Engineering college on september 18th
Visit our sfd website click here
Chennaites !!! Want to attend SFD ?????
Come join us at Jaya Engineering college on september 18th
Visit our sfd website click here
Sunday, August 8, 2010
Saturday, August 7, 2010
Saturday, July 31, 2010
Java Servlet
Java Servlet technology provides Web developers with a simple, consistent mechanism for extending the functionality of a Web server and for accessing existing business systems. Servlets are server-side Java EE components that generate responses (typically HTML pages) to requests (typically HTTP requests) from clients. A servlet can almost be thought of as an applet that runs on the server side—without a face.
import java.io.*;
import javax.servlet.*;
public class Hello extends GenericServlet {
public void service(ServletRequest request, ServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html");
final PrintWriter pw = response.getWriter();
pw.println("Hello, world!");
pw.close();
}
}
Subscribe to:
Posts (Atom)