I'm planning a trip to Iceland in June. Why Iceland? If you have to ask, you probably don't know anything about it. This is a good documentary on Iceland, but in short, the place looks unreal. I bought my plane ticket to Reykjavik a while back, which ran ...read more
I am in the process of making a mobile application for a client. The requirements of the app are relatively simple: display product listings, scan barcodes to bring up product information and build orders, and submit orders. For this project I decided to use Django + Tastypie on the server, and ...read more
- This content is encrypted.
Where I currently work, we use PHP extensively; sometimes with CodeIgniter, but usually with Drupal. Before this job, I had zero experience with Drupal, and as a result I had no idea what to expect in terms of performance. After using a few of the Drupal sites that were deployed ...read more
Listed below are a few functions that I commonly use with Django models.
This function will render markdown text from one model field to another each time the model is saved. For example, if I have a
biographyTextField, and users enter markdown in the field, I can create a ...
I had the chore of implementing filtering on a web page the other day. I was originally going to do the filtering on the server, but I figured I might as well do it on the client since it would be faster, and the lists I was filtering weren't ...read more
While showing my friend an example of a recursive solution to a homework problem, I accidentally learned something. The function in question simply tokenizes a string given a list of separators, and it is outlined below.read more
def tokenize(query, seps): ''' A recursive string tokenizer function. query -- The string to tokenize ...
Page 1 / 2 »