Mollie Ballantine, originally uploaded by timc3.
The newest member of our family Mollie Ballantine. She went to sleep as soon as she got to her new home, and being a Basset Hound I am sure its a pose that we will get used to!
Shes so cute!
Mollie Ballantine, originally uploaded by timc3.
The newest member of our family Mollie Ballantine. She went to sleep as soon as she got to her new home, and being a Basset Hound I am sure its a pose that we will get used to!
Shes so cute!
One of the things that I wanted to do when I came back from my holiday (vacation to those Americans) was to take all the footage and photos and put them in something more structured and what better way than to create a DVD with everything. This is how I did it (if you are reading this through RSS you might want to go to the site as the structure will be better).
Jeanette and I had been to two weddings, and these would form the structure. So I decided to tackle the first one first, but instead of using lots of different tools and creating all the graphics myself, I wanted to see how easy it would be to use the built in themes of the Apple iLife 06 product.

Apple iLife contains several products, and for this project I decided to use iMovie HD to ingest the video from the camera, edit the video, create transistions, titles and the credits.
Then use iDVD to create the DVD menus, image slideshows and the menus to jump straight into various parts of the movie.

iPhoto would be used to select the images, and iTunes to select the sound track that I wanted to use.
The great thing about using Apple iLife is all the products are selfcontained, but can also interact with one another, for instance one click can take a project from iMovie straight into iDVD and setup the DVD correctly with menu to each of the Chapters created in iMovie. That can save hours.
One thing that did set me back was the Audio stopped working on my Apple Powerbook G4, which I believe to be a Hardware issue, so I was basically operating without audio. I don’t advise this at all, the finished product will be much better know what is going on with Audio.
This is the list of steps that I took to build my movie:
One thing I do when I have installed Debian is to tighten it down slightly. There are some great scripts to do this, such as bastille and also the securing Debian howto but here is my top 10 lockdowns:
) and telnet (you should be using ssh)
If you need to change the frequency, edit the cron file here:
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
These are some really good instructions to joining a Debian box to an Active Directory domain using winbind.
http://www.ccs.neu.edu/home/battista/documentation/winbind/
The only step it didn’t say was to create a directory under /home with the name of the AD domain that you are joining so that pam.d can create the user directory when a user logs on for the first time.
One thing that I feel is harder than it should be with django is getting it working with Apache2. Sure the built in webserver is nice for development, but there comes a time when you need to step up and use a webserver for development that you can also deploy the site upon.
I have used Apache a lot in the past, but recently I have decided to move over to installing everything the Debian way, and this will reflect that. I am going to use python2.3, Apache2 and the version of mod_python that is in stable. You can follow the instructions if you have installed Apache2 and mod_python in otherways after this step if you wish.
To get Apache2 on Debian with mod_python, simply:
For the rest of the tutorial, I am assuming that you have Django setup correctly, and working with your database. If not, I recommend installing the development version. It is easy to update using svn and there are some features that are better than the stable version I find. Once you have done this you can start to build your site. From then on you can create your apache virtualhost file:
I have decided to run my django site on a different port, but of course you can run it on different ipaddresses, and with different hostheaders. All you need to do is follow the apache 2 documentation for this. I feel this is already well documented so I will just show how I did it by running on different ports:
<virtualhost *:8000>
<location "/">
SetHandler mod_python
PythonHandler django.core.handlers.modpython
PythonPath "['/home/tim/dev/projects/'] + sys.path"
SetEnv DJANGO_SETTINGS_MODULE djangosite.settings
PythonDebug On
</location>
Alias /media "/var/www/djangosite/media"
<location "/media/">
SetHandler None
</location>
<locationmatch "\.(jpg|gif|png)$">
SetHandler None
</locationmatch>
</virtualhost>
This gives us several things:
mkdir /var/www/djangosite/
cd /var/www/djangosite/
ln -s /usr/lib/python2.3/site-packages/django/contrib/admin/media/
chmod -R 755 /var/www/djangosite
Once you have done that, check your site by point a webbrowser to the the machine that you have apache2 running on, but at port 8000 for instance if it is a localhost, tryhttp://127.0.0.1:8000.
One thing that I haven’t talked about is where it is best to place all the files used in creating a django site, and I have yet to read any documentation about this. This is why in the above I am point it to a dev subdirectory from my home directory. I don’t think this is a good idea for a production site, and perhaps it should go in somewhere off /var.
One thing is for sure, creating seperate directories for media and the actual files is a good idea, and you if you follow the django instructions you can take them up on the recommendation of using a seperate lightweight webserver to just serve these files.
Here’s a list of 30 helpful tutorials and/or articles on the Django web framework. This was written as an answer to the Top 30 Ruby on Rails tutorials and it is really helpful when you are learning Django. Hopefully this will help it get even more support.
I have been using hellahella using paster serve and I must say the performance was terrible. I don’t think that it is mean’t to be run for any length of time which is at odds with hellahella, the web interface to hellanzb, which is.
I have documented before that I am using hellanzb to manage my nzb files, and hellahella makes it even easier and with integration with http://www.newzbin.com it is even better (how about one click downloads, unrar, par, and ready to view – yes I have it!)
So I wanted to run hellahella using Apache2 on my Debian box. Luckly just as I wanted to do this a new FAQ was put up on the Pylons web site on how to achieve this using mod_python (which I also wanted to use). Pylons is a web framework for python and it seems quite good too and I got alot of help from the very helpful pylons-discuss group on groups.google.com.
So I setup Apache2 or rather Debian did using apt-get, and I got a fairly normal install. If you haven’t used version2 of apache before the configuration has changed somewhat and all the config files are now split. At the same time I also installed mod_python using apt-get and as this is rather well documented I am not going to write it down here. Now all we need do is follow the first part of the instructions on the Pylons site:
VirtualHost 127.0.0.1 ServerAdmin tim@timc3.com DocumentRoot /www/hellahella/ SetHandler mod_python PythonHandler mod_python.wsgi PythonPath "['/www/hellahella/'] + sys.path" PythonOption wsgi.application startup::app PythonOption SCRIPT_NAME / ErrorLog /var/log/apache2/error.log Alias /stylesheets/ "/www/hellahellaMedia/stylesheets/" Alias /javascripts/ "/www/hellahellaMedia/javascripts/" Alias /images/ "/www/hellahellaMedia/images/" LogLevel warn CustomLog /var/log/apache2/access.log combined /VirtualHost
And I must say it is looking good!
Well it seems to me like quite alot, so much so that I haven’t made much time to put updates in here so I will probably have more posts to follow this one when the time is right. But here is a quick list:
All in all seems like I have been quite busy, and I still haven’t managed to tackle most of the sites on my list that I wanted to finish by the end of the year. Still there is plenty of time left at the moment, even with adding more to the list!
Over the last few days I have been playing with Django quite alot, installing it on a couple of machines and on dreamhost. The dreamhost configuration is now well documented by Jeff Croft in his post: http://www2.jeffcroft.com/2006/may/11/django-dreamhost/ and the on dreamhost Wiki here: http://wiki.dreamhost.com/index.php/Django
I did seem to use a few different settings on the file:
django.fcgi:
Which seemed to help no end in getting it working.
On my own development machines I have had to set the PYTHONPATH environmental variable in .profile which is what python uses to search along when doing its imports. This is also set when using Mod_Python in the VirtualHost settings of Apache.
DJANGO_SETTINGS_MODULE is another env var that can be set this time for django itself. I haven’t yet configured it on my machines at the moment but I will do no doubt.
The base configuration that django gives via its admin tools is very good, but it has been extended by this project: Nesh DjangoUtils , which helps when setting up a djangoproject to do everything from creating the directories to creating the fcgi and modpython entries. I haven’t needed to use it yet as I already started my django project before using it, but it is one to try in the future for sure.
So far I am finding django quite rapid in development, but I am spending alot of time looking for documentation on things, but the IRC channel is proving invaluable for help. I will be putting up alot more articles as I go forward.
The article describes in a human language some of the powerful, yet very useful (even for total newbies) capabilities of OpenSSH, such as passwordless login, automatic execution of commands on a remote system or even mounting a remote folder using SSH.