Tag Archives: linux

How to set session variables in Django unit tests.

This was super non-obvious, and I lifted code from a couple of different places. If you’ve got Django view code that gets & sets session values, you’ll want to test it properly, and the standard “self.client” from Django’s TestCase doesn’t … Continue reading

Posted in General | Tagged , , , | Leave a comment

Port forwarding using netcat

netcat (nc) is a really useful, if obscure command for managing and listening on TCP sockets. I had a need to implement a local port forward on my machine. (more details coming).  I could use ssh to do this, but … Continue reading

Posted in General | Tagged , , , , , , | 2 Comments

Zuma clone for Ubuntu Linux

Just found out that there’s a great clone of the game Zuma for Ubuntu. Enable the Universe repository and apt-get install zaz or use the Update Manager to install.  It’s got a pretty interesting dynamic and twist on the original … Continue reading

Posted in General | Tagged , , , | Leave a comment

Is it safe to rm files from /var/spool/mqueue?

Is it safe to just remove messages that are failing to be delivered, or is there some other special sendmail “cancel delivery” command that I can execute to remove these from the queue?  Is it necessary to stop sendmail if … Continue reading

Posted in General | Tagged , , , | Leave a comment

Best remote backup solution for Linux?

I’m running my own hand-crafted remote backup (rsync++) script to back up data from one machine to another.  But, it has some serious drawbacks, and I’m still looking for something better.  Here are my requirements: Runs on Ubuntu Is either: … Continue reading

Posted in General | Tagged , , , , , | 3 Comments

git error “unable to write sha1 filename … Permission denied”

I was having the following issue while doing a “git push”: $ git push Counting objects: 50, done. Compressing objects: 100% (33/33), done. Writing objects: 100% (36/36), 4.42 KiB, done. Total 36 (delta 13), reused 0 (delta 0) error: unable … Continue reading

Posted in General | Tagged , , , | 2 Comments

Throttling pipes in ubuntu linux using cstream

When I stream music from my home to my work, I want to make sure that I throttle my music such that it doesn’t saturate my outgoing network connection and make the rest of my internet slow. All I wanted … Continue reading

Posted in General | Tagged , , , , , | Leave a comment

transcoding mp3-to-mp3 in mt-daapd

Introduction mt-daapd is an iTunes daap-protocol server for Unix systems.  I’m using mt-daapd on by Ubuntu 9.04 system to stream music over the internet to my workplace.   The issue is that many of my mp3 files are 256kbps mp3 files, … Continue reading

Posted in General | Tagged , , , , , , , , | 1 Comment

I’ve given up on web-based music services.

It was a long and tumultuous affair, but now I’ve officially given up on web-based streaming of my personal music collection. I started out with netjuke, which died and got absorbed into the horrible jinzora project.   So then I switched … Continue reading

Posted in General | Tagged , , , , , , | 1 Comment

RRDTool bindings for php5 in Ubuntu

As far as I can tell, there are no RRDTool bindings for php5 for Ubuntu 9.04.  It appears as though it existed in prior distributions that included php4, but Ubuntu 9.04 no longer includes php4. Several others are talking about … Continue reading

Posted in General | Tagged , , , , , | 2 Comments