14

Apr

Filed in Code, Django, PHP, Python with 24 comments |

Constantly, and only in Python channels, I hear the argument brought up that “PHP is <insert random insult>” or “<N> is a PHP developer so he must suck”. One of the things I hate most, is stereotypes, based on false information. Stereotypes about people from Texas being rednecks are ok, because it’s true. Now, let’s [...]

13

Apr

Filed in Code, MySQL, PHP, PostgreSQL with no comments |

This afternoon I posted my PHP database library on Google code. It’s designed to be very lightweight, and uses the PHP4 MySQL functions as well as the PostgreSQL functions, but is built for PHP5. It uses sprintf formatting, and works must like the Python database cursor’s, to help alleviate injection concerns while you are writing [...]

11

Apr

Filed in Code, Django with 2 comments |

I had a need for a file storage system, which would keep the original file name in tact, no matter what. By default, Django’s FileField’s only allow you to base the directory name on the datetime. While this is good for the most part, you can still have duplicate file names if they are added [...]

4

Apr

Filed in Code, Django with 3 comments |

One of my tasks lately has been updating the django-sphinx library to work with Sphinx 0.98, as it includes GIS components which we have been wanting to possibly utilize on our new search engine. So today, the conclusion of.. very few hours of work, I’d like to announce 2.0.0 of the Django integration.
The SphinxSearch manager [...]

4

Apr

Filed in iBegin Labs with no comments |

We released new versions of iBegin Share and the Wordpress plug-in this morning. These are critical updates to solve display inconsistencies across browsers. You can grab them both over at the labs.
If you don’t know what iBegin Share is, it’s a simple tool which allows you to “share” pages of your website. It’s very similar [...]

2

Apr

Filed in Django, PostgreSQL, iBegin with 3 comments |

Last week I made the decision to begin the conversion from MySQL to PostgreSQL. Well, more of a benchmark conversion, but none the less. So we begin the installation..
I installed PostgreSQL server, version 8.2, painlessly both locally and on our staging server. I then installed psycopg2 via Python setuptools. Nice, quick and easy, right? Segmentation [...]

1

Apr

Filed in CSS, Code with no comments |

Today I was adding full screen support to iBox, and I hit an IE6 bug. The bug is introduced because the BODY tag had either margin or padding values of more than 0. This is a number of problems we’ve had with calculating positions because of the BODY clauses containing these extra pixels.
The solution:

<style type=”text/css”>
/* [...]

29

Mar

Filed in Code, Django, How-To's, Python with 11 comments |

Every time I meet someone new who asks me about Django, I tell them exactly what I think. It’s a great product. It does exactly what it’s designed to do. Allows you to build decently structured applications rapidly, without much overhead in doing so. One of the other things I tell them, is that the [...]

28

Mar

Filed in Code, How-To's, Python with 3 comments |

Today I went head and finalized our build bot some of our public scripts. These scripts are mostly JavaScript based. I already had the build script zipping the file for tags and trunks of projects within the repository (we store all projects in one repository, instead of one repo per project). There were still a [...]

27

Mar

Filed in Code, Django with 6 comments |

One of my goals, beyond the constant improvement of the ORM in Django, is to make django.newforms easier for all of the lazy people, like myself, which I know are plentiful. I personally hate the repetitive task of creating templates for your forms, and the as_X methods are extremely limited. So let’s get down to [...]

« Previous PageNext Page »