Gabriel Saldaña's blog

personal blog, photography and programming

Programming & Web Development

Invalid HTTP_HOST error log

Avoid Django’s invalid HTTP_HOST error message

I have several Django projects published, and I constantly get my email inbox and log files inundated with errors of spiders and hack [...]

My Python & Django deployment workflow and tools

If you’re new to Python web development with Django, there are some things that tutorials don’t teach. Deploying to a server when you [...]
python snakes

Using Django models in external Python scripts

Since Django 1.4 the syntax to import you models in external scripts has changed. The setup_environ method has been deprecated for a while [...]

Select sort algorithm explained with code and dance

Select sort is a very simple algorithm but it’s very inefficient for large lists, but it is good when memory is an issue, [...]

Insert-sort algorithm explained with code and dance

Insert sort is a fast algorithm for small lists. On some languages, insert sort is used to sort small arrays (small sometimes means [...]

Basic programming algorithm: Bubble Sort

Bubble sort is one of the most basic sorting algorithms in taught in computer science classes. It will order values in a list [...]
HTML5 nested article tag

HTML5 boilerplate for sectioning tags

I’ve seen a lot of confusion on the use of the new HTML5 sectioning tags <article> <section>, <nav>, <aside> and the role left [...]

Posts navigation