They use a tool that has options to use the most recent released version of django or the current svn. The most recent released doesn’t work so well unless they keep up with the current released. To change to django version 1.1.1, I copied their mtc script from /usr/local/bin and changed lines 60-62 to the following.


my $django_released_url = 'http://www.djangoproject.com/download/1.1.1/tarball/';
my $django_released_tarball = 'Django-1.1.1.tar.gz';
my $django_released_dir = 'Django-1.1.1';

C# and Zip Files

August 6, 2009

Originally planed to use GZipStream and find a way to package a bunch of files manually. While snooping around for that I found packaging, which has the ZipPackage that can be used to make good ‘ole Zip files in C#. The example there is a little less than clear, so this example helps as well.

Instead of just right clicking on the folder and asking for it to be shared I decided to go command line and found this thread.

I found it simple enough to simply stop samba

>sudo /etc/init.d/samba stop

then make a back up of the /etc/smb.conf

add my projects directory similar to this


[MyFiles]
    path = /home/mydir/myprojectsdir
    browseable = yes
    read only = no
    guest ok = no
    create mask = 0644
    directory mask = 0755
    force user = YOUR_USERNAME
    force group = YOUR_USERGROUP

then start up samba and all was good.
>sudo /etc/init.d/samba start

Server install with LAMP and SSH packages selected.

sudo apt-get install python-crypto python-reportlab python-trml2pdf python-yaml python-imaging python-docutils python-elementtree subversion mercurial python-setuptools
easy_install django-registration
hg clone http://hg.assembla.com/threaded_multihost
svn checkout http://django-app-plugins.googlecode.com/svn/trunk/ django-app-plugins-read-only
svn checkout http://sorl-thumbnail.googlecode.com/svn/trunk/ sorl-thumbnail-read-only
svn co http://code.djangoproject.com/svn/django/trunk/
hg clone http://bitbucket.org/chris1610/satchmo/

Group 1.

>sudo apt-get install python-crypto python-reportlab python-trml2pdf python-yaml python-imaging python-docutils python-elementtree subversion mercurial python-setuptools
>easy_install django-registration

Group 2.

>hg clone http://hg.assembla.com/threaded_multihost
>svn checkout http://django-app-plugins.googlecode.com/svn/trunk/ django-app-plugins-read-only
>svn checkout http://sorl-thumbnail.googlecode.com/svn/trunk/ sorl-thumbnail-read-only
>svn co http://code.djangoproject.com/svn/django/trunk/
>hg clone http://bitbucket.org/chris1610/satchmo/

For the items in group 1 there are no additional steps necessary. For group 2 go to the directory that was created after the source down load and run

>sudo python setup.py install

After this Satchmo is installed. To check the installation do the following:

>cd satchmo/satchmo/projects/large/
>./manage.py validate
>./manage.py satchmo_check
>./manage.py runserver

A quick note, this may not work well far in the future. TODAY the svn of Django is just after the 1.1 release. In the future, the svn may not be as suitable for use.

Django 1.1

July 29, 2009

Oh look it’s finally 1.1. Quite nice.

Collected these links so long ago, I’m not sure what exactly I was doing that day. I’m sure it had to do with adding a user that would create backups with cron from a remote server.

Sorting the easy way to add users on ubuntu. Getting the date while in a bash script. When logging in remotely in a cron script it’s nice to have a non-interactive way to authenticate. Some details on transferring information from one server to another using ssh.  And finally, the program I’ve been hearing about for quite some time but never really took the time to get into, GNU Screen.

Quick Upgrade

July 12, 2009

I’ve been kinda wanting to use Django on Sanguine Yoga, but I’ve not really had a Good Reason. Recently Frank asked me for a quicker way to change his classes than editing raw html and svn. So there goes my excuse. Because most of it is very simple, every page but the schedule page is a simple direct to template. While the one schedule page uses some data structures that I hope are quite simple for someone to use with out having documentation.  Also because things have been around for awhile I decided to use some permanent redirects on the old html files to make sure any of that fancy seo stuff that may or may not have happened doesn’t go to waste.

Cufón

July 7, 2009

After Reading a little bit on Ars about fonting, I decided to take another look @ the state of affairs, when it comes to fonting. I came across this page meant to display how @font-face works in Firefox 3.5. Unfortunately it only works in Firefox 3.5 and Safari 4. My goal is to get as much happy production done with the least amount of work possible. Not that I’m especially lazy, I just want things to be efficient. I’d heard fo sIFR, but my first visit showed me that it wasn’t working on all browsers. Making things nice on the others would require more work on my part. I wasn’t quite happy with that. On the same page it mentioned Cufón so I’d thought I’d give it a try. I’m pretty happy with it so far. It appears to work on every browser that I’ve used it on and the artists seem to be happy.

FancyBox for IE

July 7, 2009

Added a canned lightbox to the theta site. The custom light box on the theta site was developed in a rush and I didn’t quite stop to think that the techniques I was using wouldn’t work on IE. Now it works, which is the important part.

dodoggidoo done

July 3, 2009

finished this “quick”, “oh we’ll make it simple D” site. I think a day early actually. The slide show was rewarding after I finished it. Kind of annoying when I was working on it. I would have rathered a side to side switch, but I was getting errors when moving the background image.  I think the up and down works for the moment. The see photos is an ‘interpretation’ of the original spec. I didn’t have a solution for moving the bar back to it’s static position after it was fixed. I’m happy with how it is now. The downloading of backgrounds system is always up to date, but if things get popular, I may have to start some caching, and all the logic that goes on behind that.

I started using Generic Views on this project and they saved much time. I also for the first time every contributed back to the communit in a concrete way. Nothing major, just helped one function name fix for the jQuery FxQueues plugin page.

Follow

Get every new post delivered to your Inbox.