Installing Django 1.5.1 with python 2.7.4 on Bluehost

First SSH Into your account (using putty, or terminal if you are on linux) where we will start by moving to our home directory (~) and creating a directory for the latest python.

cd ~
mkdir python27
wget http://www.python.org/ftp/python/2.7.4/Python-2.7.4.tgz
tar xzvf Python-2.7.4.tgz
cd Python-2.7.4
./configure -prefix=/homeX/your_username/python27 --enable-unicode=ucs4
make
make install

We then add this python directory to our PATH environment variable and load it (more…)

Appending to column of csv file

## python 2.7.3 import csv writer=csv.writer(open(“output.csv”,”wb”), delimiter=’;’, quotechar='”‘, quoting=csv.QUOTE_MINIMAL) with open(‘products.csv’, ‘rb’) as csvfile: spamreader = csv.reader(csvfile, delimiter=’@’) ## for row in spamreader: ## writer.writerow(row[0].strip() + row[1].strip() + row[2].strip() +row[3].strip() +row[4].strip() +row[5].strip() + row[6].strip() + row[7].strip() + row[8].strip() + row[9].strip()) Read more…

How to remove ID from URL in Joomla 2.5 and 3

Open componentscom_contentrouter.php in an editor and make a small changes: in function ContentBuildRoute(&$query) replace line 27 $advanced = $params->get(‘sef_advanced_link’, 0); with $advanced = $params->get(‘sef_advanced_link’, 1); in function ContentParseRoute($segments) replace line 208 $advanced = $params->get(‘sef_advanced_link’, 0); with $advanced = $params->get(‘sef_advanced_link’, 1); Comment out Read more…