Python

Create custom notification on your Ubuntu desktop using python

You can easily create custom notifications for your applications on ubuntu. Ubuntu’s current notification system is called NotifyOSD. It provides api for several languages. Using python-notify library it is really so easy than in any other.

Ubuntu by default have the python-notify installed. If don’t install it using

sudo apt-get install python-notify
No Comments

Read more

How to create a client server socket connection in python

Creating server socket connection made so much easy in python. You need to create two script. One for server and another for client. In the server script will create a socket in a port number and start listening to that port. And in the client you will need to connet to that port and host ip.

1 Comment

Read more

Message encryption decryption using xor in python

Sometimes we need to pass a message to someone in a public place like Facebook status or twitter. But need to keep that secret. So i have created a simple message encryption program in python. It has a secret pin (default ‘ABC’) to xor with your message for encryption decryption. You can change the pin. The same pin is required to decrypt an encrypted message. Thus you can use different pins to send encrypted message to different peoples without loosing secret to anyone else.

Run this in your python terminal and enter your message.

1 Comment

Read more