31 January 2010
By hemanth
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.
30 January 2010
By hemanth
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
26 January 2010
By hemanth
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.
23 January 2010
By hemanth
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"
21 January 2010
By hemanth
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.
19 January 2010
By hemanth
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.
18 January 2010
By hemanth
A simple script to sync remote hosts, steps to achieve it :
1.Avoid SCP prompting for password [ local host ] =>
ssh-keygen -t dsa -b 2048 -f ~/key.pub
2.SCP the key for the first time to the [ remote host ] =>
scp ~/key.pub remoteuser@remotehost:/home/remoteuser/
3. In remote host :
[ Authorize the Host from which key was received ]
if [ ! -d .ssh ]; then
mkdir .ssh
chmod 700 .ssh
fi
mv key.pub .ssh/
cd .ssh/
if [ ! -f authorized_keys ]; then
touch authorized_keys
chmod 600 authorized_keys ;
fi
cat key.pub >> authorized_keys
16 January 2010
By hemanth
#!/usr/bin/python
import smtplib
from email.MIMEMultipart import MIMEMultipart
from email.MIMEBase import MIMEBase
from email.MIMEText import MIMEText
from email import Encoders
import os
gmail_user = "xyz@gmail.com"
gmail_pwd = "*******"
def mail(to, subject, text,
attach=[]):
msg = MIMEMultipart()
msg['From'] = gmail_user
msg['To'] = to
msg['Subject'] = subject
msg.attach(MIMEText(text))
for file in files:
part = MIMEBase('application', "octet-stream")
part.set_payload( open(file,"rb").read() )
Encoders.encode_base64(part)
15 January 2010
By hemanth
<?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.?>
06 January 2010
By hemanth
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
Recent comments
8 weeks 4 days ago
10 weeks 4 days ago
11 weeks 15 hours ago
13 weeks 12 hours ago
13 weeks 12 hours ago
13 weeks 2 days ago
13 weeks 2 days ago
13 weeks 3 days ago
13 weeks 6 days ago
14 weeks 1 day ago