Twitter
- VTV was just an average film. I really donno why there is so much fuss about it. 2010/03/05
- Microsoft releases its first Android App http://www.engadget.com/2010/03/04/tag-microsofts-first-android-app-is-it/ 2010/03/04
- Good artists create.... Great artists steal. Xerox would have been the King of Computing if Jobs had not stole the GUI from PARC #facts 2010/03/04
- @ram5sh The link to your blog. Didn't know that you have a blog. Good !! 2010/02/26
-
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