The Golden Spot
I hope this helps someone who is learning about Linux and web application programming with Python, Django, and Javascript.
Monday, May 04, 2009
Sunday, January 13, 2008
Mysql 5.0 and Django Subversion 6917.
I switched from sqlite3 to mysql 5.0 midway through development, First, I edited settings.py to reflect the database changes. Next, I had to run
$ python manage.py reset auth --noinput
first, in order setup a new admin user by executing
$ python manage.py flush
Finally, I made all the tables in settings.py by running
$ python manage.py syncdb
Debian Etch AMD64 MySQL(current) root password setup
first view /etc/mysql/debian.cnf
use the user name to login to mysql
$ mysql -u debian-sys-maint -p
Enter the password in the file. To set the root password type:
mysql> USE mysql;
then
mysql> SET PASSWORD FOR root@localhost = PASSWORD('specialSAUCE');
where
specialSAUCE is your bullet proof password.Now continue to use and learn MYSQL.
Friday, October 12, 2007
New AMD64 3.0 ghz processor and a MSI K9A Platinum mother board; Debian Etch and a SATA 320 gig hard drive:
Problem: Debian net installer is not finding my SATA hard drive.
Solution: after some searching, some people try using
install pci=nomsi
at the boot prompt of the net install disc
it worked for me too.
Tuesday, April 24, 2007
making "caps lock" or "capslock" be the "control" or "ctrl" key (same thing) with Debian Etch PPC and AMD64 (probably applicable to many linux distributions)
type: "man xmodmap" at the terminal and read the parts about finding the key codes using the command "xev". The following page explains how to do it well:
http://ubuntuforums.org/showthread.php?t=420705
So after some playing around with my .Xmodmap file and .xsession file in my home directory I have this in my .xsession file:
xmodmap ~/.Xmodmap
this in my .Xmodmap file:
keycode 66 = Control_L
add Control = Control_L
remember to use xev to find the keycode for your caps lock key. 66 is mine on a G4 mac.
So when you are done to get this working type
xmodmap ~/.Xmodmap
This way you can start using this immediately; otherwise, it should work if you restart X.
Saturday, April 21, 2007
building Python 2.5.1 on PowerPc with Debian Etch PPC
I have a new install of Etch PPC and I downloaded the Unix source.
I decompress and untar the source.
I cd into Python-2.5.1 and type "./configure "
. . .
I get an error about how "c compiler cannot create executables"
So I do some searching and find out that I need to install the build-essentials package
"apt-get install build-essentials" as root and try again. . .
cd into Python-2.5.1 and type "./configure "
looks good so far. . .
type "make"
as I type make is grinding away on my dual 450 mhz processors (probably only using one of them). . .
seems to have worked.
"make install" as root. . .
more grinding. . .
done
type "python" at the prompt and get:
Python 2.5.1 (r251:54863, Apr 21 2007, 08:31:56)
[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
Great! And I was skeptical.
