AMD ATI Catalyst™ 10.1 Display Driver for GNU/Linux

Dependencies :

XOrg 6.8, 6.9, 7.0, 7.1, 7.2, 7.3 or 7.4
Linux kernel 2.6 or above
glibc version 2.2 or 2.3
POSIX Shared Memory (/dev/shm) support is required for 3D applications

P.S : uninstall the ATI Proprietary Linux Driver before installing a newer version, if installed.

$ cd /usr/share/ati ; sh ./fglrx-uninstall.sh ; sudo reboot

CAUTION : ATI has contributed packaging scripts to allow creation of other packages, but does not necessarily test, verify or warrant the reliability.

Ground Control on Karmic

Ground control collaboration of launchpad and bazaar branches for easier development for the everyday user!

How to install ground control on karmic?!

From PPA :
$ sudo add-apt-repository ppa:doctormo/groundcontrol
$ sudo apt-get update && sudo apt-get upgrade
$ sudo apt-get install groundcontrol

From source:
$ bzr branch lp:groundcontrol ; cd groundcontrol ; sudo python setup.py install

Set up a Projects directory
$ mkdir ~/Projects

Navigate to : Places -> Home Folder -> Projects folder

Django on Ubuntu

Django | The Web framework for perfectionists with deadlines

Settings it up:
sudo apt-get install django

Check out the options of the command django-admin

Start s project
hemanth@ubuntu:~/django$ django-admin startproject mysite
hemanth@ubuntu:~/django$ cd mysite
hemanth@ubuntu:~/django$ ls
__init__.py manage.py settings.py urls.py
This is the basis of the application

manage.py => application we use to RUN certain commands.

My Google wave ideas

My 55 ideas for Google Wave :{Some are on it's way} :
Go and vote here : You liked any?

1."Alloww grouping in contacts list like Friends,Co-workers,Bots so on. So when i click on Friends all of them in that group must be added to a single wave, so we need not add each of them."

2."Block/Ban/Kick users, sometimes spammers or sometimes from contact list itself!"

3."Ability to drag and drop media from hard-disk to wave"

Firefox 3.6 with full HTML 5 API support

As the latest firfox came up was were happy to read the below in there site :

"Currently, an entirely new spec is being drafted for file objects and handling within HTML5. It will provide a much more robust interface for accessing content in local files, in addition to extending functionality for file objects within Javascript/DOM. The primary additions include:

* Drag n' drop of local files into a web page.
* Asynchronous file data access via callback methods.
* Sending file objects via XMLHttpRequest.

MySQL DB Synchronization.

DB replication/reflection is on the most import process while achieving a distributed system, which helps in the DB synchronization between remote hosts.

The concept is pretty simple :

1.Setting up the Master.

2.Setting up the Slave.

3.Let the Slave receive events from master and update DB.

Synchronize remote hosts

  1. A simple script to sync remote hosts, steps to achieve it :
  2.  
  3. 1.Avoid SCP prompting for password [ local host ] =>
  4. ssh-keygen -t dsa -b 2048 -f ~/key.pub
  5.  
  6. 2.SCP the key for the first time to the [ remote host ] =>
  7.  
  8. scp ~/key.pub remoteuser@remotehost:/home/remoteuser/
  9.  
  10. 3. In remote host :
  11. [ Authorize the Host from which key was received ]
  12.  
  13. if [ ! -d .ssh ]; then
  14. mkdir .ssh
  15. chmod 700 .ssh
  16. fi
  17. mv key.pub .ssh/
  18. cd .ssh/
  19. if [ ! -f authorized_keys ]; then
  20. touch authorized_keys
  21. chmod 600 authorized_keys ;
  22. fi
  23. cat key.pub >> authorized_keys

Send mail to Gmail programatically with Python

  1. #!/usr/bin/python
  2.  
  3. import smtplib
  4. from email.MIMEMultipart import MIMEMultipart
  5. from email.MIMEBase import MIMEBase
  6. from email.MIMEText import MIMEText
  7. from email import Encoders
  8. import os
  9.  
  10. gmail_user = "xyz@gmail.com"
  11. gmail_pwd = "*******"
  12.  
  13. def mail(to, subject, text,
  14. attach=[]):
  15. msg = MIMEMultipart()
  16.  
  17. msg['From'] = gmail_user
  18. msg['To'] = to
  19. msg['Subject'] = subject
  20.  
  21. msg.attach(MIMEText(text))
  22.  
  23. for file in files:
  24. part = MIMEBase('application', "octet-stream")
  25. part.set_payload( open(file,"rb").read() )
  26. Encoders.encode_base64(part)

Reseting htpasswd with PHP

<?php

function load_htpasswd($file)
{
    if(
file_exists($file) && filesize($file) > 0)
    {
        
$htpasswd file($file);
        
$auth = array();
        foreach(
$htpasswd as $h)
        {
            
$array explode(':',$h);
            
$user $array[0];
            
$pass chop($array[1]);
            
$auth[$user] = $pass;
        }
        return 
$auth;
    }
    else
        return array();
}

function 
sha1_htpasswd($pass)
{
    return 
'{SHA}' base64_encode(pack('H*'sha1($pass)));
}

function 
valid_user($userpass$user$pass){

    if(!isset(
$userpass[$user])){
        echo 
"User Password is not set.?>

Synchronizing SVN with an HTTPS URL

Creating a read-only mirror of a repository from a HTTPS which is in sync helps to maintain an local repo which is in sync with the global and is much faster and reliable for a group working locally.
Achieving this is pretty simple,svnsync - Subversion repository synchronization tool which makes the job easier.

The idea is pretty simple, the steps followed are :

1.Setting up a mirror repository.
2.Initialize (init) the sync.
3.Synchronizing the data.
4.Making a sync job.

Setting up a mirror repository:

#Create a mirror repository

Drupal SEO