Twitter
- Cellphone inventor Martin Cooper uses a Motorola Droid. http://goo.gl/VkE6 22 hours ago
- Its 42°C in Kerala and the Weather applet shows 26°C for Chennai #wtf 23 hours ago
- IPL starts today. It is going to be a month of entertainment #ipl 23 hours ago
- @ram5sh But Flash is too buggy and consumes more memory. Anyway it should be replaced. Even Apple is going that way. 2010/03/11
-
Recent Posts
- Nokia E-63 on Linux
- Reliance NetConnect on Ubuntu 9.04
- Software Freedom Day 2009
- Twitter on Pidgin
- Chrome OS: The new threat to Redmond
- Google Chrome on Linux
- Jaunty on my new Toshiba Satellite !!!
- Windows 7 and the Linux lesson
- New ICC Ranking: Sachin not in the top 20 !!!
- HP Pavilion DV6000 Notebook and Linux
- Building DVD Images Of Ubuntu Repositories
- Making Photo Slideshow DVD’s under Linux
- Encrypt Emails within Firefox
- Building RPM Kernel Packages
- Ubuntu 8.10 Intrepid Ibex
Archives
Category Archives: Python
Building your own game using pygame
These days I was experimenting with pygame and found out that how easy game development can be done with pygame. I build a ‘Space War’ clone using pygame with some sound effects. Now I’m making a HOWTO on building the games using pygame. When it is complete I will post it here..
[DOWNLOAD SPACEWAR SOURCE]
var [...]
Python Networking: Send Emails using smtplib
Here is a small application in Python for sending email messages via SMTP
=====================================================
#!/usr/bin/python
import smtplib
fromAddr = raw_input(’From: ‘)
toAddr = raw_input(’To: ‘)
Subject = raw_input(’Subject: ‘)
Message = raw_input(’Message: ‘)
Email = ‘Subject: ‘+Subject+’\n\n’+Message
Server = smtplib.SMTP(”BlackPearl”,25)
Server.sendmail(fromAddr, toAddr, Email)
print ‘Your Email has been sent to ‘, toAddr
====================================================
If your system has two users “root” and “leaf” you should have two email accounts [...]
Also posted in Linux, Programming Leave a comment
Python Socket: Updated Client Server
This is a modification of the previous one
#!/usr/bin/python
import socket
import sys
if len(sys.argv) < 3:
<tab>print ‘Usage: %s [hostname] [portnumber]‘ % sys.argv[0]
<tab> sys.exit(1)
server = sys.argv[1]
port = int(sys.argv[2])
msg = ’start’
#Setup a standard internet socket. Connects to a server
sock = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
sock.connect((server,port))
while msg != ‘exit’:
<tab> msg = raw_input(’Enter a Message: ‘)
<tab>sock.send(msg)
<tab>data = sock.recv(1024)
<tab>print ‘Received Message: ‘, data
sock.close()
#!/usr/bin/python
import socket
import sys
if len(sys.argv) < [...]
Also posted in Linux, Programming Leave a comment

Nokia E-63 on Linux