Archive for July, 2008

30

Jul

Filed in Code, PHP with 26 comments |

I had recently installed a plugin on my blogged called “RSS Stream”. The idea of the plugin is that it can use RSS feeds (and only RSS feeds) from sites to display a mini-feed, or mini-blog, of what you’re doing. Not being quite content with the plugin, I decided to write my own.
A few hours [...]

30

Jul

Filed in Code, Django with no comments |

I posted another one of my small pluggable apps up on Google code the other day. It’s called django-object-view-tracking and is most suited for tracking things such as if a user has viewed a thread in a forum.
The API is fairly simple, but may need some improvements based on feedback:

def view_thread_list(request):
threads [...]

30

Jul

Filed in Code, Django with 4 comments |

I pushed an update to the django-sphinx repository tonight which includes a sample configuration generation tool.
It allows you to generate a source and index config for a Model based on it’s field type. For example:

from nibbits.maps.models import Map
import djangosphinx

output = djangosphinx.generate_config_for_model(Map)
print output

This will give you something like:

source base
{
type [...]

27

Jul

Filed in Django, DjangoCon with 5 comments |

I’m going to be giving a talk at DjangoCon, “High Performance Django”. I will be discussing what I’ve done at the past with Curse.com, what we do presently for iBegin’s Crazy Datastore, and general tips for scalability and performance in large web applications.
So why am I telling you all of this? I’m interested in hearing [...]

27

Jul

Filed in Bash, Mac with 1 comment |

One of my daily problems occurs when I’m ssh’d into a remote server and I’m using nano to edit configuration files or quick scripts to dump information. The problem being, that it screws up differently on different systems.
So let’s start with the problems:
Problem: Using the backspace key doesn’t remove the trailing character, but rather the [...]

26

Jul

Filed in Bash, Code with no comments |

Recently I ran across a trick on the net. I use iPython quite a bit, and I love how I can type a partial history command, and then use up/down to cycle through the recently used commands/code lines. I thought it would be pretty cool to have this same technique available in the bash prompt. [...]